mainsequence 9.0.10.dev48__py3-none-any.whl → 9.0.11.dev50__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.
@@ -579,6 +579,14 @@ class Agent(
579
579
  "or null when the Agent has no deployed runtime release."
580
580
  ),
581
581
  )
582
+ workload_user_uid: str | None = Field(
583
+ None,
584
+ description=(
585
+ "Read-only UID of the workload identity, the User this Agent runs as; the "
586
+ "same value its runtime release reports. Pass it to `User.get_by_uid` and "
587
+ "to sharing calls. None when the Agent has no runtime release."
588
+ ),
589
+ )
582
590
  code_repository_branch_uid: str | None = Field(
583
591
  None,
584
592
  description=(
@@ -174,6 +174,16 @@ class Job(CurrentCodeRepositoryBranchCollectionMixin, BaseObjectOrm, BasePydanti
174
174
  examples=["58218213-5e4e-43de-a5bd-6757f4e1c8f6"],
175
175
  )
176
176
 
177
+ workload_user_uid: str | None = Field(
178
+ default=None,
179
+ description=(
180
+ "Read-only UID of the workload identity, the User this Job runs as. "
181
+ "Pass it to `User.get_by_uid` and to sharing calls. None when the Job "
182
+ "has no workload identity, for example a release's backing Job."
183
+ ),
184
+ examples=["88888888-8888-4888-8888-888888888888"],
185
+ )
186
+
177
187
  code_repository_commit_hash: str | None = Field(
178
188
  default=None,
179
189
  description=(
@@ -985,6 +995,16 @@ class ResourceRelease(
985
995
  description="Public UID of the job associated with this resource release.",
986
996
  examples=["7d0ab07c-d1c0-4b7f-9c69-3c1a41c0a4da"],
987
997
  )
998
+ workload_user_uid: str | None = Field(
999
+ None,
1000
+ title="Workload User UID",
1001
+ description=(
1002
+ "Read-only UID of the workload identity, the User this release runs as. "
1003
+ "Pass it to `User.get_by_uid` and to sharing calls. None when the release "
1004
+ "has no workload identity, for example a static-site release."
1005
+ ),
1006
+ examples=["88888888-8888-4888-8888-888888888888"],
1007
+ )
988
1008
  observability: ObservabilityLinks | None = Field(
989
1009
  default=None,
990
1010
  description="Backend-owned runtime observability and related-history capabilities.",
@@ -970,6 +970,10 @@ class User(UserApiBaseObjectOrm, BasePydanticModel):
970
970
  workload in ``job_uid``, ``resource_release_uid`` or ``agent_uid``, without
971
971
  a username, email, join date or name. Fields the row does not carry are
972
972
  ``None``, or empty for lists.
973
+
974
+ The reverse direction is ``workload_user_uid`` on ``Job``,
975
+ ``ResourceRelease`` and ``Agent``: the UID of the User that workload runs
976
+ as, to pass to ``User.get_by_uid`` and to sharing calls.
973
977
  """
974
978
 
975
979
  # Platform facts, not application authorization policy. None means the
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: mainsequence
3
- Version: 9.0.10.dev48
3
+ Version: 9.0.11.dev50
4
4
  Summary: Main Sequence SDK
5
5
  Author-email: Main Sequence GmbH <dev@main-sequence.io>
6
6
  License-Expression: MIT
@@ -36,7 +36,7 @@ mainsequence/cli/ssh_utils.py,sha256=m7HgFHZQ545sxY9igfQLpaNjWHm4SiN9VwCkAuGy2yw
36
36
  mainsequence/cli/ui.py,sha256=memd6pmjALfGj8zndGCx_z80ztQeqTcOvcofU0un34U,2277
37
37
  mainsequence/client/__init__.py,sha256=lsr9JWxeVqOG0KRoHErW5M40ACPSR7SAEE508dTN5XM,672
38
38
  mainsequence/client/_transport.py,sha256=l2xkbJ21SbrJhzgOf58Yikxg-uzOQPyo-H5hENdCBo8,5374
39
- mainsequence/client/agent_runtime_models.py,sha256=VVURaxtY28o2R_J697AE0_mkj19CKPZYo8aFNflMnGg,67370
39
+ mainsequence/client/agent_runtime_models.py,sha256=8H4VEZWgnlYx3r7XY9eQq4D7hfzLRyhrIRyy2ZVae2Y,67718
40
40
  mainsequence/client/base.py,sha256=T3k3xptM09TreiVogrxAPWoIy8zM6Dtn3Cbwsnb33ag,42678
41
41
  mainsequence/client/client.py,sha256=Jaw9RYObdVDS5J2O0pln99-XpuW9e4vW-SsbJRNldfw,3866
42
42
  mainsequence/client/compute_validation.py,sha256=ByeX0CkIE7qq06ggZFfN92U3Qp2e9cvo2RTIGWa5_Vw,6662
@@ -44,8 +44,8 @@ mainsequence/client/exceptions.py,sha256=xx2L4l3OMNsTybbYkiTKK398ahnutEascM0It35
44
44
  mainsequence/client/github_issues.py,sha256=pSTUw3UPrmE6wqnpoJctartTaNSq6iu6PQRrd8hip6I,14568
45
45
  mainsequence/client/inference.py,sha256=tYKHRxLR6mA5iLmgd3qURwweWc2OPQuw0__tD3LQgSI,7748
46
46
  mainsequence/client/models_foundry.py,sha256=JwQdPLDSO4dZI-KC0SUdmN6izmNIKMb9IzZlYXy0Mig,36488
47
- mainsequence/client/models_helpers.py,sha256=vwZdQhEQZBCxXojP9-DxhdRc-TlceWz4lTqQQnT05Ms,46465
48
- mainsequence/client/models_user.py,sha256=fD0PZ0raeaTz-E08mVCMeM0RmKGAgI8TxOYwU5CMMoY,40963
47
+ mainsequence/client/models_helpers.py,sha256=nlbHuQAylTOHAZOq4ltJQp6QvC3NW_kw7tZFosGc5rM,47311
48
+ mainsequence/client/models_user.py,sha256=vpnzwemq9SVXHndlIhS731veJz9yzQ8rz5b0mP42KVQ,41166
49
49
  mainsequence/client/observability.py,sha256=_WrDKCaNk_TXmKElKCXC1inork6Exxxe8FRY4m1GI9s,16008
50
50
  mainsequence/client/utils.py,sha256=d6lXJPAOe683gb-ph9x0GJcvK5c5Pg9gr90ihDgQGug,32484
51
51
  mainsequence/client/value_sets.py,sha256=7TA-mpuAd3hOduNgO1WTQQTuNOGaFgue-VqCsDWKaC8,6181
@@ -54,9 +54,9 @@ mainsequence/instrumentation/utils.py,sha256=b-ihjSioAepeLfMpudM2SqCtvnxMqIXileH
54
54
  mainsequence/server/__init__.py,sha256=BHUAhtdWPDRdxX07NYO_6wrBv5mf0GsXflecO52PmUc,73
55
55
  mainsequence/server/caller_assertions.py,sha256=f9jHhVeoFK1ScDCmW8h3lEIU5V7zKw70SUSVV2P7wUI,10975
56
56
  mainsequence/server/fastapi.py,sha256=Y5QB51CRVbuUVRUcWh5GKQ5b5vMPjbs9scioTt684oQ,10712
57
- mainsequence-9.0.10.dev48.dist-info/licenses/LICENSE,sha256=b6Ecsk8wjsEby3lbSzdljR6hHiFGHBizt9iWV2p1c_I,1074
58
- mainsequence-9.0.10.dev48.dist-info/METADATA,sha256=ozfGPFF2jw8BHsmJMoRdGXanBzDnthptLoTBs6t0Bss,7403
59
- mainsequence-9.0.10.dev48.dist-info/WHEEL,sha256=YVMoNqKzERt-wjUZwJ33xBGAwnFl-4cqbYkTtWa4itE,91
60
- mainsequence-9.0.10.dev48.dist-info/entry_points.txt,sha256=XGAOq3-mF2lWWpeRJvoaWyMarRcK167mH1g124aGdUs,88
61
- mainsequence-9.0.10.dev48.dist-info/top_level.txt,sha256=BFeblM_Q9q0cUWBvTxnfWcWQEHtf5XZi9nOS-Gdfwus,28
62
- mainsequence-9.0.10.dev48.dist-info/RECORD,,
57
+ mainsequence-9.0.11.dev50.dist-info/licenses/LICENSE,sha256=b6Ecsk8wjsEby3lbSzdljR6hHiFGHBizt9iWV2p1c_I,1074
58
+ mainsequence-9.0.11.dev50.dist-info/METADATA,sha256=fIx_7NHIGCF8alTSS09AH7RLc0Hj3jEs_vZIeWbq84s,7403
59
+ mainsequence-9.0.11.dev50.dist-info/WHEEL,sha256=YVMoNqKzERt-wjUZwJ33xBGAwnFl-4cqbYkTtWa4itE,91
60
+ mainsequence-9.0.11.dev50.dist-info/entry_points.txt,sha256=XGAOq3-mF2lWWpeRJvoaWyMarRcK167mH1g124aGdUs,88
61
+ mainsequence-9.0.11.dev50.dist-info/top_level.txt,sha256=BFeblM_Q9q0cUWBvTxnfWcWQEHtf5XZi9nOS-Gdfwus,28
62
+ mainsequence-9.0.11.dev50.dist-info/RECORD,,