@databutton/firebase-types 1.164.0 → 1.165.1
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.
|
@@ -1470,12 +1470,28 @@ export type RiffMigrationState<T> = {
|
|
|
1470
1470
|
* SpecialProjectType allows for classification of projects that behave differently from a general Riff project.
|
|
1471
1471
|
*/
|
|
1472
1472
|
export declare enum SpecialProjectType {
|
|
1473
|
-
/**
|
|
1474
|
-
|
|
1475
|
-
|
|
1476
|
-
|
|
1477
|
-
|
|
1478
|
-
|
|
1473
|
+
/**
|
|
1474
|
+
*
|
|
1475
|
+
* Projects used as an API gateway integration
|
|
1476
|
+
*/
|
|
1477
|
+
API_GATEWAY = "apiGateway",
|
|
1478
|
+
/**
|
|
1479
|
+
* Projects powering regular Riff apps (React+FastAPI apps)
|
|
1480
|
+
*/
|
|
1481
|
+
APP = "app",
|
|
1482
|
+
/**
|
|
1483
|
+
* Projects powering strategic agents (copilot-like agents) where you primarily interact through chatting with it.
|
|
1484
|
+
*/
|
|
1485
|
+
STRATEGIC_AGENT = "strategicAgent",
|
|
1486
|
+
/**
|
|
1487
|
+
* Projects powering operational agents that are primarily working autonomous
|
|
1488
|
+
*/
|
|
1489
|
+
OPERATIONAL_AGENT = "operationalAgent",
|
|
1490
|
+
/**
|
|
1491
|
+
* One per user in an account. Powers the workspace agent — a personal assistant that can talk with the team's knowledge base etc.
|
|
1492
|
+
* @deprecated This powers 'Ask Riff' which we will sunset. Keep while we still have projects with this type set
|
|
1493
|
+
*/
|
|
1494
|
+
AGENT_PROJECT = "agentProject"
|
|
1479
1495
|
}
|
|
1480
1496
|
export interface ProjectSettingsBase {
|
|
1481
1497
|
lastUpdatedBy: PerformedBy;
|
|
@@ -1503,6 +1519,7 @@ export interface Project {
|
|
|
1503
1519
|
isAccountKnowledgeProject?: boolean;
|
|
1504
1520
|
/**
|
|
1505
1521
|
* specialType is used when the project should behave differently to a normal project. It is optional on purpose to allow for easier filtering.
|
|
1522
|
+
* When specialType is not set, it should be considered a SpecialProjectType.APP
|
|
1506
1523
|
*/
|
|
1507
1524
|
specialType?: SpecialProjectType;
|
|
1508
1525
|
migratedFromDatabutton?: boolean;
|
|
@@ -2619,6 +2636,31 @@ export interface AiUsageRecordEntry {
|
|
|
2619
2636
|
*/
|
|
2620
2637
|
rawUsage: object;
|
|
2621
2638
|
}
|
|
2639
|
+
/**
|
|
2640
|
+
* V2 of AiUsageRecord — introduces a schema discriminator, mandatory projectId,
|
|
2641
|
+
* mode tracking, and allows system performers for operational (scheduled) agents.
|
|
2642
|
+
*/
|
|
2643
|
+
export interface AiUsageRecordV2 {
|
|
2644
|
+
schema: "2026-08-12";
|
|
2645
|
+
/**
|
|
2646
|
+
* Who or what triggered the usage.
|
|
2647
|
+
* "user" for interactive sessions; "system" for operational/scheduled agents.
|
|
2648
|
+
*/
|
|
2649
|
+
performedBy: PerformedByUser | PerformedBySystem;
|
|
2650
|
+
/** Always set in V2 — operational agents always belong to a project. */
|
|
2651
|
+
projectId: string;
|
|
2652
|
+
recordedAt: Timestamp;
|
|
2653
|
+
totalCostUsd: number;
|
|
2654
|
+
stopReason: "done" | "cancelled" | "error";
|
|
2655
|
+
agent: {
|
|
2656
|
+
mode: "production" | "development";
|
|
2657
|
+
id: string;
|
|
2658
|
+
model: {
|
|
2659
|
+
provider: string;
|
|
2660
|
+
identifier: string;
|
|
2661
|
+
};
|
|
2662
|
+
};
|
|
2663
|
+
}
|
|
2622
2664
|
export interface FormEntry {
|
|
2623
2665
|
anonymousId: string;
|
|
2624
2666
|
eventName: string;
|
|
@@ -76,12 +76,28 @@ export var ProjectExtension;
|
|
|
76
76
|
*/
|
|
77
77
|
export var SpecialProjectType;
|
|
78
78
|
(function (SpecialProjectType) {
|
|
79
|
-
/**
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
/** Projects used as an API gateway integration, needs to be connected to an account app. */
|
|
79
|
+
/**
|
|
80
|
+
*
|
|
81
|
+
* Projects used as an API gateway integration
|
|
82
|
+
*/
|
|
84
83
|
SpecialProjectType["API_GATEWAY"] = "apiGateway";
|
|
84
|
+
/**
|
|
85
|
+
* Projects powering regular Riff apps (React+FastAPI apps)
|
|
86
|
+
*/
|
|
87
|
+
SpecialProjectType["APP"] = "app";
|
|
88
|
+
/**
|
|
89
|
+
* Projects powering strategic agents (copilot-like agents) where you primarily interact through chatting with it.
|
|
90
|
+
*/
|
|
91
|
+
SpecialProjectType["STRATEGIC_AGENT"] = "strategicAgent";
|
|
92
|
+
/**
|
|
93
|
+
* Projects powering operational agents that are primarily working autonomous
|
|
94
|
+
*/
|
|
95
|
+
SpecialProjectType["OPERATIONAL_AGENT"] = "operationalAgent";
|
|
96
|
+
/**
|
|
97
|
+
* One per user in an account. Powers the workspace agent — a personal assistant that can talk with the team's knowledge base etc.
|
|
98
|
+
* @deprecated This powers 'Ask Riff' which we will sunset. Keep while we still have projects with this type set
|
|
99
|
+
*/
|
|
100
|
+
SpecialProjectType["AGENT_PROJECT"] = "agentProject";
|
|
85
101
|
})(SpecialProjectType || (SpecialProjectType = {}));
|
|
86
102
|
/**
|
|
87
103
|
* Taken from AWS types
|