@salable/sdk 1.0.55 → 1.0.57
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.
|
@@ -5,7 +5,7 @@ import { type BaseRequestBuilder, type RequestConfiguration, type RequestInforma
|
|
|
5
5
|
*/
|
|
6
6
|
export interface CheckRequestBuilder extends BaseRequestBuilder<CheckRequestBuilder> {
|
|
7
7
|
/**
|
|
8
|
-
* Unlock features in your product by checking what the grantee has access to.
|
|
8
|
+
* Unlock features in your product by checking what the grantee has access to. When an owner is provided, relevant meter and token slugs are included as typed entries.
|
|
9
9
|
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
|
|
10
10
|
* @returns {Promise<CheckEntitlementsSchema>}
|
|
11
11
|
* @throws {ErrorResponseBody} error when the service returns a 400 status code
|
|
@@ -17,14 +17,14 @@ export interface CheckRequestBuilder extends BaseRequestBuilder<CheckRequestBuil
|
|
|
17
17
|
*/
|
|
18
18
|
get(requestConfiguration?: RequestConfiguration<CheckRequestBuilderGetQueryParameters> | undefined): Promise<CheckEntitlementsSchema | undefined>;
|
|
19
19
|
/**
|
|
20
|
-
* Unlock features in your product by checking what the grantee has access to.
|
|
20
|
+
* Unlock features in your product by checking what the grantee has access to. When an owner is provided, relevant meter and token slugs are included as typed entries.
|
|
21
21
|
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
|
|
22
22
|
* @returns {RequestInformation}
|
|
23
23
|
*/
|
|
24
24
|
toGetRequestInformation(requestConfiguration?: RequestConfiguration<CheckRequestBuilderGetQueryParameters> | undefined): RequestInformation;
|
|
25
25
|
}
|
|
26
26
|
/**
|
|
27
|
-
* Unlock features in your product by checking what the grantee has access to.
|
|
27
|
+
* Unlock features in your product by checking what the grantee has access to. When an owner is provided, relevant meter and token slugs are included as typed entries.
|
|
28
28
|
*/
|
|
29
29
|
export interface CheckRequestBuilderGetQueryParameters {
|
|
30
30
|
granteeId?: string;
|
|
@@ -29,7 +29,7 @@ export interface BalanceRequestBuilder extends BaseRequestBuilder<BalanceRequest
|
|
|
29
29
|
*/
|
|
30
30
|
export interface BalanceRequestBuilderGetQueryParameters {
|
|
31
31
|
/**
|
|
32
|
-
* Owner value to retrieve the
|
|
32
|
+
* Owner value to retrieve the token balances for.
|
|
33
33
|
*/
|
|
34
34
|
owner?: string;
|
|
35
35
|
/**
|
|
@@ -5,7 +5,7 @@ import { type BaseRequestBuilder, type RequestConfiguration, type RequestInforma
|
|
|
5
5
|
*/
|
|
6
6
|
export interface ConsumeRequestBuilder extends BaseRequestBuilder<ConsumeRequestBuilder> {
|
|
7
7
|
/**
|
|
8
|
-
* Consume a specified amount of tokens for an owner. Supports idempotency keys to prevent duplicate consumption.
|
|
8
|
+
* Consume a specified amount of tokens for an owner with a positive balance. Partial consumption is allowed if the current positive balance cannot cover the specified amount with the difference tracked as an overage. Supports idempotency keys to prevent duplicate consumption.
|
|
9
9
|
* @param body The request body
|
|
10
10
|
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
|
|
11
11
|
* @throws {ErrorResponseBody} error when the service returns a 400 status code
|
|
@@ -19,7 +19,7 @@ export interface ConsumeRequestBuilder extends BaseRequestBuilder<ConsumeRequest
|
|
|
19
19
|
*/
|
|
20
20
|
post(body: ConsumeTokenRequestSchema, requestConfiguration?: RequestConfiguration<object> | undefined): Promise<void>;
|
|
21
21
|
/**
|
|
22
|
-
* Consume a specified amount of tokens for an owner. Supports idempotency keys to prevent duplicate consumption.
|
|
22
|
+
* Consume a specified amount of tokens for an owner with a positive balance. Partial consumption is allowed if the current positive balance cannot cover the specified amount with the difference tracked as an overage. Supports idempotency keys to prevent duplicate consumption.
|
|
23
23
|
* @param body The request body
|
|
24
24
|
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
|
|
25
25
|
* @returns {RequestInformation}
|