wandb 0.19.9__py3-none-any.whl → 0.19.11__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.
- wandb/__init__.py +1 -1
- wandb/__init__.pyi +6 -3
- wandb/_pydantic/__init__.py +14 -8
- wandb/_pydantic/base.py +51 -36
- wandb/_pydantic/utils.py +73 -0
- wandb/_pydantic/v1_compat.py +79 -57
- wandb/apis/public/__init__.py +2 -2
- wandb/apis/public/api.py +684 -4
- wandb/apis/public/artifacts.py +377 -677
- wandb/apis/public/automations.py +69 -0
- wandb/apis/public/integrations.py +180 -0
- wandb/apis/public/projects.py +29 -0
- wandb/apis/public/registries/__init__.py +0 -0
- wandb/apis/public/registries/_freezable_list.py +179 -0
- wandb/apis/public/{registries.py → registries/registries_search.py} +22 -129
- wandb/apis/public/registries/registry.py +357 -0
- wandb/apis/public/registries/utils.py +140 -0
- wandb/apis/public/runs.py +58 -56
- wandb/apis/public/utils.py +107 -1
- wandb/automations/__init__.py +73 -0
- wandb/automations/_filters/__init__.py +40 -0
- wandb/automations/_filters/expressions.py +181 -0
- wandb/automations/_filters/operators.py +258 -0
- wandb/automations/_filters/run_metrics.py +332 -0
- wandb/automations/_generated/__init__.py +177 -0
- wandb/automations/_generated/create_automation.py +17 -0
- wandb/automations/_generated/create_generic_webhook_integration.py +43 -0
- wandb/automations/_generated/delete_automation.py +17 -0
- wandb/automations/_generated/enums.py +33 -0
- wandb/automations/_generated/fragments.py +358 -0
- wandb/automations/_generated/generic_webhook_integrations_by_entity.py +22 -0
- wandb/automations/_generated/get_automations.py +24 -0
- wandb/automations/_generated/get_automations_by_entity.py +26 -0
- wandb/automations/_generated/input_types.py +104 -0
- wandb/automations/_generated/integrations_by_entity.py +22 -0
- wandb/automations/_generated/operations.py +647 -0
- wandb/automations/_generated/slack_integrations_by_entity.py +22 -0
- wandb/automations/_generated/update_automation.py +17 -0
- wandb/automations/_utils.py +237 -0
- wandb/automations/_validators.py +165 -0
- wandb/automations/actions.py +220 -0
- wandb/automations/automations.py +87 -0
- wandb/automations/events.py +287 -0
- wandb/automations/integrations.py +45 -0
- wandb/automations/scopes.py +78 -0
- wandb/beta/workflows.py +9 -10
- wandb/bin/gpu_stats +0 -0
- wandb/cli/cli.py +3 -3
- wandb/env.py +11 -0
- wandb/integration/keras/keras.py +2 -1
- wandb/integration/langchain/wandb_tracer.py +2 -1
- wandb/jupyter.py +137 -118
- wandb/old/settings.py +4 -1
- wandb/old/summary.py +0 -2
- wandb/proto/v3/wandb_internal_pb2.py +297 -292
- wandb/proto/v3/wandb_settings_pb2.py +2 -2
- wandb/proto/v3/wandb_telemetry_pb2.py +10 -10
- wandb/proto/v4/wandb_internal_pb2.py +292 -292
- wandb/proto/v4/wandb_settings_pb2.py +2 -2
- wandb/proto/v4/wandb_telemetry_pb2.py +10 -10
- wandb/proto/v5/wandb_internal_pb2.py +292 -292
- wandb/proto/v5/wandb_settings_pb2.py +2 -2
- wandb/proto/v5/wandb_telemetry_pb2.py +10 -10
- wandb/proto/v6/wandb_base_pb2.py +41 -0
- wandb/proto/v6/wandb_internal_pb2.py +393 -0
- wandb/proto/v6/wandb_server_pb2.py +78 -0
- wandb/proto/v6/wandb_settings_pb2.py +58 -0
- wandb/proto/v6/wandb_telemetry_pb2.py +52 -0
- wandb/proto/wandb_base_pb2.py +2 -0
- wandb/proto/wandb_deprecated.py +8 -0
- wandb/proto/wandb_internal_pb2.py +3 -1
- wandb/proto/wandb_server_pb2.py +2 -0
- wandb/proto/wandb_settings_pb2.py +2 -0
- wandb/proto/wandb_telemetry_pb2.py +2 -0
- wandb/sdk/artifacts/_generated/__init__.py +289 -0
- wandb/sdk/artifacts/_generated/add_aliases.py +21 -0
- wandb/sdk/artifacts/_generated/artifact_collection_membership_files.py +43 -0
- wandb/sdk/artifacts/_generated/artifact_version_files.py +36 -0
- wandb/sdk/artifacts/_generated/create_artifact_collection_tag_assignments.py +36 -0
- wandb/sdk/artifacts/_generated/delete_aliases.py +21 -0
- wandb/sdk/artifacts/_generated/delete_artifact_collection_tag_assignments.py +25 -0
- wandb/sdk/artifacts/_generated/delete_artifact_portfolio.py +35 -0
- wandb/sdk/artifacts/_generated/delete_artifact_sequence.py +35 -0
- wandb/sdk/artifacts/_generated/enums.py +17 -0
- wandb/sdk/artifacts/_generated/fetch_linked_artifacts.py +67 -0
- wandb/sdk/artifacts/_generated/fragments.py +221 -0
- wandb/sdk/artifacts/_generated/input_types.py +28 -0
- wandb/sdk/artifacts/_generated/move_artifact_collection.py +35 -0
- wandb/sdk/artifacts/_generated/operations.py +611 -0
- wandb/sdk/artifacts/_generated/project_artifact_collection.py +101 -0
- wandb/sdk/artifacts/_generated/project_artifact_collections.py +33 -0
- wandb/sdk/artifacts/_generated/project_artifact_type.py +24 -0
- wandb/sdk/artifacts/_generated/project_artifact_types.py +24 -0
- wandb/sdk/artifacts/_generated/project_artifacts.py +42 -0
- wandb/sdk/artifacts/_generated/run_input_artifacts.py +51 -0
- wandb/sdk/artifacts/_generated/run_output_artifacts.py +51 -0
- wandb/sdk/artifacts/_generated/update_artifact.py +26 -0
- wandb/sdk/artifacts/_generated/update_artifact_portfolio.py +35 -0
- wandb/sdk/artifacts/_generated/update_artifact_sequence.py +35 -0
- wandb/sdk/artifacts/_graphql_fragments.py +57 -79
- wandb/sdk/artifacts/_validators.py +120 -1
- wandb/sdk/artifacts/artifact.py +419 -215
- wandb/sdk/artifacts/artifact_file_cache.py +4 -6
- wandb/sdk/artifacts/artifact_manifest_entry.py +13 -3
- wandb/sdk/artifacts/storage_handlers/azure_handler.py +1 -0
- wandb/sdk/artifacts/storage_policies/wandb_storage_policy.py +182 -1
- wandb/sdk/artifacts/storage_policy.py +3 -0
- wandb/sdk/data_types/base_types/media.py +2 -3
- wandb/sdk/data_types/base_types/wb_value.py +34 -11
- wandb/sdk/data_types/html.py +36 -9
- wandb/sdk/data_types/image.py +12 -12
- wandb/sdk/data_types/table.py +5 -0
- wandb/sdk/data_types/trace_tree.py +2 -0
- wandb/sdk/data_types/utils.py +1 -1
- wandb/sdk/data_types/video.py +59 -57
- wandb/sdk/interface/interface.py +4 -3
- wandb/sdk/internal/internal_api.py +21 -31
- wandb/sdk/internal/profiler.py +6 -5
- wandb/sdk/internal/run.py +13 -6
- wandb/sdk/internal/sender.py +5 -2
- wandb/sdk/launch/sweeps/utils.py +8 -0
- wandb/sdk/lib/apikey.py +25 -4
- wandb/sdk/lib/asyncio_compat.py +1 -1
- wandb/sdk/lib/deprecate.py +13 -22
- wandb/sdk/lib/disabled.py +2 -1
- wandb/sdk/lib/printer.py +37 -8
- wandb/sdk/lib/printer_asyncio.py +46 -0
- wandb/sdk/lib/redirect.py +10 -5
- wandb/sdk/projects/_generated/__init__.py +47 -0
- wandb/sdk/projects/_generated/delete_project.py +22 -0
- wandb/sdk/projects/_generated/enums.py +4 -0
- wandb/sdk/projects/_generated/fetch_registry.py +22 -0
- wandb/sdk/projects/_generated/fragments.py +41 -0
- wandb/sdk/projects/_generated/input_types.py +13 -0
- wandb/sdk/projects/_generated/operations.py +88 -0
- wandb/sdk/projects/_generated/rename_project.py +27 -0
- wandb/sdk/projects/_generated/upsert_registry_project.py +27 -0
- wandb/sdk/service/server_sock.py +19 -14
- wandb/sdk/service/service.py +18 -8
- wandb/sdk/service/streams.py +5 -0
- wandb/sdk/verify/verify.py +6 -3
- wandb/sdk/wandb_init.py +217 -70
- wandb/sdk/wandb_login.py +13 -4
- wandb/sdk/wandb_run.py +419 -295
- wandb/sdk/wandb_settings.py +27 -10
- wandb/sdk/wandb_setup.py +61 -0
- wandb/util.py +33 -29
- {wandb-0.19.9.dist-info → wandb-0.19.11.dist-info}/METADATA +5 -5
- {wandb-0.19.9.dist-info → wandb-0.19.11.dist-info}/RECORD +152 -82
- wandb/_globals.py +0 -19
- wandb/sdk/internal/_generated/base.py +0 -226
- wandb/sdk/internal/_generated/typing_compat.py +0 -14
- {wandb-0.19.9.dist-info → wandb-0.19.11.dist-info}/WHEEL +0 -0
- {wandb-0.19.9.dist-info → wandb-0.19.11.dist-info}/entry_points.txt +0 -0
- {wandb-0.19.9.dist-info → wandb-0.19.11.dist-info}/licenses/LICENSE +0 -0
@@ -0,0 +1,358 @@
|
|
1
|
+
# Generated by ariadne-codegen
|
2
|
+
# Source: tools/graphql_codegen/automations/
|
3
|
+
|
4
|
+
from __future__ import annotations
|
5
|
+
|
6
|
+
from datetime import datetime
|
7
|
+
from typing import List, Literal, Optional, Union
|
8
|
+
|
9
|
+
from pydantic import Field
|
10
|
+
from typing_extensions import Annotated
|
11
|
+
|
12
|
+
from wandb._pydantic import GQLBase, GQLId, Typename
|
13
|
+
|
14
|
+
from .enums import AlertSeverity, EventTriggeringConditionType
|
15
|
+
|
16
|
+
|
17
|
+
class ArtifactPortfolioScopeFields(GQLBase):
|
18
|
+
typename__: Typename[Literal["ArtifactPortfolio"]] = "ArtifactPortfolio"
|
19
|
+
id: GQLId
|
20
|
+
name: str
|
21
|
+
|
22
|
+
|
23
|
+
class ArtifactSequenceScopeFields(GQLBase):
|
24
|
+
typename__: Typename[Literal["ArtifactSequence"]] = "ArtifactSequence"
|
25
|
+
id: GQLId
|
26
|
+
name: str
|
27
|
+
|
28
|
+
|
29
|
+
class CreateAutomationResult(GQLBase):
|
30
|
+
typename__: Typename[Literal["CreateFilterTriggerPayload"]] = (
|
31
|
+
"CreateFilterTriggerPayload"
|
32
|
+
)
|
33
|
+
trigger: Optional[TriggerFields]
|
34
|
+
|
35
|
+
|
36
|
+
class DeleteAutomationResult(GQLBase):
|
37
|
+
typename__: Typename[Literal["DeleteTriggerPayload"]] = "DeleteTriggerPayload"
|
38
|
+
success: bool
|
39
|
+
|
40
|
+
|
41
|
+
class FilterEventFields(GQLBase):
|
42
|
+
typename__: Typename[Literal["FilterEventTriggeringCondition"]] = (
|
43
|
+
"FilterEventTriggeringCondition"
|
44
|
+
)
|
45
|
+
event_type: EventTriggeringConditionType = Field(alias="eventType")
|
46
|
+
filter: str
|
47
|
+
|
48
|
+
|
49
|
+
class GenericWebhookActionFields(GQLBase):
|
50
|
+
typename__: Typename[Literal["GenericWebhookTriggeredAction"]] = (
|
51
|
+
"GenericWebhookTriggeredAction"
|
52
|
+
)
|
53
|
+
integration: Union[
|
54
|
+
GenericWebhookActionFieldsIntegrationIntegration,
|
55
|
+
GenericWebhookActionFieldsIntegrationGenericWebhookIntegration,
|
56
|
+
] = Field(discriminator="typename__")
|
57
|
+
request_payload: Optional[str] = Field(alias="requestPayload")
|
58
|
+
|
59
|
+
|
60
|
+
class GenericWebhookActionFieldsIntegrationIntegration(GQLBase):
|
61
|
+
typename__: Typename[
|
62
|
+
Literal["GitHubOAuthIntegration", "Integration", "SlackIntegration"]
|
63
|
+
]
|
64
|
+
|
65
|
+
|
66
|
+
class GenericWebhookIntegrationConnectionFields(GQLBase):
|
67
|
+
typename__: Typename[Literal["IntegrationConnection"]] = "IntegrationConnection"
|
68
|
+
page_info: PageInfoFields = Field(alias="pageInfo")
|
69
|
+
edges: List[GenericWebhookIntegrationConnectionFieldsEdges]
|
70
|
+
|
71
|
+
|
72
|
+
class GenericWebhookIntegrationConnectionFieldsEdges(GQLBase):
|
73
|
+
cursor: str
|
74
|
+
node: Optional[
|
75
|
+
Annotated[
|
76
|
+
Union[
|
77
|
+
GenericWebhookIntegrationConnectionFieldsEdgesNodeIntegration,
|
78
|
+
GenericWebhookIntegrationConnectionFieldsEdgesNodeGenericWebhookIntegration,
|
79
|
+
],
|
80
|
+
Field(discriminator="typename__"),
|
81
|
+
]
|
82
|
+
]
|
83
|
+
|
84
|
+
|
85
|
+
class GenericWebhookIntegrationConnectionFieldsEdgesNodeIntegration(GQLBase):
|
86
|
+
typename__: Typename[
|
87
|
+
Literal["GitHubOAuthIntegration", "Integration", "SlackIntegration"]
|
88
|
+
]
|
89
|
+
|
90
|
+
|
91
|
+
class GenericWebhookIntegrationFields(GQLBase):
|
92
|
+
typename__: Typename[Literal["GenericWebhookIntegration"]] = (
|
93
|
+
"GenericWebhookIntegration"
|
94
|
+
)
|
95
|
+
id: GQLId
|
96
|
+
name: str
|
97
|
+
url_endpoint: str = Field(alias="urlEndpoint")
|
98
|
+
|
99
|
+
|
100
|
+
class IntegrationConnectionFields(GQLBase):
|
101
|
+
typename__: Typename[Literal["IntegrationConnection"]] = "IntegrationConnection"
|
102
|
+
page_info: PageInfoFields = Field(alias="pageInfo")
|
103
|
+
edges: List[IntegrationConnectionFieldsEdges]
|
104
|
+
|
105
|
+
|
106
|
+
class IntegrationConnectionFieldsEdges(GQLBase):
|
107
|
+
cursor: str
|
108
|
+
node: Optional[
|
109
|
+
Annotated[
|
110
|
+
Union[
|
111
|
+
IntegrationConnectionFieldsEdgesNodeIntegration,
|
112
|
+
IntegrationConnectionFieldsEdgesNodeGenericWebhookIntegration,
|
113
|
+
IntegrationConnectionFieldsEdgesNodeSlackIntegration,
|
114
|
+
],
|
115
|
+
Field(discriminator="typename__"),
|
116
|
+
]
|
117
|
+
]
|
118
|
+
|
119
|
+
|
120
|
+
class IntegrationConnectionFieldsEdgesNodeIntegration(GQLBase):
|
121
|
+
typename__: Typename[Literal["GitHubOAuthIntegration", "Integration"]]
|
122
|
+
|
123
|
+
|
124
|
+
class NoOpActionFields(GQLBase):
|
125
|
+
typename__: Typename[Literal["NoOpTriggeredAction"]] = "NoOpTriggeredAction"
|
126
|
+
no_op: Optional[bool] = Field(alias="noOp")
|
127
|
+
|
128
|
+
|
129
|
+
class NotificationActionFields(GQLBase):
|
130
|
+
typename__: Typename[Literal["NotificationTriggeredAction"]] = (
|
131
|
+
"NotificationTriggeredAction"
|
132
|
+
)
|
133
|
+
integration: Union[
|
134
|
+
NotificationActionFieldsIntegrationIntegration,
|
135
|
+
NotificationActionFieldsIntegrationSlackIntegration,
|
136
|
+
] = Field(discriminator="typename__")
|
137
|
+
title: Optional[str]
|
138
|
+
message: Optional[str]
|
139
|
+
severity: Optional[AlertSeverity]
|
140
|
+
|
141
|
+
|
142
|
+
class NotificationActionFieldsIntegrationIntegration(GQLBase):
|
143
|
+
typename__: Typename[
|
144
|
+
Literal["GenericWebhookIntegration", "GitHubOAuthIntegration", "Integration"]
|
145
|
+
]
|
146
|
+
|
147
|
+
|
148
|
+
class PageInfoFields(GQLBase):
|
149
|
+
end_cursor: Optional[str] = Field(alias="endCursor")
|
150
|
+
has_next_page: bool = Field(alias="hasNextPage")
|
151
|
+
|
152
|
+
|
153
|
+
class ProjectConnectionFields(GQLBase):
|
154
|
+
typename__: Typename[Literal["ProjectConnection"]] = "ProjectConnection"
|
155
|
+
page_info: PageInfoFields = Field(alias="pageInfo")
|
156
|
+
edges: List[ProjectConnectionFieldsEdges]
|
157
|
+
|
158
|
+
|
159
|
+
class ProjectConnectionFieldsEdges(GQLBase):
|
160
|
+
cursor: str
|
161
|
+
node: Optional[ProjectConnectionFieldsEdgesNode]
|
162
|
+
|
163
|
+
|
164
|
+
class ProjectConnectionFieldsEdgesNode(GQLBase):
|
165
|
+
triggers: List[TriggerFields]
|
166
|
+
|
167
|
+
|
168
|
+
class ProjectScopeFields(GQLBase):
|
169
|
+
typename__: Typename[Literal["Project"]] = "Project"
|
170
|
+
id: GQLId
|
171
|
+
name: str
|
172
|
+
|
173
|
+
|
174
|
+
class QueueJobActionFields(GQLBase):
|
175
|
+
typename__: Typename[Literal["QueueJobTriggeredAction"]] = "QueueJobTriggeredAction"
|
176
|
+
queue: Optional[QueueJobActionFieldsQueue]
|
177
|
+
template: str
|
178
|
+
|
179
|
+
|
180
|
+
class QueueJobActionFieldsQueue(GQLBase):
|
181
|
+
id: GQLId
|
182
|
+
name: str
|
183
|
+
|
184
|
+
|
185
|
+
class SlackIntegrationConnectionFields(GQLBase):
|
186
|
+
typename__: Typename[Literal["IntegrationConnection"]] = "IntegrationConnection"
|
187
|
+
page_info: PageInfoFields = Field(alias="pageInfo")
|
188
|
+
edges: List[SlackIntegrationConnectionFieldsEdges]
|
189
|
+
|
190
|
+
|
191
|
+
class SlackIntegrationConnectionFieldsEdges(GQLBase):
|
192
|
+
cursor: str
|
193
|
+
node: Optional[
|
194
|
+
Annotated[
|
195
|
+
Union[
|
196
|
+
SlackIntegrationConnectionFieldsEdgesNodeIntegration,
|
197
|
+
SlackIntegrationConnectionFieldsEdgesNodeSlackIntegration,
|
198
|
+
],
|
199
|
+
Field(discriminator="typename__"),
|
200
|
+
]
|
201
|
+
]
|
202
|
+
|
203
|
+
|
204
|
+
class SlackIntegrationConnectionFieldsEdgesNodeIntegration(GQLBase):
|
205
|
+
typename__: Typename[
|
206
|
+
Literal["GenericWebhookIntegration", "GitHubOAuthIntegration", "Integration"]
|
207
|
+
]
|
208
|
+
|
209
|
+
|
210
|
+
class SlackIntegrationFields(GQLBase):
|
211
|
+
typename__: Typename[Literal["SlackIntegration"]] = "SlackIntegration"
|
212
|
+
id: GQLId
|
213
|
+
team_name: str = Field(alias="teamName")
|
214
|
+
channel_name: str = Field(alias="channelName")
|
215
|
+
|
216
|
+
|
217
|
+
class TriggerFields(GQLBase):
|
218
|
+
typename__: Typename[Literal["Trigger"]] = "Trigger"
|
219
|
+
id: GQLId
|
220
|
+
created_at: datetime = Field(alias="createdAt")
|
221
|
+
updated_at: Optional[datetime] = Field(alias="updatedAt")
|
222
|
+
name: str
|
223
|
+
description: Optional[str]
|
224
|
+
enabled: bool
|
225
|
+
scope: Union[
|
226
|
+
TriggerFieldsScopeProject,
|
227
|
+
TriggerFieldsScopeArtifactSequence,
|
228
|
+
TriggerFieldsScopeArtifactPortfolio,
|
229
|
+
] = Field(discriminator="typename__")
|
230
|
+
event: TriggerFieldsEventFilterEventTriggeringCondition
|
231
|
+
action: Union[
|
232
|
+
TriggerFieldsActionQueueJobTriggeredAction,
|
233
|
+
TriggerFieldsActionNotificationTriggeredAction,
|
234
|
+
TriggerFieldsActionGenericWebhookTriggeredAction,
|
235
|
+
TriggerFieldsActionNoOpTriggeredAction,
|
236
|
+
] = Field(discriminator="typename__")
|
237
|
+
|
238
|
+
|
239
|
+
class UpdateAutomationResult(GQLBase):
|
240
|
+
typename__: Typename[Literal["UpdateFilterTriggerPayload"]] = (
|
241
|
+
"UpdateFilterTriggerPayload"
|
242
|
+
)
|
243
|
+
trigger: Optional[TriggerFields]
|
244
|
+
|
245
|
+
|
246
|
+
class TriggerFieldsScopeArtifactPortfolio(ArtifactPortfolioScopeFields):
|
247
|
+
typename__: Typename[Literal["ArtifactPortfolio"]]
|
248
|
+
|
249
|
+
|
250
|
+
class TriggerFieldsScopeArtifactSequence(ArtifactSequenceScopeFields):
|
251
|
+
typename__: Typename[Literal["ArtifactSequence"]]
|
252
|
+
|
253
|
+
|
254
|
+
class TriggerFieldsEventFilterEventTriggeringCondition(FilterEventFields):
|
255
|
+
typename__: Typename[Literal["FilterEventTriggeringCondition"]]
|
256
|
+
|
257
|
+
|
258
|
+
class TriggerFieldsActionGenericWebhookTriggeredAction(GenericWebhookActionFields):
|
259
|
+
typename__: Typename[Literal["GenericWebhookTriggeredAction"]]
|
260
|
+
|
261
|
+
|
262
|
+
class GenericWebhookActionFieldsIntegrationGenericWebhookIntegration(
|
263
|
+
GenericWebhookIntegrationFields
|
264
|
+
):
|
265
|
+
typename__: Typename[Literal["GenericWebhookIntegration"]]
|
266
|
+
|
267
|
+
|
268
|
+
class GenericWebhookIntegrationConnectionFieldsEdgesNodeGenericWebhookIntegration(
|
269
|
+
GenericWebhookIntegrationFields
|
270
|
+
):
|
271
|
+
typename__: Typename[Literal["GenericWebhookIntegration"]]
|
272
|
+
|
273
|
+
|
274
|
+
class IntegrationConnectionFieldsEdgesNodeGenericWebhookIntegration(
|
275
|
+
GenericWebhookIntegrationFields
|
276
|
+
):
|
277
|
+
typename__: Typename[Literal["GenericWebhookIntegration"]]
|
278
|
+
|
279
|
+
|
280
|
+
class TriggerFieldsActionNoOpTriggeredAction(NoOpActionFields):
|
281
|
+
typename__: Typename[Literal["NoOpTriggeredAction"]]
|
282
|
+
|
283
|
+
|
284
|
+
class TriggerFieldsActionNotificationTriggeredAction(NotificationActionFields):
|
285
|
+
typename__: Typename[Literal["NotificationTriggeredAction"]]
|
286
|
+
|
287
|
+
|
288
|
+
class TriggerFieldsScopeProject(ProjectScopeFields):
|
289
|
+
typename__: Typename[Literal["Project"]]
|
290
|
+
|
291
|
+
|
292
|
+
class TriggerFieldsActionQueueJobTriggeredAction(QueueJobActionFields):
|
293
|
+
typename__: Typename[Literal["QueueJobTriggeredAction"]]
|
294
|
+
|
295
|
+
|
296
|
+
class IntegrationConnectionFieldsEdgesNodeSlackIntegration(SlackIntegrationFields):
|
297
|
+
typename__: Typename[Literal["SlackIntegration"]]
|
298
|
+
|
299
|
+
|
300
|
+
class NotificationActionFieldsIntegrationSlackIntegration(SlackIntegrationFields):
|
301
|
+
typename__: Typename[Literal["SlackIntegration"]]
|
302
|
+
|
303
|
+
|
304
|
+
class SlackIntegrationConnectionFieldsEdgesNodeSlackIntegration(SlackIntegrationFields):
|
305
|
+
typename__: Typename[Literal["SlackIntegration"]]
|
306
|
+
|
307
|
+
|
308
|
+
ArtifactPortfolioScopeFields.model_rebuild()
|
309
|
+
ArtifactSequenceScopeFields.model_rebuild()
|
310
|
+
CreateAutomationResult.model_rebuild()
|
311
|
+
DeleteAutomationResult.model_rebuild()
|
312
|
+
FilterEventFields.model_rebuild()
|
313
|
+
GenericWebhookActionFields.model_rebuild()
|
314
|
+
GenericWebhookActionFieldsIntegrationIntegration.model_rebuild()
|
315
|
+
GenericWebhookIntegrationConnectionFields.model_rebuild()
|
316
|
+
GenericWebhookIntegrationConnectionFieldsEdges.model_rebuild()
|
317
|
+
GenericWebhookIntegrationConnectionFieldsEdgesNodeIntegration.model_rebuild()
|
318
|
+
GenericWebhookIntegrationFields.model_rebuild()
|
319
|
+
IntegrationConnectionFields.model_rebuild()
|
320
|
+
IntegrationConnectionFieldsEdges.model_rebuild()
|
321
|
+
IntegrationConnectionFieldsEdgesNodeIntegration.model_rebuild()
|
322
|
+
NoOpActionFields.model_rebuild()
|
323
|
+
NotificationActionFields.model_rebuild()
|
324
|
+
NotificationActionFieldsIntegrationIntegration.model_rebuild()
|
325
|
+
PageInfoFields.model_rebuild()
|
326
|
+
ProjectConnectionFields.model_rebuild()
|
327
|
+
ProjectConnectionFieldsEdges.model_rebuild()
|
328
|
+
ProjectConnectionFieldsEdgesNode.model_rebuild()
|
329
|
+
ProjectScopeFields.model_rebuild()
|
330
|
+
QueueJobActionFields.model_rebuild()
|
331
|
+
QueueJobActionFieldsQueue.model_rebuild()
|
332
|
+
SlackIntegrationConnectionFields.model_rebuild()
|
333
|
+
SlackIntegrationConnectionFieldsEdges.model_rebuild()
|
334
|
+
SlackIntegrationConnectionFieldsEdgesNodeIntegration.model_rebuild()
|
335
|
+
SlackIntegrationFields.model_rebuild()
|
336
|
+
TriggerFields.model_rebuild()
|
337
|
+
UpdateAutomationResult.model_rebuild()
|
338
|
+
TriggerFieldsScopeArtifactPortfolio.model_rebuild()
|
339
|
+
TriggerFieldsScopeArtifactSequence.model_rebuild()
|
340
|
+
TriggerFieldsEventFilterEventTriggeringCondition.model_rebuild()
|
341
|
+
TriggerFieldsActionGenericWebhookTriggeredAction.model_rebuild()
|
342
|
+
GenericWebhookActionFieldsIntegrationGenericWebhookIntegration.model_rebuild()
|
343
|
+
GenericWebhookIntegrationConnectionFieldsEdgesNodeGenericWebhookIntegration.model_rebuild()
|
344
|
+
IntegrationConnectionFieldsEdgesNodeGenericWebhookIntegration.model_rebuild()
|
345
|
+
TriggerFieldsActionNoOpTriggeredAction.model_rebuild()
|
346
|
+
TriggerFieldsActionNotificationTriggeredAction.model_rebuild()
|
347
|
+
PageInfoFields.model_rebuild()
|
348
|
+
PageInfoFields.model_rebuild()
|
349
|
+
PageInfoFields.model_rebuild()
|
350
|
+
PageInfoFields.model_rebuild()
|
351
|
+
TriggerFieldsScopeProject.model_rebuild()
|
352
|
+
TriggerFieldsActionQueueJobTriggeredAction.model_rebuild()
|
353
|
+
IntegrationConnectionFieldsEdgesNodeSlackIntegration.model_rebuild()
|
354
|
+
NotificationActionFieldsIntegrationSlackIntegration.model_rebuild()
|
355
|
+
SlackIntegrationConnectionFieldsEdgesNodeSlackIntegration.model_rebuild()
|
356
|
+
TriggerFields.model_rebuild()
|
357
|
+
TriggerFields.model_rebuild()
|
358
|
+
TriggerFields.model_rebuild()
|
@@ -0,0 +1,22 @@
|
|
1
|
+
# Generated by ariadne-codegen
|
2
|
+
# Source: tools/graphql_codegen/automations/
|
3
|
+
|
4
|
+
from __future__ import annotations
|
5
|
+
|
6
|
+
from typing import Optional
|
7
|
+
|
8
|
+
from wandb._pydantic import GQLBase
|
9
|
+
|
10
|
+
from .fragments import GenericWebhookIntegrationConnectionFields
|
11
|
+
|
12
|
+
|
13
|
+
class GenericWebhookIntegrationsByEntity(GQLBase):
|
14
|
+
entity: Optional[GenericWebhookIntegrationsByEntityEntity]
|
15
|
+
|
16
|
+
|
17
|
+
class GenericWebhookIntegrationsByEntityEntity(GQLBase):
|
18
|
+
integrations: Optional[GenericWebhookIntegrationConnectionFields]
|
19
|
+
|
20
|
+
|
21
|
+
GenericWebhookIntegrationsByEntity.model_rebuild()
|
22
|
+
GenericWebhookIntegrationsByEntityEntity.model_rebuild()
|
@@ -0,0 +1,24 @@
|
|
1
|
+
# Generated by ariadne-codegen
|
2
|
+
# Source: tools/graphql_codegen/automations/
|
3
|
+
|
4
|
+
from __future__ import annotations
|
5
|
+
|
6
|
+
from typing import Optional
|
7
|
+
|
8
|
+
from pydantic import Field
|
9
|
+
|
10
|
+
from wandb._pydantic import GQLBase
|
11
|
+
|
12
|
+
from .fragments import ProjectConnectionFields
|
13
|
+
|
14
|
+
|
15
|
+
class GetAutomations(GQLBase):
|
16
|
+
search_scope: Optional[GetAutomationsSearchScope] = Field(alias="searchScope")
|
17
|
+
|
18
|
+
|
19
|
+
class GetAutomationsSearchScope(GQLBase):
|
20
|
+
projects: Optional[ProjectConnectionFields]
|
21
|
+
|
22
|
+
|
23
|
+
GetAutomations.model_rebuild()
|
24
|
+
GetAutomationsSearchScope.model_rebuild()
|
@@ -0,0 +1,26 @@
|
|
1
|
+
# Generated by ariadne-codegen
|
2
|
+
# Source: tools/graphql_codegen/automations/
|
3
|
+
|
4
|
+
from __future__ import annotations
|
5
|
+
|
6
|
+
from typing import Optional
|
7
|
+
|
8
|
+
from pydantic import Field
|
9
|
+
|
10
|
+
from wandb._pydantic import GQLBase
|
11
|
+
|
12
|
+
from .fragments import ProjectConnectionFields
|
13
|
+
|
14
|
+
|
15
|
+
class GetAutomationsByEntity(GQLBase):
|
16
|
+
search_scope: Optional[GetAutomationsByEntitySearchScope] = Field(
|
17
|
+
alias="searchScope"
|
18
|
+
)
|
19
|
+
|
20
|
+
|
21
|
+
class GetAutomationsByEntitySearchScope(GQLBase):
|
22
|
+
projects: Optional[ProjectConnectionFields]
|
23
|
+
|
24
|
+
|
25
|
+
GetAutomationsByEntity.model_rebuild()
|
26
|
+
GetAutomationsByEntitySearchScope.model_rebuild()
|
@@ -0,0 +1,104 @@
|
|
1
|
+
# Generated by ariadne-codegen
|
2
|
+
# Source: core/api/graphql/schemas/schema-latest.graphql
|
3
|
+
|
4
|
+
from __future__ import annotations
|
5
|
+
|
6
|
+
from typing import Optional
|
7
|
+
|
8
|
+
from pydantic import Field
|
9
|
+
|
10
|
+
from wandb._pydantic import GQLBase, GQLId
|
11
|
+
|
12
|
+
from .enums import (
|
13
|
+
AlertSeverity,
|
14
|
+
EventTriggeringConditionType,
|
15
|
+
TriggeredActionType,
|
16
|
+
TriggerScopeType,
|
17
|
+
)
|
18
|
+
|
19
|
+
|
20
|
+
class CreateGenericWebhookIntegrationInput(GQLBase):
|
21
|
+
entity_name: str = Field(alias="entityName")
|
22
|
+
url_endpoint: str = Field(alias="urlEndpoint")
|
23
|
+
name: str
|
24
|
+
secret_ref: Optional[str] = Field(alias="secretRef", default=None)
|
25
|
+
access_token_ref: Optional[str] = Field(alias="accessTokenRef", default=None)
|
26
|
+
client_mutation_id: Optional[str] = Field(alias="clientMutationId", default=None)
|
27
|
+
|
28
|
+
|
29
|
+
class QueueJobActionInput(GQLBase):
|
30
|
+
queue_id: GQLId = Field(alias="queueID")
|
31
|
+
template: str
|
32
|
+
|
33
|
+
|
34
|
+
class NotificationActionInput(GQLBase):
|
35
|
+
integration_id: GQLId = Field(alias="integrationID")
|
36
|
+
title: Optional[str] = None
|
37
|
+
message: Optional[str] = None
|
38
|
+
severity: Optional[AlertSeverity] = None
|
39
|
+
|
40
|
+
|
41
|
+
class GenericWebhookActionInput(GQLBase):
|
42
|
+
integration_id: GQLId = Field(alias="integrationID")
|
43
|
+
request_payload: Optional[str] = Field(alias="requestPayload", default=None)
|
44
|
+
|
45
|
+
|
46
|
+
class NoOpTriggeredActionInput(GQLBase):
|
47
|
+
no_op: Optional[bool] = Field(alias="noOp", default=None)
|
48
|
+
|
49
|
+
|
50
|
+
class TriggeredActionConfig(GQLBase):
|
51
|
+
queue_job_action_input: Optional[QueueJobActionInput] = Field(
|
52
|
+
alias="queueJobActionInput", default=None
|
53
|
+
)
|
54
|
+
notification_action_input: Optional[NotificationActionInput] = Field(
|
55
|
+
alias="notificationActionInput", default=None
|
56
|
+
)
|
57
|
+
generic_webhook_action_input: Optional[GenericWebhookActionInput] = Field(
|
58
|
+
alias="genericWebhookActionInput", default=None
|
59
|
+
)
|
60
|
+
no_op_action_input: Optional[NoOpTriggeredActionInput] = Field(
|
61
|
+
alias="noOpActionInput", default=None
|
62
|
+
)
|
63
|
+
|
64
|
+
|
65
|
+
class CreateFilterTriggerInput(GQLBase):
|
66
|
+
name: str
|
67
|
+
description: Optional[str] = None
|
68
|
+
triggering_event_type: EventTriggeringConditionType = Field(
|
69
|
+
alias="triggeringEventType"
|
70
|
+
)
|
71
|
+
scope_type: TriggerScopeType = Field(alias="scopeType")
|
72
|
+
scope_id: GQLId = Field(alias="scopeID")
|
73
|
+
event_filter: str = Field(alias="eventFilter")
|
74
|
+
triggered_action_type: TriggeredActionType = Field(alias="triggeredActionType")
|
75
|
+
triggered_action_config: TriggeredActionConfig = Field(
|
76
|
+
alias="triggeredActionConfig"
|
77
|
+
)
|
78
|
+
enabled: bool
|
79
|
+
client_mutation_id: Optional[str] = Field(alias="clientMutationId", default=None)
|
80
|
+
|
81
|
+
|
82
|
+
class UpdateFilterTriggerInput(GQLBase):
|
83
|
+
id: GQLId
|
84
|
+
name: Optional[str] = None
|
85
|
+
description: Optional[str] = None
|
86
|
+
triggering_event_type: Optional[EventTriggeringConditionType] = Field(
|
87
|
+
alias="triggeringEventType", default=None
|
88
|
+
)
|
89
|
+
scope_type: Optional[TriggerScopeType] = Field(alias="scopeType", default=None)
|
90
|
+
scope_id: Optional[GQLId] = Field(alias="scopeID", default=None)
|
91
|
+
event_filter: Optional[str] = Field(alias="eventFilter", default=None)
|
92
|
+
triggered_action_type: Optional[TriggeredActionType] = Field(
|
93
|
+
alias="triggeredActionType", default=None
|
94
|
+
)
|
95
|
+
triggered_action_config: Optional[TriggeredActionConfig] = Field(
|
96
|
+
alias="triggeredActionConfig", default=None
|
97
|
+
)
|
98
|
+
enabled: Optional[bool] = None
|
99
|
+
client_mutation_id: Optional[str] = Field(alias="clientMutationId", default=None)
|
100
|
+
|
101
|
+
|
102
|
+
TriggeredActionConfig.model_rebuild()
|
103
|
+
CreateFilterTriggerInput.model_rebuild()
|
104
|
+
UpdateFilterTriggerInput.model_rebuild()
|
@@ -0,0 +1,22 @@
|
|
1
|
+
# Generated by ariadne-codegen
|
2
|
+
# Source: tools/graphql_codegen/automations/
|
3
|
+
|
4
|
+
from __future__ import annotations
|
5
|
+
|
6
|
+
from typing import Optional
|
7
|
+
|
8
|
+
from wandb._pydantic import GQLBase
|
9
|
+
|
10
|
+
from .fragments import IntegrationConnectionFields
|
11
|
+
|
12
|
+
|
13
|
+
class IntegrationsByEntity(GQLBase):
|
14
|
+
entity: Optional[IntegrationsByEntityEntity]
|
15
|
+
|
16
|
+
|
17
|
+
class IntegrationsByEntityEntity(GQLBase):
|
18
|
+
integrations: Optional[IntegrationConnectionFields]
|
19
|
+
|
20
|
+
|
21
|
+
IntegrationsByEntity.model_rebuild()
|
22
|
+
IntegrationsByEntityEntity.model_rebuild()
|