luminarycloud 0.15.5__py3-none-any.whl → 0.16.0__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 (52) hide show
  1. luminarycloud/_helpers/__init__.py +1 -0
  2. luminarycloud/_helpers/_code_representation.py +18 -3
  3. luminarycloud/_helpers/download.py +67 -1
  4. luminarycloud/_proto/api/v0/luminarycloud/inference/inference_pb2.py +9 -9
  5. luminarycloud/_proto/api/v0/luminarycloud/inference/inference_pb2.pyi +7 -4
  6. luminarycloud/_proto/api/v0/luminarycloud/physics_ai/physics_ai_pb2.py +45 -21
  7. luminarycloud/_proto/api/v0/luminarycloud/physics_ai/physics_ai_pb2.pyi +65 -0
  8. luminarycloud/_proto/api/v0/luminarycloud/physics_ai/physics_ai_pb2_grpc.py +34 -0
  9. luminarycloud/_proto/api/v0/luminarycloud/physics_ai/physics_ai_pb2_grpc.pyi +12 -0
  10. luminarycloud/_proto/api/v0/luminarycloud/thirdpartyintegration/onshape/onshape_pb2.py +194 -7
  11. luminarycloud/_proto/api/v0/luminarycloud/thirdpartyintegration/onshape/onshape_pb2.pyi +403 -1
  12. luminarycloud/_proto/api/v0/luminarycloud/thirdpartyintegration/onshape/onshape_pb2_grpc.py +171 -0
  13. luminarycloud/_proto/api/v0/luminarycloud/thirdpartyintegration/onshape/onshape_pb2_grpc.pyi +64 -0
  14. luminarycloud/_proto/api/v0/luminarycloud/upload/upload_pb2.py +4 -2
  15. luminarycloud/_proto/api/v0/luminarycloud/upload/upload_pb2_grpc.py +34 -0
  16. luminarycloud/_proto/api/v0/luminarycloud/upload/upload_pb2_grpc.pyi +12 -0
  17. luminarycloud/_proto/assistant/assistant_pb2.py +82 -61
  18. luminarycloud/_proto/assistant/assistant_pb2.pyi +40 -0
  19. luminarycloud/_proto/assistant/assistant_pb2_grpc.py +34 -0
  20. luminarycloud/_proto/assistant/assistant_pb2_grpc.pyi +12 -0
  21. luminarycloud/_proto/base/base_pb2.py +7 -6
  22. luminarycloud/_proto/base/base_pb2.pyi +4 -0
  23. luminarycloud/_proto/client/simulation_pb2.py +188 -186
  24. luminarycloud/_proto/client/simulation_pb2.pyi +10 -2
  25. luminarycloud/_proto/geometry/geometry_pb2.py +62 -62
  26. luminarycloud/_proto/geometry/geometry_pb2.pyi +5 -1
  27. luminarycloud/_proto/inferenceservice/inferenceservice_pb2.py +11 -11
  28. luminarycloud/_proto/inferenceservice/inferenceservice_pb2.pyi +12 -4
  29. luminarycloud/_proto/quantity/quantity_pb2.py +11 -2
  30. luminarycloud/_proto/quantity/quantity_pb2.pyi +6 -0
  31. luminarycloud/_proto/table/table_pb2.pyi +4 -2
  32. luminarycloud/_proto/upload/upload_pb2.py +27 -7
  33. luminarycloud/_proto/upload/upload_pb2.pyi +31 -0
  34. luminarycloud/enum/quantity_type.py +15 -0
  35. luminarycloud/mesh.py +8 -1
  36. luminarycloud/params/simulation/physics/fluid/solution_controls/fluid_relaxation_method/fluid_implicit_relaxation/robust_startup/__init__.py +1 -0
  37. luminarycloud/params/simulation/physics/fluid/solution_controls/fluid_relaxation_method/fluid_implicit_relaxation/robust_startup/robust_startup_auto_.py +30 -0
  38. luminarycloud/params/simulation/physics/fluid/solution_controls/fluid_relaxation_method/fluid_implicit_relaxation/robust_startup/robust_startup_on_.py +1 -1
  39. luminarycloud/params/simulation/physics/fluid/solution_controls/fluid_relaxation_method/fluid_implicit_relaxation_.py +6 -2
  40. luminarycloud/params/simulation/physics/fluid/solution_controls_fluid_.py +4 -0
  41. luminarycloud/physics_ai/__init__.py +4 -0
  42. luminarycloud/physics_ai/inference.py +140 -4
  43. luminarycloud/physics_ai/solution.py +60 -0
  44. luminarycloud/tables.py +6 -8
  45. luminarycloud/vis/data_extraction.py +4 -5
  46. luminarycloud/vis/display.py +26 -11
  47. luminarycloud/vis/filters.py +98 -65
  48. luminarycloud/vis/primitives.py +3 -2
  49. luminarycloud/vis/visualization.py +197 -40
  50. {luminarycloud-0.15.5.dist-info → luminarycloud-0.16.0.dist-info}/METADATA +1 -1
  51. {luminarycloud-0.15.5.dist-info → luminarycloud-0.16.0.dist-info}/RECORD +52 -50
  52. {luminarycloud-0.15.5.dist-info → luminarycloud-0.16.0.dist-info}/WHEEL +0 -0
@@ -6,16 +6,33 @@ import builtins
6
6
  import collections.abc
7
7
  import google.protobuf.descriptor
8
8
  import google.protobuf.internal.containers
9
+ import google.protobuf.internal.enum_type_wrapper
9
10
  import google.protobuf.message
10
11
  import sys
12
+ import typing
11
13
 
12
- if sys.version_info >= (3, 8):
14
+ if sys.version_info >= (3, 10):
13
15
  import typing as typing_extensions
14
16
  else:
15
17
  import typing_extensions
16
18
 
17
19
  DESCRIPTOR: google.protobuf.descriptor.FileDescriptor
18
20
 
21
+ class _OnshapeElementType:
22
+ ValueType = typing.NewType("ValueType", builtins.int)
23
+ V: typing_extensions.TypeAlias = ValueType
24
+
25
+ class _OnshapeElementTypeEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[_OnshapeElementType.ValueType], builtins.type): # noqa: F821
26
+ DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor
27
+ PART_STUDIO: _OnshapeElementType.ValueType # 0
28
+ ASSEMBLY: _OnshapeElementType.ValueType # 1
29
+
30
+ class OnshapeElementType(_OnshapeElementType, metaclass=_OnshapeElementTypeEnumTypeWrapper): ...
31
+
32
+ PART_STUDIO: OnshapeElementType.ValueType # 0
33
+ ASSEMBLY: OnshapeElementType.ValueType # 1
34
+ global___OnshapeElementType = OnshapeElementType
35
+
19
36
  class GetAuthenticationStatusRequest(google.protobuf.message.Message):
20
37
  DESCRIPTOR: google.protobuf.descriptor.Descriptor
21
38
 
@@ -73,6 +90,391 @@ class OnshapePath(google.protobuf.message.Message):
73
90
 
74
91
  global___OnshapePath = OnshapePath
75
92
 
93
+ class OnshapeVariable(google.protobuf.message.Message):
94
+ DESCRIPTOR: google.protobuf.descriptor.Descriptor
95
+
96
+ TYPE_FIELD_NUMBER: builtins.int
97
+ NAME_FIELD_NUMBER: builtins.int
98
+ VALUE_FIELD_NUMBER: builtins.int
99
+ EXPRESSION_FIELD_NUMBER: builtins.int
100
+ DESCRIPTION_FIELD_NUMBER: builtins.int
101
+ type: builtins.str
102
+ name: builtins.str
103
+ value: builtins.str
104
+ expression: builtins.str
105
+ description: builtins.str
106
+ def __init__(
107
+ self,
108
+ *,
109
+ type: builtins.str = ...,
110
+ name: builtins.str = ...,
111
+ value: builtins.str = ...,
112
+ expression: builtins.str = ...,
113
+ description: builtins.str = ...,
114
+ ) -> None: ...
115
+ def ClearField(self, field_name: typing_extensions.Literal["description", b"description", "expression", b"expression", "name", b"name", "type", b"type", "value", b"value"]) -> None: ...
116
+
117
+ global___OnshapeVariable = OnshapeVariable
118
+
119
+ class OnshapeCompanyInfo(google.protobuf.message.Message):
120
+ DESCRIPTOR: google.protobuf.descriptor.Descriptor
121
+
122
+ ID_FIELD_NUMBER: builtins.int
123
+ NAME_FIELD_NUMBER: builtins.int
124
+ PREFIX_FIELD_NUMBER: builtins.int
125
+ id: builtins.str
126
+ name: builtins.str
127
+ prefix: builtins.str
128
+ def __init__(
129
+ self,
130
+ *,
131
+ id: builtins.str = ...,
132
+ name: builtins.str = ...,
133
+ prefix: builtins.str = ...,
134
+ ) -> None: ...
135
+ def ClearField(self, field_name: typing_extensions.Literal["id", b"id", "name", b"name", "prefix", b"prefix"]) -> None: ...
136
+
137
+ global___OnshapeCompanyInfo = OnshapeCompanyInfo
138
+
139
+ class OnshapeDocumentVersion(google.protobuf.message.Message):
140
+ DESCRIPTOR: google.protobuf.descriptor.Descriptor
141
+
142
+ ID_FIELD_NUMBER: builtins.int
143
+ NAME_FIELD_NUMBER: builtins.int
144
+ MODIFIED_TIME_FIELD_NUMBER: builtins.int
145
+ CREATION_TIME_FIELD_NUMBER: builtins.int
146
+ id: builtins.str
147
+ name: builtins.str
148
+ modified_time: builtins.int
149
+ creation_time: builtins.int
150
+ def __init__(
151
+ self,
152
+ *,
153
+ id: builtins.str = ...,
154
+ name: builtins.str = ...,
155
+ modified_time: builtins.int = ...,
156
+ creation_time: builtins.int = ...,
157
+ ) -> None: ...
158
+ def ClearField(self, field_name: typing_extensions.Literal["creation_time", b"creation_time", "id", b"id", "modified_time", b"modified_time", "name", b"name"]) -> None: ...
159
+
160
+ global___OnshapeDocumentVersion = OnshapeDocumentVersion
161
+
162
+ class OnshapeDocumentWorkspace(google.protobuf.message.Message):
163
+ DESCRIPTOR: google.protobuf.descriptor.Descriptor
164
+
165
+ ID_FIELD_NUMBER: builtins.int
166
+ NAME_FIELD_NUMBER: builtins.int
167
+ MODIFIED_TIME_FIELD_NUMBER: builtins.int
168
+ CREATION_TIME_FIELD_NUMBER: builtins.int
169
+ id: builtins.str
170
+ name: builtins.str
171
+ modified_time: builtins.int
172
+ creation_time: builtins.int
173
+ def __init__(
174
+ self,
175
+ *,
176
+ id: builtins.str = ...,
177
+ name: builtins.str = ...,
178
+ modified_time: builtins.int = ...,
179
+ creation_time: builtins.int = ...,
180
+ ) -> None: ...
181
+ def ClearField(self, field_name: typing_extensions.Literal["creation_time", b"creation_time", "id", b"id", "modified_time", b"modified_time", "name", b"name"]) -> None: ...
182
+
183
+ global___OnshapeDocumentWorkspace = OnshapeDocumentWorkspace
184
+
185
+ class OnshapeDocument(google.protobuf.message.Message):
186
+ DESCRIPTOR: google.protobuf.descriptor.Descriptor
187
+
188
+ ID_FIELD_NUMBER: builtins.int
189
+ NAME_FIELD_NUMBER: builtins.int
190
+ THUMBNAIL_FIELD_NUMBER: builtins.int
191
+ VERSIONS_FIELD_NUMBER: builtins.int
192
+ WORKSPACES_FIELD_NUMBER: builtins.int
193
+ MODIFIED_TIME_FIELD_NUMBER: builtins.int
194
+ CREATION_TIME_FIELD_NUMBER: builtins.int
195
+ id: builtins.str
196
+ name: builtins.str
197
+ thumbnail: builtins.bytes
198
+ """Thumbnail in PNG"""
199
+ @property
200
+ def versions(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___OnshapeDocumentVersion]: ...
201
+ @property
202
+ def workspaces(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___OnshapeDocumentWorkspace]: ...
203
+ modified_time: builtins.int
204
+ creation_time: builtins.int
205
+ def __init__(
206
+ self,
207
+ *,
208
+ id: builtins.str = ...,
209
+ name: builtins.str = ...,
210
+ thumbnail: builtins.bytes = ...,
211
+ versions: collections.abc.Iterable[global___OnshapeDocumentVersion] | None = ...,
212
+ workspaces: collections.abc.Iterable[global___OnshapeDocumentWorkspace] | None = ...,
213
+ modified_time: builtins.int = ...,
214
+ creation_time: builtins.int = ...,
215
+ ) -> None: ...
216
+ def ClearField(self, field_name: typing_extensions.Literal["creation_time", b"creation_time", "id", b"id", "modified_time", b"modified_time", "name", b"name", "thumbnail", b"thumbnail", "versions", b"versions", "workspaces", b"workspaces"]) -> None: ...
217
+
218
+ global___OnshapeDocument = OnshapeDocument
219
+
220
+ class OnshapeDocumentOnly(google.protobuf.message.Message):
221
+ DESCRIPTOR: google.protobuf.descriptor.Descriptor
222
+
223
+ ID_FIELD_NUMBER: builtins.int
224
+ NAME_FIELD_NUMBER: builtins.int
225
+ THUMBNAIL_FIELD_NUMBER: builtins.int
226
+ MODIFIED_TIME_FIELD_NUMBER: builtins.int
227
+ CREATION_TIME_FIELD_NUMBER: builtins.int
228
+ id: builtins.str
229
+ name: builtins.str
230
+ thumbnail: builtins.bytes
231
+ """Thumbnail in PNG"""
232
+ modified_time: builtins.int
233
+ creation_time: builtins.int
234
+ def __init__(
235
+ self,
236
+ *,
237
+ id: builtins.str = ...,
238
+ name: builtins.str = ...,
239
+ thumbnail: builtins.bytes = ...,
240
+ modified_time: builtins.int = ...,
241
+ creation_time: builtins.int = ...,
242
+ ) -> None: ...
243
+ def ClearField(self, field_name: typing_extensions.Literal["creation_time", b"creation_time", "id", b"id", "modified_time", b"modified_time", "name", b"name", "thumbnail", b"thumbnail"]) -> None: ...
244
+
245
+ global___OnshapeDocumentOnly = OnshapeDocumentOnly
246
+
247
+ class ListDocumentsRequest(google.protobuf.message.Message):
248
+ DESCRIPTOR: google.protobuf.descriptor.Descriptor
249
+
250
+ NEXT_PAGE_FIELD_NUMBER: builtins.int
251
+ PREVIOUS_PAGE_FIELD_NUMBER: builtins.int
252
+ COMPANY_PREFIX_FIELD_NUMBER: builtins.int
253
+ next_page: builtins.str
254
+ """Value from reply to provide to get the next page.
255
+ Only one of next_page or previous_page should be supplied.
256
+ If neither supplied, then the first page is returned.
257
+ """
258
+ previous_page: builtins.str
259
+ """Value from reply to provide to get the previous page.
260
+ Only one of next_page or previous_page should be supplied.
261
+ If neither supplied, then the first page is returned.
262
+ """
263
+ company_prefix: builtins.str
264
+ """Company Prefix, as in https://{company_prefix}.onshape.com/...
265
+ Not needed if using next_page or previous_page
266
+ """
267
+ def __init__(
268
+ self,
269
+ *,
270
+ next_page: builtins.str = ...,
271
+ previous_page: builtins.str = ...,
272
+ company_prefix: builtins.str = ...,
273
+ ) -> None: ...
274
+ def ClearField(self, field_name: typing_extensions.Literal["company_prefix", b"company_prefix", "next_page", b"next_page", "previous_page", b"previous_page"]) -> None: ...
275
+
276
+ global___ListDocumentsRequest = ListDocumentsRequest
277
+
278
+ class ListDocumentsReply(google.protobuf.message.Message):
279
+ DESCRIPTOR: google.protobuf.descriptor.Descriptor
280
+
281
+ DOCUMENTS_FIELD_NUMBER: builtins.int
282
+ NEXT_PAGE_FIELD_NUMBER: builtins.int
283
+ PREVIOUS_PAGE_FIELD_NUMBER: builtins.int
284
+ @property
285
+ def documents(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___OnshapeDocumentOnly]: ...
286
+ next_page: builtins.str
287
+ """(Encrypted) value to provide in request to get the next page.
288
+ If empty, then there are no more pages.
289
+ """
290
+ previous_page: builtins.str
291
+ """(Encrypted) value to provide in request to get the previous page.
292
+ If empty, there are no previous pages.
293
+ """
294
+ def __init__(
295
+ self,
296
+ *,
297
+ documents: collections.abc.Iterable[global___OnshapeDocumentOnly] | None = ...,
298
+ next_page: builtins.str = ...,
299
+ previous_page: builtins.str = ...,
300
+ ) -> None: ...
301
+ def ClearField(self, field_name: typing_extensions.Literal["documents", b"documents", "next_page", b"next_page", "previous_page", b"previous_page"]) -> None: ...
302
+
303
+ global___ListDocumentsReply = ListDocumentsReply
304
+
305
+ class ListWorkspacesAndVersionsRequest(google.protobuf.message.Message):
306
+ DESCRIPTOR: google.protobuf.descriptor.Descriptor
307
+
308
+ PATH_FIELD_NUMBER: builtins.int
309
+ @property
310
+ def path(self) -> global___OnshapePath: ...
311
+ def __init__(
312
+ self,
313
+ *,
314
+ path: global___OnshapePath | None = ...,
315
+ ) -> None: ...
316
+ def HasField(self, field_name: typing_extensions.Literal["path", b"path"]) -> builtins.bool: ...
317
+ def ClearField(self, field_name: typing_extensions.Literal["path", b"path"]) -> None: ...
318
+
319
+ global___ListWorkspacesAndVersionsRequest = ListWorkspacesAndVersionsRequest
320
+
321
+ class ListWorkspacesAndVersionsReply(google.protobuf.message.Message):
322
+ DESCRIPTOR: google.protobuf.descriptor.Descriptor
323
+
324
+ WORKSPACES_FIELD_NUMBER: builtins.int
325
+ VERSIONS_FIELD_NUMBER: builtins.int
326
+ @property
327
+ def workspaces(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___OnshapeDocumentWorkspace]: ...
328
+ @property
329
+ def versions(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___OnshapeDocumentVersion]: ...
330
+ def __init__(
331
+ self,
332
+ *,
333
+ workspaces: collections.abc.Iterable[global___OnshapeDocumentWorkspace] | None = ...,
334
+ versions: collections.abc.Iterable[global___OnshapeDocumentVersion] | None = ...,
335
+ ) -> None: ...
336
+ def ClearField(self, field_name: typing_extensions.Literal["versions", b"versions", "workspaces", b"workspaces"]) -> None: ...
337
+
338
+ global___ListWorkspacesAndVersionsReply = ListWorkspacesAndVersionsReply
339
+
340
+ class ListDocumentsWithWorkspaceAndVersionsRequest(google.protobuf.message.Message):
341
+ DESCRIPTOR: google.protobuf.descriptor.Descriptor
342
+
343
+ NEXT_PAGE_FIELD_NUMBER: builtins.int
344
+ PREVIOUS_PAGE_FIELD_NUMBER: builtins.int
345
+ COMPANY_PREFIX_FIELD_NUMBER: builtins.int
346
+ next_page: builtins.str
347
+ """Value from reply to provide to get the next page.
348
+ Only one of next_page or previous_page should be supplied.
349
+ If neither supplied, then the first page is returned.
350
+ """
351
+ previous_page: builtins.str
352
+ """Value from reply to provide to get the previous page.
353
+ Only one of next_page or previous_page should be supplied.
354
+ If neither supplied, then the first page is returned.
355
+ """
356
+ company_prefix: builtins.str
357
+ """Company Prefix, as in https://{company_prefix}.onshape.com/...
358
+ Not needed if using next_page or previous_page
359
+ """
360
+ def __init__(
361
+ self,
362
+ *,
363
+ next_page: builtins.str = ...,
364
+ previous_page: builtins.str = ...,
365
+ company_prefix: builtins.str = ...,
366
+ ) -> None: ...
367
+ def ClearField(self, field_name: typing_extensions.Literal["company_prefix", b"company_prefix", "next_page", b"next_page", "previous_page", b"previous_page"]) -> None: ...
368
+
369
+ global___ListDocumentsWithWorkspaceAndVersionsRequest = ListDocumentsWithWorkspaceAndVersionsRequest
370
+
371
+ class ListDocumentsWithWorkspaceAndVersionsReply(google.protobuf.message.Message):
372
+ DESCRIPTOR: google.protobuf.descriptor.Descriptor
373
+
374
+ DOCUMENTS_FIELD_NUMBER: builtins.int
375
+ NEXT_PAGE_FIELD_NUMBER: builtins.int
376
+ PREVIOUS_PAGE_FIELD_NUMBER: builtins.int
377
+ @property
378
+ def documents(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___OnshapeDocument]: ...
379
+ next_page: builtins.str
380
+ """(Encrypted) value to provide in request to get the next page.
381
+ If empty, then there are no more pages.
382
+ """
383
+ previous_page: builtins.str
384
+ """(Encrypted) value to provide in request to get the previous page.
385
+ If empty, there are no previous pages.
386
+ """
387
+ def __init__(
388
+ self,
389
+ *,
390
+ documents: collections.abc.Iterable[global___OnshapeDocument] | None = ...,
391
+ next_page: builtins.str = ...,
392
+ previous_page: builtins.str = ...,
393
+ ) -> None: ...
394
+ def ClearField(self, field_name: typing_extensions.Literal["documents", b"documents", "next_page", b"next_page", "previous_page", b"previous_page"]) -> None: ...
395
+
396
+ global___ListDocumentsWithWorkspaceAndVersionsReply = ListDocumentsWithWorkspaceAndVersionsReply
397
+
398
+ class OnshapeElement(google.protobuf.message.Message):
399
+ DESCRIPTOR: google.protobuf.descriptor.Descriptor
400
+
401
+ ID_FIELD_NUMBER: builtins.int
402
+ NAME_FIELD_NUMBER: builtins.int
403
+ TYPE_FIELD_NUMBER: builtins.int
404
+ THUMBNAIL_FIELD_NUMBER: builtins.int
405
+ id: builtins.str
406
+ name: builtins.str
407
+ type: global___OnshapeElementType.ValueType
408
+ thumbnail: builtins.bytes
409
+ """Thumbnail in PNG"""
410
+ def __init__(
411
+ self,
412
+ *,
413
+ id: builtins.str = ...,
414
+ name: builtins.str = ...,
415
+ type: global___OnshapeElementType.ValueType = ...,
416
+ thumbnail: builtins.bytes = ...,
417
+ ) -> None: ...
418
+ def ClearField(self, field_name: typing_extensions.Literal["id", b"id", "name", b"name", "thumbnail", b"thumbnail", "type", b"type"]) -> None: ...
419
+
420
+ global___OnshapeElement = OnshapeElement
421
+
422
+ class ListImportablesForSelectionRequest(google.protobuf.message.Message):
423
+ DESCRIPTOR: google.protobuf.descriptor.Descriptor
424
+
425
+ PATH_FIELD_NUMBER: builtins.int
426
+ @property
427
+ def path(self) -> global___OnshapePath:
428
+ """Element should be empty in path (will be ignored)"""
429
+ def __init__(
430
+ self,
431
+ *,
432
+ path: global___OnshapePath | None = ...,
433
+ ) -> None: ...
434
+ def HasField(self, field_name: typing_extensions.Literal["path", b"path"]) -> builtins.bool: ...
435
+ def ClearField(self, field_name: typing_extensions.Literal["path", b"path"]) -> None: ...
436
+
437
+ global___ListImportablesForSelectionRequest = ListImportablesForSelectionRequest
438
+
439
+ class ListImportablesForSelectionReply(google.protobuf.message.Message):
440
+ DESCRIPTOR: google.protobuf.descriptor.Descriptor
441
+
442
+ ELEMENTS_FIELD_NUMBER: builtins.int
443
+ @property
444
+ def elements(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___OnshapeElement]: ...
445
+ def __init__(
446
+ self,
447
+ *,
448
+ elements: collections.abc.Iterable[global___OnshapeElement] | None = ...,
449
+ ) -> None: ...
450
+ def ClearField(self, field_name: typing_extensions.Literal["elements", b"elements"]) -> None: ...
451
+
452
+ global___ListImportablesForSelectionReply = ListImportablesForSelectionReply
453
+
454
+ class GetCompanyPrefixesRequest(google.protobuf.message.Message):
455
+ DESCRIPTOR: google.protobuf.descriptor.Descriptor
456
+
457
+ def __init__(
458
+ self,
459
+ ) -> None: ...
460
+
461
+ global___GetCompanyPrefixesRequest = GetCompanyPrefixesRequest
462
+
463
+ class GetCompanyPrefixesReply(google.protobuf.message.Message):
464
+ DESCRIPTOR: google.protobuf.descriptor.Descriptor
465
+
466
+ COMPANIES_FIELD_NUMBER: builtins.int
467
+ @property
468
+ def companies(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___OnshapeCompanyInfo]: ...
469
+ def __init__(
470
+ self,
471
+ *,
472
+ companies: collections.abc.Iterable[global___OnshapeCompanyInfo] | None = ...,
473
+ ) -> None: ...
474
+ def ClearField(self, field_name: typing_extensions.Literal["companies", b"companies"]) -> None: ...
475
+
476
+ global___GetCompanyPrefixesReply = GetCompanyPrefixesReply
477
+
76
478
  class FetchVariablesRequest(google.protobuf.message.Message):
77
479
  DESCRIPTOR: google.protobuf.descriptor.Descriptor
78
480
 
@@ -26,6 +26,31 @@ class OnshapeServiceStub(object):
26
26
  request_serializer=proto_dot_api_dot_v0_dot_luminarycloud_dot_thirdpartyintegration_dot_onshape_dot_onshape__pb2.FetchVariablesRequest.SerializeToString,
27
27
  response_deserializer=proto_dot_api_dot_v0_dot_luminarycloud_dot_thirdpartyintegration_dot_onshape_dot_onshape__pb2.FetchVariablesReply.FromString,
28
28
  )
29
+ self.ListDocumentsWithWorkspaceAndVersions = channel.unary_unary(
30
+ '/luminary.proto.api.v0.luminarycloud.thirdpartyintegration.onshape.OnshapeService/ListDocumentsWithWorkspaceAndVersions',
31
+ request_serializer=proto_dot_api_dot_v0_dot_luminarycloud_dot_thirdpartyintegration_dot_onshape_dot_onshape__pb2.ListDocumentsWithWorkspaceAndVersionsRequest.SerializeToString,
32
+ response_deserializer=proto_dot_api_dot_v0_dot_luminarycloud_dot_thirdpartyintegration_dot_onshape_dot_onshape__pb2.ListDocumentsWithWorkspaceAndVersionsReply.FromString,
33
+ )
34
+ self.ListDocuments = channel.unary_unary(
35
+ '/luminary.proto.api.v0.luminarycloud.thirdpartyintegration.onshape.OnshapeService/ListDocuments',
36
+ request_serializer=proto_dot_api_dot_v0_dot_luminarycloud_dot_thirdpartyintegration_dot_onshape_dot_onshape__pb2.ListDocumentsRequest.SerializeToString,
37
+ response_deserializer=proto_dot_api_dot_v0_dot_luminarycloud_dot_thirdpartyintegration_dot_onshape_dot_onshape__pb2.ListDocumentsReply.FromString,
38
+ )
39
+ self.ListWorkspacesAndVersions = channel.unary_unary(
40
+ '/luminary.proto.api.v0.luminarycloud.thirdpartyintegration.onshape.OnshapeService/ListWorkspacesAndVersions',
41
+ request_serializer=proto_dot_api_dot_v0_dot_luminarycloud_dot_thirdpartyintegration_dot_onshape_dot_onshape__pb2.ListWorkspacesAndVersionsRequest.SerializeToString,
42
+ response_deserializer=proto_dot_api_dot_v0_dot_luminarycloud_dot_thirdpartyintegration_dot_onshape_dot_onshape__pb2.ListWorkspacesAndVersionsReply.FromString,
43
+ )
44
+ self.ListImportablesForSelection = channel.unary_unary(
45
+ '/luminary.proto.api.v0.luminarycloud.thirdpartyintegration.onshape.OnshapeService/ListImportablesForSelection',
46
+ request_serializer=proto_dot_api_dot_v0_dot_luminarycloud_dot_thirdpartyintegration_dot_onshape_dot_onshape__pb2.ListImportablesForSelectionRequest.SerializeToString,
47
+ response_deserializer=proto_dot_api_dot_v0_dot_luminarycloud_dot_thirdpartyintegration_dot_onshape_dot_onshape__pb2.ListImportablesForSelectionReply.FromString,
48
+ )
49
+ self.GetCompanyPrefixes = channel.unary_unary(
50
+ '/luminary.proto.api.v0.luminarycloud.thirdpartyintegration.onshape.OnshapeService/GetCompanyPrefixes',
51
+ request_serializer=proto_dot_api_dot_v0_dot_luminarycloud_dot_thirdpartyintegration_dot_onshape_dot_onshape__pb2.GetCompanyPrefixesRequest.SerializeToString,
52
+ response_deserializer=proto_dot_api_dot_v0_dot_luminarycloud_dot_thirdpartyintegration_dot_onshape_dot_onshape__pb2.GetCompanyPrefixesReply.FromString,
53
+ )
29
54
 
30
55
 
31
56
  class OnshapeServiceServicer(object):
@@ -47,6 +72,42 @@ class OnshapeServiceServicer(object):
47
72
  context.set_details('Method not implemented!')
48
73
  raise NotImplementedError('Method not implemented!')
49
74
 
75
+ def ListDocumentsWithWorkspaceAndVersions(self, request, context):
76
+ """Lists the documents of the user and the associated workspaces and versions.
77
+ A thumbnail is included for each document (not workspace or version)
78
+ """
79
+ context.set_code(grpc.StatusCode.UNIMPLEMENTED)
80
+ context.set_details('Method not implemented!')
81
+ raise NotImplementedError('Method not implemented!')
82
+
83
+ def ListDocuments(self, request, context):
84
+ """Lists only the documents of the user. A thumbnail is included for each document.
85
+ """
86
+ context.set_code(grpc.StatusCode.UNIMPLEMENTED)
87
+ context.set_details('Method not implemented!')
88
+ raise NotImplementedError('Method not implemented!')
89
+
90
+ def ListWorkspacesAndVersions(self, request, context):
91
+ """Lists the workspaces and versions for a given document.
92
+ """
93
+ context.set_code(grpc.StatusCode.UNIMPLEMENTED)
94
+ context.set_details('Method not implemented!')
95
+ raise NotImplementedError('Method not implemented!')
96
+
97
+ def ListImportablesForSelection(self, request, context):
98
+ """Given a request specifying a document and a workspace or version, lists the importable elements.
99
+ """
100
+ context.set_code(grpc.StatusCode.UNIMPLEMENTED)
101
+ context.set_details('Method not implemented!')
102
+ raise NotImplementedError('Method not implemented!')
103
+
104
+ def GetCompanyPrefixes(self, request, context):
105
+ """Returns information about the companies the user is associated with.
106
+ """
107
+ context.set_code(grpc.StatusCode.UNIMPLEMENTED)
108
+ context.set_details('Method not implemented!')
109
+ raise NotImplementedError('Method not implemented!')
110
+
50
111
 
51
112
  def add_OnshapeServiceServicer_to_server(servicer, server):
52
113
  rpc_method_handlers = {
@@ -60,6 +121,31 @@ def add_OnshapeServiceServicer_to_server(servicer, server):
60
121
  request_deserializer=proto_dot_api_dot_v0_dot_luminarycloud_dot_thirdpartyintegration_dot_onshape_dot_onshape__pb2.FetchVariablesRequest.FromString,
61
122
  response_serializer=proto_dot_api_dot_v0_dot_luminarycloud_dot_thirdpartyintegration_dot_onshape_dot_onshape__pb2.FetchVariablesReply.SerializeToString,
62
123
  ),
124
+ 'ListDocumentsWithWorkspaceAndVersions': grpc.unary_unary_rpc_method_handler(
125
+ servicer.ListDocumentsWithWorkspaceAndVersions,
126
+ request_deserializer=proto_dot_api_dot_v0_dot_luminarycloud_dot_thirdpartyintegration_dot_onshape_dot_onshape__pb2.ListDocumentsWithWorkspaceAndVersionsRequest.FromString,
127
+ response_serializer=proto_dot_api_dot_v0_dot_luminarycloud_dot_thirdpartyintegration_dot_onshape_dot_onshape__pb2.ListDocumentsWithWorkspaceAndVersionsReply.SerializeToString,
128
+ ),
129
+ 'ListDocuments': grpc.unary_unary_rpc_method_handler(
130
+ servicer.ListDocuments,
131
+ request_deserializer=proto_dot_api_dot_v0_dot_luminarycloud_dot_thirdpartyintegration_dot_onshape_dot_onshape__pb2.ListDocumentsRequest.FromString,
132
+ response_serializer=proto_dot_api_dot_v0_dot_luminarycloud_dot_thirdpartyintegration_dot_onshape_dot_onshape__pb2.ListDocumentsReply.SerializeToString,
133
+ ),
134
+ 'ListWorkspacesAndVersions': grpc.unary_unary_rpc_method_handler(
135
+ servicer.ListWorkspacesAndVersions,
136
+ request_deserializer=proto_dot_api_dot_v0_dot_luminarycloud_dot_thirdpartyintegration_dot_onshape_dot_onshape__pb2.ListWorkspacesAndVersionsRequest.FromString,
137
+ response_serializer=proto_dot_api_dot_v0_dot_luminarycloud_dot_thirdpartyintegration_dot_onshape_dot_onshape__pb2.ListWorkspacesAndVersionsReply.SerializeToString,
138
+ ),
139
+ 'ListImportablesForSelection': grpc.unary_unary_rpc_method_handler(
140
+ servicer.ListImportablesForSelection,
141
+ request_deserializer=proto_dot_api_dot_v0_dot_luminarycloud_dot_thirdpartyintegration_dot_onshape_dot_onshape__pb2.ListImportablesForSelectionRequest.FromString,
142
+ response_serializer=proto_dot_api_dot_v0_dot_luminarycloud_dot_thirdpartyintegration_dot_onshape_dot_onshape__pb2.ListImportablesForSelectionReply.SerializeToString,
143
+ ),
144
+ 'GetCompanyPrefixes': grpc.unary_unary_rpc_method_handler(
145
+ servicer.GetCompanyPrefixes,
146
+ request_deserializer=proto_dot_api_dot_v0_dot_luminarycloud_dot_thirdpartyintegration_dot_onshape_dot_onshape__pb2.GetCompanyPrefixesRequest.FromString,
147
+ response_serializer=proto_dot_api_dot_v0_dot_luminarycloud_dot_thirdpartyintegration_dot_onshape_dot_onshape__pb2.GetCompanyPrefixesReply.SerializeToString,
148
+ ),
63
149
  }
64
150
  generic_handler = grpc.method_handlers_generic_handler(
65
151
  'luminary.proto.api.v0.luminarycloud.thirdpartyintegration.onshape.OnshapeService', rpc_method_handlers)
@@ -105,3 +191,88 @@ class OnshapeService(object):
105
191
  proto_dot_api_dot_v0_dot_luminarycloud_dot_thirdpartyintegration_dot_onshape_dot_onshape__pb2.FetchVariablesReply.FromString,
106
192
  options, channel_credentials,
107
193
  insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
194
+
195
+ @staticmethod
196
+ def ListDocumentsWithWorkspaceAndVersions(request,
197
+ target,
198
+ options=(),
199
+ channel_credentials=None,
200
+ call_credentials=None,
201
+ insecure=False,
202
+ compression=None,
203
+ wait_for_ready=None,
204
+ timeout=None,
205
+ metadata=None):
206
+ return grpc.experimental.unary_unary(request, target, '/luminary.proto.api.v0.luminarycloud.thirdpartyintegration.onshape.OnshapeService/ListDocumentsWithWorkspaceAndVersions',
207
+ proto_dot_api_dot_v0_dot_luminarycloud_dot_thirdpartyintegration_dot_onshape_dot_onshape__pb2.ListDocumentsWithWorkspaceAndVersionsRequest.SerializeToString,
208
+ proto_dot_api_dot_v0_dot_luminarycloud_dot_thirdpartyintegration_dot_onshape_dot_onshape__pb2.ListDocumentsWithWorkspaceAndVersionsReply.FromString,
209
+ options, channel_credentials,
210
+ insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
211
+
212
+ @staticmethod
213
+ def ListDocuments(request,
214
+ target,
215
+ options=(),
216
+ channel_credentials=None,
217
+ call_credentials=None,
218
+ insecure=False,
219
+ compression=None,
220
+ wait_for_ready=None,
221
+ timeout=None,
222
+ metadata=None):
223
+ return grpc.experimental.unary_unary(request, target, '/luminary.proto.api.v0.luminarycloud.thirdpartyintegration.onshape.OnshapeService/ListDocuments',
224
+ proto_dot_api_dot_v0_dot_luminarycloud_dot_thirdpartyintegration_dot_onshape_dot_onshape__pb2.ListDocumentsRequest.SerializeToString,
225
+ proto_dot_api_dot_v0_dot_luminarycloud_dot_thirdpartyintegration_dot_onshape_dot_onshape__pb2.ListDocumentsReply.FromString,
226
+ options, channel_credentials,
227
+ insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
228
+
229
+ @staticmethod
230
+ def ListWorkspacesAndVersions(request,
231
+ target,
232
+ options=(),
233
+ channel_credentials=None,
234
+ call_credentials=None,
235
+ insecure=False,
236
+ compression=None,
237
+ wait_for_ready=None,
238
+ timeout=None,
239
+ metadata=None):
240
+ return grpc.experimental.unary_unary(request, target, '/luminary.proto.api.v0.luminarycloud.thirdpartyintegration.onshape.OnshapeService/ListWorkspacesAndVersions',
241
+ proto_dot_api_dot_v0_dot_luminarycloud_dot_thirdpartyintegration_dot_onshape_dot_onshape__pb2.ListWorkspacesAndVersionsRequest.SerializeToString,
242
+ proto_dot_api_dot_v0_dot_luminarycloud_dot_thirdpartyintegration_dot_onshape_dot_onshape__pb2.ListWorkspacesAndVersionsReply.FromString,
243
+ options, channel_credentials,
244
+ insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
245
+
246
+ @staticmethod
247
+ def ListImportablesForSelection(request,
248
+ target,
249
+ options=(),
250
+ channel_credentials=None,
251
+ call_credentials=None,
252
+ insecure=False,
253
+ compression=None,
254
+ wait_for_ready=None,
255
+ timeout=None,
256
+ metadata=None):
257
+ return grpc.experimental.unary_unary(request, target, '/luminary.proto.api.v0.luminarycloud.thirdpartyintegration.onshape.OnshapeService/ListImportablesForSelection',
258
+ proto_dot_api_dot_v0_dot_luminarycloud_dot_thirdpartyintegration_dot_onshape_dot_onshape__pb2.ListImportablesForSelectionRequest.SerializeToString,
259
+ proto_dot_api_dot_v0_dot_luminarycloud_dot_thirdpartyintegration_dot_onshape_dot_onshape__pb2.ListImportablesForSelectionReply.FromString,
260
+ options, channel_credentials,
261
+ insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
262
+
263
+ @staticmethod
264
+ def GetCompanyPrefixes(request,
265
+ target,
266
+ options=(),
267
+ channel_credentials=None,
268
+ call_credentials=None,
269
+ insecure=False,
270
+ compression=None,
271
+ wait_for_ready=None,
272
+ timeout=None,
273
+ metadata=None):
274
+ return grpc.experimental.unary_unary(request, target, '/luminary.proto.api.v0.luminarycloud.thirdpartyintegration.onshape.OnshapeService/GetCompanyPrefixes',
275
+ proto_dot_api_dot_v0_dot_luminarycloud_dot_thirdpartyintegration_dot_onshape_dot_onshape__pb2.GetCompanyPrefixesRequest.SerializeToString,
276
+ proto_dot_api_dot_v0_dot_luminarycloud_dot_thirdpartyintegration_dot_onshape_dot_onshape__pb2.GetCompanyPrefixesReply.FromString,
277
+ options, channel_credentials,
278
+ insecure, call_credentials, compression, wait_for_ready, timeout, metadata)