wandb 0.22.2__py3-none-win32.whl → 0.22.3__py3-none-win32.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 (147) hide show
  1. wandb/__init__.py +1 -1
  2. wandb/__init__.pyi +2 -2
  3. wandb/_pydantic/__init__.py +8 -1
  4. wandb/_pydantic/base.py +54 -18
  5. wandb/_pydantic/field_types.py +8 -3
  6. wandb/_pydantic/pagination.py +46 -0
  7. wandb/_pydantic/utils.py +2 -2
  8. wandb/apis/public/api.py +24 -19
  9. wandb/apis/public/artifacts.py +259 -270
  10. wandb/apis/public/registries/_utils.py +40 -54
  11. wandb/apis/public/registries/registries_search.py +70 -85
  12. wandb/apis/public/registries/registry.py +173 -156
  13. wandb/apis/public/runs.py +27 -6
  14. wandb/apis/public/utils.py +43 -20
  15. wandb/automations/_generated/create_automation.py +2 -2
  16. wandb/automations/_generated/create_generic_webhook_integration.py +4 -4
  17. wandb/automations/_generated/delete_automation.py +2 -2
  18. wandb/automations/_generated/fragments.py +31 -52
  19. wandb/automations/_generated/generic_webhook_integrations_by_entity.py +3 -3
  20. wandb/automations/_generated/get_automations.py +3 -3
  21. wandb/automations/_generated/get_automations_by_entity.py +3 -3
  22. wandb/automations/_generated/input_types.py +9 -9
  23. wandb/automations/_generated/integrations_by_entity.py +3 -3
  24. wandb/automations/_generated/operations.py +6 -6
  25. wandb/automations/_generated/slack_integrations_by_entity.py +3 -3
  26. wandb/automations/_generated/update_automation.py +2 -2
  27. wandb/automations/_utils.py +3 -3
  28. wandb/automations/actions.py +3 -3
  29. wandb/automations/automations.py +6 -5
  30. wandb/bin/gpu_stats.exe +0 -0
  31. wandb/bin/wandb-core +0 -0
  32. wandb/cli/beta.py +8 -2
  33. wandb/cli/beta_leet.py +2 -1
  34. wandb/cli/beta_sync.py +1 -1
  35. wandb/errors/term.py +8 -8
  36. wandb/jupyter.py +0 -51
  37. wandb/old/settings.py +6 -6
  38. wandb/proto/v3/wandb_internal_pb2.py +351 -352
  39. wandb/proto/v3/wandb_server_pb2.py +38 -37
  40. wandb/proto/v3/wandb_settings_pb2.py +2 -2
  41. wandb/proto/v3/wandb_sync_pb2.py +19 -6
  42. wandb/proto/v4/wandb_internal_pb2.py +351 -352
  43. wandb/proto/v4/wandb_server_pb2.py +38 -37
  44. wandb/proto/v4/wandb_settings_pb2.py +2 -2
  45. wandb/proto/v4/wandb_sync_pb2.py +10 -6
  46. wandb/proto/v5/wandb_internal_pb2.py +351 -352
  47. wandb/proto/v5/wandb_server_pb2.py +38 -37
  48. wandb/proto/v5/wandb_settings_pb2.py +2 -2
  49. wandb/proto/v5/wandb_sync_pb2.py +10 -6
  50. wandb/proto/v6/wandb_internal_pb2.py +351 -352
  51. wandb/proto/v6/wandb_server_pb2.py +38 -37
  52. wandb/proto/v6/wandb_settings_pb2.py +2 -2
  53. wandb/proto/v6/wandb_sync_pb2.py +10 -6
  54. wandb/sdk/artifacts/_generated/__init__.py +96 -40
  55. wandb/sdk/artifacts/_generated/add_aliases.py +3 -3
  56. wandb/sdk/artifacts/_generated/add_artifact_collection_tags.py +26 -0
  57. wandb/sdk/artifacts/_generated/artifact_by_id.py +2 -2
  58. wandb/sdk/artifacts/_generated/artifact_by_name.py +3 -3
  59. wandb/sdk/artifacts/_generated/artifact_collection_membership_file_urls.py +27 -8
  60. wandb/sdk/artifacts/_generated/artifact_collection_membership_files.py +27 -8
  61. wandb/sdk/artifacts/_generated/artifact_created_by.py +7 -20
  62. wandb/sdk/artifacts/_generated/artifact_file_urls.py +19 -6
  63. wandb/sdk/artifacts/_generated/artifact_membership_by_name.py +26 -0
  64. wandb/sdk/artifacts/_generated/artifact_type.py +5 -5
  65. wandb/sdk/artifacts/_generated/artifact_used_by.py +8 -17
  66. wandb/sdk/artifacts/_generated/artifact_version_files.py +19 -8
  67. wandb/sdk/artifacts/_generated/delete_aliases.py +3 -3
  68. wandb/sdk/artifacts/_generated/delete_artifact.py +4 -4
  69. wandb/sdk/artifacts/_generated/delete_artifact_collection_tags.py +23 -0
  70. wandb/sdk/artifacts/_generated/delete_artifact_portfolio.py +4 -4
  71. wandb/sdk/artifacts/_generated/delete_artifact_sequence.py +4 -4
  72. wandb/sdk/artifacts/_generated/delete_registry.py +21 -0
  73. wandb/sdk/artifacts/_generated/fetch_artifact_manifest.py +8 -20
  74. wandb/sdk/artifacts/_generated/fetch_linked_artifacts.py +13 -35
  75. wandb/sdk/artifacts/_generated/fetch_org_info_from_entity.py +28 -0
  76. wandb/sdk/artifacts/_generated/fetch_registries.py +18 -8
  77. wandb/sdk/{projects → artifacts}/_generated/fetch_registry.py +4 -4
  78. wandb/sdk/artifacts/_generated/fragments.py +183 -333
  79. wandb/sdk/artifacts/_generated/input_types.py +133 -7
  80. wandb/sdk/artifacts/_generated/link_artifact.py +5 -5
  81. wandb/sdk/artifacts/_generated/operations.py +1053 -548
  82. wandb/sdk/artifacts/_generated/project_artifact_collection.py +9 -77
  83. wandb/sdk/artifacts/_generated/project_artifact_collections.py +21 -9
  84. wandb/sdk/artifacts/_generated/project_artifact_type.py +3 -3
  85. wandb/sdk/artifacts/_generated/project_artifact_types.py +19 -6
  86. wandb/sdk/artifacts/_generated/project_artifacts.py +7 -8
  87. wandb/sdk/artifacts/_generated/registry_collections.py +21 -9
  88. wandb/sdk/artifacts/_generated/registry_versions.py +20 -9
  89. wandb/sdk/artifacts/_generated/rename_registry.py +25 -0
  90. wandb/sdk/artifacts/_generated/run_input_artifacts.py +5 -9
  91. wandb/sdk/artifacts/_generated/run_output_artifacts.py +5 -9
  92. wandb/sdk/artifacts/_generated/type_info.py +2 -2
  93. wandb/sdk/artifacts/_generated/unlink_artifact.py +3 -5
  94. wandb/sdk/artifacts/_generated/update_artifact.py +3 -3
  95. wandb/sdk/artifacts/_generated/update_artifact_collection_type.py +28 -0
  96. wandb/sdk/artifacts/_generated/update_artifact_portfolio.py +7 -16
  97. wandb/sdk/artifacts/_generated/update_artifact_sequence.py +7 -16
  98. wandb/sdk/artifacts/_generated/upsert_registry.py +25 -0
  99. wandb/sdk/artifacts/_gqlutils.py +170 -6
  100. wandb/sdk/artifacts/_models/__init__.py +9 -0
  101. wandb/sdk/artifacts/_models/artifact_collection.py +109 -0
  102. wandb/sdk/artifacts/_models/manifest.py +26 -0
  103. wandb/sdk/artifacts/_models/pagination.py +26 -0
  104. wandb/sdk/artifacts/_models/registry.py +100 -0
  105. wandb/sdk/artifacts/_validators.py +45 -27
  106. wandb/sdk/artifacts/artifact.py +220 -215
  107. wandb/sdk/artifacts/artifact_file_cache.py +1 -1
  108. wandb/sdk/artifacts/artifact_manifest.py +37 -32
  109. wandb/sdk/artifacts/artifact_manifest_entry.py +80 -125
  110. wandb/sdk/artifacts/artifact_manifests/artifact_manifest_v1.py +43 -61
  111. wandb/sdk/artifacts/storage_handlers/gcs_handler.py +8 -6
  112. wandb/sdk/data_types/image.py +2 -2
  113. wandb/sdk/interface/interface.py +72 -64
  114. wandb/sdk/interface/interface_queue.py +27 -18
  115. wandb/sdk/interface/interface_shared.py +61 -23
  116. wandb/sdk/interface/interface_sock.py +9 -5
  117. wandb/sdk/internal/_generated/server_features_query.py +4 -4
  118. wandb/sdk/launch/inputs/schema.py +13 -10
  119. wandb/sdk/lib/apikey.py +8 -12
  120. wandb/sdk/lib/asyncio_compat.py +1 -1
  121. wandb/sdk/lib/asyncio_manager.py +5 -5
  122. wandb/sdk/lib/console_capture.py +38 -30
  123. wandb/sdk/lib/progress.py +159 -64
  124. wandb/sdk/lib/retry.py +3 -2
  125. wandb/sdk/lib/service/service_connection.py +2 -2
  126. wandb/sdk/lib/wb_logging.py +2 -1
  127. wandb/sdk/mailbox/mailbox.py +1 -1
  128. wandb/sdk/wandb_init.py +10 -13
  129. wandb/sdk/wandb_run.py +9 -46
  130. wandb/sdk/wandb_settings.py +102 -19
  131. {wandb-0.22.2.dist-info → wandb-0.22.3.dist-info}/METADATA +2 -1
  132. {wandb-0.22.2.dist-info → wandb-0.22.3.dist-info}/RECORD +135 -134
  133. wandb/sdk/artifacts/_generated/artifact_via_membership_by_name.py +0 -26
  134. wandb/sdk/artifacts/_generated/create_artifact_collection_tag_assignments.py +0 -36
  135. wandb/sdk/artifacts/_generated/delete_artifact_collection_tag_assignments.py +0 -25
  136. wandb/sdk/artifacts/_generated/move_artifact_collection.py +0 -35
  137. wandb/sdk/projects/_generated/__init__.py +0 -26
  138. wandb/sdk/projects/_generated/delete_project.py +0 -22
  139. wandb/sdk/projects/_generated/enums.py +0 -4
  140. wandb/sdk/projects/_generated/fragments.py +0 -41
  141. wandb/sdk/projects/_generated/input_types.py +0 -13
  142. wandb/sdk/projects/_generated/operations.py +0 -88
  143. wandb/sdk/projects/_generated/rename_project.py +0 -27
  144. wandb/sdk/projects/_generated/upsert_registry_project.py +0 -27
  145. {wandb-0.22.2.dist-info → wandb-0.22.3.dist-info}/WHEEL +0 -0
  146. {wandb-0.22.2.dist-info → wandb-0.22.3.dist-info}/entry_points.txt +0 -0
  147. {wandb-0.22.2.dist-info → wandb-0.22.3.dist-info}/licenses/LICENSE +0 -0
@@ -3,127 +3,115 @@
3
3
 
4
4
  from __future__ import annotations
5
5
 
6
- from typing import Any, List, Literal, Optional
6
+ from typing import List, Literal, Optional
7
7
 
8
8
  from pydantic import Field
9
9
 
10
- from wandb._pydantic import GQLBase, GQLId, Typename
10
+ from wandb._pydantic import GQLId, GQLResult, Typename
11
11
 
12
12
  from .enums import ArtifactState
13
13
 
14
14
 
15
- class ArtifactCollectionsFragment(GQLBase):
16
- page_info: ArtifactCollectionsFragmentPageInfo = Field(alias="pageInfo")
17
- total_count: int = Field(alias="totalCount")
18
- edges: List[ArtifactCollectionsFragmentEdges]
19
-
20
-
21
- class ArtifactCollectionsFragmentEdges(GQLBase):
22
- node: Optional[ArtifactCollectionsFragmentEdgesNode]
23
- cursor: str
15
+ class ArtifactAliasFragment(GQLResult):
16
+ typename__: Typename[Literal["ArtifactAlias"]] = "ArtifactAlias"
17
+ id: GQLId
18
+ alias: str
24
19
 
25
20
 
26
- class ArtifactCollectionsFragmentEdgesNode(GQLBase):
27
- typename__: Typename[
28
- Literal["ArtifactCollection", "ArtifactPortfolio", "ArtifactSequence"]
29
- ]
21
+ class ArtifactCollectionFragment(GQLResult):
22
+ typename__: Typename[Literal["ArtifactSequence", "ArtifactPortfolio"]]
30
23
  id: GQLId
31
24
  name: str
32
25
  description: Optional[str]
33
26
  created_at: str = Field(alias="createdAt")
27
+ project: Optional[ProjectInfoFragment]
28
+ type: ArtifactCollectionFragmentType
29
+ tags: ArtifactCollectionFragmentTags
30
+ aliases: Optional[ArtifactCollectionFragmentAliases] = None
34
31
 
35
32
 
36
- class ArtifactCollectionsFragmentPageInfo(GQLBase):
37
- end_cursor: Optional[str] = Field(alias="endCursor")
38
- has_next_page: bool = Field(alias="hasNextPage")
33
+ class ArtifactCollectionFragmentAliases(GQLResult):
34
+ edges: List[ArtifactCollectionFragmentAliasesEdges]
39
35
 
40
36
 
41
- class ArtifactFragmentAliases(GQLBase):
42
- artifact_collection: Optional[ArtifactFragmentAliasesArtifactCollection] = Field(
43
- alias="artifactCollection"
44
- )
45
- alias: str
37
+ class ArtifactCollectionFragmentAliasesEdges(GQLResult):
38
+ node: Optional[ArtifactAliasFragment]
46
39
 
47
40
 
48
- class ArtifactFragmentAliasesArtifactCollection(GQLBase):
49
- typename__: Typename[
50
- Literal["ArtifactCollection", "ArtifactPortfolio", "ArtifactSequence"]
51
- ]
52
- project: Optional[ArtifactFragmentAliasesArtifactCollectionProject]
41
+ class ArtifactCollectionFragmentTags(GQLResult):
42
+ edges: List[ArtifactCollectionFragmentTagsEdges]
43
+
44
+
45
+ class ArtifactCollectionFragmentTagsEdges(GQLResult):
46
+ node: TagFragment
47
+
48
+
49
+ class ArtifactCollectionFragmentType(GQLResult):
53
50
  name: str
54
51
 
55
52
 
56
- class ArtifactFragmentAliasesArtifactCollectionProject(GQLBase):
57
- entity_name: str = Field(alias="entityName")
53
+ class ArtifactCollectionSummary(GQLResult):
54
+ typename__: Typename[Literal["ArtifactSequence", "ArtifactPortfolio"]]
55
+ id: GQLId
58
56
  name: str
57
+ description: Optional[str]
58
+ created_at: str = Field(alias="createdAt")
59
59
 
60
60
 
61
- class ArtifactFragmentWithoutAliases(GQLBase):
61
+ class ArtifactFragment(GQLResult):
62
+ typename__: Typename[Literal["Artifact"]] = "Artifact"
62
63
  id: GQLId
63
- artifact_sequence: ArtifactFragmentWithoutAliasesArtifactSequence = Field(
64
- alias="artifactSequence"
65
- )
64
+ artifact_sequence: SourceCollectionInfoFragment = Field(alias="artifactSequence")
66
65
  version_index: Optional[int] = Field(alias="versionIndex")
67
- artifact_type: ArtifactFragmentWithoutAliasesArtifactType = Field(
68
- alias="artifactType"
69
- )
66
+ artifact_type: ArtifactFragmentArtifactType = Field(alias="artifactType")
70
67
  description: Optional[str]
71
- metadata: Optional[Any]
72
- ttl_duration_seconds: Optional[Any] = Field(
68
+ metadata: Optional[str]
69
+ ttl_duration_seconds: Optional[int] = Field(
73
70
  alias="ttlDurationSeconds", default=None
74
71
  )
75
72
  ttl_is_inherited: Optional[bool] = Field(alias="ttlIsInherited", default=None)
76
- tags: Optional[List[ArtifactFragmentWithoutAliasesTags]] = None
77
- history_step: Optional[Any] = Field(alias="historyStep", default=None)
73
+ tags: Optional[List[TagFragment]] = None
74
+ history_step: Optional[int] = Field(alias="historyStep", default=None)
78
75
  state: ArtifactState
79
- current_manifest: Optional[ArtifactFragmentWithoutAliasesCurrentManifest] = Field(
80
- alias="currentManifest"
81
- )
76
+ size: int
77
+ digest: str
82
78
  commit_hash: Optional[str] = Field(alias="commitHash")
83
- file_count: Any = Field(alias="fileCount")
79
+ file_count: int = Field(alias="fileCount")
84
80
  created_at: str = Field(alias="createdAt")
85
81
  updated_at: Optional[str] = Field(alias="updatedAt")
82
+ aliases: Optional[List[ArtifactFragmentAliases]] = None
86
83
 
87
84
 
88
- class ArtifactFragmentWithoutAliasesArtifactSequence(GQLBase):
89
- project: Optional[ArtifactFragmentWithoutAliasesArtifactSequenceProject]
90
- name: str
91
-
92
-
93
- class ArtifactFragmentWithoutAliasesArtifactSequenceProject(GQLBase):
94
- entity_name: str = Field(alias="entityName")
95
- name: str
96
-
97
-
98
- class ArtifactFragmentWithoutAliasesArtifactType(GQLBase):
85
+ class ArtifactFragmentArtifactType(GQLResult):
99
86
  name: str
100
87
 
101
88
 
102
- class ArtifactFragmentWithoutAliasesCurrentManifest(GQLBase):
103
- file: ArtifactFragmentWithoutAliasesCurrentManifestFile
104
-
105
-
106
- class ArtifactFragmentWithoutAliasesCurrentManifestFile(GQLBase):
107
- direct_url: str = Field(alias="directUrl")
108
-
109
-
110
- class ArtifactFragmentWithoutAliasesTags(GQLBase):
111
- name: str
89
+ class ArtifactMembershipFragment(GQLResult):
90
+ typename__: Typename[Literal["ArtifactCollectionMembership"]] = (
91
+ "ArtifactCollectionMembership"
92
+ )
93
+ id: GQLId
94
+ version_index: Optional[int] = Field(alias="versionIndex")
95
+ aliases: List[ArtifactAliasFragment]
96
+ artifact_collection: Optional[CollectionInfoFragment] = Field(
97
+ alias="artifactCollection"
98
+ )
99
+ artifact: Optional[ArtifactFragment]
112
100
 
113
101
 
114
- class ArtifactPortfolioTypeFields(GQLBase):
102
+ class ArtifactPortfolioTypeFields(GQLResult):
115
103
  typename__: Typename[Literal["ArtifactPortfolio"]] = "ArtifactPortfolio"
116
104
  id: GQLId
117
105
  name: str
118
106
 
119
107
 
120
- class ArtifactSequenceTypeFields(GQLBase):
108
+ class ArtifactSequenceTypeFields(GQLResult):
121
109
  typename__: Typename[Literal["ArtifactSequence"]] = "ArtifactSequence"
122
110
  id: GQLId
123
111
  name: str
124
112
 
125
113
 
126
- class ArtifactTypeFragment(GQLBase):
114
+ class ArtifactTypeFragment(GQLResult):
127
115
  typename__: Typename[Literal["ArtifactType"]] = "ArtifactType"
128
116
  id: GQLId
129
117
  name: str
@@ -131,72 +119,26 @@ class ArtifactTypeFragment(GQLBase):
131
119
  created_at: str = Field(alias="createdAt")
132
120
 
133
121
 
134
- class ArtifactTypesFragment(GQLBase):
135
- edges: List[ArtifactTypesFragmentEdges]
136
- page_info: ArtifactTypesFragmentPageInfo = Field(alias="pageInfo")
137
-
138
-
139
- class ArtifactTypesFragmentEdges(GQLBase):
140
- node: Optional[ArtifactTypeFragment]
141
- cursor: str
142
-
143
-
144
- class ArtifactTypesFragmentPageInfo(GQLBase):
145
- end_cursor: Optional[str] = Field(alias="endCursor")
146
- has_next_page: bool = Field(alias="hasNextPage")
147
-
148
-
149
- class ArtifactsFragment(GQLBase):
150
- total_count: int = Field(alias="totalCount")
151
- edges: List[ArtifactsFragmentEdges]
152
- page_info: ArtifactsFragmentPageInfo = Field(alias="pageInfo")
153
-
154
-
155
- class ArtifactsFragmentEdges(GQLBase):
156
- node: ArtifactFragment
157
- version: str
158
- cursor: str
159
-
160
-
161
- class ArtifactsFragmentPageInfo(GQLBase):
162
- end_cursor: Optional[str] = Field(alias="endCursor")
163
- has_next_page: bool = Field(alias="hasNextPage")
164
-
165
-
166
- class FileUrlsFragment(GQLBase):
167
- page_info: FileUrlsFragmentPageInfo = Field(alias="pageInfo")
168
- edges: List[FileUrlsFragmentEdges]
169
-
170
-
171
- class FileUrlsFragmentEdges(GQLBase):
172
- node: Optional[FileUrlsFragmentEdgesNode]
173
-
174
-
175
- class FileUrlsFragmentEdgesNode(GQLBase):
122
+ class CollectionInfoFragment(GQLResult):
123
+ typename__: Typename[Literal["ArtifactSequence", "ArtifactPortfolio"]]
176
124
  name: str
177
- direct_url: str = Field(alias="directUrl")
178
-
179
-
180
- class FileUrlsFragmentPageInfo(GQLBase):
181
- has_next_page: bool = Field(alias="hasNextPage")
182
- end_cursor: Optional[str] = Field(alias="endCursor")
125
+ project: Optional[ProjectInfoFragment]
183
126
 
184
127
 
185
- class FilesFragment(GQLBase):
186
- edges: List[FilesFragmentEdges]
187
- page_info: FilesFragmentPageInfo = Field(alias="pageInfo")
128
+ class DeferredManifestFragment(GQLResult):
129
+ file: DeferredManifestFragmentFile
188
130
 
189
131
 
190
- class FilesFragmentEdges(GQLBase):
191
- node: Optional[FilesFragmentEdgesNode]
192
- cursor: str
132
+ class DeferredManifestFragmentFile(GQLResult):
133
+ direct_url: str = Field(alias="directUrl")
193
134
 
194
135
 
195
- class FilesFragmentEdgesNode(GQLBase):
136
+ class FileFragment(GQLResult):
137
+ typename__: Typename[Literal["File"]] = "File"
196
138
  id: GQLId
197
139
  name: str
198
140
  url: Optional[str]
199
- size_bytes: Any = Field(alias="sizeBytes")
141
+ size_bytes: int = Field(alias="sizeBytes")
200
142
  storage_path: Optional[str] = Field(alias="storagePath", default=None)
201
143
  mimetype: Optional[str]
202
144
  updated_at: Optional[str] = Field(alias="updatedAt")
@@ -205,219 +147,144 @@ class FilesFragmentEdgesNode(GQLBase):
205
147
  direct_url: str = Field(alias="directUrl")
206
148
 
207
149
 
208
- class FilesFragmentPageInfo(GQLBase):
209
- end_cursor: Optional[str] = Field(alias="endCursor")
210
- has_next_page: bool = Field(alias="hasNextPage")
211
-
212
-
213
- class MembershipWithArtifact(GQLBase):
214
- id: GQLId
215
- artifact_collection: Optional[MembershipWithArtifactArtifactCollection] = Field(
216
- alias="artifactCollection"
217
- )
218
- artifact: Optional[ArtifactFragment]
219
-
220
-
221
- class MembershipWithArtifactArtifactCollection(GQLBase):
222
- typename__: Typename[
223
- Literal["ArtifactCollection", "ArtifactPortfolio", "ArtifactSequence"]
224
- ]
225
- id: GQLId
150
+ class FileWithUrlFragment(GQLResult):
151
+ typename__: Typename[Literal["File"]] = "File"
226
152
  name: str
227
- project: Optional[MembershipWithArtifactArtifactCollectionProject]
153
+ direct_url: str = Field(alias="directUrl")
228
154
 
229
155
 
230
- class MembershipWithArtifactArtifactCollectionProject(GQLBase):
231
- id: GQLId
232
- entity_name: str = Field(alias="entityName")
156
+ class OrgInfoFragment(GQLResult):
233
157
  name: str
158
+ org_entity: Optional[OrgInfoFragmentOrgEntity] = Field(
159
+ alias="orgEntity", default=None
160
+ )
234
161
 
235
162
 
236
- class RegistriesPage(GQLBase):
237
- page_info: RegistriesPagePageInfo = Field(alias="pageInfo")
238
- edges: List[RegistriesPageEdges]
239
-
240
-
241
- class RegistriesPageEdges(GQLBase):
242
- node: Optional[RegistryFragment]
163
+ class OrgInfoFragmentOrgEntity(GQLResult):
164
+ name: str
243
165
 
244
166
 
245
- class RegistriesPagePageInfo(GQLBase):
167
+ class PageInfoFragment(GQLResult):
168
+ typename__: Typename[Literal["PageInfo"]] = "PageInfo"
246
169
  end_cursor: Optional[str] = Field(alias="endCursor")
247
170
  has_next_page: bool = Field(alias="hasNextPage")
248
171
 
249
172
 
250
- class RegistryCollectionsPage(GQLBase):
251
- total_count: int = Field(alias="totalCount")
252
- page_info: RegistryCollectionsPagePageInfo = Field(alias="pageInfo")
253
- edges: List[RegistryCollectionsPageEdges]
173
+ class ProjectInfoFragment(GQLResult):
174
+ name: str
175
+ entity: ProjectInfoFragmentEntity
254
176
 
255
177
 
256
- class RegistryCollectionsPageEdges(GQLBase):
257
- cursor: str
258
- node: Optional[RegistryCollectionsPageEdgesNode]
178
+ class ProjectInfoFragmentEntity(GQLResult):
179
+ name: str
259
180
 
260
181
 
261
- class RegistryCollectionsPageEdgesNode(GQLBase):
262
- typename__: Typename[
263
- Literal["ArtifactCollection", "ArtifactPortfolio", "ArtifactSequence"]
264
- ]
182
+ class RegistryCollectionFragment(GQLResult):
183
+ typename__: Typename[Literal["ArtifactSequence", "ArtifactPortfolio"]]
265
184
  id: GQLId
266
185
  name: str
267
186
  description: Optional[str]
268
187
  created_at: str = Field(alias="createdAt")
269
- tags: RegistryCollectionsPageEdgesNodeTags
270
- project: Optional[RegistryCollectionsPageEdgesNodeProject]
271
- default_artifact_type: RegistryCollectionsPageEdgesNodeDefaultArtifactType = Field(
272
- alias="defaultArtifactType"
273
- )
274
- aliases: RegistryCollectionsPageEdgesNodeAliases
275
-
188
+ project: Optional[ProjectInfoFragment]
189
+ type: RegistryCollectionFragmentType
190
+ tags: RegistryCollectionFragmentTags
191
+ aliases: RegistryCollectionFragmentAliases
276
192
 
277
- class RegistryCollectionsPageEdgesNodeAliases(GQLBase):
278
- edges: List[RegistryCollectionsPageEdgesNodeAliasesEdges]
279
193
 
194
+ class RegistryCollectionFragmentAliases(GQLResult):
195
+ edges: List[RegistryCollectionFragmentAliasesEdges]
280
196
 
281
- class RegistryCollectionsPageEdgesNodeAliasesEdges(GQLBase):
282
- node: Optional[RegistryCollectionsPageEdgesNodeAliasesEdgesNode]
283
197
 
198
+ class RegistryCollectionFragmentAliasesEdges(GQLResult):
199
+ node: Optional[ArtifactAliasFragment]
284
200
 
285
- class RegistryCollectionsPageEdgesNodeAliasesEdgesNode(GQLBase):
286
- alias: str
287
201
 
288
-
289
- class RegistryCollectionsPageEdgesNodeDefaultArtifactType(GQLBase):
290
- name: str
202
+ class RegistryCollectionFragmentTags(GQLResult):
203
+ edges: List[RegistryCollectionFragmentTagsEdges]
291
204
 
292
205
 
293
- class RegistryCollectionsPageEdgesNodeProject(GQLBase):
294
- name: str
295
- entity: RegistryCollectionsPageEdgesNodeProjectEntity
206
+ class RegistryCollectionFragmentTagsEdges(GQLResult):
207
+ node: TagFragment
296
208
 
297
209
 
298
- class RegistryCollectionsPageEdgesNodeProjectEntity(GQLBase):
210
+ class RegistryCollectionFragmentType(GQLResult):
299
211
  name: str
300
212
 
301
213
 
302
- class RegistryCollectionsPageEdgesNodeTags(GQLBase):
303
- edges: List[RegistryCollectionsPageEdgesNodeTagsEdges]
304
-
305
-
306
- class RegistryCollectionsPageEdgesNodeTagsEdges(GQLBase):
307
- node: RegistryCollectionsPageEdgesNodeTagsEdgesNode
308
-
309
-
310
- class RegistryCollectionsPageEdgesNodeTagsEdgesNode(GQLBase):
311
- name: str
312
-
313
-
314
- class RegistryCollectionsPagePageInfo(GQLBase):
315
- end_cursor: Optional[str] = Field(alias="endCursor")
316
- has_next_page: bool = Field(alias="hasNextPage")
317
-
318
-
319
- class RegistryFragment(GQLBase):
214
+ class RegistryFragment(GQLResult):
215
+ typename__: Typename[Literal["Project"]] = "Project"
320
216
  id: GQLId
321
- allow_all_artifact_types_in_registry: bool = Field(
322
- alias="allowAllArtifactTypesInRegistry"
323
- )
324
- artifact_types: RegistryFragmentArtifactTypes = Field(alias="artifactTypes")
325
217
  name: str
218
+ entity: RegistryFragmentEntity
326
219
  description: Optional[str]
327
220
  created_at: str = Field(alias="createdAt")
328
221
  updated_at: Optional[str] = Field(alias="updatedAt")
329
222
  access: Optional[str]
223
+ allow_all_artifact_types: bool = Field(alias="allowAllArtifactTypes")
224
+ artifact_types: RegistryFragmentArtifactTypes = Field(alias="artifactTypes")
330
225
 
331
226
 
332
- class RegistryFragmentArtifactTypes(GQLBase):
227
+ class RegistryFragmentArtifactTypes(GQLResult):
333
228
  edges: List[RegistryFragmentArtifactTypesEdges]
334
229
 
335
230
 
336
- class RegistryFragmentArtifactTypesEdges(GQLBase):
231
+ class RegistryFragmentArtifactTypesEdges(GQLResult):
337
232
  node: Optional[RegistryFragmentArtifactTypesEdgesNode]
338
233
 
339
234
 
340
- class RegistryFragmentArtifactTypesEdgesNode(GQLBase):
235
+ class RegistryFragmentArtifactTypesEdgesNode(GQLResult):
341
236
  name: str
342
237
 
343
238
 
344
- class RegistryVersionsPage(GQLBase):
345
- page_info: RegistryVersionsPagePageInfo = Field(alias="pageInfo")
346
- edges: List[RegistryVersionsPageEdges]
347
-
348
-
349
- class RegistryVersionsPageEdges(GQLBase):
350
- node: Optional[RegistryVersionsPageEdgesNode]
351
-
352
-
353
- class RegistryVersionsPageEdgesNode(GQLBase):
354
- artifact_collection: Optional[RegistryVersionsPageEdgesNodeArtifactCollection] = (
355
- Field(alias="artifactCollection")
356
- )
357
- version_index: Optional[int] = Field(alias="versionIndex")
358
- artifact: Optional[ArtifactFragmentWithoutAliases]
359
- aliases: List[RegistryVersionsPageEdgesNodeAliases]
360
-
361
-
362
- class RegistryVersionsPageEdgesNodeAliases(GQLBase):
363
- alias: str
364
-
365
-
366
- class RegistryVersionsPageEdgesNodeArtifactCollection(GQLBase):
367
- typename__: Typename[
368
- Literal["ArtifactCollection", "ArtifactPortfolio", "ArtifactSequence"]
369
- ]
370
- project: Optional[RegistryVersionsPageEdgesNodeArtifactCollectionProject]
239
+ class RegistryFragmentEntity(GQLResult):
371
240
  name: str
241
+ organization: Optional[RegistryFragmentEntityOrganization]
372
242
 
373
243
 
374
- class RegistryVersionsPageEdgesNodeArtifactCollectionProject(GQLBase):
244
+ class RegistryFragmentEntityOrganization(GQLResult):
375
245
  name: str
376
- entity: RegistryVersionsPageEdgesNodeArtifactCollectionProjectEntity
377
246
 
378
247
 
379
- class RegistryVersionsPageEdgesNodeArtifactCollectionProjectEntity(GQLBase):
248
+ class RunInfoFragment(GQLResult):
249
+ typename__: Typename[Literal["Run"]] = "Run"
250
+ id: GQLId
380
251
  name: str
252
+ project: Optional[ProjectInfoFragment]
381
253
 
382
254
 
383
- class RegistryVersionsPagePageInfo(GQLBase):
384
- end_cursor: Optional[str] = Field(alias="endCursor")
385
- has_next_page: bool = Field(alias="hasNextPage")
386
-
387
-
388
- class RunInputArtifactConnectionFragment(GQLBase):
255
+ class RunInputArtifactConnectionFragment(GQLResult):
389
256
  total_count: int = Field(alias="totalCount")
257
+ page_info: PageInfoFragment = Field(alias="pageInfo")
390
258
  edges: List[RunInputArtifactConnectionFragmentEdges]
391
- page_info: RunInputArtifactConnectionFragmentPageInfo = Field(alias="pageInfo")
392
259
 
393
260
 
394
- class RunInputArtifactConnectionFragmentEdges(GQLBase):
261
+ class RunInputArtifactConnectionFragmentEdges(GQLResult):
395
262
  node: Optional[ArtifactFragment]
396
- cursor: str
397
-
398
-
399
- class RunInputArtifactConnectionFragmentPageInfo(GQLBase):
400
- end_cursor: Optional[str] = Field(alias="endCursor")
401
- has_next_page: bool = Field(alias="hasNextPage")
402
263
 
403
264
 
404
- class RunOutputArtifactConnectionFragment(GQLBase):
265
+ class RunOutputArtifactConnectionFragment(GQLResult):
405
266
  total_count: int = Field(alias="totalCount")
267
+ page_info: PageInfoFragment = Field(alias="pageInfo")
406
268
  edges: List[RunOutputArtifactConnectionFragmentEdges]
407
- page_info: RunOutputArtifactConnectionFragmentPageInfo = Field(alias="pageInfo")
408
269
 
409
270
 
410
- class RunOutputArtifactConnectionFragmentEdges(GQLBase):
271
+ class RunOutputArtifactConnectionFragmentEdges(GQLResult):
411
272
  node: Optional[ArtifactFragment]
412
- cursor: str
413
273
 
414
274
 
415
- class RunOutputArtifactConnectionFragmentPageInfo(GQLBase):
416
- end_cursor: Optional[str] = Field(alias="endCursor")
417
- has_next_page: bool = Field(alias="hasNextPage")
275
+ class SourceCollectionInfoFragment(GQLResult):
276
+ typename__: Typename[Literal["ArtifactSequence"]] = "ArtifactSequence"
277
+ name: str
278
+ project: Optional[ProjectInfoFragment]
418
279
 
419
280
 
420
- class TypeInfoFragment(GQLBase):
281
+ class TagFragment(GQLResult):
282
+ typename__: Typename[Literal["Tag"]] = "Tag"
283
+ id: GQLId
284
+ name: str
285
+
286
+
287
+ class TypeInfoFragment(GQLResult):
421
288
  name: Optional[str]
422
289
  fields: Optional[List[TypeInfoFragmentFields]]
423
290
  input_fields: Optional[List[TypeInfoFragmentInputFields]] = Field(
@@ -425,100 +292,83 @@ class TypeInfoFragment(GQLBase):
425
292
  )
426
293
 
427
294
 
428
- class TypeInfoFragmentFields(GQLBase):
295
+ class TypeInfoFragmentFields(GQLResult):
429
296
  name: str
430
297
  args: List[TypeInfoFragmentFieldsArgs]
431
298
 
432
299
 
433
- class TypeInfoFragmentFieldsArgs(GQLBase):
300
+ class TypeInfoFragmentFieldsArgs(GQLResult):
434
301
  name: str
435
302
 
436
303
 
437
- class TypeInfoFragmentInputFields(GQLBase):
304
+ class TypeInfoFragmentInputFields(GQLResult):
438
305
  name: str
439
306
 
440
307
 
441
- class ArtifactFragment(ArtifactFragmentWithoutAliases):
442
- aliases: Optional[List[ArtifactFragmentAliases]] = None
308
+ class VersionedArtifactConnectionFragment(GQLResult):
309
+ total_count: int = Field(alias="totalCount")
310
+ page_info: PageInfoFragment = Field(alias="pageInfo")
311
+ edges: List[VersionedArtifactConnectionFragmentEdges]
443
312
 
444
313
 
445
- ArtifactCollectionsFragment.model_rebuild()
446
- ArtifactCollectionsFragmentEdges.model_rebuild()
447
- ArtifactCollectionsFragmentEdgesNode.model_rebuild()
448
- ArtifactCollectionsFragmentPageInfo.model_rebuild()
449
- ArtifactFragmentAliases.model_rebuild()
450
- ArtifactFragmentAliasesArtifactCollection.model_rebuild()
451
- ArtifactFragmentAliasesArtifactCollectionProject.model_rebuild()
452
- ArtifactFragmentWithoutAliases.model_rebuild()
453
- ArtifactFragmentWithoutAliasesArtifactSequence.model_rebuild()
454
- ArtifactFragmentWithoutAliasesArtifactSequenceProject.model_rebuild()
455
- ArtifactFragmentWithoutAliasesArtifactType.model_rebuild()
456
- ArtifactFragmentWithoutAliasesCurrentManifest.model_rebuild()
457
- ArtifactFragmentWithoutAliasesCurrentManifestFile.model_rebuild()
458
- ArtifactFragmentWithoutAliasesTags.model_rebuild()
314
+ class VersionedArtifactConnectionFragmentEdges(GQLResult):
315
+ node: ArtifactFragment
316
+ version: str
317
+
318
+
319
+ class ArtifactFragmentAliases(ArtifactAliasFragment):
320
+ artifact_collection: Optional[CollectionInfoFragment] = Field(
321
+ alias="artifactCollection"
322
+ )
323
+
324
+
325
+ ArtifactAliasFragment.model_rebuild()
326
+ ArtifactCollectionFragment.model_rebuild()
327
+ ArtifactCollectionFragmentAliases.model_rebuild()
328
+ ArtifactCollectionFragmentAliasesEdges.model_rebuild()
329
+ ArtifactCollectionFragmentTags.model_rebuild()
330
+ ArtifactCollectionFragmentTagsEdges.model_rebuild()
331
+ ArtifactCollectionFragmentType.model_rebuild()
332
+ ArtifactCollectionSummary.model_rebuild()
333
+ ArtifactFragment.model_rebuild()
334
+ ArtifactFragmentArtifactType.model_rebuild()
335
+ ArtifactMembershipFragment.model_rebuild()
459
336
  ArtifactPortfolioTypeFields.model_rebuild()
460
337
  ArtifactSequenceTypeFields.model_rebuild()
461
338
  ArtifactTypeFragment.model_rebuild()
462
- ArtifactTypesFragment.model_rebuild()
463
- ArtifactTypesFragmentEdges.model_rebuild()
464
- ArtifactTypesFragmentPageInfo.model_rebuild()
465
- ArtifactsFragment.model_rebuild()
466
- ArtifactsFragmentEdges.model_rebuild()
467
- ArtifactsFragmentPageInfo.model_rebuild()
468
- FileUrlsFragment.model_rebuild()
469
- FileUrlsFragmentEdges.model_rebuild()
470
- FileUrlsFragmentEdgesNode.model_rebuild()
471
- FileUrlsFragmentPageInfo.model_rebuild()
472
- FilesFragment.model_rebuild()
473
- FilesFragmentEdges.model_rebuild()
474
- FilesFragmentEdgesNode.model_rebuild()
475
- FilesFragmentPageInfo.model_rebuild()
476
- MembershipWithArtifact.model_rebuild()
477
- MembershipWithArtifactArtifactCollection.model_rebuild()
478
- MembershipWithArtifactArtifactCollectionProject.model_rebuild()
479
- RegistriesPage.model_rebuild()
480
- RegistriesPageEdges.model_rebuild()
481
- RegistriesPagePageInfo.model_rebuild()
482
- RegistryCollectionsPage.model_rebuild()
483
- RegistryCollectionsPageEdges.model_rebuild()
484
- RegistryCollectionsPageEdgesNode.model_rebuild()
485
- RegistryCollectionsPageEdgesNodeAliases.model_rebuild()
486
- RegistryCollectionsPageEdgesNodeAliasesEdges.model_rebuild()
487
- RegistryCollectionsPageEdgesNodeAliasesEdgesNode.model_rebuild()
488
- RegistryCollectionsPageEdgesNodeDefaultArtifactType.model_rebuild()
489
- RegistryCollectionsPageEdgesNodeProject.model_rebuild()
490
- RegistryCollectionsPageEdgesNodeProjectEntity.model_rebuild()
491
- RegistryCollectionsPageEdgesNodeTags.model_rebuild()
492
- RegistryCollectionsPageEdgesNodeTagsEdges.model_rebuild()
493
- RegistryCollectionsPageEdgesNodeTagsEdgesNode.model_rebuild()
494
- RegistryCollectionsPagePageInfo.model_rebuild()
339
+ CollectionInfoFragment.model_rebuild()
340
+ DeferredManifestFragment.model_rebuild()
341
+ DeferredManifestFragmentFile.model_rebuild()
342
+ FileFragment.model_rebuild()
343
+ FileWithUrlFragment.model_rebuild()
344
+ OrgInfoFragment.model_rebuild()
345
+ OrgInfoFragmentOrgEntity.model_rebuild()
346
+ PageInfoFragment.model_rebuild()
347
+ ProjectInfoFragment.model_rebuild()
348
+ ProjectInfoFragmentEntity.model_rebuild()
349
+ RegistryCollectionFragment.model_rebuild()
350
+ RegistryCollectionFragmentAliases.model_rebuild()
351
+ RegistryCollectionFragmentAliasesEdges.model_rebuild()
352
+ RegistryCollectionFragmentTags.model_rebuild()
353
+ RegistryCollectionFragmentTagsEdges.model_rebuild()
354
+ RegistryCollectionFragmentType.model_rebuild()
495
355
  RegistryFragment.model_rebuild()
496
356
  RegistryFragmentArtifactTypes.model_rebuild()
497
357
  RegistryFragmentArtifactTypesEdges.model_rebuild()
498
358
  RegistryFragmentArtifactTypesEdgesNode.model_rebuild()
499
- RegistryVersionsPage.model_rebuild()
500
- RegistryVersionsPageEdges.model_rebuild()
501
- RegistryVersionsPageEdgesNode.model_rebuild()
502
- RegistryVersionsPageEdgesNodeAliases.model_rebuild()
503
- RegistryVersionsPageEdgesNodeArtifactCollection.model_rebuild()
504
- RegistryVersionsPageEdgesNodeArtifactCollectionProject.model_rebuild()
505
- RegistryVersionsPageEdgesNodeArtifactCollectionProjectEntity.model_rebuild()
506
- RegistryVersionsPagePageInfo.model_rebuild()
359
+ RegistryFragmentEntity.model_rebuild()
360
+ RegistryFragmentEntityOrganization.model_rebuild()
361
+ RunInfoFragment.model_rebuild()
507
362
  RunInputArtifactConnectionFragment.model_rebuild()
508
363
  RunInputArtifactConnectionFragmentEdges.model_rebuild()
509
- RunInputArtifactConnectionFragmentPageInfo.model_rebuild()
510
364
  RunOutputArtifactConnectionFragment.model_rebuild()
511
365
  RunOutputArtifactConnectionFragmentEdges.model_rebuild()
512
- RunOutputArtifactConnectionFragmentPageInfo.model_rebuild()
366
+ SourceCollectionInfoFragment.model_rebuild()
367
+ TagFragment.model_rebuild()
513
368
  TypeInfoFragment.model_rebuild()
514
369
  TypeInfoFragmentFields.model_rebuild()
515
370
  TypeInfoFragmentFieldsArgs.model_rebuild()
516
371
  TypeInfoFragmentInputFields.model_rebuild()
517
- ArtifactFragment.model_rebuild()
518
- ArtifactFragmentWithoutAliases.model_rebuild()
519
- ArtifactTypeFragment.model_rebuild()
520
- RegistryFragment.model_rebuild()
521
- ArtifactFragment.model_rebuild()
522
- ArtifactFragment.model_rebuild()
523
- ArtifactFragment.model_rebuild()
524
- ArtifactFragment.model_rebuild()
372
+ VersionedArtifactConnectionFragment.model_rebuild()
373
+ VersionedArtifactConnectionFragmentEdges.model_rebuild()
374
+ ArtifactFragmentAliases.model_rebuild()