@databutton/firebase-types 1.138.0 → 1.139.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.
@@ -92,6 +92,7 @@ export declare enum CollectionName {
92
92
  UI_COMPONENTS = "ui-components",
93
93
  UI_FILES = "ui-files",
94
94
  CONTEXT_FILES = "context-files",
95
+ TOOL_CONFIGS = "tool-configs",
95
96
  TASKS = "tasks",
96
97
  TOKEN_USAGE_ENTRIES = "entries",
97
98
  COMPUTE_HOUR_USAGE = "compute-hour-usage",
@@ -93,6 +93,7 @@ export var CollectionName;
93
93
  CollectionName["UI_COMPONENTS"] = "ui-components";
94
94
  CollectionName["UI_FILES"] = "ui-files";
95
95
  CollectionName["CONTEXT_FILES"] = "context-files";
96
+ CollectionName["TOOL_CONFIGS"] = "tool-configs";
96
97
  CollectionName["TASKS"] = "tasks";
97
98
  CollectionName["TOKEN_USAGE_ENTRIES"] = "entries";
98
99
  CollectionName["COMPUTE_HOUR_USAGE"] = "compute-hour-usage";
@@ -2144,6 +2144,12 @@ export interface PublicUsernameRecord {
2144
2144
  }
2145
2145
  export interface CreditTransactionRecord {
2146
2146
  customerId: string;
2147
+ /**
2148
+ * The enterprise account where usage occurred. Null for non-enterprise (personal) customers.
2149
+ * For root enterprise teams equals customerId. For sub-teams differs from customerId,
2150
+ * which holds the billing ancestor. Use this field to query transactions per sub-team.
2151
+ */
2152
+ accountId?: string | null;
2147
2153
  userId?: string | null;
2148
2154
  comment?: string | null;
2149
2155
  internalComment?: string | null;
@@ -2655,4 +2661,26 @@ export type Channel = SlackChannel | EmailChannel | TeamsChannel;
2655
2661
  export declare const isSlackChannel: (channel: Channel) => channel is SlackChannel;
2656
2662
  export declare const isEmailChannel: (channel: Channel) => channel is EmailChannel;
2657
2663
  export declare const isTeamsChannel: (channel: Channel) => channel is TeamsChannel;
2664
+ export type ToolApprovalPolicy = "prompt" | "allow" | "deny" | "custom-or-prompt" | "custom-or-allow" | "custom-or-deny";
2665
+ export type ToolKind = "platform" | "user";
2666
+ export type ToolPrimitive = string | number | boolean;
2667
+ export interface InputAllowlistRule {
2668
+ equals?: ToolPrimitive;
2669
+ anyOf?: ToolPrimitive[];
2670
+ allOf?: ToolPrimitive[];
2671
+ min?: number;
2672
+ max?: number;
2673
+ }
2674
+ export interface ProjectToolEntry {
2675
+ kind: ToolKind;
2676
+ enabled: boolean;
2677
+ approval?: ToolApprovalPolicy;
2678
+ denyReason?: string;
2679
+ inputAllowlists?: Record<string, InputAllowlistRule>;
2680
+ }
2681
+ export interface ProjectToolConfig {
2682
+ version: "2026-05-21";
2683
+ lastUpdatedBy: PerformedBy;
2684
+ tools: Record<string, ProjectToolEntry>;
2685
+ }
2658
2686
  export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@databutton/firebase-types",
3
- "version": "1.138.0",
3
+ "version": "1.139.0",
4
4
  "main": "lib/types/published/index.js",
5
5
  "type": "module",
6
6
  "engines": {