windmill-api 1.478.1__py3-none-any.whl → 1.479.0__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of windmill-api might be problematic. Click here for more details.
- windmill_api/api/app/list_app_paths_from_workspace_runnable.py +176 -0
- windmill_api/api/git_sync/__init__.py +0 -0
- windmill_api/api/git_sync/delete_from_workspace.py +107 -0
- windmill_api/api/git_sync/export_installation.py +174 -0
- windmill_api/api/git_sync/get_global_connected_repositories.py +131 -0
- windmill_api/api/git_sync/import_installation.py +111 -0
- windmill_api/api/{workspace/set_automatic_billing.py → git_sync/install_from_workspace.py} +11 -9
- windmill_api/api/script/list_script_paths_from_workspace_runnable.py +161 -0
- windmill_api/api/workspace/get_copilot_info.py +65 -6
- windmill_api/api/workspace/get_github_app_token.py +170 -0
- windmill_api/models/ai_config.py +107 -0
- windmill_api/models/{get_settings_response_200_ai_resource.py → ai_config_code_completion_model.py} +15 -15
- windmill_api/models/{get_settings_response_200_ai_resource_provider.py → ai_config_code_completion_model_provider.py} +2 -1
- windmill_api/models/{edit_copilot_config_json_body_ai_resource.py → ai_config_default_model.py} +15 -15
- windmill_api/models/{edit_copilot_config_json_body_ai_resource_provider.py → ai_config_default_model_provider.py} +2 -1
- windmill_api/models/ai_config_providers.py +60 -0
- windmill_api/models/ai_config_providers_additional_property.py +65 -0
- windmill_api/models/ai_provider.py +1 -0
- windmill_api/models/ai_provider_config.py +65 -0
- windmill_api/models/{ai_resource.py → ai_provider_model.py} +15 -15
- windmill_api/models/{ai_resource_provider.py → ai_provider_model_provider.py} +2 -1
- windmill_api/models/archive_script_by_hash_response_200_language.py +2 -0
- windmill_api/models/authentication_method.py +13 -0
- windmill_api/models/completed_job_language.py +2 -0
- windmill_api/models/create_http_trigger_json_body.py +16 -6
- windmill_api/models/create_http_trigger_json_body_authentication_method.py +13 -0
- windmill_api/models/create_schedule_json_body.py +8 -0
- windmill_api/models/create_script_json_body_language.py +2 -0
- windmill_api/models/delete_completed_job_response_200_language.py +2 -0
- windmill_api/models/delete_script_by_hash_response_200_language.py +2 -0
- windmill_api/models/edit_copilot_config_json_body.py +50 -30
- windmill_api/models/edit_copilot_config_json_body_code_completion_model.py +69 -0
- windmill_api/models/edit_copilot_config_json_body_code_completion_model_provider.py +16 -0
- windmill_api/models/edit_copilot_config_json_body_default_model.py +67 -0
- windmill_api/models/edit_copilot_config_json_body_default_model_provider.py +16 -0
- windmill_api/models/edit_copilot_config_json_body_providers.py +66 -0
- windmill_api/models/edit_copilot_config_json_body_providers_additional_property.py +65 -0
- windmill_api/models/edit_http_trigger.py +16 -6
- windmill_api/models/edit_http_trigger_authentication_method.py +13 -0
- windmill_api/models/edit_schedule.py +8 -0
- windmill_api/models/{set_automatic_billing_json_body.py → export_installation_response_200.py} +13 -23
- windmill_api/models/extended_jobs_jobs_item_type_0_language.py +2 -0
- windmill_api/models/extended_jobs_jobs_item_type_1_language.py +2 -0
- windmill_api/models/get_completed_job_response_200_language.py +2 -0
- windmill_api/models/get_copilot_info_response_200.py +111 -0
- windmill_api/models/get_copilot_info_response_200_code_completion_model.py +69 -0
- windmill_api/models/get_copilot_info_response_200_code_completion_model_provider.py +16 -0
- windmill_api/models/get_copilot_info_response_200_default_model.py +67 -0
- windmill_api/models/get_copilot_info_response_200_default_model_provider.py +16 -0
- windmill_api/models/get_copilot_info_response_200_providers.py +66 -0
- windmill_api/models/get_copilot_info_response_200_providers_additional_property.py +65 -0
- windmill_api/models/get_github_app_token_json_body.py +58 -0
- windmill_api/models/get_github_app_token_response_200.py +58 -0
- windmill_api/models/get_global_connected_repositories_response_200_item.py +104 -0
- windmill_api/models/get_global_connected_repositories_response_200_item_repositories_item.py +65 -0
- windmill_api/models/get_http_trigger_response_200.py +17 -6
- windmill_api/models/get_http_trigger_response_200_authentication_method.py +13 -0
- windmill_api/models/get_job_response_200_type_0_language.py +2 -0
- windmill_api/models/get_job_response_200_type_1_language.py +2 -0
- windmill_api/models/get_premium_info_response_200.py +7 -14
- windmill_api/models/get_schedule_response_200.py +8 -0
- windmill_api/models/get_script_by_hash_response_200_language.py +2 -0
- windmill_api/models/get_script_by_path_response_200_language.py +2 -0
- windmill_api/models/get_script_by_path_with_draft_response_200_draft_language.py +2 -0
- windmill_api/models/get_script_by_path_with_draft_response_200_language.py +2 -0
- windmill_api/models/get_settings_response_200.py +16 -39
- windmill_api/models/get_settings_response_200_ai_config.py +113 -0
- windmill_api/models/get_settings_response_200_ai_config_code_completion_model.py +69 -0
- windmill_api/models/get_settings_response_200_ai_config_code_completion_model_provider.py +16 -0
- windmill_api/models/get_settings_response_200_ai_config_default_model.py +69 -0
- windmill_api/models/get_settings_response_200_ai_config_default_model_provider.py +16 -0
- windmill_api/models/get_settings_response_200_ai_config_providers.py +66 -0
- windmill_api/models/get_settings_response_200_ai_config_providers_additional_property.py +65 -0
- windmill_api/models/get_suspended_job_flow_response_200_job_type_0_language.py +2 -0
- windmill_api/models/get_suspended_job_flow_response_200_job_type_1_language.py +2 -0
- windmill_api/models/github_installations_item.py +98 -0
- windmill_api/models/github_installations_item_repositories_item.py +65 -0
- windmill_api/models/http_trigger.py +17 -6
- windmill_api/models/http_trigger_authentication_method.py +13 -0
- windmill_api/models/import_installation_json_body.py +58 -0
- windmill_api/models/install_from_workspace_json_body.py +65 -0
- windmill_api/models/job_type_0_language.py +2 -0
- windmill_api/models/job_type_1_language.py +2 -0
- windmill_api/models/list_app_paths_from_workspace_runnable_runnable_kind.py +9 -0
- windmill_api/models/list_completed_jobs_response_200_item_language.py +2 -0
- windmill_api/models/list_extended_jobs_response_200_jobs_item_type_0_language.py +2 -0
- windmill_api/models/list_extended_jobs_response_200_jobs_item_type_1_language.py +2 -0
- windmill_api/models/list_http_triggers_response_200_item.py +19 -6
- windmill_api/models/list_http_triggers_response_200_item_authentication_method.py +13 -0
- windmill_api/models/list_jobs_response_200_item_type_0_language.py +2 -0
- windmill_api/models/list_jobs_response_200_item_type_1_language.py +2 -0
- windmill_api/models/list_queue_response_200_item_language.py +2 -0
- windmill_api/models/list_schedules_response_200_item.py +8 -0
- windmill_api/models/list_schedules_with_jobs_response_200_item.py +8 -0
- windmill_api/models/list_scripts_response_200_item_language.py +2 -0
- windmill_api/models/new_http_trigger.py +16 -6
- windmill_api/models/new_http_trigger_authentication_method.py +13 -0
- windmill_api/models/new_schedule.py +8 -0
- windmill_api/models/new_script_language.py +2 -0
- windmill_api/models/new_script_with_draft_draft_language.py +2 -0
- windmill_api/models/new_script_with_draft_language.py +2 -0
- windmill_api/models/preview_language.py +2 -0
- windmill_api/models/queued_job_language.py +2 -0
- windmill_api/models/raw_script_for_dependencies_language.py +2 -0
- windmill_api/models/run_raw_script_dependencies_json_body_raw_scripts_item_language.py +2 -0
- windmill_api/models/run_script_preview_json_body_language.py +2 -0
- windmill_api/models/schedule.py +8 -0
- windmill_api/models/schedule_w_jobs.py +8 -0
- windmill_api/models/script_lang.py +2 -0
- windmill_api/models/script_language.py +2 -0
- windmill_api/models/update_http_trigger_json_body.py +16 -6
- windmill_api/models/update_http_trigger_json_body_authentication_method.py +13 -0
- windmill_api/models/update_schedule_json_body.py +8 -0
- windmill_api/models/workspace_github_installation.py +65 -0
- {windmill_api-1.478.1.dist-info → windmill_api-1.479.0.dist-info}/METADATA +1 -1
- {windmill_api-1.478.1.dist-info → windmill_api-1.479.0.dist-info}/RECORD +118 -68
- {windmill_api-1.478.1.dist-info → windmill_api-1.479.0.dist-info}/LICENSE +0 -0
- {windmill_api-1.478.1.dist-info → windmill_api-1.479.0.dist-info}/WHEEL +0 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
from typing import TYPE_CHECKING, Any, Dict, List, Type, TypeVar, Union
|
|
1
|
+
from typing import TYPE_CHECKING, Any, Dict, List, Type, TypeVar, Union
|
|
2
2
|
|
|
3
3
|
from attrs import define as _attrs_define
|
|
4
4
|
from attrs import field as _attrs_field
|
|
@@ -6,7 +6,11 @@ from attrs import field as _attrs_field
|
|
|
6
6
|
from ..types import UNSET, Unset
|
|
7
7
|
|
|
8
8
|
if TYPE_CHECKING:
|
|
9
|
-
from ..models.
|
|
9
|
+
from ..models.edit_copilot_config_json_body_code_completion_model import (
|
|
10
|
+
EditCopilotConfigJsonBodyCodeCompletionModel,
|
|
11
|
+
)
|
|
12
|
+
from ..models.edit_copilot_config_json_body_default_model import EditCopilotConfigJsonBodyDefaultModel
|
|
13
|
+
from ..models.edit_copilot_config_json_body_providers import EditCopilotConfigJsonBodyProviders
|
|
10
14
|
|
|
11
15
|
|
|
12
16
|
T = TypeVar("T", bound="EditCopilotConfigJsonBody")
|
|
@@ -16,34 +20,36 @@ T = TypeVar("T", bound="EditCopilotConfigJsonBody")
|
|
|
16
20
|
class EditCopilotConfigJsonBody:
|
|
17
21
|
"""
|
|
18
22
|
Attributes:
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
code_completion_model (Union[Unset,
|
|
23
|
+
providers (Union[Unset, EditCopilotConfigJsonBodyProviders]):
|
|
24
|
+
default_model (Union[Unset, EditCopilotConfigJsonBodyDefaultModel]):
|
|
25
|
+
code_completion_model (Union[Unset, EditCopilotConfigJsonBodyCodeCompletionModel]):
|
|
22
26
|
"""
|
|
23
27
|
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
code_completion_model: Union[Unset,
|
|
28
|
+
providers: Union[Unset, "EditCopilotConfigJsonBodyProviders"] = UNSET
|
|
29
|
+
default_model: Union[Unset, "EditCopilotConfigJsonBodyDefaultModel"] = UNSET
|
|
30
|
+
code_completion_model: Union[Unset, "EditCopilotConfigJsonBodyCodeCompletionModel"] = UNSET
|
|
27
31
|
additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict)
|
|
28
32
|
|
|
29
33
|
def to_dict(self) -> Dict[str, Any]:
|
|
30
|
-
|
|
34
|
+
providers: Union[Unset, Dict[str, Any]] = UNSET
|
|
35
|
+
if not isinstance(self.providers, Unset):
|
|
36
|
+
providers = self.providers.to_dict()
|
|
31
37
|
|
|
32
|
-
|
|
33
|
-
if not isinstance(self.
|
|
34
|
-
|
|
38
|
+
default_model: Union[Unset, Dict[str, Any]] = UNSET
|
|
39
|
+
if not isinstance(self.default_model, Unset):
|
|
40
|
+
default_model = self.default_model.to_dict()
|
|
35
41
|
|
|
36
|
-
code_completion_model =
|
|
42
|
+
code_completion_model: Union[Unset, Dict[str, Any]] = UNSET
|
|
43
|
+
if not isinstance(self.code_completion_model, Unset):
|
|
44
|
+
code_completion_model = self.code_completion_model.to_dict()
|
|
37
45
|
|
|
38
46
|
field_dict: Dict[str, Any] = {}
|
|
39
47
|
field_dict.update(self.additional_properties)
|
|
40
|
-
field_dict.update(
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
if ai_resource is not UNSET:
|
|
46
|
-
field_dict["ai_resource"] = ai_resource
|
|
48
|
+
field_dict.update({})
|
|
49
|
+
if providers is not UNSET:
|
|
50
|
+
field_dict["providers"] = providers
|
|
51
|
+
if default_model is not UNSET:
|
|
52
|
+
field_dict["default_model"] = default_model
|
|
47
53
|
if code_completion_model is not UNSET:
|
|
48
54
|
field_dict["code_completion_model"] = code_completion_model
|
|
49
55
|
|
|
@@ -51,23 +57,37 @@ class EditCopilotConfigJsonBody:
|
|
|
51
57
|
|
|
52
58
|
@classmethod
|
|
53
59
|
def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
|
|
54
|
-
from ..models.
|
|
60
|
+
from ..models.edit_copilot_config_json_body_code_completion_model import (
|
|
61
|
+
EditCopilotConfigJsonBodyCodeCompletionModel,
|
|
62
|
+
)
|
|
63
|
+
from ..models.edit_copilot_config_json_body_default_model import EditCopilotConfigJsonBodyDefaultModel
|
|
64
|
+
from ..models.edit_copilot_config_json_body_providers import EditCopilotConfigJsonBodyProviders
|
|
55
65
|
|
|
56
66
|
d = src_dict.copy()
|
|
57
|
-
|
|
67
|
+
_providers = d.pop("providers", UNSET)
|
|
68
|
+
providers: Union[Unset, EditCopilotConfigJsonBodyProviders]
|
|
69
|
+
if isinstance(_providers, Unset):
|
|
70
|
+
providers = UNSET
|
|
71
|
+
else:
|
|
72
|
+
providers = EditCopilotConfigJsonBodyProviders.from_dict(_providers)
|
|
58
73
|
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
if isinstance(
|
|
62
|
-
|
|
74
|
+
_default_model = d.pop("default_model", UNSET)
|
|
75
|
+
default_model: Union[Unset, EditCopilotConfigJsonBodyDefaultModel]
|
|
76
|
+
if isinstance(_default_model, Unset):
|
|
77
|
+
default_model = UNSET
|
|
63
78
|
else:
|
|
64
|
-
|
|
79
|
+
default_model = EditCopilotConfigJsonBodyDefaultModel.from_dict(_default_model)
|
|
65
80
|
|
|
66
|
-
|
|
81
|
+
_code_completion_model = d.pop("code_completion_model", UNSET)
|
|
82
|
+
code_completion_model: Union[Unset, EditCopilotConfigJsonBodyCodeCompletionModel]
|
|
83
|
+
if isinstance(_code_completion_model, Unset):
|
|
84
|
+
code_completion_model = UNSET
|
|
85
|
+
else:
|
|
86
|
+
code_completion_model = EditCopilotConfigJsonBodyCodeCompletionModel.from_dict(_code_completion_model)
|
|
67
87
|
|
|
68
88
|
edit_copilot_config_json_body = cls(
|
|
69
|
-
|
|
70
|
-
|
|
89
|
+
providers=providers,
|
|
90
|
+
default_model=default_model,
|
|
71
91
|
code_completion_model=code_completion_model,
|
|
72
92
|
)
|
|
73
93
|
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
from typing import Any, Dict, List, Type, TypeVar
|
|
2
|
+
|
|
3
|
+
from attrs import define as _attrs_define
|
|
4
|
+
from attrs import field as _attrs_field
|
|
5
|
+
|
|
6
|
+
from ..models.edit_copilot_config_json_body_code_completion_model_provider import (
|
|
7
|
+
EditCopilotConfigJsonBodyCodeCompletionModelProvider,
|
|
8
|
+
)
|
|
9
|
+
|
|
10
|
+
T = TypeVar("T", bound="EditCopilotConfigJsonBodyCodeCompletionModel")
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
@_attrs_define
|
|
14
|
+
class EditCopilotConfigJsonBodyCodeCompletionModel:
|
|
15
|
+
"""
|
|
16
|
+
Attributes:
|
|
17
|
+
model (str):
|
|
18
|
+
provider (EditCopilotConfigJsonBodyCodeCompletionModelProvider):
|
|
19
|
+
"""
|
|
20
|
+
|
|
21
|
+
model: str
|
|
22
|
+
provider: EditCopilotConfigJsonBodyCodeCompletionModelProvider
|
|
23
|
+
additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict)
|
|
24
|
+
|
|
25
|
+
def to_dict(self) -> Dict[str, Any]:
|
|
26
|
+
model = self.model
|
|
27
|
+
provider = self.provider.value
|
|
28
|
+
|
|
29
|
+
field_dict: Dict[str, Any] = {}
|
|
30
|
+
field_dict.update(self.additional_properties)
|
|
31
|
+
field_dict.update(
|
|
32
|
+
{
|
|
33
|
+
"model": model,
|
|
34
|
+
"provider": provider,
|
|
35
|
+
}
|
|
36
|
+
)
|
|
37
|
+
|
|
38
|
+
return field_dict
|
|
39
|
+
|
|
40
|
+
@classmethod
|
|
41
|
+
def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
|
|
42
|
+
d = src_dict.copy()
|
|
43
|
+
model = d.pop("model")
|
|
44
|
+
|
|
45
|
+
provider = EditCopilotConfigJsonBodyCodeCompletionModelProvider(d.pop("provider"))
|
|
46
|
+
|
|
47
|
+
edit_copilot_config_json_body_code_completion_model = cls(
|
|
48
|
+
model=model,
|
|
49
|
+
provider=provider,
|
|
50
|
+
)
|
|
51
|
+
|
|
52
|
+
edit_copilot_config_json_body_code_completion_model.additional_properties = d
|
|
53
|
+
return edit_copilot_config_json_body_code_completion_model
|
|
54
|
+
|
|
55
|
+
@property
|
|
56
|
+
def additional_keys(self) -> List[str]:
|
|
57
|
+
return list(self.additional_properties.keys())
|
|
58
|
+
|
|
59
|
+
def __getitem__(self, key: str) -> Any:
|
|
60
|
+
return self.additional_properties[key]
|
|
61
|
+
|
|
62
|
+
def __setitem__(self, key: str, value: Any) -> None:
|
|
63
|
+
self.additional_properties[key] = value
|
|
64
|
+
|
|
65
|
+
def __delitem__(self, key: str) -> None:
|
|
66
|
+
del self.additional_properties[key]
|
|
67
|
+
|
|
68
|
+
def __contains__(self, key: str) -> bool:
|
|
69
|
+
return key in self.additional_properties
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
from enum import Enum
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
class EditCopilotConfigJsonBodyCodeCompletionModelProvider(str, Enum):
|
|
5
|
+
ANTHROPIC = "anthropic"
|
|
6
|
+
CUSTOMAI = "customai"
|
|
7
|
+
DEEPSEEK = "deepseek"
|
|
8
|
+
GOOGLEAI = "googleai"
|
|
9
|
+
GROQ = "groq"
|
|
10
|
+
MISTRAL = "mistral"
|
|
11
|
+
OPENAI = "openai"
|
|
12
|
+
OPENROUTER = "openrouter"
|
|
13
|
+
TOGETHERAI = "togetherai"
|
|
14
|
+
|
|
15
|
+
def __str__(self) -> str:
|
|
16
|
+
return str(self.value)
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
from typing import Any, Dict, List, Type, TypeVar
|
|
2
|
+
|
|
3
|
+
from attrs import define as _attrs_define
|
|
4
|
+
from attrs import field as _attrs_field
|
|
5
|
+
|
|
6
|
+
from ..models.edit_copilot_config_json_body_default_model_provider import EditCopilotConfigJsonBodyDefaultModelProvider
|
|
7
|
+
|
|
8
|
+
T = TypeVar("T", bound="EditCopilotConfigJsonBodyDefaultModel")
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
@_attrs_define
|
|
12
|
+
class EditCopilotConfigJsonBodyDefaultModel:
|
|
13
|
+
"""
|
|
14
|
+
Attributes:
|
|
15
|
+
model (str):
|
|
16
|
+
provider (EditCopilotConfigJsonBodyDefaultModelProvider):
|
|
17
|
+
"""
|
|
18
|
+
|
|
19
|
+
model: str
|
|
20
|
+
provider: EditCopilotConfigJsonBodyDefaultModelProvider
|
|
21
|
+
additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict)
|
|
22
|
+
|
|
23
|
+
def to_dict(self) -> Dict[str, Any]:
|
|
24
|
+
model = self.model
|
|
25
|
+
provider = self.provider.value
|
|
26
|
+
|
|
27
|
+
field_dict: Dict[str, Any] = {}
|
|
28
|
+
field_dict.update(self.additional_properties)
|
|
29
|
+
field_dict.update(
|
|
30
|
+
{
|
|
31
|
+
"model": model,
|
|
32
|
+
"provider": provider,
|
|
33
|
+
}
|
|
34
|
+
)
|
|
35
|
+
|
|
36
|
+
return field_dict
|
|
37
|
+
|
|
38
|
+
@classmethod
|
|
39
|
+
def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
|
|
40
|
+
d = src_dict.copy()
|
|
41
|
+
model = d.pop("model")
|
|
42
|
+
|
|
43
|
+
provider = EditCopilotConfigJsonBodyDefaultModelProvider(d.pop("provider"))
|
|
44
|
+
|
|
45
|
+
edit_copilot_config_json_body_default_model = cls(
|
|
46
|
+
model=model,
|
|
47
|
+
provider=provider,
|
|
48
|
+
)
|
|
49
|
+
|
|
50
|
+
edit_copilot_config_json_body_default_model.additional_properties = d
|
|
51
|
+
return edit_copilot_config_json_body_default_model
|
|
52
|
+
|
|
53
|
+
@property
|
|
54
|
+
def additional_keys(self) -> List[str]:
|
|
55
|
+
return list(self.additional_properties.keys())
|
|
56
|
+
|
|
57
|
+
def __getitem__(self, key: str) -> Any:
|
|
58
|
+
return self.additional_properties[key]
|
|
59
|
+
|
|
60
|
+
def __setitem__(self, key: str, value: Any) -> None:
|
|
61
|
+
self.additional_properties[key] = value
|
|
62
|
+
|
|
63
|
+
def __delitem__(self, key: str) -> None:
|
|
64
|
+
del self.additional_properties[key]
|
|
65
|
+
|
|
66
|
+
def __contains__(self, key: str) -> bool:
|
|
67
|
+
return key in self.additional_properties
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
from enum import Enum
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
class EditCopilotConfigJsonBodyDefaultModelProvider(str, Enum):
|
|
5
|
+
ANTHROPIC = "anthropic"
|
|
6
|
+
CUSTOMAI = "customai"
|
|
7
|
+
DEEPSEEK = "deepseek"
|
|
8
|
+
GOOGLEAI = "googleai"
|
|
9
|
+
GROQ = "groq"
|
|
10
|
+
MISTRAL = "mistral"
|
|
11
|
+
OPENAI = "openai"
|
|
12
|
+
OPENROUTER = "openrouter"
|
|
13
|
+
TOGETHERAI = "togetherai"
|
|
14
|
+
|
|
15
|
+
def __str__(self) -> str:
|
|
16
|
+
return str(self.value)
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
from typing import TYPE_CHECKING, Any, Dict, List, Type, TypeVar
|
|
2
|
+
|
|
3
|
+
from attrs import define as _attrs_define
|
|
4
|
+
from attrs import field as _attrs_field
|
|
5
|
+
|
|
6
|
+
if TYPE_CHECKING:
|
|
7
|
+
from ..models.edit_copilot_config_json_body_providers_additional_property import (
|
|
8
|
+
EditCopilotConfigJsonBodyProvidersAdditionalProperty,
|
|
9
|
+
)
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
T = TypeVar("T", bound="EditCopilotConfigJsonBodyProviders")
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
@_attrs_define
|
|
16
|
+
class EditCopilotConfigJsonBodyProviders:
|
|
17
|
+
""" """
|
|
18
|
+
|
|
19
|
+
additional_properties: Dict[str, "EditCopilotConfigJsonBodyProvidersAdditionalProperty"] = _attrs_field(
|
|
20
|
+
init=False, factory=dict
|
|
21
|
+
)
|
|
22
|
+
|
|
23
|
+
def to_dict(self) -> Dict[str, Any]:
|
|
24
|
+
pass
|
|
25
|
+
|
|
26
|
+
field_dict: Dict[str, Any] = {}
|
|
27
|
+
for prop_name, prop in self.additional_properties.items():
|
|
28
|
+
field_dict[prop_name] = prop.to_dict()
|
|
29
|
+
|
|
30
|
+
field_dict.update({})
|
|
31
|
+
|
|
32
|
+
return field_dict
|
|
33
|
+
|
|
34
|
+
@classmethod
|
|
35
|
+
def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
|
|
36
|
+
from ..models.edit_copilot_config_json_body_providers_additional_property import (
|
|
37
|
+
EditCopilotConfigJsonBodyProvidersAdditionalProperty,
|
|
38
|
+
)
|
|
39
|
+
|
|
40
|
+
d = src_dict.copy()
|
|
41
|
+
edit_copilot_config_json_body_providers = cls()
|
|
42
|
+
|
|
43
|
+
additional_properties = {}
|
|
44
|
+
for prop_name, prop_dict in d.items():
|
|
45
|
+
additional_property = EditCopilotConfigJsonBodyProvidersAdditionalProperty.from_dict(prop_dict)
|
|
46
|
+
|
|
47
|
+
additional_properties[prop_name] = additional_property
|
|
48
|
+
|
|
49
|
+
edit_copilot_config_json_body_providers.additional_properties = additional_properties
|
|
50
|
+
return edit_copilot_config_json_body_providers
|
|
51
|
+
|
|
52
|
+
@property
|
|
53
|
+
def additional_keys(self) -> List[str]:
|
|
54
|
+
return list(self.additional_properties.keys())
|
|
55
|
+
|
|
56
|
+
def __getitem__(self, key: str) -> "EditCopilotConfigJsonBodyProvidersAdditionalProperty":
|
|
57
|
+
return self.additional_properties[key]
|
|
58
|
+
|
|
59
|
+
def __setitem__(self, key: str, value: "EditCopilotConfigJsonBodyProvidersAdditionalProperty") -> None:
|
|
60
|
+
self.additional_properties[key] = value
|
|
61
|
+
|
|
62
|
+
def __delitem__(self, key: str) -> None:
|
|
63
|
+
del self.additional_properties[key]
|
|
64
|
+
|
|
65
|
+
def __contains__(self, key: str) -> bool:
|
|
66
|
+
return key in self.additional_properties
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
from typing import Any, Dict, List, Type, TypeVar, cast
|
|
2
|
+
|
|
3
|
+
from attrs import define as _attrs_define
|
|
4
|
+
from attrs import field as _attrs_field
|
|
5
|
+
|
|
6
|
+
T = TypeVar("T", bound="EditCopilotConfigJsonBodyProvidersAdditionalProperty")
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
@_attrs_define
|
|
10
|
+
class EditCopilotConfigJsonBodyProvidersAdditionalProperty:
|
|
11
|
+
"""
|
|
12
|
+
Attributes:
|
|
13
|
+
resource_path (str):
|
|
14
|
+
models (List[str]):
|
|
15
|
+
"""
|
|
16
|
+
|
|
17
|
+
resource_path: str
|
|
18
|
+
models: List[str]
|
|
19
|
+
additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict)
|
|
20
|
+
|
|
21
|
+
def to_dict(self) -> Dict[str, Any]:
|
|
22
|
+
resource_path = self.resource_path
|
|
23
|
+
models = self.models
|
|
24
|
+
|
|
25
|
+
field_dict: Dict[str, Any] = {}
|
|
26
|
+
field_dict.update(self.additional_properties)
|
|
27
|
+
field_dict.update(
|
|
28
|
+
{
|
|
29
|
+
"resource_path": resource_path,
|
|
30
|
+
"models": models,
|
|
31
|
+
}
|
|
32
|
+
)
|
|
33
|
+
|
|
34
|
+
return field_dict
|
|
35
|
+
|
|
36
|
+
@classmethod
|
|
37
|
+
def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
|
|
38
|
+
d = src_dict.copy()
|
|
39
|
+
resource_path = d.pop("resource_path")
|
|
40
|
+
|
|
41
|
+
models = cast(List[str], d.pop("models"))
|
|
42
|
+
|
|
43
|
+
edit_copilot_config_json_body_providers_additional_property = cls(
|
|
44
|
+
resource_path=resource_path,
|
|
45
|
+
models=models,
|
|
46
|
+
)
|
|
47
|
+
|
|
48
|
+
edit_copilot_config_json_body_providers_additional_property.additional_properties = d
|
|
49
|
+
return edit_copilot_config_json_body_providers_additional_property
|
|
50
|
+
|
|
51
|
+
@property
|
|
52
|
+
def additional_keys(self) -> List[str]:
|
|
53
|
+
return list(self.additional_properties.keys())
|
|
54
|
+
|
|
55
|
+
def __getitem__(self, key: str) -> Any:
|
|
56
|
+
return self.additional_properties[key]
|
|
57
|
+
|
|
58
|
+
def __setitem__(self, key: str, value: Any) -> None:
|
|
59
|
+
self.additional_properties[key] = value
|
|
60
|
+
|
|
61
|
+
def __delitem__(self, key: str) -> None:
|
|
62
|
+
del self.additional_properties[key]
|
|
63
|
+
|
|
64
|
+
def __contains__(self, key: str) -> bool:
|
|
65
|
+
return key in self.additional_properties
|
|
@@ -3,6 +3,7 @@ from typing import TYPE_CHECKING, Any, Dict, List, Type, TypeVar, Union
|
|
|
3
3
|
from attrs import define as _attrs_define
|
|
4
4
|
from attrs import field as _attrs_field
|
|
5
5
|
|
|
6
|
+
from ..models.edit_http_trigger_authentication_method import EditHttpTriggerAuthenticationMethod
|
|
6
7
|
from ..models.edit_http_trigger_http_method import EditHttpTriggerHttpMethod
|
|
7
8
|
from ..types import UNSET, Unset
|
|
8
9
|
|
|
@@ -22,11 +23,12 @@ class EditHttpTrigger:
|
|
|
22
23
|
is_flow (bool):
|
|
23
24
|
http_method (EditHttpTriggerHttpMethod):
|
|
24
25
|
is_async (bool):
|
|
25
|
-
|
|
26
|
+
authentication_method (EditHttpTriggerAuthenticationMethod):
|
|
26
27
|
is_static_website (bool):
|
|
27
28
|
route_path (Union[Unset, str]):
|
|
28
29
|
workspaced_route (Union[Unset, bool]):
|
|
29
30
|
static_asset_config (Union[Unset, EditHttpTriggerStaticAssetConfig]):
|
|
31
|
+
authentication_resource_path (Union[Unset, str]):
|
|
30
32
|
wrap_body (Union[Unset, bool]):
|
|
31
33
|
raw_string (Union[Unset, bool]):
|
|
32
34
|
"""
|
|
@@ -36,11 +38,12 @@ class EditHttpTrigger:
|
|
|
36
38
|
is_flow: bool
|
|
37
39
|
http_method: EditHttpTriggerHttpMethod
|
|
38
40
|
is_async: bool
|
|
39
|
-
|
|
41
|
+
authentication_method: EditHttpTriggerAuthenticationMethod
|
|
40
42
|
is_static_website: bool
|
|
41
43
|
route_path: Union[Unset, str] = UNSET
|
|
42
44
|
workspaced_route: Union[Unset, bool] = UNSET
|
|
43
45
|
static_asset_config: Union[Unset, "EditHttpTriggerStaticAssetConfig"] = UNSET
|
|
46
|
+
authentication_resource_path: Union[Unset, str] = UNSET
|
|
44
47
|
wrap_body: Union[Unset, bool] = UNSET
|
|
45
48
|
raw_string: Union[Unset, bool] = UNSET
|
|
46
49
|
additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict)
|
|
@@ -52,7 +55,8 @@ class EditHttpTrigger:
|
|
|
52
55
|
http_method = self.http_method.value
|
|
53
56
|
|
|
54
57
|
is_async = self.is_async
|
|
55
|
-
|
|
58
|
+
authentication_method = self.authentication_method.value
|
|
59
|
+
|
|
56
60
|
is_static_website = self.is_static_website
|
|
57
61
|
route_path = self.route_path
|
|
58
62
|
workspaced_route = self.workspaced_route
|
|
@@ -60,6 +64,7 @@ class EditHttpTrigger:
|
|
|
60
64
|
if not isinstance(self.static_asset_config, Unset):
|
|
61
65
|
static_asset_config = self.static_asset_config.to_dict()
|
|
62
66
|
|
|
67
|
+
authentication_resource_path = self.authentication_resource_path
|
|
63
68
|
wrap_body = self.wrap_body
|
|
64
69
|
raw_string = self.raw_string
|
|
65
70
|
|
|
@@ -72,7 +77,7 @@ class EditHttpTrigger:
|
|
|
72
77
|
"is_flow": is_flow,
|
|
73
78
|
"http_method": http_method,
|
|
74
79
|
"is_async": is_async,
|
|
75
|
-
"
|
|
80
|
+
"authentication_method": authentication_method,
|
|
76
81
|
"is_static_website": is_static_website,
|
|
77
82
|
}
|
|
78
83
|
)
|
|
@@ -82,6 +87,8 @@ class EditHttpTrigger:
|
|
|
82
87
|
field_dict["workspaced_route"] = workspaced_route
|
|
83
88
|
if static_asset_config is not UNSET:
|
|
84
89
|
field_dict["static_asset_config"] = static_asset_config
|
|
90
|
+
if authentication_resource_path is not UNSET:
|
|
91
|
+
field_dict["authentication_resource_path"] = authentication_resource_path
|
|
85
92
|
if wrap_body is not UNSET:
|
|
86
93
|
field_dict["wrap_body"] = wrap_body
|
|
87
94
|
if raw_string is not UNSET:
|
|
@@ -104,7 +111,7 @@ class EditHttpTrigger:
|
|
|
104
111
|
|
|
105
112
|
is_async = d.pop("is_async")
|
|
106
113
|
|
|
107
|
-
|
|
114
|
+
authentication_method = EditHttpTriggerAuthenticationMethod(d.pop("authentication_method"))
|
|
108
115
|
|
|
109
116
|
is_static_website = d.pop("is_static_website")
|
|
110
117
|
|
|
@@ -119,6 +126,8 @@ class EditHttpTrigger:
|
|
|
119
126
|
else:
|
|
120
127
|
static_asset_config = EditHttpTriggerStaticAssetConfig.from_dict(_static_asset_config)
|
|
121
128
|
|
|
129
|
+
authentication_resource_path = d.pop("authentication_resource_path", UNSET)
|
|
130
|
+
|
|
122
131
|
wrap_body = d.pop("wrap_body", UNSET)
|
|
123
132
|
|
|
124
133
|
raw_string = d.pop("raw_string", UNSET)
|
|
@@ -129,11 +138,12 @@ class EditHttpTrigger:
|
|
|
129
138
|
is_flow=is_flow,
|
|
130
139
|
http_method=http_method,
|
|
131
140
|
is_async=is_async,
|
|
132
|
-
|
|
141
|
+
authentication_method=authentication_method,
|
|
133
142
|
is_static_website=is_static_website,
|
|
134
143
|
route_path=route_path,
|
|
135
144
|
workspaced_route=workspaced_route,
|
|
136
145
|
static_asset_config=static_asset_config,
|
|
146
|
+
authentication_resource_path=authentication_resource_path,
|
|
137
147
|
wrap_body=wrap_body,
|
|
138
148
|
raw_string=raw_string,
|
|
139
149
|
)
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
from enum import Enum
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
class EditHttpTriggerAuthenticationMethod(str, Enum):
|
|
5
|
+
API_KEY = "api_key"
|
|
6
|
+
BASIC_HTTP = "basic_http"
|
|
7
|
+
CUSTOM_SCRIPT = "custom_script"
|
|
8
|
+
NONE = "none"
|
|
9
|
+
SIGNATURE = "signature"
|
|
10
|
+
WINDMILL = "windmill"
|
|
11
|
+
|
|
12
|
+
def __str__(self) -> str:
|
|
13
|
+
return str(self.value)
|
|
@@ -38,6 +38,7 @@ class EditSchedule:
|
|
|
38
38
|
retry (Union[Unset, EditScheduleRetry]):
|
|
39
39
|
no_flow_overlap (Union[Unset, bool]):
|
|
40
40
|
summary (Union[Unset, str]):
|
|
41
|
+
description (Union[Unset, str]):
|
|
41
42
|
tag (Union[Unset, str]):
|
|
42
43
|
paused_until (Union[Unset, datetime.datetime]):
|
|
43
44
|
cron_version (Union[Unset, str]):
|
|
@@ -59,6 +60,7 @@ class EditSchedule:
|
|
|
59
60
|
retry: Union[Unset, "EditScheduleRetry"] = UNSET
|
|
60
61
|
no_flow_overlap: Union[Unset, bool] = UNSET
|
|
61
62
|
summary: Union[Unset, str] = UNSET
|
|
63
|
+
description: Union[Unset, str] = UNSET
|
|
62
64
|
tag: Union[Unset, str] = UNSET
|
|
63
65
|
paused_until: Union[Unset, datetime.datetime] = UNSET
|
|
64
66
|
cron_version: Union[Unset, str] = UNSET
|
|
@@ -94,6 +96,7 @@ class EditSchedule:
|
|
|
94
96
|
|
|
95
97
|
no_flow_overlap = self.no_flow_overlap
|
|
96
98
|
summary = self.summary
|
|
99
|
+
description = self.description
|
|
97
100
|
tag = self.tag
|
|
98
101
|
paused_until: Union[Unset, str] = UNSET
|
|
99
102
|
if not isinstance(self.paused_until, Unset):
|
|
@@ -136,6 +139,8 @@ class EditSchedule:
|
|
|
136
139
|
field_dict["no_flow_overlap"] = no_flow_overlap
|
|
137
140
|
if summary is not UNSET:
|
|
138
141
|
field_dict["summary"] = summary
|
|
142
|
+
if description is not UNSET:
|
|
143
|
+
field_dict["description"] = description
|
|
139
144
|
if tag is not UNSET:
|
|
140
145
|
field_dict["tag"] = tag
|
|
141
146
|
if paused_until is not UNSET:
|
|
@@ -206,6 +211,8 @@ class EditSchedule:
|
|
|
206
211
|
|
|
207
212
|
summary = d.pop("summary", UNSET)
|
|
208
213
|
|
|
214
|
+
description = d.pop("description", UNSET)
|
|
215
|
+
|
|
209
216
|
tag = d.pop("tag", UNSET)
|
|
210
217
|
|
|
211
218
|
_paused_until = d.pop("paused_until", UNSET)
|
|
@@ -234,6 +241,7 @@ class EditSchedule:
|
|
|
234
241
|
retry=retry,
|
|
235
242
|
no_flow_overlap=no_flow_overlap,
|
|
236
243
|
summary=summary,
|
|
244
|
+
description=description,
|
|
237
245
|
tag=tag,
|
|
238
246
|
paused_until=paused_until,
|
|
239
247
|
cron_version=cron_version,
|
windmill_api/models/{set_automatic_billing_json_body.py → export_installation_response_200.py}
RENAMED
|
@@ -5,51 +5,41 @@ from attrs import field as _attrs_field
|
|
|
5
5
|
|
|
6
6
|
from ..types import UNSET, Unset
|
|
7
7
|
|
|
8
|
-
T = TypeVar("T", bound="
|
|
8
|
+
T = TypeVar("T", bound="ExportInstallationResponse200")
|
|
9
9
|
|
|
10
10
|
|
|
11
11
|
@_attrs_define
|
|
12
|
-
class
|
|
12
|
+
class ExportInstallationResponse200:
|
|
13
13
|
"""
|
|
14
14
|
Attributes:
|
|
15
|
-
|
|
16
|
-
seats (Union[Unset, float]):
|
|
15
|
+
jwt_token (Union[Unset, str]):
|
|
17
16
|
"""
|
|
18
17
|
|
|
19
|
-
|
|
20
|
-
seats: Union[Unset, float] = UNSET
|
|
18
|
+
jwt_token: Union[Unset, str] = UNSET
|
|
21
19
|
additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict)
|
|
22
20
|
|
|
23
21
|
def to_dict(self) -> Dict[str, Any]:
|
|
24
|
-
|
|
25
|
-
seats = self.seats
|
|
22
|
+
jwt_token = self.jwt_token
|
|
26
23
|
|
|
27
24
|
field_dict: Dict[str, Any] = {}
|
|
28
25
|
field_dict.update(self.additional_properties)
|
|
29
|
-
field_dict.update(
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
}
|
|
33
|
-
)
|
|
34
|
-
if seats is not UNSET:
|
|
35
|
-
field_dict["seats"] = seats
|
|
26
|
+
field_dict.update({})
|
|
27
|
+
if jwt_token is not UNSET:
|
|
28
|
+
field_dict["jwt_token"] = jwt_token
|
|
36
29
|
|
|
37
30
|
return field_dict
|
|
38
31
|
|
|
39
32
|
@classmethod
|
|
40
33
|
def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
|
|
41
34
|
d = src_dict.copy()
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
seats = d.pop("seats", UNSET)
|
|
35
|
+
jwt_token = d.pop("jwt_token", UNSET)
|
|
45
36
|
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
seats=seats,
|
|
37
|
+
export_installation_response_200 = cls(
|
|
38
|
+
jwt_token=jwt_token,
|
|
49
39
|
)
|
|
50
40
|
|
|
51
|
-
|
|
52
|
-
return
|
|
41
|
+
export_installation_response_200.additional_properties = d
|
|
42
|
+
return export_installation_response_200
|
|
53
43
|
|
|
54
44
|
@property
|
|
55
45
|
def additional_keys(self) -> List[str]:
|
|
@@ -10,9 +10,11 @@ class ExtendedJobsJobsItemType0Language(str, Enum):
|
|
|
10
10
|
DENO = "deno"
|
|
11
11
|
GO = "go"
|
|
12
12
|
GRAPHQL = "graphql"
|
|
13
|
+
JAVA = "java"
|
|
13
14
|
MSSQL = "mssql"
|
|
14
15
|
MYSQL = "mysql"
|
|
15
16
|
NATIVETS = "nativets"
|
|
17
|
+
NU = "nu"
|
|
16
18
|
ORACLEDB = "oracledb"
|
|
17
19
|
PHP = "php"
|
|
18
20
|
POSTGRESQL = "postgresql"
|