clarifai-grpc 6.4.0__py3-none-any.whl → 11.10.3__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (50) hide show
  1. clarifai_grpc/__init__.py +33 -0
  2. clarifai_grpc/channel/clarifai_channel.py +150 -44
  3. clarifai_grpc/channel/custom_converters/custom_dict_to_message.py +41 -34
  4. clarifai_grpc/channel/custom_converters/custom_message_to_dict.py +85 -74
  5. clarifai_grpc/channel/errors.py +5 -0
  6. clarifai_grpc/channel/exceptions.py +1 -1
  7. clarifai_grpc/channel/grpc_json_channel.py +387 -261
  8. clarifai_grpc/channel/http_client.py +125 -104
  9. clarifai_grpc/grpc/api/resources_pb2.py +984 -7266
  10. clarifai_grpc/grpc/api/resources_pb2.pyi +17925 -0
  11. clarifai_grpc/grpc/api/resources_pb2_grpc.py +1 -0
  12. clarifai_grpc/grpc/api/service_pb2.py +1578 -8672
  13. clarifai_grpc/grpc/api/service_pb2.pyi +18269 -0
  14. clarifai_grpc/grpc/api/service_pb2_grpc.py +9746 -1859
  15. clarifai_grpc/grpc/api/status/status_code_pb2.py +33 -1334
  16. clarifai_grpc/grpc/api/status/status_code_pb2.pyi +1210 -0
  17. clarifai_grpc/grpc/api/status/status_code_pb2_grpc.py +1 -0
  18. clarifai_grpc/grpc/api/status/status_pb2.py +23 -149
  19. clarifai_grpc/grpc/api/status/status_pb2.pyi +174 -0
  20. clarifai_grpc/grpc/api/status/status_pb2_grpc.py +1 -0
  21. clarifai_grpc/grpc/api/utils/extensions_pb2.py +13 -46
  22. clarifai_grpc/grpc/api/utils/extensions_pb2.pyi +39 -0
  23. clarifai_grpc/grpc/api/utils/extensions_pb2_grpc.py +1 -0
  24. clarifai_grpc/grpc/api/utils/matrix_pb2.py +26 -0
  25. clarifai_grpc/grpc/api/utils/matrix_pb2.pyi +53 -0
  26. clarifai_grpc/grpc/api/utils/matrix_pb2_grpc.py +4 -0
  27. clarifai_grpc/grpc/api/utils/test_proto_pb2.py +17 -158
  28. clarifai_grpc/grpc/api/utils/test_proto_pb2.pyi +107 -0
  29. clarifai_grpc/grpc/api/utils/test_proto_pb2_grpc.py +1 -0
  30. clarifai_grpc/grpc/auth/scope/scope_pb2.py +245 -448
  31. clarifai_grpc/grpc/auth/scope/scope_pb2.pyi +550 -0
  32. clarifai_grpc/grpc/auth/scope/scope_pb2_grpc.py +1 -0
  33. clarifai_grpc/grpc/auth/types/types_pb2.py +11 -62
  34. clarifai_grpc/grpc/auth/types/types_pb2.pyi +78 -0
  35. clarifai_grpc/grpc/auth/types/types_pb2_grpc.py +1 -0
  36. clarifai_grpc/grpc/auth/util/extension_pb2.py +14 -68
  37. clarifai_grpc/grpc/auth/util/extension_pb2.pyi +68 -0
  38. clarifai_grpc/grpc/auth/util/extension_pb2_grpc.py +1 -0
  39. clarifai_grpc-11.10.3.dist-info/METADATA +124 -0
  40. clarifai_grpc-11.10.3.dist-info/RECORD +53 -0
  41. {clarifai_grpc-6.4.0.dist-info → clarifai_grpc-11.10.3.dist-info}/WHEEL +1 -1
  42. {clarifai_grpc-6.4.0.dist-info → clarifai_grpc-11.10.3.dist-info}/top_level.txt +0 -2
  43. clarifai_grpc-6.4.0.dist-info/METADATA +0 -88
  44. clarifai_grpc-6.4.0.dist-info/RECORD +0 -46
  45. scripts/__init__.py +0 -0
  46. scripts/app_and_key_for_tests.py +0 -180
  47. tests/__init__.py +0 -0
  48. tests/helpers.py +0 -105
  49. tests/test_integration.py +0 -243
  50. {clarifai_grpc-6.4.0.dist-info → clarifai_grpc-11.10.3.dist-info/licenses}/LICENSE +0 -0
@@ -0,0 +1,550 @@
1
+ """
2
+ @generated by mypy-protobuf. Do not edit manually!
3
+ isort:skip_file
4
+ """
5
+
6
+ import builtins
7
+ import collections.abc
8
+ import sys
9
+ import typing
10
+
11
+ import google.protobuf.descriptor
12
+ import google.protobuf.descriptor_pb2
13
+ import google.protobuf.internal.containers
14
+ import google.protobuf.internal.enum_type_wrapper
15
+ import google.protobuf.internal.extension_dict
16
+ import google.protobuf.message
17
+
18
+ if sys.version_info >= (3, 10):
19
+ import typing as typing_extensions
20
+ else:
21
+ import typing_extensions
22
+
23
+ DESCRIPTOR: google.protobuf.descriptor.FileDescriptor
24
+
25
+ class _S:
26
+ ValueType = typing.NewType("ValueType", builtins.int)
27
+ V: typing_extensions.TypeAlias = ValueType
28
+
29
+ class _SEnumTypeWrapper(
30
+ google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[_S.ValueType], builtins.type
31
+ ):
32
+ DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor
33
+ undef: _S.ValueType # 0
34
+ """introduce undef so that the zero (default/unset) value of the enum is not a real
35
+ permission. undef is only present for this purpose and should not be used
36
+ to indicate any "real" value.
37
+ """
38
+ All: _S.ValueType # 1
39
+ Predict: _S.ValueType # 2
40
+ """Make an rpc to our prediction services."""
41
+ Inputs_Add: _S.ValueType # 4
42
+ """Write to the inputs table in the DB."""
43
+ Inputs_Get: _S.ValueType # 5
44
+ """Read from the inputs table in the DB."""
45
+ Inputs_Patch: _S.ValueType # 7
46
+ """To patch we need read/write.
47
+ Deprecated.
48
+ Optionally needs Concepts_Add.
49
+ """
50
+ Inputs_Delete: _S.ValueType # 8
51
+ """To delete we need read/write"""
52
+ Outputs_Patch: _S.ValueType # 9
53
+ """Deprecated."""
54
+ Concepts_Add: _S.ValueType # 10
55
+ """Write to the concepts DB tables."""
56
+ Concepts_Get: _S.ValueType # 11
57
+ """Read from the concepts DB tables."""
58
+ Concepts_Patch: _S.ValueType # 12
59
+ """TODO: No concept searches scope.
60
+
61
+ To patch we need read/write.
62
+ Deprecated
63
+ """
64
+ Concepts_Delete: _S.ValueType # 13
65
+ """To delete we need read/write.
66
+ Note: not implemented.
67
+ """
68
+ Models_Add: _S.ValueType # 14
69
+ """Write to the models DB tables."""
70
+ Models_Get: _S.ValueType # 15
71
+ """Read from the models and models versions DB tables."""
72
+ Models_Patch: _S.ValueType # 16
73
+ """To patch we need read/write.
74
+ Deprecated.
75
+ """
76
+ Models_Delete: _S.ValueType # 17
77
+ """To delete we need read/write."""
78
+ Models_Train: _S.ValueType # 26
79
+ """Note: Models_Train is effectively doing POST /models/{models_id}/versions so it's treated that
80
+ way in terms of data access under the hood.
81
+ Write to the model versions DB table.
82
+ """
83
+ Models_Sync: _S.ValueType # 27
84
+ """Internal only model syncing."""
85
+ ModelExports_Get: _S.ValueType # 142
86
+ """To get model version export"""
87
+ ModelExports_Add: _S.ValueType # 143
88
+ """To create model version export"""
89
+ Models_Pull: _S.ValueType # 150
90
+ """To pull the model version's image"""
91
+ Workflows_Add: _S.ValueType # 18
92
+ """TODO: No model get metrics scope.
93
+
94
+ Write to the workflows DB table.
95
+ """
96
+ Workflows_Get: _S.ValueType # 19
97
+ """Read from the workflows DB table."""
98
+ Workflows_Patch: _S.ValueType # 20
99
+ """To patch we need read/write.
100
+ Deprecated.
101
+ """
102
+ Workflows_Delete: _S.ValueType # 21
103
+ """To delete we need read/write."""
104
+ WorkflowMetrics_Get: _S.ValueType # 96
105
+ WorkflowMetrics_Add: _S.ValueType # 97
106
+ WorkflowMetrics_Delete: _S.ValueType # 98
107
+ TSNEVisualizations_Add: _S.ValueType # 24
108
+ """Write to the visualizations DB table.
109
+ Deprecated
110
+ """
111
+ TSNEVisualizations_Get: _S.ValueType # 25
112
+ """Read from the visualizations DB table.
113
+ Deprecated
114
+ """
115
+ Annotations_Add: _S.ValueType # 37
116
+ """Write to the annotations DB table."""
117
+ Annotations_Get: _S.ValueType # 38
118
+ """Read from the annotations DB table."""
119
+ Annotations_Patch: _S.ValueType # 39
120
+ """To patch we need read/write.
121
+ Deprecated.
122
+ """
123
+ Annotations_Delete: _S.ValueType # 40
124
+ """To delete we need read/write."""
125
+ Collectors_Add: _S.ValueType # 41
126
+ """Write to the collectors DB table."""
127
+ Collectors_Get: _S.ValueType # 42
128
+ """Read from the collectors DB table."""
129
+ Collectors_Delete: _S.ValueType # 43
130
+ """To delete we need read/write."""
131
+ Apps_Add: _S.ValueType # 44
132
+ """Write to the apps DB table."""
133
+ Apps_Get: _S.ValueType # 45
134
+ """Read from the apps DB table."""
135
+ Apps_Delete: _S.ValueType # 46
136
+ """To delete we need read/write."""
137
+ Keys_Add: _S.ValueType # 47
138
+ """Write to the keys DB table."""
139
+ Keys_Get: _S.ValueType # 48
140
+ """Read from the keys DB table."""
141
+ Keys_Delete: _S.ValueType # 49
142
+ """To delete we need read/write."""
143
+ Collaborators_Add: _S.ValueType # 51
144
+ """Write to the app sharing DB table"""
145
+ Collaborators_Get: _S.ValueType # 50
146
+ """Read from the app sharing DB table"""
147
+ Collaborators_Delete: _S.ValueType # 52
148
+ """To delete we need read/write"""
149
+ Metrics_Add: _S.ValueType # 54
150
+ """Write to the metrics table"""
151
+ Metrics_Get: _S.ValueType # 53
152
+ """Read from metrics table"""
153
+ Metrics_Delete: _S.ValueType # 63
154
+ """To delete we need read/write"""
155
+ Tasks_Add: _S.ValueType # 55
156
+ """Write to tasks DB table."""
157
+ Tasks_Get: _S.ValueType # 56
158
+ """Read from the tasks DB table."""
159
+ Tasks_Delete: _S.ValueType # 70
160
+ """To delete we need read/write"""
161
+ PasswordPolicies_Add: _S.ValueType # 57
162
+ """Write to the password_policies DB table"""
163
+ PasswordPolicies_Get: _S.ValueType # 58
164
+ """Read from the password_policies DB table"""
165
+ PasswordPolicies_Delete: _S.ValueType # 59
166
+ """To delete password_policies we need read/write"""
167
+ LabelOrders_Get: _S.ValueType # 67
168
+ """Read from label orders table"""
169
+ LabelOrders_Add: _S.ValueType # 68
170
+ """Write to label orders table"""
171
+ LabelOrders_Delete: _S.ValueType # 69
172
+ """To delete label orders we need read/write"""
173
+ FindDuplicateAnnotationsJobs_Add: _S.ValueType # 102
174
+ """CRUD on FindDuplicateAnnotationsJobs table"""
175
+ FindDuplicateAnnotationsJobs_Get: _S.ValueType # 103
176
+ FindDuplicateAnnotationsJobs_Delete: _S.ValueType # 104
177
+ Datasets_Get: _S.ValueType # 105
178
+ Datasets_Add: _S.ValueType # 106
179
+ Datasets_Delete: _S.ValueType # 107
180
+ Modules_Add: _S.ValueType # 108
181
+ """Write to the modules DB tables."""
182
+ Modules_Get: _S.ValueType # 109
183
+ """Read from the modules and modules versions DB tables."""
184
+ Modules_Delete: _S.ValueType # 110
185
+ """To delete we need read/write."""
186
+ InstalledModuleVersions_Add: _S.ValueType # 111
187
+ """Write to the InstalledModuleVersions DB tables."""
188
+ InstalledModuleVersions_Get: _S.ValueType # 112
189
+ """Read from the InstalledModuleVersions and InstalledModuleVersions versions DB tables."""
190
+ InstalledModuleVersions_Delete: _S.ValueType # 113
191
+ """To delete we need read/write."""
192
+ Search: _S.ValueType # 3
193
+ """Make an rpc to our search services."""
194
+ SavedSearch_Get: _S.ValueType # 114
195
+ """To get a saved search."""
196
+ SavedSearch_Add: _S.ValueType # 115
197
+ """To add a saved search"""
198
+ SavedSearch_Delete: _S.ValueType # 116
199
+ """To delete a saved search"""
200
+ ModelVersionPublications_Add: _S.ValueType # 117
201
+ ModelVersionPublications_Delete: _S.ValueType # 118
202
+ WorkflowPublications_Add: _S.ValueType # 119
203
+ WorkflowPublications_Delete: _S.ValueType # 120
204
+ BulkOperation_Add: _S.ValueType # 121
205
+ """To write bulk operations to the DB"""
206
+ BulkOperation_Get: _S.ValueType # 122
207
+ """To Read Bulk Operations from the DB"""
208
+ BulkOperation_Delete: _S.ValueType # 123
209
+ """To Delete Bulk Operations from the DB"""
210
+ HistoricalUsage_Get: _S.ValueType # 124
211
+ """To read historical usage from usage.dashboard_items table"""
212
+ Uploads_Get: _S.ValueType # 128
213
+ """To read uploaded files and archives info from Uploads endpoints"""
214
+ Uploads_Add: _S.ValueType # 129
215
+ """To upload files or archives through the Uploads endpoints"""
216
+ Uploads_Delete: _S.ValueType # 130
217
+ Runners_Get: _S.ValueType # 131
218
+ """To control remote runners"""
219
+ Runners_Add: _S.ValueType # 132
220
+ Runners_Delete: _S.ValueType # 133
221
+ RunnerItems_Get: _S.ValueType # 134
222
+ RunnerItems_Add: _S.ValueType # 135
223
+ Nodepools_Get: _S.ValueType # 136
224
+ """Pools of compute resources."""
225
+ Nodepools_Add: _S.ValueType # 137
226
+ Nodepools_Delete: _S.ValueType # 138
227
+ ComputeClusters_Get: _S.ValueType # 139
228
+ """Cluster of machines in a region of cloud"""
229
+ ComputeClusters_Add: _S.ValueType # 140
230
+ ComputeClusters_Delete: _S.ValueType # 141
231
+ Deployments_Get: _S.ValueType # 144
232
+ """How to autoscale resources within nodepools."""
233
+ Deployments_Add: _S.ValueType # 145
234
+ Deployments_Delete: _S.ValueType # 146
235
+ InstanceTypes_Get: _S.ValueType # 148
236
+ AuditLogs_Get: _S.ValueType # 149
237
+ LogEntries_Get: _S.ValueType # 151
238
+ WorkflowVersionEvaluations_Get: _S.ValueType # 152
239
+ WorkflowVersionEvaluations_Add: _S.ValueType # 153
240
+ Pipelines_Get: _S.ValueType # 154
241
+ Pipelines_Add: _S.ValueType # 155
242
+ Pipelines_Delete: _S.ValueType # 156
243
+ PipelineSteps_Get: _S.ValueType # 157
244
+ PipelineSteps_Add: _S.ValueType # 158
245
+ PipelineSteps_Pull: _S.ValueType # 159
246
+ """To pull the pipeline step version's image"""
247
+ Secrets_Get: _S.ValueType # 160
248
+ Secrets_Add: _S.ValueType # 161
249
+ Secrets_Delete: _S.ValueType # 162
250
+ UserMetrics_Get: _S.ValueType # 163
251
+ AnnotationTracks_Get: _S.ValueType # 166
252
+ AnnotationTracks_Add: _S.ValueType # 167
253
+ AnnotationTracks_Delete: _S.ValueType # 168
254
+
255
+ class S(_S, metaclass=_SEnumTypeWrapper):
256
+ """Next index: 41
257
+ NOTE: When updating the list of "clarifai_exposed" scopes, please also
258
+ update the TestScopes function in main_key_test.go and TestGetExposedScopes function in
259
+ scope_test.go
260
+
261
+ The dependencies listed for each scope are simply recommendations so that a user
262
+ cannot make a key that would be useless. Beyond the key creation they are not enforced
263
+ but rather the scopes are enforce when data is accessed.
264
+
265
+
266
+ There is the following conventions in place, make sure you add them to the scopes for all new
267
+ resource types:
268
+
269
+ 1. *_Add requires the corresponding _Get.
270
+ 2. *_Delete requires the corresponding _Add and _Get.
271
+ 3. *_Patch is deprecated and not check anywhere.
272
+
273
+ Think of the dependencies in this file at the DB level. If you cannot make a DB call to Get, Add
274
+ or Delete a resource without having access to another resource then you should add it here. That
275
+ should for the most part be the same resource type. In service.proto for the API level you will
276
+ also specify cl_depending_scopes for each API endpoint. Those cover cases where an endpoint
277
+ might need to access more than just that one resource type in order to operate (ie. API handlers
278
+ that make multiple DB calls of various resource types likely have more cl_depending_scopes than
279
+ the ones listed below). For example: PostCollectors to create a collector we make sure that you
280
+ can do model predictions, get concepts, etc. so that you don't have a collector that would be
281
+ useless at the end of that API handler but below you can see that the dependencies of Collector
282
+ scopes are only on other Collector scopes.
283
+ """
284
+
285
+ undef: S.ValueType # 0
286
+ """introduce undef so that the zero (default/unset) value of the enum is not a real
287
+ permission. undef is only present for this purpose and should not be used
288
+ to indicate any "real" value.
289
+ """
290
+ All: S.ValueType # 1
291
+ Predict: S.ValueType # 2
292
+ """Make an rpc to our prediction services."""
293
+ Inputs_Add: S.ValueType # 4
294
+ """Write to the inputs table in the DB."""
295
+ Inputs_Get: S.ValueType # 5
296
+ """Read from the inputs table in the DB."""
297
+ Inputs_Patch: S.ValueType # 7
298
+ """To patch we need read/write.
299
+ Deprecated.
300
+ Optionally needs Concepts_Add.
301
+ """
302
+ Inputs_Delete: S.ValueType # 8
303
+ """To delete we need read/write"""
304
+ Outputs_Patch: S.ValueType # 9
305
+ """Deprecated."""
306
+ Concepts_Add: S.ValueType # 10
307
+ """Write to the concepts DB tables."""
308
+ Concepts_Get: S.ValueType # 11
309
+ """Read from the concepts DB tables."""
310
+ Concepts_Patch: S.ValueType # 12
311
+ """TODO: No concept searches scope.
312
+
313
+ To patch we need read/write.
314
+ Deprecated
315
+ """
316
+ Concepts_Delete: S.ValueType # 13
317
+ """To delete we need read/write.
318
+ Note: not implemented.
319
+ """
320
+ Models_Add: S.ValueType # 14
321
+ """Write to the models DB tables."""
322
+ Models_Get: S.ValueType # 15
323
+ """Read from the models and models versions DB tables."""
324
+ Models_Patch: S.ValueType # 16
325
+ """To patch we need read/write.
326
+ Deprecated.
327
+ """
328
+ Models_Delete: S.ValueType # 17
329
+ """To delete we need read/write."""
330
+ Models_Train: S.ValueType # 26
331
+ """Note: Models_Train is effectively doing POST /models/{models_id}/versions so it's treated that
332
+ way in terms of data access under the hood.
333
+ Write to the model versions DB table.
334
+ """
335
+ Models_Sync: S.ValueType # 27
336
+ """Internal only model syncing."""
337
+ ModelExports_Get: S.ValueType # 142
338
+ """To get model version export"""
339
+ ModelExports_Add: S.ValueType # 143
340
+ """To create model version export"""
341
+ Models_Pull: S.ValueType # 150
342
+ """To pull the model version's image"""
343
+ Workflows_Add: S.ValueType # 18
344
+ """TODO: No model get metrics scope.
345
+
346
+ Write to the workflows DB table.
347
+ """
348
+ Workflows_Get: S.ValueType # 19
349
+ """Read from the workflows DB table."""
350
+ Workflows_Patch: S.ValueType # 20
351
+ """To patch we need read/write.
352
+ Deprecated.
353
+ """
354
+ Workflows_Delete: S.ValueType # 21
355
+ """To delete we need read/write."""
356
+ WorkflowMetrics_Get: S.ValueType # 96
357
+ WorkflowMetrics_Add: S.ValueType # 97
358
+ WorkflowMetrics_Delete: S.ValueType # 98
359
+ TSNEVisualizations_Add: S.ValueType # 24
360
+ """Write to the visualizations DB table.
361
+ Deprecated
362
+ """
363
+ TSNEVisualizations_Get: S.ValueType # 25
364
+ """Read from the visualizations DB table.
365
+ Deprecated
366
+ """
367
+ Annotations_Add: S.ValueType # 37
368
+ """Write to the annotations DB table."""
369
+ Annotations_Get: S.ValueType # 38
370
+ """Read from the annotations DB table."""
371
+ Annotations_Patch: S.ValueType # 39
372
+ """To patch we need read/write.
373
+ Deprecated.
374
+ """
375
+ Annotations_Delete: S.ValueType # 40
376
+ """To delete we need read/write."""
377
+ Collectors_Add: S.ValueType # 41
378
+ """Write to the collectors DB table."""
379
+ Collectors_Get: S.ValueType # 42
380
+ """Read from the collectors DB table."""
381
+ Collectors_Delete: S.ValueType # 43
382
+ """To delete we need read/write."""
383
+ Apps_Add: S.ValueType # 44
384
+ """Write to the apps DB table."""
385
+ Apps_Get: S.ValueType # 45
386
+ """Read from the apps DB table."""
387
+ Apps_Delete: S.ValueType # 46
388
+ """To delete we need read/write."""
389
+ Keys_Add: S.ValueType # 47
390
+ """Write to the keys DB table."""
391
+ Keys_Get: S.ValueType # 48
392
+ """Read from the keys DB table."""
393
+ Keys_Delete: S.ValueType # 49
394
+ """To delete we need read/write."""
395
+ Collaborators_Add: S.ValueType # 51
396
+ """Write to the app sharing DB table"""
397
+ Collaborators_Get: S.ValueType # 50
398
+ """Read from the app sharing DB table"""
399
+ Collaborators_Delete: S.ValueType # 52
400
+ """To delete we need read/write"""
401
+ Metrics_Add: S.ValueType # 54
402
+ """Write to the metrics table"""
403
+ Metrics_Get: S.ValueType # 53
404
+ """Read from metrics table"""
405
+ Metrics_Delete: S.ValueType # 63
406
+ """To delete we need read/write"""
407
+ Tasks_Add: S.ValueType # 55
408
+ """Write to tasks DB table."""
409
+ Tasks_Get: S.ValueType # 56
410
+ """Read from the tasks DB table."""
411
+ Tasks_Delete: S.ValueType # 70
412
+ """To delete we need read/write"""
413
+ PasswordPolicies_Add: S.ValueType # 57
414
+ """Write to the password_policies DB table"""
415
+ PasswordPolicies_Get: S.ValueType # 58
416
+ """Read from the password_policies DB table"""
417
+ PasswordPolicies_Delete: S.ValueType # 59
418
+ """To delete password_policies we need read/write"""
419
+ LabelOrders_Get: S.ValueType # 67
420
+ """Read from label orders table"""
421
+ LabelOrders_Add: S.ValueType # 68
422
+ """Write to label orders table"""
423
+ LabelOrders_Delete: S.ValueType # 69
424
+ """To delete label orders we need read/write"""
425
+ FindDuplicateAnnotationsJobs_Add: S.ValueType # 102
426
+ """CRUD on FindDuplicateAnnotationsJobs table"""
427
+ FindDuplicateAnnotationsJobs_Get: S.ValueType # 103
428
+ FindDuplicateAnnotationsJobs_Delete: S.ValueType # 104
429
+ Datasets_Get: S.ValueType # 105
430
+ Datasets_Add: S.ValueType # 106
431
+ Datasets_Delete: S.ValueType # 107
432
+ Modules_Add: S.ValueType # 108
433
+ """Write to the modules DB tables."""
434
+ Modules_Get: S.ValueType # 109
435
+ """Read from the modules and modules versions DB tables."""
436
+ Modules_Delete: S.ValueType # 110
437
+ """To delete we need read/write."""
438
+ InstalledModuleVersions_Add: S.ValueType # 111
439
+ """Write to the InstalledModuleVersions DB tables."""
440
+ InstalledModuleVersions_Get: S.ValueType # 112
441
+ """Read from the InstalledModuleVersions and InstalledModuleVersions versions DB tables."""
442
+ InstalledModuleVersions_Delete: S.ValueType # 113
443
+ """To delete we need read/write."""
444
+ Search: S.ValueType # 3
445
+ """Make an rpc to our search services."""
446
+ SavedSearch_Get: S.ValueType # 114
447
+ """To get a saved search."""
448
+ SavedSearch_Add: S.ValueType # 115
449
+ """To add a saved search"""
450
+ SavedSearch_Delete: S.ValueType # 116
451
+ """To delete a saved search"""
452
+ ModelVersionPublications_Add: S.ValueType # 117
453
+ ModelVersionPublications_Delete: S.ValueType # 118
454
+ WorkflowPublications_Add: S.ValueType # 119
455
+ WorkflowPublications_Delete: S.ValueType # 120
456
+ BulkOperation_Add: S.ValueType # 121
457
+ """To write bulk operations to the DB"""
458
+ BulkOperation_Get: S.ValueType # 122
459
+ """To Read Bulk Operations from the DB"""
460
+ BulkOperation_Delete: S.ValueType # 123
461
+ """To Delete Bulk Operations from the DB"""
462
+ HistoricalUsage_Get: S.ValueType # 124
463
+ """To read historical usage from usage.dashboard_items table"""
464
+ Uploads_Get: S.ValueType # 128
465
+ """To read uploaded files and archives info from Uploads endpoints"""
466
+ Uploads_Add: S.ValueType # 129
467
+ """To upload files or archives through the Uploads endpoints"""
468
+ Uploads_Delete: S.ValueType # 130
469
+ Runners_Get: S.ValueType # 131
470
+ """To control remote runners"""
471
+ Runners_Add: S.ValueType # 132
472
+ Runners_Delete: S.ValueType # 133
473
+ RunnerItems_Get: S.ValueType # 134
474
+ RunnerItems_Add: S.ValueType # 135
475
+ Nodepools_Get: S.ValueType # 136
476
+ """Pools of compute resources."""
477
+ Nodepools_Add: S.ValueType # 137
478
+ Nodepools_Delete: S.ValueType # 138
479
+ ComputeClusters_Get: S.ValueType # 139
480
+ """Cluster of machines in a region of cloud"""
481
+ ComputeClusters_Add: S.ValueType # 140
482
+ ComputeClusters_Delete: S.ValueType # 141
483
+ Deployments_Get: S.ValueType # 144
484
+ """How to autoscale resources within nodepools."""
485
+ Deployments_Add: S.ValueType # 145
486
+ Deployments_Delete: S.ValueType # 146
487
+ InstanceTypes_Get: S.ValueType # 148
488
+ AuditLogs_Get: S.ValueType # 149
489
+ LogEntries_Get: S.ValueType # 151
490
+ WorkflowVersionEvaluations_Get: S.ValueType # 152
491
+ WorkflowVersionEvaluations_Add: S.ValueType # 153
492
+ Pipelines_Get: S.ValueType # 154
493
+ Pipelines_Add: S.ValueType # 155
494
+ Pipelines_Delete: S.ValueType # 156
495
+ PipelineSteps_Get: S.ValueType # 157
496
+ PipelineSteps_Add: S.ValueType # 158
497
+ PipelineSteps_Pull: S.ValueType # 159
498
+ """To pull the pipeline step version's image"""
499
+ Secrets_Get: S.ValueType # 160
500
+ Secrets_Add: S.ValueType # 161
501
+ Secrets_Delete: S.ValueType # 162
502
+ UserMetrics_Get: S.ValueType # 163
503
+ AnnotationTracks_Get: S.ValueType # 166
504
+ AnnotationTracks_Add: S.ValueType # 167
505
+ AnnotationTracks_Delete: S.ValueType # 168
506
+ global___S = S
507
+
508
+ @typing_extensions.final
509
+ class ScopeList(google.protobuf.message.Message):
510
+ DESCRIPTOR: google.protobuf.descriptor.Descriptor
511
+
512
+ SCOPES_FIELD_NUMBER: builtins.int
513
+ ENDPOINTS_FIELD_NUMBER: builtins.int
514
+ @property
515
+ def scopes(
516
+ self,
517
+ ) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[global___S.ValueType]:
518
+ """These are the list of low-level scopes to check from the enum below."""
519
+ @property
520
+ def endpoints(
521
+ self,
522
+ ) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.str]:
523
+ """This is a list of fully qualified grpc names to check."""
524
+ def __init__(
525
+ self,
526
+ *,
527
+ scopes: collections.abc.Iterable[global___S.ValueType] | None = ...,
528
+ endpoints: collections.abc.Iterable[builtins.str] | None = ...,
529
+ ) -> None: ...
530
+ def ClearField(
531
+ self, field_name: typing_extensions.Literal["endpoints", b"endpoints", "scopes", b"scopes"]
532
+ ) -> None: ...
533
+
534
+ global___ScopeList = ScopeList
535
+
536
+ CLARFAI_EXPOSED_FIELD_NUMBER: builtins.int
537
+ CLARIFAI_DEPENDING_SCOPES_FIELD_NUMBER: builtins.int
538
+ clarfai_exposed: google.protobuf.internal.extension_dict._ExtensionFieldDescriptor[
539
+ google.protobuf.descriptor_pb2.EnumValueOptions, builtins.bool
540
+ ]
541
+ """indicates whether the given scope should be returned by the Get /scopes/ call
542
+ or any other call that returns list of available perms.
543
+ """
544
+ clarifai_depending_scopes: google.protobuf.internal.extension_dict._ExtensionFieldDescriptor[
545
+ google.protobuf.descriptor_pb2.EnumValueOptions,
546
+ google.protobuf.internal.containers.RepeatedScalarFieldContainer[global___S.ValueType],
547
+ ]
548
+ """TODO: We have no way of picking extension field numbers within clarifai to guarantee
549
+ uniqueness. Note: 50000-99999 are for organizational use (like this)
550
+ """
@@ -1,3 +1,4 @@
1
1
  # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT!
2
+ """Client and server classes corresponding to protobuf-defined services."""
2
3
  import grpc
3
4
 
@@ -1,11 +1,10 @@
1
1
  # -*- coding: utf-8 -*-
2
2
  # Generated by the protocol buffer compiler. DO NOT EDIT!
3
3
  # source: proto/clarifai/auth/types/types.proto
4
-
5
- from google.protobuf.internal import enum_type_wrapper
4
+ """Generated protocol buffer code."""
5
+ from google.protobuf.internal import builder as _builder
6
6
  from google.protobuf import descriptor as _descriptor
7
- from google.protobuf import message as _message
8
- from google.protobuf import reflection as _reflection
7
+ from google.protobuf import descriptor_pool as _descriptor_pool
9
8
  from google.protobuf import symbol_database as _symbol_database
10
9
  # @@protoc_insertion_point(imports)
11
10
 
@@ -14,64 +13,14 @@ _sym_db = _symbol_database.Default()
14
13
 
15
14
 
16
15
 
17
- DESCRIPTOR = _descriptor.FileDescriptor(
18
- name='proto/clarifai/auth/types/types.proto',
19
- package='clarifai.auth.types',
20
- syntax='proto3',
21
- serialized_options=b'\n\034com.clarifai.grpc.auth.typesP\001Z\005types\242\002\004CAIP',
22
- serialized_pb=b'\n%proto/clarifai/auth/types/types.proto\x12\x13\x63larifai.auth.types*`\n\x08\x41uthType\x12\t\n\x05undef\x10\x00\x12\n\n\x06NoAuth\x10\x01\x12\x0b\n\x07KeyAuth\x10\x02\x12\x14\n\x10SessionTokenAuth\x10\x03\x12\r\n\tAdminAuth\x10\x04\x12\x0b\n\x07PATAuth\x10\x05\x42.\n\x1c\x63om.clarifai.grpc.auth.typesP\x01Z\x05types\xa2\x02\x04\x43\x41IPb\x06proto3'
23
- )
24
-
25
- _AUTHTYPE = _descriptor.EnumDescriptor(
26
- name='AuthType',
27
- full_name='clarifai.auth.types.AuthType',
28
- filename=None,
29
- file=DESCRIPTOR,
30
- values=[
31
- _descriptor.EnumValueDescriptor(
32
- name='undef', index=0, number=0,
33
- serialized_options=None,
34
- type=None),
35
- _descriptor.EnumValueDescriptor(
36
- name='NoAuth', index=1, number=1,
37
- serialized_options=None,
38
- type=None),
39
- _descriptor.EnumValueDescriptor(
40
- name='KeyAuth', index=2, number=2,
41
- serialized_options=None,
42
- type=None),
43
- _descriptor.EnumValueDescriptor(
44
- name='SessionTokenAuth', index=3, number=3,
45
- serialized_options=None,
46
- type=None),
47
- _descriptor.EnumValueDescriptor(
48
- name='AdminAuth', index=4, number=4,
49
- serialized_options=None,
50
- type=None),
51
- _descriptor.EnumValueDescriptor(
52
- name='PATAuth', index=5, number=5,
53
- serialized_options=None,
54
- type=None),
55
- ],
56
- containing_type=None,
57
- serialized_options=None,
58
- serialized_start=62,
59
- serialized_end=158,
60
- )
61
- _sym_db.RegisterEnumDescriptor(_AUTHTYPE)
62
-
63
- AuthType = enum_type_wrapper.EnumTypeWrapper(_AUTHTYPE)
64
- undef = 0
65
- NoAuth = 1
66
- KeyAuth = 2
67
- SessionTokenAuth = 3
68
- AdminAuth = 4
69
- PATAuth = 5
70
-
71
-
72
- DESCRIPTOR.enum_types_by_name['AuthType'] = _AUTHTYPE
73
- _sym_db.RegisterFileDescriptor(DESCRIPTOR)
16
+ DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n%proto/clarifai/auth/types/types.proto\x12\x13\x63larifai.auth.types*`\n\x08\x41uthType\x12\t\n\x05undef\x10\x00\x12\n\n\x06NoAuth\x10\x01\x12\x0b\n\x07KeyAuth\x10\x02\x12\x14\n\x10SessionTokenAuth\x10\x03\x12\r\n\tAdminAuth\x10\x04\x12\x0b\n\x07PATAuth\x10\x05\x42g\n\x1c\x63om.clarifai.grpc.auth.typesP\x01Z>github.com/Clarifai/clarifai-go-grpc/proto/clarifai/auth/types\xa2\x02\x04\x43\x41IPb\x06proto3')
74
17
 
18
+ _builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, globals())
19
+ _builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'proto.clarifai.auth.types.types_pb2', globals())
20
+ if _descriptor._USE_C_DESCRIPTORS == False:
75
21
 
76
- DESCRIPTOR._options = None
22
+ DESCRIPTOR._options = None
23
+ DESCRIPTOR._serialized_options = b'\n\034com.clarifai.grpc.auth.typesP\001Z>github.com/Clarifai/clarifai-go-grpc/proto/clarifai/auth/types\242\002\004CAIP'
24
+ _AUTHTYPE._serialized_start=62
25
+ _AUTHTYPE._serialized_end=158
77
26
  # @@protoc_insertion_point(module_scope)