@databutton/firebase-types 1.95.8 → 1.95.10

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.
@@ -218,6 +218,9 @@ export declare enum ConfigTypes {
218
218
  export declare enum MigrateToRiffErrorCode {
219
219
  UNKNOWN_ERROR = "UNKNOWN_ERROR"
220
220
  }
221
+ export declare enum CreateNeonTransferErrorCode {
222
+ UNKNOWN_ERROR = "UNKNOWN_ERROR"
223
+ }
221
224
  export declare enum ProjectEnvConfigEnv {
222
225
  DEV = "dev",
223
226
  PROD = "prod",
@@ -238,6 +238,10 @@ export var MigrateToRiffErrorCode;
238
238
  (function (MigrateToRiffErrorCode) {
239
239
  MigrateToRiffErrorCode["UNKNOWN_ERROR"] = "UNKNOWN_ERROR";
240
240
  })(MigrateToRiffErrorCode || (MigrateToRiffErrorCode = {}));
241
+ export var CreateNeonTransferErrorCode;
242
+ (function (CreateNeonTransferErrorCode) {
243
+ CreateNeonTransferErrorCode["UNKNOWN_ERROR"] = "UNKNOWN_ERROR";
244
+ })(CreateNeonTransferErrorCode || (CreateNeonTransferErrorCode = {}));
241
245
  // Environments config can be defined for
242
246
  export var ProjectEnvConfigEnv;
243
247
  (function (ProjectEnvConfigEnv) {
@@ -1299,7 +1299,16 @@ export interface Project {
1299
1299
  lastMigratedAt?: Timestamp;
1300
1300
  markedForDeletionAt: Timestamp | null;
1301
1301
  markedForDeletionBy?: PerformedBy | null;
1302
+ /**
1303
+ * If owner of app has ejected from Riff
1304
+ */
1305
+ ejectedBy?: PerformedBy | null;
1302
1306
  members: string[];
1307
+ /**
1308
+ * List of user IDs that are maintainers of the project.
1309
+ * Used in accounts to indicate who is responsible for the project, and thus recipient of important notifications or similar.
1310
+ */
1311
+ maintainers?: string[];
1303
1312
  permittedUsers?: Record<ProjectPermissionName, string[]>;
1304
1313
  name: string;
1305
1314
  tags?: string[];
@@ -2201,6 +2210,13 @@ export interface NeonConfig {
2201
2210
  prodBranchId: string | null;
2202
2211
  devBranchId: string | null;
2203
2212
  stackAuthProjectId: string | null;
2213
+ transferRequest?: {
2214
+ createdBy: PerformedBy;
2215
+ neonTransferRequestId: string;
2216
+ claimUrl: string;
2217
+ expiresAt: Timestamp;
2218
+ ttlSeconds: number;
2219
+ };
2204
2220
  }
2205
2221
  export interface Database<P, C> {
2206
2222
  createdBy: PerformedBy;
@@ -1,6 +1,6 @@
1
1
  import type { Timestamp } from "firebase/firestore";
2
2
  import type { RunMigrationsResponse } from "../db-api.js";
3
- import type { CreateProjectErrorCode, MigrateToRiffErrorCode } from "./enums.js";
3
+ import type { CreateProjectErrorCode, MigrateToRiffErrorCode, CreateNeonTransferErrorCode } from "./enums.js";
4
4
  import type { ApprovalLevel, Datafile, Dataframe, Job, ProjectPermissionName, Project, ProjectTemplate, ScheduleTarget, ScheduleWhen } from "./persisted.js";
5
5
  export type DeleteJob = Pick<Job, "markedForDeletionAt" | "markedForDeletionBy">;
6
6
  export type DeleteProject = Pick<Project, "markedForDeletionAt" | "markedForDeletionBy">;
@@ -230,6 +230,18 @@ export type TransferOwnershipRequest = {
230
230
  export type TransferOwnershipResponse = {
231
231
  success: boolean;
232
232
  };
233
+ export type CreateNeonTransferRequest = {
234
+ projectId: string;
235
+ ttlSeconds?: number;
236
+ };
237
+ export type CreateNeonTransferResponse = {
238
+ success: true;
239
+ claimUrl: string;
240
+ expiresAt: string;
241
+ } | {
242
+ success: false;
243
+ errorCode: CreateNeonTransferErrorCode;
244
+ };
233
245
  export type InstallNewWorkspaceVersionRequest = {
234
246
  projectId: string;
235
247
  prevBuildId: string | null;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@databutton/firebase-types",
3
- "version": "1.95.8",
3
+ "version": "1.95.10",
4
4
  "main": "lib/types/published/index.js",
5
5
  "type": "module",
6
6
  "engines": {