lightning-sdk 2025.7.10__py3-none-any.whl → 2025.7.22__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 (93) hide show
  1. lightning_sdk/__init__.py +3 -2
  2. lightning_sdk/api/cloud_account_api.py +154 -0
  3. lightning_sdk/api/deployment_api.py +11 -0
  4. lightning_sdk/api/job_api.py +9 -0
  5. lightning_sdk/api/llm_api.py +11 -6
  6. lightning_sdk/api/mmt_api.py +9 -0
  7. lightning_sdk/api/pipeline_api.py +4 -3
  8. lightning_sdk/api/studio_api.py +19 -5
  9. lightning_sdk/cli/clusters_menu.py +3 -3
  10. lightning_sdk/cli/create.py +22 -10
  11. lightning_sdk/cli/deploy/_auth.py +19 -3
  12. lightning_sdk/cli/deploy/serve.py +18 -4
  13. lightning_sdk/cli/entrypoint.py +1 -1
  14. lightning_sdk/cli/start.py +37 -7
  15. lightning_sdk/deployment/deployment.py +8 -0
  16. lightning_sdk/job/base.py +37 -5
  17. lightning_sdk/job/job.py +28 -4
  18. lightning_sdk/job/v1.py +10 -1
  19. lightning_sdk/job/v2.py +15 -1
  20. lightning_sdk/lightning_cloud/openapi/__init__.py +15 -1
  21. lightning_sdk/lightning_cloud/openapi/api/assistants_service_api.py +335 -0
  22. lightning_sdk/lightning_cloud/openapi/api/billing_service_api.py +214 -0
  23. lightning_sdk/lightning_cloud/openapi/api/cluster_service_api.py +5 -1
  24. lightning_sdk/lightning_cloud/openapi/api/user_service_api.py +11 -11
  25. lightning_sdk/lightning_cloud/openapi/models/__init__.py +15 -1
  26. lightning_sdk/lightning_cloud/openapi/models/assistant_id_conversations_body.py +29 -3
  27. lightning_sdk/lightning_cloud/openapi/models/blogposts_id_body.py +53 -1
  28. lightning_sdk/lightning_cloud/openapi/models/{v1_list_new_features_for_user_response.py → conversations_id_body1.py} +23 -23
  29. lightning_sdk/lightning_cloud/openapi/models/messages_id_body.py +123 -0
  30. lightning_sdk/lightning_cloud/openapi/models/project_id_schedules_body.py +29 -3
  31. lightning_sdk/lightning_cloud/openapi/models/project_id_storage_body.py +1 -27
  32. lightning_sdk/lightning_cloud/openapi/models/protobuf_null_value.py +102 -0
  33. lightning_sdk/lightning_cloud/openapi/models/schedules_id_body.py +27 -1
  34. lightning_sdk/lightning_cloud/openapi/models/storage_complete_body.py +1 -27
  35. lightning_sdk/lightning_cloud/openapi/models/uploads_upload_id_body1.py +3 -55
  36. lightning_sdk/lightning_cloud/openapi/models/user_id_upgradetrigger_body.py +175 -0
  37. lightning_sdk/lightning_cloud/openapi/models/v1_ai_pod_v1.py +123 -0
  38. lightning_sdk/lightning_cloud/openapi/models/v1_artifact.py +27 -1
  39. lightning_sdk/lightning_cloud/openapi/models/v1_assistant_session_daily_aggregated.py +357 -0
  40. lightning_sdk/lightning_cloud/openapi/models/v1_blog_post.py +53 -1
  41. lightning_sdk/lightning_cloud/openapi/models/v1_cloud_provider.py +1 -0
  42. lightning_sdk/lightning_cloud/openapi/models/v1_cluster_spec.py +27 -1
  43. lightning_sdk/lightning_cloud/openapi/models/v1_cluster_type.py +1 -0
  44. lightning_sdk/lightning_cloud/openapi/models/v1_complete_upload.py +3 -55
  45. lightning_sdk/lightning_cloud/openapi/models/v1_conversation.py +27 -1
  46. lightning_sdk/lightning_cloud/openapi/models/v1_create_billing_upgrade_trigger_record_response.py +97 -0
  47. lightning_sdk/lightning_cloud/openapi/models/v1_create_blog_post_request.py +53 -1
  48. lightning_sdk/lightning_cloud/openapi/models/v1_create_checkout_session_request.py +27 -1
  49. lightning_sdk/lightning_cloud/openapi/models/v1_create_subscription_checkout_session_request.py +29 -3
  50. lightning_sdk/lightning_cloud/openapi/models/v1_external_cluster_spec.py +27 -1
  51. lightning_sdk/lightning_cloud/openapi/models/v1_function_tool.py +175 -0
  52. lightning_sdk/lightning_cloud/openapi/models/v1_get_artifacts_page_response.py +29 -3
  53. lightning_sdk/lightning_cloud/openapi/models/v1_get_assistant_session_daily_aggregated_response.py +201 -0
  54. lightning_sdk/lightning_cloud/openapi/models/v1_kubernetes_direct_v1.py +79 -1
  55. lightning_sdk/lightning_cloud/openapi/models/v1_lightningapp_instance_artifact.py +27 -1
  56. lightning_sdk/lightning_cloud/openapi/models/v1_like_status.py +104 -0
  57. lightning_sdk/lightning_cloud/openapi/models/v1_list_notification_dialogs_response.py +149 -0
  58. lightning_sdk/lightning_cloud/openapi/models/v1_list_published_managed_endpoint_models_response.py +123 -0
  59. lightning_sdk/lightning_cloud/openapi/models/v1_message.py +53 -1
  60. lightning_sdk/lightning_cloud/openapi/models/v1_presigned_url.py +1 -53
  61. lightning_sdk/lightning_cloud/openapi/models/v1_project.py +27 -1
  62. lightning_sdk/lightning_cloud/openapi/models/v1_quote_subscription_response.py +27 -1
  63. lightning_sdk/lightning_cloud/openapi/models/v1_schedule.py +27 -1
  64. lightning_sdk/lightning_cloud/openapi/models/v1_tool.py +149 -0
  65. lightning_sdk/lightning_cloud/openapi/models/v1_update_conversation_like_response.py +149 -0
  66. lightning_sdk/lightning_cloud/openapi/models/v1_update_conversation_message_like_response.py +149 -0
  67. lightning_sdk/lightning_cloud/openapi/models/v1_user_features.py +105 -261
  68. lightning_sdk/lightning_cloud/openapi/models/v1_volume.py +27 -1
  69. lightning_sdk/llm/llm.py +32 -5
  70. lightning_sdk/llm/public_assistants.json +3 -1
  71. lightning_sdk/machine.py +24 -1
  72. lightning_sdk/mmt/base.py +20 -2
  73. lightning_sdk/mmt/mmt.py +25 -3
  74. lightning_sdk/mmt/v1.py +7 -1
  75. lightning_sdk/mmt/v2.py +21 -2
  76. lightning_sdk/organization.py +4 -0
  77. lightning_sdk/pipeline/pipeline.py +16 -5
  78. lightning_sdk/pipeline/printer.py +5 -3
  79. lightning_sdk/pipeline/schedule.py +844 -1
  80. lightning_sdk/pipeline/steps.py +19 -4
  81. lightning_sdk/sandbox.py +4 -1
  82. lightning_sdk/serve.py +2 -0
  83. lightning_sdk/studio.py +79 -39
  84. lightning_sdk/teamspace.py +14 -8
  85. lightning_sdk/utils/resolve.py +29 -2
  86. {lightning_sdk-2025.7.10.dist-info → lightning_sdk-2025.7.22.dist-info}/METADATA +1 -1
  87. {lightning_sdk-2025.7.10.dist-info → lightning_sdk-2025.7.22.dist-info}/RECORD +92 -78
  88. lightning_sdk/api/cluster_api.py +0 -119
  89. /lightning_sdk/cli/{inspect.py → inspection.py} +0 -0
  90. {lightning_sdk-2025.7.10.dist-info → lightning_sdk-2025.7.22.dist-info}/LICENSE +0 -0
  91. {lightning_sdk-2025.7.10.dist-info → lightning_sdk-2025.7.22.dist-info}/WHEEL +0 -0
  92. {lightning_sdk-2025.7.10.dist-info → lightning_sdk-2025.7.22.dist-info}/entry_points.txt +0 -0
  93. {lightning_sdk-2025.7.10.dist-info → lightning_sdk-2025.7.22.dist-info}/top_level.txt +0 -0
@@ -884,38 +884,38 @@ class UserServiceApi(object):
884
884
  _request_timeout=params.get('_request_timeout'),
885
885
  collection_formats=collection_formats)
886
886
 
887
- def user_service_list_new_features_for_user(self, **kwargs) -> 'V1ListNewFeaturesForUserResponse': # noqa: E501
887
+ def user_service_list_notification_dialogs(self, **kwargs) -> 'V1ListNotificationDialogsResponse': # noqa: E501
888
888
  """we use this to show ne user unseen new features modal # noqa: E501
889
889
 
890
890
  This method makes a synchronous HTTP request by default. To make an
891
891
  asynchronous HTTP request, please pass async_req=True
892
- >>> thread = api.user_service_list_new_features_for_user(async_req=True)
892
+ >>> thread = api.user_service_list_notification_dialogs(async_req=True)
893
893
  >>> result = thread.get()
894
894
 
895
895
  :param async_req bool
896
896
  :param bool unseen:
897
- :return: V1ListNewFeaturesForUserResponse
897
+ :return: V1ListNotificationDialogsResponse
898
898
  If the method is called asynchronously,
899
899
  returns the request thread.
900
900
  """
901
901
  kwargs['_return_http_data_only'] = True
902
902
  if kwargs.get('async_req'):
903
- return self.user_service_list_new_features_for_user_with_http_info(**kwargs) # noqa: E501
903
+ return self.user_service_list_notification_dialogs_with_http_info(**kwargs) # noqa: E501
904
904
  else:
905
- (data) = self.user_service_list_new_features_for_user_with_http_info(**kwargs) # noqa: E501
905
+ (data) = self.user_service_list_notification_dialogs_with_http_info(**kwargs) # noqa: E501
906
906
  return data
907
907
 
908
- def user_service_list_new_features_for_user_with_http_info(self, **kwargs) -> 'V1ListNewFeaturesForUserResponse': # noqa: E501
908
+ def user_service_list_notification_dialogs_with_http_info(self, **kwargs) -> 'V1ListNotificationDialogsResponse': # noqa: E501
909
909
  """we use this to show ne user unseen new features modal # noqa: E501
910
910
 
911
911
  This method makes a synchronous HTTP request by default. To make an
912
912
  asynchronous HTTP request, please pass async_req=True
913
- >>> thread = api.user_service_list_new_features_for_user_with_http_info(async_req=True)
913
+ >>> thread = api.user_service_list_notification_dialogs_with_http_info(async_req=True)
914
914
  >>> result = thread.get()
915
915
 
916
916
  :param async_req bool
917
917
  :param bool unseen:
918
- :return: V1ListNewFeaturesForUserResponse
918
+ :return: V1ListNotificationDialogsResponse
919
919
  If the method is called asynchronously,
920
920
  returns the request thread.
921
921
  """
@@ -931,7 +931,7 @@ class UserServiceApi(object):
931
931
  if key not in all_params:
932
932
  raise TypeError(
933
933
  "Got an unexpected keyword argument '%s'"
934
- " to method user_service_list_new_features_for_user" % key
934
+ " to method user_service_list_notification_dialogs" % key
935
935
  )
936
936
  params[key] = val
937
937
  del params['kwargs']
@@ -958,14 +958,14 @@ class UserServiceApi(object):
958
958
  auth_settings = [] # noqa: E501
959
959
 
960
960
  return self.api_client.call_api(
961
- '/v1/users/new-features', 'GET',
961
+ '/v1/users/notification-dialogs', 'GET',
962
962
  path_params,
963
963
  query_params,
964
964
  header_params,
965
965
  body=body_params,
966
966
  post_params=form_params,
967
967
  files=local_var_files,
968
- response_type='V1ListNewFeaturesForUserResponse', # noqa: E501
968
+ response_type='V1ListNotificationDialogsResponse', # noqa: E501
969
969
  auth_settings=auth_settings,
970
970
  async_req=params.get('async_req'),
971
971
  _return_http_data_only=params.get('_return_http_data_only'),
@@ -55,6 +55,7 @@ from lightning_sdk.lightning_cloud.openapi.models.clusters_id_body import Cluste
55
55
  from lightning_sdk.lightning_cloud.openapi.models.clusters_id_body1 import ClustersIdBody1
56
56
  from lightning_sdk.lightning_cloud.openapi.models.command_argument_command_argument_type import CommandArgumentCommandArgumentType
57
57
  from lightning_sdk.lightning_cloud.openapi.models.conversations_id_body import ConversationsIdBody
58
+ from lightning_sdk.lightning_cloud.openapi.models.conversations_id_body1 import ConversationsIdBody1
58
59
  from lightning_sdk.lightning_cloud.openapi.models.create import Create
59
60
  from lightning_sdk.lightning_cloud.openapi.models.create_checkout_session_request_wallet_type import CreateCheckoutSessionRequestWalletType
60
61
  from lightning_sdk.lightning_cloud.openapi.models.create_deployment_request_defines_a_spec_for_the_job_that_allows_for_autoscaling_jobs import CreateDeploymentRequestDefinesASpecForTheJobThatAllowsForAutoscalingJobs
@@ -118,6 +119,7 @@ from lightning_sdk.lightning_cloud.openapi.models.litloggermetrics_id_body impor
118
119
  from lightning_sdk.lightning_cloud.openapi.models.litpages_id_body import LitpagesIdBody
119
120
  from lightning_sdk.lightning_cloud.openapi.models.litregistry_lit_repo_name_body import LitregistryLitRepoNameBody
120
121
  from lightning_sdk.lightning_cloud.openapi.models.loggermetrics_id_body import LoggermetricsIdBody
122
+ from lightning_sdk.lightning_cloud.openapi.models.messages_id_body import MessagesIdBody
121
123
  from lightning_sdk.lightning_cloud.openapi.models.metrics_stream_id_loggerartifacts_body import MetricsStreamIdLoggerartifactsBody
122
124
  from lightning_sdk.lightning_cloud.openapi.models.metricsstream_create_body import MetricsstreamCreateBody
123
125
  from lightning_sdk.lightning_cloud.openapi.models.metricsstream_delete_body import MetricsstreamDeleteBody
@@ -161,6 +163,7 @@ from lightning_sdk.lightning_cloud.openapi.models.project_id_storage_body import
161
163
  from lightning_sdk.lightning_cloud.openapi.models.projects_id_body import ProjectsIdBody
162
164
  from lightning_sdk.lightning_cloud.openapi.models.projects_project_id_body import ProjectsProjectIdBody
163
165
  from lightning_sdk.lightning_cloud.openapi.models.protobuf_any import ProtobufAny
166
+ from lightning_sdk.lightning_cloud.openapi.models.protobuf_null_value import ProtobufNullValue
164
167
  from lightning_sdk.lightning_cloud.openapi.models.query_query_id_body import QueryQueryIdBody
165
168
  from lightning_sdk.lightning_cloud.openapi.models.rpc_status import RpcStatus
166
169
  from lightning_sdk.lightning_cloud.openapi.models.schedules_id_body import SchedulesIdBody
@@ -192,6 +195,7 @@ from lightning_sdk.lightning_cloud.openapi.models.usagerestrictions_id_body impo
192
195
  from lightning_sdk.lightning_cloud.openapi.models.user_id_affiliatelinks_body import UserIdAffiliatelinksBody
193
196
  from lightning_sdk.lightning_cloud.openapi.models.user_id_membershiprolebindings_body import UserIdMembershiprolebindingsBody
194
197
  from lightning_sdk.lightning_cloud.openapi.models.user_id_membershiprolebindings_body1 import UserIdMembershiprolebindingsBody1
198
+ from lightning_sdk.lightning_cloud.openapi.models.user_id_upgradetrigger_body import UserIdUpgradetriggerBody
195
199
  from lightning_sdk.lightning_cloud.openapi.models.v1_aws_cluster_credentials import V1AWSClusterCredentials
196
200
  from lightning_sdk.lightning_cloud.openapi.models.v1_aws_direct_v1 import V1AWSDirectV1
197
201
  from lightning_sdk.lightning_cloud.openapi.models.v1_aws_direct_v1_status import V1AWSDirectV1Status
@@ -204,6 +208,7 @@ from lightning_sdk.lightning_cloud.openapi.models.v1_agent_job import V1AgentJob
204
208
  from lightning_sdk.lightning_cloud.openapi.models.v1_agent_job_artifact import V1AgentJobArtifact
205
209
  from lightning_sdk.lightning_cloud.openapi.models.v1_agent_upload_multipart_url import V1AgentUploadMultipartUrl
206
210
  from lightning_sdk.lightning_cloud.openapi.models.v1_agent_upload_part_response import V1AgentUploadPartResponse
211
+ from lightning_sdk.lightning_cloud.openapi.models.v1_ai_pod_v1 import V1AiPodV1
207
212
  from lightning_sdk.lightning_cloud.openapi.models.v1_alert_method import V1AlertMethod
208
213
  from lightning_sdk.lightning_cloud.openapi.models.v1_alerts_config import V1AlertsConfig
209
214
  from lightning_sdk.lightning_cloud.openapi.models.v1_api_pricing_spec import V1ApiPricingSpec
@@ -216,6 +221,7 @@ from lightning_sdk.lightning_cloud.openapi.models.v1_assistant import V1Assistan
216
221
  from lightning_sdk.lightning_cloud.openapi.models.v1_assistant_knowledge_item_status import V1AssistantKnowledgeItemStatus
217
222
  from lightning_sdk.lightning_cloud.openapi.models.v1_assistant_knowledge_status import V1AssistantKnowledgeStatus
218
223
  from lightning_sdk.lightning_cloud.openapi.models.v1_assistant_model_status import V1AssistantModelStatus
224
+ from lightning_sdk.lightning_cloud.openapi.models.v1_assistant_session_daily_aggregated import V1AssistantSessionDailyAggregated
219
225
  from lightning_sdk.lightning_cloud.openapi.models.v1_author import V1Author
220
226
  from lightning_sdk.lightning_cloud.openapi.models.v1_auto_join_domain_validation import V1AutoJoinDomainValidation
221
227
  from lightning_sdk.lightning_cloud.openapi.models.v1_auto_join_org_response import V1AutoJoinOrgResponse
@@ -311,6 +317,7 @@ from lightning_sdk.lightning_cloud.openapi.models.v1_count_metrics_streams_respo
311
317
  from lightning_sdk.lightning_cloud.openapi.models.v1_create_agent_multipart_upload_response import V1CreateAgentMultipartUploadResponse
312
318
  from lightning_sdk.lightning_cloud.openapi.models.v1_create_billing_portal_session_request import V1CreateBillingPortalSessionRequest
313
319
  from lightning_sdk.lightning_cloud.openapi.models.v1_create_billing_portal_session_response import V1CreateBillingPortalSessionResponse
320
+ from lightning_sdk.lightning_cloud.openapi.models.v1_create_billing_upgrade_trigger_record_response import V1CreateBillingUpgradeTriggerRecordResponse
314
321
  from lightning_sdk.lightning_cloud.openapi.models.v1_create_blog_post_request import V1CreateBlogPostRequest
315
322
  from lightning_sdk.lightning_cloud.openapi.models.v1_create_checkout_session_request import V1CreateCheckoutSessionRequest
316
323
  from lightning_sdk.lightning_cloud.openapi.models.v1_create_checkout_session_response import V1CreateCheckoutSessionResponse
@@ -479,6 +486,7 @@ from lightning_sdk.lightning_cloud.openapi.models.v1_filesystem_work import V1Fi
479
486
  from lightning_sdk.lightning_cloud.openapi.models.v1_find_capacity_block_offering_response import V1FindCapacityBlockOfferingResponse
480
487
  from lightning_sdk.lightning_cloud.openapi.models.v1_flowserver import V1Flowserver
481
488
  from lightning_sdk.lightning_cloud.openapi.models.v1_folder_index_status import V1FolderIndexStatus
489
+ from lightning_sdk.lightning_cloud.openapi.models.v1_function_tool import V1FunctionTool
482
490
  from lightning_sdk.lightning_cloud.openapi.models.v1_gcp_direct_vpc import V1GCPDirectVPC
483
491
  from lightning_sdk.lightning_cloud.openapi.models.v1_gcs_folder_data_connection import V1GCSFolderDataConnection
484
492
  from lightning_sdk.lightning_cloud.openapi.models.v1_gpu_system_metrics import V1GPUSystemMetrics
@@ -492,6 +500,7 @@ from lightning_sdk.lightning_cloud.openapi.models.v1_get_affiliate_link_response
492
500
  from lightning_sdk.lightning_cloud.openapi.models.v1_get_agent_job_env_response import V1GetAgentJobEnvResponse
493
501
  from lightning_sdk.lightning_cloud.openapi.models.v1_get_agent_job_logs_metadata_response import V1GetAgentJobLogsMetadataResponse
494
502
  from lightning_sdk.lightning_cloud.openapi.models.v1_get_artifacts_page_response import V1GetArtifactsPageResponse
503
+ from lightning_sdk.lightning_cloud.openapi.models.v1_get_assistant_session_daily_aggregated_response import V1GetAssistantSessionDailyAggregatedResponse
495
504
  from lightning_sdk.lightning_cloud.openapi.models.v1_get_cloud_space_cold_start_metrics_stats_response import V1GetCloudSpaceColdStartMetricsStatsResponse
496
505
  from lightning_sdk.lightning_cloud.openapi.models.v1_get_cloud_space_instance_open_ports_response import V1GetCloudSpaceInstanceOpenPortsResponse
497
506
  from lightning_sdk.lightning_cloud.openapi.models.v1_get_cloud_space_instance_status_response import V1GetCloudSpaceInstanceStatusResponse
@@ -582,6 +591,7 @@ from lightning_sdk.lightning_cloud.openapi.models.v1_lightningwork_spec import V
582
591
  from lightning_sdk.lightning_cloud.openapi.models.v1_lightningwork_state import V1LightningworkState
583
592
  from lightning_sdk.lightning_cloud.openapi.models.v1_lightningwork_status import V1LightningworkStatus
584
593
  from lightning_sdk.lightning_cloud.openapi.models.v1_lightningwork_status_reason import V1LightningworkStatusReason
594
+ from lightning_sdk.lightning_cloud.openapi.models.v1_like_status import V1LikeStatus
585
595
  from lightning_sdk.lightning_cloud.openapi.models.v1_list_affiliate_links_response import V1ListAffiliateLinksResponse
586
596
  from lightning_sdk.lightning_cloud.openapi.models.v1_list_agent_job_artifacts_response import V1ListAgentJobArtifactsResponse
587
597
  from lightning_sdk.lightning_cloud.openapi.models.v1_list_agent_jobs_response import V1ListAgentJobsResponse
@@ -652,7 +662,7 @@ from lightning_sdk.lightning_cloud.openapi.models.v1_list_model_versions_respons
652
662
  from lightning_sdk.lightning_cloud.openapi.models.v1_list_models_response import V1ListModelsResponse
653
663
  from lightning_sdk.lightning_cloud.openapi.models.v1_list_multi_machine_job_events_response import V1ListMultiMachineJobEventsResponse
654
664
  from lightning_sdk.lightning_cloud.openapi.models.v1_list_multi_machine_jobs_response import V1ListMultiMachineJobsResponse
655
- from lightning_sdk.lightning_cloud.openapi.models.v1_list_new_features_for_user_response import V1ListNewFeaturesForUserResponse
665
+ from lightning_sdk.lightning_cloud.openapi.models.v1_list_notification_dialogs_response import V1ListNotificationDialogsResponse
656
666
  from lightning_sdk.lightning_cloud.openapi.models.v1_list_org_members_response import V1ListOrgMembersResponse
657
667
  from lightning_sdk.lightning_cloud.openapi.models.v1_list_org_membership_role_binding_response import V1ListOrgMembershipRoleBindingResponse
658
668
  from lightning_sdk.lightning_cloud.openapi.models.v1_list_org_memberships_response import V1ListOrgMembershipsResponse
@@ -672,6 +682,7 @@ from lightning_sdk.lightning_cloud.openapi.models.v1_list_project_memberships_re
672
682
  from lightning_sdk.lightning_cloud.openapi.models.v1_list_project_roles_response import V1ListProjectRolesResponse
673
683
  from lightning_sdk.lightning_cloud.openapi.models.v1_list_published_cloud_spaces_response import V1ListPublishedCloudSpacesResponse
674
684
  from lightning_sdk.lightning_cloud.openapi.models.v1_list_published_deployment_templates_response import V1ListPublishedDeploymentTemplatesResponse
685
+ from lightning_sdk.lightning_cloud.openapi.models.v1_list_published_managed_endpoint_models_response import V1ListPublishedManagedEndpointModelsResponse
675
686
  from lightning_sdk.lightning_cloud.openapi.models.v1_list_quests_response import V1ListQuestsResponse
676
687
  from lightning_sdk.lightning_cloud.openapi.models.v1_list_slurm_cluster_users_response import V1ListSLURMClusterUsersResponse
677
688
  from lightning_sdk.lightning_cloud.openapi.models.v1_list_ssh_public_keys_response import V1ListSSHPublicKeysResponse
@@ -871,6 +882,7 @@ from lightning_sdk.lightning_cloud.openapi.models.v1_system_metrics_list import
871
882
  from lightning_sdk.lightning_cloud.openapi.models.v1_telemetry import V1Telemetry
872
883
  from lightning_sdk.lightning_cloud.openapi.models.v1_timestamp_code_telemetry import V1TimestampCodeTelemetry
873
884
  from lightning_sdk.lightning_cloud.openapi.models.v1_token_usage import V1TokenUsage
885
+ from lightning_sdk.lightning_cloud.openapi.models.v1_tool import V1Tool
874
886
  from lightning_sdk.lightning_cloud.openapi.models.v1_transaction import V1Transaction
875
887
  from lightning_sdk.lightning_cloud.openapi.models.v1_transfer_cloud_space_response import V1TransferCloudSpaceResponse
876
888
  from lightning_sdk.lightning_cloud.openapi.models.v1_transfer_org_balance_response import V1TransferOrgBalanceResponse
@@ -888,6 +900,8 @@ from lightning_sdk.lightning_cloud.openapi.models.v1_update_cloud_space_visibili
888
900
  from lightning_sdk.lightning_cloud.openapi.models.v1_update_cluster_accelerators_request import V1UpdateClusterAcceleratorsRequest
889
901
  from lightning_sdk.lightning_cloud.openapi.models.v1_update_cluster_accelerators_response import V1UpdateClusterAcceleratorsResponse
890
902
  from lightning_sdk.lightning_cloud.openapi.models.v1_update_cluster_availability_request import V1UpdateClusterAvailabilityRequest
903
+ from lightning_sdk.lightning_cloud.openapi.models.v1_update_conversation_like_response import V1UpdateConversationLikeResponse
904
+ from lightning_sdk.lightning_cloud.openapi.models.v1_update_conversation_message_like_response import V1UpdateConversationMessageLikeResponse
891
905
  from lightning_sdk.lightning_cloud.openapi.models.v1_update_deployment_visibility_response import V1UpdateDeploymentVisibilityResponse
892
906
  from lightning_sdk.lightning_cloud.openapi.models.v1_update_index_response import V1UpdateIndexResponse
893
907
  from lightning_sdk.lightning_cloud.openapi.models.v1_update_job_visibility_response import V1UpdateJobVisibilityResponse
@@ -56,7 +56,8 @@ class AssistantIdConversationsBody(object):
56
56
  'sent_at': 'datetime',
57
57
  'store': 'bool',
58
58
  'stream': 'bool',
59
- 'system_prompt': 'str'
59
+ 'system_prompt': 'str',
60
+ 'tools': 'list[V1Tool]'
60
61
  }
61
62
 
62
63
  attribute_map = {
@@ -75,10 +76,11 @@ class AssistantIdConversationsBody(object):
75
76
  'sent_at': 'sentAt',
76
77
  'store': 'store',
77
78
  'stream': 'stream',
78
- 'system_prompt': 'systemPrompt'
79
+ 'system_prompt': 'systemPrompt',
80
+ 'tools': 'tools'
79
81
  }
80
82
 
81
- def __init__(self, auto_name: 'bool' =None, billing_project_id: 'str' =None, conversation_id: 'str' =None, ephemeral: 'bool' =None, internal_conversation: 'bool' =None, max_tokens: 'str' =None, message: 'V1Message' =None, metadata: 'dict(str, str)' =None, name: 'str' =None, parent_conversation_id: 'str' =None, parent_message_id: 'str' =None, reasoning_effort: 'str' =None, sent_at: 'datetime' =None, store: 'bool' =None, stream: 'bool' =None, system_prompt: 'str' =None): # noqa: E501
83
+ def __init__(self, auto_name: 'bool' =None, billing_project_id: 'str' =None, conversation_id: 'str' =None, ephemeral: 'bool' =None, internal_conversation: 'bool' =None, max_tokens: 'str' =None, message: 'V1Message' =None, metadata: 'dict(str, str)' =None, name: 'str' =None, parent_conversation_id: 'str' =None, parent_message_id: 'str' =None, reasoning_effort: 'str' =None, sent_at: 'datetime' =None, store: 'bool' =None, stream: 'bool' =None, system_prompt: 'str' =None, tools: 'list[V1Tool]' =None): # noqa: E501
82
84
  """AssistantIdConversationsBody - a model defined in Swagger""" # noqa: E501
83
85
  self._auto_name = None
84
86
  self._billing_project_id = None
@@ -96,6 +98,7 @@ class AssistantIdConversationsBody(object):
96
98
  self._store = None
97
99
  self._stream = None
98
100
  self._system_prompt = None
101
+ self._tools = None
99
102
  self.discriminator = None
100
103
  if auto_name is not None:
101
104
  self.auto_name = auto_name
@@ -129,6 +132,8 @@ class AssistantIdConversationsBody(object):
129
132
  self.stream = stream
130
133
  if system_prompt is not None:
131
134
  self.system_prompt = system_prompt
135
+ if tools is not None:
136
+ self.tools = tools
132
137
 
133
138
  @property
134
139
  def auto_name(self) -> 'bool':
@@ -466,6 +471,27 @@ class AssistantIdConversationsBody(object):
466
471
 
467
472
  self._system_prompt = system_prompt
468
473
 
474
+ @property
475
+ def tools(self) -> 'list[V1Tool]':
476
+ """Gets the tools of this AssistantIdConversationsBody. # noqa: E501
477
+
478
+
479
+ :return: The tools of this AssistantIdConversationsBody. # noqa: E501
480
+ :rtype: list[V1Tool]
481
+ """
482
+ return self._tools
483
+
484
+ @tools.setter
485
+ def tools(self, tools: 'list[V1Tool]'):
486
+ """Sets the tools of this AssistantIdConversationsBody.
487
+
488
+
489
+ :param tools: The tools of this AssistantIdConversationsBody. # noqa: E501
490
+ :type: list[V1Tool]
491
+ """
492
+
493
+ self._tools = tools
494
+
469
495
  def to_dict(self) -> dict:
470
496
  """Returns the model properties as a dict"""
471
497
  result = {}
@@ -43,6 +43,8 @@ class BlogpostsIdBody(object):
43
43
  swagger_types = {
44
44
  'author_id': 'str',
45
45
  'category': 'str',
46
+ 'customer_logo_url': 'str',
47
+ 'customer_name': 'str',
46
48
  'description': 'str',
47
49
  'image_url': 'str',
48
50
  'lit_page_id': 'str',
@@ -52,16 +54,20 @@ class BlogpostsIdBody(object):
52
54
  attribute_map = {
53
55
  'author_id': 'authorId',
54
56
  'category': 'category',
57
+ 'customer_logo_url': 'customerLogoUrl',
58
+ 'customer_name': 'customerName',
55
59
  'description': 'description',
56
60
  'image_url': 'imageUrl',
57
61
  'lit_page_id': 'litPageId',
58
62
  'title': 'title'
59
63
  }
60
64
 
61
- def __init__(self, author_id: 'str' =None, category: 'str' =None, description: 'str' =None, image_url: 'str' =None, lit_page_id: 'str' =None, title: 'str' =None): # noqa: E501
65
+ def __init__(self, author_id: 'str' =None, category: 'str' =None, customer_logo_url: 'str' =None, customer_name: 'str' =None, description: 'str' =None, image_url: 'str' =None, lit_page_id: 'str' =None, title: 'str' =None): # noqa: E501
62
66
  """BlogpostsIdBody - a model defined in Swagger""" # noqa: E501
63
67
  self._author_id = None
64
68
  self._category = None
69
+ self._customer_logo_url = None
70
+ self._customer_name = None
65
71
  self._description = None
66
72
  self._image_url = None
67
73
  self._lit_page_id = None
@@ -71,6 +77,10 @@ class BlogpostsIdBody(object):
71
77
  self.author_id = author_id
72
78
  if category is not None:
73
79
  self.category = category
80
+ if customer_logo_url is not None:
81
+ self.customer_logo_url = customer_logo_url
82
+ if customer_name is not None:
83
+ self.customer_name = customer_name
74
84
  if description is not None:
75
85
  self.description = description
76
86
  if image_url is not None:
@@ -122,6 +132,48 @@ class BlogpostsIdBody(object):
122
132
 
123
133
  self._category = category
124
134
 
135
+ @property
136
+ def customer_logo_url(self) -> 'str':
137
+ """Gets the customer_logo_url of this BlogpostsIdBody. # noqa: E501
138
+
139
+
140
+ :return: The customer_logo_url of this BlogpostsIdBody. # noqa: E501
141
+ :rtype: str
142
+ """
143
+ return self._customer_logo_url
144
+
145
+ @customer_logo_url.setter
146
+ def customer_logo_url(self, customer_logo_url: 'str'):
147
+ """Sets the customer_logo_url of this BlogpostsIdBody.
148
+
149
+
150
+ :param customer_logo_url: The customer_logo_url of this BlogpostsIdBody. # noqa: E501
151
+ :type: str
152
+ """
153
+
154
+ self._customer_logo_url = customer_logo_url
155
+
156
+ @property
157
+ def customer_name(self) -> 'str':
158
+ """Gets the customer_name of this BlogpostsIdBody. # noqa: E501
159
+
160
+
161
+ :return: The customer_name of this BlogpostsIdBody. # noqa: E501
162
+ :rtype: str
163
+ """
164
+ return self._customer_name
165
+
166
+ @customer_name.setter
167
+ def customer_name(self, customer_name: 'str'):
168
+ """Sets the customer_name of this BlogpostsIdBody.
169
+
170
+
171
+ :param customer_name: The customer_name of this BlogpostsIdBody. # noqa: E501
172
+ :type: str
173
+ """
174
+
175
+ self._customer_name = customer_name
176
+
125
177
  @property
126
178
  def description(self) -> 'str':
127
179
  """Gets the description of this BlogpostsIdBody. # noqa: E501
@@ -28,7 +28,7 @@ if TYPE_CHECKING:
28
28
  from datetime import datetime
29
29
  from lightning_sdk.lightning_cloud.openapi.models import *
30
30
 
31
- class V1ListNewFeaturesForUserResponse(object):
31
+ class ConversationsIdBody1(object):
32
32
  """NOTE: This class is auto generated by the swagger code generator program.
33
33
 
34
34
  Do not edit the class manually.
@@ -41,40 +41,40 @@ class V1ListNewFeaturesForUserResponse(object):
41
41
  and the value is json key in definition.
42
42
  """
43
43
  swagger_types = {
44
- 'features': 'list[V1NewFeature]'
44
+ 'like': 'V1LikeStatus'
45
45
  }
46
46
 
47
47
  attribute_map = {
48
- 'features': 'features'
48
+ 'like': 'like'
49
49
  }
50
50
 
51
- def __init__(self, features: 'list[V1NewFeature]' =None): # noqa: E501
52
- """V1ListNewFeaturesForUserResponse - a model defined in Swagger""" # noqa: E501
53
- self._features = None
51
+ def __init__(self, like: 'V1LikeStatus' =None): # noqa: E501
52
+ """ConversationsIdBody1 - a model defined in Swagger""" # noqa: E501
53
+ self._like = None
54
54
  self.discriminator = None
55
- if features is not None:
56
- self.features = features
55
+ if like is not None:
56
+ self.like = like
57
57
 
58
58
  @property
59
- def features(self) -> 'list[V1NewFeature]':
60
- """Gets the features of this V1ListNewFeaturesForUserResponse. # noqa: E501
59
+ def like(self) -> 'V1LikeStatus':
60
+ """Gets the like of this ConversationsIdBody1. # noqa: E501
61
61
 
62
62
 
63
- :return: The features of this V1ListNewFeaturesForUserResponse. # noqa: E501
64
- :rtype: list[V1NewFeature]
63
+ :return: The like of this ConversationsIdBody1. # noqa: E501
64
+ :rtype: V1LikeStatus
65
65
  """
66
- return self._features
66
+ return self._like
67
67
 
68
- @features.setter
69
- def features(self, features: 'list[V1NewFeature]'):
70
- """Sets the features of this V1ListNewFeaturesForUserResponse.
68
+ @like.setter
69
+ def like(self, like: 'V1LikeStatus'):
70
+ """Sets the like of this ConversationsIdBody1.
71
71
 
72
72
 
73
- :param features: The features of this V1ListNewFeaturesForUserResponse. # noqa: E501
74
- :type: list[V1NewFeature]
73
+ :param like: The like of this ConversationsIdBody1. # noqa: E501
74
+ :type: V1LikeStatus
75
75
  """
76
76
 
77
- self._features = features
77
+ self._like = like
78
78
 
79
79
  def to_dict(self) -> dict:
80
80
  """Returns the model properties as a dict"""
@@ -97,7 +97,7 @@ class V1ListNewFeaturesForUserResponse(object):
97
97
  ))
98
98
  else:
99
99
  result[attr] = value
100
- if issubclass(V1ListNewFeaturesForUserResponse, dict):
100
+ if issubclass(ConversationsIdBody1, dict):
101
101
  for key, value in self.items():
102
102
  result[key] = value
103
103
 
@@ -111,13 +111,13 @@ class V1ListNewFeaturesForUserResponse(object):
111
111
  """For `print` and `pprint`"""
112
112
  return self.to_str()
113
113
 
114
- def __eq__(self, other: 'V1ListNewFeaturesForUserResponse') -> bool:
114
+ def __eq__(self, other: 'ConversationsIdBody1') -> bool:
115
115
  """Returns true if both objects are equal"""
116
- if not isinstance(other, V1ListNewFeaturesForUserResponse):
116
+ if not isinstance(other, ConversationsIdBody1):
117
117
  return False
118
118
 
119
119
  return self.__dict__ == other.__dict__
120
120
 
121
- def __ne__(self, other: 'V1ListNewFeaturesForUserResponse') -> bool:
121
+ def __ne__(self, other: 'ConversationsIdBody1') -> bool:
122
122
  """Returns true if both objects are not equal"""
123
123
  return not self == other
@@ -0,0 +1,123 @@
1
+ # coding: utf-8
2
+
3
+ """
4
+ external/v1/auth_service.proto
5
+
6
+ No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501
7
+
8
+ OpenAPI spec version: version not set
9
+
10
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
11
+
12
+ NOTE
13
+ ----
14
+ standard swagger-codegen-cli for this python client has been modified
15
+ by custom templates. The purpose of these templates is to include
16
+ typing information in the API and Model code. Please refer to the
17
+ main grid repository for more info
18
+ """
19
+
20
+ import pprint
21
+ import re # noqa: F401
22
+
23
+ from typing import TYPE_CHECKING
24
+
25
+ import six
26
+
27
+ if TYPE_CHECKING:
28
+ from datetime import datetime
29
+ from lightning_sdk.lightning_cloud.openapi.models import *
30
+
31
+ class MessagesIdBody(object):
32
+ """NOTE: This class is auto generated by the swagger code generator program.
33
+
34
+ Do not edit the class manually.
35
+ """
36
+ """
37
+ Attributes:
38
+ swagger_types (dict): The key is attribute name
39
+ and the value is attribute type.
40
+ attribute_map (dict): The key is attribute name
41
+ and the value is json key in definition.
42
+ """
43
+ swagger_types = {
44
+ 'like': 'V1LikeStatus'
45
+ }
46
+
47
+ attribute_map = {
48
+ 'like': 'like'
49
+ }
50
+
51
+ def __init__(self, like: 'V1LikeStatus' =None): # noqa: E501
52
+ """MessagesIdBody - a model defined in Swagger""" # noqa: E501
53
+ self._like = None
54
+ self.discriminator = None
55
+ if like is not None:
56
+ self.like = like
57
+
58
+ @property
59
+ def like(self) -> 'V1LikeStatus':
60
+ """Gets the like of this MessagesIdBody. # noqa: E501
61
+
62
+
63
+ :return: The like of this MessagesIdBody. # noqa: E501
64
+ :rtype: V1LikeStatus
65
+ """
66
+ return self._like
67
+
68
+ @like.setter
69
+ def like(self, like: 'V1LikeStatus'):
70
+ """Sets the like of this MessagesIdBody.
71
+
72
+
73
+ :param like: The like of this MessagesIdBody. # noqa: E501
74
+ :type: V1LikeStatus
75
+ """
76
+
77
+ self._like = like
78
+
79
+ def to_dict(self) -> dict:
80
+ """Returns the model properties as a dict"""
81
+ result = {}
82
+
83
+ for attr, _ in six.iteritems(self.swagger_types):
84
+ value = getattr(self, attr)
85
+ if isinstance(value, list):
86
+ result[attr] = list(map(
87
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
88
+ value
89
+ ))
90
+ elif hasattr(value, "to_dict"):
91
+ result[attr] = value.to_dict()
92
+ elif isinstance(value, dict):
93
+ result[attr] = dict(map(
94
+ lambda item: (item[0], item[1].to_dict())
95
+ if hasattr(item[1], "to_dict") else item,
96
+ value.items()
97
+ ))
98
+ else:
99
+ result[attr] = value
100
+ if issubclass(MessagesIdBody, dict):
101
+ for key, value in self.items():
102
+ result[key] = value
103
+
104
+ return result
105
+
106
+ def to_str(self) -> str:
107
+ """Returns the string representation of the model"""
108
+ return pprint.pformat(self.to_dict())
109
+
110
+ def __repr__(self) -> str:
111
+ """For `print` and `pprint`"""
112
+ return self.to_str()
113
+
114
+ def __eq__(self, other: 'MessagesIdBody') -> bool:
115
+ """Returns true if both objects are equal"""
116
+ if not isinstance(other, MessagesIdBody):
117
+ return False
118
+
119
+ return self.__dict__ == other.__dict__
120
+
121
+ def __ne__(self, other: 'MessagesIdBody') -> bool:
122
+ """Returns true if both objects are not equal"""
123
+ return not self == other
@@ -46,7 +46,8 @@ class ProjectIdSchedulesBody(object):
46
46
  'display_name': 'str',
47
47
  'parent_resource_id': 'str',
48
48
  'resource_id': 'str',
49
- 'resource_type': 'V1ScheduleResourceType'
49
+ 'resource_type': 'V1ScheduleResourceType',
50
+ 'timezone': 'str'
50
51
  }
51
52
 
52
53
  attribute_map = {
@@ -55,10 +56,11 @@ class ProjectIdSchedulesBody(object):
55
56
  'display_name': 'displayName',
56
57
  'parent_resource_id': 'parentResourceId',
57
58
  'resource_id': 'resourceId',
58
- 'resource_type': 'resourceType'
59
+ 'resource_type': 'resourceType',
60
+ 'timezone': 'timezone'
59
61
  }
60
62
 
61
- def __init__(self, action_type: 'V1ScheduleActionType' =None, cron_expression: 'str' =None, display_name: 'str' =None, parent_resource_id: 'str' =None, resource_id: 'str' =None, resource_type: 'V1ScheduleResourceType' =None): # noqa: E501
63
+ def __init__(self, action_type: 'V1ScheduleActionType' =None, cron_expression: 'str' =None, display_name: 'str' =None, parent_resource_id: 'str' =None, resource_id: 'str' =None, resource_type: 'V1ScheduleResourceType' =None, timezone: 'str' =None): # noqa: E501
62
64
  """ProjectIdSchedulesBody - a model defined in Swagger""" # noqa: E501
63
65
  self._action_type = None
64
66
  self._cron_expression = None
@@ -66,6 +68,7 @@ class ProjectIdSchedulesBody(object):
66
68
  self._parent_resource_id = None
67
69
  self._resource_id = None
68
70
  self._resource_type = None
71
+ self._timezone = None
69
72
  self.discriminator = None
70
73
  if action_type is not None:
71
74
  self.action_type = action_type
@@ -79,6 +82,8 @@ class ProjectIdSchedulesBody(object):
79
82
  self.resource_id = resource_id
80
83
  if resource_type is not None:
81
84
  self.resource_type = resource_type
85
+ if timezone is not None:
86
+ self.timezone = timezone
82
87
 
83
88
  @property
84
89
  def action_type(self) -> 'V1ScheduleActionType':
@@ -206,6 +211,27 @@ class ProjectIdSchedulesBody(object):
206
211
 
207
212
  self._resource_type = resource_type
208
213
 
214
+ @property
215
+ def timezone(self) -> 'str':
216
+ """Gets the timezone of this ProjectIdSchedulesBody. # noqa: E501
217
+
218
+
219
+ :return: The timezone of this ProjectIdSchedulesBody. # noqa: E501
220
+ :rtype: str
221
+ """
222
+ return self._timezone
223
+
224
+ @timezone.setter
225
+ def timezone(self, timezone: 'str'):
226
+ """Sets the timezone of this ProjectIdSchedulesBody.
227
+
228
+
229
+ :param timezone: The timezone of this ProjectIdSchedulesBody. # noqa: E501
230
+ :type: str
231
+ """
232
+
233
+ self._timezone = timezone
234
+
209
235
  def to_dict(self) -> dict:
210
236
  """Returns the model properties as a dict"""
211
237
  result = {}