@databutton/firebase-types 1.95.9 → 1.95.11
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.
|
@@ -25,6 +25,7 @@ export declare enum CollectionName {
|
|
|
25
25
|
DEPLOYMENTS = "deployments",
|
|
26
26
|
DEVRUNS = "devruns",
|
|
27
27
|
ENV_CONFIGS = "env-configs",
|
|
28
|
+
VARIABLES = "variables",
|
|
28
29
|
PROJECT_PLANS = "project-plans",
|
|
29
30
|
DOMAINS = "domains",
|
|
30
31
|
EVENTS = "events",
|
|
@@ -218,6 +219,9 @@ export declare enum ConfigTypes {
|
|
|
218
219
|
export declare enum MigrateToRiffErrorCode {
|
|
219
220
|
UNKNOWN_ERROR = "UNKNOWN_ERROR"
|
|
220
221
|
}
|
|
222
|
+
export declare enum CreateNeonTransferErrorCode {
|
|
223
|
+
UNKNOWN_ERROR = "UNKNOWN_ERROR"
|
|
224
|
+
}
|
|
221
225
|
export declare enum ProjectEnvConfigEnv {
|
|
222
226
|
DEV = "dev",
|
|
223
227
|
PROD = "prod",
|
|
@@ -26,6 +26,7 @@ export var CollectionName;
|
|
|
26
26
|
CollectionName["DEPLOYMENTS"] = "deployments";
|
|
27
27
|
CollectionName["DEVRUNS"] = "devruns";
|
|
28
28
|
CollectionName["ENV_CONFIGS"] = "env-configs";
|
|
29
|
+
CollectionName["VARIABLES"] = "variables";
|
|
29
30
|
CollectionName["PROJECT_PLANS"] = "project-plans";
|
|
30
31
|
CollectionName["DOMAINS"] = "domains";
|
|
31
32
|
CollectionName["EVENTS"] = "events";
|
|
@@ -238,6 +239,10 @@ export var MigrateToRiffErrorCode;
|
|
|
238
239
|
(function (MigrateToRiffErrorCode) {
|
|
239
240
|
MigrateToRiffErrorCode["UNKNOWN_ERROR"] = "UNKNOWN_ERROR";
|
|
240
241
|
})(MigrateToRiffErrorCode || (MigrateToRiffErrorCode = {}));
|
|
242
|
+
export var CreateNeonTransferErrorCode;
|
|
243
|
+
(function (CreateNeonTransferErrorCode) {
|
|
244
|
+
CreateNeonTransferErrorCode["UNKNOWN_ERROR"] = "UNKNOWN_ERROR";
|
|
245
|
+
})(CreateNeonTransferErrorCode || (CreateNeonTransferErrorCode = {}));
|
|
241
246
|
// Environments config can be defined for
|
|
242
247
|
export var ProjectEnvConfigEnv;
|
|
243
248
|
(function (ProjectEnvConfigEnv) {
|
|
@@ -799,10 +799,19 @@ export interface McpExtensionConfig {
|
|
|
799
799
|
}
|
|
800
800
|
export type SecretRefEnv = "admin" | "app" | "dev" | "prod";
|
|
801
801
|
export interface SecretRef {
|
|
802
|
-
env?: SecretRefEnv;
|
|
803
802
|
name: string;
|
|
803
|
+
env?: SecretRefEnv;
|
|
804
|
+
}
|
|
805
|
+
export interface SecretV3Ref {
|
|
806
|
+
parent: string;
|
|
807
|
+
secretId: string;
|
|
808
|
+
}
|
|
809
|
+
export interface SecretVersionV3Ref {
|
|
810
|
+
parent: string;
|
|
811
|
+
secretId: string;
|
|
812
|
+
version: string;
|
|
804
813
|
}
|
|
805
|
-
export interface
|
|
814
|
+
export interface NeonDatabaseExtensionConfigV1 {
|
|
806
815
|
neonProjectId: string;
|
|
807
816
|
secretRefs: {
|
|
808
817
|
env: {
|
|
@@ -817,6 +826,11 @@ export interface NeonDatabaseExtensionConfig {
|
|
|
817
826
|
};
|
|
818
827
|
};
|
|
819
828
|
}
|
|
829
|
+
export interface NeonDatabaseExtensionConfigV2 {
|
|
830
|
+
neonProjectId: string;
|
|
831
|
+
connectionUrlEnvVar: string | null;
|
|
832
|
+
}
|
|
833
|
+
export type NeonDatabaseExtensionConfig = NeonDatabaseExtensionConfigV1 | NeonDatabaseExtensionConfigV2;
|
|
820
834
|
export interface StackAuthExtensionConfig {
|
|
821
835
|
projectId: string;
|
|
822
836
|
publishableClientKey: string;
|
|
@@ -2210,6 +2224,13 @@ export interface NeonConfig {
|
|
|
2210
2224
|
prodBranchId: string | null;
|
|
2211
2225
|
devBranchId: string | null;
|
|
2212
2226
|
stackAuthProjectId: string | null;
|
|
2227
|
+
transferRequest?: {
|
|
2228
|
+
createdBy: PerformedBy;
|
|
2229
|
+
neonTransferRequestId: string;
|
|
2230
|
+
claimUrl: string;
|
|
2231
|
+
expiresAt: Timestamp;
|
|
2232
|
+
ttlSeconds: number;
|
|
2233
|
+
};
|
|
2213
2234
|
}
|
|
2214
2235
|
export interface Database<P, C> {
|
|
2215
2236
|
createdBy: PerformedBy;
|
|
@@ -2342,7 +2363,7 @@ export interface SecretVersion {
|
|
|
2342
2363
|
createdBy: PerformedBy;
|
|
2343
2364
|
markedForDeletionBy: PerformedBy | null;
|
|
2344
2365
|
}
|
|
2345
|
-
export interface
|
|
2366
|
+
export interface ProjectEnvSecretRef {
|
|
2346
2367
|
kind: "secret";
|
|
2347
2368
|
parent: string;
|
|
2348
2369
|
secretId: string;
|
|
@@ -2361,5 +2382,5 @@ export interface ProjectEnvValue {
|
|
|
2361
2382
|
kind: "value";
|
|
2362
2383
|
value: string;
|
|
2363
2384
|
}
|
|
2364
|
-
export type ProjectEnvVariable =
|
|
2385
|
+
export type ProjectEnvVariable = ProjectEnvSecretRef | ProjectEnvValue;
|
|
2365
2386
|
export {};
|
|
@@ -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;
|