@databutton/firebase-types 1.85.25 → 1.85.27
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.
|
@@ -1717,6 +1717,7 @@ export interface PublicUsernameRecord {
|
|
|
1717
1717
|
}
|
|
1718
1718
|
export interface CreditTransactionRecord {
|
|
1719
1719
|
customerId: string;
|
|
1720
|
+
userId?: string | null;
|
|
1720
1721
|
comment?: string | null;
|
|
1721
1722
|
amountInCents: number;
|
|
1722
1723
|
createdAt: Timestamp;
|
|
@@ -1952,11 +1953,6 @@ export interface ProjectPlan {
|
|
|
1952
1953
|
projectTemplateId: string;
|
|
1953
1954
|
}
|
|
1954
1955
|
export interface AiUsageRecord {
|
|
1955
|
-
/**
|
|
1956
|
-
* Who the usage should consume credits from.
|
|
1957
|
-
* Usually the project owner
|
|
1958
|
-
*/
|
|
1959
|
-
customerId: string;
|
|
1960
1956
|
/**
|
|
1961
1957
|
* Who performed the action that triggered the usage record
|
|
1962
1958
|
* Can be both owner of the project, a collaborator, or someone from support
|
|
@@ -1993,11 +1989,15 @@ export interface AiUsageRecord {
|
|
|
1993
1989
|
* Number of iterations in the streak
|
|
1994
1990
|
*/
|
|
1995
1991
|
iterations: number;
|
|
1992
|
+
/**
|
|
1993
|
+
* Reason the streak stopped
|
|
1994
|
+
*/
|
|
1995
|
+
stopReason: "done" | "cancelled" | "error";
|
|
1996
1996
|
};
|
|
1997
1997
|
agent: {
|
|
1998
1998
|
id: string;
|
|
1999
1999
|
model: {
|
|
2000
|
-
provider:
|
|
2000
|
+
provider: string;
|
|
2001
2001
|
identifier: string;
|
|
2002
2002
|
};
|
|
2003
2003
|
contextWindow: {
|
|
@@ -2005,12 +2005,13 @@ export interface AiUsageRecord {
|
|
|
2005
2005
|
sizeInTokens: number;
|
|
2006
2006
|
};
|
|
2007
2007
|
};
|
|
2008
|
-
entries:
|
|
2008
|
+
entries: AiUsageRecordEntry[];
|
|
2009
2009
|
}
|
|
2010
|
-
export interface
|
|
2010
|
+
export interface AiUsageRecordEntry {
|
|
2011
2011
|
costUsd: number;
|
|
2012
2012
|
toolCalls: string[];
|
|
2013
|
-
|
|
2013
|
+
type: "main-agent" | "sub-agent";
|
|
2014
|
+
provider: string;
|
|
2014
2015
|
identifier: string;
|
|
2015
2016
|
finish_reason: "stop" | "length" | "tool_calls" | "content_filter" | "function_call" | "cancelled_by_user";
|
|
2016
2017
|
/**
|