diff --git a/.release-please-manifest.json b/.release-please-manifest.json index e82003f4..a7130553 100644 --- a/.release-please-manifest.json +++ b/.release-please-manifest.json @@ -1,3 +1,3 @@ { - ".": "0.11.1" + ".": "0.12.0" } \ No newline at end of file diff --git a/CHANGELOG.md b/CHANGELOG.md index df1581ce..18ebd145 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,20 @@ # Changelog +## [0.12.0](https://github.com/tembo/sdk-python/compare/v0.11.1...v0.12.0) (2026-11-11) + + +### ⚠ BREAKING CHANGES + +* **api:** 3 breaking changes to the SDK surface. + - Added required body field `roleId` to `organizations.members.create`. + - Removed body field `role` from `organizations.members.create`. + - Removed body field `role` from `organizations.members.update`. + +### Features + +* **api:** add operation organizations.roles.list (+10 more changes) ([4c68011](https://github.com/tembo/sdk-python/commit/4c6801159bcbef9479864af5f08b36f2bbfc1e25)) +* **api:** update SDK surface (6 changes) ([9b0a9f0](https://github.com/tembo/sdk-python/commit/9b0a9f0de2dbf1240a167aa15e652e9d4afa7fd7)) + ## [0.11.1](https://github.com/tembo/sdk-python/compare/v0.11.0...v0.11.1) (2026-11-08) diff --git a/api.md b/api.md index 32a388a4..2695db73 100644 --- a/api.md +++ b/api.md @@ -35,6 +35,12 @@ Complete reference of every operation, grouped by resource. See [the README](./R - [Retrieve an organization member](#retrieve-an-organization-member) - [Update an organization member](#update-an-organization-member) - [Remove an organization member](#remove-an-organization-member) + - [`Organizations Roles`](#organizations-roles) + - [List organization roles](#list-organization-roles) + - [Create a organization role](#create-a-organization-role) + - [Retrieve an organization role](#retrieve-an-organization-role) + - [Update a organization role](#update-a-organization-role) + - [Archive a role with an explicit replacement](#archive-a-role-with-an-explicit-replacement) - [`Organizations Secrets`](#organizations-secrets) - [List organization secrets](#list-organization-secrets) - [Create an organization secret](#create-an-organization-secret) @@ -59,6 +65,7 @@ Complete reference of every operation, grouped by resource. See [the README](./R - [List artifacts](#list-artifacts) - [Create an artifact](#create-an-artifact) - [Retrieve an artifact](#retrieve-an-artifact) + - [Retrieve a signed asset URL](#retrieve-a-signed-asset-url) - [Delete an artifact](#delete-an-artifact) - [`Messages`](#messages) - [List messages](#list-messages) @@ -115,6 +122,7 @@ Complete reference of every operation, grouped by resource. See [the README](./R - [List session commands](#list-session-commands) - [`Projects`](#projects) - [Update project defaults](#update-project-defaults) + - [Retrieve project defaults](#retrieve-project-defaults) - [List projects](#list-projects) - [Create a project](#create-a-project) - [Retrieve a project](#retrieve-a-project) @@ -206,6 +214,11 @@ Complete reference of every operation, grouped by resource. See [the README](./R - [`Billing`](#billing) - [Retrieve billing](#retrieve-billing) - [List billing usage](#list-billing-usage) +- [`Folders`](#folders) + - [List folders](#list-folders) + - [Create a folder](#create-a-folder) + - [Update a folder](#update-a-folder) + - [Delete a folder](#delete-a-folder) - [`Live`](#live) - [Authorize a live connection](#authorize-a-live-connection) - [Live resource subscriptions](#live-resource-subscriptions) @@ -563,7 +576,7 @@ Invite or add a user to an organization with a role. member = client.organizations.members.create( organization_id="organizationId", email_address="user@example.com", - role="org:member", + role_id="x", ) ``` @@ -595,7 +608,6 @@ Update an organization member role. member = client.organizations.members.update( organization_id="organizationId", member_id="memberId", - role="org:admin", ) ``` @@ -614,6 +626,79 @@ member = client.organizations.members.delete( ) ``` +### `Organizations Roles` + +#### List organization roles + +| Direction | Type | +| --- | --- | +| Response | [`RoleListResponse`](./src/tembo/types/organizations/role_list_response.py) | + +```python +role = client.organizations.roles.list( + organization_id="organizationId", +) +``` + +#### Create a organization role + +| Direction | Type | +| --- | --- | +| Request | [`RoleCreateParams`](./src/tembo/types/organizations/role_create_params.py) | +| Response | [`RoleCreateResponse`](./src/tembo/types/organizations/role_create_response.py) | + +```python +role = client.organizations.roles.create( + organization_id="organizationId", + name="x", + description="", + permissions=["organization:read"], +) +``` + +#### Retrieve an organization role + +| Direction | Type | +| --- | --- | +| Response | [`RoleRetrieveResponse`](./src/tembo/types/organizations/role_retrieve_response.py) | + +```python +role = client.organizations.roles.retrieve( + organization_id="organizationId", + role_id="roleId", +) +``` + +#### Update a organization role + +| Direction | Type | +| --- | --- | +| Request | [`RoleUpdateParams`](./src/tembo/types/organizations/role_update_params.py) | +| Response | [`RoleUpdateResponse`](./src/tembo/types/organizations/role_update_response.py) | + +```python +role = client.organizations.roles.update( + organization_id="organizationId", + role_id="roleId", + description="", +) +``` + +#### Archive a role with an explicit replacement + +| Direction | Type | +| --- | --- | +| Request | [`RoleDeleteParams`](./src/tembo/types/organizations/role_delete_params.py) | +| Response | [`RoleDeleteResponse`](./src/tembo/types/organizations/role_delete_response.py) | + +```python +role = client.organizations.roles.delete( + organization_id="organizationId", + role_id="roleId", + replacement_role_id="x", +) +``` + ### `Organizations Secrets` #### List organization secrets @@ -915,6 +1000,20 @@ artifact = client.artifacts.retrieve( ) ``` +### Retrieve a signed asset URL + +Get a fresh signed download URL for an uploaded session asset by its asset ID. + +| Direction | Type | +| --- | --- | +| Response | [`ArtifactRetrieveAssetURLResponse`](./src/tembo/types/artifact_retrieve_asset_url_response.py) | + +```python +artifact = client.artifacts.retrieve_asset_url( + asset_id="7c9e6679-7425-40de-944b-e07fc1f90ae7", +) +``` + ### Delete an artifact Delete an organization artifact and its backing asset when present. @@ -1553,6 +1652,18 @@ project = client.projects.update_defaults( ) ``` +### Retrieve project defaults + +Get the default sandbox size and the largest size the plan allows. + +| Direction | Type | +| --- | --- | +| Response | [`ProjectRetrieveDefaultsResponse`](./src/tembo/types/project_retrieve_defaults_response.py) | + +```python +project = client.projects.retrieve_defaults() +``` + ### List projects List projects in the authenticated organization. @@ -1916,7 +2027,7 @@ pin = client.pins.list( ### Create a pin -Pin a session, pull request, or project you have permission to access. +Pin a session, pull request, or project you have permission to access, or one of your folders. | Direction | Type | | --- | --- | @@ -1932,7 +2043,7 @@ pin = client.pins.create( ### Update a pin -Reorder a pinned session, pull request, or project before or after another pin for the authenticated user. Use createPin to pin a resource and deletePin to unpin it. +Reorder a pinned session, pull request, project, or folder before or after another pin for the authenticated user. Use createPin to pin a resource and deletePin to unpin it. | Direction | Type | | --- | --- | @@ -1949,7 +2060,7 @@ pin = client.pins.update( ### Delete a pin -Unpin a session, pull request, or project for the authenticated user without deleting or archiving the resource. +Unpin a session, pull request, project, or folder for the authenticated user without deleting or archiving the resource. | Direction | Type | | --- | --- | @@ -2279,7 +2390,7 @@ run = client.agents.runs.list( #### Create an agent run -Queue an agent run. The entire JSON object body is passed to the agent as event input; no eventPayload wrapper is needed. Omit the body to run without event input. The response confirms queuing, not completed execution. +Queue an agent run. The entire JSON object body is passed to the agent as event input; no eventPayload wrapper is needed. Omit the body to run without event input. The response confirms queuing, not completed execution, and includes the run ID to poll for its status and session. | Direction | Type | | --- | --- | @@ -2716,6 +2827,64 @@ billing = client.billing.list_usage( ) ``` +## `Folders` + +### List folders + +List the sidebar folders you use to organize sessions. Use listSessions with folderId to list the sessions in a folder. + +| Direction | Type | +| --- | --- | +| Response | [`FolderListResponse`](./src/tembo/types/folder_list_response.py) | + +```python +folder = client.folders.list() +``` + +### Create a folder + +Create a sidebar folder for organizing sessions. New folders go first in your folder list; use createPin to pin one. + +| Direction | Type | +| --- | --- | +| Request | [`FolderCreateParams`](./src/tembo/types/folder_create_params.py) | +| Response | [`FolderCreateResponse`](./src/tembo/types/folder_create_response.py) | + +```python +folder = client.folders.create( + name="x", +) +``` + +### Update a folder + +Rename one of your sidebar folders, change its icon color, move it in your folder list, or add, reorder, or remove its sessions. Use updatePin to move a pinned folder among your pins. + +| Direction | Type | +| --- | --- | +| Request | [`FolderUpdateParams`](./src/tembo/types/folder_update_params.py) | +| Response | [`FolderUpdateResponse`](./src/tembo/types/folder_update_response.py) | + +```python +folder = client.folders.update( + folder_id="7c9e6679-7425-40de-944b-e07fc1f90ae7", +) +``` + +### Delete a folder + +Delete one of your sidebar folders. Its sessions are kept and return to your recent sessions. + +| Direction | Type | +| --- | --- | +| Response | [`FolderDeleteResponse`](./src/tembo/types/folder_delete_response.py) | + +```python +folder = client.folders.delete( + folder_id="7c9e6679-7425-40de-944b-e07fc1f90ae7", +) +``` + ## `Live` ### Authorize a live connection diff --git a/pyproject.toml b/pyproject.toml index 853f0cfd..e96d7557 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [project] name = "tembo-sdk-python" -version = "0.11.1" # x-release-please-version +version = "0.12.0" # x-release-please-version description = "Manage agents, sessions, repositories, and organization resources with the Tembo API." readme = "README.md" license = "Apache-2.0" diff --git a/scalar-sdk.manifest.json b/scalar-sdk.manifest.json index 04f9a0fe..0c130189 100644 --- a/scalar-sdk.manifest.json +++ b/scalar-sdk.manifest.json @@ -6897,6 +6897,7 @@ "insights", "organizations", "organizations.members", + "organizations.roles", "organizations.secrets", "organizations.settings", "organizations.subscriptions", @@ -6935,6 +6936,7 @@ "integrations.providers", "integrations.triggers", "billing", + "folders", "live" ], "publicResources": [ @@ -6944,6 +6946,7 @@ "insights", "organizations", "organizations.members", + "organizations.roles", "organizations.secrets", "organizations.settings", "organizations.subscriptions", @@ -6982,6 +6985,7 @@ "integrations.providers", "integrations.triggers", "billing", + "folders", "live" ], "operations": [ @@ -9510,11 +9514,11 @@ "publicHeaderParams": [], "bodyParams": [ "emailAddress", - "role" + "roleId" ], "publicBodyParams": [ "emailAddress", - "role" + "roleId" ], "bodyParamDetails": [ { @@ -9522,8 +9526,8 @@ "required": true }, { - "name": "role", - "required": false + "name": "roleId", + "required": true } ], "pathParamDetails": [ @@ -9807,15 +9811,15 @@ "headerParams": [], "publicHeaderParams": [], "bodyParams": [ - "role" + "roleId" ], "publicBodyParams": [ - "role" + "roleId" ], "bodyParamDetails": [ { - "name": "role", - "required": true + "name": "roleId", + "required": false } ], "pathParamDetails": [ @@ -10085,29 +10089,21 @@ "transport": "http" }, { - "resource": "organizations.secrets", - "publicResource": "organizations.secrets", + "resource": "organizations.roles", + "publicResource": "organizations.roles", "operation": "list", "publicOperation": "list", "deprecated": false, "method": "GET", - "path": "/v1/organizations/{organizationId}/secrets", + "path": "/v1/organizations/{organizationId}/roles", "pathParams": [ "organizationId" ], "publicPathParams": [ "organizationId" ], - "queryParams": [ - "cursor", - "limit", - "search" - ], - "publicQueryParams": [ - "cursor", - "limit", - "search" - ], + "queryParams": [], + "publicQueryParams": [], "headerParams": [], "publicHeaderParams": [], "bodyParams": [], @@ -10121,33 +10117,13 @@ "explode": false } ], - "queryParamDetails": [ - { - "name": "cursor", - "required": false, - "style": "form", - "explode": true - }, - { - "name": "limit", - "required": false, - "style": "form", - "explode": true, - "defaultValue": 50 - }, - { - "name": "search", - "required": false, - "style": "form", - "explode": true - } - ], + "queryParamDetails": [], "headerParamDetails": [], "cookieParams": [], "publicCookieParams": [], "cookieParamDetails": [], "paramsModel": { - "publicName": "SecretListParams" + "publicName": "RoleListParams" }, "response": { "status": "200", @@ -10166,9 +10142,7 @@ "400", "403", "404", - "409", - "500", - "503" + "409" ] }, "errorResponses": [ @@ -10215,41 +10189,19 @@ "encoding": "json" } ] - }, - { - "status": "500", - "contentType": "application/json", - "encoding": "json", - "contents": [ - { - "contentType": "application/json", - "encoding": "json" - } - ] - }, - { - "status": "503", - "contentType": "application/json", - "encoding": "json", - "contents": [ - { - "contentType": "application/json", - "encoding": "json" - } - ] } ], "responseLinks": [], "transport": "http" }, { - "resource": "organizations.secrets", - "publicResource": "organizations.secrets", + "resource": "organizations.roles", + "publicResource": "organizations.roles", "operation": "create", "publicOperation": "create", "deprecated": false, "method": "POST", - "path": "/v1/organizations/{organizationId}/secrets", + "path": "/v1/organizations/{organizationId}/roles", "pathParams": [ "organizationId" ], @@ -10261,20 +10213,26 @@ "headerParams": [], "publicHeaderParams": [], "bodyParams": [ - "key", - "value" + "name", + "description", + "permissions" ], "publicBodyParams": [ - "key", - "value" + "name", + "description", + "permissions" ], "bodyParamDetails": [ { - "name": "key", + "name": "name", "required": true }, { - "name": "value", + "name": "description", + "required": false + }, + { + "name": "permissions", "required": true } ], @@ -10292,7 +10250,7 @@ "publicCookieParams": [], "cookieParamDetails": [], "paramsModel": { - "publicName": "SecretCreateParams" + "publicName": "RoleCreateParams" }, "requestBody": { "contentType": "application/json", @@ -10324,9 +10282,7 @@ "400", "403", "404", - "409", - "500", - "503" + "409" ] }, "errorResponses": [ @@ -10373,48 +10329,26 @@ "encoding": "json" } ] - }, - { - "status": "500", - "contentType": "application/json", - "encoding": "json", - "contents": [ - { - "contentType": "application/json", - "encoding": "json" - } - ] - }, - { - "status": "503", - "contentType": "application/json", - "encoding": "json", - "contents": [ - { - "contentType": "application/json", - "encoding": "json" - } - ] } ], "responseLinks": [], "transport": "http" }, { - "resource": "organizations.secrets", - "publicResource": "organizations.secrets", + "resource": "organizations.roles", + "publicResource": "organizations.roles", "operation": "retrieve", "publicOperation": "retrieve", "deprecated": false, "method": "GET", - "path": "/v1/organizations/{organizationId}/secrets/{secretId}", + "path": "/v1/organizations/{organizationId}/roles/{roleId}", "pathParams": [ "organizationId", - "secretId" + "roleId" ], "publicPathParams": [ "organizationId", - "secretId" + "roleId" ], "queryParams": [], "publicQueryParams": [], @@ -10431,7 +10365,7 @@ "explode": false }, { - "name": "secretId", + "name": "roleId", "required": true, "style": "simple", "explode": false @@ -10443,7 +10377,7 @@ "publicCookieParams": [], "cookieParamDetails": [], "paramsModel": { - "publicName": "SecretRetrieveParams" + "publicName": "RoleRetrieveParams" }, "response": { "status": "200", @@ -10462,9 +10396,7 @@ "400", "403", "404", - "409", - "500", - "503" + "409" ] }, "errorResponses": [ @@ -10511,68 +10443,58 @@ "encoding": "json" } ] - }, - { - "status": "500", - "contentType": "application/json", - "encoding": "json", - "contents": [ - { - "contentType": "application/json", - "encoding": "json" - } - ] - }, - { - "status": "503", - "contentType": "application/json", - "encoding": "json", - "contents": [ - { - "contentType": "application/json", - "encoding": "json" - } - ] } ], "responseLinks": [], "transport": "http" }, { - "resource": "organizations.secrets", - "publicResource": "organizations.secrets", + "resource": "organizations.roles", + "publicResource": "organizations.roles", "operation": "update", "publicOperation": "update", "deprecated": false, "method": "PATCH", - "path": "/v1/organizations/{organizationId}/secrets/{secretId}", + "path": "/v1/organizations/{organizationId}/roles/{roleId}", "pathParams": [ "organizationId", - "secretId" + "roleId" ], "publicPathParams": [ "organizationId", - "secretId" + "roleId" ], "queryParams": [], "publicQueryParams": [], "headerParams": [], "publicHeaderParams": [], "bodyParams": [ - "key", - "value" + "name", + "description", + "permissions", + "isDefault" ], "publicBodyParams": [ - "key", - "value" + "name", + "description", + "permissions", + "isDefault" ], "bodyParamDetails": [ { - "name": "key", + "name": "name", "required": false }, { - "name": "value", + "name": "description", + "required": false + }, + { + "name": "permissions", + "required": false + }, + { + "name": "isDefault", "required": false } ], @@ -10584,7 +10506,7 @@ "explode": false }, { - "name": "secretId", + "name": "roleId", "required": true, "style": "simple", "explode": false @@ -10596,7 +10518,7 @@ "publicCookieParams": [], "cookieParamDetails": [], "paramsModel": { - "publicName": "SecretUpdateParams" + "publicName": "RoleUpdateParams" }, "requestBody": { "contentType": "application/json", @@ -10628,9 +10550,7 @@ "400", "403", "404", - "409", - "500", - "503" + "409" ] }, "errorResponses": [ @@ -10677,56 +10597,43 @@ "encoding": "json" } ] - }, - { - "status": "500", - "contentType": "application/json", - "encoding": "json", - "contents": [ - { - "contentType": "application/json", - "encoding": "json" - } - ] - }, - { - "status": "503", - "contentType": "application/json", - "encoding": "json", - "contents": [ - { - "contentType": "application/json", - "encoding": "json" - } - ] } ], "responseLinks": [], "transport": "http" }, { - "resource": "organizations.secrets", - "publicResource": "organizations.secrets", + "resource": "organizations.roles", + "publicResource": "organizations.roles", "operation": "delete", "publicOperation": "delete", "deprecated": false, "method": "DELETE", - "path": "/v1/organizations/{organizationId}/secrets/{secretId}", + "path": "/v1/organizations/{organizationId}/roles/{roleId}", "pathParams": [ "organizationId", - "secretId" + "roleId" ], "publicPathParams": [ "organizationId", - "secretId" + "roleId" ], "queryParams": [], "publicQueryParams": [], "headerParams": [], "publicHeaderParams": [], - "bodyParams": [], - "publicBodyParams": [], - "bodyParamDetails": [], + "bodyParams": [ + "replacementRoleId" + ], + "publicBodyParams": [ + "replacementRoleId" + ], + "bodyParamDetails": [ + { + "name": "replacementRoleId", + "required": true + } + ], "pathParamDetails": [ { "name": "organizationId", @@ -10735,7 +10642,7 @@ "explode": false }, { - "name": "secretId", + "name": "roleId", "required": true, "style": "simple", "explode": false @@ -10747,7 +10654,20 @@ "publicCookieParams": [], "cookieParamDetails": [], "paramsModel": { - "publicName": "SecretDeleteParams" + "publicName": "RoleDeleteParams" + }, + "requestBody": { + "contentType": "application/json", + "encoding": "json", + "contents": [ + { + "contentType": "application/json", + "encoding": "json" + } + ], + "required": true, + "publicName": "body", + "publicIdentifier": "body" }, "response": { "status": "200", @@ -10766,9 +10686,7 @@ "400", "403", "404", - "409", - "500", - "503" + "409" ] }, "errorResponses": [ @@ -10815,40 +10733,776 @@ "encoding": "json" } ] - }, - { - "status": "500", - "contentType": "application/json", - "encoding": "json", - "contents": [ - { - "contentType": "application/json", - "encoding": "json" - } - ] - }, - { - "status": "503", - "contentType": "application/json", - "encoding": "json", - "contents": [ - { - "contentType": "application/json", - "encoding": "json" - } - ] } ], "responseLinks": [], "transport": "http" }, { - "resource": "organizations.settings", - "publicResource": "organizations.settings", - "operation": "retrieve", - "publicOperation": "retrieve", - "deprecated": false, - "method": "GET", + "resource": "organizations.secrets", + "publicResource": "organizations.secrets", + "operation": "list", + "publicOperation": "list", + "deprecated": false, + "method": "GET", + "path": "/v1/organizations/{organizationId}/secrets", + "pathParams": [ + "organizationId" + ], + "publicPathParams": [ + "organizationId" + ], + "queryParams": [ + "cursor", + "limit", + "search" + ], + "publicQueryParams": [ + "cursor", + "limit", + "search" + ], + "headerParams": [], + "publicHeaderParams": [], + "bodyParams": [], + "publicBodyParams": [], + "bodyParamDetails": [], + "pathParamDetails": [ + { + "name": "organizationId", + "required": true, + "style": "simple", + "explode": false + } + ], + "queryParamDetails": [ + { + "name": "cursor", + "required": false, + "style": "form", + "explode": true + }, + { + "name": "limit", + "required": false, + "style": "form", + "explode": true, + "defaultValue": 50 + }, + { + "name": "search", + "required": false, + "style": "form", + "explode": true + } + ], + "headerParamDetails": [], + "cookieParams": [], + "publicCookieParams": [], + "cookieParamDetails": [], + "paramsModel": { + "publicName": "SecretListParams" + }, + "response": { + "status": "200", + "contentType": "application/json", + "encoding": "json", + "contents": [ + { + "contentType": "application/json", + "encoding": "json" + } + ] + }, + "result": { + "successStatus": "200", + "errorStatuses": [ + "400", + "403", + "404", + "409", + "500", + "503" + ] + }, + "errorResponses": [ + { + "status": "400", + "contentType": "application/json", + "encoding": "json", + "contents": [ + { + "contentType": "application/json", + "encoding": "json" + } + ] + }, + { + "status": "403", + "contentType": "application/json", + "encoding": "json", + "contents": [ + { + "contentType": "application/json", + "encoding": "json" + } + ] + }, + { + "status": "404", + "contentType": "application/json", + "encoding": "json", + "contents": [ + { + "contentType": "application/json", + "encoding": "json" + } + ] + }, + { + "status": "409", + "contentType": "application/json", + "encoding": "json", + "contents": [ + { + "contentType": "application/json", + "encoding": "json" + } + ] + }, + { + "status": "500", + "contentType": "application/json", + "encoding": "json", + "contents": [ + { + "contentType": "application/json", + "encoding": "json" + } + ] + }, + { + "status": "503", + "contentType": "application/json", + "encoding": "json", + "contents": [ + { + "contentType": "application/json", + "encoding": "json" + } + ] + } + ], + "responseLinks": [], + "transport": "http" + }, + { + "resource": "organizations.secrets", + "publicResource": "organizations.secrets", + "operation": "create", + "publicOperation": "create", + "deprecated": false, + "method": "POST", + "path": "/v1/organizations/{organizationId}/secrets", + "pathParams": [ + "organizationId" + ], + "publicPathParams": [ + "organizationId" + ], + "queryParams": [], + "publicQueryParams": [], + "headerParams": [], + "publicHeaderParams": [], + "bodyParams": [ + "key", + "value" + ], + "publicBodyParams": [ + "key", + "value" + ], + "bodyParamDetails": [ + { + "name": "key", + "required": true + }, + { + "name": "value", + "required": true + } + ], + "pathParamDetails": [ + { + "name": "organizationId", + "required": true, + "style": "simple", + "explode": false + } + ], + "queryParamDetails": [], + "headerParamDetails": [], + "cookieParams": [], + "publicCookieParams": [], + "cookieParamDetails": [], + "paramsModel": { + "publicName": "SecretCreateParams" + }, + "requestBody": { + "contentType": "application/json", + "encoding": "json", + "contents": [ + { + "contentType": "application/json", + "encoding": "json" + } + ], + "required": true, + "publicName": "body", + "publicIdentifier": "body" + }, + "response": { + "status": "201", + "contentType": "application/json", + "encoding": "json", + "contents": [ + { + "contentType": "application/json", + "encoding": "json" + } + ] + }, + "result": { + "successStatus": "201", + "errorStatuses": [ + "400", + "403", + "404", + "409", + "500", + "503" + ] + }, + "errorResponses": [ + { + "status": "400", + "contentType": "application/json", + "encoding": "json", + "contents": [ + { + "contentType": "application/json", + "encoding": "json" + } + ] + }, + { + "status": "403", + "contentType": "application/json", + "encoding": "json", + "contents": [ + { + "contentType": "application/json", + "encoding": "json" + } + ] + }, + { + "status": "404", + "contentType": "application/json", + "encoding": "json", + "contents": [ + { + "contentType": "application/json", + "encoding": "json" + } + ] + }, + { + "status": "409", + "contentType": "application/json", + "encoding": "json", + "contents": [ + { + "contentType": "application/json", + "encoding": "json" + } + ] + }, + { + "status": "500", + "contentType": "application/json", + "encoding": "json", + "contents": [ + { + "contentType": "application/json", + "encoding": "json" + } + ] + }, + { + "status": "503", + "contentType": "application/json", + "encoding": "json", + "contents": [ + { + "contentType": "application/json", + "encoding": "json" + } + ] + } + ], + "responseLinks": [], + "transport": "http" + }, + { + "resource": "organizations.secrets", + "publicResource": "organizations.secrets", + "operation": "retrieve", + "publicOperation": "retrieve", + "deprecated": false, + "method": "GET", + "path": "/v1/organizations/{organizationId}/secrets/{secretId}", + "pathParams": [ + "organizationId", + "secretId" + ], + "publicPathParams": [ + "organizationId", + "secretId" + ], + "queryParams": [], + "publicQueryParams": [], + "headerParams": [], + "publicHeaderParams": [], + "bodyParams": [], + "publicBodyParams": [], + "bodyParamDetails": [], + "pathParamDetails": [ + { + "name": "organizationId", + "required": true, + "style": "simple", + "explode": false + }, + { + "name": "secretId", + "required": true, + "style": "simple", + "explode": false + } + ], + "queryParamDetails": [], + "headerParamDetails": [], + "cookieParams": [], + "publicCookieParams": [], + "cookieParamDetails": [], + "paramsModel": { + "publicName": "SecretRetrieveParams" + }, + "response": { + "status": "200", + "contentType": "application/json", + "encoding": "json", + "contents": [ + { + "contentType": "application/json", + "encoding": "json" + } + ] + }, + "result": { + "successStatus": "200", + "errorStatuses": [ + "400", + "403", + "404", + "409", + "500", + "503" + ] + }, + "errorResponses": [ + { + "status": "400", + "contentType": "application/json", + "encoding": "json", + "contents": [ + { + "contentType": "application/json", + "encoding": "json" + } + ] + }, + { + "status": "403", + "contentType": "application/json", + "encoding": "json", + "contents": [ + { + "contentType": "application/json", + "encoding": "json" + } + ] + }, + { + "status": "404", + "contentType": "application/json", + "encoding": "json", + "contents": [ + { + "contentType": "application/json", + "encoding": "json" + } + ] + }, + { + "status": "409", + "contentType": "application/json", + "encoding": "json", + "contents": [ + { + "contentType": "application/json", + "encoding": "json" + } + ] + }, + { + "status": "500", + "contentType": "application/json", + "encoding": "json", + "contents": [ + { + "contentType": "application/json", + "encoding": "json" + } + ] + }, + { + "status": "503", + "contentType": "application/json", + "encoding": "json", + "contents": [ + { + "contentType": "application/json", + "encoding": "json" + } + ] + } + ], + "responseLinks": [], + "transport": "http" + }, + { + "resource": "organizations.secrets", + "publicResource": "organizations.secrets", + "operation": "update", + "publicOperation": "update", + "deprecated": false, + "method": "PATCH", + "path": "/v1/organizations/{organizationId}/secrets/{secretId}", + "pathParams": [ + "organizationId", + "secretId" + ], + "publicPathParams": [ + "organizationId", + "secretId" + ], + "queryParams": [], + "publicQueryParams": [], + "headerParams": [], + "publicHeaderParams": [], + "bodyParams": [ + "key", + "value" + ], + "publicBodyParams": [ + "key", + "value" + ], + "bodyParamDetails": [ + { + "name": "key", + "required": false + }, + { + "name": "value", + "required": false + } + ], + "pathParamDetails": [ + { + "name": "organizationId", + "required": true, + "style": "simple", + "explode": false + }, + { + "name": "secretId", + "required": true, + "style": "simple", + "explode": false + } + ], + "queryParamDetails": [], + "headerParamDetails": [], + "cookieParams": [], + "publicCookieParams": [], + "cookieParamDetails": [], + "paramsModel": { + "publicName": "SecretUpdateParams" + }, + "requestBody": { + "contentType": "application/json", + "encoding": "json", + "contents": [ + { + "contentType": "application/json", + "encoding": "json" + } + ], + "required": true, + "publicName": "body", + "publicIdentifier": "body" + }, + "response": { + "status": "200", + "contentType": "application/json", + "encoding": "json", + "contents": [ + { + "contentType": "application/json", + "encoding": "json" + } + ] + }, + "result": { + "successStatus": "200", + "errorStatuses": [ + "400", + "403", + "404", + "409", + "500", + "503" + ] + }, + "errorResponses": [ + { + "status": "400", + "contentType": "application/json", + "encoding": "json", + "contents": [ + { + "contentType": "application/json", + "encoding": "json" + } + ] + }, + { + "status": "403", + "contentType": "application/json", + "encoding": "json", + "contents": [ + { + "contentType": "application/json", + "encoding": "json" + } + ] + }, + { + "status": "404", + "contentType": "application/json", + "encoding": "json", + "contents": [ + { + "contentType": "application/json", + "encoding": "json" + } + ] + }, + { + "status": "409", + "contentType": "application/json", + "encoding": "json", + "contents": [ + { + "contentType": "application/json", + "encoding": "json" + } + ] + }, + { + "status": "500", + "contentType": "application/json", + "encoding": "json", + "contents": [ + { + "contentType": "application/json", + "encoding": "json" + } + ] + }, + { + "status": "503", + "contentType": "application/json", + "encoding": "json", + "contents": [ + { + "contentType": "application/json", + "encoding": "json" + } + ] + } + ], + "responseLinks": [], + "transport": "http" + }, + { + "resource": "organizations.secrets", + "publicResource": "organizations.secrets", + "operation": "delete", + "publicOperation": "delete", + "deprecated": false, + "method": "DELETE", + "path": "/v1/organizations/{organizationId}/secrets/{secretId}", + "pathParams": [ + "organizationId", + "secretId" + ], + "publicPathParams": [ + "organizationId", + "secretId" + ], + "queryParams": [], + "publicQueryParams": [], + "headerParams": [], + "publicHeaderParams": [], + "bodyParams": [], + "publicBodyParams": [], + "bodyParamDetails": [], + "pathParamDetails": [ + { + "name": "organizationId", + "required": true, + "style": "simple", + "explode": false + }, + { + "name": "secretId", + "required": true, + "style": "simple", + "explode": false + } + ], + "queryParamDetails": [], + "headerParamDetails": [], + "cookieParams": [], + "publicCookieParams": [], + "cookieParamDetails": [], + "paramsModel": { + "publicName": "SecretDeleteParams" + }, + "response": { + "status": "200", + "contentType": "application/json", + "encoding": "json", + "contents": [ + { + "contentType": "application/json", + "encoding": "json" + } + ] + }, + "result": { + "successStatus": "200", + "errorStatuses": [ + "400", + "403", + "404", + "409", + "500", + "503" + ] + }, + "errorResponses": [ + { + "status": "400", + "contentType": "application/json", + "encoding": "json", + "contents": [ + { + "contentType": "application/json", + "encoding": "json" + } + ] + }, + { + "status": "403", + "contentType": "application/json", + "encoding": "json", + "contents": [ + { + "contentType": "application/json", + "encoding": "json" + } + ] + }, + { + "status": "404", + "contentType": "application/json", + "encoding": "json", + "contents": [ + { + "contentType": "application/json", + "encoding": "json" + } + ] + }, + { + "status": "409", + "contentType": "application/json", + "encoding": "json", + "contents": [ + { + "contentType": "application/json", + "encoding": "json" + } + ] + }, + { + "status": "500", + "contentType": "application/json", + "encoding": "json", + "contents": [ + { + "contentType": "application/json", + "encoding": "json" + } + ] + }, + { + "status": "503", + "contentType": "application/json", + "encoding": "json", + "contents": [ + { + "contentType": "application/json", + "encoding": "json" + } + ] + } + ], + "responseLinks": [], + "transport": "http" + }, + { + "resource": "organizations.settings", + "publicResource": "organizations.settings", + "operation": "retrieve", + "publicOperation": "retrieve", + "deprecated": false, + "method": "GET", "path": "/v1/organizations/{organizationId}/settings", "pathParams": [ "organizationId" @@ -12982,6 +13636,100 @@ "responseLinks": [], "transport": "http" }, + { + "resource": "artifacts", + "publicResource": "artifacts", + "operation": "retrieveAssetUrl", + "publicOperation": "retrieveAssetUrl", + "deprecated": false, + "method": "GET", + "path": "/v1/artifacts/assets/{assetId}", + "pathParams": [ + "assetId" + ], + "publicPathParams": [ + "assetId" + ], + "queryParams": [], + "publicQueryParams": [], + "headerParams": [], + "publicHeaderParams": [], + "bodyParams": [], + "publicBodyParams": [], + "bodyParamDetails": [], + "pathParamDetails": [ + { + "name": "assetId", + "required": true, + "style": "simple", + "explode": false + } + ], + "queryParamDetails": [], + "headerParamDetails": [], + "cookieParams": [], + "publicCookieParams": [], + "cookieParamDetails": [], + "paramsModel": { + "publicName": "ArtifactRetrieveAssetUrlParams" + }, + "response": { + "status": "200", + "contentType": "application/json", + "encoding": "json", + "contents": [ + { + "contentType": "application/json", + "encoding": "json" + } + ] + }, + "result": { + "successStatus": "200", + "errorStatuses": [ + "400", + "404", + "500" + ] + }, + "errorResponses": [ + { + "status": "400", + "contentType": "application/json", + "encoding": "json", + "contents": [ + { + "contentType": "application/json", + "encoding": "json" + } + ] + }, + { + "status": "404", + "contentType": "application/json", + "encoding": "json", + "contents": [ + { + "contentType": "application/json", + "encoding": "json" + } + ] + }, + { + "status": "500", + "contentType": "application/json", + "encoding": "json", + "contents": [ + { + "contentType": "application/json", + "encoding": "json" + } + ] + } + ], + "responseLinks": [], + "transport": "http" + }, { "resource": "artifacts", "publicResource": "artifacts", @@ -15770,9 +16518,11 @@ "limit", "excludePinned", "externalIds", + "folderId", "hasProject", "includeArchived", "includeTotal", + "inFolder", "parentSessionId", "participant", "pendingReviewerKeys", @@ -15793,9 +16543,11 @@ "limit", "excludePinned", "externalIds", + "folderId", "hasProject", "includeArchived", "includeTotal", + "inFolder", "parentSessionId", "participant", "pendingReviewerKeys", @@ -15858,6 +16610,12 @@ "style": "form", "explode": true }, + { + "name": "folderId", + "required": false, + "style": "form", + "explode": true + }, { "name": "hasProject", "required": false, @@ -15878,6 +16636,12 @@ "explode": true, "defaultValue": false }, + { + "name": "inFolder", + "required": false, + "style": "form", + "explode": true + }, { "name": "parentSessionId", "required": false, @@ -18941,6 +19705,110 @@ "responseLinks": [], "transport": "http" }, + { + "resource": "projects", + "publicResource": "projects", + "operation": "retrieveDefaults", + "publicOperation": "retrieveDefaults", + "deprecated": false, + "method": "GET", + "path": "/v1/projects/defaults", + "pathParams": [], + "publicPathParams": [], + "queryParams": [], + "publicQueryParams": [], + "headerParams": [], + "publicHeaderParams": [], + "bodyParams": [], + "publicBodyParams": [], + "bodyParamDetails": [], + "pathParamDetails": [], + "queryParamDetails": [], + "headerParamDetails": [], + "cookieParams": [], + "publicCookieParams": [], + "cookieParamDetails": [], + "response": { + "status": "200", + "contentType": "application/json", + "encoding": "json", + "contents": [ + { + "contentType": "application/json", + "encoding": "json" + } + ] + }, + "result": { + "successStatus": "200", + "errorStatuses": [ + "400", + "403", + "404", + "409", + "500" + ] + }, + "errorResponses": [ + { + "status": "400", + "contentType": "application/json", + "encoding": "json", + "contents": [ + { + "contentType": "application/json", + "encoding": "json" + } + ] + }, + { + "status": "403", + "contentType": "application/json", + "encoding": "json", + "contents": [ + { + "contentType": "application/json", + "encoding": "json" + } + ] + }, + { + "status": "404", + "contentType": "application/json", + "encoding": "json", + "contents": [ + { + "contentType": "application/json", + "encoding": "json" + } + ] + }, + { + "status": "409", + "contentType": "application/json", + "encoding": "json", + "contents": [ + { + "contentType": "application/json", + "encoding": "json" + } + ] + }, + { + "status": "500", + "contentType": "application/json", + "encoding": "json", + "contents": [ + { + "contentType": "application/json", + "encoding": "json" + } + ] + } + ], + "responseLinks": [], + "transport": "http" + }, { "resource": "projects", "publicResource": "projects", @@ -25349,7 +26217,259 @@ "publicIdentifier": "body" }, "response": { - "status": "201", + "status": "201", + "contentType": "application/json", + "encoding": "json", + "contents": [ + { + "contentType": "application/json", + "encoding": "json" + } + ] + }, + "result": { + "successStatus": "201", + "errorStatuses": [ + "400", + "403", + "404", + "409", + "500" + ] + }, + "errorResponses": [ + { + "status": "400", + "contentType": "application/json", + "encoding": "json", + "contents": [ + { + "contentType": "application/json", + "encoding": "json" + } + ] + }, + { + "status": "403", + "contentType": "application/json", + "encoding": "json", + "contents": [ + { + "contentType": "application/json", + "encoding": "json" + } + ] + }, + { + "status": "404", + "contentType": "application/json", + "encoding": "json", + "contents": [ + { + "contentType": "application/json", + "encoding": "json" + } + ] + }, + { + "status": "409", + "contentType": "application/json", + "encoding": "json", + "contents": [ + { + "contentType": "application/json", + "encoding": "json" + } + ] + }, + { + "status": "500", + "contentType": "application/json", + "encoding": "json", + "contents": [ + { + "contentType": "application/json", + "encoding": "json" + } + ] + } + ], + "responseLinks": [], + "transport": "http" + }, + { + "resource": "agents.runs", + "publicResource": "agents.runs", + "operation": "retrieve", + "publicOperation": "retrieve", + "deprecated": false, + "method": "GET", + "path": "/v1/agents/{agentId}/runs/{runId}", + "pathParams": [ + "agentId", + "runId" + ], + "publicPathParams": [ + "agentId", + "runId" + ], + "queryParams": [], + "publicQueryParams": [], + "headerParams": [], + "publicHeaderParams": [], + "bodyParams": [], + "publicBodyParams": [], + "bodyParamDetails": [], + "pathParamDetails": [ + { + "name": "agentId", + "required": true, + "style": "simple", + "explode": false + }, + { + "name": "runId", + "required": true, + "style": "simple", + "explode": false + } + ], + "queryParamDetails": [], + "headerParamDetails": [], + "cookieParams": [], + "publicCookieParams": [], + "cookieParamDetails": [], + "paramsModel": { + "publicName": "RunRetrieveParams" + }, + "response": { + "status": "200", + "contentType": "application/json", + "encoding": "json", + "contents": [ + { + "contentType": "application/json", + "encoding": "json" + } + ] + }, + "result": { + "successStatus": "200", + "errorStatuses": [ + "400", + "404", + "409", + "500" + ] + }, + "errorResponses": [ + { + "status": "400", + "contentType": "application/json", + "encoding": "json", + "contents": [ + { + "contentType": "application/json", + "encoding": "json" + } + ] + }, + { + "status": "404", + "contentType": "application/json", + "encoding": "json", + "contents": [ + { + "contentType": "application/json", + "encoding": "json" + } + ] + }, + { + "status": "409", + "contentType": "application/json", + "encoding": "json", + "contents": [ + { + "contentType": "application/json", + "encoding": "json" + } + ] + }, + { + "status": "500", + "contentType": "application/json", + "encoding": "json", + "contents": [ + { + "contentType": "application/json", + "encoding": "json" + } + ] + } + ], + "responseLinks": [], + "transport": "http" + }, + { + "resource": "agents.contentRevisions", + "publicResource": "agents.contentRevisions", + "operation": "list", + "publicOperation": "list", + "deprecated": false, + "method": "GET", + "path": "/v1/agents/{agentId}/content-revisions", + "pathParams": [ + "agentId" + ], + "publicPathParams": [ + "agentId" + ], + "queryParams": [ + "cursor", + "limit" + ], + "publicQueryParams": [ + "cursor", + "limit" + ], + "headerParams": [], + "publicHeaderParams": [], + "bodyParams": [], + "publicBodyParams": [], + "bodyParamDetails": [], + "pathParamDetails": [ + { + "name": "agentId", + "required": true, + "style": "simple", + "explode": false + } + ], + "queryParamDetails": [ + { + "name": "cursor", + "required": false, + "style": "form", + "explode": true + }, + { + "name": "limit", + "required": false, + "style": "form", + "explode": true, + "defaultValue": 50 + } + ], + "headerParamDetails": [], + "cookieParams": [], + "publicCookieParams": [], + "cookieParamDetails": [], + "paramsModel": { + "publicName": "ContentRevisionListParams" + }, + "response": { + "status": "200", "contentType": "application/json", "encoding": "json", "contents": [ @@ -25360,10 +26480,9 @@ ] }, "result": { - "successStatus": "201", + "successStatus": "200", "errorStatuses": [ "400", - "403", "404", "409", "500" @@ -25381,17 +26500,6 @@ } ] }, - { - "status": "403", - "contentType": "application/json", - "encoding": "json", - "contents": [ - { - "contentType": "application/json", - "encoding": "json" - } - ] - }, { "status": "404", "contentType": "application/json", @@ -25430,20 +26538,20 @@ "transport": "http" }, { - "resource": "agents.runs", - "publicResource": "agents.runs", + "resource": "agents.contentRevisions", + "publicResource": "agents.contentRevisions", "operation": "retrieve", "publicOperation": "retrieve", "deprecated": false, "method": "GET", - "path": "/v1/agents/{agentId}/runs/{runId}", + "path": "/v1/agents/{agentId}/content-revisions/{version}", "pathParams": [ "agentId", - "runId" + "version" ], "publicPathParams": [ "agentId", - "runId" + "version" ], "queryParams": [], "publicQueryParams": [], @@ -25460,7 +26568,7 @@ "explode": false }, { - "name": "runId", + "name": "version", "required": true, "style": "simple", "explode": false @@ -25472,7 +26580,7 @@ "publicCookieParams": [], "cookieParamDetails": [], "paramsModel": { - "publicName": "RunRetrieveParams" + "publicName": "ContentRevisionRetrieveParams" }, "response": { "status": "200", @@ -25546,59 +26654,69 @@ { "resource": "agents.contentRevisions", "publicResource": "agents.contentRevisions", - "operation": "list", - "publicOperation": "list", + "operation": "restore", + "publicOperation": "restore", "deprecated": false, - "method": "GET", - "path": "/v1/agents/{agentId}/content-revisions", + "method": "POST", + "path": "/v1/agents/{agentId}/content-revisions/{version}/restore", "pathParams": [ - "agentId" + "agentId", + "version" ], "publicPathParams": [ - "agentId" - ], - "queryParams": [ - "cursor", - "limit" - ], - "publicQueryParams": [ - "cursor", - "limit" + "agentId", + "version" ], + "queryParams": [], + "publicQueryParams": [], "headerParams": [], "publicHeaderParams": [], - "bodyParams": [], - "publicBodyParams": [], - "bodyParamDetails": [], + "bodyParams": [ + "expectedContentVersion" + ], + "publicBodyParams": [ + "expectedContentVersion" + ], + "bodyParamDetails": [ + { + "name": "expectedContentVersion", + "required": true + } + ], "pathParamDetails": [ { "name": "agentId", "required": true, "style": "simple", "explode": false - } - ], - "queryParamDetails": [ - { - "name": "cursor", - "required": false, - "style": "form", - "explode": true }, { - "name": "limit", - "required": false, - "style": "form", - "explode": true, - "defaultValue": 50 + "name": "version", + "required": true, + "style": "simple", + "explode": false } ], + "queryParamDetails": [], "headerParamDetails": [], "cookieParams": [], "publicCookieParams": [], "cookieParamDetails": [], "paramsModel": { - "publicName": "ContentRevisionListParams" + "publicName": "ContentRevisionRestoreParams" + }, + "requestBody": { + "contentType": "application/json", + "encoding": "json", + "contents": [ + { + "contentType": "application/json", + "encoding": "json" + } + ], + "required": true, + "publicName": "body", + "publicIdentifier": "body" }, "response": { "status": "200", @@ -25670,49 +26788,101 @@ "transport": "http" }, { - "resource": "agents.contentRevisions", - "publicResource": "agents.contentRevisions", - "operation": "retrieve", - "publicOperation": "retrieve", + "resource": "repositories", + "publicResource": "repositories", + "operation": "list", + "publicOperation": "list", "deprecated": false, "method": "GET", - "path": "/v1/agents/{agentId}/content-revisions/{version}", - "pathParams": [ - "agentId", - "version" + "path": "/v1/repositories", + "pathParams": [], + "publicPathParams": [], + "queryParams": [ + "cursor", + "limit", + "enabled", + "ids", + "integrationId", + "order", + "search", + "sort" ], - "publicPathParams": [ - "agentId", - "version" + "publicQueryParams": [ + "cursor", + "limit", + "enabled", + "ids", + "integrationId", + "order", + "search", + "sort" ], - "queryParams": [], - "publicQueryParams": [], "headerParams": [], "publicHeaderParams": [], "bodyParams": [], "publicBodyParams": [], "bodyParamDetails": [], - "pathParamDetails": [ + "pathParamDetails": [], + "queryParamDetails": [ { - "name": "agentId", - "required": true, - "style": "simple", - "explode": false + "name": "cursor", + "required": false, + "style": "form", + "explode": true }, { - "name": "version", - "required": true, - "style": "simple", - "explode": false + "name": "limit", + "required": false, + "style": "form", + "explode": true, + "defaultValue": 50 + }, + { + "name": "enabled", + "required": false, + "style": "form", + "explode": true, + "defaultValue": "all" + }, + { + "name": "ids", + "required": false, + "style": "form", + "explode": true + }, + { + "name": "integrationId", + "required": false, + "style": "form", + "explode": true + }, + { + "name": "order", + "required": false, + "style": "form", + "explode": true, + "defaultValue": "desc" + }, + { + "name": "search", + "required": false, + "style": "form", + "explode": true + }, + { + "name": "sort", + "required": false, + "style": "form", + "explode": true, + "defaultValue": "pullRequests" } ], - "queryParamDetails": [], "headerParamDetails": [], "cookieParams": [], "publicCookieParams": [], "cookieParamDetails": [], "paramsModel": { - "publicName": "ContentRevisionRetrieveParams" + "publicName": "RepositoryListParams" }, "response": { "status": "200", @@ -25729,9 +26899,13 @@ "successStatus": "200", "errorStatuses": [ "400", + "401", + "403", "404", "409", - "500" + "500", + "502", + "504" ] }, "errorResponses": [ @@ -25746,6 +26920,28 @@ } ] }, + { + "status": "401", + "contentType": "application/json", + "encoding": "json", + "contents": [ + { + "contentType": "application/json", + "encoding": "json" + } + ] + }, + { + "status": "403", + "contentType": "application/json", + "encoding": "json", + "contents": [ + { + "contentType": "application/json", + "encoding": "json" + } + ] + }, { "status": "404", "contentType": "application/json", @@ -25758,7 +26954,29 @@ ] }, { - "status": "409", + "status": "409", + "contentType": "application/json", + "encoding": "json", + "contents": [ + { + "contentType": "application/json", + "encoding": "json" + } + ] + }, + { + "status": "500", + "contentType": "application/json", + "encoding": "json", + "contents": [ + { + "contentType": "application/json", + "encoding": "json" + } + ] + }, + { + "status": "502", "contentType": "application/json", "encoding": "json", "contents": [ @@ -25769,7 +26987,7 @@ ] }, { - "status": "500", + "status": "504", "contentType": "application/json", "encoding": "json", "contents": [ @@ -25784,46 +27002,29 @@ "transport": "http" }, { - "resource": "agents.contentRevisions", - "publicResource": "agents.contentRevisions", - "operation": "restore", - "publicOperation": "restore", + "resource": "repositories", + "publicResource": "repositories", + "operation": "retrieve", + "publicOperation": "retrieve", "deprecated": false, - "method": "POST", - "path": "/v1/agents/{agentId}/content-revisions/{version}/restore", + "method": "GET", + "path": "/v1/repositories/{repositoryId}", "pathParams": [ - "agentId", - "version" + "repositoryId" ], "publicPathParams": [ - "agentId", - "version" + "repositoryId" ], "queryParams": [], "publicQueryParams": [], "headerParams": [], "publicHeaderParams": [], - "bodyParams": [ - "expectedContentVersion" - ], - "publicBodyParams": [ - "expectedContentVersion" - ], - "bodyParamDetails": [ - { - "name": "expectedContentVersion", - "required": true - } - ], + "bodyParams": [], + "publicBodyParams": [], + "bodyParamDetails": [], "pathParamDetails": [ { - "name": "agentId", - "required": true, - "style": "simple", - "explode": false - }, - { - "name": "version", + "name": "repositoryId", "required": true, "style": "simple", "explode": false @@ -25835,20 +27036,7 @@ "publicCookieParams": [], "cookieParamDetails": [], "paramsModel": { - "publicName": "ContentRevisionRestoreParams" - }, - "requestBody": { - "contentType": "application/json", - "encoding": "json", - "contents": [ - { - "contentType": "application/json", - "encoding": "json" - } - ], - "required": true, - "publicName": "body", - "publicIdentifier": "body" + "publicName": "RepositoryRetrieveParams" }, "response": { "status": "200", @@ -25865,9 +27053,13 @@ "successStatus": "200", "errorStatuses": [ "400", + "401", + "403", "404", "409", - "500" + "500", + "502", + "504" ] }, "errorResponses": [ @@ -25882,6 +27074,28 @@ } ] }, + { + "status": "401", + "contentType": "application/json", + "encoding": "json", + "contents": [ + { + "contentType": "application/json", + "encoding": "json" + } + ] + }, + { + "status": "403", + "contentType": "application/json", + "encoding": "json", + "contents": [ + { + "contentType": "application/json", + "encoding": "json" + } + ] + }, { "status": "404", "contentType": "application/json", @@ -25914,6 +27128,28 @@ "encoding": "json" } ] + }, + { + "status": "502", + "contentType": "application/json", + "encoding": "json", + "contents": [ + { + "contentType": "application/json", + "encoding": "json" + } + ] + }, + { + "status": "504", + "contentType": "application/json", + "encoding": "json", + "contents": [ + { + "contentType": "application/json", + "encoding": "json" + } + ] } ], "responseLinks": [], @@ -25922,99 +27158,73 @@ { "resource": "repositories", "publicResource": "repositories", - "operation": "list", - "publicOperation": "list", + "operation": "update", + "publicOperation": "update", "deprecated": false, - "method": "GET", - "path": "/v1/repositories", - "pathParams": [], - "publicPathParams": [], - "queryParams": [ - "cursor", - "limit", - "enabled", - "ids", - "integrationId", - "order", - "search", - "sort" + "method": "PATCH", + "path": "/v1/repositories/{repositoryId}", + "pathParams": [ + "repositoryId" ], - "publicQueryParams": [ - "cursor", - "limit", - "enabled", - "ids", - "integrationId", - "order", - "search", - "sort" + "publicPathParams": [ + "repositoryId" ], + "queryParams": [], + "publicQueryParams": [], "headerParams": [], "publicHeaderParams": [], - "bodyParams": [], - "publicBodyParams": [], - "bodyParamDetails": [], - "pathParamDetails": [], - "queryParamDetails": [ - { - "name": "cursor", - "required": false, - "style": "form", - "explode": true - }, - { - "name": "limit", - "required": false, - "style": "form", - "explode": true, - "defaultValue": 50 - }, + "bodyParams": [ + "enabled", + "baseBranch", + "targetBranch" + ], + "publicBodyParams": [ + "enabled", + "baseBranch", + "targetBranch" + ], + "bodyParamDetails": [ { "name": "enabled", - "required": false, - "style": "form", - "explode": true, - "defaultValue": "all" - }, - { - "name": "ids", - "required": false, - "style": "form", - "explode": true - }, - { - "name": "integrationId", - "required": false, - "style": "form", - "explode": true + "required": false }, { - "name": "order", - "required": false, - "style": "form", - "explode": true, - "defaultValue": "desc" + "name": "baseBranch", + "required": false }, { - "name": "search", - "required": false, - "style": "form", - "explode": true - }, + "name": "targetBranch", + "required": false + } + ], + "pathParamDetails": [ { - "name": "sort", - "required": false, - "style": "form", - "explode": true, - "defaultValue": "pullRequests" + "name": "repositoryId", + "required": true, + "style": "simple", + "explode": false } ], + "queryParamDetails": [], "headerParamDetails": [], "cookieParams": [], "publicCookieParams": [], "cookieParamDetails": [], "paramsModel": { - "publicName": "RepositoryListParams" + "publicName": "RepositoryUpdateParams" + }, + "requestBody": { + "contentType": "application/json", + "encoding": "json", + "contents": [ + { + "contentType": "application/json", + "encoding": "json" + } + ], + "required": true, + "publicName": "body", + "publicIdentifier": "body" }, "response": { "status": "200", @@ -26134,41 +27344,115 @@ "transport": "http" }, { - "resource": "repositories", - "publicResource": "repositories", - "operation": "retrieve", - "publicOperation": "retrieve", + "resource": "integrations", + "publicResource": "integrations", + "operation": "list", + "publicOperation": "list", "deprecated": false, "method": "GET", - "path": "/v1/repositories/{repositoryId}", - "pathParams": [ - "repositoryId" + "path": "/v1/integrations", + "pathParams": [], + "publicPathParams": [], + "queryParams": [ + "cursor", + "limit", + "enabled", + "hasEnabledRepositories", + "ids", + "search", + "type", + "createdAfter", + "excludeOrganizationName", + "includeTotal" ], - "publicPathParams": [ - "repositoryId" + "publicQueryParams": [ + "cursor", + "limit", + "enabled", + "hasEnabledRepositories", + "ids", + "search", + "type", + "createdAfter", + "excludeOrganizationName", + "includeTotal" ], - "queryParams": [], - "publicQueryParams": [], "headerParams": [], "publicHeaderParams": [], "bodyParams": [], "publicBodyParams": [], "bodyParamDetails": [], - "pathParamDetails": [ + "pathParamDetails": [], + "queryParamDetails": [ { - "name": "repositoryId", - "required": true, - "style": "simple", - "explode": false + "name": "cursor", + "required": false, + "style": "form", + "explode": true + }, + { + "name": "limit", + "required": false, + "style": "form", + "explode": true, + "defaultValue": 50 + }, + { + "name": "enabled", + "required": false, + "style": "form", + "explode": true + }, + { + "name": "hasEnabledRepositories", + "required": false, + "style": "form", + "explode": true + }, + { + "name": "ids", + "required": false, + "style": "form", + "explode": true + }, + { + "name": "search", + "required": false, + "style": "form", + "explode": true + }, + { + "name": "type", + "required": false, + "style": "form", + "explode": true + }, + { + "name": "createdAfter", + "required": false, + "style": "form", + "explode": true + }, + { + "name": "excludeOrganizationName", + "required": false, + "style": "form", + "explode": true + }, + { + "name": "includeTotal", + "required": false, + "style": "form", + "explode": true, + "defaultValue": false } ], - "queryParamDetails": [], "headerParamDetails": [], "cookieParams": [], "publicCookieParams": [], "cookieParamDetails": [], "paramsModel": { - "publicName": "RepositoryRetrieveParams" + "publicName": "IntegrationListParams" }, "response": { "status": "200", @@ -26191,6 +27475,7 @@ "409", "500", "502", + "503", "504" ] }, @@ -26272,6 +27557,17 @@ } ] }, + { + "status": "503", + "contentType": "application/json", + "encoding": "json", + "contents": [ + { + "contentType": "application/json", + "encoding": "json" + } + ] + }, { "status": "504", "contentType": "application/json", @@ -26288,62 +27584,39 @@ "transport": "http" }, { - "resource": "repositories", - "publicResource": "repositories", - "operation": "update", - "publicOperation": "update", + "resource": "integrations", + "publicResource": "integrations", + "operation": "create", + "publicOperation": "create", "deprecated": false, - "method": "PATCH", - "path": "/v1/repositories/{repositoryId}", - "pathParams": [ - "repositoryId" - ], - "publicPathParams": [ - "repositoryId" - ], + "method": "POST", + "path": "/v1/integrations", + "pathParams": [], + "publicPathParams": [], "queryParams": [], "publicQueryParams": [], "headerParams": [], "publicHeaderParams": [], "bodyParams": [ - "enabled", - "baseBranch", - "targetBranch" + "body" ], "publicBodyParams": [ - "enabled", - "baseBranch", - "targetBranch" + "body" ], "bodyParamDetails": [ { - "name": "enabled", - "required": false - }, - { - "name": "baseBranch", - "required": false - }, - { - "name": "targetBranch", - "required": false - } - ], - "pathParamDetails": [ - { - "name": "repositoryId", - "required": true, - "style": "simple", - "explode": false + "name": "body", + "required": true } ], + "pathParamDetails": [], "queryParamDetails": [], "headerParamDetails": [], "cookieParams": [], "publicCookieParams": [], "cookieParamDetails": [], "paramsModel": { - "publicName": "RepositoryUpdateParams" + "publicName": "IntegrationCreateParams" }, "requestBody": { "contentType": "application/json", @@ -26359,7 +27632,7 @@ "publicIdentifier": "body" }, "response": { - "status": "200", + "status": "201", "contentType": "application/json", "encoding": "json", "contents": [ @@ -26370,7 +27643,7 @@ ] }, "result": { - "successStatus": "200", + "successStatus": "201", "errorStatuses": [ "400", "401", @@ -26379,6 +27652,7 @@ "409", "500", "502", + "503", "504" ] }, @@ -26461,7 +27735,7 @@ ] }, { - "status": "504", + "status": "503", "contentType": "application/json", "encoding": "json", "contents": [ @@ -26470,121 +27744,58 @@ "encoding": "json" } ] - } - ], - "responseLinks": [], - "transport": "http" - }, - { - "resource": "integrations", - "publicResource": "integrations", - "operation": "list", - "publicOperation": "list", - "deprecated": false, - "method": "GET", - "path": "/v1/integrations", - "pathParams": [], - "publicPathParams": [], - "queryParams": [ - "cursor", - "limit", - "enabled", - "hasEnabledRepositories", - "ids", - "search", - "type", - "createdAfter", - "excludeOrganizationName", - "includeTotal" - ], - "publicQueryParams": [ - "cursor", - "limit", - "enabled", - "hasEnabledRepositories", - "ids", - "search", - "type", - "createdAfter", - "excludeOrganizationName", - "includeTotal" - ], - "headerParams": [], - "publicHeaderParams": [], - "bodyParams": [], - "publicBodyParams": [], - "bodyParamDetails": [], - "pathParamDetails": [], - "queryParamDetails": [ - { - "name": "cursor", - "required": false, - "style": "form", - "explode": true - }, - { - "name": "limit", - "required": false, - "style": "form", - "explode": true, - "defaultValue": 50 - }, - { - "name": "enabled", - "required": false, - "style": "form", - "explode": true - }, - { - "name": "hasEnabledRepositories", - "required": false, - "style": "form", - "explode": true - }, - { - "name": "ids", - "required": false, - "style": "form", - "explode": true - }, - { - "name": "search", - "required": false, - "style": "form", - "explode": true - }, - { - "name": "type", - "required": false, - "style": "form", - "explode": true - }, - { - "name": "createdAfter", - "required": false, - "style": "form", - "explode": true }, { - "name": "excludeOrganizationName", - "required": false, - "style": "form", - "explode": true - }, + "status": "504", + "contentType": "application/json", + "encoding": "json", + "contents": [ + { + "contentType": "application/json", + "encoding": "json" + } + ] + } + ], + "responseLinks": [], + "transport": "http" + }, + { + "resource": "integrations", + "publicResource": "integrations", + "operation": "retrieve", + "publicOperation": "retrieve", + "deprecated": false, + "method": "GET", + "path": "/v1/integrations/{integrationId}", + "pathParams": [ + "integrationId" + ], + "publicPathParams": [ + "integrationId" + ], + "queryParams": [], + "publicQueryParams": [], + "headerParams": [], + "publicHeaderParams": [], + "bodyParams": [], + "publicBodyParams": [], + "bodyParamDetails": [], + "pathParamDetails": [ { - "name": "includeTotal", - "required": false, - "style": "form", - "explode": true, - "defaultValue": false + "name": "integrationId", + "required": true, + "style": "simple", + "explode": false } ], + "queryParamDetails": [], "headerParamDetails": [], "cookieParams": [], "publicCookieParams": [], "cookieParamDetails": [], "paramsModel": { - "publicName": "IntegrationListParams" + "publicName": "IntegrationRetrieveParams" }, "response": { "status": "200", @@ -26718,13 +27929,17 @@ { "resource": "integrations", "publicResource": "integrations", - "operation": "create", - "publicOperation": "create", + "operation": "update", + "publicOperation": "update", "deprecated": false, - "method": "POST", - "path": "/v1/integrations", - "pathParams": [], - "publicPathParams": [], + "method": "PATCH", + "path": "/v1/integrations/{integrationId}", + "pathParams": [ + "integrationId" + ], + "publicPathParams": [ + "integrationId" + ], "queryParams": [], "publicQueryParams": [], "headerParams": [], @@ -26741,14 +27956,21 @@ "required": true } ], - "pathParamDetails": [], + "pathParamDetails": [ + { + "name": "integrationId", + "required": true, + "style": "simple", + "explode": false + } + ], "queryParamDetails": [], "headerParamDetails": [], "cookieParams": [], "publicCookieParams": [], "cookieParamDetails": [], "paramsModel": { - "publicName": "IntegrationCreateParams" + "publicName": "IntegrationUpdateParams" }, "requestBody": { "contentType": "application/json", @@ -26764,7 +27986,7 @@ "publicIdentifier": "body" }, "response": { - "status": "201", + "status": "200", "contentType": "application/json", "encoding": "json", "contents": [ @@ -26775,7 +27997,7 @@ ] }, "result": { - "successStatus": "201", + "successStatus": "200", "errorStatuses": [ "400", "401", @@ -26895,10 +28117,10 @@ { "resource": "integrations", "publicResource": "integrations", - "operation": "retrieve", - "publicOperation": "retrieve", + "operation": "delete", + "publicOperation": "delete", "deprecated": false, - "method": "GET", + "method": "DELETE", "path": "/v1/integrations/{integrationId}", "pathParams": [ "integrationId" @@ -26927,7 +28149,7 @@ "publicCookieParams": [], "cookieParamDetails": [], "paramsModel": { - "publicName": "IntegrationRetrieveParams" + "publicName": "IntegrationDeleteParams" }, "response": { "status": "200", @@ -27061,33 +28283,30 @@ { "resource": "integrations", "publicResource": "integrations", - "operation": "update", - "publicOperation": "update", + "operation": "authorize", + "publicOperation": "authorize", "deprecated": false, - "method": "PATCH", - "path": "/v1/integrations/{integrationId}", + "method": "POST", + "path": "/v1/integrations/{integrationId}/authorize", "pathParams": [ "integrationId" ], "publicPathParams": [ "integrationId" ], - "queryParams": [], - "publicQueryParams": [], - "headerParams": [], - "publicHeaderParams": [], - "bodyParams": [ - "body" - ], - "publicBodyParams": [ - "body" + "queryParams": [ + "returnUrl", + "capability" ], - "bodyParamDetails": [ - { - "name": "body", - "required": true - } + "publicQueryParams": [ + "returnUrl", + "capability" ], + "headerParams": [], + "publicHeaderParams": [], + "bodyParams": [], + "publicBodyParams": [], + "bodyParamDetails": [], "pathParamDetails": [ { "name": "integrationId", @@ -27096,26 +28315,26 @@ "explode": false } ], - "queryParamDetails": [], + "queryParamDetails": [ + { + "name": "returnUrl", + "required": false, + "style": "form", + "explode": true + }, + { + "name": "capability", + "required": false, + "style": "form", + "explode": true + } + ], "headerParamDetails": [], "cookieParams": [], "publicCookieParams": [], "cookieParamDetails": [], "paramsModel": { - "publicName": "IntegrationUpdateParams" - }, - "requestBody": { - "contentType": "application/json", - "encoding": "json", - "contents": [ - { - "contentType": "application/json", - "encoding": "json" - } - ], - "required": true, - "publicName": "body", - "publicIdentifier": "body" + "publicName": "IntegrationAuthorizeParams" }, "response": { "status": "200", @@ -27249,11 +28468,11 @@ { "resource": "integrations", "publicResource": "integrations", - "operation": "delete", - "publicOperation": "delete", + "operation": "test", + "publicOperation": "test", "deprecated": false, - "method": "DELETE", - "path": "/v1/integrations/{integrationId}", + "method": "POST", + "path": "/v1/integrations/{integrationId}/test", "pathParams": [ "integrationId" ], @@ -27281,7 +28500,7 @@ "publicCookieParams": [], "cookieParamDetails": [], "paramsModel": { - "publicName": "IntegrationDeleteParams" + "publicName": "IntegrationTestParams" }, "response": { "status": "200", @@ -27415,30 +28634,33 @@ { "resource": "integrations", "publicResource": "integrations", - "operation": "authorize", - "publicOperation": "authorize", + "operation": "sync", + "publicOperation": "sync", "deprecated": false, "method": "POST", - "path": "/v1/integrations/{integrationId}/authorize", + "path": "/v1/integrations/{integrationId}/sync", "pathParams": [ "integrationId" ], "publicPathParams": [ "integrationId" ], - "queryParams": [ - "returnUrl", - "capability" - ], - "publicQueryParams": [ - "returnUrl", - "capability" - ], + "queryParams": [], + "publicQueryParams": [], "headerParams": [], "publicHeaderParams": [], - "bodyParams": [], - "publicBodyParams": [], - "bodyParamDetails": [], + "bodyParams": [ + "mode" + ], + "publicBodyParams": [ + "mode" + ], + "bodyParamDetails": [ + { + "name": "mode", + "required": false + } + ], "pathParamDetails": [ { "name": "integrationId", @@ -27447,26 +28669,26 @@ "explode": false } ], - "queryParamDetails": [ - { - "name": "returnUrl", - "required": false, - "style": "form", - "explode": true - }, - { - "name": "capability", - "required": false, - "style": "form", - "explode": true - } - ], + "queryParamDetails": [], "headerParamDetails": [], "cookieParams": [], "publicCookieParams": [], "cookieParamDetails": [], "paramsModel": { - "publicName": "IntegrationAuthorizeParams" + "publicName": "IntegrationSyncParams" + }, + "requestBody": { + "contentType": "application/json", + "encoding": "json", + "contents": [ + { + "contentType": "application/json", + "encoding": "json" + } + ], + "required": true, + "publicName": "body", + "publicIdentifier": "body" }, "response": { "status": "200", @@ -27600,17 +28822,13 @@ { "resource": "integrations", "publicResource": "integrations", - "operation": "test", - "publicOperation": "test", + "operation": "syncAll", + "publicOperation": "syncAll", "deprecated": false, "method": "POST", - "path": "/v1/integrations/{integrationId}/test", - "pathParams": [ - "integrationId" - ], - "publicPathParams": [ - "integrationId" - ], + "path": "/v1/integrations/sync", + "pathParams": [], + "publicPathParams": [], "queryParams": [], "publicQueryParams": [], "headerParams": [], @@ -27618,21 +28836,24 @@ "bodyParams": [], "publicBodyParams": [], "bodyParamDetails": [], - "pathParamDetails": [ - { - "name": "integrationId", - "required": true, - "style": "simple", - "explode": false - } - ], + "pathParamDetails": [], "queryParamDetails": [], "headerParamDetails": [], "cookieParams": [], "publicCookieParams": [], "cookieParamDetails": [], - "paramsModel": { - "publicName": "IntegrationTestParams" + "requestBody": { + "contentType": "application/json", + "encoding": "json", + "contents": [ + { + "contentType": "application/json", + "encoding": "json" + } + ], + "required": true, + "publicName": "body", + "publicIdentifier": "body" }, "response": { "status": "200", @@ -27766,61 +28987,39 @@ { "resource": "integrations", "publicResource": "integrations", - "operation": "sync", - "publicOperation": "sync", + "operation": "retrieveSyncStatus", + "publicOperation": "retrieveSyncStatus", "deprecated": false, - "method": "POST", - "path": "/v1/integrations/{integrationId}/sync", - "pathParams": [ + "method": "GET", + "path": "/v1/integrations/sync/status", + "pathParams": [], + "publicPathParams": [], + "queryParams": [ "integrationId" ], - "publicPathParams": [ + "publicQueryParams": [ "integrationId" ], - "queryParams": [], - "publicQueryParams": [], "headerParams": [], "publicHeaderParams": [], - "bodyParams": [ - "mode" - ], - "publicBodyParams": [ - "mode" - ], - "bodyParamDetails": [ - { - "name": "mode", - "required": false - } - ], - "pathParamDetails": [ + "bodyParams": [], + "publicBodyParams": [], + "bodyParamDetails": [], + "pathParamDetails": [], + "queryParamDetails": [ { "name": "integrationId", - "required": true, - "style": "simple", - "explode": false + "required": false, + "style": "form", + "explode": true } ], - "queryParamDetails": [], "headerParamDetails": [], "cookieParams": [], "publicCookieParams": [], "cookieParamDetails": [], "paramsModel": { - "publicName": "IntegrationSyncParams" - }, - "requestBody": { - "contentType": "application/json", - "encoding": "json", - "contents": [ - { - "contentType": "application/json", - "encoding": "json" - } - ], - "required": true, - "publicName": "body", - "publicIdentifier": "body" + "publicName": "IntegrationRetrieveSyncStatusParams" }, "response": { "status": "200", @@ -27954,13 +29153,17 @@ { "resource": "integrations", "publicResource": "integrations", - "operation": "syncAll", - "publicOperation": "syncAll", + "operation": "retrieveRateLimit", + "publicOperation": "retrieveRateLimit", "deprecated": false, - "method": "POST", - "path": "/v1/integrations/sync", - "pathParams": [], - "publicPathParams": [], + "method": "GET", + "path": "/v1/integrations/{integrationId}/rate-limit", + "pathParams": [ + "integrationId" + ], + "publicPathParams": [ + "integrationId" + ], "queryParams": [], "publicQueryParams": [], "headerParams": [], @@ -27968,24 +29171,21 @@ "bodyParams": [], "publicBodyParams": [], "bodyParamDetails": [], - "pathParamDetails": [], + "pathParamDetails": [ + { + "name": "integrationId", + "required": true, + "style": "simple", + "explode": false + } + ], "queryParamDetails": [], "headerParamDetails": [], "cookieParams": [], "publicCookieParams": [], "cookieParamDetails": [], - "requestBody": { - "contentType": "application/json", - "encoding": "json", - "contents": [ - { - "contentType": "application/json", - "encoding": "json" - } - ], - "required": true, - "publicName": "body", - "publicIdentifier": "body" + "paramsModel": { + "publicName": "IntegrationRetrieveRateLimitParams" }, "response": { "status": "200", @@ -28119,31 +29319,51 @@ { "resource": "integrations", "publicResource": "integrations", - "operation": "retrieveSyncStatus", - "publicOperation": "retrieveSyncStatus", + "operation": "listSentryEnvironments", + "publicOperation": "listSentryEnvironments", "deprecated": false, "method": "GET", - "path": "/v1/integrations/sync/status", - "pathParams": [], - "publicPathParams": [], - "queryParams": [ + "path": "/v1/integrations/{integrationId}/sentry-environments", + "pathParams": [ "integrationId" ], - "publicQueryParams": [ + "publicPathParams": [ "integrationId" ], + "queryParams": [ + "cursor", + "limit" + ], + "publicQueryParams": [ + "cursor", + "limit" + ], "headerParams": [], "publicHeaderParams": [], "bodyParams": [], "publicBodyParams": [], "bodyParamDetails": [], - "pathParamDetails": [], - "queryParamDetails": [ + "pathParamDetails": [ { "name": "integrationId", + "required": true, + "style": "simple", + "explode": false + } + ], + "queryParamDetails": [ + { + "name": "cursor", "required": false, "style": "form", "explode": true + }, + { + "name": "limit", + "required": false, + "style": "form", + "explode": true, + "defaultValue": 50 } ], "headerParamDetails": [], @@ -28151,7 +29371,7 @@ "publicCookieParams": [], "cookieParamDetails": [], "paramsModel": { - "publicName": "IntegrationRetrieveSyncStatusParams" + "publicName": "IntegrationListSentryEnvironmentsParams" }, "response": { "status": "200", @@ -28285,19 +29505,27 @@ { "resource": "integrations", "publicResource": "integrations", - "operation": "retrieveRateLimit", - "publicOperation": "retrieveRateLimit", + "operation": "listSlackChannels", + "publicOperation": "listSlackChannels", "deprecated": false, "method": "GET", - "path": "/v1/integrations/{integrationId}/rate-limit", + "path": "/v1/integrations/{integrationId}/slack-channels", "pathParams": [ "integrationId" ], "publicPathParams": [ "integrationId" ], - "queryParams": [], - "publicQueryParams": [], + "queryParams": [ + "cursor", + "limit", + "search" + ], + "publicQueryParams": [ + "cursor", + "limit", + "search" + ], "headerParams": [], "publicHeaderParams": [], "bodyParams": [], @@ -28311,13 +29539,33 @@ "explode": false } ], - "queryParamDetails": [], + "queryParamDetails": [ + { + "name": "cursor", + "required": false, + "style": "form", + "explode": true + }, + { + "name": "limit", + "required": false, + "style": "form", + "explode": true, + "defaultValue": 50 + }, + { + "name": "search", + "required": false, + "style": "form", + "explode": true + } + ], "headerParamDetails": [], "cookieParams": [], "publicCookieParams": [], "cookieParamDetails": [], "paramsModel": { - "publicName": "IntegrationRetrieveRateLimitParams" + "publicName": "IntegrationListSlackChannelsParams" }, "response": { "status": "200", @@ -28449,40 +29697,31 @@ "transport": "http" }, { - "resource": "integrations", - "publicResource": "integrations", - "operation": "listSentryEnvironments", - "publicOperation": "listSentryEnvironments", + "resource": "integrations.providers", + "publicResource": "integrations.providers", + "operation": "list", + "publicOperation": "list", "deprecated": false, "method": "GET", - "path": "/v1/integrations/{integrationId}/sentry-environments", - "pathParams": [ - "integrationId" - ], - "publicPathParams": [ - "integrationId" - ], + "path": "/v1/integrations/providers", + "pathParams": [], + "publicPathParams": [], "queryParams": [ "cursor", - "limit" + "limit", + "returnUrl" ], "publicQueryParams": [ "cursor", - "limit" + "limit", + "returnUrl" ], "headerParams": [], "publicHeaderParams": [], "bodyParams": [], "publicBodyParams": [], "bodyParamDetails": [], - "pathParamDetails": [ - { - "name": "integrationId", - "required": true, - "style": "simple", - "explode": false - } - ], + "pathParamDetails": [], "queryParamDetails": [ { "name": "cursor", @@ -28496,6 +29735,12 @@ "style": "form", "explode": true, "defaultValue": 50 + }, + { + "name": "returnUrl", + "required": false, + "style": "form", + "explode": true } ], "headerParamDetails": [], @@ -28503,7 +29748,7 @@ "publicCookieParams": [], "cookieParamDetails": [], "paramsModel": { - "publicName": "IntegrationListSentryEnvironmentsParams" + "publicName": "ProviderListParams" }, "response": { "status": "200", @@ -28635,69 +29880,70 @@ "transport": "http" }, { - "resource": "integrations", - "publicResource": "integrations", - "operation": "listSlackChannels", - "publicOperation": "listSlackChannels", + "resource": "integrations.providers", + "publicResource": "integrations.providers", + "operation": "discoverSnykOrganizations", + "publicOperation": "discoverSnykOrganizations", "deprecated": false, - "method": "GET", - "path": "/v1/integrations/{integrationId}/slack-channels", - "pathParams": [ - "integrationId" - ], - "publicPathParams": [ - "integrationId" - ], - "queryParams": [ + "method": "POST", + "path": "/v1/integrations/providers/snyk/organizations", + "pathParams": [], + "publicPathParams": [], + "queryParams": [], + "publicQueryParams": [], + "headerParams": [], + "publicHeaderParams": [], + "bodyParams": [ + "clientId", + "clientSecret", "cursor", - "limit", - "search" + "limit" ], - "publicQueryParams": [ + "publicBodyParams": [ + "clientId", + "clientSecret", "cursor", - "limit", - "search" + "limit" ], - "headerParams": [], - "publicHeaderParams": [], - "bodyParams": [], - "publicBodyParams": [], - "bodyParamDetails": [], - "pathParamDetails": [ + "bodyParamDetails": [ { - "name": "integrationId", - "required": true, - "style": "simple", - "explode": false - } - ], - "queryParamDetails": [ + "name": "clientId", + "required": true + }, { - "name": "cursor", - "required": false, - "style": "form", - "explode": true + "name": "clientSecret", + "required": true }, { - "name": "limit", - "required": false, - "style": "form", - "explode": true, - "defaultValue": 50 + "name": "cursor", + "required": false }, { - "name": "search", - "required": false, - "style": "form", - "explode": true + "name": "limit", + "required": false } ], + "pathParamDetails": [], + "queryParamDetails": [], "headerParamDetails": [], "cookieParams": [], "publicCookieParams": [], "cookieParamDetails": [], "paramsModel": { - "publicName": "IntegrationListSlackChannelsParams" + "publicName": "ProviderDiscoverSnykOrganizationsParams" + }, + "requestBody": { + "contentType": "application/json", + "encoding": "json", + "contents": [ + { + "contentType": "application/json", + "encoding": "json" + } + ], + "required": true, + "publicName": "body", + "publicIdentifier": "body" }, "response": { "status": "200", @@ -28829,24 +30075,22 @@ "transport": "http" }, { - "resource": "integrations.providers", - "publicResource": "integrations.providers", + "resource": "integrations.triggers", + "publicResource": "integrations.triggers", "operation": "list", "publicOperation": "list", "deprecated": false, "method": "GET", - "path": "/v1/integrations/providers", + "path": "/v1/integrations/triggers", "pathParams": [], "publicPathParams": [], "queryParams": [ "cursor", - "limit", - "returnUrl" + "limit" ], "publicQueryParams": [ "cursor", - "limit", - "returnUrl" + "limit" ], "headerParams": [], "publicHeaderParams": [], @@ -28867,12 +30111,6 @@ "style": "form", "explode": true, "defaultValue": 50 - }, - { - "name": "returnUrl", - "required": false, - "style": "form", - "explode": true } ], "headerParamDetails": [], @@ -28880,7 +30118,7 @@ "publicCookieParams": [], "cookieParamDetails": [], "paramsModel": { - "publicName": "ProviderListParams" + "publicName": "TriggerListParams" }, "response": { "status": "200", @@ -29012,70 +30250,49 @@ "transport": "http" }, { - "resource": "integrations.providers", - "publicResource": "integrations.providers", - "operation": "discoverSnykOrganizations", - "publicOperation": "discoverSnykOrganizations", + "resource": "integrations.triggers", + "publicResource": "integrations.triggers", + "operation": "retrieve", + "publicOperation": "retrieve", "deprecated": false, - "method": "POST", - "path": "/v1/integrations/providers/snyk/organizations", - "pathParams": [], - "publicPathParams": [], + "method": "GET", + "path": "/v1/integrations/{integrationId}/triggers/{triggerName}", + "pathParams": [ + "integrationId", + "triggerName" + ], + "publicPathParams": [ + "integrationId", + "triggerName" + ], "queryParams": [], "publicQueryParams": [], "headerParams": [], "publicHeaderParams": [], - "bodyParams": [ - "clientId", - "clientSecret", - "cursor", - "limit" - ], - "publicBodyParams": [ - "clientId", - "clientSecret", - "cursor", - "limit" - ], - "bodyParamDetails": [ - { - "name": "clientId", - "required": true - }, - { - "name": "clientSecret", - "required": true - }, + "bodyParams": [], + "publicBodyParams": [], + "bodyParamDetails": [], + "pathParamDetails": [ { - "name": "cursor", - "required": false + "name": "integrationId", + "required": true, + "style": "simple", + "explode": false }, { - "name": "limit", - "required": false + "name": "triggerName", + "required": true, + "style": "simple", + "explode": false } ], - "pathParamDetails": [], "queryParamDetails": [], "headerParamDetails": [], "cookieParams": [], "publicCookieParams": [], "cookieParamDetails": [], "paramsModel": { - "publicName": "ProviderDiscoverSnykOrganizationsParams" - }, - "requestBody": { - "contentType": "application/json", - "encoding": "json", - "contents": [ - { - "contentType": "application/json", - "encoding": "json" - } - ], - "required": true, - "publicName": "body", - "publicIdentifier": "body" + "publicName": "TriggerRetrieveParams" }, "response": { "status": "200", @@ -29209,27 +30426,56 @@ { "resource": "integrations.triggers", "publicResource": "integrations.triggers", - "operation": "list", - "publicOperation": "list", + "operation": "listFilterOptions", + "publicOperation": "listFilterOptions", "deprecated": false, "method": "GET", - "path": "/v1/integrations/triggers", - "pathParams": [], - "publicPathParams": [], + "path": "/v1/integrations/{integrationId}/triggers/{triggerName}/filter-options/{field}", + "pathParams": [ + "integrationId", + "triggerName", + "field" + ], + "publicPathParams": [ + "integrationId", + "triggerName", + "field" + ], "queryParams": [ "cursor", - "limit" + "limit", + "search" ], "publicQueryParams": [ "cursor", - "limit" + "limit", + "search" ], "headerParams": [], "publicHeaderParams": [], "bodyParams": [], "publicBodyParams": [], "bodyParamDetails": [], - "pathParamDetails": [], + "pathParamDetails": [ + { + "name": "integrationId", + "required": true, + "style": "simple", + "explode": false + }, + { + "name": "triggerName", + "required": true, + "style": "simple", + "explode": false + }, + { + "name": "field", + "required": true, + "style": "simple", + "explode": false + } + ], "queryParamDetails": [ { "name": "cursor", @@ -29243,6 +30489,12 @@ "style": "form", "explode": true, "defaultValue": 50 + }, + { + "name": "search", + "required": false, + "style": "form", + "explode": true } ], "headerParamDetails": [], @@ -29250,7 +30502,7 @@ "publicCookieParams": [], "cookieParamDetails": [], "paramsModel": { - "publicName": "TriggerListParams" + "publicName": "TriggerListFilterOptionsParams" }, "response": { "status": "200", @@ -29382,21 +30634,15 @@ "transport": "http" }, { - "resource": "integrations.triggers", - "publicResource": "integrations.triggers", + "resource": "billing", + "publicResource": "billing", "operation": "retrieve", "publicOperation": "retrieve", "deprecated": false, "method": "GET", - "path": "/v1/integrations/{integrationId}/triggers/{triggerName}", - "pathParams": [ - "integrationId", - "triggerName" - ], - "publicPathParams": [ - "integrationId", - "triggerName" - ], + "path": "/v1/billing", + "pathParams": [], + "publicPathParams": [], "queryParams": [], "publicQueryParams": [], "headerParams": [], @@ -29404,28 +30650,12 @@ "bodyParams": [], "publicBodyParams": [], "bodyParamDetails": [], - "pathParamDetails": [ - { - "name": "integrationId", - "required": true, - "style": "simple", - "explode": false - }, - { - "name": "triggerName", - "required": true, - "style": "simple", - "explode": false - } - ], + "pathParamDetails": [], "queryParamDetails": [], "headerParamDetails": [], "cookieParams": [], "publicCookieParams": [], "cookieParamDetails": [], - "paramsModel": { - "publicName": "TriggerRetrieveParams" - }, "response": { "status": "200", "contentType": "application/json", @@ -29441,30 +30671,15 @@ "successStatus": "200", "errorStatuses": [ "400", - "401", "403", "404", - "409", - "500", - "502", - "503", - "504" - ] - }, - "errorResponses": [ - { - "status": "400", - "contentType": "application/json", - "encoding": "json", - "contents": [ - { - "contentType": "application/json", - "encoding": "json" - } - ] - }, + "409", + "502" + ] + }, + "errorResponses": [ { - "status": "401", + "status": "400", "contentType": "application/json", "encoding": "json", "contents": [ @@ -29507,17 +30722,6 @@ } ] }, - { - "status": "500", - "contentType": "application/json", - "encoding": "json", - "contents": [ - { - "contentType": "application/json", - "encoding": "json" - } - ] - }, { "status": "502", "contentType": "application/json", @@ -29528,86 +30732,49 @@ "encoding": "json" } ] - }, - { - "status": "503", - "contentType": "application/json", - "encoding": "json", - "contents": [ - { - "contentType": "application/json", - "encoding": "json" - } - ] - }, - { - "status": "504", - "contentType": "application/json", - "encoding": "json", - "contents": [ - { - "contentType": "application/json", - "encoding": "json" - } - ] } ], "responseLinks": [], "transport": "http" }, { - "resource": "integrations.triggers", - "publicResource": "integrations.triggers", - "operation": "listFilterOptions", - "publicOperation": "listFilterOptions", + "resource": "billing", + "publicResource": "billing", + "operation": "listUsage", + "publicOperation": "listUsage", "deprecated": false, "method": "GET", - "path": "/v1/integrations/{integrationId}/triggers/{triggerName}/filter-options/{field}", - "pathParams": [ - "integrationId", - "triggerName", - "field" - ], - "publicPathParams": [ - "integrationId", - "triggerName", - "field" - ], + "path": "/v1/billing/usage", + "pathParams": [], + "publicPathParams": [], "queryParams": [ "cursor", "limit", - "search" + "type", + "sessionId", + "createdAfter", + "createdBefore", + "createdBy", + "models", + "agentIds" ], "publicQueryParams": [ "cursor", "limit", - "search" + "type", + "sessionId", + "createdAfter", + "createdBefore", + "createdBy", + "models", + "agentIds" ], "headerParams": [], "publicHeaderParams": [], "bodyParams": [], "publicBodyParams": [], "bodyParamDetails": [], - "pathParamDetails": [ - { - "name": "integrationId", - "required": true, - "style": "simple", - "explode": false - }, - { - "name": "triggerName", - "required": true, - "style": "simple", - "explode": false - }, - { - "name": "field", - "required": true, - "style": "simple", - "explode": false - } - ], + "pathParamDetails": [], "queryParamDetails": [ { "name": "cursor", @@ -29623,7 +30790,43 @@ "defaultValue": 50 }, { - "name": "search", + "name": "type", + "required": false, + "style": "form", + "explode": true + }, + { + "name": "sessionId", + "required": false, + "style": "form", + "explode": true + }, + { + "name": "createdAfter", + "required": false, + "style": "form", + "explode": true + }, + { + "name": "createdBefore", + "required": false, + "style": "form", + "explode": true + }, + { + "name": "createdBy", + "required": false, + "style": "form", + "explode": true + }, + { + "name": "models", + "required": false, + "style": "form", + "explode": true + }, + { + "name": "agentIds", "required": false, "style": "form", "explode": true @@ -29634,7 +30837,7 @@ "publicCookieParams": [], "cookieParamDetails": [], "paramsModel": { - "publicName": "TriggerListFilterOptionsParams" + "publicName": "BillingListUsageParams" }, "response": { "status": "200", @@ -29651,14 +30854,10 @@ "successStatus": "200", "errorStatuses": [ "400", - "401", "403", "404", "409", - "500", - "502", - "503", - "504" + "502" ] }, "errorResponses": [ @@ -29674,7 +30873,7 @@ ] }, { - "status": "401", + "status": "403", "contentType": "application/json", "encoding": "json", "contents": [ @@ -29685,7 +30884,7 @@ ] }, { - "status": "403", + "status": "404", "contentType": "application/json", "encoding": "json", "contents": [ @@ -29696,7 +30895,7 @@ ] }, { - "status": "404", + "status": "409", "contentType": "application/json", "encoding": "json", "contents": [ @@ -29707,7 +30906,65 @@ ] }, { - "status": "409", + "status": "502", + "contentType": "application/json", + "encoding": "json", + "contents": [ + { + "contentType": "application/json", + "encoding": "json" + } + ] + } + ], + "responseLinks": [], + "transport": "http" + }, + { + "resource": "folders", + "publicResource": "folders", + "operation": "list", + "publicOperation": "list", + "deprecated": false, + "method": "GET", + "path": "/v1/folders", + "pathParams": [], + "publicPathParams": [], + "queryParams": [], + "publicQueryParams": [], + "headerParams": [], + "publicHeaderParams": [], + "bodyParams": [], + "publicBodyParams": [], + "bodyParamDetails": [], + "pathParamDetails": [], + "queryParamDetails": [], + "headerParamDetails": [], + "cookieParams": [], + "publicCookieParams": [], + "cookieParamDetails": [], + "response": { + "status": "200", + "contentType": "application/json", + "encoding": "json", + "contents": [ + { + "contentType": "application/json", + "encoding": "json" + } + ] + }, + "result": { + "successStatus": "200", + "errorStatuses": [ + "400", + "404", + "409" + ] + }, + "errorResponses": [ + { + "status": "400", "contentType": "application/json", "encoding": "json", "contents": [ @@ -29718,7 +30975,18 @@ ] }, { - "status": "500", + "status": "404", + "contentType": "application/json", + "encoding": "json", + "contents": [ + { + "contentType": "application/json", + "encoding": "json" + } + ] + }, + { + "status": "409", "contentType": "application/json", "encoding": "json", "contents": [ @@ -29727,9 +30995,87 @@ "encoding": "json" } ] + } + ], + "responseLinks": [], + "transport": "http" + }, + { + "resource": "folders", + "publicResource": "folders", + "operation": "create", + "publicOperation": "create", + "deprecated": false, + "method": "POST", + "path": "/v1/folders", + "pathParams": [], + "publicPathParams": [], + "queryParams": [], + "publicQueryParams": [], + "headerParams": [], + "publicHeaderParams": [], + "bodyParams": [ + "name", + "color" + ], + "publicBodyParams": [ + "name", + "color" + ], + "bodyParamDetails": [ + { + "name": "name", + "required": true }, { - "status": "502", + "name": "color", + "required": false + } + ], + "pathParamDetails": [], + "queryParamDetails": [], + "headerParamDetails": [], + "cookieParams": [], + "publicCookieParams": [], + "cookieParamDetails": [], + "paramsModel": { + "publicName": "FolderCreateParams" + }, + "requestBody": { + "contentType": "application/json", + "encoding": "json", + "contents": [ + { + "contentType": "application/json", + "encoding": "json" + } + ], + "required": true, + "publicName": "body", + "publicIdentifier": "body" + }, + "response": { + "status": "201", + "contentType": "application/json", + "encoding": "json", + "contents": [ + { + "contentType": "application/json", + "encoding": "json" + } + ] + }, + "result": { + "successStatus": "201", + "errorStatuses": [ + "400", + "404", + "409" + ] + }, + "errorResponses": [ + { + "status": "400", "contentType": "application/json", "encoding": "json", "contents": [ @@ -29740,7 +31086,7 @@ ] }, { - "status": "503", + "status": "404", "contentType": "application/json", "encoding": "json", "contents": [ @@ -29751,7 +31097,7 @@ ] }, { - "status": "504", + "status": "409", "contentType": "application/json", "encoding": "json", "contents": [ @@ -29766,28 +31112,88 @@ "transport": "http" }, { - "resource": "billing", - "publicResource": "billing", - "operation": "retrieve", - "publicOperation": "retrieve", + "resource": "folders", + "publicResource": "folders", + "operation": "update", + "publicOperation": "update", "deprecated": false, - "method": "GET", - "path": "/v1/billing", - "pathParams": [], - "publicPathParams": [], + "method": "PATCH", + "path": "/v1/folders/{folderId}", + "pathParams": [ + "folderId" + ], + "publicPathParams": [ + "folderId" + ], "queryParams": [], "publicQueryParams": [], "headerParams": [], "publicHeaderParams": [], - "bodyParams": [], - "publicBodyParams": [], - "bodyParamDetails": [], - "pathParamDetails": [], + "bodyParams": [ + "name", + "color", + "placement", + "addSession", + "removeSession" + ], + "publicBodyParams": [ + "name", + "color", + "placement", + "addSession", + "removeSession" + ], + "bodyParamDetails": [ + { + "name": "name", + "required": false + }, + { + "name": "color", + "required": false + }, + { + "name": "placement", + "required": false + }, + { + "name": "addSession", + "required": false + }, + { + "name": "removeSession", + "required": false + } + ], + "pathParamDetails": [ + { + "name": "folderId", + "required": true, + "style": "simple", + "explode": false + } + ], "queryParamDetails": [], "headerParamDetails": [], "cookieParams": [], "publicCookieParams": [], "cookieParamDetails": [], + "paramsModel": { + "publicName": "FolderUpdateParams" + }, + "requestBody": { + "contentType": "application/json", + "encoding": "json", + "contents": [ + { + "contentType": "application/json", + "encoding": "json" + } + ], + "required": true, + "publicName": "body", + "publicIdentifier": "body" + }, "response": { "status": "200", "contentType": "application/json", @@ -29803,10 +31209,8 @@ "successStatus": "200", "errorStatuses": [ "400", - "403", "404", - "409", - "502" + "409" ] }, "errorResponses": [ @@ -29821,17 +31225,6 @@ } ] }, - { - "status": "403", - "contentType": "application/json", - "encoding": "json", - "contents": [ - { - "contentType": "application/json", - "encoding": "json" - } - ] - }, { "status": "404", "contentType": "application/json", @@ -29853,123 +31246,47 @@ "encoding": "json" } ] - }, - { - "status": "502", - "contentType": "application/json", - "encoding": "json", - "contents": [ - { - "contentType": "application/json", - "encoding": "json" - } - ] } ], "responseLinks": [], "transport": "http" }, { - "resource": "billing", - "publicResource": "billing", - "operation": "listUsage", - "publicOperation": "listUsage", + "resource": "folders", + "publicResource": "folders", + "operation": "delete", + "publicOperation": "delete", "deprecated": false, - "method": "GET", - "path": "/v1/billing/usage", - "pathParams": [], - "publicPathParams": [], - "queryParams": [ - "cursor", - "limit", - "type", - "sessionId", - "createdAfter", - "createdBefore", - "createdBy", - "models", - "agentIds" + "method": "DELETE", + "path": "/v1/folders/{folderId}", + "pathParams": [ + "folderId" ], - "publicQueryParams": [ - "cursor", - "limit", - "type", - "sessionId", - "createdAfter", - "createdBefore", - "createdBy", - "models", - "agentIds" + "publicPathParams": [ + "folderId" ], + "queryParams": [], + "publicQueryParams": [], "headerParams": [], "publicHeaderParams": [], "bodyParams": [], "publicBodyParams": [], "bodyParamDetails": [], - "pathParamDetails": [], - "queryParamDetails": [ - { - "name": "cursor", - "required": false, - "style": "form", - "explode": true - }, - { - "name": "limit", - "required": false, - "style": "form", - "explode": true, - "defaultValue": 50 - }, - { - "name": "type", - "required": false, - "style": "form", - "explode": true - }, - { - "name": "sessionId", - "required": false, - "style": "form", - "explode": true - }, - { - "name": "createdAfter", - "required": false, - "style": "form", - "explode": true - }, - { - "name": "createdBefore", - "required": false, - "style": "form", - "explode": true - }, - { - "name": "createdBy", - "required": false, - "style": "form", - "explode": true - }, - { - "name": "models", - "required": false, - "style": "form", - "explode": true - }, + "pathParamDetails": [ { - "name": "agentIds", - "required": false, - "style": "form", - "explode": true + "name": "folderId", + "required": true, + "style": "simple", + "explode": false } ], + "queryParamDetails": [], "headerParamDetails": [], "cookieParams": [], "publicCookieParams": [], "cookieParamDetails": [], "paramsModel": { - "publicName": "BillingListUsageParams" + "publicName": "FolderDeleteParams" }, "response": { "status": "200", @@ -29986,10 +31303,8 @@ "successStatus": "200", "errorStatuses": [ "400", - "403", "404", - "409", - "502" + "409" ] }, "errorResponses": [ @@ -30004,17 +31319,6 @@ } ] }, - { - "status": "403", - "contentType": "application/json", - "encoding": "json", - "contents": [ - { - "contentType": "application/json", - "encoding": "json" - } - ] - }, { "status": "404", "contentType": "application/json", @@ -30036,17 +31340,6 @@ "encoding": "json" } ] - }, - { - "status": "502", - "contentType": "application/json", - "encoding": "json", - "contents": [ - { - "contentType": "application/json", - "encoding": "json" - } - ] } ], "responseLinks": [], diff --git a/src/tembo/_client.py b/src/tembo/_client.py index 20fdd759..752a2c6c 100644 --- a/src/tembo/_client.py +++ b/src/tembo/_client.py @@ -55,6 +55,7 @@ repositories, integrations, billing, + folders, live, ) from .resources.api_keys import APIKeysResource, AsyncAPIKeysResource @@ -75,6 +76,7 @@ from .resources.repositories import RepositoriesResource, AsyncRepositoriesResource from .resources.integrations import IntegrationsResource, AsyncIntegrationsResource from .resources.billing import BillingResource, AsyncBillingResource + from .resources.folders import FoldersResource, AsyncFoldersResource from .resources.live import LiveResource, AsyncLiveResource # Serializes lazy resource imports so concurrent cold access from multiple @@ -267,6 +269,12 @@ def billing(self) -> "BillingResource": from .resources.billing import BillingResource return BillingResource(self) + @cached_property + def folders(self) -> "FoldersResource": + with _RESOURCE_IMPORT_LOCK: + from .resources.folders import FoldersResource + return FoldersResource(self) + @cached_property def live(self) -> "LiveResource": with _RESOURCE_IMPORT_LOCK: @@ -599,6 +607,12 @@ def billing(self) -> "AsyncBillingResource": from .resources.billing import AsyncBillingResource return AsyncBillingResource(self) + @cached_property + def folders(self) -> "AsyncFoldersResource": + with _RESOURCE_IMPORT_LOCK: + from .resources.folders import AsyncFoldersResource + return AsyncFoldersResource(self) + @cached_property def live(self) -> "AsyncLiveResource": with _RESOURCE_IMPORT_LOCK: @@ -862,6 +876,12 @@ def billing(self) -> billing.BillingResourceWithRawResponse: from .resources.billing import BillingResourceWithRawResponse return BillingResourceWithRawResponse(self._client.billing) + @cached_property + def folders(self) -> folders.FoldersResourceWithRawResponse: + with _RESOURCE_IMPORT_LOCK: + from .resources.folders import FoldersResourceWithRawResponse + return FoldersResourceWithRawResponse(self._client.folders) + @cached_property def live(self) -> live.LiveResourceWithRawResponse: with _RESOURCE_IMPORT_LOCK: @@ -983,6 +1003,12 @@ def billing(self) -> billing.AsyncBillingResourceWithRawResponse: from .resources.billing import AsyncBillingResourceWithRawResponse return AsyncBillingResourceWithRawResponse(self._client.billing) + @cached_property + def folders(self) -> folders.AsyncFoldersResourceWithRawResponse: + with _RESOURCE_IMPORT_LOCK: + from .resources.folders import AsyncFoldersResourceWithRawResponse + return AsyncFoldersResourceWithRawResponse(self._client.folders) + @cached_property def live(self) -> live.AsyncLiveResourceWithRawResponse: with _RESOURCE_IMPORT_LOCK: @@ -1104,6 +1130,12 @@ def billing(self) -> billing.BillingResourceWithStreamingResponse: from .resources.billing import BillingResourceWithStreamingResponse return BillingResourceWithStreamingResponse(self._client.billing) + @cached_property + def folders(self) -> folders.FoldersResourceWithStreamingResponse: + with _RESOURCE_IMPORT_LOCK: + from .resources.folders import FoldersResourceWithStreamingResponse + return FoldersResourceWithStreamingResponse(self._client.folders) + @cached_property def live(self) -> live.LiveResourceWithStreamingResponse: with _RESOURCE_IMPORT_LOCK: @@ -1225,6 +1257,12 @@ def billing(self) -> billing.AsyncBillingResourceWithStreamingResponse: from .resources.billing import AsyncBillingResourceWithStreamingResponse return AsyncBillingResourceWithStreamingResponse(self._client.billing) + @cached_property + def folders(self) -> folders.AsyncFoldersResourceWithStreamingResponse: + with _RESOURCE_IMPORT_LOCK: + from .resources.folders import AsyncFoldersResourceWithStreamingResponse + return AsyncFoldersResourceWithStreamingResponse(self._client.folders) + @cached_property def live(self) -> live.AsyncLiveResourceWithStreamingResponse: with _RESOURCE_IMPORT_LOCK: diff --git a/src/tembo/_version.py b/src/tembo/_version.py index f671c5e9..17a1b068 100644 --- a/src/tembo/_version.py +++ b/src/tembo/_version.py @@ -1,4 +1,4 @@ # File generated from our OpenAPI spec by Scalar. See README.md for details. __title__ = "temboSdk" -__version__ = "0.11.1" # x-release-please-version +__version__ = "0.12.0" # x-release-please-version diff --git a/src/tembo/resources/__init__.py b/src/tembo/resources/__init__.py index 60b9aa9d..a05a6ca5 100644 --- a/src/tembo/resources/__init__.py +++ b/src/tembo/resources/__init__.py @@ -144,6 +144,14 @@ BillingResourceWithStreamingResponse, AsyncBillingResourceWithStreamingResponse, ) +from .folders import ( + FoldersResource, + AsyncFoldersResource, + FoldersResourceWithRawResponse, + AsyncFoldersResourceWithRawResponse, + FoldersResourceWithStreamingResponse, + AsyncFoldersResourceWithStreamingResponse, +) from .live import ( LiveResource, AsyncLiveResource, @@ -262,6 +270,12 @@ "AsyncBillingResourceWithRawResponse", "BillingResourceWithStreamingResponse", "AsyncBillingResourceWithStreamingResponse", + "FoldersResource", + "AsyncFoldersResource", + "FoldersResourceWithRawResponse", + "AsyncFoldersResourceWithRawResponse", + "FoldersResourceWithStreamingResponse", + "AsyncFoldersResourceWithStreamingResponse", "LiveResource", "AsyncLiveResource", "LiveResourceWithRawResponse", diff --git a/src/tembo/resources/agents/runs.py b/src/tembo/resources/agents/runs.py index ffe374a2..0c7e8b1c 100644 --- a/src/tembo/resources/agents/runs.py +++ b/src/tembo/resources/agents/runs.py @@ -97,7 +97,7 @@ def create( timeout: float | httpx.Timeout | None | NotGiven = not_given, ) -> RunCreateResponse: """ - Queue an agent run. The entire JSON object body is passed to the agent as event input; no eventPayload wrapper is needed. Omit the body to run without event input. The response confirms queuing, not completed execution. + Queue an agent run. The entire JSON object body is passed to the agent as event input; no eventPayload wrapper is needed. Omit the body to run without event input. The response confirms queuing, not completed execution, and includes the run ID to poll for its status and session. Args: agent_id: Path parameter. @@ -247,7 +247,7 @@ async def create( timeout: float | httpx.Timeout | None | NotGiven = not_given, ) -> RunCreateResponse: """ - Queue an agent run. The entire JSON object body is passed to the agent as event input; no eventPayload wrapper is needed. Omit the body to run without event input. The response confirms queuing, not completed execution. + Queue an agent run. The entire JSON object body is passed to the agent as event input; no eventPayload wrapper is needed. Omit the body to run without event input. The response confirms queuing, not completed execution, and includes the run ID to poll for its status and session. Args: agent_id: Path parameter. diff --git a/src/tembo/resources/artifacts.py b/src/tembo/resources/artifacts.py index 02266929..e0ad8daa 100644 --- a/src/tembo/resources/artifacts.py +++ b/src/tembo/resources/artifacts.py @@ -23,6 +23,7 @@ from ..types import artifact_list_params, artifact_create_params from ..types.artifact_create_response import ArtifactCreateResponse from ..types.artifact_retrieve_response import ArtifactRetrieveResponse +from ..types.artifact_retrieve_asset_url_response import ArtifactRetrieveAssetURLResponse from ..types.artifact_delete_response import ArtifactDeleteResponse __all__ = ["ArtifactsResource", "AsyncArtifactsResource"] @@ -215,6 +216,47 @@ def retrieve( cast_to=ArtifactRetrieveResponse, ) + def retrieve_asset_url( + self, + asset_id: str, + *, + # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. + # The extra values given here take precedence over values defined on the client or passed to this method. + extra_headers: Headers | None = None, + extra_query: Query | None = None, + extra_body: Body | None = None, + timeout: float | httpx.Timeout | None | NotGiven = not_given, + ) -> ArtifactRetrieveAssetURLResponse: + """ + Get a fresh signed download URL for an uploaded session asset by its asset ID. + + Args: + asset_id: Path parameter. + extra_headers: Send extra headers with the request. + extra_query: Send extra query parameters with the request. + extra_body: Send extra JSON properties with the request. + timeout: Override the client-level default timeout for this request, in seconds. + + Returns: + ArtifactRetrieveAssetURLResponse: Retrieve a signed asset URL + + Example: + ```python + artifact = client.artifacts.retrieve_asset_url( + asset_id="7c9e6679-7425-40de-944b-e07fc1f90ae7", + ) + ``` + """ + if asset_id is None or (isinstance(asset_id, str) and not asset_id): + raise ValueError(f"Expected a non-empty value for `asset_id` but received {asset_id!r}") + return self._get( + path_template("/v1/artifacts/assets/{assetId}", **{"assetId": asset_id}), + options=make_request_options( + extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout + ), + cast_to=ArtifactRetrieveAssetURLResponse, + ) + def delete( self, artifact_id: str, @@ -444,6 +486,47 @@ async def retrieve( cast_to=ArtifactRetrieveResponse, ) + async def retrieve_asset_url( + self, + asset_id: str, + *, + # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. + # The extra values given here take precedence over values defined on the client or passed to this method. + extra_headers: Headers | None = None, + extra_query: Query | None = None, + extra_body: Body | None = None, + timeout: float | httpx.Timeout | None | NotGiven = not_given, + ) -> ArtifactRetrieveAssetURLResponse: + """ + Get a fresh signed download URL for an uploaded session asset by its asset ID. + + Args: + asset_id: Path parameter. + extra_headers: Send extra headers with the request. + extra_query: Send extra query parameters with the request. + extra_body: Send extra JSON properties with the request. + timeout: Override the client-level default timeout for this request, in seconds. + + Returns: + ArtifactRetrieveAssetURLResponse: Retrieve a signed asset URL + + Example: + ```python + artifact = await client.artifacts.retrieve_asset_url( + asset_id="7c9e6679-7425-40de-944b-e07fc1f90ae7", + ) + ``` + """ + if asset_id is None or (isinstance(asset_id, str) and not asset_id): + raise ValueError(f"Expected a non-empty value for `asset_id` but received {asset_id!r}") + return await self._get( + path_template("/v1/artifacts/assets/{assetId}", **{"assetId": asset_id}), + options=make_request_options( + extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout + ), + cast_to=ArtifactRetrieveAssetURLResponse, + ) + async def delete( self, artifact_id: str, @@ -499,6 +582,9 @@ def __init__(self, artifacts: ArtifactsResource) -> None: self.retrieve = to_raw_response_wrapper( artifacts.retrieve, ) + self.retrieve_asset_url = to_raw_response_wrapper( + artifacts.retrieve_asset_url, + ) self.delete = to_raw_response_wrapper( artifacts.delete, ) @@ -517,6 +603,9 @@ def __init__(self, artifacts: AsyncArtifactsResource) -> None: self.retrieve = async_to_raw_response_wrapper( artifacts.retrieve, ) + self.retrieve_asset_url = async_to_raw_response_wrapper( + artifacts.retrieve_asset_url, + ) self.delete = async_to_raw_response_wrapper( artifacts.delete, ) @@ -535,6 +624,9 @@ def __init__(self, artifacts: ArtifactsResource) -> None: self.retrieve = to_streamed_response_wrapper( artifacts.retrieve, ) + self.retrieve_asset_url = to_streamed_response_wrapper( + artifacts.retrieve_asset_url, + ) self.delete = to_streamed_response_wrapper( artifacts.delete, ) @@ -553,6 +645,9 @@ def __init__(self, artifacts: AsyncArtifactsResource) -> None: self.retrieve = async_to_streamed_response_wrapper( artifacts.retrieve, ) + self.retrieve_asset_url = async_to_streamed_response_wrapper( + artifacts.retrieve_asset_url, + ) self.delete = async_to_streamed_response_wrapper( artifacts.delete, ) diff --git a/src/tembo/resources/folders.py b/src/tembo/resources/folders.py new file mode 100644 index 00000000..14c5c506 --- /dev/null +++ b/src/tembo/resources/folders.py @@ -0,0 +1,488 @@ +# File generated from our OpenAPI spec by Scalar. See README.md for details. + +from __future__ import annotations + +import httpx + +from typing_extensions import Literal + +from .._types import Body, Omit, Query, Headers, NotGiven, omit, not_given +from .._utils import path_template, maybe_transform, async_maybe_transform +from .._compat import cached_property +from .._resource import SyncAPIResource, AsyncAPIResource +from .._response import ( + to_raw_response_wrapper, + to_streamed_response_wrapper, + async_to_raw_response_wrapper, + async_to_streamed_response_wrapper, +) +from .._base_client import make_request_options +from ..types.folder_list_response import FolderListResponse +from ..types.folder_create_response import FolderCreateResponse +from ..types import folder_create_params, folder_update_params +from ..types.folder_update_response import FolderUpdateResponse +from ..types.folder_delete_response import FolderDeleteResponse + +__all__ = ["FoldersResource", "AsyncFoldersResource"] + + +class FoldersResource(SyncAPIResource): + @cached_property + def with_raw_response(self) -> FoldersResourceWithRawResponse: + return FoldersResourceWithRawResponse(self) + + @cached_property + def with_streaming_response(self) -> FoldersResourceWithStreamingResponse: + return FoldersResourceWithStreamingResponse(self) + + def list( + self, + *, + # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. + # The extra values given here take precedence over values defined on the client or passed to this method. + extra_headers: Headers | None = None, + extra_query: Query | None = None, + extra_body: Body | None = None, + timeout: float | httpx.Timeout | None | NotGiven = not_given, + ) -> FolderListResponse: + """ + List the sidebar folders you use to organize sessions. Use listSessions with folderId to list the sessions in a folder. + + Args: + extra_headers: Send extra headers with the request. + extra_query: Send extra query parameters with the request. + extra_body: Send extra JSON properties with the request. + timeout: Override the client-level default timeout for this request, in seconds. + + Returns: + FolderListResponse: List folders + + Example: + ```python + folder = client.folders.list() + ``` + """ + return self._get( + "/v1/folders", + options=make_request_options( + extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout + ), + cast_to=FolderListResponse, + ) + + def create( + self, + *, + name: str, + color: Literal["neutral", "red", "orange", "yellow", "green", "teal", "blue", "purple", "pink"] | Omit = omit, + # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. + # The extra values given here take precedence over values defined on the client or passed to this method. + extra_headers: Headers | None = None, + extra_query: Query | None = None, + extra_body: Body | None = None, + timeout: float | httpx.Timeout | None | NotGiven = not_given, + ) -> FolderCreateResponse: + """ + Create a sidebar folder for organizing sessions. New folders go first in your folder list; use createPin to pin one. + + Args: + name: Folder name shown in the sidebar. + color: Folder icon color. Defaults to neutral. + extra_headers: Send extra headers with the request. + extra_query: Send extra query parameters with the request. + extra_body: Send extra JSON properties with the request. + timeout: Override the client-level default timeout for this request, in seconds. + + Returns: + FolderCreateResponse: Create a folder + + Example: + ```python + folder = client.folders.create( + name="x", + ) + ``` + """ + return self._post( + "/v1/folders", + body=maybe_transform( + { + "name": name, + "color": color, + }, + folder_create_params.FolderCreateParams, + ), + options=make_request_options( + extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout + ), + cast_to=FolderCreateResponse, + ) + + def update( + self, + folder_id: str, + *, + name: str | Omit = omit, + color: Literal["neutral", "red", "orange", "yellow", "green", "teal", "blue", "purple", "pink"] | Omit = omit, + placement: folder_update_params.Placement | Omit = omit, + add_session: folder_update_params.AddSession | Omit = omit, + remove_session: folder_update_params.RemoveSession | Omit = omit, + # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. + # The extra values given here take precedence over values defined on the client or passed to this method. + extra_headers: Headers | None = None, + extra_query: Query | None = None, + extra_body: Body | None = None, + timeout: float | httpx.Timeout | None | NotGiven = not_given, + ) -> FolderUpdateResponse: + """ + Rename one of your sidebar folders, change its icon color, move it in your folder list, or add, reorder, or remove its sessions. Use updatePin to move a pinned folder among your pins. + + Args: + folder_id: Path parameter. + name: Folder name shown in the sidebar. + color: Folder icon color, from the same palette as project icons. + placement: Where to put this folder in your sidebar folder list. Pinned folders are ordered with updatePin instead. + add_session: Session to put in this folder, taking it out of any other folder of yours, or to reorder within it. + remove_session: Session to take out of this folder. + extra_headers: Send extra headers with the request. + extra_query: Send extra query parameters with the request. + extra_body: Send extra JSON properties with the request. + timeout: Override the client-level default timeout for this request, in seconds. + + Returns: + FolderUpdateResponse: Update a folder + + Example: + ```python + folder = client.folders.update( + folder_id="7c9e6679-7425-40de-944b-e07fc1f90ae7", + ) + ``` + """ + if folder_id is None or (isinstance(folder_id, str) and not folder_id): + raise ValueError(f"Expected a non-empty value for `folder_id` but received {folder_id!r}") + return self._patch( + path_template("/v1/folders/{folderId}", **{"folderId": folder_id}), + body=maybe_transform( + { + "name": name, + "color": color, + "placement": placement, + "add_session": add_session, + "remove_session": remove_session, + }, + folder_update_params.FolderUpdateParams, + ), + options=make_request_options( + extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout + ), + cast_to=FolderUpdateResponse, + ) + + def delete( + self, + folder_id: str, + *, + # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. + # The extra values given here take precedence over values defined on the client or passed to this method. + extra_headers: Headers | None = None, + extra_query: Query | None = None, + extra_body: Body | None = None, + timeout: float | httpx.Timeout | None | NotGiven = not_given, + ) -> FolderDeleteResponse: + """ + Delete one of your sidebar folders. Its sessions are kept and return to your recent sessions. + + Args: + folder_id: Path parameter. + extra_headers: Send extra headers with the request. + extra_query: Send extra query parameters with the request. + extra_body: Send extra JSON properties with the request. + timeout: Override the client-level default timeout for this request, in seconds. + + Returns: + FolderDeleteResponse: Delete a folder + + Example: + ```python + folder = client.folders.delete( + folder_id="7c9e6679-7425-40de-944b-e07fc1f90ae7", + ) + ``` + """ + if folder_id is None or (isinstance(folder_id, str) and not folder_id): + raise ValueError(f"Expected a non-empty value for `folder_id` but received {folder_id!r}") + return self._delete( + path_template("/v1/folders/{folderId}", **{"folderId": folder_id}), + options=make_request_options( + extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout + ), + cast_to=FolderDeleteResponse, + ) + + +class AsyncFoldersResource(AsyncAPIResource): + @cached_property + def with_raw_response(self) -> AsyncFoldersResourceWithRawResponse: + return AsyncFoldersResourceWithRawResponse(self) + + @cached_property + def with_streaming_response(self) -> AsyncFoldersResourceWithStreamingResponse: + return AsyncFoldersResourceWithStreamingResponse(self) + + async def list( + self, + *, + # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. + # The extra values given here take precedence over values defined on the client or passed to this method. + extra_headers: Headers | None = None, + extra_query: Query | None = None, + extra_body: Body | None = None, + timeout: float | httpx.Timeout | None | NotGiven = not_given, + ) -> FolderListResponse: + """ + List the sidebar folders you use to organize sessions. Use listSessions with folderId to list the sessions in a folder. + + Args: + extra_headers: Send extra headers with the request. + extra_query: Send extra query parameters with the request. + extra_body: Send extra JSON properties with the request. + timeout: Override the client-level default timeout for this request, in seconds. + + Returns: + FolderListResponse: List folders + + Example: + ```python + folder = await client.folders.list() + ``` + """ + return await self._get( + "/v1/folders", + options=make_request_options( + extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout + ), + cast_to=FolderListResponse, + ) + + async def create( + self, + *, + name: str, + color: Literal["neutral", "red", "orange", "yellow", "green", "teal", "blue", "purple", "pink"] | Omit = omit, + # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. + # The extra values given here take precedence over values defined on the client or passed to this method. + extra_headers: Headers | None = None, + extra_query: Query | None = None, + extra_body: Body | None = None, + timeout: float | httpx.Timeout | None | NotGiven = not_given, + ) -> FolderCreateResponse: + """ + Create a sidebar folder for organizing sessions. New folders go first in your folder list; use createPin to pin one. + + Args: + name: Folder name shown in the sidebar. + color: Folder icon color. Defaults to neutral. + extra_headers: Send extra headers with the request. + extra_query: Send extra query parameters with the request. + extra_body: Send extra JSON properties with the request. + timeout: Override the client-level default timeout for this request, in seconds. + + Returns: + FolderCreateResponse: Create a folder + + Example: + ```python + folder = await client.folders.create( + name="x", + ) + ``` + """ + return await self._post( + "/v1/folders", + body=await async_maybe_transform( + { + "name": name, + "color": color, + }, + folder_create_params.FolderCreateParams, + ), + options=make_request_options( + extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout + ), + cast_to=FolderCreateResponse, + ) + + async def update( + self, + folder_id: str, + *, + name: str | Omit = omit, + color: Literal["neutral", "red", "orange", "yellow", "green", "teal", "blue", "purple", "pink"] | Omit = omit, + placement: folder_update_params.Placement | Omit = omit, + add_session: folder_update_params.AddSession | Omit = omit, + remove_session: folder_update_params.RemoveSession | Omit = omit, + # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. + # The extra values given here take precedence over values defined on the client or passed to this method. + extra_headers: Headers | None = None, + extra_query: Query | None = None, + extra_body: Body | None = None, + timeout: float | httpx.Timeout | None | NotGiven = not_given, + ) -> FolderUpdateResponse: + """ + Rename one of your sidebar folders, change its icon color, move it in your folder list, or add, reorder, or remove its sessions. Use updatePin to move a pinned folder among your pins. + + Args: + folder_id: Path parameter. + name: Folder name shown in the sidebar. + color: Folder icon color, from the same palette as project icons. + placement: Where to put this folder in your sidebar folder list. Pinned folders are ordered with updatePin instead. + add_session: Session to put in this folder, taking it out of any other folder of yours, or to reorder within it. + remove_session: Session to take out of this folder. + extra_headers: Send extra headers with the request. + extra_query: Send extra query parameters with the request. + extra_body: Send extra JSON properties with the request. + timeout: Override the client-level default timeout for this request, in seconds. + + Returns: + FolderUpdateResponse: Update a folder + + Example: + ```python + folder = await client.folders.update( + folder_id="7c9e6679-7425-40de-944b-e07fc1f90ae7", + ) + ``` + """ + if folder_id is None or (isinstance(folder_id, str) and not folder_id): + raise ValueError(f"Expected a non-empty value for `folder_id` but received {folder_id!r}") + return await self._patch( + path_template("/v1/folders/{folderId}", **{"folderId": folder_id}), + body=await async_maybe_transform( + { + "name": name, + "color": color, + "placement": placement, + "add_session": add_session, + "remove_session": remove_session, + }, + folder_update_params.FolderUpdateParams, + ), + options=make_request_options( + extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout + ), + cast_to=FolderUpdateResponse, + ) + + async def delete( + self, + folder_id: str, + *, + # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. + # The extra values given here take precedence over values defined on the client or passed to this method. + extra_headers: Headers | None = None, + extra_query: Query | None = None, + extra_body: Body | None = None, + timeout: float | httpx.Timeout | None | NotGiven = not_given, + ) -> FolderDeleteResponse: + """ + Delete one of your sidebar folders. Its sessions are kept and return to your recent sessions. + + Args: + folder_id: Path parameter. + extra_headers: Send extra headers with the request. + extra_query: Send extra query parameters with the request. + extra_body: Send extra JSON properties with the request. + timeout: Override the client-level default timeout for this request, in seconds. + + Returns: + FolderDeleteResponse: Delete a folder + + Example: + ```python + folder = await client.folders.delete( + folder_id="7c9e6679-7425-40de-944b-e07fc1f90ae7", + ) + ``` + """ + if folder_id is None or (isinstance(folder_id, str) and not folder_id): + raise ValueError(f"Expected a non-empty value for `folder_id` but received {folder_id!r}") + return await self._delete( + path_template("/v1/folders/{folderId}", **{"folderId": folder_id}), + options=make_request_options( + extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout + ), + cast_to=FolderDeleteResponse, + ) + + +class FoldersResourceWithRawResponse: + def __init__(self, folders: FoldersResource) -> None: + self._folders = folders + + self.list = to_raw_response_wrapper( + folders.list, + ) + self.create = to_raw_response_wrapper( + folders.create, + ) + self.update = to_raw_response_wrapper( + folders.update, + ) + self.delete = to_raw_response_wrapper( + folders.delete, + ) + + +class AsyncFoldersResourceWithRawResponse: + def __init__(self, folders: AsyncFoldersResource) -> None: + self._folders = folders + + self.list = async_to_raw_response_wrapper( + folders.list, + ) + self.create = async_to_raw_response_wrapper( + folders.create, + ) + self.update = async_to_raw_response_wrapper( + folders.update, + ) + self.delete = async_to_raw_response_wrapper( + folders.delete, + ) + + +class FoldersResourceWithStreamingResponse: + def __init__(self, folders: FoldersResource) -> None: + self._folders = folders + + self.list = to_streamed_response_wrapper( + folders.list, + ) + self.create = to_streamed_response_wrapper( + folders.create, + ) + self.update = to_streamed_response_wrapper( + folders.update, + ) + self.delete = to_streamed_response_wrapper( + folders.delete, + ) + + +class AsyncFoldersResourceWithStreamingResponse: + def __init__(self, folders: AsyncFoldersResource) -> None: + self._folders = folders + + self.list = async_to_streamed_response_wrapper( + folders.list, + ) + self.create = async_to_streamed_response_wrapper( + folders.create, + ) + self.update = async_to_streamed_response_wrapper( + folders.update, + ) + self.delete = async_to_streamed_response_wrapper( + folders.delete, + ) diff --git a/src/tembo/resources/organizations/__init__.py b/src/tembo/resources/organizations/__init__.py index d19560f4..9f237d95 100644 --- a/src/tembo/resources/organizations/__init__.py +++ b/src/tembo/resources/organizations/__init__.py @@ -16,6 +16,14 @@ MembersResourceWithStreamingResponse, AsyncMembersResourceWithStreamingResponse, ) +from .roles import ( + RolesResource, + AsyncRolesResource, + RolesResourceWithRawResponse, + AsyncRolesResourceWithRawResponse, + RolesResourceWithStreamingResponse, + AsyncRolesResourceWithStreamingResponse, +) from .secrets import ( SecretsResource, AsyncSecretsResource, @@ -54,6 +62,12 @@ "AsyncMembersResourceWithRawResponse", "MembersResourceWithStreamingResponse", "AsyncMembersResourceWithStreamingResponse", + "RolesResource", + "AsyncRolesResource", + "RolesResourceWithRawResponse", + "AsyncRolesResourceWithRawResponse", + "RolesResourceWithStreamingResponse", + "AsyncRolesResourceWithStreamingResponse", "SecretsResource", "AsyncSecretsResource", "SecretsResourceWithRawResponse", diff --git a/src/tembo/resources/organizations/members.py b/src/tembo/resources/organizations/members.py index 869dd313..4107a588 100644 --- a/src/tembo/resources/organizations/members.py +++ b/src/tembo/resources/organizations/members.py @@ -99,7 +99,7 @@ def create( organization_id: str, *, email_address: str, - role: Literal["org:admin", "org:member"] | Omit = omit, + role_id: str, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. # The extra values given here take precedence over values defined on the client or passed to this method. extra_headers: Headers | None = None, @@ -113,7 +113,7 @@ def create( Args: organization_id: Path parameter. email_address: Email address of the user to add or invite. - role: Organization role to grant: org:admin or org:member. + role_id: Body parameter. extra_headers: Send extra headers with the request. extra_query: Send extra query parameters with the request. extra_body: Send extra JSON properties with the request. @@ -127,7 +127,7 @@ def create( member = client.organizations.members.create( organization_id="organizationId", email_address="user@example.com", - role="org:member", + role_id="x", ) ``` """ @@ -138,7 +138,7 @@ def create( body=maybe_transform( { "email_address": email_address, - "role": role, + "role_id": role_id, }, member_create_params.MemberCreateParams, ), @@ -202,7 +202,7 @@ def update( member_id: str, *, organization_id: str, - role: Literal["org:admin", "org:member"], + role_id: str | Omit = omit, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. # The extra values given here take precedence over values defined on the client or passed to this method. extra_headers: Headers | None = None, @@ -216,7 +216,7 @@ def update( Args: member_id: Path parameter. organization_id: Path parameter. - role: New organization role: org:admin or org:member. + role_id: Body parameter. extra_headers: Send extra headers with the request. extra_query: Send extra query parameters with the request. extra_body: Send extra JSON properties with the request. @@ -230,7 +230,6 @@ def update( member = client.organizations.members.update( organization_id="organizationId", member_id="memberId", - role="org:admin", ) ``` """ @@ -244,7 +243,7 @@ def update( **{"organizationId": organization_id, "memberId": member_id}, ), body=maybe_transform( - {"role": role}, + {"role_id": role_id}, member_update_params.MemberUpdateParams, ), options=make_request_options( @@ -375,7 +374,7 @@ async def create( organization_id: str, *, email_address: str, - role: Literal["org:admin", "org:member"] | Omit = omit, + role_id: str, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. # The extra values given here take precedence over values defined on the client or passed to this method. extra_headers: Headers | None = None, @@ -389,7 +388,7 @@ async def create( Args: organization_id: Path parameter. email_address: Email address of the user to add or invite. - role: Organization role to grant: org:admin or org:member. + role_id: Body parameter. extra_headers: Send extra headers with the request. extra_query: Send extra query parameters with the request. extra_body: Send extra JSON properties with the request. @@ -403,7 +402,7 @@ async def create( member = await client.organizations.members.create( organization_id="organizationId", email_address="user@example.com", - role="org:member", + role_id="x", ) ``` """ @@ -414,7 +413,7 @@ async def create( body=await async_maybe_transform( { "email_address": email_address, - "role": role, + "role_id": role_id, }, member_create_params.MemberCreateParams, ), @@ -478,7 +477,7 @@ async def update( member_id: str, *, organization_id: str, - role: Literal["org:admin", "org:member"], + role_id: str | Omit = omit, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. # The extra values given here take precedence over values defined on the client or passed to this method. extra_headers: Headers | None = None, @@ -492,7 +491,7 @@ async def update( Args: member_id: Path parameter. organization_id: Path parameter. - role: New organization role: org:admin or org:member. + role_id: Body parameter. extra_headers: Send extra headers with the request. extra_query: Send extra query parameters with the request. extra_body: Send extra JSON properties with the request. @@ -506,7 +505,6 @@ async def update( member = await client.organizations.members.update( organization_id="organizationId", member_id="memberId", - role="org:admin", ) ``` """ @@ -520,7 +518,7 @@ async def update( **{"organizationId": organization_id, "memberId": member_id}, ), body=await async_maybe_transform( - {"role": role}, + {"role_id": role_id}, member_update_params.MemberUpdateParams, ), options=make_request_options( diff --git a/src/tembo/resources/organizations/organizations.py b/src/tembo/resources/organizations/organizations.py index 3c189208..7cddbb9a 100644 --- a/src/tembo/resources/organizations/organizations.py +++ b/src/tembo/resources/organizations/organizations.py @@ -23,6 +23,14 @@ MembersResourceWithStreamingResponse, AsyncMembersResourceWithStreamingResponse, ) +from .roles import ( + RolesResource, + AsyncRolesResource, + RolesResourceWithRawResponse, + AsyncRolesResourceWithRawResponse, + RolesResourceWithStreamingResponse, + AsyncRolesResourceWithStreamingResponse, +) from .secrets import ( SecretsResource, AsyncSecretsResource, @@ -61,6 +69,10 @@ class OrganizationsResource(SyncAPIResource): def members(self) -> MembersResource: return MembersResource(self._client) + @cached_property + def roles(self) -> RolesResource: + return RolesResource(self._client) + @cached_property def secrets(self) -> SecretsResource: return SecretsResource(self._client) @@ -272,6 +284,10 @@ class AsyncOrganizationsResource(AsyncAPIResource): def members(self) -> AsyncMembersResource: return AsyncMembersResource(self._client) + @cached_property + def roles(self) -> AsyncRolesResource: + return AsyncRolesResource(self._client) + @cached_property def secrets(self) -> AsyncSecretsResource: return AsyncSecretsResource(self._client) @@ -499,6 +515,10 @@ def __init__(self, organizations: OrganizationsResource) -> None: def members(self) -> MembersResourceWithRawResponse: return MembersResourceWithRawResponse(self._organizations.members) + @cached_property + def roles(self) -> RolesResourceWithRawResponse: + return RolesResourceWithRawResponse(self._organizations.roles) + @cached_property def secrets(self) -> SecretsResourceWithRawResponse: return SecretsResourceWithRawResponse(self._organizations.secrets) @@ -533,6 +553,10 @@ def __init__(self, organizations: AsyncOrganizationsResource) -> None: def members(self) -> AsyncMembersResourceWithRawResponse: return AsyncMembersResourceWithRawResponse(self._organizations.members) + @cached_property + def roles(self) -> AsyncRolesResourceWithRawResponse: + return AsyncRolesResourceWithRawResponse(self._organizations.roles) + @cached_property def secrets(self) -> AsyncSecretsResourceWithRawResponse: return AsyncSecretsResourceWithRawResponse(self._organizations.secrets) @@ -567,6 +591,10 @@ def __init__(self, organizations: OrganizationsResource) -> None: def members(self) -> MembersResourceWithStreamingResponse: return MembersResourceWithStreamingResponse(self._organizations.members) + @cached_property + def roles(self) -> RolesResourceWithStreamingResponse: + return RolesResourceWithStreamingResponse(self._organizations.roles) + @cached_property def secrets(self) -> SecretsResourceWithStreamingResponse: return SecretsResourceWithStreamingResponse(self._organizations.secrets) @@ -601,6 +629,10 @@ def __init__(self, organizations: AsyncOrganizationsResource) -> None: def members(self) -> AsyncMembersResourceWithStreamingResponse: return AsyncMembersResourceWithStreamingResponse(self._organizations.members) + @cached_property + def roles(self) -> AsyncRolesResourceWithStreamingResponse: + return AsyncRolesResourceWithStreamingResponse(self._organizations.roles) + @cached_property def secrets(self) -> AsyncSecretsResourceWithStreamingResponse: return AsyncSecretsResourceWithStreamingResponse(self._organizations.secrets) diff --git a/src/tembo/resources/organizations/roles.py b/src/tembo/resources/organizations/roles.py new file mode 100644 index 00000000..d9964020 --- /dev/null +++ b/src/tembo/resources/organizations/roles.py @@ -0,0 +1,1640 @@ +# File generated from our OpenAPI spec by Scalar. See README.md for details. + +from __future__ import annotations + +import httpx + +from typing import List +from typing_extensions import Literal + +from ..._types import Body, Omit, Query, Headers, NotGiven, omit, not_given +from ..._utils import path_template, maybe_transform, async_maybe_transform +from ..._compat import cached_property +from ..._resource import SyncAPIResource, AsyncAPIResource +from ..._response import ( + to_raw_response_wrapper, + to_streamed_response_wrapper, + async_to_raw_response_wrapper, + async_to_streamed_response_wrapper, +) +from ..._base_client import make_request_options +from ...types.organizations.role_list_response import RoleListResponse +from ...types.organizations.role_create_response import RoleCreateResponse +from ...types.organizations import role_create_params, role_update_params, role_delete_params +from ...types.organizations.role_retrieve_response import RoleRetrieveResponse +from ...types.organizations.role_update_response import RoleUpdateResponse +from ...types.organizations.role_delete_response import RoleDeleteResponse + +__all__ = ["RolesResource", "AsyncRolesResource"] + + +class RolesResource(SyncAPIResource): + @cached_property + def with_raw_response(self) -> RolesResourceWithRawResponse: + return RolesResourceWithRawResponse(self) + + @cached_property + def with_streaming_response(self) -> RolesResourceWithStreamingResponse: + return RolesResourceWithStreamingResponse(self) + + def list( + self, + organization_id: str, + *, + # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. + # The extra values given here take precedence over values defined on the client or passed to this method. + extra_headers: Headers | None = None, + extra_query: Query | None = None, + extra_body: Body | None = None, + timeout: float | httpx.Timeout | None | NotGiven = not_given, + ) -> RoleListResponse: + """ + List organization roles + + Args: + organization_id: Path parameter. + extra_headers: Send extra headers with the request. + extra_query: Send extra query parameters with the request. + extra_body: Send extra JSON properties with the request. + timeout: Override the client-level default timeout for this request, in seconds. + + Returns: + RoleListResponse: List organization roles + + Example: + ```python + role = client.organizations.roles.list( + organization_id="organizationId", + ) + ``` + """ + if organization_id is None or (isinstance(organization_id, str) and not organization_id): + raise ValueError(f"Expected a non-empty value for `organization_id` but received {organization_id!r}") + return self._get( + path_template("/v1/organizations/{organizationId}/roles", **{"organizationId": organization_id}), + options=make_request_options( + extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout + ), + cast_to=RoleListResponse, + ) + + def create( + self, + organization_id: str, + *, + name: str, + description: str | Omit = omit, + permissions: List[ + Literal[ + "organization:read", + "organization:write", + "organization:member:read", + "organization:member:write", + "organization:invitation:read", + "organization:invitation:write", + "organization:role:read", + "organization:role:write", + "organization:secret:read", + "organization:secret:write", + "organization:setting:read", + "organization:setting:write", + "organization:configuration:read", + "organization:configuration:write", + "organization:subscription:read", + "organization:subscription:write", + "organization:onboarding:read", + "organization:onboarding:write", + "organization:logo:read", + "organization:logo:write", + "organization:slack_connect:read", + "organization:slack_connect:write", + "billing:read", + "billing:write", + "billing:trial:read", + "billing:trial:write", + "billing:usage:read", + "billing:usage:write", + "billing:payment:read", + "billing:payment:write", + "billing:payment_method:read", + "billing:payment_method:write", + "billing:checkout:read", + "billing:checkout:write", + "billing:subscription_checkout:read", + "billing:subscription_checkout:write", + "billing:portal:read", + "billing:portal:write", + "billing:on_demand:read", + "billing:on_demand:write", + "billing:credit:read", + "billing:credit:write", + "billing:custom_price:read", + "billing:custom_price:write", + "billing:custom_plan:read", + "billing:custom_plan:write", + "billing:overage_report:read", + "billing:overage_report:write", + "api_key:read", + "api_key:write", + "user:read", + "user:write", + "user:setting:read", + "user:setting:write", + "user:environment_variable:read", + "user:environment_variable:write", + "user:subscription:read", + "user:subscription:write", + "user:connected_account:read", + "user:connected_account:write", + "user:organization:read", + "user:organization:write", + "user:profile_picture:read", + "user:profile_picture:write", + "user:deletion:read", + "user:deletion:write", + "agent:read", + "agent:write", + "agent:schedule:read", + "agent:schedule:write", + "agent:trigger:read", + "agent:trigger:write", + "agent:run:read", + "agent:run:write", + "agent:instruction_revision:read", + "agent:instruction_revision:write", + "agent:template:read", + "agent:template:write", + "session:read", + "session:write", + "session:message:read", + "session:message:write", + "session:artifact:read", + "session:artifact:write", + "session:source:read", + "session:source:write", + "session:command:read", + "session:command:write", + "session:input:read", + "session:input:write", + "session:queue:read", + "session:queue:write", + "session:event:read", + "session:event:write", + "session:file:read", + "session:file:write", + "session:diff:read", + "session:diff:write", + "session:workspace:read", + "session:workspace:write", + "session:workspace_file:read", + "session:workspace_file:write", + "session:workspace_diff:read", + "session:workspace_diff:write", + "session:workspace_preview:read", + "session:workspace_preview:write", + "pull_request:read", + "pull_request:write", + "pull_request:merge:read", + "pull_request:merge:write", + "pull_request:attachment:read", + "pull_request:attachment:write", + "pull_request:session:read", + "pull_request:session:write", + "pull_request:message:read", + "pull_request:message:write", + "pull_request:comment:read", + "pull_request:comment:write", + "pull_request:review:read", + "pull_request:review:write", + "pull_request:reaction:read", + "pull_request:reaction:write", + "pull_request:commit:read", + "pull_request:commit:write", + "pull_request:check:read", + "pull_request:check:write", + "pull_request:file:read", + "pull_request:file:write", + "pull_request:reviewer:read", + "pull_request:reviewer:write", + "pull_request:label:read", + "pull_request:label:write", + "pull_request:thread:read", + "pull_request:thread:write", + "pull_request:tour:read", + "pull_request:tour:write", + "pull_request:branch_status:read", + "pull_request:branch_status:write", + "pull_request:stack:read", + "pull_request:stack:write", + "repository:read", + "repository:write", + "repository:branch:read", + "repository:branch:write", + "repository:file:read", + "repository:file:write", + "repository:pull_request:read", + "repository:pull_request:write", + "repository:user:read", + "repository:user:write", + "repository:label:read", + "repository:label:write", + "integration:read", + "integration:write", + "integration:trigger:read", + "integration:trigger:write", + "integration:provider:read", + "integration:provider:write", + "integration:configuration:read", + "integration:configuration:write", + "integration:snyk_organization:read", + "integration:snyk_organization:write", + "integration:sentry_environment:read", + "integration:sentry_environment:write", + "integration:slack_channel:read", + "integration:slack_channel:write", + "integration:rate_limit:read", + "integration:rate_limit:write", + "mcp_connection:read", + "mcp_connection:write", + "mcp_connection:shared:read", + "mcp_connection:shared:write", + "model:read", + "model:write", + "project:read", + "project:write", + "project:environment_variable:read", + "project:environment_variable:write", + "project:snapshot:read", + "project:snapshot:write", + "project:build:read", + "project:build:write", + "project:build_detail:read", + "project:build_detail:write", + "project:schedule:read", + "project:schedule:write", + "project:default:read", + "project:default:write", + "project:system_snapshot:read", + "project:system_snapshot:write", + "project:organization_snapshot:read", + "project:organization_snapshot:write", + "sandbox:read", + "sandbox:write", + "sandbox:metric:read", + "sandbox:metric:write", + "sandbox:event:read", + "sandbox:event:write", + "sandbox:size:read", + "sandbox:size:write", + "sandbox:virtual_machine:read", + "sandbox:virtual_machine:write", + "device:read", + "device:write", + "skill:read", + "skill:write", + "skill:marketplace:read", + "skill:marketplace:write", + "insight:read", + "insight:write", + "insight:member:read", + "insight:member:write", + "insight:repository:read", + "insight:repository:write", + "insight:usage:read", + "insight:usage:write", + "file:read", + "file:write", + "pin:read", + "pin:write", + "folder:read", + "folder:write", + "queue:job:read", + "queue:job:write", + "queue:host_manager_job:read", + "queue:host_manager_job:write", + "queue:worker:read", + "queue:worker:write", + "queue:scheduled_job:read", + "queue:scheduled_job:write", + "queue:triggered_job:read", + "queue:triggered_job:write", + "runtime:read", + "runtime:write", + "session:source_credential:read", + "session:source_credential:write", + "device:all:write", + "insight:user:read", + ] + ], + # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. + # The extra values given here take precedence over values defined on the client or passed to this method. + extra_headers: Headers | None = None, + extra_query: Query | None = None, + extra_body: Body | None = None, + timeout: float | httpx.Timeout | None | NotGiven = not_given, + ) -> RoleCreateResponse: + """ + Create a organization role + + Args: + organization_id: Path parameter. + name: Body parameter. + description: Body parameter. + permissions: Body parameter. + extra_headers: Send extra headers with the request. + extra_query: Send extra query parameters with the request. + extra_body: Send extra JSON properties with the request. + timeout: Override the client-level default timeout for this request, in seconds. + + Returns: + RoleCreateResponse: Create a organization role + + Example: + ```python + role = client.organizations.roles.create( + organization_id="organizationId", + name="x", + description="", + permissions=["organization:read"], + ) + ``` + """ + if organization_id is None or (isinstance(organization_id, str) and not organization_id): + raise ValueError(f"Expected a non-empty value for `organization_id` but received {organization_id!r}") + return self._post( + path_template("/v1/organizations/{organizationId}/roles", **{"organizationId": organization_id}), + body=maybe_transform( + { + "name": name, + "description": description, + "permissions": permissions, + }, + role_create_params.RoleCreateParams, + ), + options=make_request_options( + extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout + ), + cast_to=RoleCreateResponse, + ) + + def retrieve( + self, + role_id: str, + *, + organization_id: str, + # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. + # The extra values given here take precedence over values defined on the client or passed to this method. + extra_headers: Headers | None = None, + extra_query: Query | None = None, + extra_body: Body | None = None, + timeout: float | httpx.Timeout | None | NotGiven = not_given, + ) -> RoleRetrieveResponse: + """ + Retrieve an organization role + + Args: + role_id: Path parameter. + organization_id: Path parameter. + extra_headers: Send extra headers with the request. + extra_query: Send extra query parameters with the request. + extra_body: Send extra JSON properties with the request. + timeout: Override the client-level default timeout for this request, in seconds. + + Returns: + RoleRetrieveResponse: Retrieve an organization role + + Example: + ```python + role = client.organizations.roles.retrieve( + organization_id="organizationId", + role_id="roleId", + ) + ``` + """ + if organization_id is None or (isinstance(organization_id, str) and not organization_id): + raise ValueError(f"Expected a non-empty value for `organization_id` but received {organization_id!r}") + if role_id is None or (isinstance(role_id, str) and not role_id): + raise ValueError(f"Expected a non-empty value for `role_id` but received {role_id!r}") + return self._get( + path_template( + "/v1/organizations/{organizationId}/roles/{roleId}", + **{"organizationId": organization_id, "roleId": role_id}, + ), + options=make_request_options( + extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout + ), + cast_to=RoleRetrieveResponse, + ) + + def update( + self, + role_id: str, + *, + organization_id: str, + name: str | Omit = omit, + description: str | Omit = omit, + permissions: List[ + Literal[ + "organization:read", + "organization:write", + "organization:member:read", + "organization:member:write", + "organization:invitation:read", + "organization:invitation:write", + "organization:role:read", + "organization:role:write", + "organization:secret:read", + "organization:secret:write", + "organization:setting:read", + "organization:setting:write", + "organization:configuration:read", + "organization:configuration:write", + "organization:subscription:read", + "organization:subscription:write", + "organization:onboarding:read", + "organization:onboarding:write", + "organization:logo:read", + "organization:logo:write", + "organization:slack_connect:read", + "organization:slack_connect:write", + "billing:read", + "billing:write", + "billing:trial:read", + "billing:trial:write", + "billing:usage:read", + "billing:usage:write", + "billing:payment:read", + "billing:payment:write", + "billing:payment_method:read", + "billing:payment_method:write", + "billing:checkout:read", + "billing:checkout:write", + "billing:subscription_checkout:read", + "billing:subscription_checkout:write", + "billing:portal:read", + "billing:portal:write", + "billing:on_demand:read", + "billing:on_demand:write", + "billing:credit:read", + "billing:credit:write", + "billing:custom_price:read", + "billing:custom_price:write", + "billing:custom_plan:read", + "billing:custom_plan:write", + "billing:overage_report:read", + "billing:overage_report:write", + "api_key:read", + "api_key:write", + "user:read", + "user:write", + "user:setting:read", + "user:setting:write", + "user:environment_variable:read", + "user:environment_variable:write", + "user:subscription:read", + "user:subscription:write", + "user:connected_account:read", + "user:connected_account:write", + "user:organization:read", + "user:organization:write", + "user:profile_picture:read", + "user:profile_picture:write", + "user:deletion:read", + "user:deletion:write", + "agent:read", + "agent:write", + "agent:schedule:read", + "agent:schedule:write", + "agent:trigger:read", + "agent:trigger:write", + "agent:run:read", + "agent:run:write", + "agent:instruction_revision:read", + "agent:instruction_revision:write", + "agent:template:read", + "agent:template:write", + "session:read", + "session:write", + "session:message:read", + "session:message:write", + "session:artifact:read", + "session:artifact:write", + "session:source:read", + "session:source:write", + "session:command:read", + "session:command:write", + "session:input:read", + "session:input:write", + "session:queue:read", + "session:queue:write", + "session:event:read", + "session:event:write", + "session:file:read", + "session:file:write", + "session:diff:read", + "session:diff:write", + "session:workspace:read", + "session:workspace:write", + "session:workspace_file:read", + "session:workspace_file:write", + "session:workspace_diff:read", + "session:workspace_diff:write", + "session:workspace_preview:read", + "session:workspace_preview:write", + "pull_request:read", + "pull_request:write", + "pull_request:merge:read", + "pull_request:merge:write", + "pull_request:attachment:read", + "pull_request:attachment:write", + "pull_request:session:read", + "pull_request:session:write", + "pull_request:message:read", + "pull_request:message:write", + "pull_request:comment:read", + "pull_request:comment:write", + "pull_request:review:read", + "pull_request:review:write", + "pull_request:reaction:read", + "pull_request:reaction:write", + "pull_request:commit:read", + "pull_request:commit:write", + "pull_request:check:read", + "pull_request:check:write", + "pull_request:file:read", + "pull_request:file:write", + "pull_request:reviewer:read", + "pull_request:reviewer:write", + "pull_request:label:read", + "pull_request:label:write", + "pull_request:thread:read", + "pull_request:thread:write", + "pull_request:tour:read", + "pull_request:tour:write", + "pull_request:branch_status:read", + "pull_request:branch_status:write", + "pull_request:stack:read", + "pull_request:stack:write", + "repository:read", + "repository:write", + "repository:branch:read", + "repository:branch:write", + "repository:file:read", + "repository:file:write", + "repository:pull_request:read", + "repository:pull_request:write", + "repository:user:read", + "repository:user:write", + "repository:label:read", + "repository:label:write", + "integration:read", + "integration:write", + "integration:trigger:read", + "integration:trigger:write", + "integration:provider:read", + "integration:provider:write", + "integration:configuration:read", + "integration:configuration:write", + "integration:snyk_organization:read", + "integration:snyk_organization:write", + "integration:sentry_environment:read", + "integration:sentry_environment:write", + "integration:slack_channel:read", + "integration:slack_channel:write", + "integration:rate_limit:read", + "integration:rate_limit:write", + "mcp_connection:read", + "mcp_connection:write", + "mcp_connection:shared:read", + "mcp_connection:shared:write", + "model:read", + "model:write", + "project:read", + "project:write", + "project:environment_variable:read", + "project:environment_variable:write", + "project:snapshot:read", + "project:snapshot:write", + "project:build:read", + "project:build:write", + "project:build_detail:read", + "project:build_detail:write", + "project:schedule:read", + "project:schedule:write", + "project:default:read", + "project:default:write", + "project:system_snapshot:read", + "project:system_snapshot:write", + "project:organization_snapshot:read", + "project:organization_snapshot:write", + "sandbox:read", + "sandbox:write", + "sandbox:metric:read", + "sandbox:metric:write", + "sandbox:event:read", + "sandbox:event:write", + "sandbox:size:read", + "sandbox:size:write", + "sandbox:virtual_machine:read", + "sandbox:virtual_machine:write", + "device:read", + "device:write", + "skill:read", + "skill:write", + "skill:marketplace:read", + "skill:marketplace:write", + "insight:read", + "insight:write", + "insight:member:read", + "insight:member:write", + "insight:repository:read", + "insight:repository:write", + "insight:usage:read", + "insight:usage:write", + "file:read", + "file:write", + "pin:read", + "pin:write", + "folder:read", + "folder:write", + "queue:job:read", + "queue:job:write", + "queue:host_manager_job:read", + "queue:host_manager_job:write", + "queue:worker:read", + "queue:worker:write", + "queue:scheduled_job:read", + "queue:scheduled_job:write", + "queue:triggered_job:read", + "queue:triggered_job:write", + "runtime:read", + "runtime:write", + "session:source_credential:read", + "session:source_credential:write", + "device:all:write", + "insight:user:read", + ] + ] + | Omit = omit, + is_default: bool | Omit = omit, + # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. + # The extra values given here take precedence over values defined on the client or passed to this method. + extra_headers: Headers | None = None, + extra_query: Query | None = None, + extra_body: Body | None = None, + timeout: float | httpx.Timeout | None | NotGiven = not_given, + ) -> RoleUpdateResponse: + """ + Update a organization role + + Args: + role_id: Path parameter. + organization_id: Path parameter. + name: Body parameter. + description: Body parameter. + permissions: Body parameter. + is_default: Body parameter. + extra_headers: Send extra headers with the request. + extra_query: Send extra query parameters with the request. + extra_body: Send extra JSON properties with the request. + timeout: Override the client-level default timeout for this request, in seconds. + + Returns: + RoleUpdateResponse: Update a organization role + + Example: + ```python + role = client.organizations.roles.update( + organization_id="organizationId", + role_id="roleId", + description="", + ) + ``` + """ + if organization_id is None or (isinstance(organization_id, str) and not organization_id): + raise ValueError(f"Expected a non-empty value for `organization_id` but received {organization_id!r}") + if role_id is None or (isinstance(role_id, str) and not role_id): + raise ValueError(f"Expected a non-empty value for `role_id` but received {role_id!r}") + return self._patch( + path_template( + "/v1/organizations/{organizationId}/roles/{roleId}", + **{"organizationId": organization_id, "roleId": role_id}, + ), + body=maybe_transform( + { + "name": name, + "description": description, + "permissions": permissions, + "is_default": is_default, + }, + role_update_params.RoleUpdateParams, + ), + options=make_request_options( + extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout + ), + cast_to=RoleUpdateResponse, + ) + + def delete( + self, + role_id: str, + *, + organization_id: str, + replacement_role_id: str, + # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. + # The extra values given here take precedence over values defined on the client or passed to this method. + extra_headers: Headers | None = None, + extra_query: Query | None = None, + extra_body: Body | None = None, + timeout: float | httpx.Timeout | None | NotGiven = not_given, + ) -> RoleDeleteResponse: + """ + Archive a role with an explicit replacement + + Args: + role_id: Path parameter. + organization_id: Path parameter. + replacement_role_id: Body parameter. + extra_headers: Send extra headers with the request. + extra_query: Send extra query parameters with the request. + extra_body: Send extra JSON properties with the request. + timeout: Override the client-level default timeout for this request, in seconds. + + Returns: + RoleDeleteResponse: Archive a role with an explicit replacement + + Example: + ```python + role = client.organizations.roles.delete( + organization_id="organizationId", + role_id="roleId", + replacement_role_id="x", + ) + ``` + """ + if organization_id is None or (isinstance(organization_id, str) and not organization_id): + raise ValueError(f"Expected a non-empty value for `organization_id` but received {organization_id!r}") + if role_id is None or (isinstance(role_id, str) and not role_id): + raise ValueError(f"Expected a non-empty value for `role_id` but received {role_id!r}") + return self._delete( + path_template( + "/v1/organizations/{organizationId}/roles/{roleId}", + **{"organizationId": organization_id, "roleId": role_id}, + ), + body=maybe_transform( + {"replacement_role_id": replacement_role_id}, + role_delete_params.RoleDeleteParams, + ), + options=make_request_options( + extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout + ), + cast_to=RoleDeleteResponse, + ) + + +class AsyncRolesResource(AsyncAPIResource): + @cached_property + def with_raw_response(self) -> AsyncRolesResourceWithRawResponse: + return AsyncRolesResourceWithRawResponse(self) + + @cached_property + def with_streaming_response(self) -> AsyncRolesResourceWithStreamingResponse: + return AsyncRolesResourceWithStreamingResponse(self) + + async def list( + self, + organization_id: str, + *, + # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. + # The extra values given here take precedence over values defined on the client or passed to this method. + extra_headers: Headers | None = None, + extra_query: Query | None = None, + extra_body: Body | None = None, + timeout: float | httpx.Timeout | None | NotGiven = not_given, + ) -> RoleListResponse: + """ + List organization roles + + Args: + organization_id: Path parameter. + extra_headers: Send extra headers with the request. + extra_query: Send extra query parameters with the request. + extra_body: Send extra JSON properties with the request. + timeout: Override the client-level default timeout for this request, in seconds. + + Returns: + RoleListResponse: List organization roles + + Example: + ```python + role = await client.organizations.roles.list( + organization_id="organizationId", + ) + ``` + """ + if organization_id is None or (isinstance(organization_id, str) and not organization_id): + raise ValueError(f"Expected a non-empty value for `organization_id` but received {organization_id!r}") + return await self._get( + path_template("/v1/organizations/{organizationId}/roles", **{"organizationId": organization_id}), + options=make_request_options( + extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout + ), + cast_to=RoleListResponse, + ) + + async def create( + self, + organization_id: str, + *, + name: str, + description: str | Omit = omit, + permissions: List[ + Literal[ + "organization:read", + "organization:write", + "organization:member:read", + "organization:member:write", + "organization:invitation:read", + "organization:invitation:write", + "organization:role:read", + "organization:role:write", + "organization:secret:read", + "organization:secret:write", + "organization:setting:read", + "organization:setting:write", + "organization:configuration:read", + "organization:configuration:write", + "organization:subscription:read", + "organization:subscription:write", + "organization:onboarding:read", + "organization:onboarding:write", + "organization:logo:read", + "organization:logo:write", + "organization:slack_connect:read", + "organization:slack_connect:write", + "billing:read", + "billing:write", + "billing:trial:read", + "billing:trial:write", + "billing:usage:read", + "billing:usage:write", + "billing:payment:read", + "billing:payment:write", + "billing:payment_method:read", + "billing:payment_method:write", + "billing:checkout:read", + "billing:checkout:write", + "billing:subscription_checkout:read", + "billing:subscription_checkout:write", + "billing:portal:read", + "billing:portal:write", + "billing:on_demand:read", + "billing:on_demand:write", + "billing:credit:read", + "billing:credit:write", + "billing:custom_price:read", + "billing:custom_price:write", + "billing:custom_plan:read", + "billing:custom_plan:write", + "billing:overage_report:read", + "billing:overage_report:write", + "api_key:read", + "api_key:write", + "user:read", + "user:write", + "user:setting:read", + "user:setting:write", + "user:environment_variable:read", + "user:environment_variable:write", + "user:subscription:read", + "user:subscription:write", + "user:connected_account:read", + "user:connected_account:write", + "user:organization:read", + "user:organization:write", + "user:profile_picture:read", + "user:profile_picture:write", + "user:deletion:read", + "user:deletion:write", + "agent:read", + "agent:write", + "agent:schedule:read", + "agent:schedule:write", + "agent:trigger:read", + "agent:trigger:write", + "agent:run:read", + "agent:run:write", + "agent:instruction_revision:read", + "agent:instruction_revision:write", + "agent:template:read", + "agent:template:write", + "session:read", + "session:write", + "session:message:read", + "session:message:write", + "session:artifact:read", + "session:artifact:write", + "session:source:read", + "session:source:write", + "session:command:read", + "session:command:write", + "session:input:read", + "session:input:write", + "session:queue:read", + "session:queue:write", + "session:event:read", + "session:event:write", + "session:file:read", + "session:file:write", + "session:diff:read", + "session:diff:write", + "session:workspace:read", + "session:workspace:write", + "session:workspace_file:read", + "session:workspace_file:write", + "session:workspace_diff:read", + "session:workspace_diff:write", + "session:workspace_preview:read", + "session:workspace_preview:write", + "pull_request:read", + "pull_request:write", + "pull_request:merge:read", + "pull_request:merge:write", + "pull_request:attachment:read", + "pull_request:attachment:write", + "pull_request:session:read", + "pull_request:session:write", + "pull_request:message:read", + "pull_request:message:write", + "pull_request:comment:read", + "pull_request:comment:write", + "pull_request:review:read", + "pull_request:review:write", + "pull_request:reaction:read", + "pull_request:reaction:write", + "pull_request:commit:read", + "pull_request:commit:write", + "pull_request:check:read", + "pull_request:check:write", + "pull_request:file:read", + "pull_request:file:write", + "pull_request:reviewer:read", + "pull_request:reviewer:write", + "pull_request:label:read", + "pull_request:label:write", + "pull_request:thread:read", + "pull_request:thread:write", + "pull_request:tour:read", + "pull_request:tour:write", + "pull_request:branch_status:read", + "pull_request:branch_status:write", + "pull_request:stack:read", + "pull_request:stack:write", + "repository:read", + "repository:write", + "repository:branch:read", + "repository:branch:write", + "repository:file:read", + "repository:file:write", + "repository:pull_request:read", + "repository:pull_request:write", + "repository:user:read", + "repository:user:write", + "repository:label:read", + "repository:label:write", + "integration:read", + "integration:write", + "integration:trigger:read", + "integration:trigger:write", + "integration:provider:read", + "integration:provider:write", + "integration:configuration:read", + "integration:configuration:write", + "integration:snyk_organization:read", + "integration:snyk_organization:write", + "integration:sentry_environment:read", + "integration:sentry_environment:write", + "integration:slack_channel:read", + "integration:slack_channel:write", + "integration:rate_limit:read", + "integration:rate_limit:write", + "mcp_connection:read", + "mcp_connection:write", + "mcp_connection:shared:read", + "mcp_connection:shared:write", + "model:read", + "model:write", + "project:read", + "project:write", + "project:environment_variable:read", + "project:environment_variable:write", + "project:snapshot:read", + "project:snapshot:write", + "project:build:read", + "project:build:write", + "project:build_detail:read", + "project:build_detail:write", + "project:schedule:read", + "project:schedule:write", + "project:default:read", + "project:default:write", + "project:system_snapshot:read", + "project:system_snapshot:write", + "project:organization_snapshot:read", + "project:organization_snapshot:write", + "sandbox:read", + "sandbox:write", + "sandbox:metric:read", + "sandbox:metric:write", + "sandbox:event:read", + "sandbox:event:write", + "sandbox:size:read", + "sandbox:size:write", + "sandbox:virtual_machine:read", + "sandbox:virtual_machine:write", + "device:read", + "device:write", + "skill:read", + "skill:write", + "skill:marketplace:read", + "skill:marketplace:write", + "insight:read", + "insight:write", + "insight:member:read", + "insight:member:write", + "insight:repository:read", + "insight:repository:write", + "insight:usage:read", + "insight:usage:write", + "file:read", + "file:write", + "pin:read", + "pin:write", + "folder:read", + "folder:write", + "queue:job:read", + "queue:job:write", + "queue:host_manager_job:read", + "queue:host_manager_job:write", + "queue:worker:read", + "queue:worker:write", + "queue:scheduled_job:read", + "queue:scheduled_job:write", + "queue:triggered_job:read", + "queue:triggered_job:write", + "runtime:read", + "runtime:write", + "session:source_credential:read", + "session:source_credential:write", + "device:all:write", + "insight:user:read", + ] + ], + # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. + # The extra values given here take precedence over values defined on the client or passed to this method. + extra_headers: Headers | None = None, + extra_query: Query | None = None, + extra_body: Body | None = None, + timeout: float | httpx.Timeout | None | NotGiven = not_given, + ) -> RoleCreateResponse: + """ + Create a organization role + + Args: + organization_id: Path parameter. + name: Body parameter. + description: Body parameter. + permissions: Body parameter. + extra_headers: Send extra headers with the request. + extra_query: Send extra query parameters with the request. + extra_body: Send extra JSON properties with the request. + timeout: Override the client-level default timeout for this request, in seconds. + + Returns: + RoleCreateResponse: Create a organization role + + Example: + ```python + role = await client.organizations.roles.create( + organization_id="organizationId", + name="x", + description="", + permissions=["organization:read"], + ) + ``` + """ + if organization_id is None or (isinstance(organization_id, str) and not organization_id): + raise ValueError(f"Expected a non-empty value for `organization_id` but received {organization_id!r}") + return await self._post( + path_template("/v1/organizations/{organizationId}/roles", **{"organizationId": organization_id}), + body=await async_maybe_transform( + { + "name": name, + "description": description, + "permissions": permissions, + }, + role_create_params.RoleCreateParams, + ), + options=make_request_options( + extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout + ), + cast_to=RoleCreateResponse, + ) + + async def retrieve( + self, + role_id: str, + *, + organization_id: str, + # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. + # The extra values given here take precedence over values defined on the client or passed to this method. + extra_headers: Headers | None = None, + extra_query: Query | None = None, + extra_body: Body | None = None, + timeout: float | httpx.Timeout | None | NotGiven = not_given, + ) -> RoleRetrieveResponse: + """ + Retrieve an organization role + + Args: + role_id: Path parameter. + organization_id: Path parameter. + extra_headers: Send extra headers with the request. + extra_query: Send extra query parameters with the request. + extra_body: Send extra JSON properties with the request. + timeout: Override the client-level default timeout for this request, in seconds. + + Returns: + RoleRetrieveResponse: Retrieve an organization role + + Example: + ```python + role = await client.organizations.roles.retrieve( + organization_id="organizationId", + role_id="roleId", + ) + ``` + """ + if organization_id is None or (isinstance(organization_id, str) and not organization_id): + raise ValueError(f"Expected a non-empty value for `organization_id` but received {organization_id!r}") + if role_id is None or (isinstance(role_id, str) and not role_id): + raise ValueError(f"Expected a non-empty value for `role_id` but received {role_id!r}") + return await self._get( + path_template( + "/v1/organizations/{organizationId}/roles/{roleId}", + **{"organizationId": organization_id, "roleId": role_id}, + ), + options=make_request_options( + extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout + ), + cast_to=RoleRetrieveResponse, + ) + + async def update( + self, + role_id: str, + *, + organization_id: str, + name: str | Omit = omit, + description: str | Omit = omit, + permissions: List[ + Literal[ + "organization:read", + "organization:write", + "organization:member:read", + "organization:member:write", + "organization:invitation:read", + "organization:invitation:write", + "organization:role:read", + "organization:role:write", + "organization:secret:read", + "organization:secret:write", + "organization:setting:read", + "organization:setting:write", + "organization:configuration:read", + "organization:configuration:write", + "organization:subscription:read", + "organization:subscription:write", + "organization:onboarding:read", + "organization:onboarding:write", + "organization:logo:read", + "organization:logo:write", + "organization:slack_connect:read", + "organization:slack_connect:write", + "billing:read", + "billing:write", + "billing:trial:read", + "billing:trial:write", + "billing:usage:read", + "billing:usage:write", + "billing:payment:read", + "billing:payment:write", + "billing:payment_method:read", + "billing:payment_method:write", + "billing:checkout:read", + "billing:checkout:write", + "billing:subscription_checkout:read", + "billing:subscription_checkout:write", + "billing:portal:read", + "billing:portal:write", + "billing:on_demand:read", + "billing:on_demand:write", + "billing:credit:read", + "billing:credit:write", + "billing:custom_price:read", + "billing:custom_price:write", + "billing:custom_plan:read", + "billing:custom_plan:write", + "billing:overage_report:read", + "billing:overage_report:write", + "api_key:read", + "api_key:write", + "user:read", + "user:write", + "user:setting:read", + "user:setting:write", + "user:environment_variable:read", + "user:environment_variable:write", + "user:subscription:read", + "user:subscription:write", + "user:connected_account:read", + "user:connected_account:write", + "user:organization:read", + "user:organization:write", + "user:profile_picture:read", + "user:profile_picture:write", + "user:deletion:read", + "user:deletion:write", + "agent:read", + "agent:write", + "agent:schedule:read", + "agent:schedule:write", + "agent:trigger:read", + "agent:trigger:write", + "agent:run:read", + "agent:run:write", + "agent:instruction_revision:read", + "agent:instruction_revision:write", + "agent:template:read", + "agent:template:write", + "session:read", + "session:write", + "session:message:read", + "session:message:write", + "session:artifact:read", + "session:artifact:write", + "session:source:read", + "session:source:write", + "session:command:read", + "session:command:write", + "session:input:read", + "session:input:write", + "session:queue:read", + "session:queue:write", + "session:event:read", + "session:event:write", + "session:file:read", + "session:file:write", + "session:diff:read", + "session:diff:write", + "session:workspace:read", + "session:workspace:write", + "session:workspace_file:read", + "session:workspace_file:write", + "session:workspace_diff:read", + "session:workspace_diff:write", + "session:workspace_preview:read", + "session:workspace_preview:write", + "pull_request:read", + "pull_request:write", + "pull_request:merge:read", + "pull_request:merge:write", + "pull_request:attachment:read", + "pull_request:attachment:write", + "pull_request:session:read", + "pull_request:session:write", + "pull_request:message:read", + "pull_request:message:write", + "pull_request:comment:read", + "pull_request:comment:write", + "pull_request:review:read", + "pull_request:review:write", + "pull_request:reaction:read", + "pull_request:reaction:write", + "pull_request:commit:read", + "pull_request:commit:write", + "pull_request:check:read", + "pull_request:check:write", + "pull_request:file:read", + "pull_request:file:write", + "pull_request:reviewer:read", + "pull_request:reviewer:write", + "pull_request:label:read", + "pull_request:label:write", + "pull_request:thread:read", + "pull_request:thread:write", + "pull_request:tour:read", + "pull_request:tour:write", + "pull_request:branch_status:read", + "pull_request:branch_status:write", + "pull_request:stack:read", + "pull_request:stack:write", + "repository:read", + "repository:write", + "repository:branch:read", + "repository:branch:write", + "repository:file:read", + "repository:file:write", + "repository:pull_request:read", + "repository:pull_request:write", + "repository:user:read", + "repository:user:write", + "repository:label:read", + "repository:label:write", + "integration:read", + "integration:write", + "integration:trigger:read", + "integration:trigger:write", + "integration:provider:read", + "integration:provider:write", + "integration:configuration:read", + "integration:configuration:write", + "integration:snyk_organization:read", + "integration:snyk_organization:write", + "integration:sentry_environment:read", + "integration:sentry_environment:write", + "integration:slack_channel:read", + "integration:slack_channel:write", + "integration:rate_limit:read", + "integration:rate_limit:write", + "mcp_connection:read", + "mcp_connection:write", + "mcp_connection:shared:read", + "mcp_connection:shared:write", + "model:read", + "model:write", + "project:read", + "project:write", + "project:environment_variable:read", + "project:environment_variable:write", + "project:snapshot:read", + "project:snapshot:write", + "project:build:read", + "project:build:write", + "project:build_detail:read", + "project:build_detail:write", + "project:schedule:read", + "project:schedule:write", + "project:default:read", + "project:default:write", + "project:system_snapshot:read", + "project:system_snapshot:write", + "project:organization_snapshot:read", + "project:organization_snapshot:write", + "sandbox:read", + "sandbox:write", + "sandbox:metric:read", + "sandbox:metric:write", + "sandbox:event:read", + "sandbox:event:write", + "sandbox:size:read", + "sandbox:size:write", + "sandbox:virtual_machine:read", + "sandbox:virtual_machine:write", + "device:read", + "device:write", + "skill:read", + "skill:write", + "skill:marketplace:read", + "skill:marketplace:write", + "insight:read", + "insight:write", + "insight:member:read", + "insight:member:write", + "insight:repository:read", + "insight:repository:write", + "insight:usage:read", + "insight:usage:write", + "file:read", + "file:write", + "pin:read", + "pin:write", + "folder:read", + "folder:write", + "queue:job:read", + "queue:job:write", + "queue:host_manager_job:read", + "queue:host_manager_job:write", + "queue:worker:read", + "queue:worker:write", + "queue:scheduled_job:read", + "queue:scheduled_job:write", + "queue:triggered_job:read", + "queue:triggered_job:write", + "runtime:read", + "runtime:write", + "session:source_credential:read", + "session:source_credential:write", + "device:all:write", + "insight:user:read", + ] + ] + | Omit = omit, + is_default: bool | Omit = omit, + # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. + # The extra values given here take precedence over values defined on the client or passed to this method. + extra_headers: Headers | None = None, + extra_query: Query | None = None, + extra_body: Body | None = None, + timeout: float | httpx.Timeout | None | NotGiven = not_given, + ) -> RoleUpdateResponse: + """ + Update a organization role + + Args: + role_id: Path parameter. + organization_id: Path parameter. + name: Body parameter. + description: Body parameter. + permissions: Body parameter. + is_default: Body parameter. + extra_headers: Send extra headers with the request. + extra_query: Send extra query parameters with the request. + extra_body: Send extra JSON properties with the request. + timeout: Override the client-level default timeout for this request, in seconds. + + Returns: + RoleUpdateResponse: Update a organization role + + Example: + ```python + role = await client.organizations.roles.update( + organization_id="organizationId", + role_id="roleId", + description="", + ) + ``` + """ + if organization_id is None or (isinstance(organization_id, str) and not organization_id): + raise ValueError(f"Expected a non-empty value for `organization_id` but received {organization_id!r}") + if role_id is None or (isinstance(role_id, str) and not role_id): + raise ValueError(f"Expected a non-empty value for `role_id` but received {role_id!r}") + return await self._patch( + path_template( + "/v1/organizations/{organizationId}/roles/{roleId}", + **{"organizationId": organization_id, "roleId": role_id}, + ), + body=await async_maybe_transform( + { + "name": name, + "description": description, + "permissions": permissions, + "is_default": is_default, + }, + role_update_params.RoleUpdateParams, + ), + options=make_request_options( + extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout + ), + cast_to=RoleUpdateResponse, + ) + + async def delete( + self, + role_id: str, + *, + organization_id: str, + replacement_role_id: str, + # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. + # The extra values given here take precedence over values defined on the client or passed to this method. + extra_headers: Headers | None = None, + extra_query: Query | None = None, + extra_body: Body | None = None, + timeout: float | httpx.Timeout | None | NotGiven = not_given, + ) -> RoleDeleteResponse: + """ + Archive a role with an explicit replacement + + Args: + role_id: Path parameter. + organization_id: Path parameter. + replacement_role_id: Body parameter. + extra_headers: Send extra headers with the request. + extra_query: Send extra query parameters with the request. + extra_body: Send extra JSON properties with the request. + timeout: Override the client-level default timeout for this request, in seconds. + + Returns: + RoleDeleteResponse: Archive a role with an explicit replacement + + Example: + ```python + role = await client.organizations.roles.delete( + organization_id="organizationId", + role_id="roleId", + replacement_role_id="x", + ) + ``` + """ + if organization_id is None or (isinstance(organization_id, str) and not organization_id): + raise ValueError(f"Expected a non-empty value for `organization_id` but received {organization_id!r}") + if role_id is None or (isinstance(role_id, str) and not role_id): + raise ValueError(f"Expected a non-empty value for `role_id` but received {role_id!r}") + return await self._delete( + path_template( + "/v1/organizations/{organizationId}/roles/{roleId}", + **{"organizationId": organization_id, "roleId": role_id}, + ), + body=await async_maybe_transform( + {"replacement_role_id": replacement_role_id}, + role_delete_params.RoleDeleteParams, + ), + options=make_request_options( + extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout + ), + cast_to=RoleDeleteResponse, + ) + + +class RolesResourceWithRawResponse: + def __init__(self, roles: RolesResource) -> None: + self._roles = roles + + self.list = to_raw_response_wrapper( + roles.list, + ) + self.create = to_raw_response_wrapper( + roles.create, + ) + self.retrieve = to_raw_response_wrapper( + roles.retrieve, + ) + self.update = to_raw_response_wrapper( + roles.update, + ) + self.delete = to_raw_response_wrapper( + roles.delete, + ) + + +class AsyncRolesResourceWithRawResponse: + def __init__(self, roles: AsyncRolesResource) -> None: + self._roles = roles + + self.list = async_to_raw_response_wrapper( + roles.list, + ) + self.create = async_to_raw_response_wrapper( + roles.create, + ) + self.retrieve = async_to_raw_response_wrapper( + roles.retrieve, + ) + self.update = async_to_raw_response_wrapper( + roles.update, + ) + self.delete = async_to_raw_response_wrapper( + roles.delete, + ) + + +class RolesResourceWithStreamingResponse: + def __init__(self, roles: RolesResource) -> None: + self._roles = roles + + self.list = to_streamed_response_wrapper( + roles.list, + ) + self.create = to_streamed_response_wrapper( + roles.create, + ) + self.retrieve = to_streamed_response_wrapper( + roles.retrieve, + ) + self.update = to_streamed_response_wrapper( + roles.update, + ) + self.delete = to_streamed_response_wrapper( + roles.delete, + ) + + +class AsyncRolesResourceWithStreamingResponse: + def __init__(self, roles: AsyncRolesResource) -> None: + self._roles = roles + + self.list = async_to_streamed_response_wrapper( + roles.list, + ) + self.create = async_to_streamed_response_wrapper( + roles.create, + ) + self.retrieve = async_to_streamed_response_wrapper( + roles.retrieve, + ) + self.update = async_to_streamed_response_wrapper( + roles.update, + ) + self.delete = async_to_streamed_response_wrapper( + roles.delete, + ) diff --git a/src/tembo/resources/pins.py b/src/tembo/resources/pins.py index 0fffb0d3..564be662 100644 --- a/src/tembo/resources/pins.py +++ b/src/tembo/resources/pins.py @@ -83,7 +83,7 @@ def list( def create( self, *, - type: Literal["session", "pull_request", "project"], + type: Literal["session", "pull_request", "project", "folder"], id: str, placement: pin_create_params.Placement | Omit = omit, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. @@ -94,11 +94,11 @@ def create( timeout: float | httpx.Timeout | None | NotGiven = not_given, ) -> PinCreateResponse: """ - Pin a session, pull request, or project you have permission to access. + Pin a session, pull request, or project you have permission to access, or one of your folders. Args: - type: Kind of resource to pin or unpin: session, pull_request, or project. - id: ID of the session, pull request, or project, not a separate pin ID. + type: Kind of resource to pin or unpin: session, pull_request, project, or folder. + id: ID of the session, pull request, project, or folder, not a separate pin ID. placement: Position of a new pin relative to another pin. Omit to add it first. Ignored if the resource is already pinned; use updatePin to reorder. extra_headers: Send extra headers with the request. extra_query: Send extra query parameters with the request. @@ -136,7 +136,7 @@ def update( self, resource_id: str, *, - resource_type: Literal["session", "pull_request", "project"], + resource_type: Literal["session", "pull_request", "project", "folder"], placement: pin_update_params.Placement, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. # The extra values given here take precedence over values defined on the client or passed to this method. @@ -146,11 +146,11 @@ def update( timeout: float | httpx.Timeout | None | NotGiven = not_given, ) -> PinUpdateResponse: """ - Reorder a pinned session, pull request, or project before or after another pin for the authenticated user. Use createPin to pin a resource and deletePin to unpin it. + Reorder a pinned session, pull request, project, or folder before or after another pin for the authenticated user. Use createPin to pin a resource and deletePin to unpin it. Args: - resource_id: ID of the pinned session, pull request, or project, not a separate pin ID. - resource_type: Kind of resource to pin or unpin: session, pull_request, or project. + resource_id: ID of the pinned session, pull request, project, or folder, not a separate pin ID. + resource_type: Kind of resource to pin or unpin: session, pull_request, project, or folder. placement: Reorder an existing pin before or after another pin. Use createPin to pin a resource and deletePin to unpin it. extra_headers: Send extra headers with the request. extra_query: Send extra query parameters with the request. @@ -191,7 +191,7 @@ def delete( self, resource_id: str, *, - resource_type: Literal["session", "pull_request", "project"], + resource_type: Literal["session", "pull_request", "project", "folder"], # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. # The extra values given here take precedence over values defined on the client or passed to this method. extra_headers: Headers | None = None, @@ -200,11 +200,11 @@ def delete( timeout: float | httpx.Timeout | None | NotGiven = not_given, ) -> PinDeleteResponse: """ - Unpin a session, pull request, or project for the authenticated user without deleting or archiving the resource. + Unpin a session, pull request, project, or folder for the authenticated user without deleting or archiving the resource. Args: - resource_id: ID of the pinned session, pull request, or project, not a separate pin ID. - resource_type: Kind of resource to pin or unpin: session, pull_request, or project. + resource_id: ID of the pinned session, pull request, project, or folder, not a separate pin ID. + resource_type: Kind of resource to pin or unpin: session, pull_request, project, or folder. extra_headers: Send extra headers with the request. extra_query: Send extra query parameters with the request. extra_body: Send extra JSON properties with the request. @@ -293,7 +293,7 @@ async def list( async def create( self, *, - type: Literal["session", "pull_request", "project"], + type: Literal["session", "pull_request", "project", "folder"], id: str, placement: pin_create_params.Placement | Omit = omit, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. @@ -304,11 +304,11 @@ async def create( timeout: float | httpx.Timeout | None | NotGiven = not_given, ) -> PinCreateResponse: """ - Pin a session, pull request, or project you have permission to access. + Pin a session, pull request, or project you have permission to access, or one of your folders. Args: - type: Kind of resource to pin or unpin: session, pull_request, or project. - id: ID of the session, pull request, or project, not a separate pin ID. + type: Kind of resource to pin or unpin: session, pull_request, project, or folder. + id: ID of the session, pull request, project, or folder, not a separate pin ID. placement: Position of a new pin relative to another pin. Omit to add it first. Ignored if the resource is already pinned; use updatePin to reorder. extra_headers: Send extra headers with the request. extra_query: Send extra query parameters with the request. @@ -346,7 +346,7 @@ async def update( self, resource_id: str, *, - resource_type: Literal["session", "pull_request", "project"], + resource_type: Literal["session", "pull_request", "project", "folder"], placement: pin_update_params.Placement, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. # The extra values given here take precedence over values defined on the client or passed to this method. @@ -356,11 +356,11 @@ async def update( timeout: float | httpx.Timeout | None | NotGiven = not_given, ) -> PinUpdateResponse: """ - Reorder a pinned session, pull request, or project before or after another pin for the authenticated user. Use createPin to pin a resource and deletePin to unpin it. + Reorder a pinned session, pull request, project, or folder before or after another pin for the authenticated user. Use createPin to pin a resource and deletePin to unpin it. Args: - resource_id: ID of the pinned session, pull request, or project, not a separate pin ID. - resource_type: Kind of resource to pin or unpin: session, pull_request, or project. + resource_id: ID of the pinned session, pull request, project, or folder, not a separate pin ID. + resource_type: Kind of resource to pin or unpin: session, pull_request, project, or folder. placement: Reorder an existing pin before or after another pin. Use createPin to pin a resource and deletePin to unpin it. extra_headers: Send extra headers with the request. extra_query: Send extra query parameters with the request. @@ -401,7 +401,7 @@ async def delete( self, resource_id: str, *, - resource_type: Literal["session", "pull_request", "project"], + resource_type: Literal["session", "pull_request", "project", "folder"], # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. # The extra values given here take precedence over values defined on the client or passed to this method. extra_headers: Headers | None = None, @@ -410,11 +410,11 @@ async def delete( timeout: float | httpx.Timeout | None | NotGiven = not_given, ) -> PinDeleteResponse: """ - Unpin a session, pull request, or project for the authenticated user without deleting or archiving the resource. + Unpin a session, pull request, project, or folder for the authenticated user without deleting or archiving the resource. Args: - resource_id: ID of the pinned session, pull request, or project, not a separate pin ID. - resource_type: Kind of resource to pin or unpin: session, pull_request, or project. + resource_id: ID of the pinned session, pull request, project, or folder, not a separate pin ID. + resource_type: Kind of resource to pin or unpin: session, pull_request, project, or folder. extra_headers: Send extra headers with the request. extra_query: Send extra query parameters with the request. extra_body: Send extra JSON properties with the request. diff --git a/src/tembo/resources/projects/projects.py b/src/tembo/resources/projects/projects.py index eecb23b2..bedc494d 100644 --- a/src/tembo/resources/projects/projects.py +++ b/src/tembo/resources/projects/projects.py @@ -53,6 +53,7 @@ ) from ...types.project_update_defaults_response import ProjectUpdateDefaultsResponse from ...types import project_update_defaults_params, project_list_params, project_create_params, project_update_params +from ...types.project_retrieve_defaults_response import ProjectRetrieveDefaultsResponse from ...types.project_list_response import ProjectListResponse from ...types.project_create_response import ProjectCreateResponse from ...types.project_retrieve_response import ProjectRetrieveResponse @@ -137,6 +138,41 @@ def update_defaults( cast_to=ProjectUpdateDefaultsResponse, ) + def retrieve_defaults( + self, + *, + # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. + # The extra values given here take precedence over values defined on the client or passed to this method. + extra_headers: Headers | None = None, + extra_query: Query | None = None, + extra_body: Body | None = None, + timeout: float | httpx.Timeout | None | NotGiven = not_given, + ) -> ProjectRetrieveDefaultsResponse: + """ + Get the default sandbox size and the largest size the plan allows. + + Args: + extra_headers: Send extra headers with the request. + extra_query: Send extra query parameters with the request. + extra_body: Send extra JSON properties with the request. + timeout: Override the client-level default timeout for this request, in seconds. + + Returns: + ProjectRetrieveDefaultsResponse: Retrieve project defaults + + Example: + ```python + project = client.projects.retrieve_defaults() + ``` + """ + return self._get( + "/v1/projects/defaults", + options=make_request_options( + extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout + ), + cast_to=ProjectRetrieveDefaultsResponse, + ) + def list( self, *, @@ -616,6 +652,41 @@ async def update_defaults( cast_to=ProjectUpdateDefaultsResponse, ) + async def retrieve_defaults( + self, + *, + # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. + # The extra values given here take precedence over values defined on the client or passed to this method. + extra_headers: Headers | None = None, + extra_query: Query | None = None, + extra_body: Body | None = None, + timeout: float | httpx.Timeout | None | NotGiven = not_given, + ) -> ProjectRetrieveDefaultsResponse: + """ + Get the default sandbox size and the largest size the plan allows. + + Args: + extra_headers: Send extra headers with the request. + extra_query: Send extra query parameters with the request. + extra_body: Send extra JSON properties with the request. + timeout: Override the client-level default timeout for this request, in seconds. + + Returns: + ProjectRetrieveDefaultsResponse: Retrieve project defaults + + Example: + ```python + project = await client.projects.retrieve_defaults() + ``` + """ + return await self._get( + "/v1/projects/defaults", + options=make_request_options( + extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout + ), + cast_to=ProjectRetrieveDefaultsResponse, + ) + async def list( self, *, @@ -1028,6 +1099,9 @@ def __init__(self, projects: ProjectsResource) -> None: self.update_defaults = to_raw_response_wrapper( projects.update_defaults, ) + self.retrieve_defaults = to_raw_response_wrapper( + projects.retrieve_defaults, + ) self.list = to_raw_response_wrapper( projects.list, ) @@ -1071,6 +1145,9 @@ def __init__(self, projects: AsyncProjectsResource) -> None: self.update_defaults = async_to_raw_response_wrapper( projects.update_defaults, ) + self.retrieve_defaults = async_to_raw_response_wrapper( + projects.retrieve_defaults, + ) self.list = async_to_raw_response_wrapper( projects.list, ) @@ -1114,6 +1191,9 @@ def __init__(self, projects: ProjectsResource) -> None: self.update_defaults = to_streamed_response_wrapper( projects.update_defaults, ) + self.retrieve_defaults = to_streamed_response_wrapper( + projects.retrieve_defaults, + ) self.list = to_streamed_response_wrapper( projects.list, ) @@ -1157,6 +1237,9 @@ def __init__(self, projects: AsyncProjectsResource) -> None: self.update_defaults = async_to_streamed_response_wrapper( projects.update_defaults, ) + self.retrieve_defaults = async_to_streamed_response_wrapper( + projects.retrieve_defaults, + ) self.list = async_to_streamed_response_wrapper( projects.list, ) diff --git a/src/tembo/resources/sessions/sessions.py b/src/tembo/resources/sessions/sessions.py index ceb5f3d8..cff259ad 100644 --- a/src/tembo/resources/sessions/sessions.py +++ b/src/tembo/resources/sessions/sessions.py @@ -121,9 +121,11 @@ def list( limit: int | Omit = omit, exclude_pinned: bool | Omit = omit, external_ids: SequenceNotStr[str] | Omit = omit, + folder_id: str | Omit = omit, has_project: bool | Omit = omit, include_archived: bool | Omit = omit, include_total: bool | Omit = omit, + in_folder: bool | Omit = omit, parent_session_id: str | Omit = omit, participant: SequenceNotStr[str] | Omit = omit, pending_reviewer_keys: SequenceNotStr[str] | Omit = omit, @@ -153,9 +155,11 @@ def list( limit: Maximum number of items to return in one page. Use nextCursor from the response to fetch more items. exclude_pinned: Exclude sessions pinned by the authenticated user. external_ids: Filter by external source IDs, supplied as a comma-separated list. + folder_id: Only sessions in this sidebar folder of the authenticated user. Takes precedence over inFolder. has_project: Filter by whether a session has an assigned project. include_archived: Include archived sessions in the all-state view. Defaults to true; state=archived explicitly selects archived sessions. include_total: Include totalCount. Not supported with state=active. + in_folder: Filter by whether a session is in one of the authenticated user's sidebar folders. parent_session_id: Filter sessions created by this session. participant: Filter by participant IDs, supplied as a comma-separated list. pending_reviewer_keys: Filter by pending reviewer keys, supplied as a comma-separated list. @@ -202,9 +206,11 @@ def list( "limit": limit, "exclude_pinned": exclude_pinned, "external_ids": external_ids, + "folder_id": folder_id, "has_project": has_project, "include_archived": include_archived, "include_total": include_total, + "in_folder": in_folder, "parent_session_id": parent_session_id, "participant": participant, "pending_reviewer_keys": pending_reviewer_keys, @@ -559,7 +565,7 @@ def fork( def import_( self, *, - source: Literal["conductor"], + source: Literal["conductor", "chatgpt", "claude", "devin"], external_id: str, title: str, messages: Iterable[session_import_params.Message], @@ -757,9 +763,11 @@ async def list( limit: int | Omit = omit, exclude_pinned: bool | Omit = omit, external_ids: SequenceNotStr[str] | Omit = omit, + folder_id: str | Omit = omit, has_project: bool | Omit = omit, include_archived: bool | Omit = omit, include_total: bool | Omit = omit, + in_folder: bool | Omit = omit, parent_session_id: str | Omit = omit, participant: SequenceNotStr[str] | Omit = omit, pending_reviewer_keys: SequenceNotStr[str] | Omit = omit, @@ -789,9 +797,11 @@ async def list( limit: Maximum number of items to return in one page. Use nextCursor from the response to fetch more items. exclude_pinned: Exclude sessions pinned by the authenticated user. external_ids: Filter by external source IDs, supplied as a comma-separated list. + folder_id: Only sessions in this sidebar folder of the authenticated user. Takes precedence over inFolder. has_project: Filter by whether a session has an assigned project. include_archived: Include archived sessions in the all-state view. Defaults to true; state=archived explicitly selects archived sessions. include_total: Include totalCount. Not supported with state=active. + in_folder: Filter by whether a session is in one of the authenticated user's sidebar folders. parent_session_id: Filter sessions created by this session. participant: Filter by participant IDs, supplied as a comma-separated list. pending_reviewer_keys: Filter by pending reviewer keys, supplied as a comma-separated list. @@ -838,9 +848,11 @@ async def list( "limit": limit, "exclude_pinned": exclude_pinned, "external_ids": external_ids, + "folder_id": folder_id, "has_project": has_project, "include_archived": include_archived, "include_total": include_total, + "in_folder": in_folder, "parent_session_id": parent_session_id, "participant": participant, "pending_reviewer_keys": pending_reviewer_keys, @@ -1195,7 +1207,7 @@ async def fork( async def import_( self, *, - source: Literal["conductor"], + source: Literal["conductor", "chatgpt", "claude", "devin"], external_id: str, title: str, messages: Iterable[session_import_params.Message], diff --git a/src/tembo/types/__init__.py b/src/tembo/types/__init__.py index f84344c3..0d34243c 100644 --- a/src/tembo/types/__init__.py +++ b/src/tembo/types/__init__.py @@ -90,6 +90,7 @@ from .artifact_create_response import ArtifactCreateResponse as ArtifactCreateResponse from .artifact_create_params import ArtifactCreateParams as ArtifactCreateParams from .artifact_retrieve_response import ArtifactRetrieveResponse as ArtifactRetrieveResponse +from .artifact_retrieve_asset_url_response import ArtifactRetrieveAssetURLResponse as ArtifactRetrieveAssetURLResponse from .artifact_delete_response import ArtifactDeleteResponse as ArtifactDeleteResponse from .message_list_response import MessageListResponse as MessageListResponse from .message_list_params import MessageListParams as MessageListParams @@ -125,6 +126,7 @@ from .session_list_events_params import SessionListEventsParams as SessionListEventsParams from .project_update_defaults_response import ProjectUpdateDefaultsResponse as ProjectUpdateDefaultsResponse from .project_update_defaults_params import ProjectUpdateDefaultsParams as ProjectUpdateDefaultsParams +from .project_retrieve_defaults_response import ProjectRetrieveDefaultsResponse as ProjectRetrieveDefaultsResponse from .project_list_response import ProjectListResponse as ProjectListResponse from .project_list_params import ProjectListParams as ProjectListParams from .project_create_response import ProjectCreateResponse as ProjectCreateResponse @@ -196,6 +198,12 @@ from .billing_retrieve_response import BillingRetrieveResponse as BillingRetrieveResponse from .billing_list_usage_response import BillingListUsageResponse as BillingListUsageResponse from .billing_list_usage_params import BillingListUsageParams as BillingListUsageParams +from .folder_list_response import FolderListResponse as FolderListResponse +from .folder_create_response import FolderCreateResponse as FolderCreateResponse +from .folder_create_params import FolderCreateParams as FolderCreateParams +from .folder_update_response import FolderUpdateResponse as FolderUpdateResponse +from .folder_update_params import FolderUpdateParams as FolderUpdateParams +from .folder_delete_response import FolderDeleteResponse as FolderDeleteResponse from .live_authorize_response import LiveAuthorizeResponse as LiveAuthorizeResponse from .live_connect_params import LiveConnectParams as LiveConnectParams from .websocket_connection_options import WebSocketConnectionOptions as WebSocketConnectionOptions diff --git a/src/tembo/types/agents/run_create_response.py b/src/tembo/types/agents/run_create_response.py index e936cdfd..f8b29d42 100644 --- a/src/tembo/types/agents/run_create_response.py +++ b/src/tembo/types/agents/run_create_response.py @@ -12,6 +12,9 @@ class RunCreateResponse(BaseModel): job_id: str = FieldInfo(alias="jobId") + run_id: str = FieldInfo(alias="runId") + """ID of the agent run. Retrieve it with GET /v1/agents/{agentId}/runs/{runId}; its sessionId is set once the run starts its session.""" + agent_id: str = FieldInfo(alias="agentId") status: Literal["queued"] diff --git a/src/tembo/types/artifact_retrieve_asset_url_response.py b/src/tembo/types/artifact_retrieve_asset_url_response.py new file mode 100644 index 00000000..371ebc22 --- /dev/null +++ b/src/tembo/types/artifact_retrieve_asset_url_response.py @@ -0,0 +1,13 @@ +# File generated from our OpenAPI spec by Scalar. See README.md for details. + +from pydantic import Field as FieldInfo + +from .._models import BaseModel + +__all__ = ["ArtifactRetrieveAssetURLResponse"] + + +class ArtifactRetrieveAssetURLResponse(BaseModel): + asset_id: str = FieldInfo(alias="assetId") + + asset_url: str = FieldInfo(alias="assetUrl") diff --git a/src/tembo/types/billing_retrieve_response.py b/src/tembo/types/billing_retrieve_response.py index 6892bd8c..7303d683 100644 --- a/src/tembo/types/billing_retrieve_response.py +++ b/src/tembo/types/billing_retrieve_response.py @@ -125,6 +125,8 @@ class Trial(BaseModel): remaining_allowance: float = FieldInfo(alias="remainingAllowance") + purchased_credits: float = FieldInfo(alias="purchasedCredits") + exhausted: bool diff --git a/src/tembo/types/folder_create_params.py b/src/tembo/types/folder_create_params.py new file mode 100644 index 00000000..7e8e82f0 --- /dev/null +++ b/src/tembo/types/folder_create_params.py @@ -0,0 +1,15 @@ +# File generated from our OpenAPI spec by Scalar. See README.md for details. + +from __future__ import annotations + +from typing_extensions import Literal, Required, TypedDict + +__all__ = ["FolderCreateParams"] + + +class FolderCreateParams(TypedDict, total=False): + name: Required[str] + """Folder name shown in the sidebar.""" + + color: Literal["neutral", "red", "orange", "yellow", "green", "teal", "blue", "purple", "pink"] + """Folder icon color. Defaults to neutral.""" diff --git a/src/tembo/types/folder_create_response.py b/src/tembo/types/folder_create_response.py new file mode 100644 index 00000000..64f34771 --- /dev/null +++ b/src/tembo/types/folder_create_response.py @@ -0,0 +1,23 @@ +# File generated from our OpenAPI spec by Scalar. See README.md for details. + +from datetime import datetime +from typing_extensions import Literal + +from pydantic import Field as FieldInfo + +from .._models import BaseModel + +__all__ = ["FolderCreateResponse"] + + +class FolderCreateResponse(BaseModel): + id: str + + name: str + + color: Literal["neutral", "red", "orange", "yellow", "green", "teal", "blue", "purple", "pink"] + """Folder icon color, from the same palette as project icons.""" + + created_at: datetime = FieldInfo(alias="createdAt") + + updated_at: datetime = FieldInfo(alias="updatedAt") diff --git a/src/tembo/types/folder_delete_response.py b/src/tembo/types/folder_delete_response.py new file mode 100644 index 00000000..9c12a0eb --- /dev/null +++ b/src/tembo/types/folder_delete_response.py @@ -0,0 +1,13 @@ +# File generated from our OpenAPI spec by Scalar. See README.md for details. + +from typing_extensions import Literal + +from .._models import BaseModel + +__all__ = ["FolderDeleteResponse"] + + +class FolderDeleteResponse(BaseModel): + id: str + + deleted: Literal[True] diff --git a/src/tembo/types/folder_list_response.py b/src/tembo/types/folder_list_response.py new file mode 100644 index 00000000..182069b5 --- /dev/null +++ b/src/tembo/types/folder_list_response.py @@ -0,0 +1,31 @@ +# File generated from our OpenAPI spec by Scalar. See README.md for details. + +from __future__ import annotations + +from typing import List +from datetime import datetime +from typing_extensions import Literal + +from pydantic import Field as FieldInfo + +from .._models import BaseModel + +__all__ = ["FolderListResponse", "Item"] + + +class Item(BaseModel): + id: str + + name: str + + color: Literal["neutral", "red", "orange", "yellow", "green", "teal", "blue", "purple", "pink"] + """Folder icon color, from the same palette as project icons.""" + + created_at: datetime = FieldInfo(alias="createdAt") + + updated_at: datetime = FieldInfo(alias="updatedAt") + + +class FolderListResponse(BaseModel): + items: List[Item] + """Your folders in sidebar order.""" diff --git a/src/tembo/types/folder_update_params.py b/src/tembo/types/folder_update_params.py new file mode 100644 index 00000000..70d4baf4 --- /dev/null +++ b/src/tembo/types/folder_update_params.py @@ -0,0 +1,53 @@ +# File generated from our OpenAPI spec by Scalar. See README.md for details. + +from __future__ import annotations + +from typing_extensions import Annotated, Literal, Required, TypedDict + +from .._utils import PropertyInfo + +__all__ = ["FolderUpdateParams", "Placement", "AddSession", "AddSessionPlacement", "RemoveSession"] + + +class FolderUpdateParams(TypedDict, total=False): + name: str + """Folder name shown in the sidebar.""" + + color: Literal["neutral", "red", "orange", "yellow", "green", "teal", "blue", "purple", "pink"] + """Folder icon color, from the same palette as project icons.""" + + placement: Placement + """Where to put this folder in your sidebar folder list. Pinned folders are ordered with updatePin instead.""" + + add_session: Annotated[AddSession, PropertyInfo(alias="addSession")] + """Session to put in this folder, taking it out of any other folder of yours, or to reorder within it.""" + + remove_session: Annotated[RemoveSession, PropertyInfo(alias="removeSession")] + """Session to take out of this folder.""" + + +class RemoveSession(TypedDict, total=False): + id: Required[str] + + +class AddSessionPlacement(TypedDict, total=False): + target: Required[str] + """Session in this folder to place the added session next to.""" + + position: Required[Literal["before", "after"]] + """Whether to place the session before or after the target.""" + + +class AddSession(TypedDict, total=False): + id: Required[str] + + placement: AddSessionPlacement + """Where to put the session in the folder. Omit to put a newly added session first and leave one already here where it is.""" + + +class Placement(TypedDict, total=False): + target: Required[str] + """Another of your folders to place this folder next to.""" + + position: Required[Literal["before", "after"]] + """Whether to place this folder before or after the target.""" diff --git a/src/tembo/types/folder_update_response.py b/src/tembo/types/folder_update_response.py new file mode 100644 index 00000000..0eaed554 --- /dev/null +++ b/src/tembo/types/folder_update_response.py @@ -0,0 +1,23 @@ +# File generated from our OpenAPI spec by Scalar. See README.md for details. + +from datetime import datetime +from typing_extensions import Literal + +from pydantic import Field as FieldInfo + +from .._models import BaseModel + +__all__ = ["FolderUpdateResponse"] + + +class FolderUpdateResponse(BaseModel): + id: str + + name: str + + color: Literal["neutral", "red", "orange", "yellow", "green", "teal", "blue", "purple", "pink"] + """Folder icon color, from the same palette as project icons.""" + + created_at: datetime = FieldInfo(alias="createdAt") + + updated_at: datetime = FieldInfo(alias="updatedAt") diff --git a/src/tembo/types/insight_retrieve_response.py b/src/tembo/types/insight_retrieve_response.py index 8cf7bfc3..7ea40f40 100644 --- a/src/tembo/types/insight_retrieve_response.py +++ b/src/tembo/types/insight_retrieve_response.py @@ -29,13 +29,13 @@ class DataTimeSeries(BaseModel): class DataSummaryChanges(BaseModel): - prs_created: float = FieldInfo(alias="prsCreated") + prs_created: Optional[float] = FieldInfo(alias="prsCreated", default=None) - prs_merged: float = FieldInfo(alias="prsMerged") + prs_merged: Optional[float] = FieldInfo(alias="prsMerged", default=None) - tasks_completed: float = FieldInfo(alias="tasksCompleted") + tasks_completed: Optional[float] = FieldInfo(alias="tasksCompleted", default=None) - tembo_contribution: float = FieldInfo(alias="temboContribution") + tembo_contribution: Optional[float] = FieldInfo(alias="temboContribution", default=None) class DataSummary(BaseModel): @@ -45,9 +45,13 @@ class DataSummary(BaseModel): prs_merged: int = FieldInfo(alias="prsMerged") + model_cost_per_pr_usd: Optional[float] = FieldInfo(alias="modelCostPerPrUsd", default=None) + """Recorded model cost plus VM compute fees in USD across the organization divided by Tembo-created PRs in the selected sync window. Excludes subscription fees and inference billing markup. Null when there are no PRs or no recorded costs.""" + tembo_contribution: float = FieldInfo(alias="temboContribution") changes: DataSummaryChanges + """Recent period compared with the previous one. Null when the previous period has no baseline, such as when the organization joined during it.""" class Data(BaseModel): diff --git a/src/tembo/types/insight_update_response.py b/src/tembo/types/insight_update_response.py index 3d42a401..a120499f 100644 --- a/src/tembo/types/insight_update_response.py +++ b/src/tembo/types/insight_update_response.py @@ -29,13 +29,13 @@ class DataTimeSeries(BaseModel): class DataSummaryChanges(BaseModel): - prs_created: float = FieldInfo(alias="prsCreated") + prs_created: Optional[float] = FieldInfo(alias="prsCreated", default=None) - prs_merged: float = FieldInfo(alias="prsMerged") + prs_merged: Optional[float] = FieldInfo(alias="prsMerged", default=None) - tasks_completed: float = FieldInfo(alias="tasksCompleted") + tasks_completed: Optional[float] = FieldInfo(alias="tasksCompleted", default=None) - tembo_contribution: float = FieldInfo(alias="temboContribution") + tembo_contribution: Optional[float] = FieldInfo(alias="temboContribution", default=None) class DataSummary(BaseModel): @@ -45,9 +45,13 @@ class DataSummary(BaseModel): prs_merged: int = FieldInfo(alias="prsMerged") + model_cost_per_pr_usd: Optional[float] = FieldInfo(alias="modelCostPerPrUsd", default=None) + """Recorded model cost plus VM compute fees in USD across the organization divided by Tembo-created PRs in the selected sync window. Excludes subscription fees and inference billing markup. Null when there are no PRs or no recorded costs.""" + tembo_contribution: float = FieldInfo(alias="temboContribution") changes: DataSummaryChanges + """Recent period compared with the previous one. Null when the previous period has no baseline, such as when the organization joined during it.""" class Data(BaseModel): diff --git a/src/tembo/types/organization_retrieve_response.py b/src/tembo/types/organization_retrieve_response.py index ce246427..71aaf0b2 100644 --- a/src/tembo/types/organization_retrieve_response.py +++ b/src/tembo/types/organization_retrieve_response.py @@ -251,6 +251,8 @@ class OrganizationRetrieveResponse2CurrentMembership(BaseModel): "file:write", "pin:read", "pin:write", + "folder:read", + "folder:write", "queue:job:read", "queue:job:write", "queue:host_manager_job:read", @@ -512,6 +514,8 @@ class OrganizationRetrieveResponseCurrentMembership(BaseModel): "file:write", "pin:read", "pin:write", + "folder:read", + "folder:write", "queue:job:read", "queue:job:write", "queue:host_manager_job:read", diff --git a/src/tembo/types/organizations/__init__.py b/src/tembo/types/organizations/__init__.py index 54783950..f1a124db 100644 --- a/src/tembo/types/organizations/__init__.py +++ b/src/tembo/types/organizations/__init__.py @@ -10,6 +10,14 @@ from .member_update_response import MemberUpdateResponse as MemberUpdateResponse from .member_update_params import MemberUpdateParams as MemberUpdateParams from .member_delete_response import MemberDeleteResponse as MemberDeleteResponse +from .role_list_response import RoleListResponse as RoleListResponse +from .role_create_response import RoleCreateResponse as RoleCreateResponse +from .role_create_params import RoleCreateParams as RoleCreateParams +from .role_retrieve_response import RoleRetrieveResponse as RoleRetrieveResponse +from .role_update_response import RoleUpdateResponse as RoleUpdateResponse +from .role_update_params import RoleUpdateParams as RoleUpdateParams +from .role_delete_response import RoleDeleteResponse as RoleDeleteResponse +from .role_delete_params import RoleDeleteParams as RoleDeleteParams from .secret_list_response import SecretListResponse as SecretListResponse from .secret_list_params import SecretListParams as SecretListParams from .secret_create_response import SecretCreateResponse as SecretCreateResponse diff --git a/src/tembo/types/organizations/member_create_params.py b/src/tembo/types/organizations/member_create_params.py index 850205af..5002575b 100644 --- a/src/tembo/types/organizations/member_create_params.py +++ b/src/tembo/types/organizations/member_create_params.py @@ -2,7 +2,7 @@ from __future__ import annotations -from typing_extensions import Annotated, Literal, Required, TypedDict +from typing_extensions import Annotated, Required, TypedDict from ..._utils import PropertyInfo @@ -13,5 +13,4 @@ class MemberCreateParams(TypedDict, total=False): email_address: Required[Annotated[str, PropertyInfo(alias="emailAddress")]] """Email address of the user to add or invite.""" - role: Literal["org:admin", "org:member"] - """Organization role to grant: org:admin or org:member.""" + role_id: Required[Annotated[str, PropertyInfo(alias="roleId")]] diff --git a/src/tembo/types/organizations/member_create_response.py b/src/tembo/types/organizations/member_create_response.py index b25e73ce..ab0610af 100644 --- a/src/tembo/types/organizations/member_create_response.py +++ b/src/tembo/types/organizations/member_create_response.py @@ -1,26 +1,60 @@ # File generated from our OpenAPI spec by Scalar. See README.md for details. -from typing import Optional +from __future__ import annotations + +from typing import Optional, Union from datetime import datetime -from typing_extensions import Literal +from typing_extensions import Literal, TypeAlias from pydantic import Field as FieldInfo from ..._models import BaseModel -__all__ = ["MemberCreateResponse"] +__all__ = ["MemberCreateResponse", "MemberCreateResponseRole", "MemberCreateResponse2", "MemberCreateResponse2Role"] -class MemberCreateResponse(BaseModel): +class MemberCreateResponse2Role(BaseModel): + id: str + + name: str + + +class MemberCreateResponse2(BaseModel): created_at: datetime = FieldInfo(alias="createdAt") id: str - role: Literal["org:admin", "org:member"] + updated_at: datetime = FieldInfo(alias="updatedAt") + + user_id: None = FieldInfo(alias="userId", default=None) + + email_address: str = FieldInfo(alias="emailAddress") + + first_name: Optional[str] = FieldInfo(alias="firstName", default=None) + + image_url: Optional[str] = FieldInfo(alias="imageUrl", default=None) + + last_name: Optional[str] = FieldInfo(alias="lastName", default=None) + + role: Optional[MemberCreateResponse2Role] = None + + status: Literal["pending"] + + +class MemberCreateResponseRole(BaseModel): + id: str + + name: str + + +class MemberCreateResponse(BaseModel): + created_at: datetime = FieldInfo(alias="createdAt") + + id: str updated_at: datetime = FieldInfo(alias="updatedAt") - user_id: Optional[str] = FieldInfo(alias="userId", default=None) + user_id: str = FieldInfo(alias="userId") email_address: str = FieldInfo(alias="emailAddress") @@ -30,4 +64,9 @@ class MemberCreateResponse(BaseModel): last_name: Optional[str] = FieldInfo(alias="lastName", default=None) - status: Literal["active", "pending"] + role: MemberCreateResponseRole + + status: Literal["active"] + + +MemberCreateResponse: TypeAlias = Union[MemberCreateResponse, MemberCreateResponse2] diff --git a/src/tembo/types/organizations/member_list_response.py b/src/tembo/types/organizations/member_list_response.py index feaba911..a73ee5eb 100644 --- a/src/tembo/types/organizations/member_list_response.py +++ b/src/tembo/types/organizations/member_list_response.py @@ -2,27 +2,59 @@ from __future__ import annotations -from typing import List, Optional +from typing import List, Optional, Union from datetime import datetime -from typing_extensions import Literal +from typing_extensions import Literal, TypeAlias from pydantic import Field as FieldInfo from ..._models import BaseModel -__all__ = ["MemberListResponse", "Item"] +__all__ = ["MemberListResponse", "Item", "Item2", "Item2Role", "Item3", "Item3Role"] -class Item(BaseModel): +class Item3Role(BaseModel): + id: str + + name: str + + +class Item3(BaseModel): created_at: datetime = FieldInfo(alias="createdAt") id: str - role: Literal["org:admin", "org:member"] + updated_at: datetime = FieldInfo(alias="updatedAt") + + user_id: None = FieldInfo(alias="userId", default=None) + + email_address: str = FieldInfo(alias="emailAddress") + + first_name: Optional[str] = FieldInfo(alias="firstName", default=None) + + image_url: Optional[str] = FieldInfo(alias="imageUrl", default=None) + + last_name: Optional[str] = FieldInfo(alias="lastName", default=None) + + role: Optional[Item3Role] = None + + status: Literal["pending"] + + +class Item2Role(BaseModel): + id: str + + name: str + + +class Item2(BaseModel): + created_at: datetime = FieldInfo(alias="createdAt") + + id: str updated_at: datetime = FieldInfo(alias="updatedAt") - user_id: Optional[str] = FieldInfo(alias="userId", default=None) + user_id: str = FieldInfo(alias="userId") email_address: str = FieldInfo(alias="emailAddress") @@ -32,7 +64,12 @@ class Item(BaseModel): last_name: Optional[str] = FieldInfo(alias="lastName", default=None) - status: Literal["active", "pending"] + role: Item2Role + + status: Literal["active"] + + +Item: TypeAlias = Union[Item2, Item3] class MemberListResponse(BaseModel): diff --git a/src/tembo/types/organizations/member_retrieve_response.py b/src/tembo/types/organizations/member_retrieve_response.py index 7d32fd5c..4b0f4ec0 100644 --- a/src/tembo/types/organizations/member_retrieve_response.py +++ b/src/tembo/types/organizations/member_retrieve_response.py @@ -1,26 +1,65 @@ # File generated from our OpenAPI spec by Scalar. See README.md for details. -from typing import Optional +from __future__ import annotations + +from typing import Optional, Union from datetime import datetime -from typing_extensions import Literal +from typing_extensions import Literal, TypeAlias from pydantic import Field as FieldInfo from ..._models import BaseModel -__all__ = ["MemberRetrieveResponse"] +__all__ = [ + "MemberRetrieveResponse", + "MemberRetrieveResponseRole", + "MemberRetrieveResponse2", + "MemberRetrieveResponse2Role", +] -class MemberRetrieveResponse(BaseModel): +class MemberRetrieveResponse2Role(BaseModel): + id: str + + name: str + + +class MemberRetrieveResponse2(BaseModel): created_at: datetime = FieldInfo(alias="createdAt") id: str - role: Literal["org:admin", "org:member"] + updated_at: datetime = FieldInfo(alias="updatedAt") + + user_id: None = FieldInfo(alias="userId", default=None) + + email_address: str = FieldInfo(alias="emailAddress") + + first_name: Optional[str] = FieldInfo(alias="firstName", default=None) + + image_url: Optional[str] = FieldInfo(alias="imageUrl", default=None) + + last_name: Optional[str] = FieldInfo(alias="lastName", default=None) + + role: Optional[MemberRetrieveResponse2Role] = None + + status: Literal["pending"] + + +class MemberRetrieveResponseRole(BaseModel): + id: str + + name: str + + +class MemberRetrieveResponse(BaseModel): + created_at: datetime = FieldInfo(alias="createdAt") + + id: str updated_at: datetime = FieldInfo(alias="updatedAt") - user_id: Optional[str] = FieldInfo(alias="userId", default=None) + user_id: str = FieldInfo(alias="userId") email_address: str = FieldInfo(alias="emailAddress") @@ -30,4 +69,9 @@ class MemberRetrieveResponse(BaseModel): last_name: Optional[str] = FieldInfo(alias="lastName", default=None) - status: Literal["active", "pending"] + role: MemberRetrieveResponseRole + + status: Literal["active"] + + +MemberRetrieveResponse: TypeAlias = Union[MemberRetrieveResponse, MemberRetrieveResponse2] diff --git a/src/tembo/types/organizations/member_update_params.py b/src/tembo/types/organizations/member_update_params.py index 5eb90625..b0ff6623 100644 --- a/src/tembo/types/organizations/member_update_params.py +++ b/src/tembo/types/organizations/member_update_params.py @@ -2,7 +2,7 @@ from __future__ import annotations -from typing_extensions import Annotated, Literal, Required, TypedDict +from typing_extensions import Annotated, Required, TypedDict from ..._utils import PropertyInfo @@ -12,5 +12,4 @@ class MemberUpdateParams(TypedDict, total=False): organization_id: Required[Annotated[str, PropertyInfo(alias="organizationId")]] - role: Required[Literal["org:admin", "org:member"]] - """New organization role: org:admin or org:member.""" + role_id: Annotated[str, PropertyInfo(alias="roleId")] diff --git a/src/tembo/types/organizations/member_update_response.py b/src/tembo/types/organizations/member_update_response.py index 493761e7..567f932a 100644 --- a/src/tembo/types/organizations/member_update_response.py +++ b/src/tembo/types/organizations/member_update_response.py @@ -1,26 +1,60 @@ # File generated from our OpenAPI spec by Scalar. See README.md for details. -from typing import Optional +from __future__ import annotations + +from typing import Optional, Union from datetime import datetime -from typing_extensions import Literal +from typing_extensions import Literal, TypeAlias from pydantic import Field as FieldInfo from ..._models import BaseModel -__all__ = ["MemberUpdateResponse"] +__all__ = ["MemberUpdateResponse", "MemberUpdateResponseRole", "MemberUpdateResponse2", "MemberUpdateResponse2Role"] -class MemberUpdateResponse(BaseModel): +class MemberUpdateResponse2Role(BaseModel): + id: str + + name: str + + +class MemberUpdateResponse2(BaseModel): created_at: datetime = FieldInfo(alias="createdAt") id: str - role: Literal["org:admin", "org:member"] + updated_at: datetime = FieldInfo(alias="updatedAt") + + user_id: None = FieldInfo(alias="userId", default=None) + + email_address: str = FieldInfo(alias="emailAddress") + + first_name: Optional[str] = FieldInfo(alias="firstName", default=None) + + image_url: Optional[str] = FieldInfo(alias="imageUrl", default=None) + + last_name: Optional[str] = FieldInfo(alias="lastName", default=None) + + role: Optional[MemberUpdateResponse2Role] = None + + status: Literal["pending"] + + +class MemberUpdateResponseRole(BaseModel): + id: str + + name: str + + +class MemberUpdateResponse(BaseModel): + created_at: datetime = FieldInfo(alias="createdAt") + + id: str updated_at: datetime = FieldInfo(alias="updatedAt") - user_id: Optional[str] = FieldInfo(alias="userId", default=None) + user_id: str = FieldInfo(alias="userId") email_address: str = FieldInfo(alias="emailAddress") @@ -30,4 +64,9 @@ class MemberUpdateResponse(BaseModel): last_name: Optional[str] = FieldInfo(alias="lastName", default=None) - status: Literal["active", "pending"] + role: MemberUpdateResponseRole + + status: Literal["active"] + + +MemberUpdateResponse: TypeAlias = Union[MemberUpdateResponse, MemberUpdateResponse2] diff --git a/src/tembo/types/organizations/role_create_params.py b/src/tembo/types/organizations/role_create_params.py new file mode 100644 index 00000000..62348ddf --- /dev/null +++ b/src/tembo/types/organizations/role_create_params.py @@ -0,0 +1,259 @@ +# File generated from our OpenAPI spec by Scalar. See README.md for details. + +from __future__ import annotations + +from typing import List +from typing_extensions import Literal, Required, TypedDict + +__all__ = ["RoleCreateParams"] + + +class RoleCreateParams(TypedDict, total=False): + name: Required[str] + + description: str + + permissions: Required[ + List[ + Literal[ + "organization:read", + "organization:write", + "organization:member:read", + "organization:member:write", + "organization:invitation:read", + "organization:invitation:write", + "organization:role:read", + "organization:role:write", + "organization:secret:read", + "organization:secret:write", + "organization:setting:read", + "organization:setting:write", + "organization:configuration:read", + "organization:configuration:write", + "organization:subscription:read", + "organization:subscription:write", + "organization:onboarding:read", + "organization:onboarding:write", + "organization:logo:read", + "organization:logo:write", + "organization:slack_connect:read", + "organization:slack_connect:write", + "billing:read", + "billing:write", + "billing:trial:read", + "billing:trial:write", + "billing:usage:read", + "billing:usage:write", + "billing:payment:read", + "billing:payment:write", + "billing:payment_method:read", + "billing:payment_method:write", + "billing:checkout:read", + "billing:checkout:write", + "billing:subscription_checkout:read", + "billing:subscription_checkout:write", + "billing:portal:read", + "billing:portal:write", + "billing:on_demand:read", + "billing:on_demand:write", + "billing:credit:read", + "billing:credit:write", + "billing:custom_price:read", + "billing:custom_price:write", + "billing:custom_plan:read", + "billing:custom_plan:write", + "billing:overage_report:read", + "billing:overage_report:write", + "api_key:read", + "api_key:write", + "user:read", + "user:write", + "user:setting:read", + "user:setting:write", + "user:environment_variable:read", + "user:environment_variable:write", + "user:subscription:read", + "user:subscription:write", + "user:connected_account:read", + "user:connected_account:write", + "user:organization:read", + "user:organization:write", + "user:profile_picture:read", + "user:profile_picture:write", + "user:deletion:read", + "user:deletion:write", + "agent:read", + "agent:write", + "agent:schedule:read", + "agent:schedule:write", + "agent:trigger:read", + "agent:trigger:write", + "agent:run:read", + "agent:run:write", + "agent:instruction_revision:read", + "agent:instruction_revision:write", + "agent:template:read", + "agent:template:write", + "session:read", + "session:write", + "session:message:read", + "session:message:write", + "session:artifact:read", + "session:artifact:write", + "session:source:read", + "session:source:write", + "session:command:read", + "session:command:write", + "session:input:read", + "session:input:write", + "session:queue:read", + "session:queue:write", + "session:event:read", + "session:event:write", + "session:file:read", + "session:file:write", + "session:diff:read", + "session:diff:write", + "session:workspace:read", + "session:workspace:write", + "session:workspace_file:read", + "session:workspace_file:write", + "session:workspace_diff:read", + "session:workspace_diff:write", + "session:workspace_preview:read", + "session:workspace_preview:write", + "pull_request:read", + "pull_request:write", + "pull_request:merge:read", + "pull_request:merge:write", + "pull_request:attachment:read", + "pull_request:attachment:write", + "pull_request:session:read", + "pull_request:session:write", + "pull_request:message:read", + "pull_request:message:write", + "pull_request:comment:read", + "pull_request:comment:write", + "pull_request:review:read", + "pull_request:review:write", + "pull_request:reaction:read", + "pull_request:reaction:write", + "pull_request:commit:read", + "pull_request:commit:write", + "pull_request:check:read", + "pull_request:check:write", + "pull_request:file:read", + "pull_request:file:write", + "pull_request:reviewer:read", + "pull_request:reviewer:write", + "pull_request:label:read", + "pull_request:label:write", + "pull_request:thread:read", + "pull_request:thread:write", + "pull_request:tour:read", + "pull_request:tour:write", + "pull_request:branch_status:read", + "pull_request:branch_status:write", + "pull_request:stack:read", + "pull_request:stack:write", + "repository:read", + "repository:write", + "repository:branch:read", + "repository:branch:write", + "repository:file:read", + "repository:file:write", + "repository:pull_request:read", + "repository:pull_request:write", + "repository:user:read", + "repository:user:write", + "repository:label:read", + "repository:label:write", + "integration:read", + "integration:write", + "integration:trigger:read", + "integration:trigger:write", + "integration:provider:read", + "integration:provider:write", + "integration:configuration:read", + "integration:configuration:write", + "integration:snyk_organization:read", + "integration:snyk_organization:write", + "integration:sentry_environment:read", + "integration:sentry_environment:write", + "integration:slack_channel:read", + "integration:slack_channel:write", + "integration:rate_limit:read", + "integration:rate_limit:write", + "mcp_connection:read", + "mcp_connection:write", + "mcp_connection:shared:read", + "mcp_connection:shared:write", + "model:read", + "model:write", + "project:read", + "project:write", + "project:environment_variable:read", + "project:environment_variable:write", + "project:snapshot:read", + "project:snapshot:write", + "project:build:read", + "project:build:write", + "project:build_detail:read", + "project:build_detail:write", + "project:schedule:read", + "project:schedule:write", + "project:default:read", + "project:default:write", + "project:system_snapshot:read", + "project:system_snapshot:write", + "project:organization_snapshot:read", + "project:organization_snapshot:write", + "sandbox:read", + "sandbox:write", + "sandbox:metric:read", + "sandbox:metric:write", + "sandbox:event:read", + "sandbox:event:write", + "sandbox:size:read", + "sandbox:size:write", + "sandbox:virtual_machine:read", + "sandbox:virtual_machine:write", + "device:read", + "device:write", + "skill:read", + "skill:write", + "skill:marketplace:read", + "skill:marketplace:write", + "insight:read", + "insight:write", + "insight:member:read", + "insight:member:write", + "insight:repository:read", + "insight:repository:write", + "insight:usage:read", + "insight:usage:write", + "file:read", + "file:write", + "pin:read", + "pin:write", + "folder:read", + "folder:write", + "queue:job:read", + "queue:job:write", + "queue:host_manager_job:read", + "queue:host_manager_job:write", + "queue:worker:read", + "queue:worker:write", + "queue:scheduled_job:read", + "queue:scheduled_job:write", + "queue:triggered_job:read", + "queue:triggered_job:write", + "runtime:read", + "runtime:write", + "session:source_credential:read", + "session:source_credential:write", + "device:all:write", + "insight:user:read", + ] + ] + ] diff --git a/src/tembo/types/organizations/role_create_response.py b/src/tembo/types/organizations/role_create_response.py new file mode 100644 index 00000000..f2e0ea3d --- /dev/null +++ b/src/tembo/types/organizations/role_create_response.py @@ -0,0 +1,9 @@ +# File generated from our OpenAPI spec by Scalar. See README.md for details. + +from ..._models import BaseModel + +__all__ = ["RoleCreateResponse"] + + +class RoleCreateResponse(BaseModel): + id: str diff --git a/src/tembo/types/organizations/role_delete_params.py b/src/tembo/types/organizations/role_delete_params.py new file mode 100644 index 00000000..5769d4c9 --- /dev/null +++ b/src/tembo/types/organizations/role_delete_params.py @@ -0,0 +1,15 @@ +# File generated from our OpenAPI spec by Scalar. See README.md for details. + +from __future__ import annotations + +from typing_extensions import Annotated, Required, TypedDict + +from ..._utils import PropertyInfo + +__all__ = ["RoleDeleteParams"] + + +class RoleDeleteParams(TypedDict, total=False): + organization_id: Required[Annotated[str, PropertyInfo(alias="organizationId")]] + + replacement_role_id: Required[Annotated[str, PropertyInfo(alias="replacementRoleId")]] diff --git a/src/tembo/types/organizations/role_delete_response.py b/src/tembo/types/organizations/role_delete_response.py new file mode 100644 index 00000000..524d958d --- /dev/null +++ b/src/tembo/types/organizations/role_delete_response.py @@ -0,0 +1,9 @@ +# File generated from our OpenAPI spec by Scalar. See README.md for details. + +from ..._models import BaseModel + +__all__ = ["RoleDeleteResponse"] + + +class RoleDeleteResponse(BaseModel): + id: str diff --git a/src/tembo/types/organizations/role_list_response.py b/src/tembo/types/organizations/role_list_response.py new file mode 100644 index 00000000..6cb48b66 --- /dev/null +++ b/src/tembo/types/organizations/role_list_response.py @@ -0,0 +1,270 @@ +# File generated from our OpenAPI spec by Scalar. See README.md for details. + +from typing import List +from typing_extensions import Literal, TypeAlias + +from pydantic import Field as FieldInfo + +from ..._models import BaseModel + +__all__ = ["RoleListResponse", "RoleListResponseItem"] + + +class RoleListResponseItem(BaseModel): + id: str + + name: str + + description: str + + is_default: bool = FieldInfo(alias="isDefault") + + permissions: List[ + Literal[ + "organization:read", + "organization:write", + "organization:member:read", + "organization:member:write", + "organization:invitation:read", + "organization:invitation:write", + "organization:role:read", + "organization:role:write", + "organization:secret:read", + "organization:secret:write", + "organization:setting:read", + "organization:setting:write", + "organization:configuration:read", + "organization:configuration:write", + "organization:subscription:read", + "organization:subscription:write", + "organization:onboarding:read", + "organization:onboarding:write", + "organization:logo:read", + "organization:logo:write", + "organization:slack_connect:read", + "organization:slack_connect:write", + "billing:read", + "billing:write", + "billing:trial:read", + "billing:trial:write", + "billing:usage:read", + "billing:usage:write", + "billing:payment:read", + "billing:payment:write", + "billing:payment_method:read", + "billing:payment_method:write", + "billing:checkout:read", + "billing:checkout:write", + "billing:subscription_checkout:read", + "billing:subscription_checkout:write", + "billing:portal:read", + "billing:portal:write", + "billing:on_demand:read", + "billing:on_demand:write", + "billing:credit:read", + "billing:credit:write", + "billing:custom_price:read", + "billing:custom_price:write", + "billing:custom_plan:read", + "billing:custom_plan:write", + "billing:overage_report:read", + "billing:overage_report:write", + "api_key:read", + "api_key:write", + "user:read", + "user:write", + "user:setting:read", + "user:setting:write", + "user:environment_variable:read", + "user:environment_variable:write", + "user:subscription:read", + "user:subscription:write", + "user:connected_account:read", + "user:connected_account:write", + "user:organization:read", + "user:organization:write", + "user:profile_picture:read", + "user:profile_picture:write", + "user:deletion:read", + "user:deletion:write", + "agent:read", + "agent:write", + "agent:schedule:read", + "agent:schedule:write", + "agent:trigger:read", + "agent:trigger:write", + "agent:run:read", + "agent:run:write", + "agent:instruction_revision:read", + "agent:instruction_revision:write", + "agent:template:read", + "agent:template:write", + "session:read", + "session:write", + "session:message:read", + "session:message:write", + "session:artifact:read", + "session:artifact:write", + "session:source:read", + "session:source:write", + "session:command:read", + "session:command:write", + "session:input:read", + "session:input:write", + "session:queue:read", + "session:queue:write", + "session:event:read", + "session:event:write", + "session:file:read", + "session:file:write", + "session:diff:read", + "session:diff:write", + "session:workspace:read", + "session:workspace:write", + "session:workspace_file:read", + "session:workspace_file:write", + "session:workspace_diff:read", + "session:workspace_diff:write", + "session:workspace_preview:read", + "session:workspace_preview:write", + "pull_request:read", + "pull_request:write", + "pull_request:merge:read", + "pull_request:merge:write", + "pull_request:attachment:read", + "pull_request:attachment:write", + "pull_request:session:read", + "pull_request:session:write", + "pull_request:message:read", + "pull_request:message:write", + "pull_request:comment:read", + "pull_request:comment:write", + "pull_request:review:read", + "pull_request:review:write", + "pull_request:reaction:read", + "pull_request:reaction:write", + "pull_request:commit:read", + "pull_request:commit:write", + "pull_request:check:read", + "pull_request:check:write", + "pull_request:file:read", + "pull_request:file:write", + "pull_request:reviewer:read", + "pull_request:reviewer:write", + "pull_request:label:read", + "pull_request:label:write", + "pull_request:thread:read", + "pull_request:thread:write", + "pull_request:tour:read", + "pull_request:tour:write", + "pull_request:branch_status:read", + "pull_request:branch_status:write", + "pull_request:stack:read", + "pull_request:stack:write", + "repository:read", + "repository:write", + "repository:branch:read", + "repository:branch:write", + "repository:file:read", + "repository:file:write", + "repository:pull_request:read", + "repository:pull_request:write", + "repository:user:read", + "repository:user:write", + "repository:label:read", + "repository:label:write", + "integration:read", + "integration:write", + "integration:trigger:read", + "integration:trigger:write", + "integration:provider:read", + "integration:provider:write", + "integration:configuration:read", + "integration:configuration:write", + "integration:snyk_organization:read", + "integration:snyk_organization:write", + "integration:sentry_environment:read", + "integration:sentry_environment:write", + "integration:slack_channel:read", + "integration:slack_channel:write", + "integration:rate_limit:read", + "integration:rate_limit:write", + "mcp_connection:read", + "mcp_connection:write", + "mcp_connection:shared:read", + "mcp_connection:shared:write", + "model:read", + "model:write", + "project:read", + "project:write", + "project:environment_variable:read", + "project:environment_variable:write", + "project:snapshot:read", + "project:snapshot:write", + "project:build:read", + "project:build:write", + "project:build_detail:read", + "project:build_detail:write", + "project:schedule:read", + "project:schedule:write", + "project:default:read", + "project:default:write", + "project:system_snapshot:read", + "project:system_snapshot:write", + "project:organization_snapshot:read", + "project:organization_snapshot:write", + "sandbox:read", + "sandbox:write", + "sandbox:metric:read", + "sandbox:metric:write", + "sandbox:event:read", + "sandbox:event:write", + "sandbox:size:read", + "sandbox:size:write", + "sandbox:virtual_machine:read", + "sandbox:virtual_machine:write", + "device:read", + "device:write", + "skill:read", + "skill:write", + "skill:marketplace:read", + "skill:marketplace:write", + "insight:read", + "insight:write", + "insight:member:read", + "insight:member:write", + "insight:repository:read", + "insight:repository:write", + "insight:usage:read", + "insight:usage:write", + "file:read", + "file:write", + "pin:read", + "pin:write", + "folder:read", + "folder:write", + "queue:job:read", + "queue:job:write", + "queue:host_manager_job:read", + "queue:host_manager_job:write", + "queue:worker:read", + "queue:worker:write", + "queue:scheduled_job:read", + "queue:scheduled_job:write", + "queue:triggered_job:read", + "queue:triggered_job:write", + "runtime:read", + "runtime:write", + "session:source_credential:read", + "session:source_credential:write", + "device:all:write", + "insight:user:read", + ] + ] + + member_count: int = FieldInfo(alias="memberCount") + + is_current_role: bool = FieldInfo(alias="isCurrentRole") + + +RoleListResponse: TypeAlias = List[RoleListResponseItem] diff --git a/src/tembo/types/organizations/role_retrieve_response.py b/src/tembo/types/organizations/role_retrieve_response.py new file mode 100644 index 00000000..d3f77ea0 --- /dev/null +++ b/src/tembo/types/organizations/role_retrieve_response.py @@ -0,0 +1,267 @@ +# File generated from our OpenAPI spec by Scalar. See README.md for details. + +from typing import List +from typing_extensions import Literal + +from pydantic import Field as FieldInfo + +from ..._models import BaseModel + +__all__ = ["RoleRetrieveResponse"] + + +class RoleRetrieveResponse(BaseModel): + id: str + + name: str + + description: str + + is_default: bool = FieldInfo(alias="isDefault") + + permissions: List[ + Literal[ + "organization:read", + "organization:write", + "organization:member:read", + "organization:member:write", + "organization:invitation:read", + "organization:invitation:write", + "organization:role:read", + "organization:role:write", + "organization:secret:read", + "organization:secret:write", + "organization:setting:read", + "organization:setting:write", + "organization:configuration:read", + "organization:configuration:write", + "organization:subscription:read", + "organization:subscription:write", + "organization:onboarding:read", + "organization:onboarding:write", + "organization:logo:read", + "organization:logo:write", + "organization:slack_connect:read", + "organization:slack_connect:write", + "billing:read", + "billing:write", + "billing:trial:read", + "billing:trial:write", + "billing:usage:read", + "billing:usage:write", + "billing:payment:read", + "billing:payment:write", + "billing:payment_method:read", + "billing:payment_method:write", + "billing:checkout:read", + "billing:checkout:write", + "billing:subscription_checkout:read", + "billing:subscription_checkout:write", + "billing:portal:read", + "billing:portal:write", + "billing:on_demand:read", + "billing:on_demand:write", + "billing:credit:read", + "billing:credit:write", + "billing:custom_price:read", + "billing:custom_price:write", + "billing:custom_plan:read", + "billing:custom_plan:write", + "billing:overage_report:read", + "billing:overage_report:write", + "api_key:read", + "api_key:write", + "user:read", + "user:write", + "user:setting:read", + "user:setting:write", + "user:environment_variable:read", + "user:environment_variable:write", + "user:subscription:read", + "user:subscription:write", + "user:connected_account:read", + "user:connected_account:write", + "user:organization:read", + "user:organization:write", + "user:profile_picture:read", + "user:profile_picture:write", + "user:deletion:read", + "user:deletion:write", + "agent:read", + "agent:write", + "agent:schedule:read", + "agent:schedule:write", + "agent:trigger:read", + "agent:trigger:write", + "agent:run:read", + "agent:run:write", + "agent:instruction_revision:read", + "agent:instruction_revision:write", + "agent:template:read", + "agent:template:write", + "session:read", + "session:write", + "session:message:read", + "session:message:write", + "session:artifact:read", + "session:artifact:write", + "session:source:read", + "session:source:write", + "session:command:read", + "session:command:write", + "session:input:read", + "session:input:write", + "session:queue:read", + "session:queue:write", + "session:event:read", + "session:event:write", + "session:file:read", + "session:file:write", + "session:diff:read", + "session:diff:write", + "session:workspace:read", + "session:workspace:write", + "session:workspace_file:read", + "session:workspace_file:write", + "session:workspace_diff:read", + "session:workspace_diff:write", + "session:workspace_preview:read", + "session:workspace_preview:write", + "pull_request:read", + "pull_request:write", + "pull_request:merge:read", + "pull_request:merge:write", + "pull_request:attachment:read", + "pull_request:attachment:write", + "pull_request:session:read", + "pull_request:session:write", + "pull_request:message:read", + "pull_request:message:write", + "pull_request:comment:read", + "pull_request:comment:write", + "pull_request:review:read", + "pull_request:review:write", + "pull_request:reaction:read", + "pull_request:reaction:write", + "pull_request:commit:read", + "pull_request:commit:write", + "pull_request:check:read", + "pull_request:check:write", + "pull_request:file:read", + "pull_request:file:write", + "pull_request:reviewer:read", + "pull_request:reviewer:write", + "pull_request:label:read", + "pull_request:label:write", + "pull_request:thread:read", + "pull_request:thread:write", + "pull_request:tour:read", + "pull_request:tour:write", + "pull_request:branch_status:read", + "pull_request:branch_status:write", + "pull_request:stack:read", + "pull_request:stack:write", + "repository:read", + "repository:write", + "repository:branch:read", + "repository:branch:write", + "repository:file:read", + "repository:file:write", + "repository:pull_request:read", + "repository:pull_request:write", + "repository:user:read", + "repository:user:write", + "repository:label:read", + "repository:label:write", + "integration:read", + "integration:write", + "integration:trigger:read", + "integration:trigger:write", + "integration:provider:read", + "integration:provider:write", + "integration:configuration:read", + "integration:configuration:write", + "integration:snyk_organization:read", + "integration:snyk_organization:write", + "integration:sentry_environment:read", + "integration:sentry_environment:write", + "integration:slack_channel:read", + "integration:slack_channel:write", + "integration:rate_limit:read", + "integration:rate_limit:write", + "mcp_connection:read", + "mcp_connection:write", + "mcp_connection:shared:read", + "mcp_connection:shared:write", + "model:read", + "model:write", + "project:read", + "project:write", + "project:environment_variable:read", + "project:environment_variable:write", + "project:snapshot:read", + "project:snapshot:write", + "project:build:read", + "project:build:write", + "project:build_detail:read", + "project:build_detail:write", + "project:schedule:read", + "project:schedule:write", + "project:default:read", + "project:default:write", + "project:system_snapshot:read", + "project:system_snapshot:write", + "project:organization_snapshot:read", + "project:organization_snapshot:write", + "sandbox:read", + "sandbox:write", + "sandbox:metric:read", + "sandbox:metric:write", + "sandbox:event:read", + "sandbox:event:write", + "sandbox:size:read", + "sandbox:size:write", + "sandbox:virtual_machine:read", + "sandbox:virtual_machine:write", + "device:read", + "device:write", + "skill:read", + "skill:write", + "skill:marketplace:read", + "skill:marketplace:write", + "insight:read", + "insight:write", + "insight:member:read", + "insight:member:write", + "insight:repository:read", + "insight:repository:write", + "insight:usage:read", + "insight:usage:write", + "file:read", + "file:write", + "pin:read", + "pin:write", + "folder:read", + "folder:write", + "queue:job:read", + "queue:job:write", + "queue:host_manager_job:read", + "queue:host_manager_job:write", + "queue:worker:read", + "queue:worker:write", + "queue:scheduled_job:read", + "queue:scheduled_job:write", + "queue:triggered_job:read", + "queue:triggered_job:write", + "runtime:read", + "runtime:write", + "session:source_credential:read", + "session:source_credential:write", + "device:all:write", + "insight:user:read", + ] + ] + + member_count: int = FieldInfo(alias="memberCount") + + is_current_role: bool = FieldInfo(alias="isCurrentRole") diff --git a/src/tembo/types/organizations/role_update_params.py b/src/tembo/types/organizations/role_update_params.py new file mode 100644 index 00000000..318661f2 --- /dev/null +++ b/src/tembo/types/organizations/role_update_params.py @@ -0,0 +1,263 @@ +# File generated from our OpenAPI spec by Scalar. See README.md for details. + +from __future__ import annotations + +from typing import List +from typing_extensions import Annotated, Literal, Required, TypedDict + +from ..._utils import PropertyInfo + +__all__ = ["RoleUpdateParams"] + + +class RoleUpdateParams(TypedDict, total=False): + organization_id: Required[Annotated[str, PropertyInfo(alias="organizationId")]] + + name: str + + description: str + + permissions: List[ + Literal[ + "organization:read", + "organization:write", + "organization:member:read", + "organization:member:write", + "organization:invitation:read", + "organization:invitation:write", + "organization:role:read", + "organization:role:write", + "organization:secret:read", + "organization:secret:write", + "organization:setting:read", + "organization:setting:write", + "organization:configuration:read", + "organization:configuration:write", + "organization:subscription:read", + "organization:subscription:write", + "organization:onboarding:read", + "organization:onboarding:write", + "organization:logo:read", + "organization:logo:write", + "organization:slack_connect:read", + "organization:slack_connect:write", + "billing:read", + "billing:write", + "billing:trial:read", + "billing:trial:write", + "billing:usage:read", + "billing:usage:write", + "billing:payment:read", + "billing:payment:write", + "billing:payment_method:read", + "billing:payment_method:write", + "billing:checkout:read", + "billing:checkout:write", + "billing:subscription_checkout:read", + "billing:subscription_checkout:write", + "billing:portal:read", + "billing:portal:write", + "billing:on_demand:read", + "billing:on_demand:write", + "billing:credit:read", + "billing:credit:write", + "billing:custom_price:read", + "billing:custom_price:write", + "billing:custom_plan:read", + "billing:custom_plan:write", + "billing:overage_report:read", + "billing:overage_report:write", + "api_key:read", + "api_key:write", + "user:read", + "user:write", + "user:setting:read", + "user:setting:write", + "user:environment_variable:read", + "user:environment_variable:write", + "user:subscription:read", + "user:subscription:write", + "user:connected_account:read", + "user:connected_account:write", + "user:organization:read", + "user:organization:write", + "user:profile_picture:read", + "user:profile_picture:write", + "user:deletion:read", + "user:deletion:write", + "agent:read", + "agent:write", + "agent:schedule:read", + "agent:schedule:write", + "agent:trigger:read", + "agent:trigger:write", + "agent:run:read", + "agent:run:write", + "agent:instruction_revision:read", + "agent:instruction_revision:write", + "agent:template:read", + "agent:template:write", + "session:read", + "session:write", + "session:message:read", + "session:message:write", + "session:artifact:read", + "session:artifact:write", + "session:source:read", + "session:source:write", + "session:command:read", + "session:command:write", + "session:input:read", + "session:input:write", + "session:queue:read", + "session:queue:write", + "session:event:read", + "session:event:write", + "session:file:read", + "session:file:write", + "session:diff:read", + "session:diff:write", + "session:workspace:read", + "session:workspace:write", + "session:workspace_file:read", + "session:workspace_file:write", + "session:workspace_diff:read", + "session:workspace_diff:write", + "session:workspace_preview:read", + "session:workspace_preview:write", + "pull_request:read", + "pull_request:write", + "pull_request:merge:read", + "pull_request:merge:write", + "pull_request:attachment:read", + "pull_request:attachment:write", + "pull_request:session:read", + "pull_request:session:write", + "pull_request:message:read", + "pull_request:message:write", + "pull_request:comment:read", + "pull_request:comment:write", + "pull_request:review:read", + "pull_request:review:write", + "pull_request:reaction:read", + "pull_request:reaction:write", + "pull_request:commit:read", + "pull_request:commit:write", + "pull_request:check:read", + "pull_request:check:write", + "pull_request:file:read", + "pull_request:file:write", + "pull_request:reviewer:read", + "pull_request:reviewer:write", + "pull_request:label:read", + "pull_request:label:write", + "pull_request:thread:read", + "pull_request:thread:write", + "pull_request:tour:read", + "pull_request:tour:write", + "pull_request:branch_status:read", + "pull_request:branch_status:write", + "pull_request:stack:read", + "pull_request:stack:write", + "repository:read", + "repository:write", + "repository:branch:read", + "repository:branch:write", + "repository:file:read", + "repository:file:write", + "repository:pull_request:read", + "repository:pull_request:write", + "repository:user:read", + "repository:user:write", + "repository:label:read", + "repository:label:write", + "integration:read", + "integration:write", + "integration:trigger:read", + "integration:trigger:write", + "integration:provider:read", + "integration:provider:write", + "integration:configuration:read", + "integration:configuration:write", + "integration:snyk_organization:read", + "integration:snyk_organization:write", + "integration:sentry_environment:read", + "integration:sentry_environment:write", + "integration:slack_channel:read", + "integration:slack_channel:write", + "integration:rate_limit:read", + "integration:rate_limit:write", + "mcp_connection:read", + "mcp_connection:write", + "mcp_connection:shared:read", + "mcp_connection:shared:write", + "model:read", + "model:write", + "project:read", + "project:write", + "project:environment_variable:read", + "project:environment_variable:write", + "project:snapshot:read", + "project:snapshot:write", + "project:build:read", + "project:build:write", + "project:build_detail:read", + "project:build_detail:write", + "project:schedule:read", + "project:schedule:write", + "project:default:read", + "project:default:write", + "project:system_snapshot:read", + "project:system_snapshot:write", + "project:organization_snapshot:read", + "project:organization_snapshot:write", + "sandbox:read", + "sandbox:write", + "sandbox:metric:read", + "sandbox:metric:write", + "sandbox:event:read", + "sandbox:event:write", + "sandbox:size:read", + "sandbox:size:write", + "sandbox:virtual_machine:read", + "sandbox:virtual_machine:write", + "device:read", + "device:write", + "skill:read", + "skill:write", + "skill:marketplace:read", + "skill:marketplace:write", + "insight:read", + "insight:write", + "insight:member:read", + "insight:member:write", + "insight:repository:read", + "insight:repository:write", + "insight:usage:read", + "insight:usage:write", + "file:read", + "file:write", + "pin:read", + "pin:write", + "folder:read", + "folder:write", + "queue:job:read", + "queue:job:write", + "queue:host_manager_job:read", + "queue:host_manager_job:write", + "queue:worker:read", + "queue:worker:write", + "queue:scheduled_job:read", + "queue:scheduled_job:write", + "queue:triggered_job:read", + "queue:triggered_job:write", + "runtime:read", + "runtime:write", + "session:source_credential:read", + "session:source_credential:write", + "device:all:write", + "insight:user:read", + ] + ] + + is_default: Annotated[bool, PropertyInfo(alias="isDefault")] diff --git a/src/tembo/types/organizations/role_update_response.py b/src/tembo/types/organizations/role_update_response.py new file mode 100644 index 00000000..cc1bb857 --- /dev/null +++ b/src/tembo/types/organizations/role_update_response.py @@ -0,0 +1,9 @@ +# File generated from our OpenAPI spec by Scalar. See README.md for details. + +from ..._models import BaseModel + +__all__ = ["RoleUpdateResponse"] + + +class RoleUpdateResponse(BaseModel): + id: str diff --git a/src/tembo/types/pin_create_params.py b/src/tembo/types/pin_create_params.py index 03fd7e73..19c9a9e3 100644 --- a/src/tembo/types/pin_create_params.py +++ b/src/tembo/types/pin_create_params.py @@ -8,22 +8,22 @@ class PinCreateParams(TypedDict, total=False): - type: Required[Literal["session", "pull_request", "project"]] - """Kind of resource to pin or unpin: session, pull_request, or project.""" + type: Required[Literal["session", "pull_request", "project", "folder"]] + """Kind of resource to pin or unpin: session, pull_request, project, or folder.""" id: Required[str] - """ID of the session, pull request, or project, not a separate pin ID.""" + """ID of the session, pull request, project, or folder, not a separate pin ID.""" placement: Placement """Position of a new pin relative to another pin. Omit to add it first. Ignored if the resource is already pinned; use updatePin to reorder.""" class PlacementTarget(TypedDict, total=False): - type: Required[Literal["session", "pull_request", "project"]] - """Kind of resource to pin or unpin: session, pull_request, or project.""" + type: Required[Literal["session", "pull_request", "project", "folder"]] + """Kind of resource to pin or unpin: session, pull_request, project, or folder.""" id: Required[str] - """ID of the session, pull request, or project, not a separate pin ID.""" + """ID of the session, pull request, project, or folder, not a separate pin ID.""" class Placement(TypedDict, total=False): diff --git a/src/tembo/types/pin_create_response.py b/src/tembo/types/pin_create_response.py index 97acf8c5..41401b20 100644 --- a/src/tembo/types/pin_create_response.py +++ b/src/tembo/types/pin_create_response.py @@ -29,9 +29,25 @@ "PinCreateResponse2ResourceCodeRepositoryIntegration", "PinCreateResponse3", "PinCreateResponse3Resource", + "PinCreateResponse4", + "PinCreateResponse4Resource", ] +class PinCreateResponse4Resource(BaseModel): + id: str + + name: str + + color: Literal["neutral", "red", "orange", "yellow", "green", "teal", "blue", "purple", "pink"] + + +class PinCreateResponse4(BaseModel): + type: Literal["folder"] + + resource: PinCreateResponse4Resource + + class PinCreateResponse3Resource(BaseModel): id: str @@ -216,6 +232,9 @@ class PinCreateResponseResource(BaseModel): diff_summary: Optional[PinCreateResponseResourceDiffSummary] = FieldInfo(alias="diffSummary", default=None) + folder_id: Optional[str] = FieldInfo(alias="folderId", default=None) + """Sidebar folder you filed this session in.""" + state: PinCreateResponseResourceState is_unread: Optional[bool] = FieldInfo(alias="isUnread", default=None) @@ -228,4 +247,4 @@ class PinCreateResponse(BaseModel): resource: PinCreateResponseResource -PinCreateResponse: TypeAlias = Union[PinCreateResponse, PinCreateResponse2, PinCreateResponse3] +PinCreateResponse: TypeAlias = Union[PinCreateResponse, PinCreateResponse2, PinCreateResponse3, PinCreateResponse4] diff --git a/src/tembo/types/pin_delete_response.py b/src/tembo/types/pin_delete_response.py index e9303c8b..fbe79b35 100644 --- a/src/tembo/types/pin_delete_response.py +++ b/src/tembo/types/pin_delete_response.py @@ -8,10 +8,10 @@ class PinDeleteResponse(BaseModel): - type: Literal["session", "pull_request", "project"] - """Kind of resource to pin or unpin: session, pull_request, or project.""" + type: Literal["session", "pull_request", "project", "folder"] + """Kind of resource to pin or unpin: session, pull_request, project, or folder.""" id: str - """ID of the session, pull request, or project, not a separate pin ID.""" + """ID of the session, pull request, project, or folder, not a separate pin ID.""" deleted: Literal[True] diff --git a/src/tembo/types/pin_list_response.py b/src/tembo/types/pin_list_response.py index 6a9ecd55..a57f1ca8 100644 --- a/src/tembo/types/pin_list_response.py +++ b/src/tembo/types/pin_list_response.py @@ -31,9 +31,25 @@ "Resource3ResourceCodeRepositoryIntegration", "Resource4", "Resource4Resource", + "Resource5", + "Resource5Resource", ] +class Resource5Resource(BaseModel): + id: str + + name: str + + color: Literal["neutral", "red", "orange", "yellow", "green", "teal", "blue", "purple", "pink"] + + +class Resource5(BaseModel): + type: Literal["folder"] + + resource: Resource5Resource + + class Resource4Resource(BaseModel): id: str @@ -214,6 +230,9 @@ class Resource2Resource(BaseModel): diff_summary: Optional[Resource2ResourceDiffSummary] = FieldInfo(alias="diffSummary", default=None) + folder_id: Optional[str] = FieldInfo(alias="folderId", default=None) + """Sidebar folder you filed this session in.""" + state: Resource2ResourceState is_unread: Optional[bool] = FieldInfo(alias="isUnread", default=None) @@ -226,7 +245,7 @@ class Resource2(BaseModel): resource: Resource2Resource -Resource: TypeAlias = Union[Resource2, Resource3, Resource4] +Resource: TypeAlias = Union[Resource2, Resource3, Resource4, Resource5] class PinListResponse(BaseModel): diff --git a/src/tembo/types/pin_update_params.py b/src/tembo/types/pin_update_params.py index a73300df..d2497904 100644 --- a/src/tembo/types/pin_update_params.py +++ b/src/tembo/types/pin_update_params.py @@ -11,20 +11,20 @@ class PinUpdateParams(TypedDict, total=False): resource_type: Required[ - Annotated[Literal["session", "pull_request", "project"], PropertyInfo(alias="resourceType")] + Annotated[Literal["session", "pull_request", "project", "folder"], PropertyInfo(alias="resourceType")] ] - """Kind of resource to pin or unpin: session, pull_request, or project.""" + """Kind of resource to pin or unpin: session, pull_request, project, or folder.""" placement: Required[Placement] """Reorder an existing pin before or after another pin. Use createPin to pin a resource and deletePin to unpin it.""" class PlacementTarget(TypedDict, total=False): - type: Required[Literal["session", "pull_request", "project"]] - """Kind of resource to pin or unpin: session, pull_request, or project.""" + type: Required[Literal["session", "pull_request", "project", "folder"]] + """Kind of resource to pin or unpin: session, pull_request, project, or folder.""" id: Required[str] - """ID of the session, pull request, or project, not a separate pin ID.""" + """ID of the session, pull request, project, or folder, not a separate pin ID.""" class Placement(TypedDict, total=False): diff --git a/src/tembo/types/project_retrieve_defaults_response.py b/src/tembo/types/project_retrieve_defaults_response.py new file mode 100644 index 00000000..84fb9ae4 --- /dev/null +++ b/src/tembo/types/project_retrieve_defaults_response.py @@ -0,0 +1,22 @@ +# File generated from our OpenAPI spec by Scalar. See README.md for details. + +from typing import Optional +from typing_extensions import Literal + +from pydantic import Field as FieldInfo + +from .._models import BaseModel + +__all__ = ["ProjectRetrieveDefaultsResponse"] + + +class ProjectRetrieveDefaultsResponse(BaseModel): + sandbox_size: Literal["nano", "micro", "small", "medium", "large", "xl", "xxl", "ultra"] = FieldInfo( + alias="sandboxSize" + ) + """Default workspace VM size for the organization.""" + + max_sandbox_size: Optional[Literal["nano", "micro", "small", "medium", "large", "xl", "xxl", "ultra"]] = FieldInfo( + alias="maxSandboxSize", default=None + ) + """Largest VM size the organization plan allows, or null when unlimited.""" diff --git a/src/tembo/types/session_create_response.py b/src/tembo/types/session_create_response.py index f9440260..92c852bc 100644 --- a/src/tembo/types/session_create_response.py +++ b/src/tembo/types/session_create_response.py @@ -236,6 +236,9 @@ class SessionCreateResponse(BaseModel): diff_summary: Optional[DiffSummary] = FieldInfo(alias="diffSummary", default=None) + folder_id: Optional[str] = FieldInfo(alias="folderId", default=None) + """Sidebar folder the authenticated user filed this session in.""" + html_url: str = FieldInfo(alias="htmlUrl") is_pinned: bool = FieldInfo(alias="isPinned") diff --git a/src/tembo/types/session_fork_response.py b/src/tembo/types/session_fork_response.py index c77bd75b..bb417f10 100644 --- a/src/tembo/types/session_fork_response.py +++ b/src/tembo/types/session_fork_response.py @@ -236,6 +236,9 @@ class SessionForkResponse(BaseModel): diff_summary: Optional[DiffSummary] = FieldInfo(alias="diffSummary", default=None) + folder_id: Optional[str] = FieldInfo(alias="folderId", default=None) + """Sidebar folder the authenticated user filed this session in.""" + html_url: str = FieldInfo(alias="htmlUrl") is_pinned: bool = FieldInfo(alias="isPinned") diff --git a/src/tembo/types/session_import_params.py b/src/tembo/types/session_import_params.py index b15d848f..79abd6c7 100644 --- a/src/tembo/types/session_import_params.py +++ b/src/tembo/types/session_import_params.py @@ -12,7 +12,7 @@ class SessionImportParams(TypedDict, total=False): - source: Required[Literal["conductor"]] + source: Required[Literal["conductor", "chatgpt", "claude", "devin"]] """Application the chat is imported from.""" external_id: Required[Annotated[str, PropertyInfo(alias="externalId")]] @@ -29,7 +29,7 @@ class Message(TypedDict, total=False): id: Required[str] role: Required[Literal["user", "assistant", "summary"]] - """Who wrote the row. Assistant rows hold a Claude Agent SDK message as JSON.""" + """Who wrote the row. Conductor assistant rows hold Claude Agent SDK JSON; local ChatGPT/Codex, Claude Code, and Devin rows hold native message JSON for API conversion.""" content: Required[str] diff --git a/src/tembo/types/session_import_response.py b/src/tembo/types/session_import_response.py index 664c9dfa..dbd42c5f 100644 --- a/src/tembo/types/session_import_response.py +++ b/src/tembo/types/session_import_response.py @@ -236,6 +236,9 @@ class SessionImportResponse(BaseModel): diff_summary: Optional[DiffSummary] = FieldInfo(alias="diffSummary", default=None) + folder_id: Optional[str] = FieldInfo(alias="folderId", default=None) + """Sidebar folder the authenticated user filed this session in.""" + html_url: str = FieldInfo(alias="htmlUrl") is_pinned: bool = FieldInfo(alias="isPinned") diff --git a/src/tembo/types/session_list_params.py b/src/tembo/types/session_list_params.py index 279894cf..008bafe8 100644 --- a/src/tembo/types/session_list_params.py +++ b/src/tembo/types/session_list_params.py @@ -34,6 +34,9 @@ class SessionListParams(TypedDict, total=False): external_ids: Annotated[SequenceNotStr[str], PropertyInfo(alias="externalIds")] """Filter by external source IDs, supplied as a comma-separated list.""" + folder_id: Annotated[str, PropertyInfo(alias="folderId")] + """Only sessions in this sidebar folder of the authenticated user. Takes precedence over inFolder.""" + has_project: Annotated[bool, PropertyInfo(alias="hasProject")] """Filter by whether a session has an assigned project.""" @@ -43,6 +46,9 @@ class SessionListParams(TypedDict, total=False): include_total: Annotated[bool, PropertyInfo(alias="includeTotal")] """Include totalCount. Not supported with state=active.""" + in_folder: Annotated[bool, PropertyInfo(alias="inFolder")] + """Filter by whether a session is in one of the authenticated user's sidebar folders.""" + parent_session_id: Annotated[str, PropertyInfo(alias="parentSessionId")] """Filter sessions created by this session.""" diff --git a/src/tembo/types/session_list_response.py b/src/tembo/types/session_list_response.py index 18fa593a..3e2f2db7 100644 --- a/src/tembo/types/session_list_response.py +++ b/src/tembo/types/session_list_response.py @@ -163,6 +163,9 @@ class Item(BaseModel): diff_summary: Optional[ItemDiffSummary] = FieldInfo(alias="diffSummary", default=None) + folder_id: Optional[str] = FieldInfo(alias="folderId", default=None) + """Sidebar folder the authenticated user filed this session in.""" + is_pinned: bool = FieldInfo(alias="isPinned") project: Optional[ItemProject] = None diff --git a/src/tembo/types/session_retrieve_response.py b/src/tembo/types/session_retrieve_response.py index 983e4f22..04da7a17 100644 --- a/src/tembo/types/session_retrieve_response.py +++ b/src/tembo/types/session_retrieve_response.py @@ -236,6 +236,9 @@ class SessionRetrieveResponse(BaseModel): diff_summary: Optional[DiffSummary] = FieldInfo(alias="diffSummary", default=None) + folder_id: Optional[str] = FieldInfo(alias="folderId", default=None) + """Sidebar folder the authenticated user filed this session in.""" + html_url: str = FieldInfo(alias="htmlUrl") is_pinned: bool = FieldInfo(alias="isPinned") diff --git a/src/tembo/types/session_update_response.py b/src/tembo/types/session_update_response.py index cd110cf9..ed7a1851 100644 --- a/src/tembo/types/session_update_response.py +++ b/src/tembo/types/session_update_response.py @@ -236,6 +236,9 @@ class SessionUpdateResponse(BaseModel): diff_summary: Optional[DiffSummary] = FieldInfo(alias="diffSummary", default=None) + folder_id: Optional[str] = FieldInfo(alias="folderId", default=None) + """Sidebar folder the authenticated user filed this session in.""" + html_url: str = FieldInfo(alias="htmlUrl") is_pinned: bool = FieldInfo(alias="isPinned") diff --git a/tests/smoke-test.py b/tests/smoke-test.py index 8eb1f181..38552719 100644 --- a/tests/smoke-test.py +++ b/tests/smoke-test.py @@ -268,7 +268,7 @@ def _smoke_case_31() -> None: member = client.organizations.members.create( organization_id="organizationId", email_address="user@example.com", - role="org:member", + role_id="x", ) @@ -283,25 +283,81 @@ def _smoke_case_33() -> None: member = client.organizations.members.update( organization_id="organizationId", member_id="memberId", - role="org:admin", ) def _smoke_case_34() -> None: - member = client.organizations.members.delete( + member = client.organizations.members.update( organization_id="organizationId", member_id="memberId", + role_id="", ) def _smoke_case_35() -> None: + member = client.organizations.members.delete( + organization_id="organizationId", + member_id="memberId", + ) + + +def _smoke_case_36() -> None: + role = client.organizations.roles.list( + organization_id="organizationId", + ) + + +def _smoke_case_37() -> None: + role = client.organizations.roles.create( + organization_id="organizationId", + name="x", + description="", + permissions=["organization:read"], + ) + + +def _smoke_case_38() -> None: + role = client.organizations.roles.retrieve( + organization_id="organizationId", + role_id="roleId", + ) + + +def _smoke_case_39() -> None: + role = client.organizations.roles.update( + organization_id="organizationId", + role_id="roleId", + description="", + ) + + +def _smoke_case_40() -> None: + role = client.organizations.roles.update( + organization_id="organizationId", + role_id="roleId", + name="x", + description="", + permissions=["organization:read"], + is_default=False, + ) + + +def _smoke_case_41() -> None: + role = client.organizations.roles.delete( + organization_id="organizationId", + role_id="roleId", + replacement_role_id="x", + ) + + +def _smoke_case_42() -> None: secret = client.organizations.secrets.list( organization_id="organizationId", limit=50, ) -def _smoke_case_36() -> None: +def _smoke_case_43() -> None: secret = client.organizations.secrets.list( organization_id="organizationId", cursor="7c9e6679-7425-40de-944b-e07fc1f90ae7", @@ -310,7 +366,7 @@ def _smoke_case_36() -> None: ) -def _smoke_case_37() -> None: +def _smoke_case_44() -> None: secret = client.organizations.secrets.create( organization_id="organizationId", key="x", @@ -318,21 +374,21 @@ def _smoke_case_37() -> None: ) -def _smoke_case_38() -> None: +def _smoke_case_45() -> None: secret = client.organizations.secrets.retrieve( organization_id="organizationId", secret_id="7c9e6679-7425-40de-944b-e07fc1f90ae7", ) -def _smoke_case_39() -> None: +def _smoke_case_46() -> None: secret = client.organizations.secrets.update( organization_id="organizationId", secret_id="7c9e6679-7425-40de-944b-e07fc1f90ae7", ) -def _smoke_case_40() -> None: +def _smoke_case_47() -> None: secret = client.organizations.secrets.update( organization_id="organizationId", secret_id="7c9e6679-7425-40de-944b-e07fc1f90ae7", @@ -341,26 +397,26 @@ def _smoke_case_40() -> None: ) -def _smoke_case_41() -> None: +def _smoke_case_48() -> None: secret = client.organizations.secrets.delete( organization_id="organizationId", secret_id="7c9e6679-7425-40de-944b-e07fc1f90ae7", ) -def _smoke_case_42() -> None: +def _smoke_case_49() -> None: setting = client.organizations.settings.retrieve( organization_id="organizationId", ) -def _smoke_case_43() -> None: +def _smoke_case_50() -> None: setting = client.organizations.settings.update( organization_id="organizationId", ) -def _smoke_case_44() -> None: +def _smoke_case_51() -> None: setting = client.organizations.settings.update( organization_id="organizationId", amp_api_key="", @@ -407,7 +463,7 @@ def _smoke_case_44() -> None: ) -def _smoke_case_45() -> None: +def _smoke_case_52() -> None: setting = client.organizations.settings.validate_credentials( organization_id="organizationId", provider="anthropic", @@ -415,19 +471,19 @@ def _smoke_case_45() -> None: ) -def _smoke_case_46() -> None: +def _smoke_case_53() -> None: subscription = client.organizations.subscriptions.retrieve( organization_id="organizationId", ) -def _smoke_case_47() -> None: +def _smoke_case_54() -> None: mcp_connection = client.mcp_connections.list( limit=50, ) -def _smoke_case_48() -> None: +def _smoke_case_55() -> None: mcp_connection = client.mcp_connections.list( connected=True, cursor="7c9e6679-7425-40de-944b-e07fc1f90ae7", @@ -436,7 +492,7 @@ def _smoke_case_48() -> None: ) -def _smoke_case_49() -> None: +def _smoke_case_56() -> None: mcp_connection = client.mcp_connections.create( name="x", args=[], @@ -446,7 +502,7 @@ def _smoke_case_49() -> None: ) -def _smoke_case_50() -> None: +def _smoke_case_57() -> None: mcp_connection = client.mcp_connections.create( name="x", args=[], @@ -457,20 +513,20 @@ def _smoke_case_50() -> None: ) -def _smoke_case_51() -> None: +def _smoke_case_58() -> None: mcp_connection = client.mcp_connections.retrieve( mcp_connection_id="7c9e6679-7425-40de-944b-e07fc1f90ae7", ) -def _smoke_case_52() -> None: +def _smoke_case_59() -> None: mcp_connection = client.mcp_connections.update( mcp_connection_id="7c9e6679-7425-40de-944b-e07fc1f90ae7", type="remote", ) -def _smoke_case_53() -> None: +def _smoke_case_60() -> None: mcp_connection = client.mcp_connections.update( mcp_connection_id="7c9e6679-7425-40de-944b-e07fc1f90ae7", name="x", @@ -485,31 +541,31 @@ def _smoke_case_53() -> None: ) -def _smoke_case_54() -> None: +def _smoke_case_61() -> None: mcp_connection = client.mcp_connections.delete( mcp_connection_id="7c9e6679-7425-40de-944b-e07fc1f90ae7", ) -def _smoke_case_55() -> None: +def _smoke_case_62() -> None: mcp_connection = client.mcp_connections.authorize( mcp_connection_id="7c9e6679-7425-40de-944b-e07fc1f90ae7", ) -def _smoke_case_56() -> None: +def _smoke_case_63() -> None: mcp_connection = client.mcp_connections.test( mcp_connection_id="7c9e6679-7425-40de-944b-e07fc1f90ae7", ) -def _smoke_case_57() -> None: +def _smoke_case_64() -> None: artifact = client.artifacts.list( limit=50, ) -def _smoke_case_58() -> None: +def _smoke_case_65() -> None: artifact = client.artifacts.list( cursor="7c9e6679-7425-40de-944b-e07fc1f90ae7", limit=50, @@ -519,7 +575,7 @@ def _smoke_case_58() -> None: ) -def _smoke_case_59() -> None: +def _smoke_case_66() -> None: artifact = client.artifacts.create( title="x", output={"type": "html", "content": "x"}, @@ -527,7 +583,7 @@ def _smoke_case_59() -> None: ) -def _smoke_case_60() -> None: +def _smoke_case_67() -> None: artifact = client.artifacts.create( title="x", description="x", @@ -538,25 +594,31 @@ def _smoke_case_60() -> None: ) -def _smoke_case_61() -> None: +def _smoke_case_68() -> None: artifact = client.artifacts.retrieve( artifact_id="7c9e6679-7425-40de-944b-e07fc1f90ae7", ) -def _smoke_case_62() -> None: +def _smoke_case_69() -> None: + artifact = client.artifacts.retrieve_asset_url( + asset_id="7c9e6679-7425-40de-944b-e07fc1f90ae7", + ) + + +def _smoke_case_70() -> None: artifact = client.artifacts.delete( artifact_id="7c9e6679-7425-40de-944b-e07fc1f90ae7", ) -def _smoke_case_63() -> None: +def _smoke_case_71() -> None: message = client.messages.list( limit=50, ) -def _smoke_case_64() -> None: +def _smoke_case_72() -> None: message = client.messages.list( cursor="7c9e6679-7425-40de-944b-e07fc1f90ae7", limit=50, @@ -565,14 +627,14 @@ def _smoke_case_64() -> None: ) -def _smoke_case_65() -> None: +def _smoke_case_73() -> None: message = client.messages.create( content="x", session_id="7c9e6679-7425-40de-944b-e07fc1f90ae7", ) -def _smoke_case_66() -> None: +def _smoke_case_74() -> None: message = client.messages.create( artifact_id="7c9e6679-7425-40de-944b-e07fc1f90ae7", content="x", @@ -589,19 +651,19 @@ def _smoke_case_66() -> None: ) -def _smoke_case_67() -> None: +def _smoke_case_75() -> None: message = client.messages.retrieve( message_id="7c9e6679-7425-40de-944b-e07fc1f90ae7", ) -def _smoke_case_68() -> None: +def _smoke_case_76() -> None: message = client.messages.update( message_id="7c9e6679-7425-40de-944b-e07fc1f90ae7", ) -def _smoke_case_69() -> None: +def _smoke_case_77() -> None: message = client.messages.update( message_id="7c9e6679-7425-40de-944b-e07fc1f90ae7", content="x", @@ -612,32 +674,32 @@ def _smoke_case_69() -> None: ) -def _smoke_case_70() -> None: +def _smoke_case_78() -> None: message = client.messages.delete( message_id="7c9e6679-7425-40de-944b-e07fc1f90ae7", ) -def _smoke_case_71() -> None: +def _smoke_case_79() -> None: model = client.models.list( limit=50, ) -def _smoke_case_72() -> None: +def _smoke_case_80() -> None: model = client.models.list( cursor="cursor", limit=50, ) -def _smoke_case_73() -> None: +def _smoke_case_81() -> None: model = client.models.update( model_name="modelName", ) -def _smoke_case_74() -> None: +def _smoke_case_82() -> None: model = client.models.update( model_name="modelName", enabled=False, @@ -645,42 +707,42 @@ def _smoke_case_74() -> None: ) -def _smoke_case_75() -> None: +def _smoke_case_83() -> None: runtime = client.runtimes.list( limit=50, ) -def _smoke_case_76() -> None: +def _smoke_case_84() -> None: runtime = client.runtimes.list( cursor="claudeCode", limit=50, ) -def _smoke_case_77() -> None: +def _smoke_case_85() -> None: user = client.users.me() -def _smoke_case_78() -> None: +def _smoke_case_86() -> None: user = client.users.retrieve( user_id="userId", ) -def _smoke_case_79() -> None: +def _smoke_case_87() -> None: setting = client.users.settings.retrieve( user_id="userId", ) -def _smoke_case_80() -> None: +def _smoke_case_88() -> None: setting = client.users.settings.update( user_id="userId", ) -def _smoke_case_81() -> None: +def _smoke_case_89() -> None: setting = client.users.settings.update( user_id="userId", default_session_visibility_by_workspace={}, @@ -738,14 +800,14 @@ def _smoke_case_81() -> None: ) -def _smoke_case_82() -> None: +def _smoke_case_90() -> None: connected_account = client.users.connected_accounts.list( user_id="userId", limit=50, ) -def _smoke_case_83() -> None: +def _smoke_case_91() -> None: connected_account = client.users.connected_accounts.list( user_id="userId", cursor="cursor", @@ -753,26 +815,26 @@ def _smoke_case_83() -> None: ) -def _smoke_case_84() -> None: +def _smoke_case_92() -> None: connected_account = client.users.connected_accounts.retrieve( user_id="userId", connected_account_id="connectedAccountId", ) -def _smoke_case_85() -> None: +def _smoke_case_93() -> None: subscription = client.users.subscriptions.retrieve( user_id="userId", ) -def _smoke_case_86() -> None: +def _smoke_case_94() -> None: environment_variable = client.users.environment_variables.list( user_id="userId", ) -def _smoke_case_87() -> None: +def _smoke_case_95() -> None: environment_variable = client.users.environment_variables.create( user_id="userId", key="x", @@ -780,33 +842,33 @@ def _smoke_case_87() -> None: ) -def _smoke_case_88() -> None: +def _smoke_case_96() -> None: environment_variable = client.users.environment_variables.delete( user_id="userId", environment_variable_id="7c9e6679-7425-40de-944b-e07fc1f90ae7", ) -def _smoke_case_89() -> None: +def _smoke_case_97() -> None: client.users.profile_picture.retrieve( user_id="userId", ) -def _smoke_case_90() -> None: +def _smoke_case_98() -> None: profile_picture = client.users.profile_picture.update( user_id="userId", file=b"file", ) -def _smoke_case_91() -> None: +def _smoke_case_99() -> None: profile_picture = client.users.profile_picture.delete( user_id="userId", ) -def _smoke_case_92() -> None: +def _smoke_case_100() -> None: session = client.sessions.list( limit=50, include_archived=True, @@ -816,7 +878,7 @@ def _smoke_case_92() -> None: ) -def _smoke_case_93() -> None: +def _smoke_case_101() -> None: session = client.sessions.list( agent_id="7c9e6679-7425-40de-944b-e07fc1f90ae7", created_by=["created_by"], @@ -825,9 +887,11 @@ def _smoke_case_93() -> None: limit=50, exclude_pinned=True, external_ids=["external_id"], + folder_id="7c9e6679-7425-40de-944b-e07fc1f90ae7", has_project=True, include_archived=True, include_total=False, + in_folder=True, parent_session_id="7c9e6679-7425-40de-944b-e07fc1f90ae7", participant=["participant"], pending_reviewer_keys=["pending_reviewer_key"], @@ -842,7 +906,7 @@ def _smoke_case_93() -> None: ) -def _smoke_case_94() -> None: +def _smoke_case_102() -> None: session = client.sessions.create( agent="claudeCode:claude-fable-5-1", base_branch="main", @@ -855,7 +919,7 @@ def _smoke_case_94() -> None: ) -def _smoke_case_95() -> None: +def _smoke_case_103() -> None: session = client.sessions.create( agent="claudeCode:claude-fable-5-1", base_branch="main", @@ -878,19 +942,19 @@ def _smoke_case_95() -> None: ) -def _smoke_case_96() -> None: +def _smoke_case_104() -> None: session = client.sessions.retrieve( session_id="7c9e6679-7425-40de-944b-e07fc1f90ae7", ) -def _smoke_case_97() -> None: +def _smoke_case_105() -> None: session = client.sessions.update( session_id="7c9e6679-7425-40de-944b-e07fc1f90ae7", ) -def _smoke_case_98() -> None: +def _smoke_case_106() -> None: session = client.sessions.update( session_id="7c9e6679-7425-40de-944b-e07fc1f90ae7", memory_mb=1024, @@ -911,20 +975,20 @@ def _smoke_case_98() -> None: ) -def _smoke_case_99() -> None: +def _smoke_case_107() -> None: session = client.sessions.delete( session_id="7c9e6679-7425-40de-944b-e07fc1f90ae7", ) -def _smoke_case_100() -> None: +def _smoke_case_108() -> None: session = client.sessions.fork( session_id="7c9e6679-7425-40de-944b-e07fc1f90ae7", queue_right_away=True, ) -def _smoke_case_101() -> None: +def _smoke_case_109() -> None: session = client.sessions.fork( session_id="7c9e6679-7425-40de-944b-e07fc1f90ae7", prompt="x", @@ -933,7 +997,7 @@ def _smoke_case_101() -> None: ) -def _smoke_case_102() -> None: +def _smoke_case_110() -> None: session = client.sessions.import_( source="conductor", external_id="x", @@ -942,27 +1006,27 @@ def _smoke_case_102() -> None: ) -def _smoke_case_103() -> None: +def _smoke_case_111() -> None: session = client.sessions.stop( session_id="7c9e6679-7425-40de-944b-e07fc1f90ae7", ) -def _smoke_case_104() -> None: +def _smoke_case_112() -> None: session = client.sessions.stop( session_id="7c9e6679-7425-40de-944b-e07fc1f90ae7", cancel_queued=True, ) -def _smoke_case_105() -> None: +def _smoke_case_113() -> None: session = client.sessions.list_events( session_id="7c9e6679-7425-40de-944b-e07fc1f90ae7", limit=50, ) -def _smoke_case_106() -> None: +def _smoke_case_114() -> None: session = client.sessions.list_events( session_id="7c9e6679-7425-40de-944b-e07fc1f90ae7", cursor="cursor", @@ -972,14 +1036,14 @@ def _smoke_case_106() -> None: ) -def _smoke_case_107() -> None: +def _smoke_case_115() -> None: source = client.sessions.sources.list( limit=50, include_total=False, ) -def _smoke_case_108() -> None: +def _smoke_case_116() -> None: source = client.sessions.sources.list( cursor="7c9e6679-7425-40de-944b-e07fc1f90ae7", limit=50, @@ -992,20 +1056,20 @@ def _smoke_case_108() -> None: ) -def _smoke_case_109() -> None: +def _smoke_case_117() -> None: source = client.sessions.sources.retrieve( source_id="7c9e6679-7425-40de-944b-e07fc1f90ae7", ) -def _smoke_case_110() -> None: +def _smoke_case_118() -> None: diff = client.sessions.diffs.list( session_id="7c9e6679-7425-40de-944b-e07fc1f90ae7", limit=50, ) -def _smoke_case_111() -> None: +def _smoke_case_119() -> None: diff = client.sessions.diffs.list( session_id="7c9e6679-7425-40de-944b-e07fc1f90ae7", cursor="7c9e6679-7425-40de-944b-e07fc1f90ae7", @@ -1014,20 +1078,20 @@ def _smoke_case_111() -> None: ) -def _smoke_case_112() -> None: +def _smoke_case_120() -> None: diff = client.sessions.diffs.retrieve( session_id="7c9e6679-7425-40de-944b-e07fc1f90ae7", diff_id="7c9e6679-7425-40de-944b-e07fc1f90ae7", ) -def _smoke_case_113() -> None: +def _smoke_case_121() -> None: input = client.sessions.inputs.list( session_id="7c9e6679-7425-40de-944b-e07fc1f90ae7", ) -def _smoke_case_114() -> None: +def _smoke_case_122() -> None: input = client.sessions.inputs.update( session_id="7c9e6679-7425-40de-944b-e07fc1f90ae7", input_id="inputId", @@ -1035,33 +1099,37 @@ def _smoke_case_114() -> None: ) -def _smoke_case_115() -> None: +def _smoke_case_123() -> None: queue = client.sessions.queue.update( session_id="7c9e6679-7425-40de-944b-e07fc1f90ae7", message_ids=["7c9e6679-7425-40de-944b-e07fc1f90ae7"], ) -def _smoke_case_116() -> None: +def _smoke_case_124() -> None: command = client.sessions.commands.list( session_id="7c9e6679-7425-40de-944b-e07fc1f90ae7", ) -def _smoke_case_117() -> None: +def _smoke_case_125() -> None: project = client.projects.update_defaults( project_id="x", sandbox_size="nano", ) -def _smoke_case_118() -> None: +def _smoke_case_126() -> None: + project = client.projects.retrieve_defaults() + + +def _smoke_case_127() -> None: project = client.projects.list( limit=50, ) -def _smoke_case_119() -> None: +def _smoke_case_128() -> None: project = client.projects.list( cursor="cursor", limit=50, @@ -1070,7 +1138,7 @@ def _smoke_case_119() -> None: ) -def _smoke_case_120() -> None: +def _smoke_case_129() -> None: project = client.projects.create( name="x", sizes=["medium"], @@ -1078,7 +1146,7 @@ def _smoke_case_120() -> None: ) -def _smoke_case_121() -> None: +def _smoke_case_130() -> None: project = client.projects.create( description="", name="x", @@ -1097,20 +1165,20 @@ def _smoke_case_121() -> None: ) -def _smoke_case_122() -> None: +def _smoke_case_131() -> None: project = client.projects.retrieve( project_id="projectId", ) -def _smoke_case_123() -> None: +def _smoke_case_132() -> None: project = client.projects.update( project_id="projectId", resource_settings={"automaticSizing": False}, ) -def _smoke_case_124() -> None: +def _smoke_case_133() -> None: project = client.projects.update( project_id="projectId", description="", @@ -1132,46 +1200,46 @@ def _smoke_case_124() -> None: ) -def _smoke_case_125() -> None: +def _smoke_case_134() -> None: project = client.projects.delete( project_id="projectId", ) -def _smoke_case_126() -> None: +def _smoke_case_135() -> None: project = client.projects.duplicate( project_id="projectId", ) -def _smoke_case_127() -> None: +def _smoke_case_136() -> None: environment_variable = client.projects.environment_variables.list( project_id="projectId", ) -def _smoke_case_128() -> None: +def _smoke_case_137() -> None: environment_variable = client.projects.environment_variables.create( project_id="projectId", secrets=[{"key": "", "value": "x"}], ) -def _smoke_case_129() -> None: +def _smoke_case_138() -> None: environment_variable = client.projects.environment_variables.delete( project_id="projectId", key="key", ) -def _smoke_case_130() -> None: +def _smoke_case_139() -> None: snapshot = client.projects.snapshots.list( project_id="projectId", limit=50, ) -def _smoke_case_131() -> None: +def _smoke_case_140() -> None: snapshot = client.projects.snapshots.list( project_id="projectId", cursor="cursor", @@ -1179,21 +1247,21 @@ def _smoke_case_131() -> None: ) -def _smoke_case_132() -> None: +def _smoke_case_141() -> None: snapshot = client.projects.snapshots.retrieve( project_id="projectId", snapshot_id="snapshotId", ) -def _smoke_case_133() -> None: +def _smoke_case_142() -> None: snapshot = client.projects.snapshots.update( project_id="projectId", snapshot_id="snapshotId", ) -def _smoke_case_134() -> None: +def _smoke_case_143() -> None: snapshot = client.projects.snapshots.update( project_id="projectId", snapshot_id="snapshotId", @@ -1202,21 +1270,21 @@ def _smoke_case_134() -> None: ) -def _smoke_case_135() -> None: +def _smoke_case_144() -> None: snapshot = client.projects.snapshots.delete( project_id="projectId", snapshot_id="snapshotId", ) -def _smoke_case_136() -> None: +def _smoke_case_145() -> None: build = client.projects.builds.list( project_id="projectId", limit=50, ) -def _smoke_case_137() -> None: +def _smoke_case_146() -> None: build = client.projects.builds.list( project_id="projectId", cursor="cursor", @@ -1224,13 +1292,13 @@ def _smoke_case_137() -> None: ) -def _smoke_case_138() -> None: +def _smoke_case_147() -> None: build = client.projects.builds.create( project_id="projectId", ) -def _smoke_case_139() -> None: +def _smoke_case_148() -> None: build = client.projects.builds.create( project_id="projectId", sizes=["nano"], @@ -1238,28 +1306,28 @@ def _smoke_case_139() -> None: ) -def _smoke_case_140() -> None: +def _smoke_case_149() -> None: build = client.projects.builds.retrieve( project_id="projectId", build_id="buildId", ) -def _smoke_case_141() -> None: +def _smoke_case_150() -> None: build = client.projects.builds.cancel( project_id="projectId", build_id="buildId", ) -def _smoke_case_142() -> None: +def _smoke_case_151() -> None: schedule = client.projects.schedules.list( project_id="projectId", limit=50, ) -def _smoke_case_143() -> None: +def _smoke_case_152() -> None: schedule = client.projects.schedules.list( project_id="projectId", cursor="cursor", @@ -1267,14 +1335,14 @@ def _smoke_case_143() -> None: ) -def _smoke_case_144() -> None: +def _smoke_case_153() -> None: schedule = client.projects.schedules.create( project_id="projectId", cron="x", ) -def _smoke_case_145() -> None: +def _smoke_case_154() -> None: schedule = client.projects.schedules.create( project_id="projectId", cron="x", @@ -1282,21 +1350,21 @@ def _smoke_case_145() -> None: ) -def _smoke_case_146() -> None: +def _smoke_case_155() -> None: schedule = client.projects.schedules.retrieve( project_id="projectId", schedule_id="scheduleId", ) -def _smoke_case_147() -> None: +def _smoke_case_156() -> None: schedule = client.projects.schedules.update( project_id="projectId", schedule_id="scheduleId", ) -def _smoke_case_148() -> None: +def _smoke_case_157() -> None: schedule = client.projects.schedules.update( project_id="projectId", schedule_id="scheduleId", @@ -1306,34 +1374,34 @@ def _smoke_case_148() -> None: ) -def _smoke_case_149() -> None: +def _smoke_case_158() -> None: schedule = client.projects.schedules.delete( project_id="projectId", schedule_id="scheduleId", ) -def _smoke_case_150() -> None: +def _smoke_case_159() -> None: pin = client.pins.list( limit=50, ) -def _smoke_case_151() -> None: +def _smoke_case_160() -> None: pin = client.pins.list( cursor="cursor", limit=50, ) -def _smoke_case_152() -> None: +def _smoke_case_161() -> None: pin = client.pins.create( type="session", id="7c9e6679-7425-40de-944b-e07fc1f90ae7", ) -def _smoke_case_153() -> None: +def _smoke_case_162() -> None: pin = client.pins.create( type="session", id="7c9e6679-7425-40de-944b-e07fc1f90ae7", @@ -1341,7 +1409,7 @@ def _smoke_case_153() -> None: ) -def _smoke_case_154() -> None: +def _smoke_case_163() -> None: pin = client.pins.update( resource_type="session", resource_id="7c9e6679-7425-40de-944b-e07fc1f90ae7", @@ -1349,20 +1417,20 @@ def _smoke_case_154() -> None: ) -def _smoke_case_155() -> None: +def _smoke_case_164() -> None: pin = client.pins.delete( resource_type="session", resource_id="7c9e6679-7425-40de-944b-e07fc1f90ae7", ) -def _smoke_case_156() -> None: +def _smoke_case_165() -> None: pull_request = client.pull_requests.list( limit=50, ) -def _smoke_case_157() -> None: +def _smoke_case_166() -> None: pull_request = client.pull_requests.list( author_ids=["author_id"], created_after="2024-01-01T00:00:00.000Z", @@ -1386,19 +1454,19 @@ def _smoke_case_157() -> None: ) -def _smoke_case_158() -> None: +def _smoke_case_167() -> None: pull_request = client.pull_requests.retrieve( pull_request_id="7c9e6679-7425-40de-944b-e07fc1f90ae7", ) -def _smoke_case_159() -> None: +def _smoke_case_168() -> None: agent = client.agents.list( limit=50, ) -def _smoke_case_160() -> None: +def _smoke_case_169() -> None: agent = client.agents.list( cursor="cursor", limit=50, @@ -1412,11 +1480,11 @@ def _smoke_case_160() -> None: ) -def _smoke_case_161() -> None: +def _smoke_case_170() -> None: agent = client.agents.create() -def _smoke_case_162() -> None: +def _smoke_case_171() -> None: agent = client.agents.create( name="x", instructions={ @@ -1437,19 +1505,19 @@ def _smoke_case_162() -> None: ) -def _smoke_case_163() -> None: +def _smoke_case_172() -> None: agent = client.agents.retrieve( agent_id="7c9e6679-7425-40de-944b-e07fc1f90ae7", ) -def _smoke_case_164() -> None: +def _smoke_case_173() -> None: agent = client.agents.update( agent_id="7c9e6679-7425-40de-944b-e07fc1f90ae7", ) -def _smoke_case_165() -> None: +def _smoke_case_174() -> None: agent = client.agents.update( agent_id="7c9e6679-7425-40de-944b-e07fc1f90ae7", expected_updated_at="2024-01-01T00:00:00.000Z", @@ -1474,39 +1542,39 @@ def _smoke_case_165() -> None: ) -def _smoke_case_166() -> None: +def _smoke_case_175() -> None: agent = client.agents.delete( agent_id="7c9e6679-7425-40de-944b-e07fc1f90ae7", ) -def _smoke_case_167() -> None: +def _smoke_case_176() -> None: template = client.agents.templates.list( limit=50, ) -def _smoke_case_168() -> None: +def _smoke_case_177() -> None: template = client.agents.templates.list( cursor="addTestCoverage", limit=50, ) -def _smoke_case_169() -> None: +def _smoke_case_178() -> None: template = client.agents.templates.retrieve( template_name="templateName", ) -def _smoke_case_170() -> None: +def _smoke_case_179() -> None: schedule = client.agents.schedules.list( agent_id="7c9e6679-7425-40de-944b-e07fc1f90ae7", limit=50, ) -def _smoke_case_171() -> None: +def _smoke_case_180() -> None: schedule = client.agents.schedules.list( agent_id="7c9e6679-7425-40de-944b-e07fc1f90ae7", cursor="7c9e6679-7425-40de-944b-e07fc1f90ae7", @@ -1514,21 +1582,21 @@ def _smoke_case_171() -> None: ) -def _smoke_case_172() -> None: +def _smoke_case_181() -> None: schedule = client.agents.schedules.create( agent_id="7c9e6679-7425-40de-944b-e07fc1f90ae7", cron="x", ) -def _smoke_case_173() -> None: +def _smoke_case_182() -> None: schedule = client.agents.schedules.retrieve( agent_id="7c9e6679-7425-40de-944b-e07fc1f90ae7", schedule_id="7c9e6679-7425-40de-944b-e07fc1f90ae7", ) -def _smoke_case_174() -> None: +def _smoke_case_183() -> None: schedule = client.agents.schedules.update( agent_id="7c9e6679-7425-40de-944b-e07fc1f90ae7", schedule_id="7c9e6679-7425-40de-944b-e07fc1f90ae7", @@ -1536,21 +1604,21 @@ def _smoke_case_174() -> None: ) -def _smoke_case_175() -> None: +def _smoke_case_184() -> None: schedule = client.agents.schedules.delete( agent_id="7c9e6679-7425-40de-944b-e07fc1f90ae7", schedule_id="7c9e6679-7425-40de-944b-e07fc1f90ae7", ) -def _smoke_case_176() -> None: +def _smoke_case_185() -> None: trigger = client.agents.triggers.list( agent_id="7c9e6679-7425-40de-944b-e07fc1f90ae7", limit=50, ) -def _smoke_case_177() -> None: +def _smoke_case_186() -> None: trigger = client.agents.triggers.list( agent_id="7c9e6679-7425-40de-944b-e07fc1f90ae7", cursor="7c9e6679-7425-40de-944b-e07fc1f90ae7", @@ -1558,14 +1626,14 @@ def _smoke_case_177() -> None: ) -def _smoke_case_178() -> None: +def _smoke_case_187() -> None: trigger = client.agents.triggers.create( agent_id="7c9e6679-7425-40de-944b-e07fc1f90ae7", name="x", ) -def _smoke_case_179() -> None: +def _smoke_case_188() -> None: trigger = client.agents.triggers.create( agent_id="7c9e6679-7425-40de-944b-e07fc1f90ae7", name="x", @@ -1582,14 +1650,14 @@ def _smoke_case_179() -> None: ) -def _smoke_case_180() -> None: +def _smoke_case_189() -> None: trigger = client.agents.triggers.retrieve( agent_id="7c9e6679-7425-40de-944b-e07fc1f90ae7", trigger_id="7c9e6679-7425-40de-944b-e07fc1f90ae7", ) -def _smoke_case_181() -> None: +def _smoke_case_190() -> None: trigger = client.agents.triggers.update( agent_id="7c9e6679-7425-40de-944b-e07fc1f90ae7", trigger_id="7c9e6679-7425-40de-944b-e07fc1f90ae7", @@ -1597,7 +1665,7 @@ def _smoke_case_181() -> None: ) -def _smoke_case_182() -> None: +def _smoke_case_191() -> None: trigger = client.agents.triggers.update( agent_id="7c9e6679-7425-40de-944b-e07fc1f90ae7", trigger_id="7c9e6679-7425-40de-944b-e07fc1f90ae7", @@ -1614,21 +1682,21 @@ def _smoke_case_182() -> None: ) -def _smoke_case_183() -> None: +def _smoke_case_192() -> None: trigger = client.agents.triggers.delete( agent_id="7c9e6679-7425-40de-944b-e07fc1f90ae7", trigger_id="7c9e6679-7425-40de-944b-e07fc1f90ae7", ) -def _smoke_case_184() -> None: +def _smoke_case_193() -> None: run = client.agents.runs.list( agent_id="7c9e6679-7425-40de-944b-e07fc1f90ae7", limit=50, ) -def _smoke_case_185() -> None: +def _smoke_case_194() -> None: run = client.agents.runs.list( agent_id="7c9e6679-7425-40de-944b-e07fc1f90ae7", cursor="7c9e6679-7425-40de-944b-e07fc1f90ae7", @@ -1636,34 +1704,34 @@ def _smoke_case_185() -> None: ) -def _smoke_case_186() -> None: +def _smoke_case_195() -> None: run = client.agents.runs.create( agent_id="7c9e6679-7425-40de-944b-e07fc1f90ae7", ) -def _smoke_case_187() -> None: +def _smoke_case_196() -> None: run = client.agents.runs.create( agent_id="7c9e6679-7425-40de-944b-e07fc1f90ae7", body={}, ) -def _smoke_case_188() -> None: +def _smoke_case_197() -> None: run = client.agents.runs.retrieve( agent_id="7c9e6679-7425-40de-944b-e07fc1f90ae7", run_id="7c9e6679-7425-40de-944b-e07fc1f90ae7", ) -def _smoke_case_189() -> None: +def _smoke_case_198() -> None: content_revision = client.agents.content_revisions.list( agent_id="7c9e6679-7425-40de-944b-e07fc1f90ae7", limit=50, ) -def _smoke_case_190() -> None: +def _smoke_case_199() -> None: content_revision = client.agents.content_revisions.list( agent_id="7c9e6679-7425-40de-944b-e07fc1f90ae7", cursor="cursor", @@ -1671,14 +1739,14 @@ def _smoke_case_190() -> None: ) -def _smoke_case_191() -> None: +def _smoke_case_200() -> None: content_revision = client.agents.content_revisions.retrieve( agent_id="7c9e6679-7425-40de-944b-e07fc1f90ae7", version=1, ) -def _smoke_case_192() -> None: +def _smoke_case_201() -> None: content_revision = client.agents.content_revisions.restore( agent_id="7c9e6679-7425-40de-944b-e07fc1f90ae7", version=1, @@ -1686,7 +1754,7 @@ def _smoke_case_192() -> None: ) -def _smoke_case_193() -> None: +def _smoke_case_202() -> None: repository = client.repositories.list( limit=50, enabled="all", @@ -1695,7 +1763,7 @@ def _smoke_case_193() -> None: ) -def _smoke_case_194() -> None: +def _smoke_case_203() -> None: repository = client.repositories.list( cursor="7c9e6679-7425-40de-944b-e07fc1f90ae7", limit=50, @@ -1708,20 +1776,20 @@ def _smoke_case_194() -> None: ) -def _smoke_case_195() -> None: +def _smoke_case_204() -> None: repository = client.repositories.retrieve( repository_id="7c9e6679-7425-40de-944b-e07fc1f90ae7", ) -def _smoke_case_196() -> None: +def _smoke_case_205() -> None: repository = client.repositories.update( repository_id="7c9e6679-7425-40de-944b-e07fc1f90ae7", enabled=False, ) -def _smoke_case_197() -> None: +def _smoke_case_206() -> None: repository = client.repositories.update( repository_id="7c9e6679-7425-40de-944b-e07fc1f90ae7", enabled=False, @@ -1730,14 +1798,14 @@ def _smoke_case_197() -> None: ) -def _smoke_case_198() -> None: +def _smoke_case_207() -> None: integration = client.integrations.list( limit=50, include_total=False, ) -def _smoke_case_199() -> None: +def _smoke_case_208() -> None: integration = client.integrations.list( cursor="7c9e6679-7425-40de-944b-e07fc1f90ae7", limit=50, @@ -1752,7 +1820,7 @@ def _smoke_case_199() -> None: ) -def _smoke_case_200() -> None: +def _smoke_case_209() -> None: integration = client.integrations.create( environment="x", role_arn="x", @@ -1760,20 +1828,20 @@ def _smoke_case_200() -> None: ) -def _smoke_case_201() -> None: +def _smoke_case_210() -> None: integration = client.integrations.retrieve( integration_id="7c9e6679-7425-40de-944b-e07fc1f90ae7", ) -def _smoke_case_202() -> None: +def _smoke_case_211() -> None: integration = client.integrations.update( integration_id="7c9e6679-7425-40de-944b-e07fc1f90ae7", settings={}, ) -def _smoke_case_203() -> None: +def _smoke_case_212() -> None: integration = client.integrations.update( integration_id="7c9e6679-7425-40de-944b-e07fc1f90ae7", settings={ @@ -1785,19 +1853,19 @@ def _smoke_case_203() -> None: ) -def _smoke_case_204() -> None: +def _smoke_case_213() -> None: integration = client.integrations.delete( integration_id="7c9e6679-7425-40de-944b-e07fc1f90ae7", ) -def _smoke_case_205() -> None: +def _smoke_case_214() -> None: integration = client.integrations.authorize( integration_id="7c9e6679-7425-40de-944b-e07fc1f90ae7", ) -def _smoke_case_206() -> None: +def _smoke_case_215() -> None: integration = client.integrations.authorize( integration_id="7c9e6679-7425-40de-944b-e07fc1f90ae7", return_url="https://example.com", @@ -1805,47 +1873,47 @@ def _smoke_case_206() -> None: ) -def _smoke_case_207() -> None: +def _smoke_case_216() -> None: integration = client.integrations.test( integration_id="7c9e6679-7425-40de-944b-e07fc1f90ae7", ) -def _smoke_case_208() -> None: +def _smoke_case_217() -> None: integration = client.integrations.sync( integration_id="7c9e6679-7425-40de-944b-e07fc1f90ae7", mode="queued", ) -def _smoke_case_209() -> None: +def _smoke_case_218() -> None: integration = client.integrations.sync_all() -def _smoke_case_210() -> None: +def _smoke_case_219() -> None: integration = client.integrations.retrieve_sync_status() -def _smoke_case_211() -> None: +def _smoke_case_220() -> None: integration = client.integrations.retrieve_sync_status( integration_id="7c9e6679-7425-40de-944b-e07fc1f90ae7", ) -def _smoke_case_212() -> None: +def _smoke_case_221() -> None: integration = client.integrations.retrieve_rate_limit( integration_id="7c9e6679-7425-40de-944b-e07fc1f90ae7", ) -def _smoke_case_213() -> None: +def _smoke_case_222() -> None: integration = client.integrations.list_sentry_environments( integration_id="7c9e6679-7425-40de-944b-e07fc1f90ae7", limit=50, ) -def _smoke_case_214() -> None: +def _smoke_case_223() -> None: integration = client.integrations.list_sentry_environments( integration_id="7c9e6679-7425-40de-944b-e07fc1f90ae7", cursor="cursor", @@ -1853,14 +1921,14 @@ def _smoke_case_214() -> None: ) -def _smoke_case_215() -> None: +def _smoke_case_224() -> None: integration = client.integrations.list_slack_channels( integration_id="7c9e6679-7425-40de-944b-e07fc1f90ae7", limit=50, ) -def _smoke_case_216() -> None: +def _smoke_case_225() -> None: integration = client.integrations.list_slack_channels( integration_id="7c9e6679-7425-40de-944b-e07fc1f90ae7", cursor="cursor", @@ -1869,13 +1937,13 @@ def _smoke_case_216() -> None: ) -def _smoke_case_217() -> None: +def _smoke_case_226() -> None: provider = client.integrations.providers.list( limit=50, ) -def _smoke_case_218() -> None: +def _smoke_case_227() -> None: provider = client.integrations.providers.list( cursor="cursor", limit=50, @@ -1883,7 +1951,7 @@ def _smoke_case_218() -> None: ) -def _smoke_case_219() -> None: +def _smoke_case_228() -> None: provider = client.integrations.providers.discover_snyk_organizations( client_id="x", client_secret="x", @@ -1891,7 +1959,7 @@ def _smoke_case_219() -> None: ) -def _smoke_case_220() -> None: +def _smoke_case_229() -> None: provider = client.integrations.providers.discover_snyk_organizations( client_id="x", client_secret="x", @@ -1900,27 +1968,27 @@ def _smoke_case_220() -> None: ) -def _smoke_case_221() -> None: +def _smoke_case_230() -> None: trigger = client.integrations.triggers.list( limit=50, ) -def _smoke_case_222() -> None: +def _smoke_case_231() -> None: trigger = client.integrations.triggers.list( cursor="cursor", limit=50, ) -def _smoke_case_223() -> None: +def _smoke_case_232() -> None: trigger = client.integrations.triggers.retrieve( integration_id="7c9e6679-7425-40de-944b-e07fc1f90ae7", trigger_name="triggerName", ) -def _smoke_case_224() -> None: +def _smoke_case_233() -> None: trigger = client.integrations.triggers.list_filter_options( integration_id="7c9e6679-7425-40de-944b-e07fc1f90ae7", trigger_name="triggerName", @@ -1929,7 +1997,7 @@ def _smoke_case_224() -> None: ) -def _smoke_case_225() -> None: +def _smoke_case_234() -> None: trigger = client.integrations.triggers.list_filter_options( integration_id="7c9e6679-7425-40de-944b-e07fc1f90ae7", trigger_name="triggerName", @@ -1940,17 +2008,17 @@ def _smoke_case_225() -> None: ) -def _smoke_case_226() -> None: +def _smoke_case_235() -> None: billing = client.billing.retrieve() -def _smoke_case_227() -> None: +def _smoke_case_236() -> None: billing = client.billing.list_usage( limit=50, ) -def _smoke_case_228() -> None: +def _smoke_case_237() -> None: billing = client.billing.list_usage( cursor="cursor", limit=50, @@ -1964,11 +2032,54 @@ def _smoke_case_228() -> None: ) -def _smoke_case_229() -> None: +def _smoke_case_238() -> None: + folder = client.folders.list() + + +def _smoke_case_239() -> None: + folder = client.folders.create( + name="x", + ) + + +def _smoke_case_240() -> None: + folder = client.folders.create( + name="x", + color="neutral", + ) + + +def _smoke_case_241() -> None: + folder = client.folders.update( + folder_id="7c9e6679-7425-40de-944b-e07fc1f90ae7", + ) + + +def _smoke_case_242() -> None: + folder = client.folders.update( + folder_id="7c9e6679-7425-40de-944b-e07fc1f90ae7", + name="x", + color="neutral", + placement={"target": "7c9e6679-7425-40de-944b-e07fc1f90ae7", "position": "before"}, + add_session={ + "id": "7c9e6679-7425-40de-944b-e07fc1f90ae7", + "placement": {"target": "7c9e6679-7425-40de-944b-e07fc1f90ae7", "position": "before"}, + }, + remove_session={"id": "7c9e6679-7425-40de-944b-e07fc1f90ae7"}, + ) + + +def _smoke_case_243() -> None: + folder = client.folders.delete( + folder_id="7c9e6679-7425-40de-944b-e07fc1f90ae7", + ) + + +def _smoke_case_244() -> None: live = client.live.authorize() -def _smoke_case_230() -> None: +def _smoke_case_245() -> None: def _probe() -> None: with client.live.connect() as socket: try: @@ -2202,1311 +2313,1409 @@ def _probe() -> None: "operation": "update", "method": "PATCH", "path": "/v1/organizations/{organizationId}/members/{memberId}", + "label": "required params", "run": _smoke_case_33, }, { - "operation": "delete", - "method": "DELETE", + "operation": "update", + "method": "PATCH", "path": "/v1/organizations/{organizationId}/members/{memberId}", + "label": "all params", "run": _smoke_case_34, }, { - "operation": "list", - "method": "GET", - "path": "/v1/organizations/{organizationId}/secrets", - "label": "required params", + "operation": "delete", + "method": "DELETE", + "path": "/v1/organizations/{organizationId}/members/{memberId}", "run": _smoke_case_35, }, { "operation": "list", "method": "GET", - "path": "/v1/organizations/{organizationId}/secrets", - "label": "all params", + "path": "/v1/organizations/{organizationId}/roles", "run": _smoke_case_36, }, { "operation": "create", "method": "POST", - "path": "/v1/organizations/{organizationId}/secrets", + "path": "/v1/organizations/{organizationId}/roles", "run": _smoke_case_37, }, { "operation": "retrieve", "method": "GET", - "path": "/v1/organizations/{organizationId}/secrets/{secretId}", + "path": "/v1/organizations/{organizationId}/roles/{roleId}", "run": _smoke_case_38, }, { "operation": "update", "method": "PATCH", - "path": "/v1/organizations/{organizationId}/secrets/{secretId}", + "path": "/v1/organizations/{organizationId}/roles/{roleId}", "label": "required params", "run": _smoke_case_39, }, { "operation": "update", "method": "PATCH", - "path": "/v1/organizations/{organizationId}/secrets/{secretId}", + "path": "/v1/organizations/{organizationId}/roles/{roleId}", "label": "all params", "run": _smoke_case_40, }, { "operation": "delete", "method": "DELETE", - "path": "/v1/organizations/{organizationId}/secrets/{secretId}", + "path": "/v1/organizations/{organizationId}/roles/{roleId}", "run": _smoke_case_41, }, { - "operation": "retrieve", + "operation": "list", "method": "GET", - "path": "/v1/organizations/{organizationId}/settings", + "path": "/v1/organizations/{organizationId}/secrets", + "label": "required params", "run": _smoke_case_42, }, { - "operation": "update", - "method": "PATCH", - "path": "/v1/organizations/{organizationId}/settings", - "label": "required params", + "operation": "list", + "method": "GET", + "path": "/v1/organizations/{organizationId}/secrets", + "label": "all params", "run": _smoke_case_43, }, { - "operation": "update", - "method": "PATCH", - "path": "/v1/organizations/{organizationId}/settings", - "label": "all params", + "operation": "create", + "method": "POST", + "path": "/v1/organizations/{organizationId}/secrets", "run": _smoke_case_44, }, { - "operation": "validateCredentials", - "method": "POST", - "path": "/v1/organizations/{organizationId}/settings/validate-credentials", + "operation": "retrieve", + "method": "GET", + "path": "/v1/organizations/{organizationId}/secrets/{secretId}", "run": _smoke_case_45, }, { - "operation": "retrieve", - "method": "GET", - "path": "/v1/organizations/{organizationId}/subscriptions", + "operation": "update", + "method": "PATCH", + "path": "/v1/organizations/{organizationId}/secrets/{secretId}", + "label": "required params", "run": _smoke_case_46, }, { - "operation": "list", - "method": "GET", - "path": "/v1/mcp-connections", - "label": "required params", + "operation": "update", + "method": "PATCH", + "path": "/v1/organizations/{organizationId}/secrets/{secretId}", + "label": "all params", "run": _smoke_case_47, }, + { + "operation": "delete", + "method": "DELETE", + "path": "/v1/organizations/{organizationId}/secrets/{secretId}", + "run": _smoke_case_48, + }, + { + "operation": "retrieve", + "method": "GET", + "path": "/v1/organizations/{organizationId}/settings", + "run": _smoke_case_49, + }, + { + "operation": "update", + "method": "PATCH", + "path": "/v1/organizations/{organizationId}/settings", + "label": "required params", + "run": _smoke_case_50, + }, + { + "operation": "update", + "method": "PATCH", + "path": "/v1/organizations/{organizationId}/settings", + "label": "all params", + "run": _smoke_case_51, + }, + { + "operation": "validateCredentials", + "method": "POST", + "path": "/v1/organizations/{organizationId}/settings/validate-credentials", + "run": _smoke_case_52, + }, + { + "operation": "retrieve", + "method": "GET", + "path": "/v1/organizations/{organizationId}/subscriptions", + "run": _smoke_case_53, + }, + { + "operation": "list", + "method": "GET", + "path": "/v1/mcp-connections", + "label": "required params", + "run": _smoke_case_54, + }, { "operation": "list", "method": "GET", "path": "/v1/mcp-connections", "label": "all params", - "run": _smoke_case_48, + "run": _smoke_case_55, }, { "operation": "create", "method": "POST", "path": "/v1/mcp-connections", "label": "required params", - "run": _smoke_case_49, + "run": _smoke_case_56, }, { "operation": "create", "method": "POST", "path": "/v1/mcp-connections", "label": "all params", - "run": _smoke_case_50, + "run": _smoke_case_57, }, { "operation": "retrieve", "method": "GET", "path": "/v1/mcp-connections/{mcpConnectionId}", - "run": _smoke_case_51, + "run": _smoke_case_58, }, { "operation": "update", "method": "PATCH", "path": "/v1/mcp-connections/{mcpConnectionId}", "label": "required params", - "run": _smoke_case_52, + "run": _smoke_case_59, }, { "operation": "update", "method": "PATCH", "path": "/v1/mcp-connections/{mcpConnectionId}", "label": "all params", - "run": _smoke_case_53, + "run": _smoke_case_60, }, { "operation": "delete", "method": "DELETE", "path": "/v1/mcp-connections/{mcpConnectionId}", - "run": _smoke_case_54, + "run": _smoke_case_61, }, { "operation": "authorize", "method": "POST", "path": "/v1/mcp-connections/{mcpConnectionId}/authorize", - "run": _smoke_case_55, + "run": _smoke_case_62, }, { "operation": "test", "method": "POST", "path": "/v1/mcp-connections/{mcpConnectionId}/test", - "run": _smoke_case_56, + "run": _smoke_case_63, }, { "operation": "list", "method": "GET", "path": "/v1/artifacts", "label": "required params", - "run": _smoke_case_57, + "run": _smoke_case_64, }, { "operation": "list", "method": "GET", "path": "/v1/artifacts", "label": "all params", - "run": _smoke_case_58, + "run": _smoke_case_65, }, { "operation": "create", "method": "POST", "path": "/v1/artifacts", "label": "required params", - "run": _smoke_case_59, + "run": _smoke_case_66, }, { "operation": "create", "method": "POST", "path": "/v1/artifacts", "label": "all params", - "run": _smoke_case_60, + "run": _smoke_case_67, }, { "operation": "retrieve", "method": "GET", "path": "/v1/artifacts/{artifactId}", - "run": _smoke_case_61, + "run": _smoke_case_68, + }, + { + "operation": "retrieveAssetUrl", + "method": "GET", + "path": "/v1/artifacts/assets/{assetId}", + "run": _smoke_case_69, }, { "operation": "delete", "method": "DELETE", "path": "/v1/artifacts/{artifactId}", - "run": _smoke_case_62, + "run": _smoke_case_70, }, { "operation": "list", "method": "GET", "path": "/v1/messages", "label": "required params", - "run": _smoke_case_63, + "run": _smoke_case_71, }, { "operation": "list", "method": "GET", "path": "/v1/messages", "label": "all params", - "run": _smoke_case_64, + "run": _smoke_case_72, }, { "operation": "create", "method": "POST", "path": "/v1/messages", "label": "required params", - "run": _smoke_case_65, + "run": _smoke_case_73, }, { "operation": "create", "method": "POST", "path": "/v1/messages", "label": "all params", - "run": _smoke_case_66, + "run": _smoke_case_74, }, { "operation": "retrieve", "method": "GET", "path": "/v1/messages/{messageId}", - "run": _smoke_case_67, + "run": _smoke_case_75, }, { "operation": "update", "method": "PATCH", "path": "/v1/messages/{messageId}", "label": "required params", - "run": _smoke_case_68, + "run": _smoke_case_76, }, { "operation": "update", "method": "PATCH", "path": "/v1/messages/{messageId}", "label": "all params", - "run": _smoke_case_69, + "run": _smoke_case_77, }, { "operation": "delete", "method": "DELETE", "path": "/v1/messages/{messageId}", - "run": _smoke_case_70, + "run": _smoke_case_78, }, { "operation": "list", "method": "GET", "path": "/v1/models", "label": "required params", - "run": _smoke_case_71, + "run": _smoke_case_79, }, { "operation": "list", "method": "GET", "path": "/v1/models", "label": "all params", - "run": _smoke_case_72, + "run": _smoke_case_80, }, { "operation": "update", "method": "PATCH", "path": "/v1/models/{modelName}", "label": "required params", - "run": _smoke_case_73, + "run": _smoke_case_81, }, { "operation": "update", "method": "PATCH", "path": "/v1/models/{modelName}", "label": "all params", - "run": _smoke_case_74, + "run": _smoke_case_82, }, { "operation": "list", "method": "GET", "path": "/v1/runtimes", "label": "required params", - "run": _smoke_case_75, + "run": _smoke_case_83, }, { "operation": "list", "method": "GET", "path": "/v1/runtimes", "label": "all params", - "run": _smoke_case_76, + "run": _smoke_case_84, }, { "operation": "me", "method": "GET", "path": "/v1/users/me", - "run": _smoke_case_77, + "run": _smoke_case_85, }, { "operation": "retrieve", "method": "GET", "path": "/v1/users/{userId}", - "run": _smoke_case_78, + "run": _smoke_case_86, }, { "operation": "retrieve", "method": "GET", "path": "/v1/users/{userId}/settings", - "run": _smoke_case_79, + "run": _smoke_case_87, }, { "operation": "update", "method": "PATCH", "path": "/v1/users/{userId}/settings", "label": "required params", - "run": _smoke_case_80, + "run": _smoke_case_88, }, { "operation": "update", "method": "PATCH", "path": "/v1/users/{userId}/settings", "label": "all params", - "run": _smoke_case_81, + "run": _smoke_case_89, }, { "operation": "list", "method": "GET", "path": "/v1/users/{userId}/connected-accounts", "label": "required params", - "run": _smoke_case_82, + "run": _smoke_case_90, }, { "operation": "list", "method": "GET", "path": "/v1/users/{userId}/connected-accounts", "label": "all params", - "run": _smoke_case_83, + "run": _smoke_case_91, }, { "operation": "retrieve", "method": "GET", "path": "/v1/users/{userId}/connected-accounts/{connectedAccountId}", - "run": _smoke_case_84, + "run": _smoke_case_92, }, { "operation": "retrieve", "method": "GET", "path": "/v1/users/{userId}/subscriptions", - "run": _smoke_case_85, + "run": _smoke_case_93, }, { "operation": "list", "method": "GET", "path": "/v1/users/{userId}/environment-variables", - "run": _smoke_case_86, + "run": _smoke_case_94, }, { "operation": "create", "method": "POST", "path": "/v1/users/{userId}/environment-variables", - "run": _smoke_case_87, + "run": _smoke_case_95, }, { "operation": "delete", "method": "DELETE", "path": "/v1/users/{userId}/environment-variables/{environmentVariableId}", - "run": _smoke_case_88, + "run": _smoke_case_96, }, { "operation": "retrieve", "method": "GET", "path": "/v1/users/{userId}/profile-picture", - "run": _smoke_case_89, + "run": _smoke_case_97, }, { "operation": "update", "method": "PUT", "path": "/v1/users/{userId}/profile-picture", - "run": _smoke_case_90, + "run": _smoke_case_98, }, { "operation": "delete", "method": "DELETE", "path": "/v1/users/{userId}/profile-picture", - "run": _smoke_case_91, + "run": _smoke_case_99, }, { "operation": "list", "method": "GET", "path": "/v1/sessions", "label": "required params", - "run": _smoke_case_92, + "run": _smoke_case_100, }, { "operation": "list", "method": "GET", "path": "/v1/sessions", "label": "all params", - "run": _smoke_case_93, + "run": _smoke_case_101, }, { "operation": "create", "method": "POST", "path": "/v1/sessions", "label": "required params", - "run": _smoke_case_94, + "run": _smoke_case_102, }, { "operation": "create", "method": "POST", "path": "/v1/sessions", "label": "all params", - "run": _smoke_case_95, + "run": _smoke_case_103, }, { "operation": "retrieve", "method": "GET", "path": "/v1/sessions/{sessionId}", - "run": _smoke_case_96, + "run": _smoke_case_104, }, { "operation": "update", "method": "PATCH", "path": "/v1/sessions/{sessionId}", "label": "required params", - "run": _smoke_case_97, + "run": _smoke_case_105, }, { "operation": "update", "method": "PATCH", "path": "/v1/sessions/{sessionId}", "label": "all params", - "run": _smoke_case_98, + "run": _smoke_case_106, }, { "operation": "delete", "method": "DELETE", "path": "/v1/sessions/{sessionId}", - "run": _smoke_case_99, + "run": _smoke_case_107, }, { "operation": "fork", "method": "POST", "path": "/v1/sessions/{sessionId}/fork", "label": "required params", - "run": _smoke_case_100, + "run": _smoke_case_108, }, { "operation": "fork", "method": "POST", "path": "/v1/sessions/{sessionId}/fork", "label": "all params", - "run": _smoke_case_101, + "run": _smoke_case_109, }, { "operation": "import", "method": "POST", "path": "/v1/sessions/import", - "run": _smoke_case_102, + "run": _smoke_case_110, }, { "operation": "stop", "method": "POST", "path": "/v1/sessions/{sessionId}/stop", "label": "required params", - "run": _smoke_case_103, + "run": _smoke_case_111, }, { "operation": "stop", "method": "POST", "path": "/v1/sessions/{sessionId}/stop", "label": "all params", - "run": _smoke_case_104, + "run": _smoke_case_112, }, { "operation": "listEvents", "method": "GET", "path": "/v1/sessions/{sessionId}/events", "label": "required params", - "run": _smoke_case_105, + "run": _smoke_case_113, }, { "operation": "listEvents", "method": "GET", "path": "/v1/sessions/{sessionId}/events", "label": "all params", - "run": _smoke_case_106, + "run": _smoke_case_114, }, { "operation": "list", "method": "GET", "path": "/v1/sessions/sources", "label": "required params", - "run": _smoke_case_107, + "run": _smoke_case_115, }, { "operation": "list", "method": "GET", "path": "/v1/sessions/sources", "label": "all params", - "run": _smoke_case_108, + "run": _smoke_case_116, }, { "operation": "retrieve", "method": "GET", "path": "/v1/sessions/sources/{sourceId}", - "run": _smoke_case_109, + "run": _smoke_case_117, }, { "operation": "list", "method": "GET", "path": "/v1/sessions/{sessionId}/diffs", "label": "required params", - "run": _smoke_case_110, + "run": _smoke_case_118, }, { "operation": "list", "method": "GET", "path": "/v1/sessions/{sessionId}/diffs", "label": "all params", - "run": _smoke_case_111, + "run": _smoke_case_119, }, { "operation": "retrieve", "method": "GET", "path": "/v1/sessions/{sessionId}/diffs/{diffId}", - "run": _smoke_case_112, + "run": _smoke_case_120, }, { "operation": "list", "method": "GET", "path": "/v1/sessions/{sessionId}/inputs", - "run": _smoke_case_113, + "run": _smoke_case_121, }, { "operation": "update", "method": "PATCH", "path": "/v1/sessions/{sessionId}/inputs/{inputId}", - "run": _smoke_case_114, + "run": _smoke_case_122, }, { "operation": "update", "method": "PUT", "path": "/v1/sessions/{sessionId}/queue", - "run": _smoke_case_115, + "run": _smoke_case_123, }, { "operation": "list", "method": "GET", "path": "/v1/sessions/{sessionId}/commands", - "run": _smoke_case_116, + "run": _smoke_case_124, }, { "operation": "updateDefaults", "method": "PUT", "path": "/v1/projects/defaults", - "run": _smoke_case_117, + "run": _smoke_case_125, + }, + { + "operation": "retrieveDefaults", + "method": "GET", + "path": "/v1/projects/defaults", + "run": _smoke_case_126, }, { "operation": "list", "method": "GET", "path": "/v1/projects", "label": "required params", - "run": _smoke_case_118, + "run": _smoke_case_127, }, { "operation": "list", "method": "GET", "path": "/v1/projects", "label": "all params", - "run": _smoke_case_119, + "run": _smoke_case_128, }, { "operation": "create", "method": "POST", "path": "/v1/projects", "label": "required params", - "run": _smoke_case_120, + "run": _smoke_case_129, }, { "operation": "create", "method": "POST", "path": "/v1/projects", "label": "all params", - "run": _smoke_case_121, + "run": _smoke_case_130, }, { "operation": "retrieve", "method": "GET", "path": "/v1/projects/{projectId}", - "run": _smoke_case_122, + "run": _smoke_case_131, }, { "operation": "update", "method": "PATCH", "path": "/v1/projects/{projectId}", "label": "required params", - "run": _smoke_case_123, + "run": _smoke_case_132, }, { "operation": "update", "method": "PATCH", "path": "/v1/projects/{projectId}", "label": "all params", - "run": _smoke_case_124, + "run": _smoke_case_133, }, { "operation": "delete", "method": "DELETE", "path": "/v1/projects/{projectId}", - "run": _smoke_case_125, + "run": _smoke_case_134, }, { "operation": "duplicate", "method": "POST", "path": "/v1/projects/{projectId}/duplicate", - "run": _smoke_case_126, + "run": _smoke_case_135, }, { "operation": "list", "method": "GET", "path": "/v1/projects/{projectId}/environment-variables", - "run": _smoke_case_127, + "run": _smoke_case_136, }, { "operation": "create", "method": "POST", "path": "/v1/projects/{projectId}/environment-variables", - "run": _smoke_case_128, + "run": _smoke_case_137, }, { "operation": "delete", "method": "DELETE", "path": "/v1/projects/{projectId}/environment-variables/{key}", - "run": _smoke_case_129, + "run": _smoke_case_138, }, { "operation": "list", "method": "GET", "path": "/v1/projects/{projectId}/snapshots", "label": "required params", - "run": _smoke_case_130, + "run": _smoke_case_139, }, { "operation": "list", "method": "GET", "path": "/v1/projects/{projectId}/snapshots", "label": "all params", - "run": _smoke_case_131, + "run": _smoke_case_140, }, { "operation": "retrieve", "method": "GET", "path": "/v1/projects/{projectId}/snapshots/{snapshotId}", - "run": _smoke_case_132, + "run": _smoke_case_141, }, { "operation": "update", "method": "PATCH", "path": "/v1/projects/{projectId}/snapshots/{snapshotId}", "label": "required params", - "run": _smoke_case_133, + "run": _smoke_case_142, }, { "operation": "update", "method": "PATCH", "path": "/v1/projects/{projectId}/snapshots/{snapshotId}", "label": "all params", - "run": _smoke_case_134, + "run": _smoke_case_143, }, { "operation": "delete", "method": "DELETE", "path": "/v1/projects/{projectId}/snapshots/{snapshotId}", - "run": _smoke_case_135, + "run": _smoke_case_144, }, { "operation": "list", "method": "GET", "path": "/v1/projects/{projectId}/builds", "label": "required params", - "run": _smoke_case_136, + "run": _smoke_case_145, }, { "operation": "list", "method": "GET", "path": "/v1/projects/{projectId}/builds", "label": "all params", - "run": _smoke_case_137, + "run": _smoke_case_146, }, { "operation": "create", "method": "POST", "path": "/v1/projects/{projectId}/builds", "label": "required params", - "run": _smoke_case_138, + "run": _smoke_case_147, }, { "operation": "create", "method": "POST", "path": "/v1/projects/{projectId}/builds", "label": "all params", - "run": _smoke_case_139, + "run": _smoke_case_148, }, { "operation": "retrieve", "method": "GET", "path": "/v1/projects/{projectId}/builds/{buildId}", - "run": _smoke_case_140, + "run": _smoke_case_149, }, { "operation": "cancel", "method": "POST", "path": "/v1/projects/{projectId}/builds/{buildId}/cancel", - "run": _smoke_case_141, + "run": _smoke_case_150, }, { "operation": "list", "method": "GET", "path": "/v1/projects/{projectId}/schedules", "label": "required params", - "run": _smoke_case_142, + "run": _smoke_case_151, }, { "operation": "list", "method": "GET", "path": "/v1/projects/{projectId}/schedules", "label": "all params", - "run": _smoke_case_143, + "run": _smoke_case_152, }, { "operation": "create", "method": "POST", "path": "/v1/projects/{projectId}/schedules", "label": "required params", - "run": _smoke_case_144, + "run": _smoke_case_153, }, { "operation": "create", "method": "POST", "path": "/v1/projects/{projectId}/schedules", "label": "all params", - "run": _smoke_case_145, + "run": _smoke_case_154, }, { "operation": "retrieve", "method": "GET", "path": "/v1/projects/{projectId}/schedules/{scheduleId}", - "run": _smoke_case_146, + "run": _smoke_case_155, }, { "operation": "update", "method": "PATCH", "path": "/v1/projects/{projectId}/schedules/{scheduleId}", "label": "required params", - "run": _smoke_case_147, + "run": _smoke_case_156, }, { "operation": "update", "method": "PATCH", "path": "/v1/projects/{projectId}/schedules/{scheduleId}", "label": "all params", - "run": _smoke_case_148, + "run": _smoke_case_157, }, { "operation": "delete", "method": "DELETE", "path": "/v1/projects/{projectId}/schedules/{scheduleId}", - "run": _smoke_case_149, + "run": _smoke_case_158, }, { "operation": "list", "method": "GET", "path": "/v1/pins", "label": "required params", - "run": _smoke_case_150, + "run": _smoke_case_159, }, { "operation": "list", "method": "GET", "path": "/v1/pins", "label": "all params", - "run": _smoke_case_151, + "run": _smoke_case_160, }, { "operation": "create", "method": "POST", "path": "/v1/pins", "label": "required params", - "run": _smoke_case_152, + "run": _smoke_case_161, }, { "operation": "create", "method": "POST", "path": "/v1/pins", "label": "all params", - "run": _smoke_case_153, + "run": _smoke_case_162, }, { "operation": "update", "method": "PATCH", "path": "/v1/pins/{resourceType}/{resourceId}", - "run": _smoke_case_154, + "run": _smoke_case_163, }, { "operation": "delete", "method": "DELETE", "path": "/v1/pins/{resourceType}/{resourceId}", - "run": _smoke_case_155, + "run": _smoke_case_164, }, { "operation": "list", "method": "GET", "path": "/v1/pull-requests", "label": "required params", - "run": _smoke_case_156, + "run": _smoke_case_165, }, { "operation": "list", "method": "GET", "path": "/v1/pull-requests", "label": "all params", - "run": _smoke_case_157, + "run": _smoke_case_166, }, { "operation": "retrieve", "method": "GET", "path": "/v1/pull-requests/{pullRequestId}", - "run": _smoke_case_158, + "run": _smoke_case_167, }, { "operation": "list", "method": "GET", "path": "/v1/agents", "label": "required params", - "run": _smoke_case_159, + "run": _smoke_case_168, }, { "operation": "list", "method": "GET", "path": "/v1/agents", "label": "all params", - "run": _smoke_case_160, + "run": _smoke_case_169, }, { "operation": "create", "method": "POST", "path": "/v1/agents", "label": "required params", - "run": _smoke_case_161, + "run": _smoke_case_170, }, { "operation": "create", "method": "POST", "path": "/v1/agents", "label": "all params", - "run": _smoke_case_162, + "run": _smoke_case_171, }, { "operation": "retrieve", "method": "GET", "path": "/v1/agents/{agentId}", - "run": _smoke_case_163, + "run": _smoke_case_172, }, { "operation": "update", "method": "PATCH", "path": "/v1/agents/{agentId}", "label": "required params", - "run": _smoke_case_164, + "run": _smoke_case_173, }, { "operation": "update", "method": "PATCH", "path": "/v1/agents/{agentId}", "label": "all params", - "run": _smoke_case_165, + "run": _smoke_case_174, }, { "operation": "delete", "method": "DELETE", "path": "/v1/agents/{agentId}", - "run": _smoke_case_166, + "run": _smoke_case_175, }, { "operation": "list", "method": "GET", "path": "/v1/agents/templates", "label": "required params", - "run": _smoke_case_167, + "run": _smoke_case_176, }, { "operation": "list", "method": "GET", "path": "/v1/agents/templates", "label": "all params", - "run": _smoke_case_168, + "run": _smoke_case_177, }, { "operation": "retrieve", "method": "GET", "path": "/v1/agents/templates/{templateName}", - "run": _smoke_case_169, + "run": _smoke_case_178, }, { "operation": "list", "method": "GET", "path": "/v1/agents/{agentId}/schedules", "label": "required params", - "run": _smoke_case_170, + "run": _smoke_case_179, }, { "operation": "list", "method": "GET", "path": "/v1/agents/{agentId}/schedules", "label": "all params", - "run": _smoke_case_171, + "run": _smoke_case_180, }, { "operation": "create", "method": "POST", "path": "/v1/agents/{agentId}/schedules", - "run": _smoke_case_172, + "run": _smoke_case_181, }, { "operation": "retrieve", "method": "GET", "path": "/v1/agents/{agentId}/schedules/{scheduleId}", - "run": _smoke_case_173, + "run": _smoke_case_182, }, { "operation": "update", "method": "PATCH", "path": "/v1/agents/{agentId}/schedules/{scheduleId}", - "run": _smoke_case_174, + "run": _smoke_case_183, }, { "operation": "delete", "method": "DELETE", "path": "/v1/agents/{agentId}/schedules/{scheduleId}", - "run": _smoke_case_175, + "run": _smoke_case_184, }, { "operation": "list", "method": "GET", "path": "/v1/agents/{agentId}/triggers", "label": "required params", - "run": _smoke_case_176, + "run": _smoke_case_185, }, { "operation": "list", "method": "GET", "path": "/v1/agents/{agentId}/triggers", "label": "all params", - "run": _smoke_case_177, + "run": _smoke_case_186, }, { "operation": "create", "method": "POST", "path": "/v1/agents/{agentId}/triggers", "label": "required params", - "run": _smoke_case_178, + "run": _smoke_case_187, }, { "operation": "create", "method": "POST", "path": "/v1/agents/{agentId}/triggers", "label": "all params", - "run": _smoke_case_179, + "run": _smoke_case_188, }, { "operation": "retrieve", "method": "GET", "path": "/v1/agents/{agentId}/triggers/{triggerId}", - "run": _smoke_case_180, + "run": _smoke_case_189, }, { "operation": "update", "method": "PATCH", "path": "/v1/agents/{agentId}/triggers/{triggerId}", "label": "required params", - "run": _smoke_case_181, + "run": _smoke_case_190, }, { "operation": "update", "method": "PATCH", "path": "/v1/agents/{agentId}/triggers/{triggerId}", "label": "all params", - "run": _smoke_case_182, + "run": _smoke_case_191, }, { "operation": "delete", "method": "DELETE", "path": "/v1/agents/{agentId}/triggers/{triggerId}", - "run": _smoke_case_183, + "run": _smoke_case_192, }, { "operation": "list", "method": "GET", "path": "/v1/agents/{agentId}/runs", "label": "required params", - "run": _smoke_case_184, + "run": _smoke_case_193, }, { "operation": "list", "method": "GET", "path": "/v1/agents/{agentId}/runs", "label": "all params", - "run": _smoke_case_185, + "run": _smoke_case_194, }, { "operation": "create", "method": "POST", "path": "/v1/agents/{agentId}/runs", "label": "required params", - "run": _smoke_case_186, + "run": _smoke_case_195, }, { "operation": "create", "method": "POST", "path": "/v1/agents/{agentId}/runs", "label": "all params", - "run": _smoke_case_187, + "run": _smoke_case_196, }, { "operation": "retrieve", "method": "GET", "path": "/v1/agents/{agentId}/runs/{runId}", - "run": _smoke_case_188, + "run": _smoke_case_197, }, { "operation": "list", "method": "GET", "path": "/v1/agents/{agentId}/content-revisions", "label": "required params", - "run": _smoke_case_189, + "run": _smoke_case_198, }, { "operation": "list", "method": "GET", "path": "/v1/agents/{agentId}/content-revisions", "label": "all params", - "run": _smoke_case_190, + "run": _smoke_case_199, }, { "operation": "retrieve", "method": "GET", "path": "/v1/agents/{agentId}/content-revisions/{version}", - "run": _smoke_case_191, + "run": _smoke_case_200, }, { "operation": "restore", "method": "POST", "path": "/v1/agents/{agentId}/content-revisions/{version}/restore", - "run": _smoke_case_192, + "run": _smoke_case_201, }, { "operation": "list", "method": "GET", "path": "/v1/repositories", "label": "required params", - "run": _smoke_case_193, + "run": _smoke_case_202, }, { "operation": "list", "method": "GET", "path": "/v1/repositories", "label": "all params", - "run": _smoke_case_194, + "run": _smoke_case_203, }, { "operation": "retrieve", "method": "GET", "path": "/v1/repositories/{repositoryId}", - "run": _smoke_case_195, + "run": _smoke_case_204, }, { "operation": "update", "method": "PATCH", "path": "/v1/repositories/{repositoryId}", "label": "required params", - "run": _smoke_case_196, + "run": _smoke_case_205, }, { "operation": "update", "method": "PATCH", "path": "/v1/repositories/{repositoryId}", "label": "all params", - "run": _smoke_case_197, + "run": _smoke_case_206, }, { "operation": "list", "method": "GET", "path": "/v1/integrations", "label": "required params", - "run": _smoke_case_198, + "run": _smoke_case_207, }, { "operation": "list", "method": "GET", "path": "/v1/integrations", "label": "all params", - "run": _smoke_case_199, + "run": _smoke_case_208, }, { "operation": "create", "method": "POST", "path": "/v1/integrations", - "run": _smoke_case_200, + "run": _smoke_case_209, }, { "operation": "retrieve", "method": "GET", "path": "/v1/integrations/{integrationId}", - "run": _smoke_case_201, + "run": _smoke_case_210, }, { "operation": "update", "method": "PATCH", "path": "/v1/integrations/{integrationId}", "label": "required params", - "run": _smoke_case_202, + "run": _smoke_case_211, }, { "operation": "update", "method": "PATCH", "path": "/v1/integrations/{integrationId}", "label": "all params", - "run": _smoke_case_203, + "run": _smoke_case_212, }, { "operation": "delete", "method": "DELETE", "path": "/v1/integrations/{integrationId}", - "run": _smoke_case_204, + "run": _smoke_case_213, }, { "operation": "authorize", "method": "POST", "path": "/v1/integrations/{integrationId}/authorize", "label": "required params", - "run": _smoke_case_205, + "run": _smoke_case_214, }, { "operation": "authorize", "method": "POST", "path": "/v1/integrations/{integrationId}/authorize", "label": "all params", - "run": _smoke_case_206, + "run": _smoke_case_215, }, { "operation": "test", "method": "POST", "path": "/v1/integrations/{integrationId}/test", - "run": _smoke_case_207, + "run": _smoke_case_216, }, { "operation": "sync", "method": "POST", "path": "/v1/integrations/{integrationId}/sync", - "run": _smoke_case_208, + "run": _smoke_case_217, }, { "operation": "syncAll", "method": "POST", "path": "/v1/integrations/sync", - "run": _smoke_case_209, + "run": _smoke_case_218, }, { "operation": "retrieveSyncStatus", "method": "GET", "path": "/v1/integrations/sync/status", "label": "required params", - "run": _smoke_case_210, + "run": _smoke_case_219, }, { "operation": "retrieveSyncStatus", "method": "GET", "path": "/v1/integrations/sync/status", "label": "all params", - "run": _smoke_case_211, + "run": _smoke_case_220, }, { "operation": "retrieveRateLimit", "method": "GET", "path": "/v1/integrations/{integrationId}/rate-limit", - "run": _smoke_case_212, + "run": _smoke_case_221, }, { "operation": "listSentryEnvironments", "method": "GET", "path": "/v1/integrations/{integrationId}/sentry-environments", "label": "required params", - "run": _smoke_case_213, + "run": _smoke_case_222, }, { "operation": "listSentryEnvironments", "method": "GET", "path": "/v1/integrations/{integrationId}/sentry-environments", "label": "all params", - "run": _smoke_case_214, + "run": _smoke_case_223, }, { "operation": "listSlackChannels", "method": "GET", "path": "/v1/integrations/{integrationId}/slack-channels", "label": "required params", - "run": _smoke_case_215, + "run": _smoke_case_224, }, { "operation": "listSlackChannels", "method": "GET", "path": "/v1/integrations/{integrationId}/slack-channels", "label": "all params", - "run": _smoke_case_216, + "run": _smoke_case_225, }, { "operation": "list", "method": "GET", "path": "/v1/integrations/providers", "label": "required params", - "run": _smoke_case_217, + "run": _smoke_case_226, }, { "operation": "list", "method": "GET", "path": "/v1/integrations/providers", "label": "all params", - "run": _smoke_case_218, + "run": _smoke_case_227, }, { "operation": "discoverSnykOrganizations", "method": "POST", "path": "/v1/integrations/providers/snyk/organizations", "label": "required params", - "run": _smoke_case_219, + "run": _smoke_case_228, }, { "operation": "discoverSnykOrganizations", "method": "POST", "path": "/v1/integrations/providers/snyk/organizations", "label": "all params", - "run": _smoke_case_220, + "run": _smoke_case_229, }, { "operation": "list", "method": "GET", "path": "/v1/integrations/triggers", "label": "required params", - "run": _smoke_case_221, + "run": _smoke_case_230, }, { "operation": "list", "method": "GET", "path": "/v1/integrations/triggers", "label": "all params", - "run": _smoke_case_222, + "run": _smoke_case_231, }, { "operation": "retrieve", "method": "GET", "path": "/v1/integrations/{integrationId}/triggers/{triggerName}", - "run": _smoke_case_223, + "run": _smoke_case_232, }, { "operation": "listFilterOptions", "method": "GET", "path": "/v1/integrations/{integrationId}/triggers/{triggerName}/filter-options/{field}", "label": "required params", - "run": _smoke_case_224, + "run": _smoke_case_233, }, { "operation": "listFilterOptions", "method": "GET", "path": "/v1/integrations/{integrationId}/triggers/{triggerName}/filter-options/{field}", "label": "all params", - "run": _smoke_case_225, + "run": _smoke_case_234, }, { "operation": "retrieve", "method": "GET", "path": "/v1/billing", - "run": _smoke_case_226, + "run": _smoke_case_235, }, { "operation": "listUsage", "method": "GET", "path": "/v1/billing/usage", "label": "required params", - "run": _smoke_case_227, + "run": _smoke_case_236, }, { "operation": "listUsage", "method": "GET", "path": "/v1/billing/usage", "label": "all params", - "run": _smoke_case_228, + "run": _smoke_case_237, + }, + { + "operation": "list", + "method": "GET", + "path": "/v1/folders", + "run": _smoke_case_238, + }, + { + "operation": "create", + "method": "POST", + "path": "/v1/folders", + "label": "required params", + "run": _smoke_case_239, + }, + { + "operation": "create", + "method": "POST", + "path": "/v1/folders", + "label": "all params", + "run": _smoke_case_240, + }, + { + "operation": "update", + "method": "PATCH", + "path": "/v1/folders/{folderId}", + "label": "required params", + "run": _smoke_case_241, + }, + { + "operation": "update", + "method": "PATCH", + "path": "/v1/folders/{folderId}", + "label": "all params", + "run": _smoke_case_242, + }, + { + "operation": "delete", + "method": "DELETE", + "path": "/v1/folders/{folderId}", + "run": _smoke_case_243, }, { "operation": "authorize", "method": "POST", "path": "/v1/live", - "run": _smoke_case_229, + "run": _smoke_case_244, }, { "operation": "connect", "method": "GET", "path": "/v1/live", - "run": _smoke_case_230, + "run": _smoke_case_245, }, ]