UncountablePythonSDK 0.0.39__py3-none-any.whl → 0.0.40__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.

Potentially problematic release.


This version of UncountablePythonSDK might be problematic. Click here for more details.

Files changed (127) hide show
  1. {UncountablePythonSDK-0.0.39.dist-info → UncountablePythonSDK-0.0.40.dist-info}/METADATA +1 -1
  2. UncountablePythonSDK-0.0.40.dist-info/RECORD +222 -0
  3. {UncountablePythonSDK-0.0.39.dist-info → UncountablePythonSDK-0.0.40.dist-info}/WHEEL +1 -1
  4. pkgs/type_spec/emit_python.py +40 -7
  5. pkgs/type_spec/type_info/emit_type_info.py +1 -1
  6. uncountable/types/__init__.py +29 -29
  7. uncountable/types/api/batch/execute_batch.py +1 -1
  8. uncountable/types/api/batch/execute_batch_load_async.py +2 -2
  9. uncountable/types/api/chemical/convert_chemical_formats.py +1 -1
  10. uncountable/types/api/entity/create_entities.py +3 -3
  11. uncountable/types/api/entity/create_entity.py +3 -3
  12. uncountable/types/api/entity/get_entities_data.py +3 -3
  13. uncountable/types/api/entity/list_entities.py +2 -2
  14. uncountable/types/api/entity/lock_entity.py +3 -3
  15. uncountable/types/api/entity/resolve_entity_ids.py +2 -2
  16. uncountable/types/api/entity/set_values.py +3 -3
  17. uncountable/types/api/entity/transition_entity_phase.py +3 -3
  18. uncountable/types/api/entity/unlock_entity.py +3 -3
  19. uncountable/types/api/equipment/associate_equipment_input.py +3 -3
  20. uncountable/types/api/field_options/upsert_field_options.py +1 -1
  21. uncountable/types/api/id_source/list_id_source.py +2 -2
  22. uncountable/types/api/id_source/match_id_source.py +2 -2
  23. uncountable/types/api/input_groups/get_input_group_names.py +1 -1
  24. uncountable/types/api/inputs/create_inputs.py +3 -3
  25. uncountable/types/api/inputs/get_input_data.py +2 -2
  26. uncountable/types/api/inputs/get_input_names.py +1 -1
  27. uncountable/types/api/inputs/get_inputs_data.py +2 -2
  28. uncountable/types/api/inputs/set_input_attribute_values.py +2 -2
  29. uncountable/types/api/inputs/set_input_category.py +2 -2
  30. uncountable/types/api/inputs/set_input_subcategories.py +3 -3
  31. uncountable/types/api/inputs/set_intermediate_type.py +1 -1
  32. uncountable/types/api/material_families/update_entity_material_families.py +5 -5
  33. uncountable/types/api/outputs/get_output_data.py +2 -2
  34. uncountable/types/api/outputs/get_output_names.py +1 -1
  35. uncountable/types/api/outputs/resolve_output_conditions.py +1 -1
  36. uncountable/types/api/permissions/set_core_permissions.py +3 -3
  37. uncountable/types/api/project/get_projects.py +2 -2
  38. uncountable/types/api/project/get_projects_data.py +4 -4
  39. uncountable/types/api/recipe_links/create_recipe_link.py +3 -3
  40. uncountable/types/api/recipe_links/remove_recipe_link.py +3 -3
  41. uncountable/types/api/recipe_metadata/get_recipe_metadata_data.py +1 -1
  42. uncountable/types/api/recipes/add_recipe_to_project.py +1 -1
  43. uncountable/types/api/recipes/archive_recipes.py +1 -1
  44. uncountable/types/api/recipes/associate_recipe_as_input.py +2 -2
  45. uncountable/types/api/recipes/associate_recipe_as_lot.py +2 -2
  46. uncountable/types/api/recipes/create_recipe.py +4 -4
  47. uncountable/types/api/recipes/create_recipes.py +2 -2
  48. uncountable/types/api/recipes/disassociate_recipe_as_input.py +2 -2
  49. uncountable/types/api/recipes/edit_recipe_inputs.py +3 -3
  50. uncountable/types/api/recipes/get_curve.py +2 -2
  51. uncountable/types/api/recipes/get_recipe_calculations.py +2 -2
  52. uncountable/types/api/recipes/get_recipe_links.py +2 -2
  53. uncountable/types/api/recipes/get_recipe_names.py +1 -1
  54. uncountable/types/api/recipes/get_recipe_output_metadata.py +2 -2
  55. uncountable/types/api/recipes/get_recipes_data.py +7 -7
  56. uncountable/types/api/recipes/lock_recipes.py +1 -1
  57. uncountable/types/api/recipes/remove_recipe_from_project.py +1 -1
  58. uncountable/types/api/recipes/set_recipe_inputs.py +1 -1
  59. uncountable/types/api/recipes/set_recipe_metadata.py +2 -2
  60. uncountable/types/api/recipes/set_recipe_output_annotations.py +2 -2
  61. uncountable/types/api/recipes/set_recipe_outputs.py +3 -3
  62. uncountable/types/api/recipes/set_recipe_tags.py +2 -2
  63. uncountable/types/api/recipes/unarchive_recipes.py +1 -1
  64. uncountable/types/api/recipes/unlock_recipes.py +1 -1
  65. uncountable/types/api/triggers/run_trigger.py +2 -2
  66. uncountable/types/async_batch.py +5 -53
  67. uncountable/types/async_batch_processor.py +6 -6
  68. uncountable/types/async_batch_t.py +59 -0
  69. uncountable/types/base.py +4 -78
  70. uncountable/types/base_t.py +85 -0
  71. uncountable/types/calculations.py +2 -17
  72. uncountable/types/calculations_t.py +23 -0
  73. uncountable/types/chemical_structure.py +2 -21
  74. uncountable/types/chemical_structure_t.py +27 -0
  75. uncountable/types/client_base.py +12 -12
  76. uncountable/types/curves.py +4 -41
  77. uncountable/types/curves_t.py +47 -0
  78. uncountable/types/entity.py +3 -268
  79. uncountable/types/entity_t.py +274 -0
  80. uncountable/types/experiment_groups.py +2 -17
  81. uncountable/types/experiment_groups_t.py +23 -0
  82. uncountable/types/field_values.py +5 -59
  83. uncountable/types/field_values_t.py +65 -0
  84. uncountable/types/fields.py +2 -18
  85. uncountable/types/fields_t.py +24 -0
  86. uncountable/types/id_source.py +6 -43
  87. uncountable/types/id_source_t.py +49 -0
  88. uncountable/types/identifier.py +5 -48
  89. uncountable/types/identifier_t.py +54 -0
  90. uncountable/types/input_attributes.py +2 -23
  91. uncountable/types/input_attributes_t.py +29 -0
  92. uncountable/types/inputs.py +4 -56
  93. uncountable/types/inputs_t.py +62 -0
  94. uncountable/types/outputs.py +2 -20
  95. uncountable/types/outputs_t.py +26 -0
  96. uncountable/types/permissions.py +2 -40
  97. uncountable/types/permissions_t.py +46 -0
  98. uncountable/types/phases.py +2 -17
  99. uncountable/types/phases_t.py +23 -0
  100. uncountable/types/post_base.py +2 -24
  101. uncountable/types/post_base_t.py +30 -0
  102. uncountable/types/recipe_identifiers.py +6 -56
  103. uncountable/types/recipe_identifiers_t.py +62 -0
  104. uncountable/types/recipe_inputs.py +3 -24
  105. uncountable/types/recipe_inputs_t.py +30 -0
  106. uncountable/types/recipe_links.py +3 -44
  107. uncountable/types/recipe_links_t.py +50 -0
  108. uncountable/types/recipe_metadata.py +4 -46
  109. uncountable/types/recipe_metadata_t.py +52 -0
  110. uncountable/types/recipe_output_metadata.py +2 -18
  111. uncountable/types/recipe_output_metadata_t.py +24 -0
  112. uncountable/types/recipe_tags.py +2 -17
  113. uncountable/types/recipe_tags_t.py +23 -0
  114. uncountable/types/recipe_workflow_steps.py +8 -82
  115. uncountable/types/recipe_workflow_steps_t.py +88 -0
  116. uncountable/types/recipes.py +2 -15
  117. uncountable/types/recipes_t.py +21 -0
  118. uncountable/types/response.py +2 -19
  119. uncountable/types/response_t.py +25 -0
  120. uncountable/types/units.py +2 -17
  121. uncountable/types/units_t.py +23 -0
  122. uncountable/types/users.py +2 -18
  123. uncountable/types/users_t.py +24 -0
  124. uncountable/types/workflows.py +3 -26
  125. uncountable/types/workflows_t.py +32 -0
  126. UncountablePythonSDK-0.0.39.dist-info/RECORD +0 -193
  127. {UncountablePythonSDK-0.0.39.dist-info → UncountablePythonSDK-0.0.40.dist-info}/top_level.txt +0 -0
@@ -0,0 +1,65 @@
1
+ # DO NOT MODIFY -- This file is generated by type_spec
2
+ # flake8: noqa: F821
3
+ # ruff: noqa: E402 Q003
4
+ # fmt: off
5
+ # isort: skip_file
6
+ from __future__ import annotations
7
+ import typing # noqa: F401
8
+ import datetime # noqa: F401
9
+ from decimal import Decimal # noqa: F401
10
+ from dataclasses import dataclass
11
+ from pkgs.serialization import serial_class
12
+ from . import base_t
13
+
14
+ __all__: list[str] = [
15
+ "ArgumentValueId",
16
+ "ArgumentValueRefName",
17
+ "FieldRefIdNameValue",
18
+ "FieldRefNameValue",
19
+ ]
20
+
21
+
22
+ # DO NOT MODIFY -- This file is generated by type_spec
23
+ @serial_class(
24
+ unconverted_values={"value"},
25
+ )
26
+ @dataclass(kw_only=True)
27
+ class FieldRefNameValue:
28
+ field_ref_name: str
29
+ value: base_t.JsonValue
30
+ row_index: typing.Optional[typing.Optional[int]] = None
31
+
32
+
33
+ # DO NOT MODIFY -- This file is generated by type_spec
34
+ @serial_class(
35
+ unconverted_values={"value"},
36
+ )
37
+ @dataclass(kw_only=True)
38
+ class FieldRefIdNameValue:
39
+ field_id: base_t.ObjectId
40
+ field_ref_name: str
41
+ value: base_t.JsonValue
42
+ row_index: typing.Optional[typing.Optional[int]] = None
43
+
44
+
45
+ # DO NOT MODIFY -- This file is generated by type_spec
46
+ @serial_class(
47
+ unconverted_values={"value"},
48
+ )
49
+ @dataclass(kw_only=True)
50
+ class ArgumentValueRefName:
51
+ field_ref_name: str
52
+ value: base_t.JsonValue
53
+ row_index: typing.Optional[typing.Optional[int]] = None
54
+
55
+
56
+ # DO NOT MODIFY -- This file is generated by type_spec
57
+ @serial_class(
58
+ unconverted_values={"value"},
59
+ )
60
+ @dataclass(kw_only=True)
61
+ class ArgumentValueId:
62
+ field_id: base_t.ObjectId
63
+ value: base_t.JsonValue
64
+ row_index: typing.Optional[typing.Optional[int]] = None
65
+ # DO NOT MODIFY -- This file is generated by type_spec
@@ -1,24 +1,8 @@
1
- # DO NOT MODIFY -- This file is generated by type_spec
2
1
  # flake8: noqa: F821
3
2
  # ruff: noqa: E402 Q003
4
3
  # fmt: off
5
4
  # isort: skip_file
6
- from __future__ import annotations
7
- import typing # noqa: F401
8
- import datetime # noqa: F401
9
- from decimal import Decimal # noqa: F401
10
- from dataclasses import dataclass
11
- from . import base as base_t
12
-
13
- __all__: list[str] = [
14
- "Field",
15
- ]
16
-
17
-
18
5
  # DO NOT MODIFY -- This file is generated by type_spec
19
- @dataclass(kw_only=True)
20
- class Field:
21
- id: base_t.ObjectId
22
- name: str
23
- value_type: str
6
+ # Kept only for SDK backwards compatibility
7
+ from .fields_t import Field as Field
24
8
  # DO NOT MODIFY -- This file is generated by type_spec
@@ -0,0 +1,24 @@
1
+ # DO NOT MODIFY -- This file is generated by type_spec
2
+ # flake8: noqa: F821
3
+ # ruff: noqa: E402 Q003
4
+ # fmt: off
5
+ # isort: skip_file
6
+ from __future__ import annotations
7
+ import typing # noqa: F401
8
+ import datetime # noqa: F401
9
+ from decimal import Decimal # noqa: F401
10
+ from dataclasses import dataclass
11
+ from . import base_t
12
+
13
+ __all__: list[str] = [
14
+ "Field",
15
+ ]
16
+
17
+
18
+ # DO NOT MODIFY -- This file is generated by type_spec
19
+ @dataclass(kw_only=True)
20
+ class Field:
21
+ id: base_t.ObjectId
22
+ name: str
23
+ value_type: str
24
+ # DO NOT MODIFY -- This file is generated by type_spec
@@ -1,49 +1,12 @@
1
- # DO NOT MODIFY -- This file is generated by type_spec
2
1
  # flake8: noqa: F821
3
2
  # ruff: noqa: E402 Q003
4
3
  # fmt: off
5
4
  # isort: skip_file
6
- from __future__ import annotations
7
- import typing # noqa: F401
8
- import datetime # noqa: F401
9
- from decimal import Decimal # noqa: F401
10
- from dataclasses import dataclass
11
- from . import entity as entity_t
12
-
13
- __all__: list[str] = [
14
- "IdSourceSpec",
15
- "IdSourceSpecBase",
16
- "IdSourceSpecCustomEntity",
17
- "IdSourceSpecEntity",
18
- "IdSourceSpecFieldOptions",
19
- ]
20
-
21
-
22
- # DO NOT MODIFY -- This file is generated by type_spec
23
- @dataclass(kw_only=True)
24
- class IdSourceSpecBase:
25
- pass
26
-
27
-
28
- # DO NOT MODIFY -- This file is generated by type_spec
29
- @dataclass(kw_only=True)
30
- class IdSourceSpecEntity(IdSourceSpecBase):
31
- entity_type: entity_t.EntityType
32
-
33
-
34
- # DO NOT MODIFY -- This file is generated by type_spec
35
- @dataclass(kw_only=True)
36
- class IdSourceSpecCustomEntity(IdSourceSpecBase):
37
- definition_ref_name: str
38
-
39
-
40
- # DO NOT MODIFY -- This file is generated by type_spec
41
- @dataclass(kw_only=True)
42
- class IdSourceSpecFieldOptions(IdSourceSpecBase):
43
- set_ref_name: str
44
- subset_ref_name: typing.Optional[str] = None
45
-
46
-
47
5
  # DO NOT MODIFY -- This file is generated by type_spec
48
- IdSourceSpec = typing.Union[IdSourceSpecEntity, IdSourceSpecCustomEntity, IdSourceSpecFieldOptions]
6
+ # Kept only for SDK backwards compatibility
7
+ from .id_source_t import IdSourceSpecBase as IdSourceSpecBase
8
+ from .id_source_t import IdSourceSpecEntity as IdSourceSpecEntity
9
+ from .id_source_t import IdSourceSpecCustomEntity as IdSourceSpecCustomEntity
10
+ from .id_source_t import IdSourceSpecFieldOptions as IdSourceSpecFieldOptions
11
+ from .id_source_t import IdSourceSpec as IdSourceSpec
49
12
  # DO NOT MODIFY -- This file is generated by type_spec
@@ -0,0 +1,49 @@
1
+ # DO NOT MODIFY -- This file is generated by type_spec
2
+ # flake8: noqa: F821
3
+ # ruff: noqa: E402 Q003
4
+ # fmt: off
5
+ # isort: skip_file
6
+ from __future__ import annotations
7
+ import typing # noqa: F401
8
+ import datetime # noqa: F401
9
+ from decimal import Decimal # noqa: F401
10
+ from dataclasses import dataclass
11
+ from . import entity_t
12
+
13
+ __all__: list[str] = [
14
+ "IdSourceSpec",
15
+ "IdSourceSpecBase",
16
+ "IdSourceSpecCustomEntity",
17
+ "IdSourceSpecEntity",
18
+ "IdSourceSpecFieldOptions",
19
+ ]
20
+
21
+
22
+ # DO NOT MODIFY -- This file is generated by type_spec
23
+ @dataclass(kw_only=True)
24
+ class IdSourceSpecBase:
25
+ pass
26
+
27
+
28
+ # DO NOT MODIFY -- This file is generated by type_spec
29
+ @dataclass(kw_only=True)
30
+ class IdSourceSpecEntity(IdSourceSpecBase):
31
+ entity_type: entity_t.EntityType
32
+
33
+
34
+ # DO NOT MODIFY -- This file is generated by type_spec
35
+ @dataclass(kw_only=True)
36
+ class IdSourceSpecCustomEntity(IdSourceSpecBase):
37
+ definition_ref_name: str
38
+
39
+
40
+ # DO NOT MODIFY -- This file is generated by type_spec
41
+ @dataclass(kw_only=True)
42
+ class IdSourceSpecFieldOptions(IdSourceSpecBase):
43
+ set_ref_name: str
44
+ subset_ref_name: typing.Optional[str] = None
45
+
46
+
47
+ # DO NOT MODIFY -- This file is generated by type_spec
48
+ IdSourceSpec = typing.Union[IdSourceSpecEntity, IdSourceSpecCustomEntity, IdSourceSpecFieldOptions]
49
+ # DO NOT MODIFY -- This file is generated by type_spec
@@ -1,54 +1,11 @@
1
- # DO NOT MODIFY -- This file is generated by type_spec
2
1
  # flake8: noqa: F821
3
2
  # ruff: noqa: E402 Q003
4
3
  # fmt: off
5
4
  # isort: skip_file
6
- from __future__ import annotations
7
- import typing # noqa: F401
8
- import datetime # noqa: F401
9
- from decimal import Decimal # noqa: F401
10
- from dataclasses import dataclass
11
- from pkgs.serialization import serial_class
12
- from . import base as base_t
13
-
14
- __all__: list[str] = [
15
- "IdentifierKey",
16
- "IdentifierKeyBatchReference",
17
- "IdentifierKeyId",
18
- "IdentifierKeyRefName",
19
- ]
20
-
21
-
22
- # DO NOT MODIFY -- This file is generated by type_spec
23
- @serial_class(
24
- parse_require={"type"},
25
- )
26
- @dataclass(kw_only=True, frozen=True, eq=True)
27
- class IdentifierKeyId:
28
- type: typing.Literal["id"] = "id"
29
- id: base_t.ObjectId
30
-
31
-
32
- # DO NOT MODIFY -- This file is generated by type_spec
33
- @serial_class(
34
- parse_require={"type"},
35
- )
36
- @dataclass(kw_only=True, frozen=True, eq=True)
37
- class IdentifierKeyRefName:
38
- type: typing.Literal["ref_name"] = "ref_name"
39
- ref_name: str
40
-
41
-
42
- # DO NOT MODIFY -- This file is generated by type_spec
43
- @serial_class(
44
- parse_require={"type"},
45
- )
46
- @dataclass(kw_only=True, frozen=True, eq=True)
47
- class IdentifierKeyBatchReference:
48
- type: typing.Literal["batch_reference"] = "batch_reference"
49
- reference: str
50
-
51
-
52
5
  # DO NOT MODIFY -- This file is generated by type_spec
53
- IdentifierKey = typing.Union[IdentifierKeyId, IdentifierKeyBatchReference, IdentifierKeyRefName]
6
+ # Kept only for SDK backwards compatibility
7
+ from .identifier_t import IdentifierKeyId as IdentifierKeyId
8
+ from .identifier_t import IdentifierKeyRefName as IdentifierKeyRefName
9
+ from .identifier_t import IdentifierKeyBatchReference as IdentifierKeyBatchReference
10
+ from .identifier_t import IdentifierKey as IdentifierKey
54
11
  # DO NOT MODIFY -- This file is generated by type_spec
@@ -0,0 +1,54 @@
1
+ # DO NOT MODIFY -- This file is generated by type_spec
2
+ # flake8: noqa: F821
3
+ # ruff: noqa: E402 Q003
4
+ # fmt: off
5
+ # isort: skip_file
6
+ from __future__ import annotations
7
+ import typing # noqa: F401
8
+ import datetime # noqa: F401
9
+ from decimal import Decimal # noqa: F401
10
+ from dataclasses import dataclass
11
+ from pkgs.serialization import serial_class
12
+ from . import base_t
13
+
14
+ __all__: list[str] = [
15
+ "IdentifierKey",
16
+ "IdentifierKeyBatchReference",
17
+ "IdentifierKeyId",
18
+ "IdentifierKeyRefName",
19
+ ]
20
+
21
+
22
+ # DO NOT MODIFY -- This file is generated by type_spec
23
+ @serial_class(
24
+ parse_require={"type"},
25
+ )
26
+ @dataclass(kw_only=True, frozen=True, eq=True)
27
+ class IdentifierKeyId:
28
+ type: typing.Literal["id"] = "id"
29
+ id: base_t.ObjectId
30
+
31
+
32
+ # DO NOT MODIFY -- This file is generated by type_spec
33
+ @serial_class(
34
+ parse_require={"type"},
35
+ )
36
+ @dataclass(kw_only=True, frozen=True, eq=True)
37
+ class IdentifierKeyRefName:
38
+ type: typing.Literal["ref_name"] = "ref_name"
39
+ ref_name: str
40
+
41
+
42
+ # DO NOT MODIFY -- This file is generated by type_spec
43
+ @serial_class(
44
+ parse_require={"type"},
45
+ )
46
+ @dataclass(kw_only=True, frozen=True, eq=True)
47
+ class IdentifierKeyBatchReference:
48
+ type: typing.Literal["batch_reference"] = "batch_reference"
49
+ reference: str
50
+
51
+
52
+ # DO NOT MODIFY -- This file is generated by type_spec
53
+ IdentifierKey = typing.Union[IdentifierKeyId, IdentifierKeyBatchReference, IdentifierKeyRefName]
54
+ # DO NOT MODIFY -- This file is generated by type_spec
@@ -1,29 +1,8 @@
1
- # DO NOT MODIFY -- This file is generated by type_spec
2
1
  # flake8: noqa: F821
3
2
  # ruff: noqa: E402 Q003
4
3
  # fmt: off
5
4
  # isort: skip_file
6
- from __future__ import annotations
7
- import typing # noqa: F401
8
- import datetime # noqa: F401
9
- from decimal import Decimal # noqa: F401
10
- from dataclasses import dataclass
11
- from pkgs.serialization import serial_class
12
- from . import base as base_t
13
-
14
- __all__: list[str] = [
15
- "InputAttributeValue",
16
- ]
17
-
18
-
19
5
  # DO NOT MODIFY -- This file is generated by type_spec
20
- @serial_class(
21
- unconverted_values={"quantity_json"},
22
- to_string_values={"quantity_dec"},
23
- )
24
- @dataclass(kw_only=True)
25
- class InputAttributeValue:
26
- attribute_id: base_t.ObjectId
27
- quantity_dec: typing.Optional[Decimal] = None
28
- quantity_json: typing.Optional[base_t.JsonValue] = None
6
+ # Kept only for SDK backwards compatibility
7
+ from .input_attributes_t import InputAttributeValue as InputAttributeValue
29
8
  # DO NOT MODIFY -- This file is generated by type_spec
@@ -0,0 +1,29 @@
1
+ # DO NOT MODIFY -- This file is generated by type_spec
2
+ # flake8: noqa: F821
3
+ # ruff: noqa: E402 Q003
4
+ # fmt: off
5
+ # isort: skip_file
6
+ from __future__ import annotations
7
+ import typing # noqa: F401
8
+ import datetime # noqa: F401
9
+ from decimal import Decimal # noqa: F401
10
+ from dataclasses import dataclass
11
+ from pkgs.serialization import serial_class
12
+ from . import base_t
13
+
14
+ __all__: list[str] = [
15
+ "InputAttributeValue",
16
+ ]
17
+
18
+
19
+ # DO NOT MODIFY -- This file is generated by type_spec
20
+ @serial_class(
21
+ unconverted_values={"quantity_json"},
22
+ to_string_values={"quantity_dec"},
23
+ )
24
+ @dataclass(kw_only=True)
25
+ class InputAttributeValue:
26
+ attribute_id: base_t.ObjectId
27
+ quantity_dec: typing.Optional[Decimal] = None
28
+ quantity_json: typing.Optional[base_t.JsonValue] = None
29
+ # DO NOT MODIFY -- This file is generated by type_spec
@@ -1,62 +1,10 @@
1
- # DO NOT MODIFY -- This file is generated by type_spec
2
1
  # flake8: noqa: F821
3
2
  # ruff: noqa: E402 Q003
4
3
  # fmt: off
5
4
  # isort: skip_file
6
- from __future__ import annotations
7
- import typing # noqa: F401
8
- import datetime # noqa: F401
9
- from decimal import Decimal # noqa: F401
10
- from pkgs.strenum_compat import StrEnum
11
- from dataclasses import dataclass
12
- from pkgs.serialization import serial_string_enum
13
- from . import base as base_t
14
-
15
- __all__: list[str] = [
16
- "IngredientQuantityType",
17
- "IngredientType",
18
- "SimpleInput",
19
- ]
20
-
21
-
22
- # DO NOT MODIFY -- This file is generated by type_spec
23
- @serial_string_enum(
24
- labels={
25
- "numeric": "Numeric",
26
- "recipe": "Experiment Component",
27
- "date": "Date",
28
- "categorical": "Categorical",
29
- "timestamp": "Timestamp",
30
- "text": "Text",
31
- "curve": "Curve",
32
- "files": "Attachments",
33
- },
34
- )
35
- class IngredientQuantityType(StrEnum):
36
- NUMERIC = "numeric"
37
- RECIPE = "recipe"
38
- DATE = "date"
39
- CATEGORICAL = "categorical"
40
- TIMESTAMP = "timestamp"
41
- TEXT = "text"
42
- CURVE = "curve"
43
- FILES = "files"
44
-
45
-
46
- # DO NOT MODIFY -- This file is generated by type_spec
47
- class IngredientType(StrEnum):
48
- INGREDIENT = "ingredient"
49
- PROCESS_PARAMETER = "process_parameter"
50
- EQUIPMENT = "equipment"
51
-
52
-
53
5
  # DO NOT MODIFY -- This file is generated by type_spec
54
- @dataclass(kw_only=True)
55
- class SimpleInput:
56
- input_id: base_t.ObjectId
57
- quantity_type: IngredientQuantityType
58
- name: str
59
- is_parameter: bool
60
- intermediate_recipe_id: typing.Optional[base_t.ObjectId]
61
- input_type: str
6
+ # Kept only for SDK backwards compatibility
7
+ from .inputs_t import IngredientQuantityType as IngredientQuantityType
8
+ from .inputs_t import IngredientType as IngredientType
9
+ from .inputs_t import SimpleInput as SimpleInput
62
10
  # DO NOT MODIFY -- This file is generated by type_spec
@@ -0,0 +1,62 @@
1
+ # DO NOT MODIFY -- This file is generated by type_spec
2
+ # flake8: noqa: F821
3
+ # ruff: noqa: E402 Q003
4
+ # fmt: off
5
+ # isort: skip_file
6
+ from __future__ import annotations
7
+ import typing # noqa: F401
8
+ import datetime # noqa: F401
9
+ from decimal import Decimal # noqa: F401
10
+ from pkgs.strenum_compat import StrEnum
11
+ from dataclasses import dataclass
12
+ from pkgs.serialization import serial_string_enum
13
+ from . import base_t
14
+
15
+ __all__: list[str] = [
16
+ "IngredientQuantityType",
17
+ "IngredientType",
18
+ "SimpleInput",
19
+ ]
20
+
21
+
22
+ # DO NOT MODIFY -- This file is generated by type_spec
23
+ @serial_string_enum(
24
+ labels={
25
+ "numeric": "Numeric",
26
+ "recipe": "Experiment Component",
27
+ "date": "Date",
28
+ "categorical": "Categorical",
29
+ "timestamp": "Timestamp",
30
+ "text": "Text",
31
+ "curve": "Curve",
32
+ "files": "Attachments",
33
+ },
34
+ )
35
+ class IngredientQuantityType(StrEnum):
36
+ NUMERIC = "numeric"
37
+ RECIPE = "recipe"
38
+ DATE = "date"
39
+ CATEGORICAL = "categorical"
40
+ TIMESTAMP = "timestamp"
41
+ TEXT = "text"
42
+ CURVE = "curve"
43
+ FILES = "files"
44
+
45
+
46
+ # DO NOT MODIFY -- This file is generated by type_spec
47
+ class IngredientType(StrEnum):
48
+ INGREDIENT = "ingredient"
49
+ PROCESS_PARAMETER = "process_parameter"
50
+ EQUIPMENT = "equipment"
51
+
52
+
53
+ # DO NOT MODIFY -- This file is generated by type_spec
54
+ @dataclass(kw_only=True)
55
+ class SimpleInput:
56
+ input_id: base_t.ObjectId
57
+ quantity_type: IngredientQuantityType
58
+ name: str
59
+ is_parameter: bool
60
+ intermediate_recipe_id: typing.Optional[base_t.ObjectId]
61
+ input_type: str
62
+ # DO NOT MODIFY -- This file is generated by type_spec
@@ -1,26 +1,8 @@
1
- # DO NOT MODIFY -- This file is generated by type_spec
2
1
  # flake8: noqa: F821
3
2
  # ruff: noqa: E402 Q003
4
3
  # fmt: off
5
4
  # isort: skip_file
6
- from __future__ import annotations
7
- import typing # noqa: F401
8
- import datetime # noqa: F401
9
- from decimal import Decimal # noqa: F401
10
- from dataclasses import dataclass
11
- from . import base as base_t
12
- from . import units as units_t
13
-
14
- __all__: list[str] = [
15
- "SimpleOutput",
16
- ]
17
-
18
-
19
5
  # DO NOT MODIFY -- This file is generated by type_spec
20
- @dataclass(kw_only=True)
21
- class SimpleOutput:
22
- output_id: base_t.ObjectId
23
- name: str
24
- unit: typing.Optional[units_t.SimpleUnit]
25
- quantity_type: str
6
+ # Kept only for SDK backwards compatibility
7
+ from .outputs_t import SimpleOutput as SimpleOutput
26
8
  # DO NOT MODIFY -- This file is generated by type_spec
@@ -0,0 +1,26 @@
1
+ # DO NOT MODIFY -- This file is generated by type_spec
2
+ # flake8: noqa: F821
3
+ # ruff: noqa: E402 Q003
4
+ # fmt: off
5
+ # isort: skip_file
6
+ from __future__ import annotations
7
+ import typing # noqa: F401
8
+ import datetime # noqa: F401
9
+ from decimal import Decimal # noqa: F401
10
+ from dataclasses import dataclass
11
+ from . import base_t
12
+ from . import units_t
13
+
14
+ __all__: list[str] = [
15
+ "SimpleOutput",
16
+ ]
17
+
18
+
19
+ # DO NOT MODIFY -- This file is generated by type_spec
20
+ @dataclass(kw_only=True)
21
+ class SimpleOutput:
22
+ output_id: base_t.ObjectId
23
+ name: str
24
+ unit: typing.Optional[units_t.SimpleUnit]
25
+ quantity_type: str
26
+ # DO NOT MODIFY -- This file is generated by type_spec
@@ -1,46 +1,8 @@
1
- # DO NOT MODIFY -- This file is generated by type_spec
2
1
  # flake8: noqa: F821
3
2
  # ruff: noqa: E402 Q003
4
3
  # fmt: off
5
4
  # isort: skip_file
6
- from __future__ import annotations
7
- import typing # noqa: F401
8
- import datetime # noqa: F401
9
- from decimal import Decimal # noqa: F401
10
- from pkgs.strenum_compat import StrEnum
11
- from pkgs.serialization import serial_string_enum
12
-
13
- __all__: list[str] = [
14
- "CorePermissionType",
15
- ]
16
-
17
-
18
5
  # DO NOT MODIFY -- This file is generated by type_spec
19
- @serial_string_enum(
20
- labels={
21
- "admin_rights": "Admin Rights",
22
- "read_ingredients": "View Ingredients",
23
- "read_recipe_all": "View Entire Recipe",
24
- "read_recipe_outputs": "View Recipe Outputs",
25
- "view_material_family": "View Material Family",
26
- "write_ingredients": "Modify Ingredients",
27
- "write_outputs": "Modify Outputs",
28
- "write_recipe_all": "Modify Entire Recipe",
29
- "write_recipe_ingredients": "Modify Recipe Inputs",
30
- "write_recipe_outputs": "Modify Recipe Outputs",
31
- "add_recipe": "Create Experiments",
32
- },
33
- )
34
- class CorePermissionType(StrEnum):
35
- ADMIN_RIGHTS = "admin_rights"
36
- READ_INGREDIENTS = "read_ingredients"
37
- READ_RECIPE_ALL = "read_recipe_all"
38
- READ_RECIPE_OUTPUTS = "read_recipe_outputs"
39
- VIEW_MATERIAL_FAMILY = "view_material_family"
40
- WRITE_INGREDIENTS = "write_ingredients"
41
- WRITE_OUTPUTS = "write_outputs"
42
- WRITE_RECIPE_ALL = "write_recipe_all"
43
- WRITE_RECIPE_INGREDIENTS = "write_recipe_ingredients"
44
- WRITE_RECIPE_OUTPUTS = "write_recipe_outputs"
45
- ADD_RECIPE = "add_recipe"
6
+ # Kept only for SDK backwards compatibility
7
+ from .permissions_t import CorePermissionType as CorePermissionType
46
8
  # DO NOT MODIFY -- This file is generated by type_spec
@@ -0,0 +1,46 @@
1
+ # DO NOT MODIFY -- This file is generated by type_spec
2
+ # flake8: noqa: F821
3
+ # ruff: noqa: E402 Q003
4
+ # fmt: off
5
+ # isort: skip_file
6
+ from __future__ import annotations
7
+ import typing # noqa: F401
8
+ import datetime # noqa: F401
9
+ from decimal import Decimal # noqa: F401
10
+ from pkgs.strenum_compat import StrEnum
11
+ from pkgs.serialization import serial_string_enum
12
+
13
+ __all__: list[str] = [
14
+ "CorePermissionType",
15
+ ]
16
+
17
+
18
+ # DO NOT MODIFY -- This file is generated by type_spec
19
+ @serial_string_enum(
20
+ labels={
21
+ "admin_rights": "Admin Rights",
22
+ "read_ingredients": "View Ingredients",
23
+ "read_recipe_all": "View Entire Recipe",
24
+ "read_recipe_outputs": "View Recipe Outputs",
25
+ "view_material_family": "View Material Family",
26
+ "write_ingredients": "Modify Ingredients",
27
+ "write_outputs": "Modify Outputs",
28
+ "write_recipe_all": "Modify Entire Recipe",
29
+ "write_recipe_ingredients": "Modify Recipe Inputs",
30
+ "write_recipe_outputs": "Modify Recipe Outputs",
31
+ "add_recipe": "Create Experiments",
32
+ },
33
+ )
34
+ class CorePermissionType(StrEnum):
35
+ ADMIN_RIGHTS = "admin_rights"
36
+ READ_INGREDIENTS = "read_ingredients"
37
+ READ_RECIPE_ALL = "read_recipe_all"
38
+ READ_RECIPE_OUTPUTS = "read_recipe_outputs"
39
+ VIEW_MATERIAL_FAMILY = "view_material_family"
40
+ WRITE_INGREDIENTS = "write_ingredients"
41
+ WRITE_OUTPUTS = "write_outputs"
42
+ WRITE_RECIPE_ALL = "write_recipe_all"
43
+ WRITE_RECIPE_INGREDIENTS = "write_recipe_ingredients"
44
+ WRITE_RECIPE_OUTPUTS = "write_recipe_outputs"
45
+ ADD_RECIPE = "add_recipe"
46
+ # DO NOT MODIFY -- This file is generated by type_spec