@@ -49,22 +49,24 @@ import 'package:ground_control_client/src/protocol/features/environment_variable
4949 as _i20;
5050import 'package:ground_control_client/src/protocol/domains/logs/models/log_record.dart'
5151 as _i21;
52- import 'package:ground_control_client/src/protocol/features/databases /models/database_connection .dart'
52+ import 'package:ground_control_client/src/protocol/domains/products /models/subscription_info .dart'
5353 as _i22;
54- import 'package:ground_control_client/src/protocol/features/projects /models/project_config .dart'
54+ import 'package:ground_control_client/src/protocol/features/databases /models/database_connection .dart'
5555 as _i23;
56- import 'package:ground_control_client/src/protocol/features/projects/models/role .dart'
56+ import 'package:ground_control_client/src/protocol/features/projects/models/project_config .dart'
5757 as _i24;
58- import 'package:ground_control_client/src/protocol/domains/status /models/deploy_attempt_stage .dart'
58+ import 'package:ground_control_client/src/protocol/features/projects /models/role .dart'
5959 as _i25;
60- import 'package:serverpod_auth_idp_client/serverpod_auth_idp_client .dart'
60+ import 'package:ground_control_client/src/protocol/domains/status/models/deploy_attempt_stage .dart'
6161 as _i26;
62- import 'package:serverpod_auth_migration_client/serverpod_auth_migration_client .dart'
62+ import 'package:serverpod_auth_idp_client/serverpod_auth_idp_client .dart'
6363 as _i27;
64- import 'package:serverpod_auth_bridge_client/serverpod_auth_bridge_client .dart'
64+ import 'package:serverpod_auth_migration_client/serverpod_auth_migration_client .dart'
6565 as _i28;
66- import 'package:serverpod_auth_client/serverpod_auth_client.dart' as _i29;
67- import 'protocol.dart' as _i30;
66+ import 'package:serverpod_auth_bridge_client/serverpod_auth_bridge_client.dart'
67+ as _i29;
68+ import 'package:serverpod_auth_client/serverpod_auth_client.dart' as _i30;
69+ import 'protocol.dart' as _i31;
6870
6971/// Endpoint for global administrator to handle procurement for users.
7072/// {@category Endpoint}
@@ -356,12 +358,13 @@ class EndpointBilling extends _i1.EndpointRef {
356358 @override
357359 String get name => 'billing' ;
358360
359- /// Reads the owner's billing information.
361+ /// Reads the owner information.
360362 ///
361- /// This endpoint reads the owner's billing information, including the
362- /// billing address and email addresses.
363+ /// Returns the [Owner] object,
364+ /// including the [User] object, and [BillingInfo] if it exists
365+ /// (including the billing address and email addresses).
363366 ///
364- /// Returns the [Owner] object .
367+ /// Throws a [NotFoundException] if the owner is not found .
365368 _i2.Future <_i12.Owner > readOwner () => caller.callServerEndpoint< _i12.Owner > (
366369 'billing' ,
367370 'readOwner' ,
@@ -683,11 +686,17 @@ class EndpointPlans extends _i1.EndpointRef {
683686 String get name => 'plans' ;
684687
685688 /// Procures a subscription plan.
686- _i2.Future <void > procurePlan ({required String planName}) =>
689+ _i2.Future <void > procurePlan ({
690+ String ? planProductName,
691+ String ? planName,
692+ }) =>
687693 caller.callServerEndpoint <void >(
688694 'plans' ,
689695 'procurePlan' ,
690- {'planName' : planName},
696+ {
697+ 'planProductName' : planProductName,
698+ 'planName' : planName,
699+ },
691700 );
692701
693702 /// Fetches the names of the procured subscription plans.
@@ -698,15 +707,28 @@ class EndpointPlans extends _i1.EndpointRef {
698707 {},
699708 );
700709
710+ _i2.Future <_i22.SubscriptionInfo > getSubscriptionInfo () =>
711+ caller.callServerEndpoint< _i22.SubscriptionInfo > (
712+ 'plans' ,
713+ 'getSubscriptionInfo' ,
714+ {},
715+ );
716+
701717 /// Checks if a plan is available for procurement.
702718 ///
703719 /// - Throws [NotFoundException] if the product is not found.
704720 /// - Throws [ProcurementDeniedException] if the product is not available.
705- _i2.Future <void > checkPlanAvailability ({required String planName}) =>
721+ _i2.Future <void > checkPlanAvailability ({
722+ String ? planProductName,
723+ String ? planName,
724+ }) =>
706725 caller.callServerEndpoint <void >(
707726 'plans' ,
708727 'checkPlanAvailability' ,
709- {'planName' : planName},
728+ {
729+ 'planProductName' : planProductName,
730+ 'planName' : planName,
731+ },
710732 );
711733
712734 /// Fetches the names of the available subscription plans.
@@ -726,9 +748,9 @@ class EndpointDatabase extends _i1.EndpointRef {
726748 @override
727749 String get name => 'database' ;
728750
729- _i2.Future <_i22 .DatabaseConnection > getConnectionDetails (
751+ _i2.Future <_i23 .DatabaseConnection > getConnectionDetails (
730752 {required String cloudCapsuleId}) =>
731- caller.callServerEndpoint< _i22 .DatabaseConnection > (
753+ caller.callServerEndpoint< _i23 .DatabaseConnection > (
732754 'database' ,
733755 'getConnectionDetails' ,
734756 {'cloudCapsuleId' : cloudCapsuleId},
@@ -856,9 +878,9 @@ class EndpointProjects extends _i1.EndpointRef {
856878 {'cloudProjectId' : cloudProjectId},
857879 );
858880
859- _i2.Future <_i23 .ProjectConfig > fetchProjectConfig (
881+ _i2.Future <_i24 .ProjectConfig > fetchProjectConfig (
860882 {required String cloudProjectId}) =>
861- caller.callServerEndpoint< _i23 .ProjectConfig > (
883+ caller.callServerEndpoint< _i24 .ProjectConfig > (
862884 'projects' ,
863885 'fetchProjectConfig' ,
864886 {'cloudProjectId' : cloudProjectId},
@@ -959,9 +981,9 @@ class EndpointRoles extends _i1.EndpointRef {
959981 String get name => 'roles' ;
960982
961983 /// Fetches the user roles for a project.
962- _i2.Future <List <_i24 .Role >> fetchRolesForProject (
984+ _i2.Future <List <_i25 .Role >> fetchRolesForProject (
963985 {required String cloudProjectId}) =>
964- caller.callServerEndpoint< List <_i24 .Role >> (
986+ caller.callServerEndpoint< List <_i25 .Role >> (
965987 'roles' ,
966988 'fetchRolesForProject' ,
967989 {'cloudProjectId' : cloudProjectId},
@@ -1033,11 +1055,11 @@ class EndpointStatus extends _i1.EndpointRef {
10331055 );
10341056
10351057 /// Gets the specified deploy attempt status of the a capsule.
1036- _i2.Future <List <_i25 .DeployAttemptStage >> getDeployAttemptStatus ({
1058+ _i2.Future <List <_i26 .DeployAttemptStage >> getDeployAttemptStatus ({
10371059 required String cloudCapsuleId,
10381060 required String attemptId,
10391061 }) =>
1040- caller.callServerEndpoint< List <_i25 .DeployAttemptStage >> (
1062+ caller.callServerEndpoint< List <_i26 .DeployAttemptStage >> (
10411063 'status' ,
10421064 'getDeployAttemptStatus' ,
10431065 {
@@ -1089,20 +1111,20 @@ class EndpointUsers extends _i1.EndpointRef {
10891111
10901112class Modules {
10911113 Modules (Client client) {
1092- serverpod_auth_idp = _i26 .Caller (client);
1093- serverpod_auth_migration = _i27 .Caller (client);
1094- serverpod_auth_bridge = _i28 .Caller (client);
1095- auth = _i29 .Caller (client);
1114+ serverpod_auth_idp = _i27 .Caller (client);
1115+ serverpod_auth_migration = _i28 .Caller (client);
1116+ serverpod_auth_bridge = _i29 .Caller (client);
1117+ auth = _i30 .Caller (client);
10961118 serverpod_auth_core = _i10.Caller (client);
10971119 }
10981120
1099- late final _i26 .Caller serverpod_auth_idp;
1121+ late final _i27 .Caller serverpod_auth_idp;
11001122
1101- late final _i27 .Caller serverpod_auth_migration;
1123+ late final _i28 .Caller serverpod_auth_migration;
11021124
1103- late final _i28 .Caller serverpod_auth_bridge;
1125+ late final _i29 .Caller serverpod_auth_bridge;
11041126
1105- late final _i29 .Caller auth;
1127+ late final _i30 .Caller auth;
11061128
11071129 late final _i10.Caller serverpod_auth_core;
11081130}
@@ -1123,7 +1145,7 @@ class Client extends _i1.ServerpodClientShared {
11231145 bool ? disconnectStreamsOnLostInternetConnection,
11241146 }) : super (
11251147 host,
1126- _i30 .Protocol (),
1148+ _i31 .Protocol (),
11271149 securityContext: securityContext,
11281150 authenticationKeyManager: authenticationKeyManager,
11291151 streamingConnectionTimeout: streamingConnectionTimeout,
0 commit comments