client: regenerate from hanzo-inc/cloud@12a3344d6d (8.5.533)

Co-authored-by: Hanzo Dev <[email protected]>
This commit is contained in:
2026-10-02 21:44:16 +00:00
co-authored by Hanzo Dev
parent 37cdf9313e
commit e6d3482d1a
10 changed files with 131 additions and 9 deletions
+1
View File
@@ -2542,6 +2542,7 @@ pkg/hanzoai/cloud/models/provider_github_search_hit.py
pkg/hanzoai/cloud/models/provider_github_search_out.py
pkg/hanzoai/cloud/models/provider_github_search_req.py
pkg/hanzoai/cloud/models/provider_github_user_complete_in.py
pkg/hanzoai/cloud/models/provider_github_user_connect_in.py
pkg/hanzoai/cloud/models/provider_github_user_connect_out.py
pkg/hanzoai/cloud/models/provider_github_user_disconnect_out.py
pkg/hanzoai/cloud/models/provider_github_user_out.py
+2 -2
View File
@@ -1,4 +1,4 @@
ref=a5a00fba864de3945eb81fc366dca1c2a1803998
sha256=34991d627ff8463a9e6ac8e5e6c23ad2e8bad2e9efcae092241bb8661e444454
ref=12a3344d6d7ccbf5b009fec8c6678795f75ce736
sha256=1e01f07e846bba0651f96d0456e6324af872b1cf4a282246886cccd23c34a189
repo=hanzo-inc/cloud
path=openapi.yaml
+2
View File
@@ -2564,6 +2564,7 @@ __all__ = [
"ProviderGithubSearchOut",
"ProviderGithubSearchReq",
"ProviderGithubUserCompleteIn",
"ProviderGithubUserConnectIn",
"ProviderGithubUserConnectOut",
"ProviderGithubUserDisconnectOut",
"ProviderGithubUserOut",
@@ -5595,6 +5596,7 @@ from hanzoai.cloud.models.provider_github_search_hit import ProviderGithubSearch
from hanzoai.cloud.models.provider_github_search_out import ProviderGithubSearchOut as ProviderGithubSearchOut
from hanzoai.cloud.models.provider_github_search_req import ProviderGithubSearchReq as ProviderGithubSearchReq
from hanzoai.cloud.models.provider_github_user_complete_in import ProviderGithubUserCompleteIn as ProviderGithubUserCompleteIn
from hanzoai.cloud.models.provider_github_user_connect_in import ProviderGithubUserConnectIn as ProviderGithubUserConnectIn
from hanzoai.cloud.models.provider_github_user_connect_out import ProviderGithubUserConnectOut as ProviderGithubUserConnectOut
from hanzoai.cloud.models.provider_github_user_disconnect_out import ProviderGithubUserDisconnectOut as ProviderGithubUserDisconnectOut
from hanzoai.cloud.models.provider_github_user_out import ProviderGithubUserOut as ProviderGithubUserOut
+32 -3
View File
@@ -49,6 +49,7 @@ from hanzoai.cloud.models.provider_github_repos_out import ProviderGithubReposOu
from hanzoai.cloud.models.provider_github_search_out import ProviderGithubSearchOut
from hanzoai.cloud.models.provider_github_search_req import ProviderGithubSearchReq
from hanzoai.cloud.models.provider_github_user_complete_in import ProviderGithubUserCompleteIn
from hanzoai.cloud.models.provider_github_user_connect_in import ProviderGithubUserConnectIn
from hanzoai.cloud.models.provider_github_user_connect_out import ProviderGithubUserConnectOut
from hanzoai.cloud.models.provider_github_user_disconnect_out import ProviderGithubUserDisconnectOut
from hanzoai.cloud.models.provider_github_user_out import ProviderGithubUserOut
@@ -4795,7 +4796,7 @@ class ProviderApi:
) -> None:
"""Is where GitHub returns the person.
Is where GitHub returns the person. It verifies the state, burns its nonce, and parks the code for the console to complete; it exchanges nothing. PUBLIC and state-authed, like every OAuth return, and raw because it answers a browser with a redirect.
Is where GitHub returns the person. It verifies the state, burns its nonce, and parks the code for the return page to complete; it exchanges nothing. PUBLIC and state-authed, like every OAuth return, and raw because it answers a browser with a redirect.
:param _request_timeout: timeout setting for this request. If one
number provided, it will be total request
@@ -4857,7 +4858,7 @@ class ProviderApi:
) -> ApiResponse[None]:
"""Is where GitHub returns the person.
Is where GitHub returns the person. It verifies the state, burns its nonce, and parks the code for the console to complete; it exchanges nothing. PUBLIC and state-authed, like every OAuth return, and raw because it answers a browser with a redirect.
Is where GitHub returns the person. It verifies the state, burns its nonce, and parks the code for the return page to complete; it exchanges nothing. PUBLIC and state-authed, like every OAuth return, and raw because it answers a browser with a redirect.
:param _request_timeout: timeout setting for this request. If one
number provided, it will be total request
@@ -4919,7 +4920,7 @@ class ProviderApi:
) -> RESTResponseType:
"""Is where GitHub returns the person.
Is where GitHub returns the person. It verifies the state, burns its nonce, and parks the code for the console to complete; it exchanges nothing. PUBLIC and state-authed, like every OAuth return, and raw because it answers a browser with a redirect.
Is where GitHub returns the person. It verifies the state, burns its nonce, and parks the code for the return page to complete; it exchanges nothing. PUBLIC and state-authed, like every OAuth return, and raw because it answers a browser with a redirect.
:param _request_timeout: timeout setting for this request. If one
number provided, it will be total request
@@ -13385,6 +13386,7 @@ class ProviderApi:
@validate_call
def post_provider_github_user_connect(
self,
provider_github_user_connect_in: ProviderGithubUserConnectIn,
_request_timeout: Union[
None,
Annotated[StrictFloat, Field(gt=0)],
@@ -13402,6 +13404,8 @@ class ProviderApi:
Begins connecting the caller's own GitHub account: it answers the App's authorization page, carrying a state signed for this org and this person. Every member may connect their own; it grants nothing the person does not already hold on GitHub.
:param provider_github_user_connect_in: (required)
:type provider_github_user_connect_in: ProviderGithubUserConnectIn
:param _request_timeout: timeout setting for this request. If one
number provided, it will be total request
timeout. It can also be a pair (tuple) of
@@ -13425,6 +13429,7 @@ class ProviderApi:
""" # noqa: E501
_param = self._post_provider_github_user_connect_serialize(
provider_github_user_connect_in=provider_github_user_connect_in,
_request_auth=_request_auth,
_content_type=_content_type,
_headers=_headers,
@@ -13448,6 +13453,7 @@ class ProviderApi:
@validate_call
def post_provider_github_user_connect_with_http_info(
self,
provider_github_user_connect_in: ProviderGithubUserConnectIn,
_request_timeout: Union[
None,
Annotated[StrictFloat, Field(gt=0)],
@@ -13465,6 +13471,8 @@ class ProviderApi:
Begins connecting the caller's own GitHub account: it answers the App's authorization page, carrying a state signed for this org and this person. Every member may connect their own; it grants nothing the person does not already hold on GitHub.
:param provider_github_user_connect_in: (required)
:type provider_github_user_connect_in: ProviderGithubUserConnectIn
:param _request_timeout: timeout setting for this request. If one
number provided, it will be total request
timeout. It can also be a pair (tuple) of
@@ -13488,6 +13496,7 @@ class ProviderApi:
""" # noqa: E501
_param = self._post_provider_github_user_connect_serialize(
provider_github_user_connect_in=provider_github_user_connect_in,
_request_auth=_request_auth,
_content_type=_content_type,
_headers=_headers,
@@ -13511,6 +13520,7 @@ class ProviderApi:
@validate_call
def post_provider_github_user_connect_without_preload_content(
self,
provider_github_user_connect_in: ProviderGithubUserConnectIn,
_request_timeout: Union[
None,
Annotated[StrictFloat, Field(gt=0)],
@@ -13528,6 +13538,8 @@ class ProviderApi:
Begins connecting the caller's own GitHub account: it answers the App's authorization page, carrying a state signed for this org and this person. Every member may connect their own; it grants nothing the person does not already hold on GitHub.
:param provider_github_user_connect_in: (required)
:type provider_github_user_connect_in: ProviderGithubUserConnectIn
:param _request_timeout: timeout setting for this request. If one
number provided, it will be total request
timeout. It can also be a pair (tuple) of
@@ -13551,6 +13563,7 @@ class ProviderApi:
""" # noqa: E501
_param = self._post_provider_github_user_connect_serialize(
provider_github_user_connect_in=provider_github_user_connect_in,
_request_auth=_request_auth,
_content_type=_content_type,
_headers=_headers,
@@ -13569,6 +13582,7 @@ class ProviderApi:
def _post_provider_github_user_connect_serialize(
self,
provider_github_user_connect_in,
_request_auth,
_content_type,
_headers,
@@ -13594,6 +13608,8 @@ class ProviderApi:
# process the header parameters
# process the form parameters
# process the body parameter
if provider_github_user_connect_in is not None:
_body_params = provider_github_user_connect_in
# set the HTTP header `Accept`
@@ -13605,6 +13621,19 @@ class ProviderApi:
]
)
# set the HTTP header `Content-Type`
if _content_type:
_header_params['Content-Type'] = _content_type
else:
_default_content_type = (
self.api_client.select_header_content_type(
[
'application/json'
]
)
)
if _default_content_type is not None:
_header_params['Content-Type'] = _default_content_type
# authentication setting
_auth_settings: List[str] = [
+1
View File
@@ -2427,6 +2427,7 @@ from hanzoai.cloud.models.provider_github_search_hit import ProviderGithubSearch
from hanzoai.cloud.models.provider_github_search_out import ProviderGithubSearchOut
from hanzoai.cloud.models.provider_github_search_req import ProviderGithubSearchReq
from hanzoai.cloud.models.provider_github_user_complete_in import ProviderGithubUserCompleteIn
from hanzoai.cloud.models.provider_github_user_connect_in import ProviderGithubUserConnectIn
from hanzoai.cloud.models.provider_github_user_connect_out import ProviderGithubUserConnectOut
from hanzoai.cloud.models.provider_github_user_disconnect_out import ProviderGithubUserDisconnectOut
from hanzoai.cloud.models.provider_github_user_out import ProviderGithubUserOut
@@ -29,8 +29,9 @@ class ProviderConnectIn(BaseModel):
account_id: Optional[StrictStr] = Field(default=None, description="AccountID is the provider account the credential should be scoped to, for the providers whose Verify needs one (Cloudflare). Ignored by the OAuth path.", alias="accountId")
fields: Optional[Dict[str, StrictStr]] = Field(default=None, description="Fields are the named inputs of a credential connector whose form is more than one key (the connector's published fields). Their presence selects the credential path exactly as Token's does. Never logged or echoed.")
provider: Optional[StrictStr] = Field(default=None, description="Provider is the connector's registry id, from the :provider path segment.")
var_return: Optional[StrictStr] = Field(default=None, description="Return is the page the OAuth callback sends the person back to, with connected=<provider>&account=<label> or error=<provider>&reason=<why> added to its query. It must name one of this deployment's return pages (on api.hanzo.ai: https://hanzo.ai/?at=-/settings/integrations, https://console.hanzo.ai/connectors, https://platform.hanzo.ai/connectors); anything else, or nothing, returns to the console's /connectors. Ignored by the credential path.", alias="return")
token: Optional[StrictStr] = Field(default=None, description="Token is the customer's provider credential. Its PRESENCE — not its value — is what selects the apikey seal over the OAuth flow for a provider that offers both: {\"token\":\"…\"}, even empty, is an apikey attempt (→ verify, which answers the \"token required\" 400 on an empty value), while a body with no token key (the console Connect button, `hanzo connector add` with no --token) starts OAuth. Read on STDIN by the CLI, never argv; never logged or echoed.")
__properties: ClassVar[List[str]] = ["accountId", "fields", "provider", "token"]
__properties: ClassVar[List[str]] = ["accountId", "fields", "provider", "return", "token"]
model_config = ConfigDict(
populate_by_name=True,
@@ -86,6 +87,7 @@ class ProviderConnectIn(BaseModel):
"accountId": obj.get("accountId"),
"fields": obj.get("fields"),
"provider": obj.get("provider"),
"return": obj.get("return"),
"token": obj.get("token")
})
return _obj
@@ -0,0 +1,87 @@
# coding: utf-8
"""
Hanzo Cloud API
The Hanzo Cloud API as a customer calls it: every operation under /v1/ except the operator's admin product, relay routes, legacy spellings and capabilities still reached by flag. Tagged by product: the first path segment after /v1/.
The version of the OpenAPI document: v1
Generated by OpenAPI Generator (https://openapi-generator.tech)
Do not edit the class manually.
""" # noqa: E501
from __future__ import annotations
import pprint
import re # noqa: F401
import json
from pydantic import BaseModel, ConfigDict, Field, StrictStr
from typing import Any, ClassVar, Dict, List, Optional
from typing import Optional, Set
from typing_extensions import Self
class ProviderGithubUserConnectIn(BaseModel):
"""
ProviderGithubUserConnectIn
""" # noqa: E501
var_return: Optional[StrictStr] = Field(default=None, description="Return is the page the callback sends the person back to, with complete=github&grant=<id> (or error=github&reason=<why>) added to its query. It must name one of this deployment's return pages (on api.hanzo.ai: https://hanzo.ai/?at=-/settings/integrations, https://console.hanzo.ai/connectors, https://platform.hanzo.ai/connectors); anything else, or nothing, returns to the console's /connectors.", alias="return")
__properties: ClassVar[List[str]] = ["return"]
model_config = ConfigDict(
populate_by_name=True,
validate_assignment=True,
protected_namespaces=(),
)
def to_str(self) -> str:
"""Returns the string representation of the model using alias"""
return pprint.pformat(self.model_dump(by_alias=True))
def to_json(self) -> str:
"""Returns the JSON representation of the model using alias"""
# TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
return json.dumps(self.to_dict())
@classmethod
def from_json(cls, json_str: str) -> Optional[Self]:
"""Create an instance of ProviderGithubUserConnectIn from a JSON string"""
return cls.from_dict(json.loads(json_str))
def to_dict(self) -> Dict[str, Any]:
"""Return the dictionary representation of the model using alias.
This has the following differences from calling pydantic's
`self.model_dump(by_alias=True)`:
* `None` is only added to the output dict for nullable fields that
were set at model initialization. Other fields with value `None`
are ignored.
"""
excluded_fields: Set[str] = set([
])
_dict = self.model_dump(
by_alias=True,
exclude=excluded_fields,
exclude_none=True,
)
return _dict
@classmethod
def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
"""Create an instance of ProviderGithubUserConnectIn from a dict"""
if obj is None:
return None
if not isinstance(obj, dict):
return cls.model_validate(obj)
_obj = cls.model_validate({
"return": obj.get("return")
})
return _obj
@@ -26,7 +26,7 @@ class ProviderGithubUserConnectOut(BaseModel):
"""
ProviderGithubUserConnectOut
""" # noqa: E501
authorize_url: Optional[StrictStr] = Field(default=None, description="AuthorizeURL is GitHub's authorization page for the App. GitHub returns the browser to the callback, which parks the answer and sends it on to the console at /connectors?complete=github&grant=<id>; the console then POSTs that grant to /v1/provider/github/user/complete.", alias="authorizeUrl")
authorize_url: Optional[StrictStr] = Field(default=None, description="AuthorizeURL is GitHub's authorization page for the App. GitHub returns the browser to the callback, which parks the answer and sends it on with complete=github&grant=<id> — to the return page the connect named, or the console's /connectors — and that page POSTs the grant to /v1/provider/github/user/complete.", alias="authorizeUrl")
__properties: ClassVar[List[str]] = ["authorizeUrl"]
model_config = ConfigDict(
+1 -1
View File
@@ -1,6 +1,6 @@
[project]
name = "hanzoai"
version = "8.5.532"
version = "8.5.533"
description = "The official Python library for the Hanzo API"
dynamic = ["readme"]
license = "Apache-2.0"
Generated
+1 -1
View File
@@ -2252,7 +2252,7 @@ wheels = [
[[package]]
name = "hanzoai"
version = "8.5.530"
version = "8.5.532"
source = { editable = "." }
dependencies = [
{ name = "pydantic" },