@databutton/firebase-types 1.85.25 → 1.85.26
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
|
|
@@ -2005,11 +2001,12 @@ export interface AiUsageRecord {
|
|
|
2005
2001
|
sizeInTokens: number;
|
|
2006
2002
|
};
|
|
2007
2003
|
};
|
|
2008
|
-
entries:
|
|
2004
|
+
entries: AiUsageRecordEntry[];
|
|
2009
2005
|
}
|
|
2010
|
-
export interface
|
|
2006
|
+
export interface AiUsageRecordEntry {
|
|
2011
2007
|
costUsd: number;
|
|
2012
2008
|
toolCalls: string[];
|
|
2009
|
+
type: "main-agent" | "sub-agent";
|
|
2013
2010
|
provider: "openai" | "anthropic" | "google" | "morph" | "perplexity";
|
|
2014
2011
|
identifier: string;
|
|
2015
2012
|
finish_reason: "stop" | "length" | "tool_calls" | "content_filter" | "function_call" | "cancelled_by_user";
|