windmill-api 1.478.1__py3-none-any.whl → 1.479.1__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.

Files changed (118) hide show
  1. windmill_api/api/app/list_app_paths_from_workspace_runnable.py +176 -0
  2. windmill_api/api/git_sync/__init__.py +0 -0
  3. windmill_api/api/git_sync/delete_from_workspace.py +107 -0
  4. windmill_api/api/git_sync/export_installation.py +174 -0
  5. windmill_api/api/git_sync/get_global_connected_repositories.py +131 -0
  6. windmill_api/api/git_sync/import_installation.py +111 -0
  7. windmill_api/api/{workspace/set_automatic_billing.py → git_sync/install_from_workspace.py} +11 -9
  8. windmill_api/api/script/list_script_paths_from_workspace_runnable.py +161 -0
  9. windmill_api/api/workspace/get_copilot_info.py +65 -6
  10. windmill_api/api/workspace/get_github_app_token.py +170 -0
  11. windmill_api/models/ai_config.py +107 -0
  12. windmill_api/models/{get_settings_response_200_ai_resource.py → ai_config_code_completion_model.py} +15 -15
  13. windmill_api/models/{get_settings_response_200_ai_resource_provider.py → ai_config_code_completion_model_provider.py} +2 -1
  14. windmill_api/models/{edit_copilot_config_json_body_ai_resource.py → ai_config_default_model.py} +15 -15
  15. windmill_api/models/{edit_copilot_config_json_body_ai_resource_provider.py → ai_config_default_model_provider.py} +2 -1
  16. windmill_api/models/ai_config_providers.py +60 -0
  17. windmill_api/models/ai_config_providers_additional_property.py +65 -0
  18. windmill_api/models/ai_provider.py +1 -0
  19. windmill_api/models/ai_provider_config.py +65 -0
  20. windmill_api/models/{ai_resource.py → ai_provider_model.py} +15 -15
  21. windmill_api/models/{ai_resource_provider.py → ai_provider_model_provider.py} +2 -1
  22. windmill_api/models/archive_script_by_hash_response_200_language.py +2 -0
  23. windmill_api/models/authentication_method.py +13 -0
  24. windmill_api/models/completed_job_language.py +2 -0
  25. windmill_api/models/create_http_trigger_json_body.py +16 -6
  26. windmill_api/models/create_http_trigger_json_body_authentication_method.py +13 -0
  27. windmill_api/models/create_schedule_json_body.py +8 -0
  28. windmill_api/models/create_script_json_body_language.py +2 -0
  29. windmill_api/models/delete_completed_job_response_200_language.py +2 -0
  30. windmill_api/models/delete_script_by_hash_response_200_language.py +2 -0
  31. windmill_api/models/edit_copilot_config_json_body.py +50 -30
  32. windmill_api/models/edit_copilot_config_json_body_code_completion_model.py +69 -0
  33. windmill_api/models/edit_copilot_config_json_body_code_completion_model_provider.py +16 -0
  34. windmill_api/models/edit_copilot_config_json_body_default_model.py +67 -0
  35. windmill_api/models/edit_copilot_config_json_body_default_model_provider.py +16 -0
  36. windmill_api/models/edit_copilot_config_json_body_providers.py +66 -0
  37. windmill_api/models/edit_copilot_config_json_body_providers_additional_property.py +65 -0
  38. windmill_api/models/edit_http_trigger.py +16 -6
  39. windmill_api/models/edit_http_trigger_authentication_method.py +13 -0
  40. windmill_api/models/edit_schedule.py +8 -0
  41. windmill_api/models/{set_automatic_billing_json_body.py → export_installation_response_200.py} +13 -23
  42. windmill_api/models/extended_jobs_jobs_item_type_0_language.py +2 -0
  43. windmill_api/models/extended_jobs_jobs_item_type_1_language.py +2 -0
  44. windmill_api/models/get_completed_job_response_200_language.py +2 -0
  45. windmill_api/models/get_copilot_info_response_200.py +111 -0
  46. windmill_api/models/get_copilot_info_response_200_code_completion_model.py +69 -0
  47. windmill_api/models/get_copilot_info_response_200_code_completion_model_provider.py +16 -0
  48. windmill_api/models/get_copilot_info_response_200_default_model.py +67 -0
  49. windmill_api/models/get_copilot_info_response_200_default_model_provider.py +16 -0
  50. windmill_api/models/get_copilot_info_response_200_providers.py +66 -0
  51. windmill_api/models/get_copilot_info_response_200_providers_additional_property.py +65 -0
  52. windmill_api/models/get_github_app_token_json_body.py +58 -0
  53. windmill_api/models/get_github_app_token_response_200.py +58 -0
  54. windmill_api/models/get_global_connected_repositories_response_200_item.py +104 -0
  55. windmill_api/models/get_global_connected_repositories_response_200_item_repositories_item.py +65 -0
  56. windmill_api/models/get_http_trigger_response_200.py +17 -6
  57. windmill_api/models/get_http_trigger_response_200_authentication_method.py +13 -0
  58. windmill_api/models/get_job_response_200_type_0_language.py +2 -0
  59. windmill_api/models/get_job_response_200_type_1_language.py +2 -0
  60. windmill_api/models/get_premium_info_response_200.py +7 -14
  61. windmill_api/models/get_schedule_response_200.py +8 -0
  62. windmill_api/models/get_script_by_hash_response_200_language.py +2 -0
  63. windmill_api/models/get_script_by_path_response_200_language.py +2 -0
  64. windmill_api/models/get_script_by_path_with_draft_response_200_draft_language.py +2 -0
  65. windmill_api/models/get_script_by_path_with_draft_response_200_language.py +2 -0
  66. windmill_api/models/get_settings_response_200.py +16 -39
  67. windmill_api/models/get_settings_response_200_ai_config.py +113 -0
  68. windmill_api/models/get_settings_response_200_ai_config_code_completion_model.py +69 -0
  69. windmill_api/models/get_settings_response_200_ai_config_code_completion_model_provider.py +16 -0
  70. windmill_api/models/get_settings_response_200_ai_config_default_model.py +69 -0
  71. windmill_api/models/get_settings_response_200_ai_config_default_model_provider.py +16 -0
  72. windmill_api/models/get_settings_response_200_ai_config_providers.py +66 -0
  73. windmill_api/models/get_settings_response_200_ai_config_providers_additional_property.py +65 -0
  74. windmill_api/models/get_suspended_job_flow_response_200_job_type_0_language.py +2 -0
  75. windmill_api/models/get_suspended_job_flow_response_200_job_type_1_language.py +2 -0
  76. windmill_api/models/github_installations_item.py +98 -0
  77. windmill_api/models/github_installations_item_repositories_item.py +65 -0
  78. windmill_api/models/http_trigger.py +17 -6
  79. windmill_api/models/http_trigger_authentication_method.py +13 -0
  80. windmill_api/models/import_installation_json_body.py +58 -0
  81. windmill_api/models/install_from_workspace_json_body.py +65 -0
  82. windmill_api/models/job_type_0_language.py +2 -0
  83. windmill_api/models/job_type_1_language.py +2 -0
  84. windmill_api/models/list_app_paths_from_workspace_runnable_runnable_kind.py +9 -0
  85. windmill_api/models/list_completed_jobs_response_200_item_language.py +2 -0
  86. windmill_api/models/list_extended_jobs_response_200_jobs_item_type_0_language.py +2 -0
  87. windmill_api/models/list_extended_jobs_response_200_jobs_item_type_1_language.py +2 -0
  88. windmill_api/models/list_http_triggers_response_200_item.py +19 -6
  89. windmill_api/models/list_http_triggers_response_200_item_authentication_method.py +13 -0
  90. windmill_api/models/list_jobs_response_200_item_type_0_language.py +2 -0
  91. windmill_api/models/list_jobs_response_200_item_type_1_language.py +2 -0
  92. windmill_api/models/list_queue_response_200_item_language.py +2 -0
  93. windmill_api/models/list_schedules_response_200_item.py +8 -0
  94. windmill_api/models/list_schedules_with_jobs_response_200_item.py +8 -0
  95. windmill_api/models/list_scripts_response_200_item_language.py +2 -0
  96. windmill_api/models/new_http_trigger.py +16 -6
  97. windmill_api/models/new_http_trigger_authentication_method.py +13 -0
  98. windmill_api/models/new_schedule.py +8 -0
  99. windmill_api/models/new_script_language.py +2 -0
  100. windmill_api/models/new_script_with_draft_draft_language.py +2 -0
  101. windmill_api/models/new_script_with_draft_language.py +2 -0
  102. windmill_api/models/preview_language.py +2 -0
  103. windmill_api/models/queued_job_language.py +2 -0
  104. windmill_api/models/raw_script_for_dependencies_language.py +2 -0
  105. windmill_api/models/run_raw_script_dependencies_json_body_raw_scripts_item_language.py +2 -0
  106. windmill_api/models/run_script_preview_json_body_language.py +2 -0
  107. windmill_api/models/schedule.py +8 -0
  108. windmill_api/models/schedule_w_jobs.py +8 -0
  109. windmill_api/models/script_lang.py +2 -0
  110. windmill_api/models/script_language.py +2 -0
  111. windmill_api/models/update_http_trigger_json_body.py +16 -6
  112. windmill_api/models/update_http_trigger_json_body_authentication_method.py +13 -0
  113. windmill_api/models/update_schedule_json_body.py +8 -0
  114. windmill_api/models/workspace_github_installation.py +65 -0
  115. {windmill_api-1.478.1.dist-info → windmill_api-1.479.1.dist-info}/METADATA +1 -1
  116. {windmill_api-1.478.1.dist-info → windmill_api-1.479.1.dist-info}/RECORD +118 -68
  117. {windmill_api-1.478.1.dist-info → windmill_api-1.479.1.dist-info}/LICENSE +0 -0
  118. {windmill_api-1.478.1.dist-info → windmill_api-1.479.1.dist-info}/WHEEL +0 -0
@@ -0,0 +1,65 @@
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
+ T = TypeVar("T", bound="InstallFromWorkspaceJsonBody")
7
+
8
+
9
+ @_attrs_define
10
+ class InstallFromWorkspaceJsonBody:
11
+ """
12
+ Attributes:
13
+ source_workspace_id (str): The ID of the workspace containing the installation to copy
14
+ installation_id (float): The ID of the GitHub installation to copy
15
+ """
16
+
17
+ source_workspace_id: str
18
+ installation_id: float
19
+ additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict)
20
+
21
+ def to_dict(self) -> Dict[str, Any]:
22
+ source_workspace_id = self.source_workspace_id
23
+ installation_id = self.installation_id
24
+
25
+ field_dict: Dict[str, Any] = {}
26
+ field_dict.update(self.additional_properties)
27
+ field_dict.update(
28
+ {
29
+ "source_workspace_id": source_workspace_id,
30
+ "installation_id": installation_id,
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
+ source_workspace_id = d.pop("source_workspace_id")
40
+
41
+ installation_id = d.pop("installation_id")
42
+
43
+ install_from_workspace_json_body = cls(
44
+ source_workspace_id=source_workspace_id,
45
+ installation_id=installation_id,
46
+ )
47
+
48
+ install_from_workspace_json_body.additional_properties = d
49
+ return install_from_workspace_json_body
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
@@ -10,9 +10,11 @@ class JobType0Language(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"
@@ -10,9 +10,11 @@ class JobType1Language(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"
@@ -0,0 +1,9 @@
1
+ from enum import Enum
2
+
3
+
4
+ class ListAppPathsFromWorkspaceRunnableRunnableKind(str, Enum):
5
+ FLOW = "flow"
6
+ SCRIPT = "script"
7
+
8
+ def __str__(self) -> str:
9
+ return str(self.value)
@@ -10,9 +10,11 @@ class ListCompletedJobsResponse200ItemLanguage(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"
@@ -10,9 +10,11 @@ class ListExtendedJobsResponse200JobsItemType0Language(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"
@@ -10,9 +10,11 @@ class ListExtendedJobsResponse200JobsItemType1Language(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"
@@ -5,6 +5,9 @@ from attrs import define as _attrs_define
5
5
  from attrs import field as _attrs_field
6
6
  from dateutil.parser import isoparse
7
7
 
8
+ from ..models.list_http_triggers_response_200_item_authentication_method import (
9
+ ListHttpTriggersResponse200ItemAuthenticationMethod,
10
+ )
8
11
  from ..models.list_http_triggers_response_200_item_http_method import ListHttpTriggersResponse200ItemHttpMethod
9
12
  from ..types import UNSET, Unset
10
13
 
@@ -25,7 +28,7 @@ class ListHttpTriggersResponse200Item:
25
28
  route_path (str):
26
29
  http_method (ListHttpTriggersResponse200ItemHttpMethod):
27
30
  is_async (bool):
28
- requires_auth (bool):
31
+ authentication_method (ListHttpTriggersResponse200ItemAuthenticationMethod):
29
32
  is_static_website (bool):
30
33
  workspaced_route (bool):
31
34
  wrap_body (bool):
@@ -39,12 +42,13 @@ class ListHttpTriggersResponse200Item:
39
42
  edited_at (datetime.datetime):
40
43
  is_flow (bool):
41
44
  static_asset_config (Union[Unset, ListHttpTriggersResponse200ItemStaticAssetConfig]):
45
+ authentication_resource_path (Union[Unset, str]):
42
46
  """
43
47
 
44
48
  route_path: str
45
49
  http_method: ListHttpTriggersResponse200ItemHttpMethod
46
50
  is_async: bool
47
- requires_auth: bool
51
+ authentication_method: ListHttpTriggersResponse200ItemAuthenticationMethod
48
52
  is_static_website: bool
49
53
  workspaced_route: bool
50
54
  wrap_body: bool
@@ -58,6 +62,7 @@ class ListHttpTriggersResponse200Item:
58
62
  edited_at: datetime.datetime
59
63
  is_flow: bool
60
64
  static_asset_config: Union[Unset, "ListHttpTriggersResponse200ItemStaticAssetConfig"] = UNSET
65
+ authentication_resource_path: Union[Unset, str] = UNSET
61
66
  additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict)
62
67
 
63
68
  def to_dict(self) -> Dict[str, Any]:
@@ -65,7 +70,8 @@ class ListHttpTriggersResponse200Item:
65
70
  http_method = self.http_method.value
66
71
 
67
72
  is_async = self.is_async
68
- requires_auth = self.requires_auth
73
+ authentication_method = self.authentication_method.value
74
+
69
75
  is_static_website = self.is_static_website
70
76
  workspaced_route = self.workspaced_route
71
77
  wrap_body = self.wrap_body
@@ -84,6 +90,8 @@ class ListHttpTriggersResponse200Item:
84
90
  if not isinstance(self.static_asset_config, Unset):
85
91
  static_asset_config = self.static_asset_config.to_dict()
86
92
 
93
+ authentication_resource_path = self.authentication_resource_path
94
+
87
95
  field_dict: Dict[str, Any] = {}
88
96
  field_dict.update(self.additional_properties)
89
97
  field_dict.update(
@@ -91,7 +99,7 @@ class ListHttpTriggersResponse200Item:
91
99
  "route_path": route_path,
92
100
  "http_method": http_method,
93
101
  "is_async": is_async,
94
- "requires_auth": requires_auth,
102
+ "authentication_method": authentication_method,
95
103
  "is_static_website": is_static_website,
96
104
  "workspaced_route": workspaced_route,
97
105
  "wrap_body": wrap_body,
@@ -108,6 +116,8 @@ class ListHttpTriggersResponse200Item:
108
116
  )
109
117
  if static_asset_config is not UNSET:
110
118
  field_dict["static_asset_config"] = static_asset_config
119
+ if authentication_resource_path is not UNSET:
120
+ field_dict["authentication_resource_path"] = authentication_resource_path
111
121
 
112
122
  return field_dict
113
123
 
@@ -125,7 +135,7 @@ class ListHttpTriggersResponse200Item:
125
135
 
126
136
  is_async = d.pop("is_async")
127
137
 
128
- requires_auth = d.pop("requires_auth")
138
+ authentication_method = ListHttpTriggersResponse200ItemAuthenticationMethod(d.pop("authentication_method"))
129
139
 
130
140
  is_static_website = d.pop("is_static_website")
131
141
 
@@ -158,11 +168,13 @@ class ListHttpTriggersResponse200Item:
158
168
  else:
159
169
  static_asset_config = ListHttpTriggersResponse200ItemStaticAssetConfig.from_dict(_static_asset_config)
160
170
 
171
+ authentication_resource_path = d.pop("authentication_resource_path", UNSET)
172
+
161
173
  list_http_triggers_response_200_item = cls(
162
174
  route_path=route_path,
163
175
  http_method=http_method,
164
176
  is_async=is_async,
165
- requires_auth=requires_auth,
177
+ authentication_method=authentication_method,
166
178
  is_static_website=is_static_website,
167
179
  workspaced_route=workspaced_route,
168
180
  wrap_body=wrap_body,
@@ -176,6 +188,7 @@ class ListHttpTriggersResponse200Item:
176
188
  edited_at=edited_at,
177
189
  is_flow=is_flow,
178
190
  static_asset_config=static_asset_config,
191
+ authentication_resource_path=authentication_resource_path,
179
192
  )
180
193
 
181
194
  list_http_triggers_response_200_item.additional_properties = d
@@ -0,0 +1,13 @@
1
+ from enum import Enum
2
+
3
+
4
+ class ListHttpTriggersResponse200ItemAuthenticationMethod(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)
@@ -10,9 +10,11 @@ class ListJobsResponse200ItemType0Language(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"
@@ -10,9 +10,11 @@ class ListJobsResponse200ItemType1Language(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"
@@ -10,9 +10,11 @@ class ListQueueResponse200ItemLanguage(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"
@@ -53,6 +53,7 @@ class ListSchedulesResponse200Item:
53
53
  ws_error_handler_muted (Union[Unset, bool]):
54
54
  retry (Union[Unset, ListSchedulesResponse200ItemRetry]):
55
55
  summary (Union[Unset, str]):
56
+ description (Union[Unset, str]):
56
57
  no_flow_overlap (Union[Unset, bool]):
57
58
  tag (Union[Unset, str]):
58
59
  paused_until (Union[Unset, datetime.datetime]):
@@ -83,6 +84,7 @@ class ListSchedulesResponse200Item:
83
84
  ws_error_handler_muted: Union[Unset, bool] = UNSET
84
85
  retry: Union[Unset, "ListSchedulesResponse200ItemRetry"] = UNSET
85
86
  summary: Union[Unset, str] = UNSET
87
+ description: Union[Unset, str] = UNSET
86
88
  no_flow_overlap: Union[Unset, bool] = UNSET
87
89
  tag: Union[Unset, str] = UNSET
88
90
  paused_until: Union[Unset, datetime.datetime] = UNSET
@@ -131,6 +133,7 @@ class ListSchedulesResponse200Item:
131
133
  retry = self.retry.to_dict()
132
134
 
133
135
  summary = self.summary
136
+ description = self.description
134
137
  no_flow_overlap = self.no_flow_overlap
135
138
  tag = self.tag
136
139
  paused_until: Union[Unset, str] = UNSET
@@ -183,6 +186,8 @@ class ListSchedulesResponse200Item:
183
186
  field_dict["retry"] = retry
184
187
  if summary is not UNSET:
185
188
  field_dict["summary"] = summary
189
+ if description is not UNSET:
190
+ field_dict["description"] = description
186
191
  if no_flow_overlap is not UNSET:
187
192
  field_dict["no_flow_overlap"] = no_flow_overlap
188
193
  if tag is not UNSET:
@@ -283,6 +288,8 @@ class ListSchedulesResponse200Item:
283
288
 
284
289
  summary = d.pop("summary", UNSET)
285
290
 
291
+ description = d.pop("description", UNSET)
292
+
286
293
  no_flow_overlap = d.pop("no_flow_overlap", UNSET)
287
294
 
288
295
  tag = d.pop("tag", UNSET)
@@ -321,6 +328,7 @@ class ListSchedulesResponse200Item:
321
328
  ws_error_handler_muted=ws_error_handler_muted,
322
329
  retry=retry,
323
330
  summary=summary,
331
+ description=description,
324
332
  no_flow_overlap=no_flow_overlap,
325
333
  tag=tag,
326
334
  paused_until=paused_until,
@@ -58,6 +58,7 @@ class ListSchedulesWithJobsResponse200Item:
58
58
  ws_error_handler_muted (Union[Unset, bool]):
59
59
  retry (Union[Unset, ListSchedulesWithJobsResponse200ItemRetry]):
60
60
  summary (Union[Unset, str]):
61
+ description (Union[Unset, str]):
61
62
  no_flow_overlap (Union[Unset, bool]):
62
63
  tag (Union[Unset, str]):
63
64
  paused_until (Union[Unset, datetime.datetime]):
@@ -89,6 +90,7 @@ class ListSchedulesWithJobsResponse200Item:
89
90
  ws_error_handler_muted: Union[Unset, bool] = UNSET
90
91
  retry: Union[Unset, "ListSchedulesWithJobsResponse200ItemRetry"] = UNSET
91
92
  summary: Union[Unset, str] = UNSET
93
+ description: Union[Unset, str] = UNSET
92
94
  no_flow_overlap: Union[Unset, bool] = UNSET
93
95
  tag: Union[Unset, str] = UNSET
94
96
  paused_until: Union[Unset, datetime.datetime] = UNSET
@@ -138,6 +140,7 @@ class ListSchedulesWithJobsResponse200Item:
138
140
  retry = self.retry.to_dict()
139
141
 
140
142
  summary = self.summary
143
+ description = self.description
141
144
  no_flow_overlap = self.no_flow_overlap
142
145
  tag = self.tag
143
146
  paused_until: Union[Unset, str] = UNSET
@@ -197,6 +200,8 @@ class ListSchedulesWithJobsResponse200Item:
197
200
  field_dict["retry"] = retry
198
201
  if summary is not UNSET:
199
202
  field_dict["summary"] = summary
203
+ if description is not UNSET:
204
+ field_dict["description"] = description
200
205
  if no_flow_overlap is not UNSET:
201
206
  field_dict["no_flow_overlap"] = no_flow_overlap
202
207
  if tag is not UNSET:
@@ -310,6 +315,8 @@ class ListSchedulesWithJobsResponse200Item:
310
315
 
311
316
  summary = d.pop("summary", UNSET)
312
317
 
318
+ description = d.pop("description", UNSET)
319
+
313
320
  no_flow_overlap = d.pop("no_flow_overlap", UNSET)
314
321
 
315
322
  tag = d.pop("tag", UNSET)
@@ -355,6 +362,7 @@ class ListSchedulesWithJobsResponse200Item:
355
362
  ws_error_handler_muted=ws_error_handler_muted,
356
363
  retry=retry,
357
364
  summary=summary,
365
+ description=description,
358
366
  no_flow_overlap=no_flow_overlap,
359
367
  tag=tag,
360
368
  paused_until=paused_until,
@@ -10,9 +10,11 @@ class ListScriptsResponse200ItemLanguage(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"
@@ -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.new_http_trigger_authentication_method import NewHttpTriggerAuthenticationMethod
6
7
  from ..models.new_http_trigger_http_method import NewHttpTriggerHttpMethod
7
8
  from ..types import UNSET, Unset
8
9
 
@@ -23,10 +24,11 @@ class NewHttpTrigger:
23
24
  is_flow (bool):
24
25
  http_method (NewHttpTriggerHttpMethod):
25
26
  is_async (bool):
26
- requires_auth (bool):
27
+ authentication_method (NewHttpTriggerAuthenticationMethod):
27
28
  is_static_website (bool):
28
29
  workspaced_route (Union[Unset, bool]):
29
30
  static_asset_config (Union[Unset, NewHttpTriggerStaticAssetConfig]):
31
+ authentication_resource_path (Union[Unset, str]):
30
32
  wrap_body (Union[Unset, bool]):
31
33
  raw_string (Union[Unset, bool]):
32
34
  """
@@ -37,10 +39,11 @@ class NewHttpTrigger:
37
39
  is_flow: bool
38
40
  http_method: NewHttpTriggerHttpMethod
39
41
  is_async: bool
40
- requires_auth: bool
42
+ authentication_method: NewHttpTriggerAuthenticationMethod
41
43
  is_static_website: bool
42
44
  workspaced_route: Union[Unset, bool] = UNSET
43
45
  static_asset_config: Union[Unset, "NewHttpTriggerStaticAssetConfig"] = 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)
@@ -53,13 +56,15 @@ class NewHttpTrigger:
53
56
  http_method = self.http_method.value
54
57
 
55
58
  is_async = self.is_async
56
- requires_auth = self.requires_auth
59
+ authentication_method = self.authentication_method.value
60
+
57
61
  is_static_website = self.is_static_website
58
62
  workspaced_route = self.workspaced_route
59
63
  static_asset_config: Union[Unset, Dict[str, Any]] = UNSET
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
 
@@ -73,7 +78,7 @@ class NewHttpTrigger:
73
78
  "is_flow": is_flow,
74
79
  "http_method": http_method,
75
80
  "is_async": is_async,
76
- "requires_auth": requires_auth,
81
+ "authentication_method": authentication_method,
77
82
  "is_static_website": is_static_website,
78
83
  }
79
84
  )
@@ -81,6 +86,8 @@ class NewHttpTrigger:
81
86
  field_dict["workspaced_route"] = workspaced_route
82
87
  if static_asset_config is not UNSET:
83
88
  field_dict["static_asset_config"] = static_asset_config
89
+ if authentication_resource_path is not UNSET:
90
+ field_dict["authentication_resource_path"] = authentication_resource_path
84
91
  if wrap_body is not UNSET:
85
92
  field_dict["wrap_body"] = wrap_body
86
93
  if raw_string is not UNSET:
@@ -105,7 +112,7 @@ class NewHttpTrigger:
105
112
 
106
113
  is_async = d.pop("is_async")
107
114
 
108
- requires_auth = d.pop("requires_auth")
115
+ authentication_method = NewHttpTriggerAuthenticationMethod(d.pop("authentication_method"))
109
116
 
110
117
  is_static_website = d.pop("is_static_website")
111
118
 
@@ -118,6 +125,8 @@ class NewHttpTrigger:
118
125
  else:
119
126
  static_asset_config = NewHttpTriggerStaticAssetConfig.from_dict(_static_asset_config)
120
127
 
128
+ authentication_resource_path = d.pop("authentication_resource_path", UNSET)
129
+
121
130
  wrap_body = d.pop("wrap_body", UNSET)
122
131
 
123
132
  raw_string = d.pop("raw_string", UNSET)
@@ -129,10 +138,11 @@ class NewHttpTrigger:
129
138
  is_flow=is_flow,
130
139
  http_method=http_method,
131
140
  is_async=is_async,
132
- requires_auth=requires_auth,
141
+ authentication_method=authentication_method,
133
142
  is_static_website=is_static_website,
134
143
  workspaced_route=workspaced_route,
135
144
  static_asset_config=static_asset_config,
145
+ authentication_resource_path=authentication_resource_path,
136
146
  wrap_body=wrap_body,
137
147
  raw_string=raw_string,
138
148
  )
@@ -0,0 +1,13 @@
1
+ from enum import Enum
2
+
3
+
4
+ class NewHttpTriggerAuthenticationMethod(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)
@@ -42,6 +42,7 @@ class NewSchedule:
42
42
  retry (Union[Unset, NewScheduleRetry]):
43
43
  no_flow_overlap (Union[Unset, bool]):
44
44
  summary (Union[Unset, str]):
45
+ description (Union[Unset, str]):
45
46
  tag (Union[Unset, str]):
46
47
  paused_until (Union[Unset, datetime.datetime]):
47
48
  cron_version (Union[Unset, str]):
@@ -67,6 +68,7 @@ class NewSchedule:
67
68
  retry: Union[Unset, "NewScheduleRetry"] = UNSET
68
69
  no_flow_overlap: Union[Unset, bool] = UNSET
69
70
  summary: Union[Unset, str] = UNSET
71
+ description: Union[Unset, str] = UNSET
70
72
  tag: Union[Unset, str] = UNSET
71
73
  paused_until: Union[Unset, datetime.datetime] = UNSET
72
74
  cron_version: Union[Unset, str] = UNSET
@@ -106,6 +108,7 @@ class NewSchedule:
106
108
 
107
109
  no_flow_overlap = self.no_flow_overlap
108
110
  summary = self.summary
111
+ description = self.description
109
112
  tag = self.tag
110
113
  paused_until: Union[Unset, str] = UNSET
111
114
  if not isinstance(self.paused_until, Unset):
@@ -153,6 +156,8 @@ class NewSchedule:
153
156
  field_dict["no_flow_overlap"] = no_flow_overlap
154
157
  if summary is not UNSET:
155
158
  field_dict["summary"] = summary
159
+ if description is not UNSET:
160
+ field_dict["description"] = description
156
161
  if tag is not UNSET:
157
162
  field_dict["tag"] = tag
158
163
  if paused_until is not UNSET:
@@ -231,6 +236,8 @@ class NewSchedule:
231
236
 
232
237
  summary = d.pop("summary", UNSET)
233
238
 
239
+ description = d.pop("description", UNSET)
240
+
234
241
  tag = d.pop("tag", UNSET)
235
242
 
236
243
  _paused_until = d.pop("paused_until", UNSET)
@@ -263,6 +270,7 @@ class NewSchedule:
263
270
  retry=retry,
264
271
  no_flow_overlap=no_flow_overlap,
265
272
  summary=summary,
273
+ description=description,
266
274
  tag=tag,
267
275
  paused_until=paused_until,
268
276
  cron_version=cron_version,
@@ -10,9 +10,11 @@ class NewScriptLanguage(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"
@@ -10,9 +10,11 @@ class NewScriptWithDraftDraftLanguage(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"
@@ -10,9 +10,11 @@ class NewScriptWithDraftLanguage(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"
@@ -10,9 +10,11 @@ class PreviewLanguage(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"
@@ -10,9 +10,11 @@ class QueuedJobLanguage(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"
@@ -10,9 +10,11 @@ class RawScriptForDependenciesLanguage(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"
@@ -10,9 +10,11 @@ class RunRawScriptDependenciesJsonBodyRawScriptsItemLanguage(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"