File tree 2 files changed +37
-1
lines changed
packages/models-library/src/models_library/api_schemas_webserver
services/web/server/src/simcore_service_webserver/api/v0 2 files changed +37
-1
lines changed Original file line number Diff line number Diff line change 6
6
from ..projects import ProjectID
7
7
from ..projects_nodes_io import NodeID
8
8
from ..resource_tracker import (
9
+ CreditTransactionStatus ,
9
10
HardwareInfo ,
10
11
PricingPlanClassification ,
11
12
PricingPlanId ,
27
28
28
29
class ServiceRunGet (
29
30
BaseModel
30
- ): # NOTE: this is already in use so I didnt modidy inheritance from OutputSchema
31
+ ): # NOTE: this is already in use so I didnt modify inheritance from OutputSchema
31
32
service_run_id : ServiceRunID
32
33
wallet_id : WalletID | None
33
34
wallet_name : str | None
34
35
user_id : UserID
36
+ user_email : str
35
37
project_id : ProjectID
36
38
project_name : str
39
+ project_tags : list [str ]
37
40
node_id : NodeID
38
41
node_name : str
39
42
root_parent_project_id : ProjectID
@@ -44,6 +47,9 @@ class ServiceRunGet(
44
47
started_at : datetime
45
48
stopped_at : datetime | None
46
49
service_run_status : ServiceRunStatus
50
+ # Cost in credits
51
+ credit_cost : Decimal | None
52
+ transaction_status : CreditTransactionStatus | None
47
53
48
54
49
55
class PricingUnitGet (OutputSchema ):
Original file line number Diff line number Diff line change @@ -8523,6 +8523,15 @@ components:
8523
8523
- usdPerCredit
8524
8524
- minPaymentAmountUsd
8525
8525
title : CreditPriceGet
8526
+ CreditTransactionStatus :
8527
+ type : string
8528
+ enum :
8529
+ - PENDING
8530
+ - BILLED
8531
+ - IN_DEBT
8532
+ - NOT_BILLED
8533
+ - REQUIRES_MANUAL_REVIEW
8534
+ title : CreditTransactionStatus
8526
8535
CursorPage___T_Customized_PathMetaDataGet_ :
8527
8536
properties :
8528
8537
items :
@@ -14626,13 +14635,21 @@ components:
14626
14635
exclusiveMinimum : true
14627
14636
title : User Id
14628
14637
minimum : 0
14638
+ user_email :
14639
+ type : string
14640
+ title : User Email
14629
14641
project_id :
14630
14642
type : string
14631
14643
format : uuid
14632
14644
title : Project Id
14633
14645
project_name :
14634
14646
type : string
14635
14647
title : Project Name
14648
+ project_tags :
14649
+ items :
14650
+ type : string
14651
+ type : array
14652
+ title : Project Tags
14636
14653
node_id :
14637
14654
type : string
14638
14655
format : uuid
@@ -14670,14 +14687,25 @@ components:
14670
14687
title : Stopped At
14671
14688
service_run_status :
14672
14689
$ref : ' #/components/schemas/ServiceRunStatus'
14690
+ credit_cost :
14691
+ anyOf :
14692
+ - type : string
14693
+ - type : ' null'
14694
+ title : Credit Cost
14695
+ transaction_status :
14696
+ anyOf :
14697
+ - $ref : ' #/components/schemas/CreditTransactionStatus'
14698
+ - type : ' null'
14673
14699
type : object
14674
14700
required :
14675
14701
- service_run_id
14676
14702
- wallet_id
14677
14703
- wallet_name
14678
14704
- user_id
14705
+ - user_email
14679
14706
- project_id
14680
14707
- project_name
14708
+ - project_tags
14681
14709
- node_id
14682
14710
- node_name
14683
14711
- root_parent_project_id
@@ -14688,6 +14716,8 @@ components:
14688
14716
- started_at
14689
14717
- stopped_at
14690
14718
- service_run_status
14719
+ - credit_cost
14720
+ - transaction_status
14691
14721
title : ServiceRunGet
14692
14722
ServiceRunStatus :
14693
14723
type : string
You can’t perform that action at this time.
0 commit comments