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,1210 @@
1
+ """
2
+ @generated by mypy-protobuf. Do not edit manually!
3
+ isort:skip_file
4
+ """
5
+
6
+ import builtins
7
+ import sys
8
+ import typing
9
+
10
+ import google.protobuf.descriptor
11
+ import google.protobuf.internal.enum_type_wrapper
12
+
13
+ if sys.version_info >= (3, 10):
14
+ import typing as typing_extensions
15
+ else:
16
+ import typing_extensions
17
+
18
+ DESCRIPTOR: google.protobuf.descriptor.FileDescriptor
19
+
20
+ class _StatusCode:
21
+ ValueType = typing.NewType("ValueType", builtins.int)
22
+ V: typing_extensions.TypeAlias = ValueType
23
+
24
+ class _StatusCodeEnumTypeWrapper(
25
+ google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[_StatusCode.ValueType],
26
+ builtins.type,
27
+ ):
28
+ DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor
29
+ ZERO: _StatusCode.ValueType # 0
30
+ """to be revised and greatly expanded"""
31
+ SUCCESS: _StatusCode.ValueType # 10000
32
+ """Generic"""
33
+ MIXED_STATUS: _StatusCode.ValueType # 10010
34
+ FAILURE: _StatusCode.ValueType # 10020
35
+ TRY_AGAIN: _StatusCode.ValueType # 10030
36
+ NOT_IMPLEMENTED: _StatusCode.ValueType # 10040
37
+ MOVED: _StatusCode.ValueType # 10050
38
+ """Resource moved. Respond with Http status 307 and add new Location header to response"""
39
+ TEAPOT: _StatusCode.ValueType # 10060
40
+ ACCEPTED: _StatusCode.ValueType # 10070
41
+ """Request has been accepted. Respond with Http status 202."""
42
+ CONN_ACCOUNT_ISSUES: _StatusCode.ValueType # 11000
43
+ """SUCCESS_WARNING_API_DEPRECATED = 10001;
44
+ SUCCESS_WARNING_CLIENT_DEPRECATED = 10002;
45
+
46
+ Clarifai Connection Codes: 11xxx
47
+ expired cc, still in trial, feature not supported in your tier
48
+ """
49
+ CONN_TOKEN_INVALID: _StatusCode.ValueType # 11001
50
+ """invalid auth token used. Deprecated: we should return CONN_KEY_INVALID instead now in all cases."""
51
+ CONN_CREDENTIALS_INVALID: _StatusCode.ValueType # 11002
52
+ """invalid auth credentials"""
53
+ CONN_EXCEED_HOURLY_LIMIT: _StatusCode.ValueType # 11003
54
+ """throttle hourly limit exceeded"""
55
+ CONN_EXCEED_MONTHLY_LIMIT: _StatusCode.ValueType # 11004
56
+ """throttle monthly limit exceeded"""
57
+ CONN_THROTTLED: _StatusCode.ValueType # 11005
58
+ """throttler and billing stuff"""
59
+ CONN_EXCEEDS_LIMITS: _StatusCode.ValueType # 11006
60
+ """throttler and billing stuff"""
61
+ CONN_INSUFFICIENT_SCOPES: _StatusCode.ValueType # 11007
62
+ """api key has insufficient permissions"""
63
+ CONN_KEY_INVALID: _StatusCode.ValueType # 11008
64
+ """api key is invalid"""
65
+ CONN_KEY_NOT_FOUND: _StatusCode.ValueType # 11009
66
+ """api key not found"""
67
+ CONN_BAD_REQUEST_FORMAT: _StatusCode.ValueType # 11100
68
+ """multipart form parsing, broken json, etc"""
69
+ CONN_DOES_NOT_EXIST: _StatusCode.ValueType # 11101
70
+ """when path is bad"""
71
+ CONN_INVALID_REQUEST: _StatusCode.ValueType # 11102
72
+ """something wrong with a header"""
73
+ CONN_METHOD_NOT_ALLOWED: _StatusCode.ValueType # 11103
74
+ """when a request method is not allowed"""
75
+ CONN_NO_GDPR_CONSENT: _StatusCode.ValueType # 11104
76
+ """lack GDPR consent"""
77
+ CONN_INVALID_RANGE: _StatusCode.ValueType # 11105
78
+ """when invalid range of a resource is requested"""
79
+ CONN_AUTH_METHOD_DISABLED: _StatusCode.ValueType # 11200
80
+ """authentication method is disabled"""
81
+ MODEL_TRAINED: _StatusCode.ValueType # 21100
82
+ """Model/Custom Training related 20xxx
83
+ Custom model has been already trained.
84
+ """
85
+ MODEL_TRAINING: _StatusCode.ValueType # 21101
86
+ """Custom model is currently training."""
87
+ MODEL_UNTRAINED: _StatusCode.ValueType # 21102
88
+ """Custom model has not yet been trained."""
89
+ MODEL_QUEUED_FOR_TRAINING: _StatusCode.ValueType # 21103
90
+ """Custom model is currently in queue for training, waiting on assets to process first."""
91
+ MODEL_UPLOADING: _StatusCode.ValueType # 21104
92
+ MODEL_UPLOADING_FAILED: _StatusCode.ValueType # 21105
93
+ MODEL_TRAINING_FAILED: _StatusCode.ValueType # 21106
94
+ """generic err msg for any type of model training err."""
95
+ MODEL_BUILDING: _StatusCode.ValueType # 21107
96
+ """For new V3 DockerInternalType models which are built images"""
97
+ MODEL_BUILDING_FAILED: _StatusCode.ValueType # 21108
98
+ """Failed to build image for model."""
99
+ MODEL_BUILD_UNEXPECTED_ERROR: _StatusCode.ValueType # 21109
100
+ """Failed to build image for model."""
101
+ MODEL_TRAINING_NO_DATA: _StatusCode.ValueType # 21110
102
+ """Custom model training had no data. FIXME(yang): deprecate this. Use the 21106 + errStatusMsg"""
103
+ MODEL_TRAINING_NO_POSITIVES: _StatusCode.ValueType # 21111
104
+ """Custom model training had no positive examples. FIXME(yang): deprecate this. Use the 21106 + errStatusMsg"""
105
+ MODEL_TRAINING_ONE_VS_N_SINGLE_CLASS: _StatusCode.ValueType # 21112
106
+ """Custom model training was ONE_VS_N but with a single class. FIXME(yang): deprecate this. Use the 21106 + errStatusMsg"""
107
+ MODEL_TRAINING_TIMED_OUT: _StatusCode.ValueType # 21113
108
+ """Training took longer than hard coded timeouts. FIXME(yang): deprecate this. Use the 21106 + errStatusMsg"""
109
+ MODEL_TRAINING_WAITING_ERROR: _StatusCode.ValueType # 21114
110
+ """Training got error waiting on asset pipeline to finish. FIXME(yang): deprecate this. Use the 21106 + errStatusMsg"""
111
+ MODEL_TRAINING_UNKNOWN_ERROR: _StatusCode.ValueType # 21115
112
+ """Training threw an unknown exception."""
113
+ MODEL_TRAINING_MSG_REDELIVER: _StatusCode.ValueType # 21116
114
+ """Training message was redelivered. FIXME(yang): deprecate this. Use the 21106 + errStatusMsg"""
115
+ MODEL_TRAINING_INSUFFICIENT_DATA: _StatusCode.ValueType # 21117
116
+ """Training got error due to insufficient labelled data. FIXME(yang): deprecate this. Use the 21106 + errStatusMsg"""
117
+ MODEL_TRAINING_INVALID_PARAMS: _StatusCode.ValueType # 21118
118
+ """FIXME(yang): deprecate this. Use the 21106 + errStatusMsg"""
119
+ MODEL_TRAINING_INVALID_DATA_TOLERANCE_EXCEEDED: _StatusCode.ValueType # 21119
120
+ """Training is stopped because too much data was dropped. FIXME(yang): deprecate this. Use the 21106 + errStatusMsg"""
121
+ MODEL_MODIFY_SUCCESS: _StatusCode.ValueType # 21150
122
+ MODEL_MODIFY_PENDING: _StatusCode.ValueType # 21151
123
+ MODEL_MODIFY_FAILED: _StatusCode.ValueType # 21152
124
+ MODEL_DOES_NOT_EXIST: _StatusCode.ValueType # 21200
125
+ MODEL_PERMISSION_DENIED: _StatusCode.ValueType # 21201
126
+ MODEL_INVALID_ARGUMENT: _StatusCode.ValueType # 21202
127
+ MODEL_INVALID_REQUEST: _StatusCode.ValueType # 21203
128
+ MODEL_EVALUATED: _StatusCode.ValueType # 21300
129
+ """Model Evaluation status codes"""
130
+ MODEL_EVALUATING: _StatusCode.ValueType # 21301
131
+ MODEL_NOT_EVALUATED: _StatusCode.ValueType # 21302
132
+ MODEL_QUEUED_FOR_EVALUATION: _StatusCode.ValueType # 21303
133
+ MODEL_EVALUATION_TIMED_OUT: _StatusCode.ValueType # 21310
134
+ """Evaluation took longer than hard coded timeouts. FIXME(yang): deprecate this. Use the 21317 + errStatusMsg"""
135
+ MODEL_EVALUATION_WAITING_ERROR: _StatusCode.ValueType # 21311
136
+ """Evaluation got error waiting on asset pipeline to finish.FIXME(yang): deprecate this. Use the 21317 + errStatusMsg"""
137
+ MODEL_EVALUATION_UNKNOWN_ERROR: _StatusCode.ValueType # 21312
138
+ """EVALUATION THREW AN UNKNOWN EXCEPTION."""
139
+ MODEL_PREDICTION_FAILED: _StatusCode.ValueType # 21313
140
+ MODEL_EVALUATION_MSG_REDELIVER: _StatusCode.ValueType # 21314
141
+ """Eval message was redelivered. FIXME(yang): deprecate this. Use the 21317 + errStatusMsg"""
142
+ MODEL_EVALUATION_NEED_LABELS: _StatusCode.ValueType # 21315
143
+ """Don't have enough concepts labelled to perform evaluation. FIXME(yang): deprecate this. Use the 21317 + errStatusMsg"""
144
+ MODEL_EVALUATION_NEED_INPUTS: _StatusCode.ValueType # 21316
145
+ """Don't have enough inputs per concept to perform evaluation. FIXME(yang): deprecate this. Use the 21317 + errStatusMsg"""
146
+ MODEL_EVALUATION_FAILED: _StatusCode.ValueType # 21317
147
+ """Generic err code for eval failure."""
148
+ MODEL_DEPLOYMENT_FAILED: _StatusCode.ValueType # 21350
149
+ """Status codes through 21319 (inclusive) reserved for model eval *errors* (per logic in clients)
150
+
151
+ Used when inference coordinator failed to deploy spire and throws an error
152
+ """
153
+ MODEL_DEPLOYING: _StatusCode.ValueType # 21351
154
+ """Used when calling the inference coordinator to deploy a spire"""
155
+ MODEL_QUEUED_FOR_DEPLOYMENT: _StatusCode.ValueType # 21352
156
+ """Used when training is completed"""
157
+ MODEL_NOT_DEPLOYED: _StatusCode.ValueType # 21353
158
+ """Used when model spire deployment is manually taken down or due to inactivity"""
159
+ MODEL_BUSY_PLEASE_RETRY: _StatusCode.ValueType # 21354
160
+ MODEL_LOADING: _StatusCode.ValueType # 21355
161
+ """Used when the model pod is running, but not yet ready to serve requests."""
162
+ MODEL_REFERENCE_INVALID_ARGUMENT: _StatusCode.ValueType # 21400
163
+ """Used when a model reference field is not set properly"""
164
+ MODEL_EXAMPLE_INPUT_INVALID_ARGUMENT: _StatusCode.ValueType # 21420
165
+ """Used when a model example input field is not set properly"""
166
+ MODEL_EXPORTED: _StatusCode.ValueType # 21500
167
+ """Model Export status codes"""
168
+ MODEL_EXPORTING: _StatusCode.ValueType # 21501
169
+ MODEL_EXPORTING_FAILED: _StatusCode.ValueType # 21502
170
+ MODEL_EXPORT_PENDING: _StatusCode.ValueType # 21503
171
+ WORKFLOW_NO_MATCHING_INPUT: _StatusCode.ValueType # 22001
172
+ """Workflow related 22xxx
173
+
174
+ specified model input not in workflow
175
+ """
176
+ WORKFLOW_REQUIRE_TRAINED_MODEL: _StatusCode.ValueType # 22002
177
+ """specified model must be trained"""
178
+ WORKFLOW_DUPLICATE: _StatusCode.ValueType # 22100
179
+ WORKFLOW_UNSUPPORTED_FORMAT: _StatusCode.ValueType # 22101
180
+ WORKFLOW_DOES_NOT_EXIST: _StatusCode.ValueType # 22102
181
+ WORKFLOW_PERMISSION_DENIED: _StatusCode.ValueType # 22103
182
+ WORKFLOW_INVALID_ARGUMENT: _StatusCode.ValueType # 22104
183
+ """error in the request somewhere"""
184
+ WORKFLOW_INVALID_RECIPE: _StatusCode.ValueType # 22105
185
+ WORKFLOW_INVALID_TEMPLATE: _StatusCode.ValueType # 22106
186
+ WORKFLOW_INVALID_GRAPH: _StatusCode.ValueType # 22107
187
+ WORKFLOW_INTERNAL_FAILURE: _StatusCode.ValueType # 22108
188
+ WORKFLOW_INVALID_REQUEST: _StatusCode.ValueType # 22999
189
+ """error in the request somewhere"""
190
+ WORKFLOW_MODIFY_SUCCESS: _StatusCode.ValueType # 22150
191
+ WORKFLOW_MODIFY_PENDING: _StatusCode.ValueType # 22151
192
+ WORKFLOW_MODIFY_FAILED: _StatusCode.ValueType # 22152
193
+ WORKFLOW_REINDEX_FAILED: _StatusCode.ValueType # 22153
194
+ CONCEPT_MODIFY_SUCCESS: _StatusCode.ValueType # 23150
195
+ """Concept related 23xxx"""
196
+ CONCEPT_MODIFY_PENDING: _StatusCode.ValueType # 23151
197
+ CONCEPT_MODIFY_FAILED: _StatusCode.ValueType # 23152
198
+ ANNOTATION_SUCCESS: _StatusCode.ValueType # 24150
199
+ """Annotation related 24xxx"""
200
+ ANNOTATION_PENDING: _StatusCode.ValueType # 24151
201
+ ANNOTATION_FAILED: _StatusCode.ValueType # 24152
202
+ ANNOTATION_UNKNOWN_STATUS: _StatusCode.ValueType # 24154
203
+ ANNOTATION_INVALID_ARGUMENT: _StatusCode.ValueType # 24155
204
+ ANNOTATION_PERMISSION_DENIED: _StatusCode.ValueType # 24156
205
+ ANNOTATION_AWAITING_REVIEW: _StatusCode.ValueType # 24157
206
+ """Annotation is awaiting review from task REVIEWERS."""
207
+ ANNOTATION_AWAITING_CONSENSUS_REVIEW: _StatusCode.ValueType # 24159
208
+ """Annotation is awaiting consensus review from task LABELERS."""
209
+ ANNOTATION_REVIEW_DENIED: _StatusCode.ValueType # 24158
210
+ ANNOTATION_MODIFY_SUCCESS: _StatusCode.ValueType # 24250
211
+ ANNOTATION_MODIFY_PENDING: _StatusCode.ValueType # 24251
212
+ ANNOTATION_MODIFY_FAILED: _StatusCode.ValueType # 24252
213
+ ANNOTATION_TRACK_IDLE: _StatusCode.ValueType # 24300
214
+ """Annotation (video) tracks are groups of annotations per frame
215
+ IDLE -> PROCESSING --> PENDING --> APPROVED --> (DELETED)
216
+ PROCESSING --> FAILED --> (DELETED)
217
+ PROCESSING --> (DELETED)
218
+ """
219
+ ANNOTATION_TRACK_IN_PROGRESS: _StatusCode.ValueType # 24301
220
+ ANNOTATION_TRACK_PENDING: _StatusCode.ValueType # 24302
221
+ ANNOTATION_TRACK_APPROVED: _StatusCode.ValueType # 24303
222
+ ANNOTATION_TRACK_FAILED: _StatusCode.ValueType # 24304
223
+ METADATA_INVALID_PATCH_ARGUMENTS: _StatusCode.ValueType # 24900
224
+ """Metadata related 249xx"""
225
+ METADATA_PARSING_ISSUE: _StatusCode.ValueType # 24901
226
+ METADATA_MANIPULATION_ISSUE: _StatusCode.ValueType # 24902
227
+ TRAINER_JOB_STATE_NONE: _StatusCode.ValueType # 25000
228
+ """Training service related 25xxx"""
229
+ TRAINER_JOB_STATE_QUEUED: _StatusCode.ValueType # 25001
230
+ TRAINER_JOB_STATE_RUNNING: _StatusCode.ValueType # 25002
231
+ TRAINER_JOB_STATE_COMPLETE: _StatusCode.ValueType # 25003
232
+ TRAINER_JOB_STATE_ERROR: _StatusCode.ValueType # 25004
233
+ DATA_DUMP_SUCCESS: _StatusCode.ValueType # 25150
234
+ """Data Dump related 251xx"""
235
+ DATA_DUMP_PENDING: _StatusCode.ValueType # 25151
236
+ DATA_DUMP_FAILED: _StatusCode.ValueType # 25152
237
+ DATA_DUMP_IN_PROGRESS: _StatusCode.ValueType # 25153
238
+ DATA_DUMP_NO_DATA: _StatusCode.ValueType # 25154
239
+ """DEPRECATED: Not used anymore. Now for an empty data dump, DATA_DUMP_SUCCESS is returned. To detect an empty data dump, check if the inptus count is 0."""
240
+ DATA_DUMP_UNEXPECTED_ERROR: _StatusCode.ValueType # 25155
241
+ DATA_DUMP_EXPORT_SUCCESS: _StatusCode.ValueType # 25170
242
+ DATA_DUMP_EXPORT_PENDING: _StatusCode.ValueType # 25171
243
+ DATA_DUMP_EXPORT_FAILED: _StatusCode.ValueType # 25172
244
+ DATA_DUMP_EXPORT_IN_PROGRESS: _StatusCode.ValueType # 25173
245
+ DATA_DUMP_EXPORT_UNEXPECTED_ERROR: _StatusCode.ValueType # 25174
246
+ APP_DUPLICATION_SUCCESS: _StatusCode.ValueType # 25200
247
+ """Duplicate related 252xx"""
248
+ APP_DUPLICATION_FAILED: _StatusCode.ValueType # 25201
249
+ APP_DUPLICATION_PENDING: _StatusCode.ValueType # 25202
250
+ APP_DUPLICATION_IN_PROGRESS: _StatusCode.ValueType # 25203
251
+ APP_DUPLICATION_INVALID_REQUEST: _StatusCode.ValueType # 25204
252
+ MODULE_DOES_NOT_EXIST: _StatusCode.ValueType # 25300
253
+ """Module related codes 253xx"""
254
+ MODULE_PERMISSION_DENIED: _StatusCode.ValueType # 25301
255
+ MODULE_INVALID_ARGUMENT: _StatusCode.ValueType # 25302
256
+ MODULE_INVALID_REQUEST: _StatusCode.ValueType # 25303
257
+ BULK_OPERATION_SUCCESS: _StatusCode.ValueType # 25400
258
+ """Bulk Operation related codes 254xx"""
259
+ BULK_OPERATION_FAILED: _StatusCode.ValueType # 25401
260
+ BULK_OPERATION_PENDING: _StatusCode.ValueType # 25402
261
+ BULK_OPERATION_IN_PROGRESS: _StatusCode.ValueType # 25403
262
+ BULK_OPERATION_INVALID_REQUEST: _StatusCode.ValueType # 25404
263
+ BULK_OPERATION_CANCELLED: _StatusCode.ValueType # 25405
264
+ BULK_OPERATION_UNEXPECTED_ERROR: _StatusCode.ValueType # 25406
265
+ RUNNER_DOES_NOT_EXIST: _StatusCode.ValueType # 25600
266
+ """Runner related codes 256xx"""
267
+ RUNNER_PERMISSION_DENIED: _StatusCode.ValueType # 25601
268
+ RUNNER_INVALID_ARGUMENT: _StatusCode.ValueType # 25602
269
+ RUNNER_INVALID_REQUEST: _StatusCode.ValueType # 25603
270
+ RUNNER_NEEDS_RETRY: _StatusCode.ValueType # 25604
271
+ RUNNER_STREAM_START: _StatusCode.ValueType # 25605
272
+ RUNNER_STREAM_END: _StatusCode.ValueType # 25606
273
+ RUNNER_ITEM_CANCELLED: _StatusCode.ValueType # 25607
274
+ RUNNER_PROCESSING_FAILED: _StatusCode.ValueType # 25608
275
+ RUNNER_SPECIAL_HANDLING_NOT_COMPLETE: _StatusCode.ValueType # 25609
276
+ NODEPOOL_DOES_NOT_EXIST: _StatusCode.ValueType # 25700
277
+ """Nodepool related codes 257xx"""
278
+ NODEPOOL_INVALID_ARGUMENT: _StatusCode.ValueType # 25701
279
+ NODEPOOL_INVALID_REQUEST: _StatusCode.ValueType # 25702
280
+ COMPUTE_CLUSTER_DOES_NOT_EXIST: _StatusCode.ValueType # 25800
281
+ """ComputeCluster related codes 258xx"""
282
+ COMPUTE_CLUSTER_INVALID_ARGUMENT: _StatusCode.ValueType # 25801
283
+ COMPUTE_CLUSTER_INVALID_REQUEST: _StatusCode.ValueType # 25802
284
+ DEPLOYMENT_DOES_NOT_EXIST: _StatusCode.ValueType # 25900
285
+ """Deployment related codes 259xx"""
286
+ DEPLOYMENT_INVALID_ARGUMENT: _StatusCode.ValueType # 25901
287
+ DEPLOYMENT_INVALID_REQUEST: _StatusCode.ValueType # 25902
288
+ INSTANCE_TYPE_DOES_NOT_EXIST: _StatusCode.ValueType # 26000
289
+ """InstanceType related codes 260xx"""
290
+ INSTANCE_TYPE_INVALID_ARGUMENT: _StatusCode.ValueType # 26001
291
+ INSTANCE_TYPE_INVALID_REQUEST: _StatusCode.ValueType # 26002
292
+ COMPUTE_PLANE_METRICS_INVALID_REQUEST: _StatusCode.ValueType # 26100
293
+ """Compute plane related codes 261xx"""
294
+ PIPELINE_STEP_DOES_NOT_EXIST: _StatusCode.ValueType # 26200
295
+ """PipelineStep related codes 262xx"""
296
+ PIPELINE_STEP_INVALID_ARGUMENT: _StatusCode.ValueType # 26201
297
+ PIPELINE_STEP_INVALID_REQUEST: _StatusCode.ValueType # 26202
298
+ PIPELINE_STEP_UPLOADING: _StatusCode.ValueType # 26203
299
+ PIPELINE_STEP_UPLOADING_FAILED: _StatusCode.ValueType # 26204
300
+ PIPELINE_STEP_BUILDING: _StatusCode.ValueType # 26205
301
+ PIPELINE_STEP_BUILDING_FAILED: _StatusCode.ValueType # 26206
302
+ PIPELINE_STEP_BUILD_UNEXPECTED_ERROR: _StatusCode.ValueType # 26207
303
+ PIPELINE_STEP_READY: _StatusCode.ValueType # 26208
304
+ PIPELINE_STEP_NOT_READY: _StatusCode.ValueType # 26209
305
+ PIPELINE_DOES_NOT_EXIST: _StatusCode.ValueType # 26300
306
+ """Pipeline related codes 263xx"""
307
+ PIPELINE_INVALID_ARGUMENT: _StatusCode.ValueType # 26301
308
+ PIPELINE_INVALID_REQUEST: _StatusCode.ValueType # 26302
309
+ INPUT_SUCCESS: _StatusCode.ValueType # 30000
310
+ """Input:Image related 30xxx"""
311
+ INPUT_PENDING: _StatusCode.ValueType # 30001
312
+ """when things are async, this is the default status."""
313
+ INPUT_FAILED: _StatusCode.ValueType # 30002
314
+ """any type of error downloading and processing"""
315
+ INPUT_IN_PROGRESS: _StatusCode.ValueType # 30003
316
+ INPUT_DOWNLOAD_SUCCESS: _StatusCode.ValueType # 30000
317
+ """use INPUT_SUCCESS, INPUT_PENDING, INPUT_FAILED, INPUT_IN_PROGRESS instead
318
+ DOWNLOAD is no longer correct, but keep old statuses for backward compatibility
319
+ """
320
+ INPUT_DOWNLOAD_PENDING: _StatusCode.ValueType # 30001
321
+ INPUT_DOWNLOAD_FAILED: _StatusCode.ValueType # 30002
322
+ INPUT_DOWNLOAD_IN_PROGRESS: _StatusCode.ValueType # 30003
323
+ INPUT_STATUS_UPDATE_FAILED: _StatusCode.ValueType # 30004
324
+ INPUT_DELETE_FAILED: _StatusCode.ValueType # 30005
325
+ INPUT_DUPLICATE: _StatusCode.ValueType # 30100
326
+ INPUT_UNSUPPORTED_FORMAT: _StatusCode.ValueType # 30101
327
+ INPUT_DOES_NOT_EXIST: _StatusCode.ValueType # 30102
328
+ INPUT_PERMISSION_DENIED: _StatusCode.ValueType # 30103
329
+ INPUT_INVALID_ARGUMENT: _StatusCode.ValueType # 30104
330
+ INPUT_OVER_LIMIT: _StatusCode.ValueType # 30105
331
+ INPUT_INVALID_URL: _StatusCode.ValueType # 30106
332
+ INPUT_MODIFY_SUCCESS: _StatusCode.ValueType # 30200
333
+ INPUT_MODIFY_PENDING: _StatusCode.ValueType # 30201
334
+ INPUT_MODIFY_FAILED: _StatusCode.ValueType # 30203
335
+ INPUT_STORAGE_HOST_FAILED: _StatusCode.ValueType # 30210
336
+ ALL_INPUT_INVALID_BYTES: _StatusCode.ValueType # 30300
337
+ INPUT_CLUSTER_SUCCESS: _StatusCode.ValueType # 30400
338
+ INPUT_CLUSTER_PENDING: _StatusCode.ValueType # 30401
339
+ INPUT_CLUSTER_FAILED: _StatusCode.ValueType # 30402
340
+ INPUT_CLUSTER_IN_PROGRESS: _StatusCode.ValueType # 30403
341
+ INPUT_REINDEX_SUCCESS: _StatusCode.ValueType # 30500
342
+ INPUT_REINDEX_PENDING: _StatusCode.ValueType # 30501
343
+ INPUT_REINDEX_FAILED: _StatusCode.ValueType # 30502
344
+ INPUT_REINDEX_IN_PROGRESS: _StatusCode.ValueType # 30503
345
+ INPUT_VIDEO_DOWNLOAD_SUCCESS: _StatusCode.ValueType # 31000
346
+ """Input:Video related 31xxx -- Deprecated"""
347
+ INPUT_VIDEO_DOWNLOAD_PENDING: _StatusCode.ValueType # 31001
348
+ INPUT_VIDEO_DOWNLOAD_FAILED: _StatusCode.ValueType # 31002
349
+ INPUT_VIDEO_DUPLICATE: _StatusCode.ValueType # 31100
350
+ INPUT_VIDEO_UNSUPPORTED_FORMAT: _StatusCode.ValueType # 31101
351
+ INPUT_VIDEO_DOES_NOT_EXIST: _StatusCode.ValueType # 31102
352
+ INPUT_VIDEO_PERMISSION_DENIED: _StatusCode.ValueType # 31103
353
+ INPUT_VIDEO_INVALID_ARGUMENT: _StatusCode.ValueType # 31104
354
+ INPUT_VIDEO_OVER_LIMIT: _StatusCode.ValueType # 31105
355
+ INPUT_VIDEO_INVALID_URL: _StatusCode.ValueType # 31106
356
+ INPUT_VIDEO_MODIFY_SUCCESS: _StatusCode.ValueType # 31200
357
+ INPUT_VIDEO_MODIFY_PENDING: _StatusCode.ValueType # 31201
358
+ INPUT_VIDEO_MODIFY_FAILED: _StatusCode.ValueType # 31203
359
+ INPUT_VIDEO_STORAGE_HOST_FAILED: _StatusCode.ValueType # 31210
360
+ ALL_INPUT_VIDEOS_INVALID_BYTES: _StatusCode.ValueType # 31300
361
+ INPUT_VIDEO_PROCESSING_SUCCESS: _StatusCode.ValueType # 31400
362
+ INPUT_VIDEO_PROCESSING_PENDING: _StatusCode.ValueType # 31410
363
+ INPUT_VIDEO_PROCESSING_FAILED: _StatusCode.ValueType # 31420
364
+ INPUT_VIDEO_STORAGE_INCONSISTENCY: _StatusCode.ValueType # 31430
365
+ INPUT_VIDEO_STORAGE_FAILURE: _StatusCode.ValueType # 31440
366
+ INPUT_VIDEO_URL_GENERATION_FAILURE: _StatusCode.ValueType # 31450
367
+ INPUT_CONNECTION_FAILED: _StatusCode.ValueType # 39996
368
+ REQUEST_DISABLED_FOR_MAINTENANCE: _StatusCode.ValueType # 39997
369
+ INPUT_WRITES_DISABLED_FOR_MAINTENANCE: _StatusCode.ValueType # 39998
370
+ """deprecate this one. Use REQUEST_DISABLED_FOR_MAINTENANCE"""
371
+ INPUT_INVALID_REQUEST: _StatusCode.ValueType # 39999
372
+ PREDICT_INVALID_REQUEST: _StatusCode.ValueType # 40001
373
+ """API formatting issues 4000x"""
374
+ SEARCH_INVALID_REQUEST: _StatusCode.ValueType # 40002
375
+ CONCEPTS_INVALID_REQUEST: _StatusCode.ValueType # 40003
376
+ STATS_INVALID_REQUEST: _StatusCode.ValueType # 40004
377
+ DATABASE_DUPLICATE_KEY: _StatusCode.ValueType # 40010
378
+ """Other related 400xx"""
379
+ DATABASE_STATEMENT_TIMEOUT: _StatusCode.ValueType # 40011
380
+ DATABASE_INVALID_ROWS_AFFECTED: _StatusCode.ValueType # 40012
381
+ DATABASE_DEADLOCK_DETECTED: _StatusCode.ValueType # 40013
382
+ DATABASE_FAIL_TASK: _StatusCode.ValueType # 40014
383
+ DATABASE_FAIL_TO_GET_CONNECTIONS: _StatusCode.ValueType # 40015
384
+ DATABASE_TOO_MANY_CLIENTS: _StatusCode.ValueType # 40016
385
+ DATABASE_CONSTRAINT_VIOLATED: _StatusCode.ValueType # 40017
386
+ DATABASE_CANCELED: _StatusCode.ValueType # 40021
387
+ ASYNC_WORKER_MULTI_ERRORS: _StatusCode.ValueType # 40020
388
+ RPC_REQUEST_QUEUE_FULL: _StatusCode.ValueType # 40030
389
+ RPC_SERVER_UNAVAILABLE: _StatusCode.ValueType # 40031
390
+ RPC_REQUEST_TIMEOUT: _StatusCode.ValueType # 40032
391
+ RPC_MAX_MESSAGE_SIZE_EXCEEDED: _StatusCode.ValueType # 40033
392
+ RPC_CANCELED: _StatusCode.ValueType # 40035
393
+ RPC_UNKNOWN_METHOD: _StatusCode.ValueType # 40036
394
+ REQUEST_CANCELED_BY_USER: _StatusCode.ValueType # 40037
395
+ CLUSTER_INTERNAL_FAILURE: _StatusCode.ValueType # 43040
396
+ EXTERNAL_CONNECTION_ERROR: _StatusCode.ValueType # 40034
397
+ """could not connect to external services"""
398
+ QUERY_INVALID_SYNTAX: _StatusCode.ValueType # 40050
399
+ QUEUE_CONN_ERROR: _StatusCode.ValueType # 41000
400
+ """Queue related errors 41xxx"""
401
+ QUEUE_CLOSE_REQUEST_TIMEOUT: _StatusCode.ValueType # 41002
402
+ QUEUE_CONN_CLOSED: _StatusCode.ValueType # 41003
403
+ QUEUE_PUBLISH_ACK_TIMEOUT: _StatusCode.ValueType # 41004
404
+ QUEUE_PUBLISH_ERROR: _StatusCode.ValueType # 41005
405
+ QUEUE_SUBSCRIPTION_TIMEOUT: _StatusCode.ValueType # 41006
406
+ QUEUE_SUBSCRIPTION_ERROR: _StatusCode.ValueType # 41007
407
+ QUEUE_MARSHALLING_FAILED: _StatusCode.ValueType # 41008
408
+ QUEUE_UNMARSHALLING_FAILED: _StatusCode.ValueType # 41009
409
+ QUEUE_MAX_MSG_REDELIVERY_EXCEEDED: _StatusCode.ValueType # 41010
410
+ QUEUE_ACK_FAILURE: _StatusCode.ValueType # 41011
411
+ SQS_OVERLIMIT: _StatusCode.ValueType # 41100
412
+ """SQS related errors 411xx"""
413
+ SQS_INVALID_RECEIPT_HANDLE: _StatusCode.ValueType # 41101
414
+ SQS_UNKNOWN: _StatusCode.ValueType # 41102
415
+ SEARCH_INTERNAL_FAILURE: _StatusCode.ValueType # 43001
416
+ """Search related errors 43xxxx"""
417
+ SEARCH_PROJECTION_FAILURE: _StatusCode.ValueType # 43002
418
+ SEARCH_PREDICTION_FAILURE: _StatusCode.ValueType # 43003
419
+ SEARCH_BY_NOT_FULLY_INDEXED_INPUT: _StatusCode.ValueType # 43004
420
+ SAVED_SEARCH_MODIFY_FAILED: _StatusCode.ValueType # 43005
421
+ SEARCH_COUNTS_UNAVAILABLE: _StatusCode.ValueType # 43006
422
+ EVALUATION_QUEUED: _StatusCode.ValueType # 43100
423
+ """Workflow evaluation err code"""
424
+ EVALUATION_IN_PROGRESS: _StatusCode.ValueType # 43101
425
+ EVALUATION_SUCCESS: _StatusCode.ValueType # 43102
426
+ EVALUATION_FAILED_TO_RETRIEVE_DATA: _StatusCode.ValueType # 43103
427
+ EVALUATION_INVALID_ARGUMENT: _StatusCode.ValueType # 43104
428
+ EVALUATION_FAILED: _StatusCode.ValueType # 43105
429
+ EVALUATION_PENDING: _StatusCode.ValueType # 43106
430
+ EVALUATION_TIMED_OUT: _StatusCode.ValueType # 43107
431
+ EVALUATION_UNEXPECTED_ERROR: _StatusCode.ValueType # 43108
432
+ EVALUATION_MIXED: _StatusCode.ValueType # 43109
433
+ STRIPE_EVENT_ERROR: _StatusCode.ValueType # 44001
434
+ """Stripe 44xxx"""
435
+ STRIPE_UNEXPECTED_ERROR: _StatusCode.ValueType # 44002
436
+ CACHE_MISS: _StatusCode.ValueType # 45001
437
+ """Redis/Cache 45xxx"""
438
+ REDIS_SCRIPT_EXITED_WITH_FAILURE: _StatusCode.ValueType # 45002
439
+ REDIS_STREAM_ERR: _StatusCode.ValueType # 45003
440
+ REDIS_NO_CONSUMERS: _StatusCode.ValueType # 45004
441
+ REDIS_STREAM_BACKOFF: _StatusCode.ValueType # 45005
442
+ SIGNUP_EVENT_ERROR: _StatusCode.ValueType # 46001
443
+ """Sift Science 46xxx"""
444
+ SIGNUP_FLAGGED: _StatusCode.ValueType # 46002
445
+ FILETYPE_UNSUPPORTED: _StatusCode.ValueType # 46003
446
+ LOGIN_EVENT_ERROR: _StatusCode.ValueType # 46004
447
+ SIFT_UNCATEGORIZED_ERROR: _StatusCode.ValueType # 46005
448
+ USER_FLAGGED: _StatusCode.ValueType # 46006
449
+ APP_COUNT_INVALID_MESSAGE: _StatusCode.ValueType # 47001
450
+ """Application counts related errors 470xx"""
451
+ APP_COUNT_UPDATE_INCREMENT_FAILED: _StatusCode.ValueType # 47002
452
+ APP_COUNT_REBUILD_FAILED: _StatusCode.ValueType # 47003
453
+ APP_COUNT_INTERNAL_FAILURE: _StatusCode.ValueType # 47004
454
+ MP_DOWNLOAD_ERROR: _StatusCode.ValueType # 47101
455
+ """Media processor related errors 471xx -- DEPRECATED"""
456
+ MP_RESOLVE_DNS_ERROR: _StatusCode.ValueType # 47102
457
+ MP_DOWNLOAD_MAX_SIZE_EXCEEDED_ERROR: _StatusCode.ValueType # 47103
458
+ MP_IMAGE_DECODE_ERROR: _StatusCode.ValueType # 47104
459
+ MP_INVALID_ARGUMENT: _StatusCode.ValueType # 47105
460
+ MP_IMAGE_PROCESSING_ERROR: _StatusCode.ValueType # 47106
461
+ DATATIER_CONN_ERROR: _StatusCode.ValueType # 47201
462
+ """DataTier related error 472xx"""
463
+ USER_CONSENT_FACE: _StatusCode.ValueType # 50001
464
+ """User legal consent stauts related 50xxx"""
465
+ WORKER_MISSING: _StatusCode.ValueType # 51000
466
+ """Workers 51xxx"""
467
+ WORKER_ACTIVE: _StatusCode.ValueType # 51001
468
+ WORKER_INACTIVE: _StatusCode.ValueType # 51002
469
+ COLLECTOR_MISSING: _StatusCode.ValueType # 52000
470
+ """Collectors 52xxx"""
471
+ COLLECTOR_ACTIVE: _StatusCode.ValueType # 52001
472
+ COLLECTOR_INACTIVE: _StatusCode.ValueType # 52002
473
+ COLLECTOR_POST_INPUT_FAILED: _StatusCode.ValueType # 52003
474
+ SSO_IDENTITY_PROVIDER_DOES_NOT_EXIST: _StatusCode.ValueType # 53001
475
+ """SSO 53xxx"""
476
+ TASK_IN_PROGRESS: _StatusCode.ValueType # 54001
477
+ """Tasks 54xxx
478
+ The task was created.
479
+ """
480
+ TASK_DONE: _StatusCode.ValueType # 54002
481
+ """The task is completed."""
482
+ TASK_WONT_DO: _StatusCode.ValueType # 54003
483
+ """The task is marked as abandoned."""
484
+ TASK_FAILED: _StatusCode.ValueType # 54005
485
+ """An error occurred during add-task-annotations or add-auto-annotations pipeline."""
486
+ TASK_IDLE: _StatusCode.ValueType # 54006
487
+ """When an Auto Annotation task job has finished processing its last batch and is waiting for more dataset assets."""
488
+ TASK_CONFLICT: _StatusCode.ValueType # 54100
489
+ """The task operation is in conflict with the current state of the server."""
490
+ TASK_NOT_IMPLEMENTED: _StatusCode.ValueType # 54101
491
+ """Certain task-related scenarios are not implemented."""
492
+ TASK_MISSING: _StatusCode.ValueType # 54102
493
+ """Task was not found."""
494
+ TASK_PERMISSION_DENIED: _StatusCode.ValueType # 54103
495
+ """Not allowed to perform a task-related action."""
496
+ TASK_ASSIGNMENT_SUCCESS: _StatusCode.ValueType # 54200
497
+ """Task Assignments 542xx"""
498
+ TASK_ASSIGNMENT_PENDING: _StatusCode.ValueType # 54201
499
+ TASK_ASSIGNMENT_AWAITING_REVIEW: _StatusCode.ValueType # 54202
500
+ TASK_ASSIGNMENT_AWAITING_CONSENSUS_REVIEW: _StatusCode.ValueType # 54203
501
+ TASK_ASSIGNMENT_REJECTED: _StatusCode.ValueType # 54204
502
+ TASK_ASSIGNMENT_REVIEW_SUCCESS: _StatusCode.ValueType # 54300
503
+ """Task Assignment Reviews 543xx"""
504
+ TASK_ASSIGNMENT_REVIEW_PENDING: _StatusCode.ValueType # 54301
505
+ TASK_ASSIGNMENT_REVIEW_DISMISSED: _StatusCode.ValueType # 54302
506
+ LABEL_ORDER_PENDING: _StatusCode.ValueType # 55001
507
+ """Label Order Related Status Code 55xxx"""
508
+ LABEL_ORDER_IN_PROGRESS: _StatusCode.ValueType # 55002
509
+ LABEL_ORDER_SUCCESS: _StatusCode.ValueType # 55003
510
+ LABEL_ORDER_CANCELED: _StatusCode.ValueType # 55004
511
+ LICENSE_ACTIVE: _StatusCode.ValueType # 60000
512
+ """License Related Status Code 600xx"""
513
+ LICENSE_DOES_NOT_EXIST: _StatusCode.ValueType # 60001
514
+ LICENSE_NEED_UPDATE: _StatusCode.ValueType # 60002
515
+ LICENSE_EXPIRED: _StatusCode.ValueType # 60003
516
+ LICENSE_REVOKED: _StatusCode.ValueType # 60004
517
+ LICENSE_DELETED: _StatusCode.ValueType # 60005
518
+ """hidden state not reflected to users"""
519
+ LICENSE_VOLUME_EXCEEDED: _StatusCode.ValueType # 60006
520
+ PASSWORD_VALIDATION_SUCCESS: _StatusCode.ValueType # 61000
521
+ """Password Related Status Code"""
522
+ PASSWORD_VALIDATION_FAILED: _StatusCode.ValueType # 61001
523
+ PASSWORDPOLICY_INVALID_ARGUMENT: _StatusCode.ValueType # 61002
524
+ FEATUREFLAG_CONFIG_NOT_FOUND: _StatusCode.ValueType # 62000
525
+ """Feature flags status code"""
526
+ FEATUREFLAG_INVALID_ARGUMENT: _StatusCode.ValueType # 62001
527
+ FEATUREFLAG_BLOCKED: _StatusCode.ValueType # 62002
528
+ FEATUREFLAG_NOT_FOUND: _StatusCode.ValueType # 62003
529
+ MAINTENANCE_SUCCESS: _StatusCode.ValueType # 63000
530
+ """Maintenance status code"""
531
+ MAINTENANCE_FAILED: _StatusCode.ValueType # 63001
532
+ DATASET_VERSION_PENDING: _StatusCode.ValueType # 64005
533
+ """Datasets 64xxx
534
+ The dataset version is pending to be processed.
535
+ """
536
+ DATASET_VERSION_IN_PROGRESS: _StatusCode.ValueType # 64010
537
+ """The dataset version is currently being processed."""
538
+ DATASET_VERSION_READY: _StatusCode.ValueType # 64015
539
+ """The dataset version is ready to be used."""
540
+ DATASET_VERSION_FAILURE: _StatusCode.ValueType # 64020
541
+ """An error occurred during the dataset version processing."""
542
+ DATASET_VERSION_UNEXPECTED_ERROR: _StatusCode.ValueType # 64025
543
+ """An unexpected error occurred during the dataset version processing."""
544
+ DATASET_VERSION_CONFLICT: _StatusCode.ValueType # 64030
545
+ """An alteration to dataset version would create a conflict"""
546
+ DATASET_INPUT_SUCCESS: _StatusCode.ValueType # 64100
547
+ """The dataset input was successfully added."""
548
+ DATASET_INPUT_DUPLICATE: _StatusCode.ValueType # 64101
549
+ """The dataset input is a duplicate.
550
+ Deprecated: Unused.
551
+ """
552
+ DATASET_VERSION_EXPORT_SUCCESS: _StatusCode.ValueType # 64200
553
+ """The dataset version export is completed."""
554
+ DATASET_VERSION_EXPORT_PENDING: _StatusCode.ValueType # 64201
555
+ """The dataset version is pending to be exported."""
556
+ DATASET_VERSION_EXPORT_FAILED: _StatusCode.ValueType # 64202
557
+ """An error occurred during the dataset version export."""
558
+ DATASET_VERSION_EXPORT_IN_PROGRESS: _StatusCode.ValueType # 64203
559
+ """The dataset version is currently being exported."""
560
+ DATASET_VERSION_EXPORT_UNEXPECTED_ERROR: _StatusCode.ValueType # 64204
561
+ """An unexpected error occurred during the dataset version export."""
562
+ JOB_QUEUED: _StatusCode.ValueType # 64000
563
+ """Generic Job status codes"""
564
+ JOB_RUNNING: _StatusCode.ValueType # 64001
565
+ JOB_COMPLETED: _StatusCode.ValueType # 64002
566
+ JOB_FAILED: _StatusCode.ValueType # 64003
567
+ JOB_CANCELLED: _StatusCode.ValueType # 64004
568
+ JOB_UNEXPECTED_ERROR: _StatusCode.ValueType # 64006
569
+ JOB_CONFLICT: _StatusCode.ValueType # 64007
570
+ AUTH_MISSING_IDP_ASSOC: _StatusCode.ValueType # 65000
571
+ """auth issues
572
+ TODO: Knowledge graph related 80xxx
573
+ """
574
+ LIST_OBJECTS_FAILED: _StatusCode.ValueType # 66000
575
+ ARCHIVE_EXTRACT_FAILED: _StatusCode.ValueType # 67000
576
+ UPLOAD_IN_PROGRESS: _StatusCode.ValueType # 68000
577
+ """Multipart uploading status codes"""
578
+ UPLOAD_DONE: _StatusCode.ValueType # 68001
579
+ UPLOAD_FAILED: _StatusCode.ValueType # 68002
580
+ UPLOAD_UNEXPECTED_ERROR: _StatusCode.ValueType # 68003
581
+ UPLOAD_EXPIRED: _StatusCode.ValueType # 68004
582
+ UPLOAD_CANCELED: _StatusCode.ValueType # 68005
583
+ UPLOAD_CONFLICT: _StatusCode.ValueType # 68006
584
+ BILLING_INVALID_INFO: _StatusCode.ValueType # 69000
585
+ """Billing related issues: 69xxx"""
586
+ BILLING_MISSING_TOKENS: _StatusCode.ValueType # 69001
587
+ LOG_ENTRIES_INVALID_REQUEST: _StatusCode.ValueType # 70000
588
+ """Logs related issues: 70000;"""
589
+ INTERNAL_SERVER_ISSUE: _StatusCode.ValueType # 98004
590
+ """Internal issues: 98xxx"""
591
+ INTERNAL_FETCHING_ISSUE: _StatusCode.ValueType # 98005
592
+ INTERNAL_DATABASE_ISSUE: _StatusCode.ValueType # 98006
593
+ INTERNAL_CONTEXT_CANCELED: _StatusCode.ValueType # 98008
594
+ INTERNAL_UNEXPECTED_TIMEOUT: _StatusCode.ValueType # 98009
595
+ INTERNAL_UNEXPECTED_V1: _StatusCode.ValueType # 98010
596
+ INTERNAL_UNEXPECTED_PANIC: _StatusCode.ValueType # 98011
597
+ INTERNAL_UNEXPECTED_SPIRE: _StatusCode.ValueType # 98012
598
+ INTERNAL_REDIS_UNAVAILABLE: _StatusCode.ValueType # 98013
599
+ INTERNAL_RESOURCE_EXHAUSTED: _StatusCode.ValueType # 98014
600
+ INTERNAL_REDIS_UNCATEGORIZED: _StatusCode.ValueType # 98015
601
+ INTERNAL_AWS_UNCATEGORIZED: _StatusCode.ValueType # 98016
602
+ INTERNAL_AZURE_UNCATEGORIZED: _StatusCode.ValueType # 98017
603
+ INTERNAL_VECTORDB_UNCATEGORIZED: _StatusCode.ValueType # 98018
604
+ INTERNAL_ORACLE_UNCATEGORIZED: _StatusCode.ValueType # 98019
605
+ INTERNAL_VULTR_UNCATEGORIZED: _StatusCode.ValueType # 98020
606
+ INTERNAL_GCP_UNCATEGORIZED: _StatusCode.ValueType # 98021
607
+ CONN_UNCATEGORIZED: _StatusCode.ValueType # 99001
608
+ """Uncategorized: 99xxx: move off as soon as known"""
609
+ MODEL_UNCATEGORIZED: _StatusCode.ValueType # 99002
610
+ INPUT_UNCATEGORIZED: _StatusCode.ValueType # 99003
611
+ ANNOTATION_UNCATEGORIZED: _StatusCode.ValueType # 99004
612
+ BILLING_UNCATEGORIZED: _StatusCode.ValueType # 99005
613
+ INTERNAL_UNCATEGORIZED: _StatusCode.ValueType # 99009
614
+ BAD_REQUEST: _StatusCode.ValueType # 90400
615
+ """Deprecated: migrate off to one of the internal issues"""
616
+ SERVER_ERROR: _StatusCode.ValueType # 90500
617
+ """Deprecated: migrate off to one of the internal issues"""
618
+
619
+ class StatusCode(_StatusCode, metaclass=_StatusCodeEnumTypeWrapper): ...
620
+
621
+ ZERO: StatusCode.ValueType # 0
622
+ """to be revised and greatly expanded"""
623
+ SUCCESS: StatusCode.ValueType # 10000
624
+ """Generic"""
625
+ MIXED_STATUS: StatusCode.ValueType # 10010
626
+ FAILURE: StatusCode.ValueType # 10020
627
+ TRY_AGAIN: StatusCode.ValueType # 10030
628
+ NOT_IMPLEMENTED: StatusCode.ValueType # 10040
629
+ MOVED: StatusCode.ValueType # 10050
630
+ """Resource moved. Respond with Http status 307 and add new Location header to response"""
631
+ TEAPOT: StatusCode.ValueType # 10060
632
+ ACCEPTED: StatusCode.ValueType # 10070
633
+ """Request has been accepted. Respond with Http status 202."""
634
+ CONN_ACCOUNT_ISSUES: StatusCode.ValueType # 11000
635
+ """SUCCESS_WARNING_API_DEPRECATED = 10001;
636
+ SUCCESS_WARNING_CLIENT_DEPRECATED = 10002;
637
+
638
+ Clarifai Connection Codes: 11xxx
639
+ expired cc, still in trial, feature not supported in your tier
640
+ """
641
+ CONN_TOKEN_INVALID: StatusCode.ValueType # 11001
642
+ """invalid auth token used. Deprecated: we should return CONN_KEY_INVALID instead now in all cases."""
643
+ CONN_CREDENTIALS_INVALID: StatusCode.ValueType # 11002
644
+ """invalid auth credentials"""
645
+ CONN_EXCEED_HOURLY_LIMIT: StatusCode.ValueType # 11003
646
+ """throttle hourly limit exceeded"""
647
+ CONN_EXCEED_MONTHLY_LIMIT: StatusCode.ValueType # 11004
648
+ """throttle monthly limit exceeded"""
649
+ CONN_THROTTLED: StatusCode.ValueType # 11005
650
+ """throttler and billing stuff"""
651
+ CONN_EXCEEDS_LIMITS: StatusCode.ValueType # 11006
652
+ """throttler and billing stuff"""
653
+ CONN_INSUFFICIENT_SCOPES: StatusCode.ValueType # 11007
654
+ """api key has insufficient permissions"""
655
+ CONN_KEY_INVALID: StatusCode.ValueType # 11008
656
+ """api key is invalid"""
657
+ CONN_KEY_NOT_FOUND: StatusCode.ValueType # 11009
658
+ """api key not found"""
659
+ CONN_BAD_REQUEST_FORMAT: StatusCode.ValueType # 11100
660
+ """multipart form parsing, broken json, etc"""
661
+ CONN_DOES_NOT_EXIST: StatusCode.ValueType # 11101
662
+ """when path is bad"""
663
+ CONN_INVALID_REQUEST: StatusCode.ValueType # 11102
664
+ """something wrong with a header"""
665
+ CONN_METHOD_NOT_ALLOWED: StatusCode.ValueType # 11103
666
+ """when a request method is not allowed"""
667
+ CONN_NO_GDPR_CONSENT: StatusCode.ValueType # 11104
668
+ """lack GDPR consent"""
669
+ CONN_INVALID_RANGE: StatusCode.ValueType # 11105
670
+ """when invalid range of a resource is requested"""
671
+ CONN_AUTH_METHOD_DISABLED: StatusCode.ValueType # 11200
672
+ """authentication method is disabled"""
673
+ MODEL_TRAINED: StatusCode.ValueType # 21100
674
+ """Model/Custom Training related 20xxx
675
+ Custom model has been already trained.
676
+ """
677
+ MODEL_TRAINING: StatusCode.ValueType # 21101
678
+ """Custom model is currently training."""
679
+ MODEL_UNTRAINED: StatusCode.ValueType # 21102
680
+ """Custom model has not yet been trained."""
681
+ MODEL_QUEUED_FOR_TRAINING: StatusCode.ValueType # 21103
682
+ """Custom model is currently in queue for training, waiting on assets to process first."""
683
+ MODEL_UPLOADING: StatusCode.ValueType # 21104
684
+ MODEL_UPLOADING_FAILED: StatusCode.ValueType # 21105
685
+ MODEL_TRAINING_FAILED: StatusCode.ValueType # 21106
686
+ """generic err msg for any type of model training err."""
687
+ MODEL_BUILDING: StatusCode.ValueType # 21107
688
+ """For new V3 DockerInternalType models which are built images"""
689
+ MODEL_BUILDING_FAILED: StatusCode.ValueType # 21108
690
+ """Failed to build image for model."""
691
+ MODEL_BUILD_UNEXPECTED_ERROR: StatusCode.ValueType # 21109
692
+ """Failed to build image for model."""
693
+ MODEL_TRAINING_NO_DATA: StatusCode.ValueType # 21110
694
+ """Custom model training had no data. FIXME(yang): deprecate this. Use the 21106 + errStatusMsg"""
695
+ MODEL_TRAINING_NO_POSITIVES: StatusCode.ValueType # 21111
696
+ """Custom model training had no positive examples. FIXME(yang): deprecate this. Use the 21106 + errStatusMsg"""
697
+ MODEL_TRAINING_ONE_VS_N_SINGLE_CLASS: StatusCode.ValueType # 21112
698
+ """Custom model training was ONE_VS_N but with a single class. FIXME(yang): deprecate this. Use the 21106 + errStatusMsg"""
699
+ MODEL_TRAINING_TIMED_OUT: StatusCode.ValueType # 21113
700
+ """Training took longer than hard coded timeouts. FIXME(yang): deprecate this. Use the 21106 + errStatusMsg"""
701
+ MODEL_TRAINING_WAITING_ERROR: StatusCode.ValueType # 21114
702
+ """Training got error waiting on asset pipeline to finish. FIXME(yang): deprecate this. Use the 21106 + errStatusMsg"""
703
+ MODEL_TRAINING_UNKNOWN_ERROR: StatusCode.ValueType # 21115
704
+ """Training threw an unknown exception."""
705
+ MODEL_TRAINING_MSG_REDELIVER: StatusCode.ValueType # 21116
706
+ """Training message was redelivered. FIXME(yang): deprecate this. Use the 21106 + errStatusMsg"""
707
+ MODEL_TRAINING_INSUFFICIENT_DATA: StatusCode.ValueType # 21117
708
+ """Training got error due to insufficient labelled data. FIXME(yang): deprecate this. Use the 21106 + errStatusMsg"""
709
+ MODEL_TRAINING_INVALID_PARAMS: StatusCode.ValueType # 21118
710
+ """FIXME(yang): deprecate this. Use the 21106 + errStatusMsg"""
711
+ MODEL_TRAINING_INVALID_DATA_TOLERANCE_EXCEEDED: StatusCode.ValueType # 21119
712
+ """Training is stopped because too much data was dropped. FIXME(yang): deprecate this. Use the 21106 + errStatusMsg"""
713
+ MODEL_MODIFY_SUCCESS: StatusCode.ValueType # 21150
714
+ MODEL_MODIFY_PENDING: StatusCode.ValueType # 21151
715
+ MODEL_MODIFY_FAILED: StatusCode.ValueType # 21152
716
+ MODEL_DOES_NOT_EXIST: StatusCode.ValueType # 21200
717
+ MODEL_PERMISSION_DENIED: StatusCode.ValueType # 21201
718
+ MODEL_INVALID_ARGUMENT: StatusCode.ValueType # 21202
719
+ MODEL_INVALID_REQUEST: StatusCode.ValueType # 21203
720
+ MODEL_EVALUATED: StatusCode.ValueType # 21300
721
+ """Model Evaluation status codes"""
722
+ MODEL_EVALUATING: StatusCode.ValueType # 21301
723
+ MODEL_NOT_EVALUATED: StatusCode.ValueType # 21302
724
+ MODEL_QUEUED_FOR_EVALUATION: StatusCode.ValueType # 21303
725
+ MODEL_EVALUATION_TIMED_OUT: StatusCode.ValueType # 21310
726
+ """Evaluation took longer than hard coded timeouts. FIXME(yang): deprecate this. Use the 21317 + errStatusMsg"""
727
+ MODEL_EVALUATION_WAITING_ERROR: StatusCode.ValueType # 21311
728
+ """Evaluation got error waiting on asset pipeline to finish.FIXME(yang): deprecate this. Use the 21317 + errStatusMsg"""
729
+ MODEL_EVALUATION_UNKNOWN_ERROR: StatusCode.ValueType # 21312
730
+ """EVALUATION THREW AN UNKNOWN EXCEPTION."""
731
+ MODEL_PREDICTION_FAILED: StatusCode.ValueType # 21313
732
+ MODEL_EVALUATION_MSG_REDELIVER: StatusCode.ValueType # 21314
733
+ """Eval message was redelivered. FIXME(yang): deprecate this. Use the 21317 + errStatusMsg"""
734
+ MODEL_EVALUATION_NEED_LABELS: StatusCode.ValueType # 21315
735
+ """Don't have enough concepts labelled to perform evaluation. FIXME(yang): deprecate this. Use the 21317 + errStatusMsg"""
736
+ MODEL_EVALUATION_NEED_INPUTS: StatusCode.ValueType # 21316
737
+ """Don't have enough inputs per concept to perform evaluation. FIXME(yang): deprecate this. Use the 21317 + errStatusMsg"""
738
+ MODEL_EVALUATION_FAILED: StatusCode.ValueType # 21317
739
+ """Generic err code for eval failure."""
740
+ MODEL_DEPLOYMENT_FAILED: StatusCode.ValueType # 21350
741
+ """Status codes through 21319 (inclusive) reserved for model eval *errors* (per logic in clients)
742
+
743
+ Used when inference coordinator failed to deploy spire and throws an error
744
+ """
745
+ MODEL_DEPLOYING: StatusCode.ValueType # 21351
746
+ """Used when calling the inference coordinator to deploy a spire"""
747
+ MODEL_QUEUED_FOR_DEPLOYMENT: StatusCode.ValueType # 21352
748
+ """Used when training is completed"""
749
+ MODEL_NOT_DEPLOYED: StatusCode.ValueType # 21353
750
+ """Used when model spire deployment is manually taken down or due to inactivity"""
751
+ MODEL_BUSY_PLEASE_RETRY: StatusCode.ValueType # 21354
752
+ MODEL_LOADING: StatusCode.ValueType # 21355
753
+ """Used when the model pod is running, but not yet ready to serve requests."""
754
+ MODEL_REFERENCE_INVALID_ARGUMENT: StatusCode.ValueType # 21400
755
+ """Used when a model reference field is not set properly"""
756
+ MODEL_EXAMPLE_INPUT_INVALID_ARGUMENT: StatusCode.ValueType # 21420
757
+ """Used when a model example input field is not set properly"""
758
+ MODEL_EXPORTED: StatusCode.ValueType # 21500
759
+ """Model Export status codes"""
760
+ MODEL_EXPORTING: StatusCode.ValueType # 21501
761
+ MODEL_EXPORTING_FAILED: StatusCode.ValueType # 21502
762
+ MODEL_EXPORT_PENDING: StatusCode.ValueType # 21503
763
+ WORKFLOW_NO_MATCHING_INPUT: StatusCode.ValueType # 22001
764
+ """Workflow related 22xxx
765
+
766
+ specified model input not in workflow
767
+ """
768
+ WORKFLOW_REQUIRE_TRAINED_MODEL: StatusCode.ValueType # 22002
769
+ """specified model must be trained"""
770
+ WORKFLOW_DUPLICATE: StatusCode.ValueType # 22100
771
+ WORKFLOW_UNSUPPORTED_FORMAT: StatusCode.ValueType # 22101
772
+ WORKFLOW_DOES_NOT_EXIST: StatusCode.ValueType # 22102
773
+ WORKFLOW_PERMISSION_DENIED: StatusCode.ValueType # 22103
774
+ WORKFLOW_INVALID_ARGUMENT: StatusCode.ValueType # 22104
775
+ """error in the request somewhere"""
776
+ WORKFLOW_INVALID_RECIPE: StatusCode.ValueType # 22105
777
+ WORKFLOW_INVALID_TEMPLATE: StatusCode.ValueType # 22106
778
+ WORKFLOW_INVALID_GRAPH: StatusCode.ValueType # 22107
779
+ WORKFLOW_INTERNAL_FAILURE: StatusCode.ValueType # 22108
780
+ WORKFLOW_INVALID_REQUEST: StatusCode.ValueType # 22999
781
+ """error in the request somewhere"""
782
+ WORKFLOW_MODIFY_SUCCESS: StatusCode.ValueType # 22150
783
+ WORKFLOW_MODIFY_PENDING: StatusCode.ValueType # 22151
784
+ WORKFLOW_MODIFY_FAILED: StatusCode.ValueType # 22152
785
+ WORKFLOW_REINDEX_FAILED: StatusCode.ValueType # 22153
786
+ CONCEPT_MODIFY_SUCCESS: StatusCode.ValueType # 23150
787
+ """Concept related 23xxx"""
788
+ CONCEPT_MODIFY_PENDING: StatusCode.ValueType # 23151
789
+ CONCEPT_MODIFY_FAILED: StatusCode.ValueType # 23152
790
+ ANNOTATION_SUCCESS: StatusCode.ValueType # 24150
791
+ """Annotation related 24xxx"""
792
+ ANNOTATION_PENDING: StatusCode.ValueType # 24151
793
+ ANNOTATION_FAILED: StatusCode.ValueType # 24152
794
+ ANNOTATION_UNKNOWN_STATUS: StatusCode.ValueType # 24154
795
+ ANNOTATION_INVALID_ARGUMENT: StatusCode.ValueType # 24155
796
+ ANNOTATION_PERMISSION_DENIED: StatusCode.ValueType # 24156
797
+ ANNOTATION_AWAITING_REVIEW: StatusCode.ValueType # 24157
798
+ """Annotation is awaiting review from task REVIEWERS."""
799
+ ANNOTATION_AWAITING_CONSENSUS_REVIEW: StatusCode.ValueType # 24159
800
+ """Annotation is awaiting consensus review from task LABELERS."""
801
+ ANNOTATION_REVIEW_DENIED: StatusCode.ValueType # 24158
802
+ ANNOTATION_MODIFY_SUCCESS: StatusCode.ValueType # 24250
803
+ ANNOTATION_MODIFY_PENDING: StatusCode.ValueType # 24251
804
+ ANNOTATION_MODIFY_FAILED: StatusCode.ValueType # 24252
805
+ ANNOTATION_TRACK_IDLE: StatusCode.ValueType # 24300
806
+ """Annotation (video) tracks are groups of annotations per frame
807
+ IDLE -> PROCESSING --> PENDING --> APPROVED --> (DELETED)
808
+ PROCESSING --> FAILED --> (DELETED)
809
+ PROCESSING --> (DELETED)
810
+ """
811
+ ANNOTATION_TRACK_IN_PROGRESS: StatusCode.ValueType # 24301
812
+ ANNOTATION_TRACK_PENDING: StatusCode.ValueType # 24302
813
+ ANNOTATION_TRACK_APPROVED: StatusCode.ValueType # 24303
814
+ ANNOTATION_TRACK_FAILED: StatusCode.ValueType # 24304
815
+ METADATA_INVALID_PATCH_ARGUMENTS: StatusCode.ValueType # 24900
816
+ """Metadata related 249xx"""
817
+ METADATA_PARSING_ISSUE: StatusCode.ValueType # 24901
818
+ METADATA_MANIPULATION_ISSUE: StatusCode.ValueType # 24902
819
+ TRAINER_JOB_STATE_NONE: StatusCode.ValueType # 25000
820
+ """Training service related 25xxx"""
821
+ TRAINER_JOB_STATE_QUEUED: StatusCode.ValueType # 25001
822
+ TRAINER_JOB_STATE_RUNNING: StatusCode.ValueType # 25002
823
+ TRAINER_JOB_STATE_COMPLETE: StatusCode.ValueType # 25003
824
+ TRAINER_JOB_STATE_ERROR: StatusCode.ValueType # 25004
825
+ DATA_DUMP_SUCCESS: StatusCode.ValueType # 25150
826
+ """Data Dump related 251xx"""
827
+ DATA_DUMP_PENDING: StatusCode.ValueType # 25151
828
+ DATA_DUMP_FAILED: StatusCode.ValueType # 25152
829
+ DATA_DUMP_IN_PROGRESS: StatusCode.ValueType # 25153
830
+ DATA_DUMP_NO_DATA: StatusCode.ValueType # 25154
831
+ """DEPRECATED: Not used anymore. Now for an empty data dump, DATA_DUMP_SUCCESS is returned. To detect an empty data dump, check if the inptus count is 0."""
832
+ DATA_DUMP_UNEXPECTED_ERROR: StatusCode.ValueType # 25155
833
+ DATA_DUMP_EXPORT_SUCCESS: StatusCode.ValueType # 25170
834
+ DATA_DUMP_EXPORT_PENDING: StatusCode.ValueType # 25171
835
+ DATA_DUMP_EXPORT_FAILED: StatusCode.ValueType # 25172
836
+ DATA_DUMP_EXPORT_IN_PROGRESS: StatusCode.ValueType # 25173
837
+ DATA_DUMP_EXPORT_UNEXPECTED_ERROR: StatusCode.ValueType # 25174
838
+ APP_DUPLICATION_SUCCESS: StatusCode.ValueType # 25200
839
+ """Duplicate related 252xx"""
840
+ APP_DUPLICATION_FAILED: StatusCode.ValueType # 25201
841
+ APP_DUPLICATION_PENDING: StatusCode.ValueType # 25202
842
+ APP_DUPLICATION_IN_PROGRESS: StatusCode.ValueType # 25203
843
+ APP_DUPLICATION_INVALID_REQUEST: StatusCode.ValueType # 25204
844
+ MODULE_DOES_NOT_EXIST: StatusCode.ValueType # 25300
845
+ """Module related codes 253xx"""
846
+ MODULE_PERMISSION_DENIED: StatusCode.ValueType # 25301
847
+ MODULE_INVALID_ARGUMENT: StatusCode.ValueType # 25302
848
+ MODULE_INVALID_REQUEST: StatusCode.ValueType # 25303
849
+ BULK_OPERATION_SUCCESS: StatusCode.ValueType # 25400
850
+ """Bulk Operation related codes 254xx"""
851
+ BULK_OPERATION_FAILED: StatusCode.ValueType # 25401
852
+ BULK_OPERATION_PENDING: StatusCode.ValueType # 25402
853
+ BULK_OPERATION_IN_PROGRESS: StatusCode.ValueType # 25403
854
+ BULK_OPERATION_INVALID_REQUEST: StatusCode.ValueType # 25404
855
+ BULK_OPERATION_CANCELLED: StatusCode.ValueType # 25405
856
+ BULK_OPERATION_UNEXPECTED_ERROR: StatusCode.ValueType # 25406
857
+ RUNNER_DOES_NOT_EXIST: StatusCode.ValueType # 25600
858
+ """Runner related codes 256xx"""
859
+ RUNNER_PERMISSION_DENIED: StatusCode.ValueType # 25601
860
+ RUNNER_INVALID_ARGUMENT: StatusCode.ValueType # 25602
861
+ RUNNER_INVALID_REQUEST: StatusCode.ValueType # 25603
862
+ RUNNER_NEEDS_RETRY: StatusCode.ValueType # 25604
863
+ RUNNER_STREAM_START: StatusCode.ValueType # 25605
864
+ RUNNER_STREAM_END: StatusCode.ValueType # 25606
865
+ RUNNER_ITEM_CANCELLED: StatusCode.ValueType # 25607
866
+ RUNNER_PROCESSING_FAILED: StatusCode.ValueType # 25608
867
+ RUNNER_SPECIAL_HANDLING_NOT_COMPLETE: StatusCode.ValueType # 25609
868
+ NODEPOOL_DOES_NOT_EXIST: StatusCode.ValueType # 25700
869
+ """Nodepool related codes 257xx"""
870
+ NODEPOOL_INVALID_ARGUMENT: StatusCode.ValueType # 25701
871
+ NODEPOOL_INVALID_REQUEST: StatusCode.ValueType # 25702
872
+ COMPUTE_CLUSTER_DOES_NOT_EXIST: StatusCode.ValueType # 25800
873
+ """ComputeCluster related codes 258xx"""
874
+ COMPUTE_CLUSTER_INVALID_ARGUMENT: StatusCode.ValueType # 25801
875
+ COMPUTE_CLUSTER_INVALID_REQUEST: StatusCode.ValueType # 25802
876
+ DEPLOYMENT_DOES_NOT_EXIST: StatusCode.ValueType # 25900
877
+ """Deployment related codes 259xx"""
878
+ DEPLOYMENT_INVALID_ARGUMENT: StatusCode.ValueType # 25901
879
+ DEPLOYMENT_INVALID_REQUEST: StatusCode.ValueType # 25902
880
+ INSTANCE_TYPE_DOES_NOT_EXIST: StatusCode.ValueType # 26000
881
+ """InstanceType related codes 260xx"""
882
+ INSTANCE_TYPE_INVALID_ARGUMENT: StatusCode.ValueType # 26001
883
+ INSTANCE_TYPE_INVALID_REQUEST: StatusCode.ValueType # 26002
884
+ COMPUTE_PLANE_METRICS_INVALID_REQUEST: StatusCode.ValueType # 26100
885
+ """Compute plane related codes 261xx"""
886
+ PIPELINE_STEP_DOES_NOT_EXIST: StatusCode.ValueType # 26200
887
+ """PipelineStep related codes 262xx"""
888
+ PIPELINE_STEP_INVALID_ARGUMENT: StatusCode.ValueType # 26201
889
+ PIPELINE_STEP_INVALID_REQUEST: StatusCode.ValueType # 26202
890
+ PIPELINE_STEP_UPLOADING: StatusCode.ValueType # 26203
891
+ PIPELINE_STEP_UPLOADING_FAILED: StatusCode.ValueType # 26204
892
+ PIPELINE_STEP_BUILDING: StatusCode.ValueType # 26205
893
+ PIPELINE_STEP_BUILDING_FAILED: StatusCode.ValueType # 26206
894
+ PIPELINE_STEP_BUILD_UNEXPECTED_ERROR: StatusCode.ValueType # 26207
895
+ PIPELINE_STEP_READY: StatusCode.ValueType # 26208
896
+ PIPELINE_STEP_NOT_READY: StatusCode.ValueType # 26209
897
+ PIPELINE_DOES_NOT_EXIST: StatusCode.ValueType # 26300
898
+ """Pipeline related codes 263xx"""
899
+ PIPELINE_INVALID_ARGUMENT: StatusCode.ValueType # 26301
900
+ PIPELINE_INVALID_REQUEST: StatusCode.ValueType # 26302
901
+ INPUT_SUCCESS: StatusCode.ValueType # 30000
902
+ """Input:Image related 30xxx"""
903
+ INPUT_PENDING: StatusCode.ValueType # 30001
904
+ """when things are async, this is the default status."""
905
+ INPUT_FAILED: StatusCode.ValueType # 30002
906
+ """any type of error downloading and processing"""
907
+ INPUT_IN_PROGRESS: StatusCode.ValueType # 30003
908
+ INPUT_DOWNLOAD_SUCCESS: StatusCode.ValueType # 30000
909
+ """use INPUT_SUCCESS, INPUT_PENDING, INPUT_FAILED, INPUT_IN_PROGRESS instead
910
+ DOWNLOAD is no longer correct, but keep old statuses for backward compatibility
911
+ """
912
+ INPUT_DOWNLOAD_PENDING: StatusCode.ValueType # 30001
913
+ INPUT_DOWNLOAD_FAILED: StatusCode.ValueType # 30002
914
+ INPUT_DOWNLOAD_IN_PROGRESS: StatusCode.ValueType # 30003
915
+ INPUT_STATUS_UPDATE_FAILED: StatusCode.ValueType # 30004
916
+ INPUT_DELETE_FAILED: StatusCode.ValueType # 30005
917
+ INPUT_DUPLICATE: StatusCode.ValueType # 30100
918
+ INPUT_UNSUPPORTED_FORMAT: StatusCode.ValueType # 30101
919
+ INPUT_DOES_NOT_EXIST: StatusCode.ValueType # 30102
920
+ INPUT_PERMISSION_DENIED: StatusCode.ValueType # 30103
921
+ INPUT_INVALID_ARGUMENT: StatusCode.ValueType # 30104
922
+ INPUT_OVER_LIMIT: StatusCode.ValueType # 30105
923
+ INPUT_INVALID_URL: StatusCode.ValueType # 30106
924
+ INPUT_MODIFY_SUCCESS: StatusCode.ValueType # 30200
925
+ INPUT_MODIFY_PENDING: StatusCode.ValueType # 30201
926
+ INPUT_MODIFY_FAILED: StatusCode.ValueType # 30203
927
+ INPUT_STORAGE_HOST_FAILED: StatusCode.ValueType # 30210
928
+ ALL_INPUT_INVALID_BYTES: StatusCode.ValueType # 30300
929
+ INPUT_CLUSTER_SUCCESS: StatusCode.ValueType # 30400
930
+ INPUT_CLUSTER_PENDING: StatusCode.ValueType # 30401
931
+ INPUT_CLUSTER_FAILED: StatusCode.ValueType # 30402
932
+ INPUT_CLUSTER_IN_PROGRESS: StatusCode.ValueType # 30403
933
+ INPUT_REINDEX_SUCCESS: StatusCode.ValueType # 30500
934
+ INPUT_REINDEX_PENDING: StatusCode.ValueType # 30501
935
+ INPUT_REINDEX_FAILED: StatusCode.ValueType # 30502
936
+ INPUT_REINDEX_IN_PROGRESS: StatusCode.ValueType # 30503
937
+ INPUT_VIDEO_DOWNLOAD_SUCCESS: StatusCode.ValueType # 31000
938
+ """Input:Video related 31xxx -- Deprecated"""
939
+ INPUT_VIDEO_DOWNLOAD_PENDING: StatusCode.ValueType # 31001
940
+ INPUT_VIDEO_DOWNLOAD_FAILED: StatusCode.ValueType # 31002
941
+ INPUT_VIDEO_DUPLICATE: StatusCode.ValueType # 31100
942
+ INPUT_VIDEO_UNSUPPORTED_FORMAT: StatusCode.ValueType # 31101
943
+ INPUT_VIDEO_DOES_NOT_EXIST: StatusCode.ValueType # 31102
944
+ INPUT_VIDEO_PERMISSION_DENIED: StatusCode.ValueType # 31103
945
+ INPUT_VIDEO_INVALID_ARGUMENT: StatusCode.ValueType # 31104
946
+ INPUT_VIDEO_OVER_LIMIT: StatusCode.ValueType # 31105
947
+ INPUT_VIDEO_INVALID_URL: StatusCode.ValueType # 31106
948
+ INPUT_VIDEO_MODIFY_SUCCESS: StatusCode.ValueType # 31200
949
+ INPUT_VIDEO_MODIFY_PENDING: StatusCode.ValueType # 31201
950
+ INPUT_VIDEO_MODIFY_FAILED: StatusCode.ValueType # 31203
951
+ INPUT_VIDEO_STORAGE_HOST_FAILED: StatusCode.ValueType # 31210
952
+ ALL_INPUT_VIDEOS_INVALID_BYTES: StatusCode.ValueType # 31300
953
+ INPUT_VIDEO_PROCESSING_SUCCESS: StatusCode.ValueType # 31400
954
+ INPUT_VIDEO_PROCESSING_PENDING: StatusCode.ValueType # 31410
955
+ INPUT_VIDEO_PROCESSING_FAILED: StatusCode.ValueType # 31420
956
+ INPUT_VIDEO_STORAGE_INCONSISTENCY: StatusCode.ValueType # 31430
957
+ INPUT_VIDEO_STORAGE_FAILURE: StatusCode.ValueType # 31440
958
+ INPUT_VIDEO_URL_GENERATION_FAILURE: StatusCode.ValueType # 31450
959
+ INPUT_CONNECTION_FAILED: StatusCode.ValueType # 39996
960
+ REQUEST_DISABLED_FOR_MAINTENANCE: StatusCode.ValueType # 39997
961
+ INPUT_WRITES_DISABLED_FOR_MAINTENANCE: StatusCode.ValueType # 39998
962
+ """deprecate this one. Use REQUEST_DISABLED_FOR_MAINTENANCE"""
963
+ INPUT_INVALID_REQUEST: StatusCode.ValueType # 39999
964
+ PREDICT_INVALID_REQUEST: StatusCode.ValueType # 40001
965
+ """API formatting issues 4000x"""
966
+ SEARCH_INVALID_REQUEST: StatusCode.ValueType # 40002
967
+ CONCEPTS_INVALID_REQUEST: StatusCode.ValueType # 40003
968
+ STATS_INVALID_REQUEST: StatusCode.ValueType # 40004
969
+ DATABASE_DUPLICATE_KEY: StatusCode.ValueType # 40010
970
+ """Other related 400xx"""
971
+ DATABASE_STATEMENT_TIMEOUT: StatusCode.ValueType # 40011
972
+ DATABASE_INVALID_ROWS_AFFECTED: StatusCode.ValueType # 40012
973
+ DATABASE_DEADLOCK_DETECTED: StatusCode.ValueType # 40013
974
+ DATABASE_FAIL_TASK: StatusCode.ValueType # 40014
975
+ DATABASE_FAIL_TO_GET_CONNECTIONS: StatusCode.ValueType # 40015
976
+ DATABASE_TOO_MANY_CLIENTS: StatusCode.ValueType # 40016
977
+ DATABASE_CONSTRAINT_VIOLATED: StatusCode.ValueType # 40017
978
+ DATABASE_CANCELED: StatusCode.ValueType # 40021
979
+ ASYNC_WORKER_MULTI_ERRORS: StatusCode.ValueType # 40020
980
+ RPC_REQUEST_QUEUE_FULL: StatusCode.ValueType # 40030
981
+ RPC_SERVER_UNAVAILABLE: StatusCode.ValueType # 40031
982
+ RPC_REQUEST_TIMEOUT: StatusCode.ValueType # 40032
983
+ RPC_MAX_MESSAGE_SIZE_EXCEEDED: StatusCode.ValueType # 40033
984
+ RPC_CANCELED: StatusCode.ValueType # 40035
985
+ RPC_UNKNOWN_METHOD: StatusCode.ValueType # 40036
986
+ REQUEST_CANCELED_BY_USER: StatusCode.ValueType # 40037
987
+ CLUSTER_INTERNAL_FAILURE: StatusCode.ValueType # 43040
988
+ EXTERNAL_CONNECTION_ERROR: StatusCode.ValueType # 40034
989
+ """could not connect to external services"""
990
+ QUERY_INVALID_SYNTAX: StatusCode.ValueType # 40050
991
+ QUEUE_CONN_ERROR: StatusCode.ValueType # 41000
992
+ """Queue related errors 41xxx"""
993
+ QUEUE_CLOSE_REQUEST_TIMEOUT: StatusCode.ValueType # 41002
994
+ QUEUE_CONN_CLOSED: StatusCode.ValueType # 41003
995
+ QUEUE_PUBLISH_ACK_TIMEOUT: StatusCode.ValueType # 41004
996
+ QUEUE_PUBLISH_ERROR: StatusCode.ValueType # 41005
997
+ QUEUE_SUBSCRIPTION_TIMEOUT: StatusCode.ValueType # 41006
998
+ QUEUE_SUBSCRIPTION_ERROR: StatusCode.ValueType # 41007
999
+ QUEUE_MARSHALLING_FAILED: StatusCode.ValueType # 41008
1000
+ QUEUE_UNMARSHALLING_FAILED: StatusCode.ValueType # 41009
1001
+ QUEUE_MAX_MSG_REDELIVERY_EXCEEDED: StatusCode.ValueType # 41010
1002
+ QUEUE_ACK_FAILURE: StatusCode.ValueType # 41011
1003
+ SQS_OVERLIMIT: StatusCode.ValueType # 41100
1004
+ """SQS related errors 411xx"""
1005
+ SQS_INVALID_RECEIPT_HANDLE: StatusCode.ValueType # 41101
1006
+ SQS_UNKNOWN: StatusCode.ValueType # 41102
1007
+ SEARCH_INTERNAL_FAILURE: StatusCode.ValueType # 43001
1008
+ """Search related errors 43xxxx"""
1009
+ SEARCH_PROJECTION_FAILURE: StatusCode.ValueType # 43002
1010
+ SEARCH_PREDICTION_FAILURE: StatusCode.ValueType # 43003
1011
+ SEARCH_BY_NOT_FULLY_INDEXED_INPUT: StatusCode.ValueType # 43004
1012
+ SAVED_SEARCH_MODIFY_FAILED: StatusCode.ValueType # 43005
1013
+ SEARCH_COUNTS_UNAVAILABLE: StatusCode.ValueType # 43006
1014
+ EVALUATION_QUEUED: StatusCode.ValueType # 43100
1015
+ """Workflow evaluation err code"""
1016
+ EVALUATION_IN_PROGRESS: StatusCode.ValueType # 43101
1017
+ EVALUATION_SUCCESS: StatusCode.ValueType # 43102
1018
+ EVALUATION_FAILED_TO_RETRIEVE_DATA: StatusCode.ValueType # 43103
1019
+ EVALUATION_INVALID_ARGUMENT: StatusCode.ValueType # 43104
1020
+ EVALUATION_FAILED: StatusCode.ValueType # 43105
1021
+ EVALUATION_PENDING: StatusCode.ValueType # 43106
1022
+ EVALUATION_TIMED_OUT: StatusCode.ValueType # 43107
1023
+ EVALUATION_UNEXPECTED_ERROR: StatusCode.ValueType # 43108
1024
+ EVALUATION_MIXED: StatusCode.ValueType # 43109
1025
+ STRIPE_EVENT_ERROR: StatusCode.ValueType # 44001
1026
+ """Stripe 44xxx"""
1027
+ STRIPE_UNEXPECTED_ERROR: StatusCode.ValueType # 44002
1028
+ CACHE_MISS: StatusCode.ValueType # 45001
1029
+ """Redis/Cache 45xxx"""
1030
+ REDIS_SCRIPT_EXITED_WITH_FAILURE: StatusCode.ValueType # 45002
1031
+ REDIS_STREAM_ERR: StatusCode.ValueType # 45003
1032
+ REDIS_NO_CONSUMERS: StatusCode.ValueType # 45004
1033
+ REDIS_STREAM_BACKOFF: StatusCode.ValueType # 45005
1034
+ SIGNUP_EVENT_ERROR: StatusCode.ValueType # 46001
1035
+ """Sift Science 46xxx"""
1036
+ SIGNUP_FLAGGED: StatusCode.ValueType # 46002
1037
+ FILETYPE_UNSUPPORTED: StatusCode.ValueType # 46003
1038
+ LOGIN_EVENT_ERROR: StatusCode.ValueType # 46004
1039
+ SIFT_UNCATEGORIZED_ERROR: StatusCode.ValueType # 46005
1040
+ USER_FLAGGED: StatusCode.ValueType # 46006
1041
+ APP_COUNT_INVALID_MESSAGE: StatusCode.ValueType # 47001
1042
+ """Application counts related errors 470xx"""
1043
+ APP_COUNT_UPDATE_INCREMENT_FAILED: StatusCode.ValueType # 47002
1044
+ APP_COUNT_REBUILD_FAILED: StatusCode.ValueType # 47003
1045
+ APP_COUNT_INTERNAL_FAILURE: StatusCode.ValueType # 47004
1046
+ MP_DOWNLOAD_ERROR: StatusCode.ValueType # 47101
1047
+ """Media processor related errors 471xx -- DEPRECATED"""
1048
+ MP_RESOLVE_DNS_ERROR: StatusCode.ValueType # 47102
1049
+ MP_DOWNLOAD_MAX_SIZE_EXCEEDED_ERROR: StatusCode.ValueType # 47103
1050
+ MP_IMAGE_DECODE_ERROR: StatusCode.ValueType # 47104
1051
+ MP_INVALID_ARGUMENT: StatusCode.ValueType # 47105
1052
+ MP_IMAGE_PROCESSING_ERROR: StatusCode.ValueType # 47106
1053
+ DATATIER_CONN_ERROR: StatusCode.ValueType # 47201
1054
+ """DataTier related error 472xx"""
1055
+ USER_CONSENT_FACE: StatusCode.ValueType # 50001
1056
+ """User legal consent stauts related 50xxx"""
1057
+ WORKER_MISSING: StatusCode.ValueType # 51000
1058
+ """Workers 51xxx"""
1059
+ WORKER_ACTIVE: StatusCode.ValueType # 51001
1060
+ WORKER_INACTIVE: StatusCode.ValueType # 51002
1061
+ COLLECTOR_MISSING: StatusCode.ValueType # 52000
1062
+ """Collectors 52xxx"""
1063
+ COLLECTOR_ACTIVE: StatusCode.ValueType # 52001
1064
+ COLLECTOR_INACTIVE: StatusCode.ValueType # 52002
1065
+ COLLECTOR_POST_INPUT_FAILED: StatusCode.ValueType # 52003
1066
+ SSO_IDENTITY_PROVIDER_DOES_NOT_EXIST: StatusCode.ValueType # 53001
1067
+ """SSO 53xxx"""
1068
+ TASK_IN_PROGRESS: StatusCode.ValueType # 54001
1069
+ """Tasks 54xxx
1070
+ The task was created.
1071
+ """
1072
+ TASK_DONE: StatusCode.ValueType # 54002
1073
+ """The task is completed."""
1074
+ TASK_WONT_DO: StatusCode.ValueType # 54003
1075
+ """The task is marked as abandoned."""
1076
+ TASK_FAILED: StatusCode.ValueType # 54005
1077
+ """An error occurred during add-task-annotations or add-auto-annotations pipeline."""
1078
+ TASK_IDLE: StatusCode.ValueType # 54006
1079
+ """When an Auto Annotation task job has finished processing its last batch and is waiting for more dataset assets."""
1080
+ TASK_CONFLICT: StatusCode.ValueType # 54100
1081
+ """The task operation is in conflict with the current state of the server."""
1082
+ TASK_NOT_IMPLEMENTED: StatusCode.ValueType # 54101
1083
+ """Certain task-related scenarios are not implemented."""
1084
+ TASK_MISSING: StatusCode.ValueType # 54102
1085
+ """Task was not found."""
1086
+ TASK_PERMISSION_DENIED: StatusCode.ValueType # 54103
1087
+ """Not allowed to perform a task-related action."""
1088
+ TASK_ASSIGNMENT_SUCCESS: StatusCode.ValueType # 54200
1089
+ """Task Assignments 542xx"""
1090
+ TASK_ASSIGNMENT_PENDING: StatusCode.ValueType # 54201
1091
+ TASK_ASSIGNMENT_AWAITING_REVIEW: StatusCode.ValueType # 54202
1092
+ TASK_ASSIGNMENT_AWAITING_CONSENSUS_REVIEW: StatusCode.ValueType # 54203
1093
+ TASK_ASSIGNMENT_REJECTED: StatusCode.ValueType # 54204
1094
+ TASK_ASSIGNMENT_REVIEW_SUCCESS: StatusCode.ValueType # 54300
1095
+ """Task Assignment Reviews 543xx"""
1096
+ TASK_ASSIGNMENT_REVIEW_PENDING: StatusCode.ValueType # 54301
1097
+ TASK_ASSIGNMENT_REVIEW_DISMISSED: StatusCode.ValueType # 54302
1098
+ LABEL_ORDER_PENDING: StatusCode.ValueType # 55001
1099
+ """Label Order Related Status Code 55xxx"""
1100
+ LABEL_ORDER_IN_PROGRESS: StatusCode.ValueType # 55002
1101
+ LABEL_ORDER_SUCCESS: StatusCode.ValueType # 55003
1102
+ LABEL_ORDER_CANCELED: StatusCode.ValueType # 55004
1103
+ LICENSE_ACTIVE: StatusCode.ValueType # 60000
1104
+ """License Related Status Code 600xx"""
1105
+ LICENSE_DOES_NOT_EXIST: StatusCode.ValueType # 60001
1106
+ LICENSE_NEED_UPDATE: StatusCode.ValueType # 60002
1107
+ LICENSE_EXPIRED: StatusCode.ValueType # 60003
1108
+ LICENSE_REVOKED: StatusCode.ValueType # 60004
1109
+ LICENSE_DELETED: StatusCode.ValueType # 60005
1110
+ """hidden state not reflected to users"""
1111
+ LICENSE_VOLUME_EXCEEDED: StatusCode.ValueType # 60006
1112
+ PASSWORD_VALIDATION_SUCCESS: StatusCode.ValueType # 61000
1113
+ """Password Related Status Code"""
1114
+ PASSWORD_VALIDATION_FAILED: StatusCode.ValueType # 61001
1115
+ PASSWORDPOLICY_INVALID_ARGUMENT: StatusCode.ValueType # 61002
1116
+ FEATUREFLAG_CONFIG_NOT_FOUND: StatusCode.ValueType # 62000
1117
+ """Feature flags status code"""
1118
+ FEATUREFLAG_INVALID_ARGUMENT: StatusCode.ValueType # 62001
1119
+ FEATUREFLAG_BLOCKED: StatusCode.ValueType # 62002
1120
+ FEATUREFLAG_NOT_FOUND: StatusCode.ValueType # 62003
1121
+ MAINTENANCE_SUCCESS: StatusCode.ValueType # 63000
1122
+ """Maintenance status code"""
1123
+ MAINTENANCE_FAILED: StatusCode.ValueType # 63001
1124
+ DATASET_VERSION_PENDING: StatusCode.ValueType # 64005
1125
+ """Datasets 64xxx
1126
+ The dataset version is pending to be processed.
1127
+ """
1128
+ DATASET_VERSION_IN_PROGRESS: StatusCode.ValueType # 64010
1129
+ """The dataset version is currently being processed."""
1130
+ DATASET_VERSION_READY: StatusCode.ValueType # 64015
1131
+ """The dataset version is ready to be used."""
1132
+ DATASET_VERSION_FAILURE: StatusCode.ValueType # 64020
1133
+ """An error occurred during the dataset version processing."""
1134
+ DATASET_VERSION_UNEXPECTED_ERROR: StatusCode.ValueType # 64025
1135
+ """An unexpected error occurred during the dataset version processing."""
1136
+ DATASET_VERSION_CONFLICT: StatusCode.ValueType # 64030
1137
+ """An alteration to dataset version would create a conflict"""
1138
+ DATASET_INPUT_SUCCESS: StatusCode.ValueType # 64100
1139
+ """The dataset input was successfully added."""
1140
+ DATASET_INPUT_DUPLICATE: StatusCode.ValueType # 64101
1141
+ """The dataset input is a duplicate.
1142
+ Deprecated: Unused.
1143
+ """
1144
+ DATASET_VERSION_EXPORT_SUCCESS: StatusCode.ValueType # 64200
1145
+ """The dataset version export is completed."""
1146
+ DATASET_VERSION_EXPORT_PENDING: StatusCode.ValueType # 64201
1147
+ """The dataset version is pending to be exported."""
1148
+ DATASET_VERSION_EXPORT_FAILED: StatusCode.ValueType # 64202
1149
+ """An error occurred during the dataset version export."""
1150
+ DATASET_VERSION_EXPORT_IN_PROGRESS: StatusCode.ValueType # 64203
1151
+ """The dataset version is currently being exported."""
1152
+ DATASET_VERSION_EXPORT_UNEXPECTED_ERROR: StatusCode.ValueType # 64204
1153
+ """An unexpected error occurred during the dataset version export."""
1154
+ JOB_QUEUED: StatusCode.ValueType # 64000
1155
+ """Generic Job status codes"""
1156
+ JOB_RUNNING: StatusCode.ValueType # 64001
1157
+ JOB_COMPLETED: StatusCode.ValueType # 64002
1158
+ JOB_FAILED: StatusCode.ValueType # 64003
1159
+ JOB_CANCELLED: StatusCode.ValueType # 64004
1160
+ JOB_UNEXPECTED_ERROR: StatusCode.ValueType # 64006
1161
+ JOB_CONFLICT: StatusCode.ValueType # 64007
1162
+ AUTH_MISSING_IDP_ASSOC: StatusCode.ValueType # 65000
1163
+ """auth issues
1164
+ TODO: Knowledge graph related 80xxx
1165
+ """
1166
+ LIST_OBJECTS_FAILED: StatusCode.ValueType # 66000
1167
+ ARCHIVE_EXTRACT_FAILED: StatusCode.ValueType # 67000
1168
+ UPLOAD_IN_PROGRESS: StatusCode.ValueType # 68000
1169
+ """Multipart uploading status codes"""
1170
+ UPLOAD_DONE: StatusCode.ValueType # 68001
1171
+ UPLOAD_FAILED: StatusCode.ValueType # 68002
1172
+ UPLOAD_UNEXPECTED_ERROR: StatusCode.ValueType # 68003
1173
+ UPLOAD_EXPIRED: StatusCode.ValueType # 68004
1174
+ UPLOAD_CANCELED: StatusCode.ValueType # 68005
1175
+ UPLOAD_CONFLICT: StatusCode.ValueType # 68006
1176
+ BILLING_INVALID_INFO: StatusCode.ValueType # 69000
1177
+ """Billing related issues: 69xxx"""
1178
+ BILLING_MISSING_TOKENS: StatusCode.ValueType # 69001
1179
+ LOG_ENTRIES_INVALID_REQUEST: StatusCode.ValueType # 70000
1180
+ """Logs related issues: 70000;"""
1181
+ INTERNAL_SERVER_ISSUE: StatusCode.ValueType # 98004
1182
+ """Internal issues: 98xxx"""
1183
+ INTERNAL_FETCHING_ISSUE: StatusCode.ValueType # 98005
1184
+ INTERNAL_DATABASE_ISSUE: StatusCode.ValueType # 98006
1185
+ INTERNAL_CONTEXT_CANCELED: StatusCode.ValueType # 98008
1186
+ INTERNAL_UNEXPECTED_TIMEOUT: StatusCode.ValueType # 98009
1187
+ INTERNAL_UNEXPECTED_V1: StatusCode.ValueType # 98010
1188
+ INTERNAL_UNEXPECTED_PANIC: StatusCode.ValueType # 98011
1189
+ INTERNAL_UNEXPECTED_SPIRE: StatusCode.ValueType # 98012
1190
+ INTERNAL_REDIS_UNAVAILABLE: StatusCode.ValueType # 98013
1191
+ INTERNAL_RESOURCE_EXHAUSTED: StatusCode.ValueType # 98014
1192
+ INTERNAL_REDIS_UNCATEGORIZED: StatusCode.ValueType # 98015
1193
+ INTERNAL_AWS_UNCATEGORIZED: StatusCode.ValueType # 98016
1194
+ INTERNAL_AZURE_UNCATEGORIZED: StatusCode.ValueType # 98017
1195
+ INTERNAL_VECTORDB_UNCATEGORIZED: StatusCode.ValueType # 98018
1196
+ INTERNAL_ORACLE_UNCATEGORIZED: StatusCode.ValueType # 98019
1197
+ INTERNAL_VULTR_UNCATEGORIZED: StatusCode.ValueType # 98020
1198
+ INTERNAL_GCP_UNCATEGORIZED: StatusCode.ValueType # 98021
1199
+ CONN_UNCATEGORIZED: StatusCode.ValueType # 99001
1200
+ """Uncategorized: 99xxx: move off as soon as known"""
1201
+ MODEL_UNCATEGORIZED: StatusCode.ValueType # 99002
1202
+ INPUT_UNCATEGORIZED: StatusCode.ValueType # 99003
1203
+ ANNOTATION_UNCATEGORIZED: StatusCode.ValueType # 99004
1204
+ BILLING_UNCATEGORIZED: StatusCode.ValueType # 99005
1205
+ INTERNAL_UNCATEGORIZED: StatusCode.ValueType # 99009
1206
+ BAD_REQUEST: StatusCode.ValueType # 90400
1207
+ """Deprecated: migrate off to one of the internal issues"""
1208
+ SERVER_ERROR: StatusCode.ValueType # 90500
1209
+ """Deprecated: migrate off to one of the internal issues"""
1210
+ global___StatusCode = StatusCode