@databutton/firebase-types 1.120.0 → 1.122.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.
@@ -232,6 +232,11 @@ export declare enum MigrateToRiffErrorCode {
232
232
  export declare enum CreateNeonTransferErrorCode {
233
233
  UNKNOWN_ERROR = "UNKNOWN_ERROR"
234
234
  }
235
+ export declare enum CreateStackAuthTransferErrorCode {
236
+ STACK_AUTH_NOT_CONFIGURED = "STACK_AUTH_NOT_CONFIGURED",
237
+ TRANSFER_API_ERROR = "TRANSFER_API_ERROR",
238
+ UNKNOWN_ERROR = "UNKNOWN_ERROR"
239
+ }
235
240
  export declare enum CreateTeamAccountErrorCode {
236
241
  UNAUTHENTICATED = "UNAUTHENTICATED",
237
242
  INVALID_NAME = "INVALID_NAME",
@@ -253,6 +253,12 @@ export var CreateNeonTransferErrorCode;
253
253
  (function (CreateNeonTransferErrorCode) {
254
254
  CreateNeonTransferErrorCode["UNKNOWN_ERROR"] = "UNKNOWN_ERROR";
255
255
  })(CreateNeonTransferErrorCode || (CreateNeonTransferErrorCode = {}));
256
+ export var CreateStackAuthTransferErrorCode;
257
+ (function (CreateStackAuthTransferErrorCode) {
258
+ CreateStackAuthTransferErrorCode["STACK_AUTH_NOT_CONFIGURED"] = "STACK_AUTH_NOT_CONFIGURED";
259
+ CreateStackAuthTransferErrorCode["TRANSFER_API_ERROR"] = "TRANSFER_API_ERROR";
260
+ CreateStackAuthTransferErrorCode["UNKNOWN_ERROR"] = "UNKNOWN_ERROR";
261
+ })(CreateStackAuthTransferErrorCode || (CreateStackAuthTransferErrorCode = {}));
256
262
  export var CreateTeamAccountErrorCode;
257
263
  (function (CreateTeamAccountErrorCode) {
258
264
  CreateTeamAccountErrorCode["UNAUTHENTICATED"] = "UNAUTHENTICATED";
@@ -1328,10 +1328,13 @@ export type RiffMigrationState<T> = {
1328
1328
  };
1329
1329
  /**
1330
1330
  * SpecialProjectType allows for classification of projects that behave differently from a general Riff project.
1331
- * For example the agentProject is hidden from the user, but is used to provide a account wide devx and agent environment to a user in the account context
1332
1331
  */
1333
1332
  export declare enum SpecialProjectType {
1333
+ /** One per user in an account. Powers the workspace agent — a personal assistant that can talk with the team's knowledge base etc. */
1334
1334
  AGENT_PROJECT = "agentProject",
1335
+ /** Projects where users build autonomous agents in Riff. */
1336
+ AGENT = "agent",
1337
+ /** Projects used as an API gateway integration, needs to be connected to an account app. */
1335
1338
  API_GATEWAY = "apiGateway"
1336
1339
  }
1337
1340
  export interface Project {
@@ -2310,6 +2313,13 @@ export interface NeonConfig {
2310
2313
  expiresAt: Timestamp;
2311
2314
  ttlSeconds: number;
2312
2315
  };
2316
+ stackAuthTransferRequest?: {
2317
+ createdBy: PerformedBy;
2318
+ claimUrl: string;
2319
+ expiresAt: Timestamp;
2320
+ ttlSeconds: number;
2321
+ claimedAt?: Timestamp;
2322
+ };
2313
2323
  }
2314
2324
  export interface Database<P, C> {
2315
2325
  createdBy: PerformedBy;
@@ -66,11 +66,14 @@ export var ProjectExtension;
66
66
  })(ProjectExtension || (ProjectExtension = {}));
67
67
  /**
68
68
  * SpecialProjectType allows for classification of projects that behave differently from a general Riff project.
69
- * For example the agentProject is hidden from the user, but is used to provide a account wide devx and agent environment to a user in the account context
70
69
  */
71
70
  export var SpecialProjectType;
72
71
  (function (SpecialProjectType) {
72
+ /** One per user in an account. Powers the workspace agent — a personal assistant that can talk with the team's knowledge base etc. */
73
73
  SpecialProjectType["AGENT_PROJECT"] = "agentProject";
74
+ /** Projects where users build autonomous agents in Riff. */
75
+ SpecialProjectType["AGENT"] = "agent";
76
+ /** Projects used as an API gateway integration, needs to be connected to an account app. */
74
77
  SpecialProjectType["API_GATEWAY"] = "apiGateway";
75
78
  })(SpecialProjectType || (SpecialProjectType = {}));
76
79
  /**
@@ -1,6 +1,6 @@
1
1
  import type { Timestamp } from "firebase/firestore";
2
2
  import type { RunMigrationsResponse } from "../db-api.js";
3
- import type { CreateNeonTransferErrorCode, CreateProjectErrorCode, CreateTeamAccountErrorCode, MigrateToRiffErrorCode } from "./enums.js";
3
+ import type { CreateNeonTransferErrorCode, CreateProjectErrorCode, CreateStackAuthTransferErrorCode, CreateTeamAccountErrorCode, MigrateToRiffErrorCode } from "./enums.js";
4
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">;
@@ -271,6 +271,18 @@ export type CreateNeonTransferResponse = {
271
271
  success: false;
272
272
  errorCode: CreateNeonTransferErrorCode;
273
273
  };
274
+ export type CreateStackAuthTransferRequest = {
275
+ projectId: string;
276
+ ttlSeconds?: number;
277
+ };
278
+ export type CreateStackAuthTransferResponse = {
279
+ success: true;
280
+ claimUrl: string;
281
+ expiresAt: string;
282
+ } | {
283
+ success: false;
284
+ errorCode: CreateStackAuthTransferErrorCode;
285
+ };
274
286
  export type InstallNewWorkspaceVersionRequest = {
275
287
  projectId: string;
276
288
  prevBuildId: string | null;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@databutton/firebase-types",
3
- "version": "1.120.0",
3
+ "version": "1.122.0",
4
4
  "main": "lib/types/published/index.js",
5
5
  "type": "module",
6
6
  "engines": {