UncountablePythonSDK 0.0.72__py3-none-any.whl → 0.0.74__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 (117) hide show
  1. {UncountablePythonSDK-0.0.72.dist-info → UncountablePythonSDK-0.0.74.dist-info}/METADATA +1 -1
  2. {UncountablePythonSDK-0.0.72.dist-info → UncountablePythonSDK-0.0.74.dist-info}/RECORD +117 -117
  3. {UncountablePythonSDK-0.0.72.dist-info → UncountablePythonSDK-0.0.74.dist-info}/WHEEL +1 -1
  4. examples/integration-server/jobs/materials_auto/profile.yaml +1 -1
  5. pkgs/argument_parser/__init__.py +1 -0
  6. pkgs/argument_parser/argument_parser.py +13 -1
  7. pkgs/serialization/serial_class.py +18 -0
  8. pkgs/serialization/serial_union.py +3 -0
  9. pkgs/type_spec/builder.py +70 -22
  10. pkgs/type_spec/config.py +5 -0
  11. pkgs/type_spec/emit_python.py +35 -22
  12. pkgs/type_spec/emit_typescript.py +31 -22
  13. pkgs/type_spec/emit_typescript_util.py +0 -2
  14. pkgs/type_spec/load_types.py +3 -2
  15. pkgs/type_spec/type_info/emit_type_info.py +7 -7
  16. pkgs/type_spec/util.py +1 -1
  17. uncountable/core/client.py +2 -2
  18. uncountable/integration/entrypoint.py +1 -9
  19. uncountable/integration/queue_runner/worker.py +9 -5
  20. uncountable/integration/server.py +63 -66
  21. uncountable/types/api/batch/execute_batch.py +8 -0
  22. uncountable/types/api/batch/execute_batch_load_async.py +7 -0
  23. uncountable/types/api/chemical/convert_chemical_formats.py +7 -0
  24. uncountable/types/api/entity/create_entities.py +11 -1
  25. uncountable/types/api/entity/create_entity.py +8 -1
  26. uncountable/types/api/entity/get_entities_data.py +10 -0
  27. uncountable/types/api/entity/list_entities.py +8 -0
  28. uncountable/types/api/entity/lock_entity.py +7 -0
  29. uncountable/types/api/entity/resolve_entity_ids.py +10 -0
  30. uncountable/types/api/entity/set_values.py +7 -0
  31. uncountable/types/api/entity/transition_entity_phase.py +8 -0
  32. uncountable/types/api/entity/unlock_entity.py +7 -0
  33. uncountable/types/api/equipment/associate_equipment_input.py +7 -0
  34. uncountable/types/api/field_options/upsert_field_options.py +10 -0
  35. uncountable/types/api/id_source/list_id_source.py +10 -0
  36. uncountable/types/api/id_source/match_id_source.py +10 -0
  37. uncountable/types/api/input_groups/get_input_group_names.py +10 -0
  38. uncountable/types/api/inputs/create_inputs.py +13 -0
  39. uncountable/types/api/inputs/get_input_data.py +19 -0
  40. uncountable/types/api/inputs/get_input_names.py +10 -0
  41. uncountable/types/api/inputs/get_inputs_data.py +19 -0
  42. uncountable/types/api/inputs/set_input_attribute_values.py +7 -0
  43. uncountable/types/api/inputs/set_input_category.py +7 -0
  44. uncountable/types/api/inputs/set_input_subcategories.py +7 -0
  45. uncountable/types/api/inputs/set_intermediate_type.py +7 -0
  46. uncountable/types/api/material_families/update_entity_material_families.py +7 -0
  47. uncountable/types/api/outputs/get_output_data.py +16 -0
  48. uncountable/types/api/outputs/get_output_names.py +10 -0
  49. uncountable/types/api/outputs/resolve_output_conditions.py +13 -0
  50. uncountable/types/api/permissions/set_core_permissions.py +10 -0
  51. uncountable/types/api/project/get_projects.py +10 -0
  52. uncountable/types/api/project/get_projects_data.py +10 -0
  53. uncountable/types/api/recipe_links/create_recipe_link.py +7 -0
  54. uncountable/types/api/recipe_links/remove_recipe_link.py +7 -0
  55. uncountable/types/api/recipe_metadata/get_recipe_metadata_data.py +10 -0
  56. uncountable/types/api/recipes/add_recipe_to_project.py +7 -0
  57. uncountable/types/api/recipes/archive_recipes.py +7 -0
  58. uncountable/types/api/recipes/associate_recipe_as_input.py +7 -0
  59. uncountable/types/api/recipes/associate_recipe_as_lot.py +7 -0
  60. uncountable/types/api/recipes/clear_recipe_outputs.py +7 -0
  61. uncountable/types/api/recipes/create_recipe.py +7 -0
  62. uncountable/types/api/recipes/create_recipes.py +13 -0
  63. uncountable/types/api/recipes/disassociate_recipe_as_input.py +7 -0
  64. uncountable/types/api/recipes/edit_recipe_inputs.py +20 -0
  65. uncountable/types/api/recipes/get_curve.py +7 -0
  66. uncountable/types/api/recipes/get_recipe_calculations.py +7 -0
  67. uncountable/types/api/recipes/get_recipe_links.py +7 -0
  68. uncountable/types/api/recipes/get_recipe_names.py +10 -0
  69. uncountable/types/api/recipes/get_recipe_output_metadata.py +7 -0
  70. uncountable/types/api/recipes/get_recipes_data.py +25 -0
  71. uncountable/types/api/recipes/lock_recipes.py +10 -0
  72. uncountable/types/api/recipes/remove_recipe_from_project.py +7 -0
  73. uncountable/types/api/recipes/set_recipe_inputs.py +7 -0
  74. uncountable/types/api/recipes/set_recipe_metadata.py +7 -0
  75. uncountable/types/api/recipes/set_recipe_output_annotations.py +13 -0
  76. uncountable/types/api/recipes/set_recipe_output_file.py +10 -0
  77. uncountable/types/api/recipes/set_recipe_outputs.py +10 -0
  78. uncountable/types/api/recipes/set_recipe_tags.py +12 -0
  79. uncountable/types/api/recipes/unarchive_recipes.py +7 -0
  80. uncountable/types/api/recipes/unlock_recipes.py +7 -0
  81. uncountable/types/api/triggers/run_trigger.py +7 -0
  82. uncountable/types/api/uploader/invoke_uploader.py +9 -1
  83. uncountable/types/async_batch_processor.py +4 -1
  84. uncountable/types/async_batch_t.py +10 -0
  85. uncountable/types/calculations_t.py +4 -0
  86. uncountable/types/chemical_structure_t.py +1 -0
  87. uncountable/types/client_base.py +6 -3
  88. uncountable/types/client_config_t.py +4 -0
  89. uncountable/types/curves_t.py +4 -0
  90. uncountable/types/entity_t.py +8 -0
  91. uncountable/types/experiment_groups_t.py +4 -0
  92. uncountable/types/field_values_t.py +4 -0
  93. uncountable/types/fields_t.py +4 -0
  94. uncountable/types/generic_upload_t.py +13 -0
  95. uncountable/types/id_source_t.py +13 -0
  96. uncountable/types/identifier_t.py +3 -0
  97. uncountable/types/input_attributes_t.py +1 -0
  98. uncountable/types/inputs_t.py +4 -0
  99. uncountable/types/job_definition_t.py +33 -0
  100. uncountable/types/outputs_t.py +4 -0
  101. uncountable/types/overrides_t.py +7 -0
  102. uncountable/types/phases_t.py +4 -0
  103. uncountable/types/queued_job_t.py +16 -0
  104. uncountable/types/recipe_identifiers_t.py +3 -0
  105. uncountable/types/recipe_links_t.py +4 -0
  106. uncountable/types/recipe_metadata_t.py +5 -0
  107. uncountable/types/recipe_output_metadata_t.py +4 -0
  108. uncountable/types/recipe_tags_t.py +4 -0
  109. uncountable/types/recipe_workflow_steps_t.py +7 -0
  110. uncountable/types/recipes_t.py +4 -0
  111. uncountable/types/response_t.py +1 -0
  112. uncountable/types/secret_retrieval_t.py +6 -0
  113. uncountable/types/units_t.py +4 -0
  114. uncountable/types/users_t.py +4 -0
  115. uncountable/types/webhook_job_t.py +4 -0
  116. uncountable/types/workflows_t.py +7 -0
  117. {UncountablePythonSDK-0.0.72.dist-info → UncountablePythonSDK-0.0.74.dist-info}/top_level.txt +0 -0
@@ -32,6 +32,9 @@ class RecipeWorkflowStepIdentifierType(StrEnum):
32
32
 
33
33
 
34
34
  # DO NOT MODIFY -- This file is generated by type_spec
35
+ @serial_class(
36
+ named_type_path="sdk.recipe_workflow_steps.RecipeWorkflowStepIdentifierBase",
37
+ )
35
38
  @dataclasses.dataclass(kw_only=True)
36
39
  class RecipeWorkflowStepIdentifierBase:
37
40
  type: RecipeWorkflowStepIdentifierType
@@ -39,6 +42,7 @@ class RecipeWorkflowStepIdentifierBase:
39
42
 
40
43
  # DO NOT MODIFY -- This file is generated by type_spec
41
44
  @serial_class(
45
+ named_type_path="sdk.recipe_workflow_steps.RecipeWorkflowStepIdentifierDefault",
42
46
  parse_require={"type"},
43
47
  )
44
48
  @dataclasses.dataclass(kw_only=True)
@@ -54,6 +58,7 @@ class RecipeWorkflowStepPosition(StrEnum):
54
58
 
55
59
  # DO NOT MODIFY -- This file is generated by type_spec
56
60
  @serial_class(
61
+ named_type_path="sdk.recipe_workflow_steps.RecipeWorkflowStepIdentifierWorkflowStep",
57
62
  parse_require={"type"},
58
63
  )
59
64
  @dataclasses.dataclass(kw_only=True)
@@ -65,6 +70,7 @@ class RecipeWorkflowStepIdentifierWorkflowStep(RecipeWorkflowStepIdentifierBase)
65
70
 
66
71
  # DO NOT MODIFY -- This file is generated by type_spec
67
72
  @serial_class(
73
+ named_type_path="sdk.recipe_workflow_steps.RecipeWorkflowStepIdentifierKey",
68
74
  parse_require={"type"},
69
75
  )
70
76
  @dataclasses.dataclass(kw_only=True)
@@ -77,6 +83,7 @@ class RecipeWorkflowStepIdentifierKey:
77
83
  RecipeWorkflowStepIdentifier = typing.Annotated[
78
84
  typing.Union[RecipeWorkflowStepIdentifierDefault, RecipeWorkflowStepIdentifierWorkflowStep, RecipeWorkflowStepIdentifierKey],
79
85
  serial_union_annotation(
86
+ named_type_path="sdk.recipe_workflow_steps.RecipeWorkflowStepIdentifier",
80
87
  discriminator="type",
81
88
  discriminator_map={
82
89
  "default": RecipeWorkflowStepIdentifierDefault,
@@ -8,6 +8,7 @@ import typing # noqa: F401
8
8
  import datetime # noqa: F401
9
9
  from decimal import Decimal # noqa: F401
10
10
  import dataclasses
11
+ from pkgs.serialization import serial_class
11
12
 
12
13
  __all__: list[str] = [
13
14
  "RecipeAttributeFormatting",
@@ -15,6 +16,9 @@ __all__: list[str] = [
15
16
 
16
17
 
17
18
  # DO NOT MODIFY -- This file is generated by type_spec
19
+ @serial_class(
20
+ named_type_path="sdk.recipes.RecipeAttributeFormatting",
21
+ )
18
22
  @dataclasses.dataclass(kw_only=True)
19
23
  class RecipeAttributeFormatting:
20
24
  background_color: str
@@ -17,6 +17,7 @@ __all__: list[str] = [
17
17
 
18
18
  # DO NOT MODIFY -- This file is generated by type_spec
19
19
  @serial_class(
20
+ named_type_path="sdk.response.Response",
20
21
  parse_require={"status"},
21
22
  )
22
23
  @dataclasses.dataclass(kw_only=True)
@@ -22,6 +22,9 @@ __all__: list[str] = [
22
22
 
23
23
 
24
24
  # DO NOT MODIFY -- This file is generated by type_spec
25
+ @serial_class(
26
+ named_type_path="sdk.secret_retrieval.SecretRetrievalBase",
27
+ )
25
28
  @dataclasses.dataclass(kw_only=True, frozen=True, eq=True)
26
29
  class SecretRetrievalBase:
27
30
  type: SecretRetrievalType
@@ -35,6 +38,7 @@ class SecretRetrievalType(StrEnum):
35
38
 
36
39
  # DO NOT MODIFY -- This file is generated by type_spec
37
40
  @serial_class(
41
+ named_type_path="sdk.secret_retrieval.SecretRetrievalEnv",
38
42
  parse_require={"type"},
39
43
  )
40
44
  @dataclasses.dataclass(kw_only=True, frozen=True, eq=True)
@@ -45,6 +49,7 @@ class SecretRetrievalEnv(SecretRetrievalBase):
45
49
 
46
50
  # DO NOT MODIFY -- This file is generated by type_spec
47
51
  @serial_class(
52
+ named_type_path="sdk.secret_retrieval.SecretRetrievalAWS",
48
53
  parse_require={"type"},
49
54
  )
50
55
  @dataclasses.dataclass(kw_only=True, frozen=True, eq=True)
@@ -59,6 +64,7 @@ class SecretRetrievalAWS(SecretRetrievalBase):
59
64
  SecretRetrieval = typing.Annotated[
60
65
  typing.Union[SecretRetrievalEnv, SecretRetrievalAWS],
61
66
  serial_union_annotation(
67
+ named_type_path="sdk.secret_retrieval.SecretRetrieval",
62
68
  discriminator="type",
63
69
  discriminator_map={
64
70
  "env": SecretRetrievalEnv,
@@ -8,6 +8,7 @@ import typing # noqa: F401
8
8
  import datetime # noqa: F401
9
9
  from decimal import Decimal # noqa: F401
10
10
  import dataclasses
11
+ from pkgs.serialization import serial_class
11
12
  from . import base_t
12
13
 
13
14
  __all__: list[str] = [
@@ -16,6 +17,9 @@ __all__: list[str] = [
16
17
 
17
18
 
18
19
  # DO NOT MODIFY -- This file is generated by type_spec
20
+ @serial_class(
21
+ named_type_path="sdk.units.SimpleUnit",
22
+ )
19
23
  @dataclasses.dataclass(kw_only=True)
20
24
  class SimpleUnit:
21
25
  unit_id: base_t.ObjectId
@@ -8,6 +8,7 @@ import typing # noqa: F401
8
8
  import datetime # noqa: F401
9
9
  from decimal import Decimal # noqa: F401
10
10
  import dataclasses
11
+ from pkgs.serialization import serial_class
11
12
  from . import base_t
12
13
 
13
14
  __all__: list[str] = [
@@ -16,6 +17,9 @@ __all__: list[str] = [
16
17
 
17
18
 
18
19
  # DO NOT MODIFY -- This file is generated by type_spec
20
+ @serial_class(
21
+ named_type_path="sdk.users.SimpleUser",
22
+ )
19
23
  @dataclasses.dataclass(kw_only=True)
20
24
  class SimpleUser:
21
25
  user_id: base_t.ObjectId
@@ -19,6 +19,7 @@ __all__: list[str] = [
19
19
 
20
20
  # DO NOT MODIFY -- This file is generated by type_spec
21
21
  @serial_class(
22
+ named_type_path="sdk.webhook_job.WebhookEventPayload",
22
23
  unconverted_values={"data"},
23
24
  )
24
25
  @dataclasses.dataclass(kw_only=True)
@@ -27,6 +28,9 @@ class WebhookEventPayload:
27
28
 
28
29
 
29
30
  # DO NOT MODIFY -- This file is generated by type_spec
31
+ @serial_class(
32
+ named_type_path="sdk.webhook_job.WebhookEventBody",
33
+ )
30
34
  @dataclasses.dataclass(kw_only=True)
31
35
  class WebhookEventBody(WebhookEventPayload):
32
36
  event_id: str
@@ -8,6 +8,7 @@ import typing # noqa: F401
8
8
  import datetime # noqa: F401
9
9
  from decimal import Decimal # noqa: F401
10
10
  import dataclasses
11
+ from pkgs.serialization import serial_class
11
12
  from . import base_t
12
13
 
13
14
  __all__: list[str] = [
@@ -17,6 +18,9 @@ __all__: list[str] = [
17
18
 
18
19
 
19
20
  # DO NOT MODIFY -- This file is generated by type_spec
21
+ @serial_class(
22
+ named_type_path="sdk.workflows.SimpleWorkflowStep",
23
+ )
20
24
  @dataclasses.dataclass(kw_only=True)
21
25
  class SimpleWorkflowStep:
22
26
  workflow_step_id: base_t.ObjectId
@@ -24,6 +28,9 @@ class SimpleWorkflowStep:
24
28
 
25
29
 
26
30
  # DO NOT MODIFY -- This file is generated by type_spec
31
+ @serial_class(
32
+ named_type_path="sdk.workflows.SimpleWorkflow",
33
+ )
27
34
  @dataclasses.dataclass(kw_only=True)
28
35
  class SimpleWorkflow:
29
36
  workflow_id: base_t.ObjectId