@databutton/firebase-types 1.101.1 → 1.102.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.
@@ -225,6 +225,12 @@ export declare enum MigrateToRiffErrorCode {
225
225
  export declare enum CreateNeonTransferErrorCode {
226
226
  UNKNOWN_ERROR = "UNKNOWN_ERROR"
227
227
  }
228
+ export declare enum CreateTeamAccountErrorCode {
229
+ UNAUTHENTICATED = "UNAUTHENTICATED",
230
+ INVALID_NAME = "INVALID_NAME",
231
+ ACCOUNT_LIMIT_REACHED = "ACCOUNT_LIMIT_REACHED",
232
+ INTERNAL_ERROR = "INTERNAL_ERROR"
233
+ }
228
234
  export declare enum ProjectEnvConfigEnv {
229
235
  DEV = "dev",
230
236
  PROD = "prod",
@@ -246,6 +246,13 @@ export var CreateNeonTransferErrorCode;
246
246
  (function (CreateNeonTransferErrorCode) {
247
247
  CreateNeonTransferErrorCode["UNKNOWN_ERROR"] = "UNKNOWN_ERROR";
248
248
  })(CreateNeonTransferErrorCode || (CreateNeonTransferErrorCode = {}));
249
+ export var CreateTeamAccountErrorCode;
250
+ (function (CreateTeamAccountErrorCode) {
251
+ CreateTeamAccountErrorCode["UNAUTHENTICATED"] = "UNAUTHENTICATED";
252
+ CreateTeamAccountErrorCode["INVALID_NAME"] = "INVALID_NAME";
253
+ CreateTeamAccountErrorCode["ACCOUNT_LIMIT_REACHED"] = "ACCOUNT_LIMIT_REACHED";
254
+ CreateTeamAccountErrorCode["INTERNAL_ERROR"] = "INTERNAL_ERROR";
255
+ })(CreateTeamAccountErrorCode || (CreateTeamAccountErrorCode = {}));
249
256
  // Environments config can be defined for
250
257
  export var ProjectEnvConfigEnv;
251
258
  (function (ProjectEnvConfigEnv) {
@@ -2381,4 +2381,32 @@ export interface AccountAgentSkill extends AgentSkillBase {
2381
2381
  export interface GlobalAgentSkill extends AgentSkillBase {
2382
2382
  scope: "global";
2383
2383
  }
2384
+ export interface TelemetryEvent {
2385
+ eventType: string;
2386
+ timestamp: number;
2387
+ provider: string;
2388
+ model: string;
2389
+ agentId: string;
2390
+ agentType: "main-agent" | "sub-agent";
2391
+ projectId: string;
2392
+ /**
2393
+ * Stable ID across the entire conversation (session ~= thread)
2394
+ *
2395
+ * For sub-agents this could possibly be tool call ID of tool call that started the session
2396
+ */
2397
+ sessionId: string;
2398
+ /**
2399
+ * Stable ID for the current streak across all iterations (turn ~= streak)
2400
+ */
2401
+ turnId: string;
2402
+ /**
2403
+ * Stable ID for the current iteration in the turn (turn ID + iteration number)
2404
+ */
2405
+ iterationId: string | null;
2406
+ /**
2407
+ * Current iteration number
2408
+ */
2409
+ iteration: number | null;
2410
+ meta: Record<string, string | number | boolean | null>;
2411
+ }
2384
2412
  export {};
@@ -1,7 +1,7 @@
1
1
  import type { Timestamp } from "firebase/firestore";
2
2
  import type { RunMigrationsResponse } from "../db-api.js";
3
- import type { CreateProjectErrorCode, MigrateToRiffErrorCode, CreateNeonTransferErrorCode } from "./enums.js";
4
- import type { ApprovalLevel, Datafile, Dataframe, Job, ProjectPermissionName, Project, ProjectTemplate, ScheduleTarget, ScheduleWhen } from "./persisted.js";
3
+ import type { CreateNeonTransferErrorCode, CreateProjectErrorCode, CreateTeamAccountErrorCode, MigrateToRiffErrorCode } from "./enums.js";
4
+ import type { ApprovalLevel, Datafile, Dataframe, Job, Project, ProjectPermissionName, ProjectTemplate, ScheduleTarget, ScheduleWhen } from "./persisted.js";
5
5
  export type DeleteJob = Pick<Job, "markedForDeletionAt" | "markedForDeletionBy">;
6
6
  export type DeleteProject = Pick<Project, "markedForDeletionAt" | "markedForDeletionBy">;
7
7
  export type DeleteDataframe = Pick<Dataframe, "markedForDeletionAt" | "markedForDeletionBy">;
@@ -449,4 +449,14 @@ export type ReviewApprovalRequestRequest = {
449
449
  export type ReviewApprovalRequestResponse = {
450
450
  success: boolean;
451
451
  };
452
+ export type CreateTeamAccountRequest = {
453
+ name: string;
454
+ };
455
+ export type CreateTeamAccountResponse = {
456
+ success: true;
457
+ accountId: string;
458
+ } | {
459
+ success: false;
460
+ errorCode: CreateTeamAccountErrorCode;
461
+ };
452
462
  export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@databutton/firebase-types",
3
- "version": "1.101.1",
3
+ "version": "1.102.1",
4
4
  "main": "lib/types/published/index.js",
5
5
  "type": "module",
6
6
  "engines": {