@botpress/client 2.6.0 → 2.7.0
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.
- package/dist/bundle.cjs +5 -5
- package/dist/bundle.cjs.map +4 -4
- package/dist/index.cjs +5 -5
- package/dist/index.cjs.map +4 -4
- package/dist/index.d.ts +50 -1
- package/dist/index.mjs +5 -5
- package/dist/index.mjs.map +4 -4
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -16658,7 +16658,7 @@ interface CreateCreditGrantRequestParams {
|
|
|
16658
16658
|
}
|
|
16659
16659
|
interface CreateCreditGrantRequestBody {
|
|
16660
16660
|
/**
|
|
16661
|
-
* Nanodollar value of the credit grant, must be at least $5 and a whole
|
|
16661
|
+
* Nanodollar value of the credit grant, must be at least $5 and a whole number of cents
|
|
16662
16662
|
*/
|
|
16663
16663
|
amount: number;
|
|
16664
16664
|
feature: "ai_spend";
|
|
@@ -16685,6 +16685,54 @@ interface CreateCreditGrantResponse {
|
|
|
16685
16685
|
createdAt: string;
|
|
16686
16686
|
}
|
|
16687
16687
|
|
|
16688
|
+
interface ListCreditGrantsRequestHeaders {
|
|
16689
|
+
}
|
|
16690
|
+
interface ListCreditGrantsRequestQuery {
|
|
16691
|
+
nextToken?: string;
|
|
16692
|
+
pageSize?: number;
|
|
16693
|
+
}
|
|
16694
|
+
interface ListCreditGrantsRequestParams {
|
|
16695
|
+
}
|
|
16696
|
+
interface ListCreditGrantsRequestBody {
|
|
16697
|
+
}
|
|
16698
|
+
type ListCreditGrantsInput = ListCreditGrantsRequestBody & ListCreditGrantsRequestHeaders & ListCreditGrantsRequestQuery & ListCreditGrantsRequestParams;
|
|
16699
|
+
interface ListCreditGrantsResponse {
|
|
16700
|
+
creditGrants: {
|
|
16701
|
+
id: string;
|
|
16702
|
+
workspace_id: string;
|
|
16703
|
+
invoice_id: string | null;
|
|
16704
|
+
/**
|
|
16705
|
+
* Nanodollar value of the credit grant
|
|
16706
|
+
*/
|
|
16707
|
+
amount: number;
|
|
16708
|
+
feature: "incoming_messages_events" | "integration_spend" | "table_rows" | "bot_count" | "collaborator_count" | "file_storage" | "vector_db_storage" | "saved_versions" | "indexed_file_count" | "conversation_sessions" | "ai_spend";
|
|
16709
|
+
/**
|
|
16710
|
+
* Start of the period (inclusive)
|
|
16711
|
+
*/
|
|
16712
|
+
period_start: string;
|
|
16713
|
+
/**
|
|
16714
|
+
* End of the period (exclusive)
|
|
16715
|
+
*/
|
|
16716
|
+
period_end: string;
|
|
16717
|
+
updatedAt: string;
|
|
16718
|
+
createdAt: string;
|
|
16719
|
+
/**
|
|
16720
|
+
* Nanodollar value left on the credit grant, not including usage of the current period (consumed at period end)
|
|
16721
|
+
*/
|
|
16722
|
+
remaining_amount: number;
|
|
16723
|
+
/**
|
|
16724
|
+
* Nanodollar value of the credit grant used so far in the current monthly usage period
|
|
16725
|
+
*/
|
|
16726
|
+
current_period_usage: number;
|
|
16727
|
+
}[];
|
|
16728
|
+
meta: {
|
|
16729
|
+
/**
|
|
16730
|
+
* The token to use to retrieve the next page of results, passed as a query string parameter (value should be URL-encoded) to this API endpoint.
|
|
16731
|
+
*/
|
|
16732
|
+
nextToken?: string;
|
|
16733
|
+
};
|
|
16734
|
+
}
|
|
16735
|
+
|
|
16688
16736
|
interface ListInvoicesRequestHeaders {
|
|
16689
16737
|
}
|
|
16690
16738
|
interface ListInvoicesRequestQuery {
|
|
@@ -16917,6 +16965,7 @@ declare class Client$7 {
|
|
|
16917
16965
|
readonly createTrial: (input: CreateTrialInput) => Promise<CreateTrialResponse>;
|
|
16918
16966
|
readonly removeTrial: (input: RemoveTrialInput) => Promise<RemoveTrialResponse>;
|
|
16919
16967
|
readonly createCreditGrant: (input: CreateCreditGrantInput) => Promise<CreateCreditGrantResponse>;
|
|
16968
|
+
readonly listCreditGrants: (input: ListCreditGrantsInput) => Promise<ListCreditGrantsResponse>;
|
|
16920
16969
|
readonly listInvoices: (input: ListInvoicesInput) => Promise<ListInvoicesResponse>;
|
|
16921
16970
|
readonly payInvoice: (input: PayInvoiceInput) => Promise<PayInvoiceResponse>;
|
|
16922
16971
|
readonly getPaymentMethod: (input: GetPaymentMethodInput) => Promise<GetPaymentMethodResponse>;
|