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