luminarycloud 0.15.5__py3-none-any.whl → 0.16.1__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 (77) hide show
  1. luminarycloud/_client/client.py +5 -0
  2. luminarycloud/_helpers/__init__.py +1 -0
  3. luminarycloud/_helpers/_code_representation.py +21 -4
  4. luminarycloud/_helpers/download.py +67 -1
  5. luminarycloud/_proto/api/v0/luminarycloud/inference/inference_pb2.py +9 -9
  6. luminarycloud/_proto/api/v0/luminarycloud/inference/inference_pb2.pyi +7 -4
  7. luminarycloud/_proto/api/v0/luminarycloud/physics_ai/physics_ai_pb2.py +45 -21
  8. luminarycloud/_proto/api/v0/luminarycloud/physics_ai/physics_ai_pb2.pyi +65 -0
  9. luminarycloud/_proto/api/v0/luminarycloud/physics_ai/physics_ai_pb2_grpc.py +34 -0
  10. luminarycloud/_proto/api/v0/luminarycloud/physics_ai/physics_ai_pb2_grpc.pyi +12 -0
  11. luminarycloud/_proto/api/v0/luminarycloud/thirdpartyintegration/onshape/onshape_pb2.py +194 -7
  12. luminarycloud/_proto/api/v0/luminarycloud/thirdpartyintegration/onshape/onshape_pb2.pyi +407 -5
  13. luminarycloud/_proto/api/v0/luminarycloud/thirdpartyintegration/onshape/onshape_pb2_grpc.py +171 -0
  14. luminarycloud/_proto/api/v0/luminarycloud/thirdpartyintegration/onshape/onshape_pb2_grpc.pyi +64 -0
  15. luminarycloud/_proto/api/v0/luminarycloud/upload/upload_pb2.py +4 -2
  16. luminarycloud/_proto/api/v0/luminarycloud/upload/upload_pb2_grpc.py +34 -0
  17. luminarycloud/_proto/api/v0/luminarycloud/upload/upload_pb2_grpc.pyi +12 -0
  18. luminarycloud/_proto/api/v0/luminarycloud/vis/vis_pb2.py +128 -107
  19. luminarycloud/_proto/api/v0/luminarycloud/vis/vis_pb2.pyi +48 -3
  20. luminarycloud/_proto/assistant/assistant_pb2.py +82 -61
  21. luminarycloud/_proto/assistant/assistant_pb2.pyi +40 -0
  22. luminarycloud/_proto/assistant/assistant_pb2_grpc.py +34 -0
  23. luminarycloud/_proto/assistant/assistant_pb2_grpc.pyi +12 -0
  24. luminarycloud/_proto/base/base_pb2.py +7 -6
  25. luminarycloud/_proto/base/base_pb2.pyi +4 -0
  26. luminarycloud/_proto/client/simulation_pb2.py +351 -351
  27. luminarycloud/_proto/client/simulation_pb2.pyi +105 -97
  28. luminarycloud/_proto/geometry/geometry_pb2.py +68 -68
  29. luminarycloud/_proto/geometry/geometry_pb2.pyi +15 -7
  30. luminarycloud/_proto/hexmesh/hexmesh_pb2.py +40 -15
  31. luminarycloud/_proto/hexmesh/hexmesh_pb2.pyi +58 -1
  32. luminarycloud/_proto/inferenceservice/inferenceservice_pb2.py +11 -11
  33. luminarycloud/_proto/inferenceservice/inferenceservice_pb2.pyi +12 -4
  34. luminarycloud/_proto/lcstatus/codes_pb2.py +3 -2
  35. luminarycloud/_proto/lcstatus/codes_pb2.pyi +4 -0
  36. luminarycloud/_proto/quantity/quantity_pb2.py +11 -2
  37. luminarycloud/_proto/quantity/quantity_pb2.pyi +6 -0
  38. luminarycloud/_proto/table/table_pb2.pyi +4 -2
  39. luminarycloud/_proto/upload/upload_pb2.py +27 -7
  40. luminarycloud/_proto/upload/upload_pb2.pyi +31 -0
  41. luminarycloud/enum/quantity_type.py +19 -0
  42. luminarycloud/enum/tables.py +1 -0
  43. luminarycloud/enum/vis_enums.py +20 -0
  44. luminarycloud/feature_modification.py +6 -7
  45. luminarycloud/geometry.py +24 -0
  46. luminarycloud/geometry_version.py +23 -0
  47. luminarycloud/mesh.py +8 -1
  48. luminarycloud/params/simulation/adjoint_.py +4 -4
  49. luminarycloud/params/simulation/material/material_fluid_.py +1 -1
  50. luminarycloud/params/simulation/material/material_solid_.py +1 -1
  51. luminarycloud/params/simulation/output_.py +1 -1
  52. luminarycloud/params/simulation/physics/fluid/initialization/fluid_existing_solution_.py +28 -0
  53. luminarycloud/params/simulation/physics/fluid/solution_controls/fluid_relaxation_method/fluid_implicit_relaxation/robust_startup/__init__.py +1 -0
  54. luminarycloud/params/simulation/physics/fluid/solution_controls/fluid_relaxation_method/fluid_implicit_relaxation/robust_startup/robust_startup_auto_.py +30 -0
  55. luminarycloud/params/simulation/physics/fluid/solution_controls/fluid_relaxation_method/fluid_implicit_relaxation/robust_startup/robust_startup_on_.py +1 -1
  56. luminarycloud/params/simulation/physics/fluid/solution_controls/fluid_relaxation_method/fluid_implicit_relaxation_.py +6 -2
  57. luminarycloud/params/simulation/physics/fluid/solution_controls_fluid_.py +4 -0
  58. luminarycloud/params/simulation/simulation_param_.py +6 -0
  59. luminarycloud/physics_ai/__init__.py +4 -0
  60. luminarycloud/physics_ai/inference.py +140 -4
  61. luminarycloud/physics_ai/solution.py +60 -0
  62. luminarycloud/project.py +9 -7
  63. luminarycloud/simulation_param.py +29 -15
  64. luminarycloud/simulation_template.py +14 -10
  65. luminarycloud/tables.py +11 -12
  66. luminarycloud/thirdparty/__init__.py +12 -0
  67. luminarycloud/thirdparty/onshape.py +170 -0
  68. luminarycloud/vis/__init__.py +2 -0
  69. luminarycloud/vis/data_extraction.py +44 -6
  70. luminarycloud/vis/display.py +26 -11
  71. luminarycloud/vis/filters.py +226 -67
  72. luminarycloud/vis/primitives.py +3 -2
  73. luminarycloud/vis/visualization.py +198 -41
  74. luminarycloud/volume_selection.py +2 -2
  75. {luminarycloud-0.15.5.dist-info → luminarycloud-0.16.1.dist-info}/METADATA +6 -6
  76. {luminarycloud-0.15.5.dist-info → luminarycloud-0.16.1.dist-info}/RECORD +77 -73
  77. {luminarycloud-0.15.5.dist-info → luminarycloud-0.16.1.dist-info}/WHEEL +0 -0
@@ -128,6 +128,7 @@ class _ColorMapNameEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._E
128
128
  COLOR_MAP_NAME_JET: _ColorMapName.ValueType # 4
129
129
  COLOR_MAP_NAME_WAVE: _ColorMapName.ValueType # 5
130
130
  COLOR_MAP_NAME_XRAY: _ColorMapName.ValueType # 6
131
+ COLOR_MAP_NAME_PLASMA: _ColorMapName.ValueType # 7
131
132
 
132
133
  class ColorMapName(_ColorMapName, metaclass=_ColorMapNameEnumTypeWrapper):
133
134
  """Predefined color maps these values need to stay in sync with the
@@ -141,6 +142,7 @@ COLOR_MAP_NAME_TURBO: ColorMapName.ValueType # 3
141
142
  COLOR_MAP_NAME_JET: ColorMapName.ValueType # 4
142
143
  COLOR_MAP_NAME_WAVE: ColorMapName.ValueType # 5
143
144
  COLOR_MAP_NAME_XRAY: ColorMapName.ValueType # 6
145
+ COLOR_MAP_NAME_PLASMA: ColorMapName.ValueType # 7
144
146
  global___ColorMapName = ColorMapName
145
147
 
146
148
  class _ExtractStatus:
@@ -832,6 +834,45 @@ class IntersectionCurve(google.protobuf.message.Message):
832
834
 
833
835
  global___IntersectionCurve = IntersectionCurve
834
836
 
837
+ class LineSampleMeshResolution(google.protobuf.message.Message):
838
+ """This type has no params"""
839
+
840
+ DESCRIPTOR: google.protobuf.descriptor.Descriptor
841
+
842
+ def __init__(
843
+ self,
844
+ ) -> None: ...
845
+
846
+ global___LineSampleMeshResolution = LineSampleMeshResolution
847
+
848
+ class LineSample(google.protobuf.message.Message):
849
+ DESCRIPTOR: google.protobuf.descriptor.Descriptor
850
+
851
+ START_FIELD_NUMBER: builtins.int
852
+ END_FIELD_NUMBER: builtins.int
853
+ LABEL_FIELD_NUMBER: builtins.int
854
+ MESH_RESOLUTION_FIELD_NUMBER: builtins.int
855
+ @property
856
+ def start(self) -> luminarycloud._proto.api.v0.luminarycloud.common.common_pb2.Vector3: ...
857
+ @property
858
+ def end(self) -> luminarycloud._proto.api.v0.luminarycloud.common.common_pb2.Vector3: ...
859
+ label: builtins.str
860
+ @property
861
+ def mesh_resolution(self) -> global___LineSampleMeshResolution: ...
862
+ def __init__(
863
+ self,
864
+ *,
865
+ start: luminarycloud._proto.api.v0.luminarycloud.common.common_pb2.Vector3 | None = ...,
866
+ end: luminarycloud._proto.api.v0.luminarycloud.common.common_pb2.Vector3 | None = ...,
867
+ label: builtins.str = ...,
868
+ mesh_resolution: global___LineSampleMeshResolution | None = ...,
869
+ ) -> None: ...
870
+ def HasField(self, field_name: typing_extensions.Literal["end", b"end", "mesh_resolution", b"mesh_resolution", "sample_type", b"sample_type", "start", b"start"]) -> builtins.bool: ...
871
+ def ClearField(self, field_name: typing_extensions.Literal["end", b"end", "label", b"label", "mesh_resolution", b"mesh_resolution", "sample_type", b"sample_type", "start", b"start"]) -> None: ...
872
+ def WhichOneof(self, oneof_group: typing_extensions.Literal["sample_type", b"sample_type"]) -> typing_extensions.Literal["mesh_resolution"] | None: ...
873
+
874
+ global___LineSample = LineSample
875
+
835
876
  class Filter(google.protobuf.message.Message):
836
877
  DESCRIPTOR: google.protobuf.descriptor.Descriptor
837
878
 
@@ -845,6 +886,7 @@ class Filter(google.protobuf.message.Message):
845
886
  GLYPH_FIELD_NUMBER: builtins.int
846
887
  SURFACE_LIC_FIELD_NUMBER: builtins.int
847
888
  INTERSECTION_CURVE_FIELD_NUMBER: builtins.int
889
+ LINE_SAMPLE_FIELD_NUMBER: builtins.int
848
890
  id: builtins.str
849
891
  """A unique identifier for this filter."""
850
892
  name: builtins.str
@@ -865,6 +907,8 @@ class Filter(google.protobuf.message.Message):
865
907
  def surface_lic(self) -> global___SurfaceLIC: ...
866
908
  @property
867
909
  def intersection_curve(self) -> global___IntersectionCurve: ...
910
+ @property
911
+ def line_sample(self) -> global___LineSample: ...
868
912
  def __init__(
869
913
  self,
870
914
  *,
@@ -878,10 +922,11 @@ class Filter(google.protobuf.message.Message):
878
922
  glyph: global___Glyph | None = ...,
879
923
  surface_lic: global___SurfaceLIC | None = ...,
880
924
  intersection_curve: global___IntersectionCurve | None = ...,
925
+ line_sample: global___LineSample | None = ...,
881
926
  ) -> None: ...
882
- def HasField(self, field_name: typing_extensions.Literal["clip", b"clip", "contour", b"contour", "glyph", b"glyph", "intersection_curve", b"intersection_curve", "slice", b"slice", "streamlines", b"streamlines", "surface_lic", b"surface_lic", "threshold", b"threshold", "value", b"value"]) -> builtins.bool: ...
883
- def ClearField(self, field_name: typing_extensions.Literal["clip", b"clip", "contour", b"contour", "glyph", b"glyph", "id", b"id", "intersection_curve", b"intersection_curve", "name", b"name", "slice", b"slice", "streamlines", b"streamlines", "surface_lic", b"surface_lic", "threshold", b"threshold", "value", b"value"]) -> None: ...
884
- def WhichOneof(self, oneof_group: typing_extensions.Literal["value", b"value"]) -> typing_extensions.Literal["slice", "clip", "contour", "threshold", "streamlines", "glyph", "surface_lic", "intersection_curve"] | None: ...
927
+ def HasField(self, field_name: typing_extensions.Literal["clip", b"clip", "contour", b"contour", "glyph", b"glyph", "intersection_curve", b"intersection_curve", "line_sample", b"line_sample", "slice", b"slice", "streamlines", b"streamlines", "surface_lic", b"surface_lic", "threshold", b"threshold", "value", b"value"]) -> builtins.bool: ...
928
+ def ClearField(self, field_name: typing_extensions.Literal["clip", b"clip", "contour", b"contour", "glyph", b"glyph", "id", b"id", "intersection_curve", b"intersection_curve", "line_sample", b"line_sample", "name", b"name", "slice", b"slice", "streamlines", b"streamlines", "surface_lic", b"surface_lic", "threshold", b"threshold", "value", b"value"]) -> None: ...
929
+ def WhichOneof(self, oneof_group: typing_extensions.Literal["value", b"value"]) -> typing_extensions.Literal["slice", "clip", "contour", "threshold", "streamlines", "glyph", "surface_lic", "intersection_curve", "line_sample"] | None: ...
885
930
 
886
931
  global___Filter = Filter
887
932
 
@@ -16,9 +16,10 @@ _sym_db = _symbol_database.Default()
16
16
  from google.protobuf import empty_pb2 as google_dot_protobuf_dot_empty__pb2
17
17
  from google.protobuf import struct_pb2 as google_dot_protobuf_dot_struct__pb2
18
18
  from luminarycloud._proto.client import simulation_pb2 as proto_dot_client_dot_simulation__pb2
19
+ from luminarycloud._proto.api.v0.luminarycloud.vis import vis_pb2 as proto_dot_api_dot_v0_dot_luminarycloud_dot_vis_dot_vis__pb2
19
20
 
20
21
 
21
- DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x1fproto/assistant/assistant.proto\x12\x18luminary.proto.assistant\x1a\x1bgoogle/protobuf/empty.proto\x1a\x1cgoogle/protobuf/struct.proto\x1a\x1dproto/client/simulation.proto\"9\n\x16GetChatSessionsRequest\x12\r\n\x05scope\x18\x02 \x01(\tJ\x04\x08\x01\x10\x02R\nproject_id\".\n\x17GetChatSessionsResponse\x12\x13\n\x0bsession_ids\x18\x01 \x03(\t\"8\n\x15NewChatSessionRequest\x12\r\n\x05scope\x18\x02 \x01(\tJ\x04\x08\x01\x10\x02R\nproject_id\",\n\x16NewChatSessionResponse\x12\x12\n\nsession_id\x18\x01 \x01(\t\"\x9a\x02\n\x12NotebookOutputItem\x12\x38\n\x06stream\x18\x01 \x01(\x0b\x32&.luminary.proto.assistant.StreamOutputH\x00\x12=\n\x0c\x64isplay_data\x18\x02 \x01(\x0b\x32%.luminary.proto.assistant.DisplayDataH\x00\x12\x41\n\x0e\x65xecute_result\x18\x03 \x01(\x0b\x32\'.luminary.proto.assistant.ExecuteResultH\x00\x12\x36\n\x05\x65rror\x18\x04 \x01(\x0b\x32%.luminary.proto.assistant.ErrorOutputH\x00\x42\x10\n\x0eoutput_content\"V\n\x0cStreamOutput\x12\x38\n\x04name\x18\x01 \x01(\x0e\x32*.luminary.proto.assistant.StreamOutputType\x12\x0c\n\x04text\x18\x02 \x01(\t\"?\n\x0b\x45rrorOutput\x12\r\n\x05\x65name\x18\x01 \x01(\t\x12\x0e\n\x06\x65value\x18\x02 \x01(\t\x12\x11\n\ttraceback\x18\x03 \x03(\t\"}\n\rExecuteResult\x12?\n\x04\x64\x61ta\x18\x01 \x03(\x0b\x32\x31.luminary.proto.assistant.ExecuteResult.DataEntry\x1a+\n\tDataEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"y\n\x0b\x44isplayData\x12=\n\x04\x64\x61ta\x18\x01 \x03(\x0b\x32/.luminary.proto.assistant.DisplayData.DataEntry\x1a+\n\tDataEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"\xa6\x01\n\x0cNotebookCell\x12\x0f\n\x07\x63\x65ll_id\x18\x01 \x01(\t\x12\x35\n\tcell_type\x18\x02 \x01(\x0e\x32\".luminary.proto.assistant.CellType\x12\x0f\n\x07\x63ontent\x18\x03 \x01(\t\x12=\n\x07outputs\x18\x04 \x03(\x0b\x32,.luminary.proto.assistant.NotebookOutputItem\"b\n\x0fNotebookContext\x12\n\n\x02id\x18\x01 \x01(\t\x12\x0c\n\x04name\x18\x02 \x01(\t\x12\x35\n\x05\x63\x65lls\x18\x03 \x03(\x0b\x32&.luminary.proto.assistant.NotebookCell\"=\n\nSourceCode\x12\x10\n\x08language\x18\x01 \x01(\t\x12\x0c\n\x04path\x18\x02 \x01(\t\x12\x0f\n\x07\x63ontent\x18\x03 \x01(\t\"G\n\x05Image\x12\x14\n\x0cimage_base64\x18\x01 \x01(\t\x12\x18\n\x0b\x64\x65scription\x18\x02 \x01(\tH\x00\x88\x01\x01\x42\x0e\n\x0c_description\"\xdb\x01\n\x0b\x43ontextItem\x12\x45\n\x10notebook_context\x18\x01 \x01(\x0b\x32).luminary.proto.assistant.NotebookContextH\x00\x12;\n\x0bsource_code\x18\x02 \x01(\x0b\x32$.luminary.proto.assistant.SourceCodeH\x00\x12\x0e\n\x04text\x18\x03 \x01(\tH\x00\x12\x30\n\x05image\x18\x04 \x01(\x0b\x32\x1f.luminary.proto.assistant.ImageH\x00\x42\x06\n\x04item\"J\n\x10\x41ssistantContext\x12\x36\n\x07\x63ontext\x18\x01 \x03(\x0b\x32%.luminary.proto.assistant.ContextItem\"\xf6\x01\n\x07Request\x12\x0f\n\x07session\x18\x01 \x01(\t\x12\x0f\n\x07request\x18\x02 \x01(\t\x12\x0b\n\x03\x63md\x18\x03 \x01(\t\x12\x0e\n\x06\x61\x63\x63\x65ss\x18\x04 \x01(\t\x12\r\n\x05scope\x18\x06 \x01(\t\x12=\n\x06source\x18\x07 \x01(\x0e\x32-.luminary.proto.assistant.AssistRequestSource\x12@\n\x07\x63ontext\x18\x08 \x01(\x0b\x32*.luminary.proto.assistant.AssistantContextH\x00\x88\x01\x01\x42\n\n\x08_contextJ\x04\x08\x05\x10\x06R\nproject_id\"\x9e\x01\n\x05Reply\x12\x0f\n\x07session\x18\x01 \x01(\t\x12\x0f\n\x07request\x18\x02 \x01(\t\x12\x0c\n\x04last\x18\x03 \x01(\x08\x12\x32\n\x06\x61\x63tion\x18\x04 \x01(\x0b\x32 .luminary.proto.assistant.ActionH\x00\x12\x12\n\x08response\x18\x05 \x01(\tH\x00\x12\x15\n\x0bplotly_plot\x18\x06 \x01(\tH\x00\x42\x06\n\x04step\"&\n\x06\x41\x63tion\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x0e\n\x06params\x18\x02 \x03(\t\"S\n\x07Outcome\x12\x0f\n\x07session\x18\x01 \x01(\t\x12\x0f\n\x07request\x18\x02 \x01(\t\x12\r\n\x03val\x18\x03 \x01(\tH\x00\x12\r\n\x03\x65rr\x18\x04 \x01(\tH\x00\x42\x08\n\x06result\"I\n\x15GetChatHistoryRequest\x12\x0f\n\x07session\x18\x01 \x01(\t\x12\r\n\x05scope\x18\x03 \x01(\tJ\x04\x08\x02\x10\x03R\nproject_id\"1\n\x10\x43hatHistoryEntry\x12\x0c\n\x04type\x18\x01 \x01(\t\x12\x0f\n\x07\x63ontent\x18\x02 \x01(\t\"U\n\x16GetChatHistoryResponse\x12;\n\x07\x65ntries\x18\x01 \x03(\x0b\x32*.luminary.proto.assistant.ChatHistoryEntry\"g\n\x1aSimulationToSdkCodeRequest\x12\x12\n\nproject_id\x18\x01 \x01(\t\x12\x0f\n\x07session\x18\x02 \x01(\t\x12\r\n\x05token\x18\x03 \x01(\t\x12\x15\n\rsimulation_id\x18\x04 \x01(\t\"/\n\x1bSimulationToSdkCodeResponse\x12\x10\n\x08sdk_code\x18\x01 \x01(\t*5\n\x13\x41ssistRequestSource\x12\r\n\tWEBAPP_UI\x10\x00\x12\x0f\n\x0bNOTEBOOK_UI\x10\x01*+\n\x08\x43\x65llType\x12\x08\n\x04\x43ODE\x10\x00\x12\x0c\n\x08MARKDOWN\x10\x01\x12\x07\n\x03RAW\x10\x02**\n\x10StreamOutputType\x12\n\n\x06STDOUT\x10\x00\x12\n\n\x06STDERR\x10\x01\x32\x9b\x05\n\tAssistant\x12x\n\x0fGetChatSessions\x12\x30.luminary.proto.assistant.GetChatSessionsRequest\x1a\x31.luminary.proto.assistant.GetChatSessionsResponse\"\x00\x12u\n\x0eNewChatSession\x12/.luminary.proto.assistant.NewChatSessionRequest\x1a\x30.luminary.proto.assistant.NewChatSessionResponse\"\x00\x12u\n\x0eGetChatHistory\x12/.luminary.proto.assistant.GetChatHistoryRequest\x1a\x30.luminary.proto.assistant.GetChatHistoryResponse\"\x00\x12P\n\x06\x41ssist\x12!.luminary.proto.assistant.Request\x1a\x1f.luminary.proto.assistant.Reply\"\x00\x30\x01\x12M\n\x0e\x41ssistCallback\x12!.luminary.proto.assistant.Outcome\x1a\x16.google.protobuf.Empty\"\x00\x12\x84\x01\n\x13SimulationToSdkCode\x12\x34.luminary.proto.assistant.SimulationToSdkCodeRequest\x1a\x35.luminary.proto.assistant.SimulationToSdkCodeResponse\"\x00\x42(Z&luminarycloud.com/core/proto/assistantb\x06proto3')
22
+ DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x1fproto/assistant/assistant.proto\x12\x18luminary.proto.assistant\x1a\x1bgoogle/protobuf/empty.proto\x1a\x1cgoogle/protobuf/struct.proto\x1a\x1dproto/client/simulation.proto\x1a(proto/api/v0/luminarycloud/vis/vis.proto\"9\n\x16GetChatSessionsRequest\x12\r\n\x05scope\x18\x02 \x01(\tJ\x04\x08\x01\x10\x02R\nproject_id\".\n\x17GetChatSessionsResponse\x12\x13\n\x0bsession_ids\x18\x01 \x03(\t\"8\n\x15NewChatSessionRequest\x12\r\n\x05scope\x18\x02 \x01(\tJ\x04\x08\x01\x10\x02R\nproject_id\",\n\x16NewChatSessionResponse\x12\x12\n\nsession_id\x18\x01 \x01(\t\"\x9a\x02\n\x12NotebookOutputItem\x12\x38\n\x06stream\x18\x01 \x01(\x0b\x32&.luminary.proto.assistant.StreamOutputH\x00\x12=\n\x0c\x64isplay_data\x18\x02 \x01(\x0b\x32%.luminary.proto.assistant.DisplayDataH\x00\x12\x41\n\x0e\x65xecute_result\x18\x03 \x01(\x0b\x32\'.luminary.proto.assistant.ExecuteResultH\x00\x12\x36\n\x05\x65rror\x18\x04 \x01(\x0b\x32%.luminary.proto.assistant.ErrorOutputH\x00\x42\x10\n\x0eoutput_content\"V\n\x0cStreamOutput\x12\x38\n\x04name\x18\x01 \x01(\x0e\x32*.luminary.proto.assistant.StreamOutputType\x12\x0c\n\x04text\x18\x02 \x01(\t\"?\n\x0b\x45rrorOutput\x12\r\n\x05\x65name\x18\x01 \x01(\t\x12\x0e\n\x06\x65value\x18\x02 \x01(\t\x12\x11\n\ttraceback\x18\x03 \x03(\t\"}\n\rExecuteResult\x12?\n\x04\x64\x61ta\x18\x01 \x03(\x0b\x32\x31.luminary.proto.assistant.ExecuteResult.DataEntry\x1a+\n\tDataEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"y\n\x0b\x44isplayData\x12=\n\x04\x64\x61ta\x18\x01 \x03(\x0b\x32/.luminary.proto.assistant.DisplayData.DataEntry\x1a+\n\tDataEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"\xa6\x01\n\x0cNotebookCell\x12\x0f\n\x07\x63\x65ll_id\x18\x01 \x01(\t\x12\x35\n\tcell_type\x18\x02 \x01(\x0e\x32\".luminary.proto.assistant.CellType\x12\x0f\n\x07\x63ontent\x18\x03 \x01(\t\x12=\n\x07outputs\x18\x04 \x03(\x0b\x32,.luminary.proto.assistant.NotebookOutputItem\"b\n\x0fNotebookContext\x12\n\n\x02id\x18\x01 \x01(\t\x12\x0c\n\x04name\x18\x02 \x01(\t\x12\x35\n\x05\x63\x65lls\x18\x03 \x03(\x0b\x32&.luminary.proto.assistant.NotebookCell\"=\n\nSourceCode\x12\x10\n\x08language\x18\x01 \x01(\t\x12\x0c\n\x04path\x18\x02 \x01(\t\x12\x0f\n\x07\x63ontent\x18\x03 \x01(\t\"G\n\x05Image\x12\x14\n\x0cimage_base64\x18\x01 \x01(\t\x12\x18\n\x0b\x64\x65scription\x18\x02 \x01(\tH\x00\x88\x01\x01\x42\x0e\n\x0c_description\"\xdb\x01\n\x0b\x43ontextItem\x12\x45\n\x10notebook_context\x18\x01 \x01(\x0b\x32).luminary.proto.assistant.NotebookContextH\x00\x12;\n\x0bsource_code\x18\x02 \x01(\x0b\x32$.luminary.proto.assistant.SourceCodeH\x00\x12\x0e\n\x04text\x18\x03 \x01(\tH\x00\x12\x30\n\x05image\x18\x04 \x01(\x0b\x32\x1f.luminary.proto.assistant.ImageH\x00\x42\x06\n\x04item\"J\n\x10\x41ssistantContext\x12\x36\n\x07\x63ontext\x18\x01 \x03(\x0b\x32%.luminary.proto.assistant.ContextItem\"\xf6\x01\n\x07Request\x12\x0f\n\x07session\x18\x01 \x01(\t\x12\x0f\n\x07request\x18\x02 \x01(\t\x12\x0b\n\x03\x63md\x18\x03 \x01(\t\x12\x0e\n\x06\x61\x63\x63\x65ss\x18\x04 \x01(\t\x12\r\n\x05scope\x18\x06 \x01(\t\x12=\n\x06source\x18\x07 \x01(\x0e\x32-.luminary.proto.assistant.AssistRequestSource\x12@\n\x07\x63ontext\x18\x08 \x01(\x0b\x32*.luminary.proto.assistant.AssistantContextH\x00\x88\x01\x01\x42\n\n\x08_contextJ\x04\x08\x05\x10\x06R\nproject_id\"\x9e\x01\n\x05Reply\x12\x0f\n\x07session\x18\x01 \x01(\t\x12\x0f\n\x07request\x18\x02 \x01(\t\x12\x0c\n\x04last\x18\x03 \x01(\x08\x12\x32\n\x06\x61\x63tion\x18\x04 \x01(\x0b\x32 .luminary.proto.assistant.ActionH\x00\x12\x12\n\x08response\x18\x05 \x01(\tH\x00\x12\x15\n\x0bplotly_plot\x18\x06 \x01(\tH\x00\x42\x06\n\x04step\"&\n\x06\x41\x63tion\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x0e\n\x06params\x18\x02 \x03(\t\"S\n\x07Outcome\x12\x0f\n\x07session\x18\x01 \x01(\t\x12\x0f\n\x07request\x18\x02 \x01(\t\x12\r\n\x03val\x18\x03 \x01(\tH\x00\x12\r\n\x03\x65rr\x18\x04 \x01(\tH\x00\x42\x08\n\x06result\"I\n\x15GetChatHistoryRequest\x12\x0f\n\x07session\x18\x01 \x01(\t\x12\r\n\x05scope\x18\x03 \x01(\tJ\x04\x08\x02\x10\x03R\nproject_id\"1\n\x10\x43hatHistoryEntry\x12\x0c\n\x04type\x18\x01 \x01(\t\x12\x0f\n\x07\x63ontent\x18\x02 \x01(\t\"U\n\x16GetChatHistoryResponse\x12;\n\x07\x65ntries\x18\x01 \x03(\x0b\x32*.luminary.proto.assistant.ChatHistoryEntry\"g\n\x1aSimulationToSdkCodeRequest\x12\x12\n\nproject_id\x18\x01 \x01(\t\x12\x0f\n\x07session\x18\x02 \x01(\t\x12\r\n\x05token\x18\x03 \x01(\t\x12\x15\n\rsimulation_id\x18\x04 \x01(\t\"/\n\x1bSimulationToSdkCodeResponse\x12\x10\n\x08sdk_code\x18\x01 \x01(\t\"y\n\x13VisToSdkCodeRequest\x12\x42\n\x04spec\x18\x01 \x01(\x0b\x32\x34.luminary.proto.api.v0.luminarycloud.vis.ExtractSpec\x12\x0f\n\x07session\x18\x02 \x01(\t\x12\r\n\x05token\x18\x03 \x01(\t\"(\n\x14VisToSdkCodeResponse\x12\x10\n\x08sdk_code\x18\x01 \x01(\t*5\n\x13\x41ssistRequestSource\x12\r\n\tWEBAPP_UI\x10\x00\x12\x0f\n\x0bNOTEBOOK_UI\x10\x01*+\n\x08\x43\x65llType\x12\x08\n\x04\x43ODE\x10\x00\x12\x0c\n\x08MARKDOWN\x10\x01\x12\x07\n\x03RAW\x10\x02**\n\x10StreamOutputType\x12\n\n\x06STDOUT\x10\x00\x12\n\n\x06STDERR\x10\x01\x32\x8c\x06\n\tAssistant\x12x\n\x0fGetChatSessions\x12\x30.luminary.proto.assistant.GetChatSessionsRequest\x1a\x31.luminary.proto.assistant.GetChatSessionsResponse\"\x00\x12u\n\x0eNewChatSession\x12/.luminary.proto.assistant.NewChatSessionRequest\x1a\x30.luminary.proto.assistant.NewChatSessionResponse\"\x00\x12u\n\x0eGetChatHistory\x12/.luminary.proto.assistant.GetChatHistoryRequest\x1a\x30.luminary.proto.assistant.GetChatHistoryResponse\"\x00\x12P\n\x06\x41ssist\x12!.luminary.proto.assistant.Request\x1a\x1f.luminary.proto.assistant.Reply\"\x00\x30\x01\x12M\n\x0e\x41ssistCallback\x12!.luminary.proto.assistant.Outcome\x1a\x16.google.protobuf.Empty\"\x00\x12\x84\x01\n\x13SimulationToSdkCode\x12\x34.luminary.proto.assistant.SimulationToSdkCodeRequest\x1a\x35.luminary.proto.assistant.SimulationToSdkCodeResponse\"\x00\x12o\n\x0cVisToSdkCode\x12-.luminary.proto.assistant.VisToSdkCodeRequest\x1a..luminary.proto.assistant.VisToSdkCodeResponse\"\x00\x42(Z&luminarycloud.com/core/proto/assistantb\x06proto3')
22
23
 
23
24
  _ASSISTREQUESTSOURCE = DESCRIPTOR.enum_types_by_name['AssistRequestSource']
24
25
  AssistRequestSource = enum_type_wrapper.EnumTypeWrapper(_ASSISTREQUESTSOURCE)
@@ -61,6 +62,8 @@ _CHATHISTORYENTRY = DESCRIPTOR.message_types_by_name['ChatHistoryEntry']
61
62
  _GETCHATHISTORYRESPONSE = DESCRIPTOR.message_types_by_name['GetChatHistoryResponse']
62
63
  _SIMULATIONTOSDKCODEREQUEST = DESCRIPTOR.message_types_by_name['SimulationToSdkCodeRequest']
63
64
  _SIMULATIONTOSDKCODERESPONSE = DESCRIPTOR.message_types_by_name['SimulationToSdkCodeResponse']
65
+ _VISTOSDKCODEREQUEST = DESCRIPTOR.message_types_by_name['VisToSdkCodeRequest']
66
+ _VISTOSDKCODERESPONSE = DESCRIPTOR.message_types_by_name['VisToSdkCodeResponse']
64
67
  GetChatSessionsRequest = _reflection.GeneratedProtocolMessageType('GetChatSessionsRequest', (_message.Message,), {
65
68
  'DESCRIPTOR' : _GETCHATSESSIONSREQUEST,
66
69
  '__module__' : 'proto.assistant.assistant_pb2'
@@ -245,6 +248,20 @@ SimulationToSdkCodeResponse = _reflection.GeneratedProtocolMessageType('Simulati
245
248
  })
246
249
  _sym_db.RegisterMessage(SimulationToSdkCodeResponse)
247
250
 
251
+ VisToSdkCodeRequest = _reflection.GeneratedProtocolMessageType('VisToSdkCodeRequest', (_message.Message,), {
252
+ 'DESCRIPTOR' : _VISTOSDKCODEREQUEST,
253
+ '__module__' : 'proto.assistant.assistant_pb2'
254
+ # @@protoc_insertion_point(class_scope:luminary.proto.assistant.VisToSdkCodeRequest)
255
+ })
256
+ _sym_db.RegisterMessage(VisToSdkCodeRequest)
257
+
258
+ VisToSdkCodeResponse = _reflection.GeneratedProtocolMessageType('VisToSdkCodeResponse', (_message.Message,), {
259
+ 'DESCRIPTOR' : _VISTOSDKCODERESPONSE,
260
+ '__module__' : 'proto.assistant.assistant_pb2'
261
+ # @@protoc_insertion_point(class_scope:luminary.proto.assistant.VisToSdkCodeResponse)
262
+ })
263
+ _sym_db.RegisterMessage(VisToSdkCodeResponse)
264
+
248
265
  _ASSISTANT = DESCRIPTOR.services_by_name['Assistant']
249
266
  if _descriptor._USE_C_DESCRIPTORS == False:
250
267
 
@@ -254,64 +271,68 @@ if _descriptor._USE_C_DESCRIPTORS == False:
254
271
  _EXECUTERESULT_DATAENTRY._serialized_options = b'8\001'
255
272
  _DISPLAYDATA_DATAENTRY._options = None
256
273
  _DISPLAYDATA_DATAENTRY._serialized_options = b'8\001'
257
- _ASSISTREQUESTSOURCE._serialized_start=2655
258
- _ASSISTREQUESTSOURCE._serialized_end=2708
259
- _CELLTYPE._serialized_start=2710
260
- _CELLTYPE._serialized_end=2753
261
- _STREAMOUTPUTTYPE._serialized_start=2755
262
- _STREAMOUTPUTTYPE._serialized_end=2797
263
- _GETCHATSESSIONSREQUEST._serialized_start=151
264
- _GETCHATSESSIONSREQUEST._serialized_end=208
265
- _GETCHATSESSIONSRESPONSE._serialized_start=210
266
- _GETCHATSESSIONSRESPONSE._serialized_end=256
267
- _NEWCHATSESSIONREQUEST._serialized_start=258
268
- _NEWCHATSESSIONREQUEST._serialized_end=314
269
- _NEWCHATSESSIONRESPONSE._serialized_start=316
270
- _NEWCHATSESSIONRESPONSE._serialized_end=360
271
- _NOTEBOOKOUTPUTITEM._serialized_start=363
272
- _NOTEBOOKOUTPUTITEM._serialized_end=645
273
- _STREAMOUTPUT._serialized_start=647
274
- _STREAMOUTPUT._serialized_end=733
275
- _ERROROUTPUT._serialized_start=735
276
- _ERROROUTPUT._serialized_end=798
277
- _EXECUTERESULT._serialized_start=800
278
- _EXECUTERESULT._serialized_end=925
279
- _EXECUTERESULT_DATAENTRY._serialized_start=882
280
- _EXECUTERESULT_DATAENTRY._serialized_end=925
281
- _DISPLAYDATA._serialized_start=927
282
- _DISPLAYDATA._serialized_end=1048
283
- _DISPLAYDATA_DATAENTRY._serialized_start=882
284
- _DISPLAYDATA_DATAENTRY._serialized_end=925
285
- _NOTEBOOKCELL._serialized_start=1051
286
- _NOTEBOOKCELL._serialized_end=1217
287
- _NOTEBOOKCONTEXT._serialized_start=1219
288
- _NOTEBOOKCONTEXT._serialized_end=1317
289
- _SOURCECODE._serialized_start=1319
290
- _SOURCECODE._serialized_end=1380
291
- _IMAGE._serialized_start=1382
292
- _IMAGE._serialized_end=1453
293
- _CONTEXTITEM._serialized_start=1456
294
- _CONTEXTITEM._serialized_end=1675
295
- _ASSISTANTCONTEXT._serialized_start=1677
296
- _ASSISTANTCONTEXT._serialized_end=1751
297
- _REQUEST._serialized_start=1754
298
- _REQUEST._serialized_end=2000
299
- _REPLY._serialized_start=2003
300
- _REPLY._serialized_end=2161
301
- _ACTION._serialized_start=2163
302
- _ACTION._serialized_end=2201
303
- _OUTCOME._serialized_start=2203
304
- _OUTCOME._serialized_end=2286
305
- _GETCHATHISTORYREQUEST._serialized_start=2288
306
- _GETCHATHISTORYREQUEST._serialized_end=2361
307
- _CHATHISTORYENTRY._serialized_start=2363
308
- _CHATHISTORYENTRY._serialized_end=2412
309
- _GETCHATHISTORYRESPONSE._serialized_start=2414
310
- _GETCHATHISTORYRESPONSE._serialized_end=2499
311
- _SIMULATIONTOSDKCODEREQUEST._serialized_start=2501
312
- _SIMULATIONTOSDKCODEREQUEST._serialized_end=2604
313
- _SIMULATIONTOSDKCODERESPONSE._serialized_start=2606
314
- _SIMULATIONTOSDKCODERESPONSE._serialized_end=2653
315
- _ASSISTANT._serialized_start=2800
316
- _ASSISTANT._serialized_end=3467
274
+ _ASSISTREQUESTSOURCE._serialized_start=2862
275
+ _ASSISTREQUESTSOURCE._serialized_end=2915
276
+ _CELLTYPE._serialized_start=2917
277
+ _CELLTYPE._serialized_end=2960
278
+ _STREAMOUTPUTTYPE._serialized_start=2962
279
+ _STREAMOUTPUTTYPE._serialized_end=3004
280
+ _GETCHATSESSIONSREQUEST._serialized_start=193
281
+ _GETCHATSESSIONSREQUEST._serialized_end=250
282
+ _GETCHATSESSIONSRESPONSE._serialized_start=252
283
+ _GETCHATSESSIONSRESPONSE._serialized_end=298
284
+ _NEWCHATSESSIONREQUEST._serialized_start=300
285
+ _NEWCHATSESSIONREQUEST._serialized_end=356
286
+ _NEWCHATSESSIONRESPONSE._serialized_start=358
287
+ _NEWCHATSESSIONRESPONSE._serialized_end=402
288
+ _NOTEBOOKOUTPUTITEM._serialized_start=405
289
+ _NOTEBOOKOUTPUTITEM._serialized_end=687
290
+ _STREAMOUTPUT._serialized_start=689
291
+ _STREAMOUTPUT._serialized_end=775
292
+ _ERROROUTPUT._serialized_start=777
293
+ _ERROROUTPUT._serialized_end=840
294
+ _EXECUTERESULT._serialized_start=842
295
+ _EXECUTERESULT._serialized_end=967
296
+ _EXECUTERESULT_DATAENTRY._serialized_start=924
297
+ _EXECUTERESULT_DATAENTRY._serialized_end=967
298
+ _DISPLAYDATA._serialized_start=969
299
+ _DISPLAYDATA._serialized_end=1090
300
+ _DISPLAYDATA_DATAENTRY._serialized_start=924
301
+ _DISPLAYDATA_DATAENTRY._serialized_end=967
302
+ _NOTEBOOKCELL._serialized_start=1093
303
+ _NOTEBOOKCELL._serialized_end=1259
304
+ _NOTEBOOKCONTEXT._serialized_start=1261
305
+ _NOTEBOOKCONTEXT._serialized_end=1359
306
+ _SOURCECODE._serialized_start=1361
307
+ _SOURCECODE._serialized_end=1422
308
+ _IMAGE._serialized_start=1424
309
+ _IMAGE._serialized_end=1495
310
+ _CONTEXTITEM._serialized_start=1498
311
+ _CONTEXTITEM._serialized_end=1717
312
+ _ASSISTANTCONTEXT._serialized_start=1719
313
+ _ASSISTANTCONTEXT._serialized_end=1793
314
+ _REQUEST._serialized_start=1796
315
+ _REQUEST._serialized_end=2042
316
+ _REPLY._serialized_start=2045
317
+ _REPLY._serialized_end=2203
318
+ _ACTION._serialized_start=2205
319
+ _ACTION._serialized_end=2243
320
+ _OUTCOME._serialized_start=2245
321
+ _OUTCOME._serialized_end=2328
322
+ _GETCHATHISTORYREQUEST._serialized_start=2330
323
+ _GETCHATHISTORYREQUEST._serialized_end=2403
324
+ _CHATHISTORYENTRY._serialized_start=2405
325
+ _CHATHISTORYENTRY._serialized_end=2454
326
+ _GETCHATHISTORYRESPONSE._serialized_start=2456
327
+ _GETCHATHISTORYRESPONSE._serialized_end=2541
328
+ _SIMULATIONTOSDKCODEREQUEST._serialized_start=2543
329
+ _SIMULATIONTOSDKCODEREQUEST._serialized_end=2646
330
+ _SIMULATIONTOSDKCODERESPONSE._serialized_start=2648
331
+ _SIMULATIONTOSDKCODERESPONSE._serialized_end=2695
332
+ _VISTOSDKCODEREQUEST._serialized_start=2697
333
+ _VISTOSDKCODEREQUEST._serialized_end=2818
334
+ _VISTOSDKCODERESPONSE._serialized_start=2820
335
+ _VISTOSDKCODERESPONSE._serialized_end=2860
336
+ _ASSISTANT._serialized_start=3007
337
+ _ASSISTANT._serialized_end=3787
317
338
  # @@protoc_insertion_point(module_scope)
@@ -8,6 +8,7 @@ import google.protobuf.descriptor
8
8
  import google.protobuf.internal.containers
9
9
  import google.protobuf.internal.enum_type_wrapper
10
10
  import google.protobuf.message
11
+ import luminarycloud._proto.api.v0.luminarycloud.vis.vis_pb2
11
12
  import sys
12
13
  import typing
13
14
 
@@ -659,3 +660,42 @@ class SimulationToSdkCodeResponse(google.protobuf.message.Message):
659
660
  def ClearField(self, field_name: typing_extensions.Literal["sdk_code", b"sdk_code"]) -> None: ...
660
661
 
661
662
  global___SimulationToSdkCodeResponse = SimulationToSdkCodeResponse
663
+
664
+ class VisToSdkCodeRequest(google.protobuf.message.Message):
665
+ DESCRIPTOR: google.protobuf.descriptor.Descriptor
666
+
667
+ SPEC_FIELD_NUMBER: builtins.int
668
+ SESSION_FIELD_NUMBER: builtins.int
669
+ TOKEN_FIELD_NUMBER: builtins.int
670
+ @property
671
+ def spec(self) -> luminarycloud._proto.api.v0.luminarycloud.vis.vis_pb2.ExtractSpec:
672
+ """The extract spec that defines the vis state."""
673
+ session: builtins.str
674
+ """Id of the long lived session, an opaque string set by initiator"""
675
+ token: builtins.str
676
+ """The session token for assistant to act on behalf of the user"""
677
+ def __init__(
678
+ self,
679
+ *,
680
+ spec: luminarycloud._proto.api.v0.luminarycloud.vis.vis_pb2.ExtractSpec | None = ...,
681
+ session: builtins.str = ...,
682
+ token: builtins.str = ...,
683
+ ) -> None: ...
684
+ def HasField(self, field_name: typing_extensions.Literal["spec", b"spec"]) -> builtins.bool: ...
685
+ def ClearField(self, field_name: typing_extensions.Literal["session", b"session", "spec", b"spec", "token", b"token"]) -> None: ...
686
+
687
+ global___VisToSdkCodeRequest = VisToSdkCodeRequest
688
+
689
+ class VisToSdkCodeResponse(google.protobuf.message.Message):
690
+ DESCRIPTOR: google.protobuf.descriptor.Descriptor
691
+
692
+ SDK_CODE_FIELD_NUMBER: builtins.int
693
+ sdk_code: builtins.str
694
+ def __init__(
695
+ self,
696
+ *,
697
+ sdk_code: builtins.str = ...,
698
+ ) -> None: ...
699
+ def ClearField(self, field_name: typing_extensions.Literal["sdk_code", b"sdk_code"]) -> None: ...
700
+
701
+ global___VisToSdkCodeResponse = VisToSdkCodeResponse
@@ -46,6 +46,11 @@ class AssistantStub(object):
46
46
  request_serializer=proto_dot_assistant_dot_assistant__pb2.SimulationToSdkCodeRequest.SerializeToString,
47
47
  response_deserializer=proto_dot_assistant_dot_assistant__pb2.SimulationToSdkCodeResponse.FromString,
48
48
  )
49
+ self.VisToSdkCode = channel.unary_unary(
50
+ '/luminary.proto.assistant.Assistant/VisToSdkCode',
51
+ request_serializer=proto_dot_assistant_dot_assistant__pb2.VisToSdkCodeRequest.SerializeToString,
52
+ response_deserializer=proto_dot_assistant_dot_assistant__pb2.VisToSdkCodeResponse.FromString,
53
+ )
49
54
 
50
55
 
51
56
  class AssistantServicer(object):
@@ -89,6 +94,13 @@ class AssistantServicer(object):
89
94
  context.set_details('Method not implemented!')
90
95
  raise NotImplementedError('Method not implemented!')
91
96
 
97
+ def VisToSdkCode(self, request, context):
98
+ """Converts an visualization extract spec into the equivalent SDK code.
99
+ """
100
+ context.set_code(grpc.StatusCode.UNIMPLEMENTED)
101
+ context.set_details('Method not implemented!')
102
+ raise NotImplementedError('Method not implemented!')
103
+
92
104
 
93
105
  def add_AssistantServicer_to_server(servicer, server):
94
106
  rpc_method_handlers = {
@@ -122,6 +134,11 @@ def add_AssistantServicer_to_server(servicer, server):
122
134
  request_deserializer=proto_dot_assistant_dot_assistant__pb2.SimulationToSdkCodeRequest.FromString,
123
135
  response_serializer=proto_dot_assistant_dot_assistant__pb2.SimulationToSdkCodeResponse.SerializeToString,
124
136
  ),
137
+ 'VisToSdkCode': grpc.unary_unary_rpc_method_handler(
138
+ servicer.VisToSdkCode,
139
+ request_deserializer=proto_dot_assistant_dot_assistant__pb2.VisToSdkCodeRequest.FromString,
140
+ response_serializer=proto_dot_assistant_dot_assistant__pb2.VisToSdkCodeResponse.SerializeToString,
141
+ ),
125
142
  }
126
143
  generic_handler = grpc.method_handlers_generic_handler(
127
144
  'luminary.proto.assistant.Assistant', rpc_method_handlers)
@@ -234,3 +251,20 @@ class Assistant(object):
234
251
  proto_dot_assistant_dot_assistant__pb2.SimulationToSdkCodeResponse.FromString,
235
252
  options, channel_credentials,
236
253
  insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
254
+
255
+ @staticmethod
256
+ def VisToSdkCode(request,
257
+ target,
258
+ options=(),
259
+ channel_credentials=None,
260
+ call_credentials=None,
261
+ insecure=False,
262
+ compression=None,
263
+ wait_for_ready=None,
264
+ timeout=None,
265
+ metadata=None):
266
+ return grpc.experimental.unary_unary(request, target, '/luminary.proto.assistant.Assistant/VisToSdkCode',
267
+ proto_dot_assistant_dot_assistant__pb2.VisToSdkCodeRequest.SerializeToString,
268
+ proto_dot_assistant_dot_assistant__pb2.VisToSdkCodeResponse.FromString,
269
+ options, channel_credentials,
270
+ insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
@@ -37,6 +37,11 @@ class AssistantStub:
37
37
  luminarycloud._proto.assistant.assistant_pb2.SimulationToSdkCodeResponse,
38
38
  ]
39
39
  """Converts a given SimulationParam proto into the equivalent SDK code."""
40
+ VisToSdkCode: grpc.UnaryUnaryMultiCallable[
41
+ luminarycloud._proto.assistant.assistant_pb2.VisToSdkCodeRequest,
42
+ luminarycloud._proto.assistant.assistant_pb2.VisToSdkCodeResponse,
43
+ ]
44
+ """Converts an visualization extract spec into the equivalent SDK code."""
40
45
 
41
46
  class AssistantServicer(metaclass=abc.ABCMeta):
42
47
  """the assistant service implemented by backend"""
@@ -78,5 +83,12 @@ class AssistantServicer(metaclass=abc.ABCMeta):
78
83
  context: grpc.ServicerContext,
79
84
  ) -> luminarycloud._proto.assistant.assistant_pb2.SimulationToSdkCodeResponse:
80
85
  """Converts a given SimulationParam proto into the equivalent SDK code."""
86
+ @abc.abstractmethod
87
+ def VisToSdkCode(
88
+ self,
89
+ request: luminarycloud._proto.assistant.assistant_pb2.VisToSdkCodeRequest,
90
+ context: grpc.ServicerContext,
91
+ ) -> luminarycloud._proto.assistant.assistant_pb2.VisToSdkCodeResponse:
92
+ """Converts an visualization extract spec into the equivalent SDK code."""
81
93
 
82
94
  def add_AssistantServicer_to_server(servicer: AssistantServicer, server: grpc.Server) -> None: ...
@@ -19,7 +19,7 @@ from luminarycloud._proto.quantity import quantity_pb2 as proto_dot_quantity_dot
19
19
  from luminarycloud._proto.lcstatus import lcstatus_pb2 as proto_dot_lcstatus_dot_lcstatus__pb2
20
20
 
21
21
 
22
- DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x15proto/base/base.proto\x12\x13luminary.proto.base\x1a google/protobuf/descriptor.proto\x1a\x19google/protobuf/any.proto\x1a\x1dproto/quantity/quantity.proto\x1a\x1dproto/lcstatus/lcstatus.proto\"/\n\x08\x43hecksum\x12\x10\n\x06sha256\x18\x01 \x01(\x0cH\x00\x42\x0b\n\talgorithmJ\x04\x08\x02\x10\x03\"N\n\x06Status\x12\x0c\n\x04\x63ode\x18\x01 \x01(\x05\x12\x0f\n\x07message\x18\x02 \x01(\t\x12%\n\x07\x64\x65tails\x18\x03 \x03(\x0b\x32\x14.google.protobuf.Any\"x\n\rStatusPayload\x12-\n\x07subcode\x18\x01 \x01(\x0e\x32\x1c.luminary.proto.base.Subcode\x12\x38\n\x06\x64\x65tail\x18\x03 \x03(\x0b\x32(.luminary.proto.base.StatusPayloadDetail\"5\n\x13StatusPayloadDetail\x12\x0f\n\x07message\x18\x10 \x01(\t\x12\r\n\x05where\x18\x11 \x01(\t\"\xb3\x01\n\tJobStatus\x12/\n\x03typ\x18\x01 \x01(\x0e\x32\".luminary.proto.base.JobStatusType\x12-\n\x06status\x18\x02 \x01(\x0b\x32\x1b.luminary.proto.base.StatusH\x00\x12\x35\n\x08lcstatus\x18\x03 \x01(\x0b\x32!.luminary.proto.lcstatus.LCStatusH\x00\x42\x0f\n\rfailed_reason\"\x92\x01\n\tAdVector3\x12+\n\x01x\x18\x01 \x01(\x0b\x32 .luminary.proto.base.AdFloatType\x12+\n\x01y\x18\x02 \x01(\x0b\x32 .luminary.proto.base.AdFloatType\x12+\n\x01z\x18\x03 \x01(\x0b\x32 .luminary.proto.base.AdFloatType\"*\n\x07Vector3\x12\t\n\x01x\x18\x01 \x01(\x01\x12\t\n\x01y\x18\x02 \x01(\x01\x12\t\n\x01z\x18\x03 \x01(\x01\"-\n\nIntVector3\x12\t\n\x01x\x18\x01 \x01(\x03\x12\t\n\x01y\x18\x02 \x01(\x03\x12\t\n\x01z\x18\x03 \x01(\x03\"\x84\x01\n\x07Matrix3\x12\'\n\x01\x61\x18\x01 \x01(\x0b\x32\x1c.luminary.proto.base.Vector3\x12\'\n\x01\x62\x18\x02 \x01(\x0b\x32\x1c.luminary.proto.base.Vector3\x12\'\n\x01\x63\x18\x03 \x01(\x0b\x32\x1c.luminary.proto.base.Vector3\"C\n\x10\x46irstOrderAdType\x12\r\n\x05value\x18\x01 \x01(\x01\x12\x0f\n\x07tangent\x18\x02 \x03(\x01\x12\x0f\n\x07\x61\x64joint\x18\x03 \x03(\x01\"\xb9\x01\n\x11SecondOrderAdType\x12\x34\n\x05value\x18\x01 \x01(\x0b\x32%.luminary.proto.base.FirstOrderAdType\x12\x36\n\x07tangent\x18\x02 \x03(\x0b\x32%.luminary.proto.base.FirstOrderAdType\x12\x36\n\x07\x61\x64joint\x18\x03 \x03(\x0b\x32%.luminary.proto.base.FirstOrderAdType\"3\n\x0e\x45xpressionType\x12\r\n\x05value\x18\x01 \x01(\x01\x12\x12\n\nexpression\x18\x02 \x01(\t\"\xad\x02\n\x0b\x41\x64\x46loatType\x12\x0f\n\x05value\x18\x01 \x01(\x01H\x00\x12<\n\x0b\x66irst_order\x18\x02 \x01(\x0b\x32%.luminary.proto.base.FirstOrderAdTypeH\x00\x12>\n\x0csecond_order\x18\x03 \x01(\x0b\x32&.luminary.proto.base.SecondOrderAdTypeH\x00\x12\x37\n\x08variable\x18\x05 \x01(\x0b\x32#.luminary.proto.base.ExpressionTypeH\x00\x12>\n\rquantity_type\x18\x04 \x01(\x0e\x32%.luminary.proto.quantity.QuantityTypeH\x01\x42\n\n\x08\x61\x64_typesB\n\n\x08quantity\"\x14\n\x03Int\x12\r\n\x05value\x18\x01 \x01(\x03\"\x16\n\x05\x46loat\x12\r\n\x05value\x18\x01 \x01(\x01\"\x15\n\x04\x42ool\x12\r\n\x05value\x18\x01 \x01(\x08\":\n\x05\x41\x64Row\x12\x31\n\x07\x65lement\x18\x01 \x03(\x0b\x32 .luminary.proto.base.AdFloatType\"3\n\x08\x41\x64Matrix\x12\'\n\x03row\x18\x01 \x03(\x0b\x32\x1a.luminary.proto.base.AdRow*\xc5\x02\n\x07Subcode\x12\x17\n\x13SUBCODE_UNSPECIFIED\x10\x00\x12\x1a\n\x16SUBCODE_USER_NOT_FOUND\x10\x01\x12 \n\x1cSUBCODE_JOB_CANCELED_BY_USER\x10\x02\x12#\n\x1fSUBCODE_JOB_CANCELED_DIVERGENCE\x10\x03\x12$\n SUBCODE_JOB_CANCELED_SETUP_ERROR\x10\x04\x12\x1f\n\x1bSUBCODE_INCOMPATIBLE_CLIENT\x10\x05\x12\x1e\n\x1aSUBCODE_INSUFFICIENT_QUOTA\x10\x06\x12/\n+SUBCODE_EMAIL_DOMAIN_NOT_IN_ALLOWED_DOMAINS\x10\x07\x12&\n\"SUBCODE_TRIAL_ACCOUNT_USER_BLOCKED\x10\x08*t\n\rJobStatusType\x12\x0b\n\x07Invalid\x10\x00\x12\n\n\x06\x41\x63tive\x10\x01\x12\r\n\tCompleted\x10\x02\x12\n\n\x06\x46\x61iled\x10\x03\x12\r\n\tSuspended\x10\x04\x12\x10\n\x0cPendingRetry\x10\x05\x12\x0e\n\nSuspending\x10\x06*\x80\x01\n\x10Vector3Component\x12\x1e\n\x1aVECTOR_3_COMPONENT_INVALID\x10\x00\x12\x18\n\x14VECTOR_3_COMPONENT_X\x10\x01\x12\x18\n\x14VECTOR_3_COMPONENT_Y\x10\x02\x12\x18\n\x14VECTOR_3_COMPONENT_Z\x10\x03\x42#Z!luminarycloud.com/core/proto/baseb\x06proto3')
22
+ DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x15proto/base/base.proto\x12\x13luminary.proto.base\x1a google/protobuf/descriptor.proto\x1a\x19google/protobuf/any.proto\x1a\x1dproto/quantity/quantity.proto\x1a\x1dproto/lcstatus/lcstatus.proto\"/\n\x08\x43hecksum\x12\x10\n\x06sha256\x18\x01 \x01(\x0cH\x00\x42\x0b\n\talgorithmJ\x04\x08\x02\x10\x03\"N\n\x06Status\x12\x0c\n\x04\x63ode\x18\x01 \x01(\x05\x12\x0f\n\x07message\x18\x02 \x01(\t\x12%\n\x07\x64\x65tails\x18\x03 \x03(\x0b\x32\x14.google.protobuf.Any\"x\n\rStatusPayload\x12-\n\x07subcode\x18\x01 \x01(\x0e\x32\x1c.luminary.proto.base.Subcode\x12\x38\n\x06\x64\x65tail\x18\x03 \x03(\x0b\x32(.luminary.proto.base.StatusPayloadDetail\"5\n\x13StatusPayloadDetail\x12\x0f\n\x07message\x18\x10 \x01(\t\x12\r\n\x05where\x18\x11 \x01(\t\"\xb3\x01\n\tJobStatus\x12/\n\x03typ\x18\x01 \x01(\x0e\x32\".luminary.proto.base.JobStatusType\x12-\n\x06status\x18\x02 \x01(\x0b\x32\x1b.luminary.proto.base.StatusH\x00\x12\x35\n\x08lcstatus\x18\x03 \x01(\x0b\x32!.luminary.proto.lcstatus.LCStatusH\x00\x42\x0f\n\rfailed_reason\"\x92\x01\n\tAdVector3\x12+\n\x01x\x18\x01 \x01(\x0b\x32 .luminary.proto.base.AdFloatType\x12+\n\x01y\x18\x02 \x01(\x0b\x32 .luminary.proto.base.AdFloatType\x12+\n\x01z\x18\x03 \x01(\x0b\x32 .luminary.proto.base.AdFloatType\"*\n\x07Vector3\x12\t\n\x01x\x18\x01 \x01(\x01\x12\t\n\x01y\x18\x02 \x01(\x01\x12\t\n\x01z\x18\x03 \x01(\x01\"-\n\nIntVector3\x12\t\n\x01x\x18\x01 \x01(\x03\x12\t\n\x01y\x18\x02 \x01(\x03\x12\t\n\x01z\x18\x03 \x01(\x03\"\x84\x01\n\x07Matrix3\x12\'\n\x01\x61\x18\x01 \x01(\x0b\x32\x1c.luminary.proto.base.Vector3\x12\'\n\x01\x62\x18\x02 \x01(\x0b\x32\x1c.luminary.proto.base.Vector3\x12\'\n\x01\x63\x18\x03 \x01(\x0b\x32\x1c.luminary.proto.base.Vector3\"C\n\x10\x46irstOrderAdType\x12\r\n\x05value\x18\x01 \x01(\x01\x12\x0f\n\x07tangent\x18\x02 \x03(\x01\x12\x0f\n\x07\x61\x64joint\x18\x03 \x03(\x01\"\xb9\x01\n\x11SecondOrderAdType\x12\x34\n\x05value\x18\x01 \x01(\x0b\x32%.luminary.proto.base.FirstOrderAdType\x12\x36\n\x07tangent\x18\x02 \x03(\x0b\x32%.luminary.proto.base.FirstOrderAdType\x12\x36\n\x07\x61\x64joint\x18\x03 \x03(\x0b\x32%.luminary.proto.base.FirstOrderAdType\"3\n\x0e\x45xpressionType\x12\r\n\x05value\x18\x01 \x01(\x01\x12\x12\n\nexpression\x18\x02 \x01(\t\"\xad\x02\n\x0b\x41\x64\x46loatType\x12\x0f\n\x05value\x18\x01 \x01(\x01H\x00\x12<\n\x0b\x66irst_order\x18\x02 \x01(\x0b\x32%.luminary.proto.base.FirstOrderAdTypeH\x00\x12>\n\x0csecond_order\x18\x03 \x01(\x0b\x32&.luminary.proto.base.SecondOrderAdTypeH\x00\x12\x37\n\x08variable\x18\x05 \x01(\x0b\x32#.luminary.proto.base.ExpressionTypeH\x00\x12>\n\rquantity_type\x18\x04 \x01(\x0e\x32%.luminary.proto.quantity.QuantityTypeH\x01\x42\n\n\x08\x61\x64_typesB\n\n\x08quantity\"\x14\n\x03Int\x12\r\n\x05value\x18\x01 \x01(\x03\"\x16\n\x05\x46loat\x12\r\n\x05value\x18\x01 \x01(\x01\"\x15\n\x04\x42ool\x12\r\n\x05value\x18\x01 \x01(\x08\":\n\x05\x41\x64Row\x12\x31\n\x07\x65lement\x18\x01 \x03(\x0b\x32 .luminary.proto.base.AdFloatType\"3\n\x08\x41\x64Matrix\x12\'\n\x03row\x18\x01 \x03(\x0b\x32\x1a.luminary.proto.base.AdRow*\xef\x02\n\x07Subcode\x12\x17\n\x13SUBCODE_UNSPECIFIED\x10\x00\x12\x1a\n\x16SUBCODE_USER_NOT_FOUND\x10\x01\x12 \n\x1cSUBCODE_JOB_CANCELED_BY_USER\x10\x02\x12#\n\x1fSUBCODE_JOB_CANCELED_DIVERGENCE\x10\x03\x12$\n SUBCODE_JOB_CANCELED_SETUP_ERROR\x10\x04\x12\x1f\n\x1bSUBCODE_INCOMPATIBLE_CLIENT\x10\x05\x12\x1e\n\x1aSUBCODE_INSUFFICIENT_QUOTA\x10\x06\x12/\n+SUBCODE_EMAIL_DOMAIN_NOT_IN_ALLOWED_DOMAINS\x10\x07\x12&\n\"SUBCODE_TRIAL_ACCOUNT_USER_BLOCKED\x10\x08\x12(\n$SUBCODE_UNLIMITED_PLAN_EXCEEDS_QUOTA\x10\t*t\n\rJobStatusType\x12\x0b\n\x07Invalid\x10\x00\x12\n\n\x06\x41\x63tive\x10\x01\x12\r\n\tCompleted\x10\x02\x12\n\n\x06\x46\x61iled\x10\x03\x12\r\n\tSuspended\x10\x04\x12\x10\n\x0cPendingRetry\x10\x05\x12\x0e\n\nSuspending\x10\x06*\x80\x01\n\x10Vector3Component\x12\x1e\n\x1aVECTOR_3_COMPONENT_INVALID\x10\x00\x12\x18\n\x14VECTOR_3_COMPONENT_X\x10\x01\x12\x18\n\x14VECTOR_3_COMPONENT_Y\x10\x02\x12\x18\n\x14VECTOR_3_COMPONENT_Z\x10\x03\x42#Z!luminarycloud.com/core/proto/baseb\x06proto3')
23
23
 
24
24
  _SUBCODE = DESCRIPTOR.enum_types_by_name['Subcode']
25
25
  Subcode = enum_type_wrapper.EnumTypeWrapper(_SUBCODE)
@@ -36,6 +36,7 @@ SUBCODE_INCOMPATIBLE_CLIENT = 5
36
36
  SUBCODE_INSUFFICIENT_QUOTA = 6
37
37
  SUBCODE_EMAIL_DOMAIN_NOT_IN_ALLOWED_DOMAINS = 7
38
38
  SUBCODE_TRIAL_ACCOUNT_USER_BLOCKED = 8
39
+ SUBCODE_UNLIMITED_PLAN_EXCEEDS_QUOTA = 9
39
40
  Invalid = 0
40
41
  Active = 1
41
42
  Completed = 2
@@ -198,11 +199,11 @@ if _descriptor._USE_C_DESCRIPTORS == False:
198
199
  DESCRIPTOR._options = None
199
200
  DESCRIPTOR._serialized_options = b'Z!luminarycloud.com/core/proto/base'
200
201
  _SUBCODE._serialized_start=1829
201
- _SUBCODE._serialized_end=2154
202
- _JOBSTATUSTYPE._serialized_start=2156
203
- _JOBSTATUSTYPE._serialized_end=2272
204
- _VECTOR3COMPONENT._serialized_start=2275
205
- _VECTOR3COMPONENT._serialized_end=2403
202
+ _SUBCODE._serialized_end=2196
203
+ _JOBSTATUSTYPE._serialized_start=2198
204
+ _JOBSTATUSTYPE._serialized_end=2314
205
+ _VECTOR3COMPONENT._serialized_start=2317
206
+ _VECTOR3COMPONENT._serialized_end=2445
206
207
  _CHECKSUM._serialized_start=169
207
208
  _CHECKSUM._serialized_end=216
208
209
  _STATUS._serialized_start=218
@@ -48,6 +48,8 @@ class _SubcodeEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTy
48
48
  """Set if the user's email domain is not in the list of allowed domains."""
49
49
  SUBCODE_TRIAL_ACCOUNT_USER_BLOCKED: _Subcode.ValueType # 8
50
50
  """Set if a trial user attempts to access restricted features."""
51
+ SUBCODE_UNLIMITED_PLAN_EXCEEDS_QUOTA: _Subcode.ValueType # 9
52
+ """Set if unlimited plan user exceeds quota for a given resource."""
51
53
 
52
54
  class Subcode(_Subcode, metaclass=_SubcodeEnumTypeWrapper):
53
55
  """Subcode is stored in StatusPayload.subcode. It classifies the error type in
@@ -75,6 +77,8 @@ SUBCODE_EMAIL_DOMAIN_NOT_IN_ALLOWED_DOMAINS: Subcode.ValueType # 7
75
77
  """Set if the user's email domain is not in the list of allowed domains."""
76
78
  SUBCODE_TRIAL_ACCOUNT_USER_BLOCKED: Subcode.ValueType # 8
77
79
  """Set if a trial user attempts to access restricted features."""
80
+ SUBCODE_UNLIMITED_PLAN_EXCEEDS_QUOTA: Subcode.ValueType # 9
81
+ """Set if unlimited plan user exceeds quota for a given resource."""
78
82
  global___Subcode = Subcode
79
83
 
80
84
  class _JobStatusType: