Skip to content

Commit

Permalink
Merge b2958b2 into 36b8318
Browse files Browse the repository at this point in the history
  • Loading branch information
jvallesm authored Jun 18, 2024
2 parents 36b8318 + b2958b2 commit 85e87c4
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 7 deletions.
12 changes: 10 additions & 2 deletions core/mgmt/v1beta/mgmt.proto
Original file line number Diff line number Diff line change
Expand Up @@ -589,8 +589,16 @@ message GetRemainingCreditRequest {
// GetRemainingCreditResponse contains the remaining credit of a user or
// organization.
message GetRemainingCreditResponse {
// The requested credit.
float amount = 1;
// 1 is reserved for the previous endpoint version, where only the total
// amount was returned.
reserved 1;
// Amount of perishable credit, i.e. credit with an expiration date.
float perishable = 2;
// Amount of imperishable credit, e.g. purchased credit, which doesn't
// expire.
float imperishable = 3;
// Total remaining credit.
float total = 4;
}

// GetRemainingCreditAdminRequest represents a request to get the remaining
Expand Down
8 changes: 3 additions & 5 deletions core/mgmt/v1beta/mgmt_public_service.proto
Original file line number Diff line number Diff line change
Expand Up @@ -281,11 +281,9 @@ service MgmtPublicService {

// Get the remaining Instill Credit
//
// On Instill Cloud, users can use Instill Credit to execute pre-configured
// AI connectors. This simplifies the pipeline setup, removing the need to
// subscribe to third-party AI services. This endpoint returns the remaining
// Instill Credit of a given user or organization. The requested credit owner
// must be either the authenticated user or an organization they belong to.
// This endpoint returns the remaining [Instill Credit](https://www.instill.tech/docs/vdp/credit) of a given user or
// organization. The requested credit owner must be either the authenticated
// user or an organization they belong to.
//
// On Instill Core, this endpoint will return a 404 Not Found status.
rpc GetRemainingCredit(GetRemainingCreditRequest) returns (GetRemainingCreditResponse) {
Expand Down

0 comments on commit 85e87c4

Please sign in to comment.