wandb 0.19.9__py3-none-macosx_11_0_arm64.whl → 0.19.10__py3-none-macosx_11_0_arm64.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 +4 -1
- wandb/_pydantic/__init__.py +14 -7
- wandb/_pydantic/base.py +44 -9
- wandb/_pydantic/utils.py +66 -0
- wandb/_pydantic/v1_compat.py +78 -56
- wandb/apis/public/__init__.py +2 -2
- wandb/apis/public/api.py +114 -2
- wandb/apis/public/artifacts.py +365 -673
- wandb/apis/public/automations.py +69 -0
- wandb/apis/public/integrations.py +168 -0
- wandb/apis/public/projects.py +29 -0
- wandb/apis/public/utils.py +107 -1
- wandb/automations/__init__.py +81 -0
- wandb/automations/_filters/__init__.py +40 -0
- wandb/automations/_filters/expressions.py +179 -0
- wandb/automations/_filters/operators.py +267 -0
- wandb/automations/_filters/run_metrics.py +183 -0
- wandb/automations/_generated/__init__.py +184 -0
- wandb/automations/_generated/create_filter_trigger.py +21 -0
- wandb/automations/_generated/create_generic_webhook_integration.py +43 -0
- wandb/automations/_generated/delete_trigger.py +19 -0
- wandb/automations/_generated/enums.py +33 -0
- wandb/automations/_generated/fragments.py +343 -0
- wandb/automations/_generated/generic_webhook_integrations_by_entity.py +22 -0
- wandb/automations/_generated/get_triggers.py +24 -0
- wandb/automations/_generated/get_triggers_by_entity.py +24 -0
- wandb/automations/_generated/input_types.py +104 -0
- wandb/automations/_generated/integrations_by_entity.py +22 -0
- wandb/automations/_generated/operations.py +710 -0
- wandb/automations/_generated/slack_integrations_by_entity.py +22 -0
- wandb/automations/_generated/update_filter_trigger.py +21 -0
- wandb/automations/_utils.py +123 -0
- wandb/automations/_validators.py +73 -0
- wandb/automations/actions.py +205 -0
- wandb/automations/automations.py +109 -0
- wandb/automations/events.py +235 -0
- wandb/automations/integrations.py +26 -0
- wandb/automations/scopes.py +76 -0
- wandb/beta/workflows.py +9 -10
- wandb/bin/gpu_stats +0 -0
- wandb/bin/wandb-core +0 -0
- wandb/cli/cli.py +3 -3
- wandb/integration/keras/keras.py +2 -1
- wandb/integration/langchain/wandb_tracer.py +2 -1
- wandb/jupyter.py +137 -118
- wandb/old/summary.py +0 -2
- wandb/proto/v3/wandb_internal_pb2.py +293 -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 +248 -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_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/fragments.py +186 -0
- wandb/sdk/artifacts/_generated/input_types.py +16 -0
- wandb/sdk/artifacts/_generated/move_artifact_collection.py +35 -0
- wandb/sdk/artifacts/_generated/operations.py +510 -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_portfolio.py +35 -0
- wandb/sdk/artifacts/_generated/update_artifact_sequence.py +35 -0
- wandb/sdk/artifacts/_graphql_fragments.py +56 -79
- wandb/sdk/artifacts/artifact.py +40 -13
- wandb/sdk/artifacts/artifact_manifest_entry.py +2 -1
- wandb/sdk/artifacts/storage_handlers/azure_handler.py +1 -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 +14 -26
- wandb/sdk/interface/interface.py +2 -0
- wandb/sdk/internal/profiler.py +6 -5
- wandb/sdk/internal/run.py +13 -6
- 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/service/server_sock.py +19 -14
- wandb/sdk/service/service.py +9 -7
- wandb/sdk/service/streams.py +5 -0
- wandb/sdk/verify/verify.py +6 -3
- wandb/sdk/wandb_init.py +185 -65
- wandb/sdk/wandb_login.py +13 -4
- wandb/sdk/wandb_run.py +382 -286
- wandb/sdk/wandb_settings.py +21 -3
- wandb/sdk/wandb_setup.py +49 -0
- wandb/util.py +29 -29
- {wandb-0.19.9.dist-info → wandb-0.19.10.dist-info}/METADATA +5 -5
- {wandb-0.19.9.dist-info → wandb-0.19.10.dist-info}/RECORD +125 -72
- 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.10.dist-info}/WHEEL +0 -0
- {wandb-0.19.9.dist-info → wandb-0.19.10.dist-info}/entry_points.txt +0 -0
- {wandb-0.19.9.dist-info → wandb-0.19.10.dist-info}/licenses/LICENSE +0 -0
@@ -0,0 +1,710 @@
|
|
1
|
+
# Generated by ariadne-codegen
|
2
|
+
# Source: tools/graphql_codegen/automations/
|
3
|
+
|
4
|
+
__all__ = [
|
5
|
+
"CREATE_FILTER_TRIGGER_GQL",
|
6
|
+
"CREATE_GENERIC_WEBHOOK_INTEGRATION_GQL",
|
7
|
+
"DELETE_TRIGGER_GQL",
|
8
|
+
"GENERIC_WEBHOOK_INTEGRATIONS_BY_ENTITY_GQL",
|
9
|
+
"GET_TRIGGERS_BY_ENTITY_GQL",
|
10
|
+
"GET_TRIGGERS_GQL",
|
11
|
+
"INTEGRATIONS_BY_ENTITY_GQL",
|
12
|
+
"SLACK_INTEGRATIONS_BY_ENTITY_GQL",
|
13
|
+
"UPDATE_FILTER_TRIGGER_GQL",
|
14
|
+
]
|
15
|
+
|
16
|
+
GET_TRIGGERS_GQL = """
|
17
|
+
query GetTriggers($cursor: String, $perPage: Int) {
|
18
|
+
searchScope: viewer {
|
19
|
+
projects(after: $cursor, first: $perPage) {
|
20
|
+
...ProjectConnectionFields
|
21
|
+
}
|
22
|
+
}
|
23
|
+
}
|
24
|
+
|
25
|
+
fragment ArtifactPortfolioScopeFields on ArtifactPortfolio {
|
26
|
+
__typename
|
27
|
+
id
|
28
|
+
name
|
29
|
+
}
|
30
|
+
|
31
|
+
fragment ArtifactSequenceScopeFields on ArtifactSequence {
|
32
|
+
__typename
|
33
|
+
id
|
34
|
+
name
|
35
|
+
}
|
36
|
+
|
37
|
+
fragment FilterEventFields on FilterEventTriggeringCondition {
|
38
|
+
__typename
|
39
|
+
eventType
|
40
|
+
filter
|
41
|
+
}
|
42
|
+
|
43
|
+
fragment GenericWebhookActionFields on GenericWebhookTriggeredAction {
|
44
|
+
__typename
|
45
|
+
integration {
|
46
|
+
__typename
|
47
|
+
...GenericWebhookIntegrationFields
|
48
|
+
}
|
49
|
+
requestPayload
|
50
|
+
}
|
51
|
+
|
52
|
+
fragment GenericWebhookIntegrationFields on GenericWebhookIntegration {
|
53
|
+
__typename
|
54
|
+
id
|
55
|
+
name
|
56
|
+
urlEndpoint
|
57
|
+
createdAt
|
58
|
+
}
|
59
|
+
|
60
|
+
fragment NoOpActionFields on NoOpTriggeredAction {
|
61
|
+
__typename
|
62
|
+
noOp
|
63
|
+
}
|
64
|
+
|
65
|
+
fragment NotificationActionFields on NotificationTriggeredAction {
|
66
|
+
__typename
|
67
|
+
integration {
|
68
|
+
__typename
|
69
|
+
...SlackIntegrationFields
|
70
|
+
}
|
71
|
+
title
|
72
|
+
message
|
73
|
+
severity
|
74
|
+
}
|
75
|
+
|
76
|
+
fragment PageInfoFields on PageInfo {
|
77
|
+
endCursor
|
78
|
+
hasNextPage
|
79
|
+
}
|
80
|
+
|
81
|
+
fragment ProjectConnectionFields on ProjectConnection {
|
82
|
+
__typename
|
83
|
+
pageInfo {
|
84
|
+
...PageInfoFields
|
85
|
+
}
|
86
|
+
edges {
|
87
|
+
cursor
|
88
|
+
node {
|
89
|
+
triggers {
|
90
|
+
...TriggerFields
|
91
|
+
}
|
92
|
+
}
|
93
|
+
}
|
94
|
+
}
|
95
|
+
|
96
|
+
fragment ProjectScopeFields on Project {
|
97
|
+
__typename
|
98
|
+
id
|
99
|
+
name
|
100
|
+
}
|
101
|
+
|
102
|
+
fragment QueueJobActionFields on QueueJobTriggeredAction {
|
103
|
+
__typename
|
104
|
+
queue {
|
105
|
+
...RunQueueFields
|
106
|
+
}
|
107
|
+
template
|
108
|
+
}
|
109
|
+
|
110
|
+
fragment RunQueueFields on RunQueue {
|
111
|
+
__typename
|
112
|
+
id
|
113
|
+
name
|
114
|
+
}
|
115
|
+
|
116
|
+
fragment SlackIntegrationFields on SlackIntegration {
|
117
|
+
__typename
|
118
|
+
id
|
119
|
+
teamName
|
120
|
+
channelName
|
121
|
+
}
|
122
|
+
|
123
|
+
fragment TriggerFields on Trigger {
|
124
|
+
__typename
|
125
|
+
id
|
126
|
+
createdAt
|
127
|
+
createdBy {
|
128
|
+
...UserFields
|
129
|
+
}
|
130
|
+
updatedAt
|
131
|
+
name
|
132
|
+
description
|
133
|
+
enabled
|
134
|
+
scope {
|
135
|
+
__typename
|
136
|
+
...ProjectScopeFields
|
137
|
+
...ArtifactPortfolioScopeFields
|
138
|
+
...ArtifactSequenceScopeFields
|
139
|
+
}
|
140
|
+
event: triggeringCondition {
|
141
|
+
__typename
|
142
|
+
...FilterEventFields
|
143
|
+
}
|
144
|
+
action: triggeredAction {
|
145
|
+
__typename
|
146
|
+
...QueueJobActionFields
|
147
|
+
...NotificationActionFields
|
148
|
+
...GenericWebhookActionFields
|
149
|
+
...NoOpActionFields
|
150
|
+
}
|
151
|
+
}
|
152
|
+
|
153
|
+
fragment UserFields on User {
|
154
|
+
__typename
|
155
|
+
id
|
156
|
+
username
|
157
|
+
}
|
158
|
+
"""
|
159
|
+
|
160
|
+
GET_TRIGGERS_BY_ENTITY_GQL = """
|
161
|
+
query GetTriggersByEntity($entityName: String!, $cursor: String, $perPage: Int) {
|
162
|
+
searchScope: entity(name: $entityName) {
|
163
|
+
projects(after: $cursor, first: $perPage) {
|
164
|
+
...ProjectConnectionFields
|
165
|
+
}
|
166
|
+
}
|
167
|
+
}
|
168
|
+
|
169
|
+
fragment ArtifactPortfolioScopeFields on ArtifactPortfolio {
|
170
|
+
__typename
|
171
|
+
id
|
172
|
+
name
|
173
|
+
}
|
174
|
+
|
175
|
+
fragment ArtifactSequenceScopeFields on ArtifactSequence {
|
176
|
+
__typename
|
177
|
+
id
|
178
|
+
name
|
179
|
+
}
|
180
|
+
|
181
|
+
fragment FilterEventFields on FilterEventTriggeringCondition {
|
182
|
+
__typename
|
183
|
+
eventType
|
184
|
+
filter
|
185
|
+
}
|
186
|
+
|
187
|
+
fragment GenericWebhookActionFields on GenericWebhookTriggeredAction {
|
188
|
+
__typename
|
189
|
+
integration {
|
190
|
+
__typename
|
191
|
+
...GenericWebhookIntegrationFields
|
192
|
+
}
|
193
|
+
requestPayload
|
194
|
+
}
|
195
|
+
|
196
|
+
fragment GenericWebhookIntegrationFields on GenericWebhookIntegration {
|
197
|
+
__typename
|
198
|
+
id
|
199
|
+
name
|
200
|
+
urlEndpoint
|
201
|
+
createdAt
|
202
|
+
}
|
203
|
+
|
204
|
+
fragment NoOpActionFields on NoOpTriggeredAction {
|
205
|
+
__typename
|
206
|
+
noOp
|
207
|
+
}
|
208
|
+
|
209
|
+
fragment NotificationActionFields on NotificationTriggeredAction {
|
210
|
+
__typename
|
211
|
+
integration {
|
212
|
+
__typename
|
213
|
+
...SlackIntegrationFields
|
214
|
+
}
|
215
|
+
title
|
216
|
+
message
|
217
|
+
severity
|
218
|
+
}
|
219
|
+
|
220
|
+
fragment PageInfoFields on PageInfo {
|
221
|
+
endCursor
|
222
|
+
hasNextPage
|
223
|
+
}
|
224
|
+
|
225
|
+
fragment ProjectConnectionFields on ProjectConnection {
|
226
|
+
__typename
|
227
|
+
pageInfo {
|
228
|
+
...PageInfoFields
|
229
|
+
}
|
230
|
+
edges {
|
231
|
+
cursor
|
232
|
+
node {
|
233
|
+
triggers {
|
234
|
+
...TriggerFields
|
235
|
+
}
|
236
|
+
}
|
237
|
+
}
|
238
|
+
}
|
239
|
+
|
240
|
+
fragment ProjectScopeFields on Project {
|
241
|
+
__typename
|
242
|
+
id
|
243
|
+
name
|
244
|
+
}
|
245
|
+
|
246
|
+
fragment QueueJobActionFields on QueueJobTriggeredAction {
|
247
|
+
__typename
|
248
|
+
queue {
|
249
|
+
...RunQueueFields
|
250
|
+
}
|
251
|
+
template
|
252
|
+
}
|
253
|
+
|
254
|
+
fragment RunQueueFields on RunQueue {
|
255
|
+
__typename
|
256
|
+
id
|
257
|
+
name
|
258
|
+
}
|
259
|
+
|
260
|
+
fragment SlackIntegrationFields on SlackIntegration {
|
261
|
+
__typename
|
262
|
+
id
|
263
|
+
teamName
|
264
|
+
channelName
|
265
|
+
}
|
266
|
+
|
267
|
+
fragment TriggerFields on Trigger {
|
268
|
+
__typename
|
269
|
+
id
|
270
|
+
createdAt
|
271
|
+
createdBy {
|
272
|
+
...UserFields
|
273
|
+
}
|
274
|
+
updatedAt
|
275
|
+
name
|
276
|
+
description
|
277
|
+
enabled
|
278
|
+
scope {
|
279
|
+
__typename
|
280
|
+
...ProjectScopeFields
|
281
|
+
...ArtifactPortfolioScopeFields
|
282
|
+
...ArtifactSequenceScopeFields
|
283
|
+
}
|
284
|
+
event: triggeringCondition {
|
285
|
+
__typename
|
286
|
+
...FilterEventFields
|
287
|
+
}
|
288
|
+
action: triggeredAction {
|
289
|
+
__typename
|
290
|
+
...QueueJobActionFields
|
291
|
+
...NotificationActionFields
|
292
|
+
...GenericWebhookActionFields
|
293
|
+
...NoOpActionFields
|
294
|
+
}
|
295
|
+
}
|
296
|
+
|
297
|
+
fragment UserFields on User {
|
298
|
+
__typename
|
299
|
+
id
|
300
|
+
username
|
301
|
+
}
|
302
|
+
"""
|
303
|
+
|
304
|
+
CREATE_FILTER_TRIGGER_GQL = """
|
305
|
+
mutation CreateFilterTrigger($params: CreateFilterTriggerInput!) {
|
306
|
+
createFilterTrigger(input: $params) {
|
307
|
+
...CreateFilterTriggerResult
|
308
|
+
}
|
309
|
+
}
|
310
|
+
|
311
|
+
fragment ArtifactPortfolioScopeFields on ArtifactPortfolio {
|
312
|
+
__typename
|
313
|
+
id
|
314
|
+
name
|
315
|
+
}
|
316
|
+
|
317
|
+
fragment ArtifactSequenceScopeFields on ArtifactSequence {
|
318
|
+
__typename
|
319
|
+
id
|
320
|
+
name
|
321
|
+
}
|
322
|
+
|
323
|
+
fragment CreateFilterTriggerResult on CreateFilterTriggerPayload {
|
324
|
+
__typename
|
325
|
+
trigger {
|
326
|
+
...TriggerFields
|
327
|
+
}
|
328
|
+
}
|
329
|
+
|
330
|
+
fragment FilterEventFields on FilterEventTriggeringCondition {
|
331
|
+
__typename
|
332
|
+
eventType
|
333
|
+
filter
|
334
|
+
}
|
335
|
+
|
336
|
+
fragment GenericWebhookActionFields on GenericWebhookTriggeredAction {
|
337
|
+
__typename
|
338
|
+
integration {
|
339
|
+
__typename
|
340
|
+
...GenericWebhookIntegrationFields
|
341
|
+
}
|
342
|
+
requestPayload
|
343
|
+
}
|
344
|
+
|
345
|
+
fragment GenericWebhookIntegrationFields on GenericWebhookIntegration {
|
346
|
+
__typename
|
347
|
+
id
|
348
|
+
name
|
349
|
+
urlEndpoint
|
350
|
+
createdAt
|
351
|
+
}
|
352
|
+
|
353
|
+
fragment NoOpActionFields on NoOpTriggeredAction {
|
354
|
+
__typename
|
355
|
+
noOp
|
356
|
+
}
|
357
|
+
|
358
|
+
fragment NotificationActionFields on NotificationTriggeredAction {
|
359
|
+
__typename
|
360
|
+
integration {
|
361
|
+
__typename
|
362
|
+
...SlackIntegrationFields
|
363
|
+
}
|
364
|
+
title
|
365
|
+
message
|
366
|
+
severity
|
367
|
+
}
|
368
|
+
|
369
|
+
fragment ProjectScopeFields on Project {
|
370
|
+
__typename
|
371
|
+
id
|
372
|
+
name
|
373
|
+
}
|
374
|
+
|
375
|
+
fragment QueueJobActionFields on QueueJobTriggeredAction {
|
376
|
+
__typename
|
377
|
+
queue {
|
378
|
+
...RunQueueFields
|
379
|
+
}
|
380
|
+
template
|
381
|
+
}
|
382
|
+
|
383
|
+
fragment RunQueueFields on RunQueue {
|
384
|
+
__typename
|
385
|
+
id
|
386
|
+
name
|
387
|
+
}
|
388
|
+
|
389
|
+
fragment SlackIntegrationFields on SlackIntegration {
|
390
|
+
__typename
|
391
|
+
id
|
392
|
+
teamName
|
393
|
+
channelName
|
394
|
+
}
|
395
|
+
|
396
|
+
fragment TriggerFields on Trigger {
|
397
|
+
__typename
|
398
|
+
id
|
399
|
+
createdAt
|
400
|
+
createdBy {
|
401
|
+
...UserFields
|
402
|
+
}
|
403
|
+
updatedAt
|
404
|
+
name
|
405
|
+
description
|
406
|
+
enabled
|
407
|
+
scope {
|
408
|
+
__typename
|
409
|
+
...ProjectScopeFields
|
410
|
+
...ArtifactPortfolioScopeFields
|
411
|
+
...ArtifactSequenceScopeFields
|
412
|
+
}
|
413
|
+
event: triggeringCondition {
|
414
|
+
__typename
|
415
|
+
...FilterEventFields
|
416
|
+
}
|
417
|
+
action: triggeredAction {
|
418
|
+
__typename
|
419
|
+
...QueueJobActionFields
|
420
|
+
...NotificationActionFields
|
421
|
+
...GenericWebhookActionFields
|
422
|
+
...NoOpActionFields
|
423
|
+
}
|
424
|
+
}
|
425
|
+
|
426
|
+
fragment UserFields on User {
|
427
|
+
__typename
|
428
|
+
id
|
429
|
+
username
|
430
|
+
}
|
431
|
+
"""
|
432
|
+
|
433
|
+
UPDATE_FILTER_TRIGGER_GQL = """
|
434
|
+
mutation UpdateFilterTrigger($params: UpdateFilterTriggerInput!) {
|
435
|
+
updateFilterTrigger(input: $params) {
|
436
|
+
...UpdateFilterTriggerResult
|
437
|
+
}
|
438
|
+
}
|
439
|
+
|
440
|
+
fragment ArtifactPortfolioScopeFields on ArtifactPortfolio {
|
441
|
+
__typename
|
442
|
+
id
|
443
|
+
name
|
444
|
+
}
|
445
|
+
|
446
|
+
fragment ArtifactSequenceScopeFields on ArtifactSequence {
|
447
|
+
__typename
|
448
|
+
id
|
449
|
+
name
|
450
|
+
}
|
451
|
+
|
452
|
+
fragment FilterEventFields on FilterEventTriggeringCondition {
|
453
|
+
__typename
|
454
|
+
eventType
|
455
|
+
filter
|
456
|
+
}
|
457
|
+
|
458
|
+
fragment GenericWebhookActionFields on GenericWebhookTriggeredAction {
|
459
|
+
__typename
|
460
|
+
integration {
|
461
|
+
__typename
|
462
|
+
...GenericWebhookIntegrationFields
|
463
|
+
}
|
464
|
+
requestPayload
|
465
|
+
}
|
466
|
+
|
467
|
+
fragment GenericWebhookIntegrationFields on GenericWebhookIntegration {
|
468
|
+
__typename
|
469
|
+
id
|
470
|
+
name
|
471
|
+
urlEndpoint
|
472
|
+
createdAt
|
473
|
+
}
|
474
|
+
|
475
|
+
fragment NoOpActionFields on NoOpTriggeredAction {
|
476
|
+
__typename
|
477
|
+
noOp
|
478
|
+
}
|
479
|
+
|
480
|
+
fragment NotificationActionFields on NotificationTriggeredAction {
|
481
|
+
__typename
|
482
|
+
integration {
|
483
|
+
__typename
|
484
|
+
...SlackIntegrationFields
|
485
|
+
}
|
486
|
+
title
|
487
|
+
message
|
488
|
+
severity
|
489
|
+
}
|
490
|
+
|
491
|
+
fragment ProjectScopeFields on Project {
|
492
|
+
__typename
|
493
|
+
id
|
494
|
+
name
|
495
|
+
}
|
496
|
+
|
497
|
+
fragment QueueJobActionFields on QueueJobTriggeredAction {
|
498
|
+
__typename
|
499
|
+
queue {
|
500
|
+
...RunQueueFields
|
501
|
+
}
|
502
|
+
template
|
503
|
+
}
|
504
|
+
|
505
|
+
fragment RunQueueFields on RunQueue {
|
506
|
+
__typename
|
507
|
+
id
|
508
|
+
name
|
509
|
+
}
|
510
|
+
|
511
|
+
fragment SlackIntegrationFields on SlackIntegration {
|
512
|
+
__typename
|
513
|
+
id
|
514
|
+
teamName
|
515
|
+
channelName
|
516
|
+
}
|
517
|
+
|
518
|
+
fragment TriggerFields on Trigger {
|
519
|
+
__typename
|
520
|
+
id
|
521
|
+
createdAt
|
522
|
+
createdBy {
|
523
|
+
...UserFields
|
524
|
+
}
|
525
|
+
updatedAt
|
526
|
+
name
|
527
|
+
description
|
528
|
+
enabled
|
529
|
+
scope {
|
530
|
+
__typename
|
531
|
+
...ProjectScopeFields
|
532
|
+
...ArtifactPortfolioScopeFields
|
533
|
+
...ArtifactSequenceScopeFields
|
534
|
+
}
|
535
|
+
event: triggeringCondition {
|
536
|
+
__typename
|
537
|
+
...FilterEventFields
|
538
|
+
}
|
539
|
+
action: triggeredAction {
|
540
|
+
__typename
|
541
|
+
...QueueJobActionFields
|
542
|
+
...NotificationActionFields
|
543
|
+
...GenericWebhookActionFields
|
544
|
+
...NoOpActionFields
|
545
|
+
}
|
546
|
+
}
|
547
|
+
|
548
|
+
fragment UpdateFilterTriggerResult on UpdateFilterTriggerPayload {
|
549
|
+
__typename
|
550
|
+
trigger {
|
551
|
+
...TriggerFields
|
552
|
+
}
|
553
|
+
}
|
554
|
+
|
555
|
+
fragment UserFields on User {
|
556
|
+
__typename
|
557
|
+
id
|
558
|
+
username
|
559
|
+
}
|
560
|
+
"""
|
561
|
+
|
562
|
+
DELETE_TRIGGER_GQL = """
|
563
|
+
mutation DeleteTrigger($id: ID!) {
|
564
|
+
deleteTrigger(input: {triggerID: $id}) {
|
565
|
+
...DeleteTriggerResult
|
566
|
+
}
|
567
|
+
}
|
568
|
+
|
569
|
+
fragment DeleteTriggerResult on DeleteTriggerPayload {
|
570
|
+
__typename
|
571
|
+
success
|
572
|
+
}
|
573
|
+
"""
|
574
|
+
|
575
|
+
INTEGRATIONS_BY_ENTITY_GQL = """
|
576
|
+
query IntegrationsByEntity($entityName: String!, $cursor: String, $perPage: Int, $includeSlack: Boolean = false, $includeWebhook: Boolean = false) {
|
577
|
+
entity(name: $entityName) {
|
578
|
+
integrations(after: $cursor, first: $perPage) {
|
579
|
+
...IntegrationConnectionFields
|
580
|
+
}
|
581
|
+
}
|
582
|
+
}
|
583
|
+
|
584
|
+
fragment GenericWebhookIntegrationFields on GenericWebhookIntegration {
|
585
|
+
__typename
|
586
|
+
id
|
587
|
+
name
|
588
|
+
urlEndpoint
|
589
|
+
createdAt
|
590
|
+
}
|
591
|
+
|
592
|
+
fragment IntegrationConnectionFields on IntegrationConnection {
|
593
|
+
__typename
|
594
|
+
pageInfo {
|
595
|
+
...PageInfoFields
|
596
|
+
}
|
597
|
+
edges {
|
598
|
+
cursor
|
599
|
+
node {
|
600
|
+
__typename
|
601
|
+
...SlackIntegrationFields @include(if: $includeSlack)
|
602
|
+
...GenericWebhookIntegrationFields @include(if: $includeWebhook)
|
603
|
+
}
|
604
|
+
}
|
605
|
+
}
|
606
|
+
|
607
|
+
fragment PageInfoFields on PageInfo {
|
608
|
+
endCursor
|
609
|
+
hasNextPage
|
610
|
+
}
|
611
|
+
|
612
|
+
fragment SlackIntegrationFields on SlackIntegration {
|
613
|
+
__typename
|
614
|
+
id
|
615
|
+
teamName
|
616
|
+
channelName
|
617
|
+
}
|
618
|
+
"""
|
619
|
+
|
620
|
+
SLACK_INTEGRATIONS_BY_ENTITY_GQL = """
|
621
|
+
query SlackIntegrationsByEntity($entityName: String!, $cursor: String, $perPage: Int) {
|
622
|
+
entity(name: $entityName) {
|
623
|
+
integrations(after: $cursor, first: $perPage) {
|
624
|
+
...SlackIntegrationConnectionFields
|
625
|
+
}
|
626
|
+
}
|
627
|
+
}
|
628
|
+
|
629
|
+
fragment PageInfoFields on PageInfo {
|
630
|
+
endCursor
|
631
|
+
hasNextPage
|
632
|
+
}
|
633
|
+
|
634
|
+
fragment SlackIntegrationConnectionFields on IntegrationConnection {
|
635
|
+
__typename
|
636
|
+
pageInfo {
|
637
|
+
...PageInfoFields
|
638
|
+
}
|
639
|
+
edges {
|
640
|
+
cursor
|
641
|
+
node {
|
642
|
+
__typename
|
643
|
+
...SlackIntegrationFields
|
644
|
+
}
|
645
|
+
}
|
646
|
+
}
|
647
|
+
|
648
|
+
fragment SlackIntegrationFields on SlackIntegration {
|
649
|
+
__typename
|
650
|
+
id
|
651
|
+
teamName
|
652
|
+
channelName
|
653
|
+
}
|
654
|
+
"""
|
655
|
+
|
656
|
+
GENERIC_WEBHOOK_INTEGRATIONS_BY_ENTITY_GQL = """
|
657
|
+
query GenericWebhookIntegrationsByEntity($entityName: String!, $cursor: String, $perPage: Int) {
|
658
|
+
entity(name: $entityName) {
|
659
|
+
integrations(after: $cursor, first: $perPage) {
|
660
|
+
...GenericWebhookIntegrationConnectionFields
|
661
|
+
}
|
662
|
+
}
|
663
|
+
}
|
664
|
+
|
665
|
+
fragment GenericWebhookIntegrationConnectionFields on IntegrationConnection {
|
666
|
+
__typename
|
667
|
+
pageInfo {
|
668
|
+
...PageInfoFields
|
669
|
+
}
|
670
|
+
edges {
|
671
|
+
cursor
|
672
|
+
node {
|
673
|
+
__typename
|
674
|
+
...GenericWebhookIntegrationFields
|
675
|
+
}
|
676
|
+
}
|
677
|
+
}
|
678
|
+
|
679
|
+
fragment GenericWebhookIntegrationFields on GenericWebhookIntegration {
|
680
|
+
__typename
|
681
|
+
id
|
682
|
+
name
|
683
|
+
urlEndpoint
|
684
|
+
createdAt
|
685
|
+
}
|
686
|
+
|
687
|
+
fragment PageInfoFields on PageInfo {
|
688
|
+
endCursor
|
689
|
+
hasNextPage
|
690
|
+
}
|
691
|
+
"""
|
692
|
+
|
693
|
+
CREATE_GENERIC_WEBHOOK_INTEGRATION_GQL = """
|
694
|
+
mutation CreateGenericWebhookIntegration($params: CreateGenericWebhookIntegrationInput!) {
|
695
|
+
createGenericWebhookIntegration(input: $params) {
|
696
|
+
integration {
|
697
|
+
__typename
|
698
|
+
...GenericWebhookIntegrationFields
|
699
|
+
}
|
700
|
+
}
|
701
|
+
}
|
702
|
+
|
703
|
+
fragment GenericWebhookIntegrationFields on GenericWebhookIntegration {
|
704
|
+
__typename
|
705
|
+
id
|
706
|
+
name
|
707
|
+
urlEndpoint
|
708
|
+
createdAt
|
709
|
+
}
|
710
|
+
"""
|
@@ -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 SlackIntegrationConnectionFields
|
11
|
+
|
12
|
+
|
13
|
+
class SlackIntegrationsByEntity(GQLBase):
|
14
|
+
entity: Optional[SlackIntegrationsByEntityEntity]
|
15
|
+
|
16
|
+
|
17
|
+
class SlackIntegrationsByEntityEntity(GQLBase):
|
18
|
+
integrations: Optional[SlackIntegrationConnectionFields]
|
19
|
+
|
20
|
+
|
21
|
+
SlackIntegrationsByEntity.model_rebuild()
|
22
|
+
SlackIntegrationsByEntityEntity.model_rebuild()
|