modal 1.1.5.dev13__py3-none-any.whl → 1.1.5.dev15__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.
modal_proto/api_pb2.pyi CHANGED
@@ -6947,10 +6947,12 @@ class MapAwaitRequest(google.protobuf.message.Message):
6947
6947
  DESCRIPTOR: google.protobuf.descriptor.Descriptor
6948
6948
 
6949
6949
  FUNCTION_CALL_ID_FIELD_NUMBER: builtins.int
6950
+ MAP_TOKEN_FIELD_NUMBER: builtins.int
6950
6951
  LAST_ENTRY_ID_FIELD_NUMBER: builtins.int
6951
6952
  REQUESTED_AT_FIELD_NUMBER: builtins.int
6952
6953
  TIMEOUT_FIELD_NUMBER: builtins.int
6953
6954
  function_call_id: builtins.str
6955
+ map_token: builtins.str
6954
6956
  last_entry_id: builtins.str
6955
6957
  requested_at: builtins.float
6956
6958
  """Used for waypoints."""
@@ -6959,11 +6961,14 @@ class MapAwaitRequest(google.protobuf.message.Message):
6959
6961
  self,
6960
6962
  *,
6961
6963
  function_call_id: builtins.str = ...,
6964
+ map_token: builtins.str = ...,
6962
6965
  last_entry_id: builtins.str = ...,
6963
6966
  requested_at: builtins.float = ...,
6964
6967
  timeout: builtins.float = ...,
6965
6968
  ) -> None: ...
6966
- def ClearField(self, field_name: typing_extensions.Literal["function_call_id", b"function_call_id", "last_entry_id", b"last_entry_id", "requested_at", b"requested_at", "timeout", b"timeout"]) -> None: ...
6969
+ def HasField(self, field_name: typing_extensions.Literal["call_info", b"call_info", "function_call_id", b"function_call_id", "map_token", b"map_token"]) -> builtins.bool: ...
6970
+ def ClearField(self, field_name: typing_extensions.Literal["call_info", b"call_info", "function_call_id", b"function_call_id", "last_entry_id", b"last_entry_id", "map_token", b"map_token", "requested_at", b"requested_at", "timeout", b"timeout"]) -> None: ...
6971
+ def WhichOneof(self, oneof_group: typing_extensions.Literal["call_info", b"call_info"]) -> typing_extensions.Literal["function_call_id", "map_token"] | None: ...
6967
6972
 
6968
6973
  global___MapAwaitRequest = MapAwaitRequest
6969
6974
 
@@ -7048,11 +7053,12 @@ class MapStartOrContinueRequest(google.protobuf.message.Message):
7048
7053
  FUNCTION_ID_FIELD_NUMBER: builtins.int
7049
7054
  PARENT_INPUT_ID_FIELD_NUMBER: builtins.int
7050
7055
  FUNCTION_CALL_ID_FIELD_NUMBER: builtins.int
7056
+ MAP_TOKEN_FIELD_NUMBER: builtins.int
7051
7057
  ITEMS_FIELD_NUMBER: builtins.int
7052
7058
  function_id: builtins.str
7053
7059
  parent_input_id: builtins.str
7054
7060
  function_call_id: builtins.str
7055
- """This is given iff this is a map continue request."""
7061
+ map_token: builtins.str
7056
7062
  @property
7057
7063
  def items(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___MapStartOrContinueItem]: ...
7058
7064
  def __init__(
@@ -7060,23 +7066,29 @@ class MapStartOrContinueRequest(google.protobuf.message.Message):
7060
7066
  *,
7061
7067
  function_id: builtins.str = ...,
7062
7068
  parent_input_id: builtins.str = ...,
7063
- function_call_id: builtins.str | None = ...,
7069
+ function_call_id: builtins.str = ...,
7070
+ map_token: builtins.str = ...,
7064
7071
  items: collections.abc.Iterable[global___MapStartOrContinueItem] | None = ...,
7065
7072
  ) -> None: ...
7066
- def HasField(self, field_name: typing_extensions.Literal["_function_call_id", b"_function_call_id", "function_call_id", b"function_call_id"]) -> builtins.bool: ...
7067
- def ClearField(self, field_name: typing_extensions.Literal["_function_call_id", b"_function_call_id", "function_call_id", b"function_call_id", "function_id", b"function_id", "items", b"items", "parent_input_id", b"parent_input_id"]) -> None: ...
7068
- def WhichOneof(self, oneof_group: typing_extensions.Literal["_function_call_id", b"_function_call_id"]) -> typing_extensions.Literal["function_call_id"] | None: ...
7073
+ def HasField(self, field_name: typing_extensions.Literal["call_info", b"call_info", "function_call_id", b"function_call_id", "map_token", b"map_token"]) -> builtins.bool: ...
7074
+ def ClearField(self, field_name: typing_extensions.Literal["call_info", b"call_info", "function_call_id", b"function_call_id", "function_id", b"function_id", "items", b"items", "map_token", b"map_token", "parent_input_id", b"parent_input_id"]) -> None: ...
7075
+ def WhichOneof(self, oneof_group: typing_extensions.Literal["call_info", b"call_info"]) -> typing_extensions.Literal["function_call_id", "map_token"] | None: ...
7069
7076
 
7070
7077
  global___MapStartOrContinueRequest = MapStartOrContinueRequest
7071
7078
 
7072
7079
  class MapStartOrContinueResponse(google.protobuf.message.Message):
7073
7080
  DESCRIPTOR: google.protobuf.descriptor.Descriptor
7074
7081
 
7082
+ MAP_TOKEN_FIELD_NUMBER: builtins.int
7075
7083
  FUNCTION_ID_FIELD_NUMBER: builtins.int
7076
7084
  FUNCTION_CALL_ID_FIELD_NUMBER: builtins.int
7077
7085
  MAX_INPUTS_OUTSTANDING_FIELD_NUMBER: builtins.int
7078
7086
  ATTEMPT_TOKENS_FIELD_NUMBER: builtins.int
7079
7087
  RETRY_POLICY_FIELD_NUMBER: builtins.int
7088
+ map_token: builtins.str
7089
+ """function_id and function_call_id are not necessary if map_token is provided.
7090
+ All 3 will be sent until it is safe to only send map_token.
7091
+ """
7080
7092
  function_id: builtins.str
7081
7093
  function_call_id: builtins.str
7082
7094
  max_inputs_outstanding: builtins.int
@@ -7087,6 +7099,7 @@ class MapStartOrContinueResponse(google.protobuf.message.Message):
7087
7099
  def __init__(
7088
7100
  self,
7089
7101
  *,
7102
+ map_token: builtins.str = ...,
7090
7103
  function_id: builtins.str = ...,
7091
7104
  function_call_id: builtins.str = ...,
7092
7105
  max_inputs_outstanding: builtins.int = ...,
@@ -7094,7 +7107,7 @@ class MapStartOrContinueResponse(google.protobuf.message.Message):
7094
7107
  retry_policy: global___FunctionRetryPolicy | None = ...,
7095
7108
  ) -> None: ...
7096
7109
  def HasField(self, field_name: typing_extensions.Literal["retry_policy", b"retry_policy"]) -> builtins.bool: ...
7097
- def ClearField(self, field_name: typing_extensions.Literal["attempt_tokens", b"attempt_tokens", "function_call_id", b"function_call_id", "function_id", b"function_id", "max_inputs_outstanding", b"max_inputs_outstanding", "retry_policy", b"retry_policy"]) -> None: ...
7110
+ def ClearField(self, field_name: typing_extensions.Literal["attempt_tokens", b"attempt_tokens", "function_call_id", b"function_call_id", "function_id", b"function_id", "map_token", b"map_token", "max_inputs_outstanding", b"max_inputs_outstanding", "retry_policy", b"retry_policy"]) -> None: ...
7098
7111
 
7099
7112
  global___MapStartOrContinueResponse = MapStartOrContinueResponse
7100
7113
 
@@ -8585,7 +8598,7 @@ class Sandbox(google.protobuf.message.Message):
8585
8598
 
8586
8599
  global___Sandbox = Sandbox
8587
8600
 
8588
- class SandboxCreateConnectCredentialsRequest(google.protobuf.message.Message):
8601
+ class SandboxCreateConnectTokenRequest(google.protobuf.message.Message):
8589
8602
  DESCRIPTOR: google.protobuf.descriptor.Descriptor
8590
8603
 
8591
8604
  SANDBOX_ID_FIELD_NUMBER: builtins.int
@@ -8600,9 +8613,9 @@ class SandboxCreateConnectCredentialsRequest(google.protobuf.message.Message):
8600
8613
  ) -> None: ...
8601
8614
  def ClearField(self, field_name: typing_extensions.Literal["metadata", b"metadata", "sandbox_id", b"sandbox_id"]) -> None: ...
8602
8615
 
8603
- global___SandboxCreateConnectCredentialsRequest = SandboxCreateConnectCredentialsRequest
8616
+ global___SandboxCreateConnectTokenRequest = SandboxCreateConnectTokenRequest
8604
8617
 
8605
- class SandboxCreateConnectCredentialsResponse(google.protobuf.message.Message):
8618
+ class SandboxCreateConnectTokenResponse(google.protobuf.message.Message):
8606
8619
  DESCRIPTOR: google.protobuf.descriptor.Descriptor
8607
8620
 
8608
8621
  URL_FIELD_NUMBER: builtins.int
@@ -8617,7 +8630,7 @@ class SandboxCreateConnectCredentialsResponse(google.protobuf.message.Message):
8617
8630
  ) -> None: ...
8618
8631
  def ClearField(self, field_name: typing_extensions.Literal["token", b"token", "url", b"url"]) -> None: ...
8619
8632
 
8620
- global___SandboxCreateConnectCredentialsResponse = SandboxCreateConnectCredentialsResponse
8633
+ global___SandboxCreateConnectTokenResponse = SandboxCreateConnectTokenResponse
8621
8634
 
8622
8635
  class SandboxCreateRequest(google.protobuf.message.Message):
8623
8636
  DESCRIPTOR: google.protobuf.descriptor.Descriptor
@@ -575,10 +575,10 @@ class ModalClientStub(object):
575
575
  request_serializer=modal__proto_dot_api__pb2.SandboxCreateRequest.SerializeToString,
576
576
  response_deserializer=modal__proto_dot_api__pb2.SandboxCreateResponse.FromString,
577
577
  )
578
- self.SandboxCreateConnectCredentials = channel.unary_unary(
579
- '/modal.client.ModalClient/SandboxCreateConnectCredentials',
580
- request_serializer=modal__proto_dot_api__pb2.SandboxCreateConnectCredentialsRequest.SerializeToString,
581
- response_deserializer=modal__proto_dot_api__pb2.SandboxCreateConnectCredentialsResponse.FromString,
578
+ self.SandboxCreateConnectToken = channel.unary_unary(
579
+ '/modal.client.ModalClient/SandboxCreateConnectToken',
580
+ request_serializer=modal__proto_dot_api__pb2.SandboxCreateConnectTokenRequest.SerializeToString,
581
+ response_deserializer=modal__proto_dot_api__pb2.SandboxCreateConnectTokenResponse.FromString,
582
582
  )
583
583
  self.SandboxGetFromName = channel.unary_unary(
584
584
  '/modal.client.ModalClient/SandboxGetFromName',
@@ -1561,7 +1561,7 @@ class ModalClientServicer(object):
1561
1561
  context.set_details('Method not implemented!')
1562
1562
  raise NotImplementedError('Method not implemented!')
1563
1563
 
1564
- def SandboxCreateConnectCredentials(self, request, context):
1564
+ def SandboxCreateConnectToken(self, request, context):
1565
1565
  """Missing associated documentation comment in .proto file."""
1566
1566
  context.set_code(grpc.StatusCode.UNIMPLEMENTED)
1567
1567
  context.set_details('Method not implemented!')
@@ -2475,10 +2475,10 @@ def add_ModalClientServicer_to_server(servicer, server):
2475
2475
  request_deserializer=modal__proto_dot_api__pb2.SandboxCreateRequest.FromString,
2476
2476
  response_serializer=modal__proto_dot_api__pb2.SandboxCreateResponse.SerializeToString,
2477
2477
  ),
2478
- 'SandboxCreateConnectCredentials': grpc.unary_unary_rpc_method_handler(
2479
- servicer.SandboxCreateConnectCredentials,
2480
- request_deserializer=modal__proto_dot_api__pb2.SandboxCreateConnectCredentialsRequest.FromString,
2481
- response_serializer=modal__proto_dot_api__pb2.SandboxCreateConnectCredentialsResponse.SerializeToString,
2478
+ 'SandboxCreateConnectToken': grpc.unary_unary_rpc_method_handler(
2479
+ servicer.SandboxCreateConnectToken,
2480
+ request_deserializer=modal__proto_dot_api__pb2.SandboxCreateConnectTokenRequest.FromString,
2481
+ response_serializer=modal__proto_dot_api__pb2.SandboxCreateConnectTokenResponse.SerializeToString,
2482
2482
  ),
2483
2483
  'SandboxGetFromName': grpc.unary_unary_rpc_method_handler(
2484
2484
  servicer.SandboxGetFromName,
@@ -4675,7 +4675,7 @@ class ModalClient(object):
4675
4675
  insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
4676
4676
 
4677
4677
  @staticmethod
4678
- def SandboxCreateConnectCredentials(request,
4678
+ def SandboxCreateConnectToken(request,
4679
4679
  target,
4680
4680
  options=(),
4681
4681
  channel_credentials=None,
@@ -4685,9 +4685,9 @@ class ModalClient(object):
4685
4685
  wait_for_ready=None,
4686
4686
  timeout=None,
4687
4687
  metadata=None):
4688
- return grpc.experimental.unary_unary(request, target, '/modal.client.ModalClient/SandboxCreateConnectCredentials',
4689
- modal__proto_dot_api__pb2.SandboxCreateConnectCredentialsRequest.SerializeToString,
4690
- modal__proto_dot_api__pb2.SandboxCreateConnectCredentialsResponse.FromString,
4688
+ return grpc.experimental.unary_unary(request, target, '/modal.client.ModalClient/SandboxCreateConnectToken',
4689
+ modal__proto_dot_api__pb2.SandboxCreateConnectTokenRequest.SerializeToString,
4690
+ modal__proto_dot_api__pb2.SandboxCreateConnectTokenResponse.FromString,
4691
4691
  options, channel_credentials,
4692
4692
  insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
4693
4693
 
@@ -482,9 +482,9 @@ class ModalClientStub:
482
482
  modal_proto.api_pb2.SandboxCreateResponse,
483
483
  ]
484
484
  """Sandboxes"""
485
- SandboxCreateConnectCredentials: grpc.UnaryUnaryMultiCallable[
486
- modal_proto.api_pb2.SandboxCreateConnectCredentialsRequest,
487
- modal_proto.api_pb2.SandboxCreateConnectCredentialsResponse,
485
+ SandboxCreateConnectToken: grpc.UnaryUnaryMultiCallable[
486
+ modal_proto.api_pb2.SandboxCreateConnectTokenRequest,
487
+ modal_proto.api_pb2.SandboxCreateConnectTokenResponse,
488
488
  ]
489
489
  SandboxGetFromName: grpc.UnaryUnaryMultiCallable[
490
490
  modal_proto.api_pb2.SandboxGetFromNameRequest,
@@ -1418,11 +1418,11 @@ class ModalClientServicer(metaclass=abc.ABCMeta):
1418
1418
  ) -> modal_proto.api_pb2.SandboxCreateResponse:
1419
1419
  """Sandboxes"""
1420
1420
  @abc.abstractmethod
1421
- def SandboxCreateConnectCredentials(
1421
+ def SandboxCreateConnectToken(
1422
1422
  self,
1423
- request: modal_proto.api_pb2.SandboxCreateConnectCredentialsRequest,
1423
+ request: modal_proto.api_pb2.SandboxCreateConnectTokenRequest,
1424
1424
  context: grpc.ServicerContext,
1425
- ) -> modal_proto.api_pb2.SandboxCreateConnectCredentialsResponse: ...
1425
+ ) -> modal_proto.api_pb2.SandboxCreateConnectTokenResponse: ...
1426
1426
  @abc.abstractmethod
1427
1427
  def SandboxGetFromName(
1428
1428
  self,
@@ -130,7 +130,7 @@ class ModalClientModal:
130
130
  self.QueueNextItems = modal.client.UnaryUnaryWrapper(grpclib_stub.QueueNextItems, client, server_url)
131
131
  self.QueuePut = modal.client.UnaryUnaryWrapper(grpclib_stub.QueuePut, client, server_url)
132
132
  self.SandboxCreate = modal.client.UnaryUnaryWrapper(grpclib_stub.SandboxCreate, client, server_url)
133
- self.SandboxCreateConnectCredentials = modal.client.UnaryUnaryWrapper(grpclib_stub.SandboxCreateConnectCredentials, client, server_url)
133
+ self.SandboxCreateConnectToken = modal.client.UnaryUnaryWrapper(grpclib_stub.SandboxCreateConnectToken, client, server_url)
134
134
  self.SandboxGetFromName = modal.client.UnaryUnaryWrapper(grpclib_stub.SandboxGetFromName, client, server_url)
135
135
  self.SandboxGetLogs = modal.client.UnaryStreamWrapper(grpclib_stub.SandboxGetLogs, client, server_url)
136
136
  self.SandboxGetResourceUsage = modal.client.UnaryUnaryWrapper(grpclib_stub.SandboxGetResourceUsage, client, server_url)
modal_version/__init__.py CHANGED
@@ -1,4 +1,4 @@
1
1
  # Copyright Modal Labs 2025
2
2
  """Supplies the current version of the modal client library."""
3
3
 
4
- __version__ = "1.1.5.dev13"
4
+ __version__ = "1.1.5.dev15"