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

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions src/otari/_client/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -706,6 +706,7 @@
"ToolChargeLine",
"ToolChoice",
"ToolChoice1",
"ToolCostPublic",
"ToolMeter",
"ToolSettingField",
"ToolSettingsResponse",
Expand Down Expand Up @@ -1484,6 +1485,7 @@
from otari._client.models.tool_charge_line import ToolChargeLine as ToolChargeLine
from otari._client.models.tool_choice import ToolChoice as ToolChoice
from otari._client.models.tool_choice1 import ToolChoice1 as ToolChoice1
from otari._client.models.tool_cost_public import ToolCostPublic as ToolCostPublic
from otari._client.models.tool_meter import ToolMeter as ToolMeter
from otari._client.models.tool_setting_field import ToolSettingField as ToolSettingField
from otari._client.models.tool_settings_response import ToolSettingsResponse as ToolSettingsResponse
Expand Down
6 changes: 3 additions & 3 deletions src/otari/_client/api/oauth_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ def oauth_exchange_token(
) -> FederationTokenResponse:
"""Exchange Token

Exchange an identity token for an access token (the RFC 7523 ``jwt-bearer`` grant). The identity token must match the federation rule ``federation_rule_id`` names and verify against its issuer: one on ``federation_issuers`` for an operator's rule, the one the rule names for a member's. ``organization_id``, ``workspace_id`` and ``service_account_id``, where set, must be the UUIDs of the rule's key's organization and workspace and the key's id. The access token authenticates as that key until ``expires_in`` runs out, the rule is deleted or the key stops passing its checks. Every refusal of the identity token answers 401 ``invalid_grant`` with the same description.
Exchange an identity token for an access token (the RFC 7523 ``jwt-bearer`` grant). The identity token must match the federation rule ``federation_rule_id`` names and verify against its issuer: one on ``federation_issuers`` for an operator's rule, the one the rule names for a member's. ``organization_id``, where set, must be the UUID of the rule's key's organization. ``workspace_id`` and ``service_account_id`` are accepted and ignored, so a client configured for Anthropic needs only its rule and organization changed. The access token authenticates as that key until ``expires_in`` runs out, the rule is deleted or the key stops passing its checks. Every refusal of the identity token answers 401 ``invalid_grant`` with the same description.

:param federation_token_request: (required)
:type federation_token_request: FederationTokenRequest
Expand Down Expand Up @@ -126,7 +126,7 @@ def oauth_exchange_token_with_http_info(
) -> ApiResponse[FederationTokenResponse]:
"""Exchange Token

Exchange an identity token for an access token (the RFC 7523 ``jwt-bearer`` grant). The identity token must match the federation rule ``federation_rule_id`` names and verify against its issuer: one on ``federation_issuers`` for an operator's rule, the one the rule names for a member's. ``organization_id``, ``workspace_id`` and ``service_account_id``, where set, must be the UUIDs of the rule's key's organization and workspace and the key's id. The access token authenticates as that key until ``expires_in`` runs out, the rule is deleted or the key stops passing its checks. Every refusal of the identity token answers 401 ``invalid_grant`` with the same description.
Exchange an identity token for an access token (the RFC 7523 ``jwt-bearer`` grant). The identity token must match the federation rule ``federation_rule_id`` names and verify against its issuer: one on ``federation_issuers`` for an operator's rule, the one the rule names for a member's. ``organization_id``, where set, must be the UUID of the rule's key's organization. ``workspace_id`` and ``service_account_id`` are accepted and ignored, so a client configured for Anthropic needs only its rule and organization changed. The access token authenticates as that key until ``expires_in`` runs out, the rule is deleted or the key stops passing its checks. Every refusal of the identity token answers 401 ``invalid_grant`` with the same description.

:param federation_token_request: (required)
:type federation_token_request: FederationTokenRequest
Expand Down Expand Up @@ -197,7 +197,7 @@ def oauth_exchange_token_without_preload_content(
) -> RESTResponseType:
"""Exchange Token

Exchange an identity token for an access token (the RFC 7523 ``jwt-bearer`` grant). The identity token must match the federation rule ``federation_rule_id`` names and verify against its issuer: one on ``federation_issuers`` for an operator's rule, the one the rule names for a member's. ``organization_id``, ``workspace_id`` and ``service_account_id``, where set, must be the UUIDs of the rule's key's organization and workspace and the key's id. The access token authenticates as that key until ``expires_in`` runs out, the rule is deleted or the key stops passing its checks. Every refusal of the identity token answers 401 ``invalid_grant`` with the same description.
Exchange an identity token for an access token (the RFC 7523 ``jwt-bearer`` grant). The identity token must match the federation rule ``federation_rule_id`` names and verify against its issuer: one on ``federation_issuers`` for an operator's rule, the one the rule names for a member's. ``organization_id``, where set, must be the UUID of the rule's key's organization. ``workspace_id`` and ``service_account_id`` are accepted and ignored, so a client configured for Anthropic needs only its rule and organization changed. The access token authenticates as that key until ``expires_in`` runs out, the rule is deleted or the key stops passing its checks. Every refusal of the identity token answers 401 ``invalid_grant`` with the same description.

:param federation_token_request: (required)
:type federation_token_request: FederationTokenRequest
Expand Down
Loading
Loading