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

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions sdk-endpoints.txt
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,11 @@ GET /api/v1/files # not yet wrapped
GET /api/v1/files/{file_id} # not yet wrapped
GET /api/v1/files/{file_id}/content # not yet wrapped
DELETE /api/v1/files/{file_id} # not yet wrapped
# Decisions: added to the gateway spec, not yet wrapped by any SDK shell. The
# alias exists so TypeSafe's SDK and llama-server clients work unchanged, so an
# otari SDK wrapping decisions would wrap the canonical path only.
POST /api/v1/decisions # not yet wrapped
POST /api/v1/systemone # alias of /api/v1/decisions for TypeSafe-compatible clients

# The Playground, which is the dashboard's own chat page and is excluded on a
# stronger ground than "not yet wrapped": its completion endpoint is authorized
Expand Down Expand Up @@ -120,6 +125,11 @@ POST /api/v1/provider-credentials/{instance}/test # not yet wrapped
# Providers catalog
GET /api/v1/providers # not yet wrapped
GET /api/v1/providers/catalog # not yet wrapped
# Rate limit rules
GET /api/v1/rate-limits # not yet wrapped
POST /api/v1/rate-limits # not yet wrapped
PATCH /api/v1/rate-limits/{name} # not yet wrapped
DELETE /api/v1/rate-limits/{name} # not yet wrapped
# Runtime settings
GET /api/v1/settings # not yet wrapped
PATCH /api/v1/settings # not yet wrapped
Expand All @@ -132,6 +142,7 @@ GET /api/v1/models/discoverable # not yet wrapped
GET /api/v1/models/metadata # not yet wrapped
# Other control-plane extensions of already-covered resources
GET /api/v1/usage/count # not yet wrapped
GET /api/v1/usage/requests/{request_id} # not yet wrapped
POST /api/v1/keys/{key_id}/rotate # not yet wrapped
GET /api/v1/budgets/{budget_id}/reset-logs # not yet wrapped

Expand Down
46 changes: 46 additions & 0 deletions src/otari/_client/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
"BudgetsApi",
"CatalogApi",
"ChatApi",
"DecisionsApi",
"EmbeddingsApi",
"FeedbackApi",
"FilesApi",
Expand All @@ -54,6 +55,7 @@
"PricingApi",
"ProviderKeysApi",
"ProvidersApi",
"RateLimitsApi",
"RerankApi",
"ResponsesApi",
"RoutingApi",
Expand Down Expand Up @@ -197,6 +199,7 @@
"ChatCompletionRequestToolsInner",
"ChatMessageInput",
"CheckVerdictRequest",
"ChoiceQuestion",
"CodeExecutor",
"ConfigField",
"ConfigSearchToolSchema",
Expand Down Expand Up @@ -236,7 +239,13 @@
"CreateSessionRequest",
"CreateStoredProviderRequest",
"CreateUserRequest",
"CriteriaInner",
"CriteriaValue",
"CurrentPricingPage",
"DecisionAnswer",
"DecisionRequest",
"DecisionResponse",
"DecisionUsage",
"DeploymentAdminAccessPublic",
"DeploymentBootstrap",
"DeploymentUserOrganizationPublic",
Expand Down Expand Up @@ -280,6 +289,8 @@
"InFlightResponse",
"Input",
"Input1",
"Instructions",
"Instructions1",
"InvitationPreviewPublic",
"InviteOrganizationMemberRequest",
"InviteOrganizationMemberResultPublic",
Expand Down Expand Up @@ -446,14 +457,18 @@
"MessagesRequest",
"Model",
"Model1",
"ModelFalse",
"ModelListResponse",
"ModelMetadata",
"ModelMetadataResponse",
"ModelObject",
"ModelPricingInfo",
"ModelTrue",
"ModerationRequest",
"ModerationResponse",
"ModerationResult",
"NoulCriteria",
"NoulQuestion",
"OAuthCallbackRequest",
"OAuthSessionResponse",
"OfferingUsage",
Expand Down Expand Up @@ -541,17 +556,23 @@
"ProviderHealthSchema",
"ProviderInfoSchema",
"ProvidersResponse",
"QuestionsValue",
"RRRerankMeta",
"RRRerankResult",
"RRRerankUsage",
"RankRequest",
"RankResponse",
"RateLimitRuleCreate",
"RateLimitRulePublic",
"RateLimitRuleUpdate",
"RateLimitRulesPublic",
"RecordedPool",
"ReencryptProviderCredentialsResponse",
"ReencryptSearchToolsResponse",
"RegisterPasskeyRequest",
"RequestPasswordResetRequest",
"RequestPasswordResetResponse",
"RequestSettlement",
"RequirementGroup",
"RerankRequest",
"RerankResponse",
Expand All @@ -568,6 +589,7 @@
"RotateMasterKeyResponse",
"RouterStatus",
"ScopedBudgetResponse",
"ScoreQuestion",
"ScoredExample",
"SearchProviderSchema",
"SearchRequest",
Expand All @@ -584,6 +606,7 @@
"SignupResponse",
"Source",
"Source1",
"State",
"Stop",
"StoredProviderResponse",
"StoredSearchToolSchema",
Expand Down Expand Up @@ -687,6 +710,7 @@
from otari._client.api.budgets_api import BudgetsApi as BudgetsApi
from otari._client.api.catalog_api import CatalogApi as CatalogApi
from otari._client.api.chat_api import ChatApi as ChatApi
from otari._client.api.decisions_api import DecisionsApi as DecisionsApi
from otari._client.api.embeddings_api import EmbeddingsApi as EmbeddingsApi
from otari._client.api.feedback_api import FeedbackApi as FeedbackApi
from otari._client.api.files_api import FilesApi as FilesApi
Expand All @@ -713,6 +737,7 @@
from otari._client.api.pricing_api import PricingApi as PricingApi
from otari._client.api.provider_keys_api import ProviderKeysApi as ProviderKeysApi
from otari._client.api.providers_api import ProvidersApi as ProvidersApi
from otari._client.api.rate_limits_api import RateLimitsApi as RateLimitsApi
from otari._client.api.rerank_api import RerankApi as RerankApi
from otari._client.api.responses_api import ResponsesApi as ResponsesApi
from otari._client.api.routing_api import RoutingApi as RoutingApi
Expand Down Expand Up @@ -860,6 +885,7 @@
from otari._client.models.chat_completion_request_tools_inner import ChatCompletionRequestToolsInner as ChatCompletionRequestToolsInner
from otari._client.models.chat_message_input import ChatMessageInput as ChatMessageInput
from otari._client.models.check_verdict_request import CheckVerdictRequest as CheckVerdictRequest
from otari._client.models.choice_question import ChoiceQuestion as ChoiceQuestion
from otari._client.models.code_executor import CodeExecutor as CodeExecutor
from otari._client.models.config_field import ConfigField as ConfigField
from otari._client.models.config_search_tool_schema import ConfigSearchToolSchema as ConfigSearchToolSchema
Expand Down Expand Up @@ -899,7 +925,13 @@
from otari._client.models.create_session_request import CreateSessionRequest as CreateSessionRequest
from otari._client.models.create_stored_provider_request import CreateStoredProviderRequest as CreateStoredProviderRequest
from otari._client.models.create_user_request import CreateUserRequest as CreateUserRequest
from otari._client.models.criteria_inner import CriteriaInner as CriteriaInner
from otari._client.models.criteria_value import CriteriaValue as CriteriaValue
from otari._client.models.current_pricing_page import CurrentPricingPage as CurrentPricingPage
from otari._client.models.decision_answer import DecisionAnswer as DecisionAnswer
from otari._client.models.decision_request import DecisionRequest as DecisionRequest
from otari._client.models.decision_response import DecisionResponse as DecisionResponse
from otari._client.models.decision_usage import DecisionUsage as DecisionUsage
from otari._client.models.deployment_admin_access_public import DeploymentAdminAccessPublic as DeploymentAdminAccessPublic
from otari._client.models.deployment_bootstrap import DeploymentBootstrap as DeploymentBootstrap
from otari._client.models.deployment_user_organization_public import DeploymentUserOrganizationPublic as DeploymentUserOrganizationPublic
Expand Down Expand Up @@ -943,6 +975,8 @@
from otari._client.models.in_flight_response import InFlightResponse as InFlightResponse
from otari._client.models.input import Input as Input
from otari._client.models.input1 import Input1 as Input1
from otari._client.models.instructions import Instructions as Instructions
from otari._client.models.instructions1 import Instructions1 as Instructions1
from otari._client.models.invitation_preview_public import InvitationPreviewPublic as InvitationPreviewPublic
from otari._client.models.invite_organization_member_request import InviteOrganizationMemberRequest as InviteOrganizationMemberRequest
from otari._client.models.invite_organization_member_result_public import InviteOrganizationMemberResultPublic as InviteOrganizationMemberResultPublic
Expand Down Expand Up @@ -1109,14 +1143,18 @@
from otari._client.models.messages_request import MessagesRequest as MessagesRequest
from otari._client.models.model import Model as Model
from otari._client.models.model1 import Model1 as Model1
from otari._client.models.model_false import ModelFalse as ModelFalse
from otari._client.models.model_list_response import ModelListResponse as ModelListResponse
from otari._client.models.model_metadata import ModelMetadata as ModelMetadata
from otari._client.models.model_metadata_response import ModelMetadataResponse as ModelMetadataResponse
from otari._client.models.model_object import ModelObject as ModelObject
from otari._client.models.model_pricing_info import ModelPricingInfo as ModelPricingInfo
from otari._client.models.model_true import ModelTrue as ModelTrue
from otari._client.models.moderation_request import ModerationRequest as ModerationRequest
from otari._client.models.moderation_response import ModerationResponse as ModerationResponse
from otari._client.models.moderation_result import ModerationResult as ModerationResult
from otari._client.models.noul_criteria import NoulCriteria as NoulCriteria
from otari._client.models.noul_question import NoulQuestion as NoulQuestion
from otari._client.models.o_auth_callback_request import OAuthCallbackRequest as OAuthCallbackRequest
from otari._client.models.o_auth_session_response import OAuthSessionResponse as OAuthSessionResponse
from otari._client.models.offering_usage import OfferingUsage as OfferingUsage
Expand Down Expand Up @@ -1204,17 +1242,23 @@
from otari._client.models.provider_health_schema import ProviderHealthSchema as ProviderHealthSchema
from otari._client.models.provider_info_schema import ProviderInfoSchema as ProviderInfoSchema
from otari._client.models.providers_response import ProvidersResponse as ProvidersResponse
from otari._client.models.questions_value import QuestionsValue as QuestionsValue
from otari._client.models.rr_rerank_meta import RRRerankMeta as RRRerankMeta
from otari._client.models.rr_rerank_result import RRRerankResult as RRRerankResult
from otari._client.models.rr_rerank_usage import RRRerankUsage as RRRerankUsage
from otari._client.models.rank_request import RankRequest as RankRequest
from otari._client.models.rank_response import RankResponse as RankResponse
from otari._client.models.rate_limit_rule_create import RateLimitRuleCreate as RateLimitRuleCreate
from otari._client.models.rate_limit_rule_public import RateLimitRulePublic as RateLimitRulePublic
from otari._client.models.rate_limit_rule_update import RateLimitRuleUpdate as RateLimitRuleUpdate
from otari._client.models.rate_limit_rules_public import RateLimitRulesPublic as RateLimitRulesPublic
from otari._client.models.recorded_pool import RecordedPool as RecordedPool
from otari._client.models.reencrypt_provider_credentials_response import ReencryptProviderCredentialsResponse as ReencryptProviderCredentialsResponse
from otari._client.models.reencrypt_search_tools_response import ReencryptSearchToolsResponse as ReencryptSearchToolsResponse
from otari._client.models.register_passkey_request import RegisterPasskeyRequest as RegisterPasskeyRequest
from otari._client.models.request_password_reset_request import RequestPasswordResetRequest as RequestPasswordResetRequest
from otari._client.models.request_password_reset_response import RequestPasswordResetResponse as RequestPasswordResetResponse
from otari._client.models.request_settlement import RequestSettlement as RequestSettlement
from otari._client.models.requirement_group import RequirementGroup as RequirementGroup
from otari._client.models.rerank_request import RerankRequest as RerankRequest
from otari._client.models.rerank_response import RerankResponse as RerankResponse
Expand All @@ -1231,6 +1275,7 @@
from otari._client.models.rotate_master_key_response import RotateMasterKeyResponse as RotateMasterKeyResponse
from otari._client.models.router_status import RouterStatus as RouterStatus
from otari._client.models.scoped_budget_response import ScopedBudgetResponse as ScopedBudgetResponse
from otari._client.models.score_question import ScoreQuestion as ScoreQuestion
from otari._client.models.scored_example import ScoredExample as ScoredExample
from otari._client.models.search_provider_schema import SearchProviderSchema as SearchProviderSchema
from otari._client.models.search_request import SearchRequest as SearchRequest
Expand All @@ -1247,6 +1292,7 @@
from otari._client.models.signup_response import SignupResponse as SignupResponse
from otari._client.models.source import Source as Source
from otari._client.models.source1 import Source1 as Source1
from otari._client.models.state import State as State
from otari._client.models.stop import Stop as Stop
from otari._client.models.stored_provider_response import StoredProviderResponse as StoredProviderResponse
from otari._client.models.stored_search_tool_schema import StoredSearchToolSchema as StoredSearchToolSchema
Expand Down
2 changes: 2 additions & 0 deletions src/otari/_client/api/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
from otari._client.api.budgets_api import BudgetsApi
from otari._client.api.catalog_api import CatalogApi
from otari._client.api.chat_api import ChatApi
from otari._client.api.decisions_api import DecisionsApi
from otari._client.api.embeddings_api import EmbeddingsApi
from otari._client.api.feedback_api import FeedbackApi
from otari._client.api.files_api import FilesApi
Expand All @@ -37,6 +38,7 @@
from otari._client.api.pricing_api import PricingApi
from otari._client.api.provider_keys_api import ProviderKeysApi
from otari._client.api.providers_api import ProvidersApi
from otari._client.api.rate_limits_api import RateLimitsApi
from otari._client.api.rerank_api import RerankApi
from otari._client.api.responses_api import ResponsesApi
from otari._client.api.routing_api import RoutingApi
Expand Down
6 changes: 3 additions & 3 deletions src/otari/_client/api/budgets_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -338,7 +338,7 @@ def budgets_delete_budget(
) -> None:
"""Delete Budget

Delete a budget. Refused with 409 while anything still names this budget: a workspace handing it to its members, or a scoped ceiling enforcing it. Both foreign keys are ``RESTRICT``, so the database would refuse either anyway, but as an ``IntegrityError`` reported as \"Database error\" with nothing naming what to go and change. Checked here so the refusal can say which, and where.
Delete a budget the deployment owns. Refused with 409 for an organization's budget: the operator may edit one (``PATCH`` retimes its ceilings) but deleting it would take a budget the tenant defined out from under them. Refused with 409, too, while anything still names this budget: a workspace handing it to its members, or a scoped ceiling enforcing it. The refusal says which, and where. Gateway users assigned to the budget are left uncapped, as the dashboard's confirmation says, and its reset history is deleted with it.

:param budget_id: (required)
:type budget_id: str
Expand Down Expand Up @@ -406,7 +406,7 @@ def budgets_delete_budget_with_http_info(
) -> ApiResponse[None]:
"""Delete Budget

Delete a budget. Refused with 409 while anything still names this budget: a workspace handing it to its members, or a scoped ceiling enforcing it. Both foreign keys are ``RESTRICT``, so the database would refuse either anyway, but as an ``IntegrityError`` reported as \"Database error\" with nothing naming what to go and change. Checked here so the refusal can say which, and where.
Delete a budget the deployment owns. Refused with 409 for an organization's budget: the operator may edit one (``PATCH`` retimes its ceilings) but deleting it would take a budget the tenant defined out from under them. Refused with 409, too, while anything still names this budget: a workspace handing it to its members, or a scoped ceiling enforcing it. The refusal says which, and where. Gateway users assigned to the budget are left uncapped, as the dashboard's confirmation says, and its reset history is deleted with it.

:param budget_id: (required)
:type budget_id: str
Expand Down Expand Up @@ -474,7 +474,7 @@ def budgets_delete_budget_without_preload_content(
) -> RESTResponseType:
"""Delete Budget

Delete a budget. Refused with 409 while anything still names this budget: a workspace handing it to its members, or a scoped ceiling enforcing it. Both foreign keys are ``RESTRICT``, so the database would refuse either anyway, but as an ``IntegrityError`` reported as \"Database error\" with nothing naming what to go and change. Checked here so the refusal can say which, and where.
Delete a budget the deployment owns. Refused with 409 for an organization's budget: the operator may edit one (``PATCH`` retimes its ceilings) but deleting it would take a budget the tenant defined out from under them. Refused with 409, too, while anything still names this budget: a workspace handing it to its members, or a scoped ceiling enforcing it. The refusal says which, and where. Gateway users assigned to the budget are left uncapped, as the dashboard's confirmation says, and its reset history is deleted with it.

:param budget_id: (required)
:type budget_id: str
Expand Down
Loading
Loading