@databutton/firebase-types 1.65.7 → 1.65.9
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.
|
@@ -51,7 +51,9 @@ export declare enum CollectionName {
|
|
|
51
51
|
WORKSPACE_VERSIONS = "versions",
|
|
52
52
|
TOKEN_USAGE_RECORDS = "token-usage-records",
|
|
53
53
|
UI_COMPONENTS = "ui-components",
|
|
54
|
-
TOKEN_USAGE_ENTRIES = "entries"
|
|
54
|
+
TOKEN_USAGE_ENTRIES = "entries",
|
|
55
|
+
COMPUTE_HOUR_USAGE = "compute-hour-usage",
|
|
56
|
+
CREDIT_TRANSACTIONS = "credit-transactions"
|
|
55
57
|
}
|
|
56
58
|
export declare enum DatabuttonIdPrefix {
|
|
57
59
|
APP_DEPLOY = "ad",
|
|
@@ -77,5 +79,6 @@ export declare enum DatabuttonIdPrefix {
|
|
|
77
79
|
STREAMLIT_APP = "st",
|
|
78
80
|
THREADS = "th",
|
|
79
81
|
UI_COMPONENT = "uic",
|
|
80
|
-
BROKEN_VENV = "venv"
|
|
82
|
+
BROKEN_VENV = "venv",
|
|
83
|
+
CREDIT_TRANSACTION = "ct"
|
|
81
84
|
}
|
|
@@ -53,6 +53,8 @@ export var CollectionName;
|
|
|
53
53
|
CollectionName["TOKEN_USAGE_RECORDS"] = "token-usage-records";
|
|
54
54
|
CollectionName["UI_COMPONENTS"] = "ui-components";
|
|
55
55
|
CollectionName["TOKEN_USAGE_ENTRIES"] = "entries";
|
|
56
|
+
CollectionName["COMPUTE_HOUR_USAGE"] = "compute-hour-usage";
|
|
57
|
+
CollectionName["CREDIT_TRANSACTIONS"] = "credit-transactions";
|
|
56
58
|
})(CollectionName = CollectionName || (CollectionName = {}));
|
|
57
59
|
export var DatabuttonIdPrefix;
|
|
58
60
|
(function (DatabuttonIdPrefix) {
|
|
@@ -80,5 +82,6 @@ export var DatabuttonIdPrefix;
|
|
|
80
82
|
DatabuttonIdPrefix["THREADS"] = "th";
|
|
81
83
|
DatabuttonIdPrefix["UI_COMPONENT"] = "uic";
|
|
82
84
|
DatabuttonIdPrefix["BROKEN_VENV"] = "venv";
|
|
85
|
+
DatabuttonIdPrefix["CREDIT_TRANSACTION"] = "ct";
|
|
83
86
|
})(DatabuttonIdPrefix = DatabuttonIdPrefix || (DatabuttonIdPrefix = {}));
|
|
84
87
|
//# sourceMappingURL=enums.js.map
|
|
@@ -142,7 +142,7 @@ export interface PayAsYouGoPlan extends PlanBase {
|
|
|
142
142
|
export interface AIPlan extends PlanBase {
|
|
143
143
|
type: "ai-plan";
|
|
144
144
|
stripe_product_id: string;
|
|
145
|
-
|
|
145
|
+
creditsPerBillingPeriod: number;
|
|
146
146
|
cancelAtPeriodEnd: boolean | null;
|
|
147
147
|
canceledAt?: Timestamp | null;
|
|
148
148
|
cancelFeedback?: string | null;
|
|
@@ -1043,7 +1043,12 @@ export interface Customer {
|
|
|
1043
1043
|
stripeCustomerId: string;
|
|
1044
1044
|
userId: string;
|
|
1045
1045
|
plan: Plan | null;
|
|
1046
|
+
/**
|
|
1047
|
+
* @deprecated This was for the old pay-as-you-go pricing page, where we synced stripe balance with firestore.
|
|
1048
|
+
*/
|
|
1046
1049
|
balanceInUsdCents?: number | null;
|
|
1050
|
+
extraCreditsInCents?: number | null;
|
|
1051
|
+
monthlyCreditsUsedInCents?: number | null;
|
|
1047
1052
|
}
|
|
1048
1053
|
export interface Sequence {
|
|
1049
1054
|
current: number;
|
|
@@ -1078,4 +1083,18 @@ export interface TokenUsageEntry {
|
|
|
1078
1083
|
export interface PublicUsernameRecord {
|
|
1079
1084
|
userId: string;
|
|
1080
1085
|
}
|
|
1086
|
+
export interface CreditTransactionRecord {
|
|
1087
|
+
customerId: string;
|
|
1088
|
+
amountInCents: number;
|
|
1089
|
+
createdAt: Timestamp;
|
|
1090
|
+
projectId: string | null;
|
|
1091
|
+
type: "creditsPurchased" | "computeHourUsed" | "agentUsed" | "manualAdjustment";
|
|
1092
|
+
sourceRef: string | null;
|
|
1093
|
+
}
|
|
1094
|
+
export interface ComputeHourUsageRecord {
|
|
1095
|
+
projectId: string;
|
|
1096
|
+
recordedAt: Timestamp;
|
|
1097
|
+
secondsUsedForHour: number;
|
|
1098
|
+
appbutlerId: string;
|
|
1099
|
+
}
|
|
1081
1100
|
export {};
|