Skip to content

Commit 606b295

Browse files
chore: regenerate SDK client core from Otari OpenAPI spec (#72)
Co-authored-by: dpoulopoulos <12573705+dpoulopoulos@users.noreply.github.com>
1 parent c64ad1d commit 606b295

16 files changed

Lines changed: 894 additions & 8 deletions

‎sdk-endpoints.txt‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -190,6 +190,7 @@ GET /api/v1/tool-settings # not yet wrapped
190190
PATCH /api/v1/tool-settings # not yet wrapped
191191
POST /api/v1/tool-settings/{service}/test # not yet wrapped
192192
GET /api/v1/tool-settings/guardrails/profiles # not yet wrapped
193+
GET /api/v1/tool-settings/guardrails/catalog # not yet wrapped
193194
POST /api/v1/search # not yet wrapped
194195
POST /api/v1/search/{search_tool_name} # not yet wrapped
195196
# Search tools (runtime search-tool management)

‎src/otari/_client/__init__.py‎

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,11 +106,14 @@
106106
"AudioSpeechRequest",
107107
"AuthenticatePasskeyRequest",
108108
"AuthorizeResponse",
109+
"BackendType",
109110
"BatchRequestItem",
110111
"BillingMeters",
111112
"BlobResourceContents",
112113
"BudgetResetLogResponse",
113114
"BudgetResponse",
115+
"BuiltInGuardrailCatalog",
116+
"BuiltInGuardrailSpec",
114117
"CCChatCompletionAudio",
115118
"CCChatCompletionMessage",
116119
"CCChatCompletionMessageCustomToolCall",
@@ -211,9 +214,11 @@
211214
"ExternalUsageEvent",
212215
"GatewaySettings",
213216
"GuardrailCatalog",
217+
"GuardrailCategory",
214218
"GuardrailConfig",
215219
"GuardrailParameterSpec",
216220
"GuardrailProfileSpec",
221+
"GuardrailStage",
217222
"HTTPValidationError",
218223
"IMGImage",
219224
"IMGUsage",
@@ -426,6 +431,7 @@
426431
"OrganizationScopedBudgetPublic",
427432
"OrganizationScopedBudgetUpdate",
428433
"OrganizationScopedBudgetsPublic",
434+
"OutputShape",
429435
"PasskeySessionResponse",
430436
"PasswordResponse",
431437
"PendingOrganizationInvitationPublic",
@@ -456,6 +462,7 @@
456462
"RegisterPasskeyRequest",
457463
"RequestPasswordResetRequest",
458464
"RequestPasswordResetResponse",
465+
"RequirementGroup",
459466
"RerankRequest",
460467
"RerankResponse",
461468
"ResendVerificationRequest",
@@ -537,6 +544,7 @@
537544
"ValidationError",
538545
"Value",
539546
"Value1",
547+
"VariantLicense",
540548
"VerifyEmailRequest",
541549
"VerifyEmailResponse",
542550
"WebAuthnCredentialPublic",
@@ -664,11 +672,14 @@
664672
from otari._client.models.audio_speech_request import AudioSpeechRequest as AudioSpeechRequest
665673
from otari._client.models.authenticate_passkey_request import AuthenticatePasskeyRequest as AuthenticatePasskeyRequest
666674
from otari._client.models.authorize_response import AuthorizeResponse as AuthorizeResponse
675+
from otari._client.models.backend_type import BackendType as BackendType
667676
from otari._client.models.batch_request_item import BatchRequestItem as BatchRequestItem
668677
from otari._client.models.billing_meters import BillingMeters as BillingMeters
669678
from otari._client.models.blob_resource_contents import BlobResourceContents as BlobResourceContents
670679
from otari._client.models.budget_reset_log_response import BudgetResetLogResponse as BudgetResetLogResponse
671680
from otari._client.models.budget_response import BudgetResponse as BudgetResponse
681+
from otari._client.models.built_in_guardrail_catalog import BuiltInGuardrailCatalog as BuiltInGuardrailCatalog
682+
from otari._client.models.built_in_guardrail_spec import BuiltInGuardrailSpec as BuiltInGuardrailSpec
672683
from otari._client.models.cc_chat_completion_audio import CCChatCompletionAudio as CCChatCompletionAudio
673684
from otari._client.models.cc_chat_completion_message import CCChatCompletionMessage as CCChatCompletionMessage
674685
from otari._client.models.cc_chat_completion_message_custom_tool_call import CCChatCompletionMessageCustomToolCall as CCChatCompletionMessageCustomToolCall
@@ -769,9 +780,11 @@
769780
from otari._client.models.external_usage_event import ExternalUsageEvent as ExternalUsageEvent
770781
from otari._client.models.gateway_settings import GatewaySettings as GatewaySettings
771782
from otari._client.models.guardrail_catalog import GuardrailCatalog as GuardrailCatalog
783+
from otari._client.models.guardrail_category import GuardrailCategory as GuardrailCategory
772784
from otari._client.models.guardrail_config import GuardrailConfig as GuardrailConfig
773785
from otari._client.models.guardrail_parameter_spec import GuardrailParameterSpec as GuardrailParameterSpec
774786
from otari._client.models.guardrail_profile_spec import GuardrailProfileSpec as GuardrailProfileSpec
787+
from otari._client.models.guardrail_stage import GuardrailStage as GuardrailStage
775788
from otari._client.models.http_validation_error import HTTPValidationError as HTTPValidationError
776789
from otari._client.models.img_image import IMGImage as IMGImage
777790
from otari._client.models.img_usage import IMGUsage as IMGUsage
@@ -984,6 +997,7 @@
984997
from otari._client.models.organization_scoped_budget_public import OrganizationScopedBudgetPublic as OrganizationScopedBudgetPublic
985998
from otari._client.models.organization_scoped_budget_update import OrganizationScopedBudgetUpdate as OrganizationScopedBudgetUpdate
986999
from otari._client.models.organization_scoped_budgets_public import OrganizationScopedBudgetsPublic as OrganizationScopedBudgetsPublic
1000+
from otari._client.models.output_shape import OutputShape as OutputShape
9871001
from otari._client.models.passkey_session_response import PasskeySessionResponse as PasskeySessionResponse
9881002
from otari._client.models.password_response import PasswordResponse as PasswordResponse
9891003
from otari._client.models.pending_organization_invitation_public import PendingOrganizationInvitationPublic as PendingOrganizationInvitationPublic
@@ -1014,6 +1028,7 @@
10141028
from otari._client.models.register_passkey_request import RegisterPasskeyRequest as RegisterPasskeyRequest
10151029
from otari._client.models.request_password_reset_request import RequestPasswordResetRequest as RequestPasswordResetRequest
10161030
from otari._client.models.request_password_reset_response import RequestPasswordResetResponse as RequestPasswordResetResponse
1031+
from otari._client.models.requirement_group import RequirementGroup as RequirementGroup
10171032
from otari._client.models.rerank_request import RerankRequest as RerankRequest
10181033
from otari._client.models.rerank_response import RerankResponse as RerankResponse
10191034
from otari._client.models.resend_verification_request import ResendVerificationRequest as ResendVerificationRequest
@@ -1095,6 +1110,7 @@
10951110
from otari._client.models.validation_error import ValidationError as ValidationError
10961111
from otari._client.models.value import Value as Value
10971112
from otari._client.models.value1 import Value1 as Value1
1113+
from otari._client.models.variant_license import VariantLicense as VariantLicense
10981114
from otari._client.models.verify_email_request import VerifyEmailRequest as VerifyEmailRequest
10991115
from otari._client.models.verify_email_response import VerifyEmailResponse as VerifyEmailResponse
11001116
from otari._client.models.web_authn_credential_public import WebAuthnCredentialPublic as WebAuthnCredentialPublic

‎src/otari/_client/api/auth_api.py‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4104,7 +4104,7 @@ def auth_signup(
41044104
) -> SignupResponse:
41054105
"""Signup
41064106
4107-
Claim a roster identity, or do nothing: the response never says which. No session is minted. A newly claimed identity is hard-blocked from signing in until it verifies, so there is nothing yet to sign it into.
4107+
Claim a roster identity, register a new one, or do nothing: the response never says which. Which of the three this deployment will do is ``open_signup``, published in the bootstrap so the page can say so before anyone types an address. No session is minted. A newly claimed or registered identity is hard-blocked from signing in until it verifies, so there is nothing yet to sign it into.
41084108
41094109
:param signup_request: (required)
41104110
:type signup_request: SignupRequest
@@ -4172,7 +4172,7 @@ def auth_signup_with_http_info(
41724172
) -> ApiResponse[SignupResponse]:
41734173
"""Signup
41744174
4175-
Claim a roster identity, or do nothing: the response never says which. No session is minted. A newly claimed identity is hard-blocked from signing in until it verifies, so there is nothing yet to sign it into.
4175+
Claim a roster identity, register a new one, or do nothing: the response never says which. Which of the three this deployment will do is ``open_signup``, published in the bootstrap so the page can say so before anyone types an address. No session is minted. A newly claimed or registered identity is hard-blocked from signing in until it verifies, so there is nothing yet to sign it into.
41764176
41774177
:param signup_request: (required)
41784178
:type signup_request: SignupRequest
@@ -4240,7 +4240,7 @@ def auth_signup_without_preload_content(
42404240
) -> RESTResponseType:
42414241
"""Signup
42424242
4243-
Claim a roster identity, or do nothing: the response never says which. No session is minted. A newly claimed identity is hard-blocked from signing in until it verifies, so there is nothing yet to sign it into.
4243+
Claim a roster identity, register a new one, or do nothing: the response never says which. Which of the three this deployment will do is ``open_signup``, published in the bootstrap so the page can say so before anyone types an address. No session is minted. A newly claimed or registered identity is hard-blocked from signing in until it verifies, so there is nothing yet to sign it into.
42444244
42454245
:param signup_request: (required)
42464246
:type signup_request: SignupRequest

0 commit comments

Comments
 (0)