wandb 0.22.2__py3-none-macosx_12_0_arm64.whl → 0.22.3__py3-none-macosx_12_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.
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 +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,27 +3,29 @@
3
3
 
4
4
  __all__ = [
5
5
  "ADD_ALIASES_GQL",
6
+ "ADD_ARTIFACT_COLLECTION_TAGS_GQL",
6
7
  "ARTIFACT_BY_ID_GQL",
7
8
  "ARTIFACT_BY_NAME_GQL",
8
9
  "ARTIFACT_COLLECTION_MEMBERSHIP_FILES_GQL",
9
10
  "ARTIFACT_COLLECTION_MEMBERSHIP_FILE_URLS_GQL",
10
11
  "ARTIFACT_CREATED_BY_GQL",
11
12
  "ARTIFACT_FILE_URLS_GQL",
13
+ "ARTIFACT_MEMBERSHIP_BY_NAME_GQL",
12
14
  "ARTIFACT_TYPE_GQL",
13
15
  "ARTIFACT_USED_BY_GQL",
14
16
  "ARTIFACT_VERSION_FILES_GQL",
15
- "ARTIFACT_VIA_MEMBERSHIP_BY_NAME_GQL",
16
- "CREATE_ARTIFACT_COLLECTION_TAG_ASSIGNMENTS_GQL",
17
17
  "DELETE_ALIASES_GQL",
18
- "DELETE_ARTIFACT_COLLECTION_TAG_ASSIGNMENTS_GQL",
18
+ "DELETE_ARTIFACT_COLLECTION_TAGS_GQL",
19
19
  "DELETE_ARTIFACT_GQL",
20
20
  "DELETE_ARTIFACT_PORTFOLIO_GQL",
21
21
  "DELETE_ARTIFACT_SEQUENCE_GQL",
22
+ "DELETE_REGISTRY_GQL",
22
23
  "FETCH_ARTIFACT_MANIFEST_GQL",
23
24
  "FETCH_LINKED_ARTIFACTS_GQL",
25
+ "FETCH_ORG_INFO_FROM_ENTITY_GQL",
24
26
  "FETCH_REGISTRIES_GQL",
27
+ "FETCH_REGISTRY_GQL",
25
28
  "LINK_ARTIFACT_GQL",
26
- "MOVE_ARTIFACT_COLLECTION_GQL",
27
29
  "PROJECT_ARTIFACTS_GQL",
28
30
  "PROJECT_ARTIFACT_COLLECTIONS_GQL",
29
31
  "PROJECT_ARTIFACT_COLLECTION_GQL",
@@ -31,13 +33,16 @@ __all__ = [
31
33
  "PROJECT_ARTIFACT_TYPE_GQL",
32
34
  "REGISTRY_COLLECTIONS_GQL",
33
35
  "REGISTRY_VERSIONS_GQL",
36
+ "RENAME_REGISTRY_GQL",
34
37
  "RUN_INPUT_ARTIFACTS_GQL",
35
38
  "RUN_OUTPUT_ARTIFACTS_GQL",
36
39
  "TYPE_INFO_GQL",
37
40
  "UNLINK_ARTIFACT_GQL",
41
+ "UPDATE_ARTIFACT_COLLECTION_TYPE_GQL",
38
42
  "UPDATE_ARTIFACT_GQL",
39
43
  "UPDATE_ARTIFACT_PORTFOLIO_GQL",
40
44
  "UPDATE_ARTIFACT_SEQUENCE_GQL",
45
+ "UPSERT_REGISTRY_GQL",
41
46
  ]
42
47
 
43
48
  DELETE_ARTIFACT_SEQUENCE_GQL = """
@@ -63,213 +68,300 @@ mutation DeleteArtifactPortfolio($id: ID!) {
63
68
  """
64
69
 
65
70
  UPDATE_ARTIFACT_SEQUENCE_GQL = """
66
- mutation UpdateArtifactSequence($id: ID!, $name: String, $description: String) {
67
- updateArtifactSequence(
68
- input: {artifactSequenceID: $id, name: $name, description: $description}
69
- ) {
71
+ mutation UpdateArtifactSequence($input: UpdateArtifactSequenceInput!) {
72
+ updateArtifactSequence(input: $input) {
70
73
  artifactCollection {
71
74
  __typename
72
- id
73
- name
74
- description
75
+ ...ArtifactCollectionSummary
75
76
  }
76
77
  }
77
78
  }
79
+
80
+ fragment ArtifactCollectionSummary on ArtifactCollection {
81
+ __typename
82
+ id
83
+ name
84
+ description
85
+ createdAt
86
+ }
78
87
  """
79
88
 
80
89
  UPDATE_ARTIFACT_PORTFOLIO_GQL = """
81
- mutation UpdateArtifactPortfolio($id: ID!, $name: String, $description: String) {
82
- updateArtifactPortfolio(
83
- input: {artifactPortfolioID: $id, name: $name, description: $description}
84
- ) {
90
+ mutation UpdateArtifactPortfolio($input: UpdateArtifactPortfolioInput!) {
91
+ updateArtifactPortfolio(input: $input) {
85
92
  artifactCollection {
86
93
  __typename
87
- id
88
- name
89
- description
94
+ ...ArtifactCollectionSummary
90
95
  }
91
96
  }
92
97
  }
98
+
99
+ fragment ArtifactCollectionSummary on ArtifactCollection {
100
+ __typename
101
+ id
102
+ name
103
+ description
104
+ createdAt
105
+ }
93
106
  """
94
107
 
95
- MOVE_ARTIFACT_COLLECTION_GQL = """
96
- mutation MoveArtifactCollection($artifactSequenceID: ID!, $destinationArtifactTypeName: String!) {
97
- moveArtifactSequence(
98
- input: {artifactSequenceID: $artifactSequenceID, destinationArtifactTypeName: $destinationArtifactTypeName}
99
- ) {
108
+ UPDATE_ARTIFACT_COLLECTION_TYPE_GQL = """
109
+ mutation UpdateArtifactCollectionType($input: MoveArtifactSequenceInput!) {
110
+ moveArtifactSequence(input: $input) {
100
111
  artifactCollection {
101
112
  __typename
102
- id
103
- name
104
- description
113
+ ...ArtifactCollectionSummary
105
114
  }
106
115
  }
107
116
  }
117
+
118
+ fragment ArtifactCollectionSummary on ArtifactCollection {
119
+ __typename
120
+ id
121
+ name
122
+ description
123
+ createdAt
124
+ }
108
125
  """
109
126
 
110
- CREATE_ARTIFACT_COLLECTION_TAG_ASSIGNMENTS_GQL = """
111
- mutation CreateArtifactCollectionTagAssignments($entityName: String!, $projectName: String!, $artifactCollectionName: String!, $tags: [TagInput!]!) {
112
- createArtifactCollectionTagAssignments(
113
- input: {entityName: $entityName, projectName: $projectName, artifactCollectionName: $artifactCollectionName, tags: $tags}
114
- ) {
127
+ ADD_ARTIFACT_COLLECTION_TAGS_GQL = """
128
+ mutation AddArtifactCollectionTags($input: CreateArtifactCollectionTagAssignmentsInput!) {
129
+ createArtifactCollectionTagAssignments(input: $input) {
115
130
  tags {
116
- id
117
- name
118
- tagCategoryName
131
+ ...TagFragment
119
132
  }
120
133
  }
121
134
  }
135
+
136
+ fragment TagFragment on Tag {
137
+ __typename
138
+ id
139
+ name
140
+ }
122
141
  """
123
142
 
124
- DELETE_ARTIFACT_COLLECTION_TAG_ASSIGNMENTS_GQL = """
125
- mutation DeleteArtifactCollectionTagAssignments($entityName: String!, $projectName: String!, $artifactCollectionName: String!, $tags: [TagInput!]!) {
126
- deleteArtifactCollectionTagAssignments(
127
- input: {entityName: $entityName, projectName: $projectName, artifactCollectionName: $artifactCollectionName, tags: $tags}
128
- ) {
143
+ DELETE_ARTIFACT_COLLECTION_TAGS_GQL = """
144
+ mutation DeleteArtifactCollectionTags($input: DeleteArtifactCollectionTagAssignmentsInput!) {
145
+ deleteArtifactCollectionTagAssignments(input: $input) {
129
146
  success
130
147
  }
131
148
  }
132
149
  """
133
150
 
134
151
  PROJECT_ARTIFACT_COLLECTIONS_GQL = """
135
- query ProjectArtifactCollections($entityName: String!, $projectName: String!, $artifactTypeName: String!, $cursor: String) {
136
- project(name: $projectName, entityName: $entityName) {
137
- artifactType(name: $artifactTypeName) {
152
+ query ProjectArtifactCollections($entity: String!, $project: String!, $artifactType: String!, $cursor: String, $aliasesCursor: String, $aliasesPerPage: Int = 0, $includeAliases: Boolean = false) {
153
+ project(name: $project, entityName: $entity) {
154
+ artifactType(name: $artifactType) {
138
155
  artifactCollections: artifactCollections(after: $cursor) {
139
- ...ArtifactCollectionsFragment
156
+ totalCount
157
+ pageInfo {
158
+ ...PageInfoFragment
159
+ }
160
+ edges {
161
+ node {
162
+ __typename
163
+ ...ArtifactCollectionFragment
164
+ }
165
+ }
140
166
  }
141
167
  }
142
168
  }
143
169
  }
144
170
 
145
- fragment ArtifactCollectionsFragment on ArtifactCollectionConnection {
146
- pageInfo {
147
- endCursor
148
- hasNextPage
171
+ fragment ArtifactAliasFragment on ArtifactAlias {
172
+ __typename
173
+ id
174
+ alias
175
+ }
176
+
177
+ fragment ArtifactCollectionFragment on ArtifactCollection {
178
+ __typename
179
+ id
180
+ name
181
+ description
182
+ createdAt
183
+ project {
184
+ ...ProjectInfoFragment
149
185
  }
150
- totalCount
151
- edges {
152
- node {
153
- __typename
154
- id
155
- name
156
- description
157
- createdAt
186
+ type: defaultArtifactType {
187
+ name
188
+ }
189
+ tags {
190
+ edges {
191
+ node {
192
+ ...TagFragment
193
+ }
158
194
  }
159
- cursor
160
195
  }
196
+ aliases(after: $aliasesCursor, first: $aliasesPerPage) @include(if: $includeAliases) {
197
+ edges {
198
+ node {
199
+ ...ArtifactAliasFragment
200
+ }
201
+ }
202
+ }
203
+ }
204
+
205
+ fragment PageInfoFragment on PageInfo {
206
+ __typename
207
+ endCursor
208
+ hasNextPage
209
+ }
210
+
211
+ fragment ProjectInfoFragment on Project {
212
+ name
213
+ entity {
214
+ name
215
+ }
216
+ }
217
+
218
+ fragment TagFragment on Tag {
219
+ __typename
220
+ id
221
+ name
161
222
  }
162
223
  """
163
224
 
164
225
  PROJECT_ARTIFACT_COLLECTION_GQL = """
165
- query ProjectArtifactCollection($entityName: String!, $projectName: String!, $artifactTypeName: String!, $artifactCollectionName: String!, $cursor: String, $perPage: Int = 1000) {
166
- project(name: $projectName, entityName: $entityName) {
167
- artifactType(name: $artifactTypeName) {
168
- artifactCollection: artifactCollection(name: $artifactCollectionName) {
226
+ query ProjectArtifactCollection($entity: String!, $project: String!, $artifactType: String!, $name: String!, $aliasesCursor: String, $aliasesPerPage: Int = 1000, $includeAliases: Boolean = true) {
227
+ project(name: $project, entityName: $entity) {
228
+ artifactType(name: $artifactType) {
229
+ artifactCollection: artifactCollection(name: $name) {
169
230
  __typename
170
- id
171
- name
172
- description
173
- createdAt
174
- tags {
175
- edges {
176
- node {
177
- id
178
- name
179
- }
180
- }
181
- }
182
- aliases(after: $cursor, first: $perPage) {
183
- edges {
184
- node {
185
- alias
186
- }
187
- cursor
188
- }
189
- pageInfo {
190
- endCursor
191
- hasNextPage
192
- }
193
- }
231
+ ...ArtifactCollectionFragment
194
232
  }
195
- artifactSequence(name: $artifactCollectionName) {
196
- __typename
233
+ }
234
+ }
235
+ }
236
+
237
+ fragment ArtifactAliasFragment on ArtifactAlias {
238
+ __typename
239
+ id
240
+ alias
241
+ }
242
+
243
+ fragment ArtifactCollectionFragment on ArtifactCollection {
244
+ __typename
245
+ id
246
+ name
247
+ description
248
+ createdAt
249
+ project {
250
+ ...ProjectInfoFragment
251
+ }
252
+ type: defaultArtifactType {
253
+ name
254
+ }
255
+ tags {
256
+ edges {
257
+ node {
258
+ ...TagFragment
259
+ }
260
+ }
261
+ }
262
+ aliases(after: $aliasesCursor, first: $aliasesPerPage) @include(if: $includeAliases) {
263
+ edges {
264
+ node {
265
+ ...ArtifactAliasFragment
197
266
  }
198
267
  }
199
268
  }
200
269
  }
270
+
271
+ fragment ProjectInfoFragment on Project {
272
+ name
273
+ entity {
274
+ name
275
+ }
276
+ }
277
+
278
+ fragment TagFragment on Tag {
279
+ __typename
280
+ id
281
+ name
282
+ }
201
283
  """
202
284
 
203
285
  ARTIFACT_VERSION_FILES_GQL = """
204
- query ArtifactVersionFiles($entityName: String!, $projectName: String!, $artifactTypeName: String!, $artifactName: String!, $fileNames: [String!], $fileCursor: String, $fileLimit: Int = 50) {
286
+ query ArtifactVersionFiles($entityName: String!, $projectName: String!, $artifactTypeName: String!, $artifactName: String!, $fileNames: [String!], $cursor: String, $perPage: Int = 50) {
205
287
  project(name: $projectName, entityName: $entityName) {
206
288
  artifactType(name: $artifactTypeName) {
207
289
  artifact(name: $artifactName) {
208
- files(names: $fileNames, after: $fileCursor, first: $fileLimit) {
209
- ...FilesFragment
290
+ files(names: $fileNames, after: $cursor, first: $perPage) {
291
+ pageInfo {
292
+ ...PageInfoFragment
293
+ }
294
+ edges {
295
+ node {
296
+ ...FileFragment
297
+ }
298
+ }
210
299
  }
211
300
  }
212
301
  }
213
302
  }
214
303
  }
215
304
 
216
- fragment FilesFragment on FileConnection {
217
- edges {
218
- node {
219
- id
220
- name: displayName
221
- url
222
- sizeBytes
223
- storagePath @include(if: true)
224
- mimetype
225
- updatedAt
226
- digest
227
- md5
228
- directUrl
229
- }
230
- cursor
231
- }
232
- pageInfo {
233
- endCursor
234
- hasNextPage
235
- }
305
+ fragment FileFragment on File {
306
+ __typename
307
+ id
308
+ name: displayName
309
+ url
310
+ sizeBytes
311
+ storagePath @include(if: true)
312
+ mimetype
313
+ updatedAt
314
+ digest
315
+ md5
316
+ directUrl
317
+ }
318
+
319
+ fragment PageInfoFragment on PageInfo {
320
+ __typename
321
+ endCursor
322
+ hasNextPage
236
323
  }
237
324
  """
238
325
 
239
326
  ARTIFACT_COLLECTION_MEMBERSHIP_FILES_GQL = """
240
- query ArtifactCollectionMembershipFiles($entityName: String!, $projectName: String!, $artifactName: String!, $artifactVersionIndex: String!, $fileNames: [String!], $fileCursor: String, $fileLimit: Int = 50) {
327
+ query ArtifactCollectionMembershipFiles($entityName: String!, $projectName: String!, $artifactName: String!, $artifactVersionIndex: String!, $fileNames: [String!], $cursor: String, $perPage: Int = 50) {
241
328
  project(name: $projectName, entityName: $entityName) {
242
329
  artifactCollection(name: $artifactName) {
243
330
  __typename
244
331
  artifactMembership(aliasName: $artifactVersionIndex) {
245
- files(names: $fileNames, after: $fileCursor, first: $fileLimit) {
246
- ...FilesFragment
332
+ files(names: $fileNames, after: $cursor, first: $perPage) {
333
+ pageInfo {
334
+ ...PageInfoFragment
335
+ }
336
+ edges {
337
+ node {
338
+ ...FileFragment
339
+ }
340
+ }
247
341
  }
248
342
  }
249
343
  }
250
344
  }
251
345
  }
252
346
 
253
- fragment FilesFragment on FileConnection {
254
- edges {
255
- node {
256
- id
257
- name: displayName
258
- url
259
- sizeBytes
260
- storagePath @include(if: true)
261
- mimetype
262
- updatedAt
263
- digest
264
- md5
265
- directUrl
266
- }
267
- cursor
268
- }
269
- pageInfo {
270
- endCursor
271
- hasNextPage
272
- }
347
+ fragment FileFragment on File {
348
+ __typename
349
+ id
350
+ name: displayName
351
+ url
352
+ sizeBytes
353
+ storagePath @include(if: true)
354
+ mimetype
355
+ updatedAt
356
+ digest
357
+ md5
358
+ directUrl
359
+ }
360
+
361
+ fragment PageInfoFragment on PageInfo {
362
+ __typename
363
+ endCursor
364
+ hasNextPage
273
365
  }
274
366
  """
275
367
 
@@ -280,24 +372,30 @@ query ArtifactCollectionMembershipFileUrls($entityName: String!, $projectName: S
280
372
  __typename
281
373
  artifactMembership(aliasName: $artifactVersionIndex) {
282
374
  files(after: $cursor, first: $perPage) {
283
- ...FileUrlsFragment
375
+ pageInfo {
376
+ ...PageInfoFragment
377
+ }
378
+ edges {
379
+ node {
380
+ ...FileWithUrlFragment
381
+ }
382
+ }
284
383
  }
285
384
  }
286
385
  }
287
386
  }
288
387
  }
289
388
 
290
- fragment FileUrlsFragment on FileConnection {
291
- pageInfo {
292
- hasNextPage
293
- endCursor
294
- }
295
- edges {
296
- node {
297
- name
298
- directUrl
299
- }
300
- }
389
+ fragment FileWithUrlFragment on File {
390
+ __typename
391
+ name
392
+ directUrl
393
+ }
394
+
395
+ fragment PageInfoFragment on PageInfo {
396
+ __typename
397
+ endCursor
398
+ hasNextPage
301
399
  }
302
400
  """
303
401
 
@@ -305,22 +403,28 @@ ARTIFACT_FILE_URLS_GQL = """
305
403
  query ArtifactFileUrls($id: ID!, $cursor: String, $perPage: Int) {
306
404
  artifact(id: $id) {
307
405
  files(after: $cursor, first: $perPage) {
308
- ...FileUrlsFragment
406
+ pageInfo {
407
+ ...PageInfoFragment
408
+ }
409
+ edges {
410
+ node {
411
+ ...FileWithUrlFragment
412
+ }
413
+ }
309
414
  }
310
415
  }
311
416
  }
312
417
 
313
- fragment FileUrlsFragment on FileConnection {
314
- pageInfo {
315
- hasNextPage
316
- endCursor
317
- }
318
- edges {
319
- node {
320
- name
321
- directUrl
322
- }
323
- }
418
+ fragment FileWithUrlFragment on File {
419
+ __typename
420
+ name
421
+ directUrl
422
+ }
423
+
424
+ fragment PageInfoFragment on PageInfo {
425
+ __typename
426
+ endCursor
427
+ hasNextPage
324
428
  }
325
429
  """
326
430
 
@@ -328,7 +432,14 @@ PROJECT_ARTIFACT_TYPES_GQL = """
328
432
  query ProjectArtifactTypes($entityName: String!, $projectName: String!, $cursor: String) {
329
433
  project(name: $projectName, entityName: $entityName) {
330
434
  artifactTypes(after: $cursor) {
331
- ...ArtifactTypesFragment
435
+ edges {
436
+ node {
437
+ ...ArtifactTypeFragment
438
+ }
439
+ }
440
+ pageInfo {
441
+ ...PageInfoFragment
442
+ }
332
443
  }
333
444
  }
334
445
  }
@@ -341,17 +452,10 @@ fragment ArtifactTypeFragment on ArtifactType {
341
452
  createdAt
342
453
  }
343
454
 
344
- fragment ArtifactTypesFragment on ArtifactTypeConnection {
345
- edges {
346
- node {
347
- ...ArtifactTypeFragment
348
- }
349
- cursor
350
- }
351
- pageInfo {
352
- endCursor
353
- hasNextPage
354
- }
455
+ fragment PageInfoFragment on PageInfo {
456
+ __typename
457
+ endCursor
458
+ hasNextPage
355
459
  }
356
460
  """
357
461
 
@@ -374,43 +478,30 @@ fragment ArtifactTypeFragment on ArtifactType {
374
478
  """
375
479
 
376
480
  PROJECT_ARTIFACTS_GQL = """
377
- query ProjectArtifacts($project: String!, $entity: String!, $type: String!, $collection: String!, $cursor: String, $perPage: Int = 50, $order: String, $filters: JSONString) {
481
+ query ProjectArtifacts($project: String!, $entity: String!, $type: String!, $collection: String!, $cursor: String, $perPage: Int = 50, $order: String, $filters: JSONString, $includeAliases: Boolean = true) {
378
482
  project(name: $project, entityName: $entity) {
379
483
  artifactType(name: $type) {
380
484
  artifactCollection: artifactCollection(name: $collection) {
381
485
  __typename
382
- name
383
486
  artifacts(filters: $filters, after: $cursor, first: $perPage, order: $order) {
384
- ...ArtifactsFragment
487
+ ...VersionedArtifactConnectionFragment
385
488
  }
386
489
  }
387
490
  }
388
491
  }
389
492
  }
390
493
 
391
- fragment ArtifactFragment on Artifact {
392
- ...ArtifactFragmentWithoutAliases
393
- aliases @include(if: true) {
394
- artifactCollection {
395
- __typename
396
- project {
397
- entityName
398
- name
399
- }
400
- name
401
- }
402
- alias
403
- }
494
+ fragment ArtifactAliasFragment on ArtifactAlias {
495
+ __typename
496
+ id
497
+ alias
404
498
  }
405
499
 
406
- fragment ArtifactFragmentWithoutAliases on Artifact {
500
+ fragment ArtifactFragment on Artifact {
501
+ __typename
407
502
  id
408
503
  artifactSequence {
409
- project {
410
- entityName
411
- name
412
- }
413
- name
504
+ ...SourceCollectionInfoFragment
414
505
  }
415
506
  versionIndex
416
507
  artifactType {
@@ -421,71 +512,95 @@ fragment ArtifactFragmentWithoutAliases on Artifact {
421
512
  ttlDurationSeconds @include(if: true)
422
513
  ttlIsInherited @include(if: true)
423
514
  tags @include(if: true) {
424
- name
515
+ ...TagFragment
425
516
  }
426
517
  historyStep @include(if: true)
427
518
  state
428
- currentManifest {
429
- file {
430
- directUrl
431
- }
432
- }
519
+ size
520
+ digest
433
521
  commitHash
434
522
  fileCount
435
523
  createdAt
436
524
  updatedAt
437
- }
438
-
439
- fragment ArtifactsFragment on VersionedArtifactConnection {
440
- totalCount
441
- edges {
442
- node {
443
- ...ArtifactFragment
525
+ aliases @include(if: $includeAliases) {
526
+ artifactCollection {
527
+ ...CollectionInfoFragment
444
528
  }
445
- version
446
- cursor
529
+ ...ArtifactAliasFragment
447
530
  }
448
- pageInfo {
449
- endCursor
450
- hasNextPage
531
+ }
532
+
533
+ fragment CollectionInfoFragment on ArtifactCollection {
534
+ __typename
535
+ name
536
+ project {
537
+ ...ProjectInfoFragment
451
538
  }
452
539
  }
453
- """
454
540
 
455
- RUN_OUTPUT_ARTIFACTS_GQL = """
456
- query RunOutputArtifacts($entity: String!, $project: String!, $runName: String!, $cursor: String, $perPage: Int) {
457
- project(name: $project, entityName: $entity) {
458
- run(name: $runName) {
459
- outputArtifacts(after: $cursor, first: $perPage) {
460
- ...RunOutputArtifactConnectionFragment
461
- }
541
+ fragment PageInfoFragment on PageInfo {
542
+ __typename
543
+ endCursor
544
+ hasNextPage
545
+ }
546
+
547
+ fragment ProjectInfoFragment on Project {
548
+ name
549
+ entity {
550
+ name
551
+ }
552
+ }
553
+
554
+ fragment SourceCollectionInfoFragment on ArtifactSequence {
555
+ __typename
556
+ name
557
+ project {
558
+ ...ProjectInfoFragment
559
+ }
560
+ }
561
+
562
+ fragment TagFragment on Tag {
563
+ __typename
564
+ id
565
+ name
566
+ }
567
+
568
+ fragment VersionedArtifactConnectionFragment on VersionedArtifactConnection {
569
+ totalCount
570
+ pageInfo {
571
+ ...PageInfoFragment
572
+ }
573
+ edges {
574
+ node {
575
+ ...ArtifactFragment
462
576
  }
577
+ version
463
578
  }
464
579
  }
580
+ """
465
581
 
466
- fragment ArtifactFragment on Artifact {
467
- ...ArtifactFragmentWithoutAliases
468
- aliases @include(if: true) {
469
- artifactCollection {
470
- __typename
471
- project {
472
- entityName
473
- name
582
+ RUN_OUTPUT_ARTIFACTS_GQL = """
583
+ query RunOutputArtifacts($entity: String!, $project: String!, $runName: String!, $cursor: String, $perPage: Int, $includeAliases: Boolean = true) {
584
+ project(name: $project, entityName: $entity) {
585
+ run(name: $runName) {
586
+ artifacts: outputArtifacts(after: $cursor, first: $perPage) {
587
+ ...RunOutputArtifactConnectionFragment
474
588
  }
475
- name
476
589
  }
477
- alias
478
590
  }
479
591
  }
480
592
 
481
- fragment ArtifactFragmentWithoutAliases on Artifact {
593
+ fragment ArtifactAliasFragment on ArtifactAlias {
594
+ __typename
595
+ id
596
+ alias
597
+ }
598
+
599
+ fragment ArtifactFragment on Artifact {
600
+ __typename
482
601
  id
483
602
  artifactSequence {
484
- project {
485
- entityName
486
- name
487
- }
488
- name
603
+ ...SourceCollectionInfoFragment
489
604
  }
490
605
  versionIndex
491
606
  artifactType {
@@ -496,70 +611,94 @@ fragment ArtifactFragmentWithoutAliases on Artifact {
496
611
  ttlDurationSeconds @include(if: true)
497
612
  ttlIsInherited @include(if: true)
498
613
  tags @include(if: true) {
499
- name
614
+ ...TagFragment
500
615
  }
501
616
  historyStep @include(if: true)
502
617
  state
503
- currentManifest {
504
- file {
505
- directUrl
506
- }
507
- }
618
+ size
619
+ digest
508
620
  commitHash
509
621
  fileCount
510
622
  createdAt
511
623
  updatedAt
624
+ aliases @include(if: $includeAliases) {
625
+ artifactCollection {
626
+ ...CollectionInfoFragment
627
+ }
628
+ ...ArtifactAliasFragment
629
+ }
630
+ }
631
+
632
+ fragment CollectionInfoFragment on ArtifactCollection {
633
+ __typename
634
+ name
635
+ project {
636
+ ...ProjectInfoFragment
637
+ }
638
+ }
639
+
640
+ fragment PageInfoFragment on PageInfo {
641
+ __typename
642
+ endCursor
643
+ hasNextPage
644
+ }
645
+
646
+ fragment ProjectInfoFragment on Project {
647
+ name
648
+ entity {
649
+ name
650
+ }
512
651
  }
513
652
 
514
653
  fragment RunOutputArtifactConnectionFragment on ArtifactConnection {
515
654
  totalCount
655
+ pageInfo {
656
+ ...PageInfoFragment
657
+ }
516
658
  edges {
517
659
  node {
518
660
  ...ArtifactFragment
519
661
  }
520
- cursor
521
662
  }
522
- pageInfo {
523
- endCursor
524
- hasNextPage
663
+ }
664
+
665
+ fragment SourceCollectionInfoFragment on ArtifactSequence {
666
+ __typename
667
+ name
668
+ project {
669
+ ...ProjectInfoFragment
525
670
  }
526
671
  }
672
+
673
+ fragment TagFragment on Tag {
674
+ __typename
675
+ id
676
+ name
677
+ }
527
678
  """
528
679
 
529
680
  RUN_INPUT_ARTIFACTS_GQL = """
530
- query RunInputArtifacts($entity: String!, $project: String!, $runName: String!, $cursor: String, $perPage: Int) {
681
+ query RunInputArtifacts($entity: String!, $project: String!, $runName: String!, $cursor: String, $perPage: Int, $includeAliases: Boolean = true) {
531
682
  project(name: $project, entityName: $entity) {
532
683
  run(name: $runName) {
533
- inputArtifacts(after: $cursor, first: $perPage) {
684
+ artifacts: inputArtifacts(after: $cursor, first: $perPage) {
534
685
  ...RunInputArtifactConnectionFragment
535
686
  }
536
687
  }
537
688
  }
538
689
  }
539
690
 
540
- fragment ArtifactFragment on Artifact {
541
- ...ArtifactFragmentWithoutAliases
542
- aliases @include(if: true) {
543
- artifactCollection {
544
- __typename
545
- project {
546
- entityName
547
- name
548
- }
549
- name
550
- }
551
- alias
552
- }
691
+ fragment ArtifactAliasFragment on ArtifactAlias {
692
+ __typename
693
+ id
694
+ alias
553
695
  }
554
696
 
555
- fragment ArtifactFragmentWithoutAliases on Artifact {
697
+ fragment ArtifactFragment on Artifact {
698
+ __typename
556
699
  id
557
700
  artifactSequence {
558
- project {
559
- entityName
560
- name
561
- }
562
- name
701
+ ...SourceCollectionInfoFragment
563
702
  }
564
703
  versionIndex
565
704
  artifactType {
@@ -570,34 +709,70 @@ fragment ArtifactFragmentWithoutAliases on Artifact {
570
709
  ttlDurationSeconds @include(if: true)
571
710
  ttlIsInherited @include(if: true)
572
711
  tags @include(if: true) {
573
- name
712
+ ...TagFragment
574
713
  }
575
714
  historyStep @include(if: true)
576
715
  state
577
- currentManifest {
578
- file {
579
- directUrl
580
- }
581
- }
716
+ size
717
+ digest
582
718
  commitHash
583
719
  fileCount
584
720
  createdAt
585
721
  updatedAt
722
+ aliases @include(if: $includeAliases) {
723
+ artifactCollection {
724
+ ...CollectionInfoFragment
725
+ }
726
+ ...ArtifactAliasFragment
727
+ }
728
+ }
729
+
730
+ fragment CollectionInfoFragment on ArtifactCollection {
731
+ __typename
732
+ name
733
+ project {
734
+ ...ProjectInfoFragment
735
+ }
736
+ }
737
+
738
+ fragment PageInfoFragment on PageInfo {
739
+ __typename
740
+ endCursor
741
+ hasNextPage
742
+ }
743
+
744
+ fragment ProjectInfoFragment on Project {
745
+ name
746
+ entity {
747
+ name
748
+ }
586
749
  }
587
750
 
588
751
  fragment RunInputArtifactConnectionFragment on InputArtifactConnection {
589
752
  totalCount
753
+ pageInfo {
754
+ ...PageInfoFragment
755
+ }
590
756
  edges {
591
757
  node {
592
758
  ...ArtifactFragment
593
759
  }
594
- cursor
595
760
  }
596
- pageInfo {
597
- endCursor
598
- hasNextPage
761
+ }
762
+
763
+ fragment SourceCollectionInfoFragment on ArtifactSequence {
764
+ __typename
765
+ name
766
+ project {
767
+ ...ProjectInfoFragment
599
768
  }
600
769
  }
770
+
771
+ fragment TagFragment on Tag {
772
+ __typename
773
+ id
774
+ name
775
+ }
601
776
  """
602
777
 
603
778
  FETCH_LINKED_ARTIFACTS_GQL = """
@@ -606,69 +781,76 @@ query FetchLinkedArtifacts($artifactID: ID!) {
606
781
  artifactMemberships {
607
782
  edges {
608
783
  node {
784
+ versionIndex
609
785
  aliases {
610
- alias
786
+ ...ArtifactAliasFragment
611
787
  }
612
- versionIndex
613
788
  artifactCollection {
614
- project {
615
- entityName
616
- name
617
- }
618
- name
619
789
  __typename
790
+ ...CollectionInfoFragment
620
791
  }
621
792
  }
622
793
  }
623
794
  }
624
795
  }
625
796
  }
797
+
798
+ fragment ArtifactAliasFragment on ArtifactAlias {
799
+ __typename
800
+ id
801
+ alias
802
+ }
803
+
804
+ fragment CollectionInfoFragment on ArtifactCollection {
805
+ __typename
806
+ name
807
+ project {
808
+ ...ProjectInfoFragment
809
+ }
810
+ }
811
+
812
+ fragment ProjectInfoFragment on Project {
813
+ name
814
+ entity {
815
+ name
816
+ }
817
+ }
626
818
  """
627
819
 
628
820
  FETCH_ARTIFACT_MANIFEST_GQL = """
629
- query FetchArtifactManifest($entityName: String!, $projectName: String!, $name: String!) {
630
- project(entityName: $entityName, name: $projectName) {
631
- artifact(name: $name) {
632
- currentManifest {
633
- file {
634
- directUrl
635
- }
636
- }
821
+ query FetchArtifactManifest($id: ID!) {
822
+ artifact(id: $id) {
823
+ currentManifest {
824
+ ...DeferredManifestFragment
637
825
  }
638
826
  }
639
827
  }
828
+
829
+ fragment DeferredManifestFragment on ArtifactManifest {
830
+ file {
831
+ directUrl
832
+ }
833
+ }
640
834
  """
641
835
 
642
836
  ARTIFACT_BY_ID_GQL = """
643
- query ArtifactByID($id: ID!) {
837
+ query ArtifactByID($id: ID!, $includeAliases: Boolean = true) {
644
838
  artifact(id: $id) {
645
839
  ...ArtifactFragment
646
840
  }
647
841
  }
648
842
 
649
- fragment ArtifactFragment on Artifact {
650
- ...ArtifactFragmentWithoutAliases
651
- aliases @include(if: true) {
652
- artifactCollection {
653
- __typename
654
- project {
655
- entityName
656
- name
657
- }
658
- name
659
- }
660
- alias
661
- }
843
+ fragment ArtifactAliasFragment on ArtifactAlias {
844
+ __typename
845
+ id
846
+ alias
662
847
  }
663
848
 
664
- fragment ArtifactFragmentWithoutAliases on Artifact {
849
+ fragment ArtifactFragment on Artifact {
850
+ __typename
665
851
  id
666
852
  artifactSequence {
667
- project {
668
- entityName
669
- name
670
- }
671
- name
853
+ ...SourceCollectionInfoFragment
672
854
  }
673
855
  versionIndex
674
856
  artifactType {
@@ -679,54 +861,74 @@ fragment ArtifactFragmentWithoutAliases on Artifact {
679
861
  ttlDurationSeconds @include(if: true)
680
862
  ttlIsInherited @include(if: true)
681
863
  tags @include(if: true) {
682
- name
864
+ ...TagFragment
683
865
  }
684
866
  historyStep @include(if: true)
685
867
  state
686
- currentManifest {
687
- file {
688
- directUrl
689
- }
690
- }
868
+ size
869
+ digest
691
870
  commitHash
692
871
  fileCount
693
872
  createdAt
694
873
  updatedAt
874
+ aliases @include(if: $includeAliases) {
875
+ artifactCollection {
876
+ ...CollectionInfoFragment
877
+ }
878
+ ...ArtifactAliasFragment
879
+ }
880
+ }
881
+
882
+ fragment CollectionInfoFragment on ArtifactCollection {
883
+ __typename
884
+ name
885
+ project {
886
+ ...ProjectInfoFragment
887
+ }
888
+ }
889
+
890
+ fragment ProjectInfoFragment on Project {
891
+ name
892
+ entity {
893
+ name
894
+ }
895
+ }
896
+
897
+ fragment SourceCollectionInfoFragment on ArtifactSequence {
898
+ __typename
899
+ name
900
+ project {
901
+ ...ProjectInfoFragment
902
+ }
903
+ }
904
+
905
+ fragment TagFragment on Tag {
906
+ __typename
907
+ id
908
+ name
695
909
  }
696
910
  """
697
911
 
698
912
  ARTIFACT_BY_NAME_GQL = """
699
- query ArtifactByName($entityName: String!, $projectName: String!, $name: String!, $enableTracking: Boolean) {
700
- project(name: $projectName, entityName: $entityName) {
913
+ query ArtifactByName($entity: String!, $project: String!, $name: String!, $enableTracking: Boolean, $includeAliases: Boolean = true) {
914
+ project(name: $project, entityName: $entity) {
701
915
  artifact(name: $name, enableTracking: $enableTracking) {
702
916
  ...ArtifactFragment
703
917
  }
704
918
  }
705
919
  }
706
920
 
707
- fragment ArtifactFragment on Artifact {
708
- ...ArtifactFragmentWithoutAliases
709
- aliases @include(if: true) {
710
- artifactCollection {
711
- __typename
712
- project {
713
- entityName
714
- name
715
- }
716
- name
717
- }
718
- alias
719
- }
921
+ fragment ArtifactAliasFragment on ArtifactAlias {
922
+ __typename
923
+ id
924
+ alias
720
925
  }
721
926
 
722
- fragment ArtifactFragmentWithoutAliases on Artifact {
927
+ fragment ArtifactFragment on Artifact {
928
+ __typename
723
929
  id
724
930
  artifactSequence {
725
- project {
726
- entityName
727
- name
728
- }
729
- name
931
+ ...SourceCollectionInfoFragment
730
932
  }
731
933
  versionIndex
732
934
  artifactType {
@@ -737,54 +939,74 @@ fragment ArtifactFragmentWithoutAliases on Artifact {
737
939
  ttlDurationSeconds @include(if: true)
738
940
  ttlIsInherited @include(if: true)
739
941
  tags @include(if: true) {
740
- name
942
+ ...TagFragment
741
943
  }
742
944
  historyStep @include(if: true)
743
945
  state
744
- currentManifest {
745
- file {
746
- directUrl
747
- }
748
- }
946
+ size
947
+ digest
749
948
  commitHash
750
949
  fileCount
751
950
  createdAt
752
951
  updatedAt
952
+ aliases @include(if: $includeAliases) {
953
+ artifactCollection {
954
+ ...CollectionInfoFragment
955
+ }
956
+ ...ArtifactAliasFragment
957
+ }
958
+ }
959
+
960
+ fragment CollectionInfoFragment on ArtifactCollection {
961
+ __typename
962
+ name
963
+ project {
964
+ ...ProjectInfoFragment
965
+ }
966
+ }
967
+
968
+ fragment ProjectInfoFragment on Project {
969
+ name
970
+ entity {
971
+ name
972
+ }
973
+ }
974
+
975
+ fragment SourceCollectionInfoFragment on ArtifactSequence {
976
+ __typename
977
+ name
978
+ project {
979
+ ...ProjectInfoFragment
980
+ }
981
+ }
982
+
983
+ fragment TagFragment on Tag {
984
+ __typename
985
+ id
986
+ name
753
987
  }
754
988
  """
755
989
 
756
- ARTIFACT_VIA_MEMBERSHIP_BY_NAME_GQL = """
757
- query ArtifactViaMembershipByName($entityName: String!, $projectName: String!, $name: String!) {
758
- project(name: $projectName, entityName: $entityName) {
990
+ ARTIFACT_MEMBERSHIP_BY_NAME_GQL = """
991
+ query ArtifactMembershipByName($entity: String!, $project: String!, $name: String!, $includeAliases: Boolean = true) {
992
+ project(name: $project, entityName: $entity) {
759
993
  artifactCollectionMembership(name: $name) {
760
- ...MembershipWithArtifact
994
+ ...ArtifactMembershipFragment
761
995
  }
762
996
  }
763
997
  }
764
998
 
765
- fragment ArtifactFragment on Artifact {
766
- ...ArtifactFragmentWithoutAliases
767
- aliases @include(if: true) {
768
- artifactCollection {
769
- __typename
770
- project {
771
- entityName
772
- name
773
- }
774
- name
775
- }
776
- alias
777
- }
999
+ fragment ArtifactAliasFragment on ArtifactAlias {
1000
+ __typename
1001
+ id
1002
+ alias
778
1003
  }
779
1004
 
780
- fragment ArtifactFragmentWithoutAliases on Artifact {
1005
+ fragment ArtifactFragment on Artifact {
1006
+ __typename
781
1007
  id
782
1008
  artifactSequence {
783
- project {
784
- entityName
785
- name
786
- }
787
- name
1009
+ ...SourceCollectionInfoFragment
788
1010
  }
789
1011
  versionIndex
790
1012
  artifactType {
@@ -795,37 +1017,67 @@ fragment ArtifactFragmentWithoutAliases on Artifact {
795
1017
  ttlDurationSeconds @include(if: true)
796
1018
  ttlIsInherited @include(if: true)
797
1019
  tags @include(if: true) {
798
- name
1020
+ ...TagFragment
799
1021
  }
800
1022
  historyStep @include(if: true)
801
1023
  state
802
- currentManifest {
803
- file {
804
- directUrl
805
- }
806
- }
1024
+ size
1025
+ digest
807
1026
  commitHash
808
1027
  fileCount
809
1028
  createdAt
810
1029
  updatedAt
811
- }
1030
+ aliases @include(if: $includeAliases) {
1031
+ artifactCollection {
1032
+ ...CollectionInfoFragment
1033
+ }
1034
+ ...ArtifactAliasFragment
1035
+ }
1036
+ }
812
1037
 
813
- fragment MembershipWithArtifact on ArtifactCollectionMembership {
1038
+ fragment ArtifactMembershipFragment on ArtifactCollectionMembership {
1039
+ __typename
814
1040
  id
1041
+ versionIndex
1042
+ aliases {
1043
+ ...ArtifactAliasFragment
1044
+ }
815
1045
  artifactCollection {
816
- __typename
817
- id
818
- name
819
- project {
820
- id
821
- entityName
822
- name
823
- }
1046
+ ...CollectionInfoFragment
824
1047
  }
825
1048
  artifact {
826
1049
  ...ArtifactFragment
827
1050
  }
828
1051
  }
1052
+
1053
+ fragment CollectionInfoFragment on ArtifactCollection {
1054
+ __typename
1055
+ name
1056
+ project {
1057
+ ...ProjectInfoFragment
1058
+ }
1059
+ }
1060
+
1061
+ fragment ProjectInfoFragment on Project {
1062
+ name
1063
+ entity {
1064
+ name
1065
+ }
1066
+ }
1067
+
1068
+ fragment SourceCollectionInfoFragment on ArtifactSequence {
1069
+ __typename
1070
+ name
1071
+ project {
1072
+ ...ProjectInfoFragment
1073
+ }
1074
+ }
1075
+
1076
+ fragment TagFragment on Tag {
1077
+ __typename
1078
+ id
1079
+ name
1080
+ }
829
1081
  """
830
1082
 
831
1083
  ARTIFACT_USED_BY_GQL = """
@@ -834,16 +1086,28 @@ query ArtifactUsedBy($id: ID!) {
834
1086
  usedBy {
835
1087
  edges {
836
1088
  node {
837
- name
838
- project {
839
- name
840
- entityName
841
- }
1089
+ ...RunInfoFragment
842
1090
  }
843
1091
  }
844
1092
  }
845
1093
  }
846
1094
  }
1095
+
1096
+ fragment ProjectInfoFragment on Project {
1097
+ name
1098
+ entity {
1099
+ name
1100
+ }
1101
+ }
1102
+
1103
+ fragment RunInfoFragment on Run {
1104
+ __typename
1105
+ id
1106
+ name
1107
+ project {
1108
+ ...ProjectInfoFragment
1109
+ }
1110
+ }
847
1111
  """
848
1112
 
849
1113
  ARTIFACT_CREATED_BY_GQL = """
@@ -852,15 +1116,27 @@ query ArtifactCreatedBy($id: ID!) {
852
1116
  createdBy {
853
1117
  __typename
854
1118
  ... on Run {
855
- name
856
- project {
857
- name
858
- entityName
859
- }
1119
+ ...RunInfoFragment
860
1120
  }
861
1121
  }
862
1122
  }
863
1123
  }
1124
+
1125
+ fragment ProjectInfoFragment on Project {
1126
+ name
1127
+ entity {
1128
+ name
1129
+ }
1130
+ }
1131
+
1132
+ fragment RunInfoFragment on Run {
1133
+ __typename
1134
+ id
1135
+ name
1136
+ project {
1137
+ ...ProjectInfoFragment
1138
+ }
1139
+ }
864
1140
  """
865
1141
 
866
1142
  ARTIFACT_TYPE_GQL = """
@@ -876,55 +1152,41 @@ query ArtifactType($entityName: String, $projectName: String, $name: String!) {
876
1152
  """
877
1153
 
878
1154
  ADD_ALIASES_GQL = """
879
- mutation AddAliases($artifactID: ID!, $aliases: [ArtifactCollectionAliasInput!]!) {
880
- addAliases(input: {artifactID: $artifactID, aliases: $aliases}) {
1155
+ mutation AddAliases($input: AddAliasesInput!) {
1156
+ addAliases(input: $input) {
881
1157
  success
882
1158
  }
883
1159
  }
884
1160
  """
885
1161
 
886
1162
  DELETE_ALIASES_GQL = """
887
- mutation DeleteAliases($artifactID: ID!, $aliases: [ArtifactCollectionAliasInput!]!) {
888
- deleteAliases(input: {artifactID: $artifactID, aliases: $aliases}) {
1163
+ mutation DeleteAliases($input: DeleteAliasesInput!) {
1164
+ deleteAliases(input: $input) {
889
1165
  success
890
1166
  }
891
1167
  }
892
1168
  """
893
1169
 
894
1170
  UPDATE_ARTIFACT_GQL = """
895
- mutation UpdateArtifact($artifactID: ID!, $description: String, $metadata: JSONString, $ttlDurationSeconds: Int64, $tagsToAdd: [TagInput!], $tagsToDelete: [TagInput!], $aliases: [ArtifactAliasInput!]) {
896
- updateArtifact(
897
- input: {artifactID: $artifactID, description: $description, metadata: $metadata, ttlDurationSeconds: $ttlDurationSeconds, tagsToAdd: $tagsToAdd, tagsToDelete: $tagsToDelete, aliases: $aliases}
898
- ) {
1171
+ mutation UpdateArtifact($input: UpdateArtifactInput!, $includeAliases: Boolean = true) {
1172
+ updateArtifact(input: $input) {
899
1173
  artifact {
900
1174
  ...ArtifactFragment
901
1175
  }
902
1176
  }
903
1177
  }
904
1178
 
905
- fragment ArtifactFragment on Artifact {
906
- ...ArtifactFragmentWithoutAliases
907
- aliases @include(if: true) {
908
- artifactCollection {
909
- __typename
910
- project {
911
- entityName
912
- name
913
- }
914
- name
915
- }
916
- alias
917
- }
1179
+ fragment ArtifactAliasFragment on ArtifactAlias {
1180
+ __typename
1181
+ id
1182
+ alias
918
1183
  }
919
1184
 
920
- fragment ArtifactFragmentWithoutAliases on Artifact {
1185
+ fragment ArtifactFragment on Artifact {
1186
+ __typename
921
1187
  id
922
1188
  artifactSequence {
923
- project {
924
- entityName
925
- name
926
- }
927
- name
1189
+ ...SourceCollectionInfoFragment
928
1190
  }
929
1191
  versionIndex
930
1192
  artifactType {
@@ -935,25 +1197,57 @@ fragment ArtifactFragmentWithoutAliases on Artifact {
935
1197
  ttlDurationSeconds @include(if: true)
936
1198
  ttlIsInherited @include(if: true)
937
1199
  tags @include(if: true) {
938
- name
1200
+ ...TagFragment
939
1201
  }
940
1202
  historyStep @include(if: true)
941
1203
  state
942
- currentManifest {
943
- file {
944
- directUrl
945
- }
946
- }
1204
+ size
1205
+ digest
947
1206
  commitHash
948
1207
  fileCount
949
1208
  createdAt
950
1209
  updatedAt
1210
+ aliases @include(if: $includeAliases) {
1211
+ artifactCollection {
1212
+ ...CollectionInfoFragment
1213
+ }
1214
+ ...ArtifactAliasFragment
1215
+ }
1216
+ }
1217
+
1218
+ fragment CollectionInfoFragment on ArtifactCollection {
1219
+ __typename
1220
+ name
1221
+ project {
1222
+ ...ProjectInfoFragment
1223
+ }
1224
+ }
1225
+
1226
+ fragment ProjectInfoFragment on Project {
1227
+ name
1228
+ entity {
1229
+ name
1230
+ }
1231
+ }
1232
+
1233
+ fragment SourceCollectionInfoFragment on ArtifactSequence {
1234
+ __typename
1235
+ name
1236
+ project {
1237
+ ...ProjectInfoFragment
1238
+ }
1239
+ }
1240
+
1241
+ fragment TagFragment on Tag {
1242
+ __typename
1243
+ id
1244
+ name
951
1245
  }
952
1246
  """
953
1247
 
954
1248
  DELETE_ARTIFACT_GQL = """
955
- mutation DeleteArtifact($artifactID: ID!, $deleteAliases: Boolean) {
956
- deleteArtifact(input: {artifactID: $artifactID, deleteAliases: $deleteAliases}) {
1249
+ mutation DeleteArtifact($input: DeleteArtifactInput!) {
1250
+ deleteArtifact(input: $input) {
957
1251
  artifact {
958
1252
  id
959
1253
  }
@@ -962,38 +1256,26 @@ mutation DeleteArtifact($artifactID: ID!, $deleteAliases: Boolean) {
962
1256
  """
963
1257
 
964
1258
  LINK_ARTIFACT_GQL = """
965
- mutation LinkArtifact($input: LinkArtifactInput!) {
1259
+ mutation LinkArtifact($input: LinkArtifactInput!, $includeAliases: Boolean = true) {
966
1260
  linkArtifact(input: $input) {
967
1261
  versionIndex
968
1262
  artifactMembership @include(if: true) {
969
- ...MembershipWithArtifact
1263
+ ...ArtifactMembershipFragment
970
1264
  }
971
1265
  }
972
1266
  }
973
1267
 
974
- fragment ArtifactFragment on Artifact {
975
- ...ArtifactFragmentWithoutAliases
976
- aliases @include(if: true) {
977
- artifactCollection {
978
- __typename
979
- project {
980
- entityName
981
- name
982
- }
983
- name
984
- }
985
- alias
986
- }
1268
+ fragment ArtifactAliasFragment on ArtifactAlias {
1269
+ __typename
1270
+ id
1271
+ alias
987
1272
  }
988
1273
 
989
- fragment ArtifactFragmentWithoutAliases on Artifact {
1274
+ fragment ArtifactFragment on Artifact {
1275
+ __typename
990
1276
  id
991
1277
  artifactSequence {
992
- project {
993
- entityName
994
- name
995
- }
996
- name
1278
+ ...SourceCollectionInfoFragment
997
1279
  }
998
1280
  versionIndex
999
1281
  artifactType {
@@ -1004,47 +1286,73 @@ fragment ArtifactFragmentWithoutAliases on Artifact {
1004
1286
  ttlDurationSeconds @include(if: true)
1005
1287
  ttlIsInherited @include(if: true)
1006
1288
  tags @include(if: true) {
1007
- name
1289
+ ...TagFragment
1008
1290
  }
1009
1291
  historyStep @include(if: true)
1010
1292
  state
1011
- currentManifest {
1012
- file {
1013
- directUrl
1014
- }
1015
- }
1293
+ size
1294
+ digest
1016
1295
  commitHash
1017
1296
  fileCount
1018
1297
  createdAt
1019
1298
  updatedAt
1299
+ aliases @include(if: $includeAliases) {
1300
+ artifactCollection {
1301
+ ...CollectionInfoFragment
1302
+ }
1303
+ ...ArtifactAliasFragment
1304
+ }
1020
1305
  }
1021
1306
 
1022
- fragment MembershipWithArtifact on ArtifactCollectionMembership {
1307
+ fragment ArtifactMembershipFragment on ArtifactCollectionMembership {
1308
+ __typename
1023
1309
  id
1310
+ versionIndex
1311
+ aliases {
1312
+ ...ArtifactAliasFragment
1313
+ }
1024
1314
  artifactCollection {
1025
- __typename
1026
- id
1027
- name
1028
- project {
1029
- id
1030
- entityName
1031
- name
1032
- }
1315
+ ...CollectionInfoFragment
1033
1316
  }
1034
1317
  artifact {
1035
1318
  ...ArtifactFragment
1036
1319
  }
1037
1320
  }
1321
+
1322
+ fragment CollectionInfoFragment on ArtifactCollection {
1323
+ __typename
1324
+ name
1325
+ project {
1326
+ ...ProjectInfoFragment
1327
+ }
1328
+ }
1329
+
1330
+ fragment ProjectInfoFragment on Project {
1331
+ name
1332
+ entity {
1333
+ name
1334
+ }
1335
+ }
1336
+
1337
+ fragment SourceCollectionInfoFragment on ArtifactSequence {
1338
+ __typename
1339
+ name
1340
+ project {
1341
+ ...ProjectInfoFragment
1342
+ }
1343
+ }
1344
+
1345
+ fragment TagFragment on Tag {
1346
+ __typename
1347
+ id
1348
+ name
1349
+ }
1038
1350
  """
1039
1351
 
1040
1352
  UNLINK_ARTIFACT_GQL = """
1041
- mutation UnlinkArtifact($artifactID: ID!, $artifactPortfolioID: ID!) {
1042
- unlinkArtifact(
1043
- input: {artifactID: $artifactID, artifactPortfolioID: $artifactPortfolioID}
1044
- ) {
1045
- artifactID
1353
+ mutation UnlinkArtifact($input: UnlinkArtifactInput!) {
1354
+ unlinkArtifact(input: $input) {
1046
1355
  success
1047
- clientMutationId
1048
1356
  }
1049
1357
  }
1050
1358
  """
@@ -1070,8 +1378,30 @@ fragment TypeInfoFragment on __Type {
1070
1378
  }
1071
1379
  """
1072
1380
 
1381
+ FETCH_ORG_INFO_FROM_ENTITY_GQL = """
1382
+ query FetchOrgInfoFromEntity($entity: String!) {
1383
+ entity(name: $entity) {
1384
+ organization {
1385
+ ...OrgInfoFragment
1386
+ }
1387
+ user {
1388
+ organizations {
1389
+ ...OrgInfoFragment
1390
+ }
1391
+ }
1392
+ }
1393
+ }
1394
+
1395
+ fragment OrgInfoFragment on Organization {
1396
+ name
1397
+ orgEntity @include(if: true) {
1398
+ name
1399
+ }
1400
+ }
1401
+ """
1402
+
1073
1403
  REGISTRY_VERSIONS_GQL = """
1074
- query RegistryVersions($organization: String!, $registryFilter: JSONString, $collectionFilter: JSONString, $artifactFilter: JSONString, $cursor: String, $perPage: Int) {
1404
+ query RegistryVersions($organization: String!, $registryFilter: JSONString, $collectionFilter: JSONString, $artifactFilter: JSONString, $cursor: String, $perPage: Int, $includeAliases: Boolean = false) {
1075
1405
  organization(name: $organization) {
1076
1406
  orgEntity {
1077
1407
  name
@@ -1082,20 +1412,30 @@ query RegistryVersions($organization: String!, $registryFilter: JSONString, $col
1082
1412
  after: $cursor
1083
1413
  first: $perPage
1084
1414
  ) {
1085
- ...RegistryVersionsPage
1415
+ pageInfo {
1416
+ ...PageInfoFragment
1417
+ }
1418
+ edges {
1419
+ node {
1420
+ ...ArtifactMembershipFragment
1421
+ }
1422
+ }
1086
1423
  }
1087
1424
  }
1088
1425
  }
1089
1426
  }
1090
1427
 
1091
- fragment ArtifactFragmentWithoutAliases on Artifact {
1428
+ fragment ArtifactAliasFragment on ArtifactAlias {
1429
+ __typename
1430
+ id
1431
+ alias
1432
+ }
1433
+
1434
+ fragment ArtifactFragment on Artifact {
1435
+ __typename
1092
1436
  id
1093
1437
  artifactSequence {
1094
- project {
1095
- entityName
1096
- name
1097
- }
1098
- name
1438
+ ...SourceCollectionInfoFragment
1099
1439
  }
1100
1440
  versionIndex
1101
1441
  artifactType {
@@ -1106,52 +1446,77 @@ fragment ArtifactFragmentWithoutAliases on Artifact {
1106
1446
  ttlDurationSeconds @include(if: true)
1107
1447
  ttlIsInherited @include(if: true)
1108
1448
  tags @include(if: true) {
1109
- name
1449
+ ...TagFragment
1110
1450
  }
1111
1451
  historyStep @include(if: true)
1112
1452
  state
1113
- currentManifest {
1114
- file {
1115
- directUrl
1116
- }
1117
- }
1453
+ size
1454
+ digest
1118
1455
  commitHash
1119
1456
  fileCount
1120
1457
  createdAt
1121
1458
  updatedAt
1459
+ aliases @include(if: $includeAliases) {
1460
+ artifactCollection {
1461
+ ...CollectionInfoFragment
1462
+ }
1463
+ ...ArtifactAliasFragment
1464
+ }
1122
1465
  }
1123
1466
 
1124
- fragment RegistryVersionsPage on ArtifactCollectionMembershipConnection {
1125
- pageInfo {
1126
- endCursor
1127
- hasNextPage
1467
+ fragment ArtifactMembershipFragment on ArtifactCollectionMembership {
1468
+ __typename
1469
+ id
1470
+ versionIndex
1471
+ aliases {
1472
+ ...ArtifactAliasFragment
1128
1473
  }
1129
- edges {
1130
- node {
1131
- artifactCollection {
1132
- __typename
1133
- project {
1134
- name
1135
- entity {
1136
- name
1137
- }
1138
- }
1139
- name
1140
- }
1141
- versionIndex
1142
- artifact {
1143
- ...ArtifactFragmentWithoutAliases
1144
- }
1145
- aliases {
1146
- alias
1147
- }
1148
- }
1474
+ artifactCollection {
1475
+ ...CollectionInfoFragment
1476
+ }
1477
+ artifact {
1478
+ ...ArtifactFragment
1479
+ }
1480
+ }
1481
+
1482
+ fragment CollectionInfoFragment on ArtifactCollection {
1483
+ __typename
1484
+ name
1485
+ project {
1486
+ ...ProjectInfoFragment
1149
1487
  }
1150
1488
  }
1489
+
1490
+ fragment PageInfoFragment on PageInfo {
1491
+ __typename
1492
+ endCursor
1493
+ hasNextPage
1494
+ }
1495
+
1496
+ fragment ProjectInfoFragment on Project {
1497
+ name
1498
+ entity {
1499
+ name
1500
+ }
1501
+ }
1502
+
1503
+ fragment SourceCollectionInfoFragment on ArtifactSequence {
1504
+ __typename
1505
+ name
1506
+ project {
1507
+ ...ProjectInfoFragment
1508
+ }
1509
+ }
1510
+
1511
+ fragment TagFragment on Tag {
1512
+ __typename
1513
+ id
1514
+ name
1515
+ }
1151
1516
  """
1152
1517
 
1153
1518
  REGISTRY_COLLECTIONS_GQL = """
1154
- query RegistryCollections($organization: String!, $registryFilter: JSONString, $collectionFilter: JSONString, $collectionTypes: [ArtifactCollectionType!], $cursor: String, $perPage: Int) {
1519
+ query RegistryCollections($organization: String!, $registryFilter: JSONString, $collectionFilter: JSONString, $collectionTypes: [ArtifactCollectionType!] = [PORTFOLIO], $cursor: String, $perPage: Int) {
1155
1520
  organization(name: $organization) {
1156
1521
  orgEntity {
1157
1522
  name
@@ -1162,49 +1527,104 @@ query RegistryCollections($organization: String!, $registryFilter: JSONString, $
1162
1527
  after: $cursor
1163
1528
  first: $perPage
1164
1529
  ) {
1165
- ...RegistryCollectionsPage
1530
+ totalCount
1531
+ pageInfo {
1532
+ ...PageInfoFragment
1533
+ }
1534
+ edges {
1535
+ node {
1536
+ __typename
1537
+ ...RegistryCollectionFragment
1538
+ }
1539
+ }
1166
1540
  }
1167
1541
  }
1168
1542
  }
1169
1543
  }
1170
1544
 
1171
- fragment RegistryCollectionsPage on ArtifactCollectionConnection {
1172
- totalCount
1173
- pageInfo {
1174
- endCursor
1175
- hasNextPage
1545
+ fragment ArtifactAliasFragment on ArtifactAlias {
1546
+ __typename
1547
+ id
1548
+ alias
1549
+ }
1550
+
1551
+ fragment PageInfoFragment on PageInfo {
1552
+ __typename
1553
+ endCursor
1554
+ hasNextPage
1555
+ }
1556
+
1557
+ fragment ProjectInfoFragment on Project {
1558
+ name
1559
+ entity {
1560
+ name
1176
1561
  }
1177
- edges {
1178
- cursor
1179
- node {
1180
- __typename
1181
- id
1182
- name
1183
- description
1184
- createdAt
1185
- tags {
1186
- edges {
1187
- node {
1188
- name
1189
- }
1190
- }
1562
+ }
1563
+
1564
+ fragment RegistryCollectionFragment on ArtifactCollection {
1565
+ __typename
1566
+ id
1567
+ name
1568
+ description
1569
+ createdAt
1570
+ project {
1571
+ ...ProjectInfoFragment
1572
+ }
1573
+ type: defaultArtifactType {
1574
+ name
1575
+ }
1576
+ tags {
1577
+ edges {
1578
+ node {
1579
+ ...TagFragment
1191
1580
  }
1192
- project {
1193
- name
1194
- entity {
1195
- name
1196
- }
1581
+ }
1582
+ }
1583
+ aliases {
1584
+ edges {
1585
+ node {
1586
+ ...ArtifactAliasFragment
1197
1587
  }
1198
- defaultArtifactType {
1588
+ }
1589
+ }
1590
+ }
1591
+
1592
+ fragment TagFragment on Tag {
1593
+ __typename
1594
+ id
1595
+ name
1596
+ }
1597
+ """
1598
+
1599
+ FETCH_REGISTRY_GQL = """
1600
+ query FetchRegistry($name: String, $entity: String) {
1601
+ entity(name: $entity) {
1602
+ project(name: $name) {
1603
+ ...RegistryFragment
1604
+ }
1605
+ }
1606
+ }
1607
+
1608
+ fragment RegistryFragment on Project {
1609
+ __typename
1610
+ id
1611
+ name
1612
+ entity {
1613
+ name
1614
+ organization {
1615
+ name
1616
+ }
1617
+ }
1618
+ description
1619
+ createdAt
1620
+ updatedAt
1621
+ access
1622
+ allowAllArtifactTypes: allowAllArtifactTypesInRegistry
1623
+ artifactTypes(includeAll: true) {
1624
+ edges {
1625
+ node {
1199
1626
  name
1200
1627
  }
1201
- aliases {
1202
- edges {
1203
- node {
1204
- alias
1205
- }
1206
- }
1207
- }
1208
1628
  }
1209
1629
  }
1210
1630
  }
@@ -1214,29 +1634,76 @@ FETCH_REGISTRIES_GQL = """
1214
1634
  query FetchRegistries($organization: String!, $filters: JSONString, $cursor: String, $perPage: Int) {
1215
1635
  organization(name: $organization) {
1216
1636
  orgEntity {
1217
- name
1218
1637
  projects(filters: $filters, after: $cursor, first: $perPage) {
1219
- ...RegistriesPage
1638
+ pageInfo {
1639
+ ...PageInfoFragment
1640
+ }
1641
+ edges {
1642
+ node {
1643
+ ...RegistryFragment
1644
+ }
1645
+ }
1220
1646
  }
1221
1647
  }
1222
1648
  }
1223
1649
  }
1224
1650
 
1225
- fragment RegistriesPage on ProjectConnection {
1226
- pageInfo {
1227
- endCursor
1228
- hasNextPage
1651
+ fragment PageInfoFragment on PageInfo {
1652
+ __typename
1653
+ endCursor
1654
+ hasNextPage
1655
+ }
1656
+
1657
+ fragment RegistryFragment on Project {
1658
+ __typename
1659
+ id
1660
+ name
1661
+ entity {
1662
+ name
1663
+ organization {
1664
+ name
1665
+ }
1229
1666
  }
1230
- edges {
1231
- node {
1667
+ description
1668
+ createdAt
1669
+ updatedAt
1670
+ access
1671
+ allowAllArtifactTypes: allowAllArtifactTypesInRegistry
1672
+ artifactTypes(includeAll: true) {
1673
+ edges {
1674
+ node {
1675
+ name
1676
+ }
1677
+ }
1678
+ }
1679
+ }
1680
+ """
1681
+
1682
+ RENAME_REGISTRY_GQL = """
1683
+ mutation RenameRegistry($input: RenameProjectInput!) {
1684
+ renameProject(input: $input) {
1685
+ inserted
1686
+ project {
1232
1687
  ...RegistryFragment
1233
1688
  }
1234
1689
  }
1235
1690
  }
1236
1691
 
1237
1692
  fragment RegistryFragment on Project {
1693
+ __typename
1238
1694
  id
1239
- allowAllArtifactTypesInRegistry
1695
+ name
1696
+ entity {
1697
+ name
1698
+ organization {
1699
+ name
1700
+ }
1701
+ }
1702
+ description
1703
+ createdAt
1704
+ updatedAt
1705
+ access
1706
+ allowAllArtifactTypes: allowAllArtifactTypesInRegistry
1240
1707
  artifactTypes(includeAll: true) {
1241
1708
  edges {
1242
1709
  node {
@@ -1244,10 +1711,48 @@ fragment RegistryFragment on Project {
1244
1711
  }
1245
1712
  }
1246
1713
  }
1714
+ }
1715
+ """
1716
+
1717
+ UPSERT_REGISTRY_GQL = """
1718
+ mutation UpsertRegistry($input: UpsertModelInput!) {
1719
+ upsertModel(input: $input) {
1720
+ inserted
1721
+ project {
1722
+ ...RegistryFragment
1723
+ }
1724
+ }
1725
+ }
1726
+
1727
+ fragment RegistryFragment on Project {
1728
+ __typename
1729
+ id
1247
1730
  name
1731
+ entity {
1732
+ name
1733
+ organization {
1734
+ name
1735
+ }
1736
+ }
1248
1737
  description
1249
1738
  createdAt
1250
1739
  updatedAt
1251
1740
  access
1741
+ allowAllArtifactTypes: allowAllArtifactTypesInRegistry
1742
+ artifactTypes(includeAll: true) {
1743
+ edges {
1744
+ node {
1745
+ name
1746
+ }
1747
+ }
1748
+ }
1749
+ }
1750
+ """
1751
+
1752
+ DELETE_REGISTRY_GQL = """
1753
+ mutation DeleteRegistry($id: String!) {
1754
+ deleteModel(input: {id: $id}) {
1755
+ success
1756
+ }
1252
1757
  }
1253
1758
  """