@databutton/firebase-types 1.76.5 → 1.76.6
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.
|
@@ -13,6 +13,7 @@ export declare enum CollectionName {
|
|
|
13
13
|
COMMITS = "commits",
|
|
14
14
|
COMMIT_REQUESTS = "commit-requests",
|
|
15
15
|
CUSTOMERS = "customers",
|
|
16
|
+
DATABASES = "databases",
|
|
16
17
|
DATAFILES = "datafiles",
|
|
17
18
|
DATAFRAMES = "dataframes",
|
|
18
19
|
DEPLOYMENT_REQUESTS = "deployment-requests",
|
|
@@ -115,11 +116,13 @@ export declare enum ThirdPartyPaymentsName {
|
|
|
115
116
|
}
|
|
116
117
|
export declare enum ThirdPartyDatabaseName {
|
|
117
118
|
FIRESTORE = "firestore",
|
|
118
|
-
SUPABASE = "supabase"
|
|
119
|
+
SUPABASE = "supabase",
|
|
120
|
+
NEON = "neon"
|
|
119
121
|
}
|
|
120
122
|
export declare enum ThirdPartyAuthName {
|
|
121
123
|
FIREBASE = "firebase",
|
|
122
|
-
SUPABASE = "supabase"
|
|
124
|
+
SUPABASE = "supabase",
|
|
125
|
+
STACK = "stack"
|
|
123
126
|
}
|
|
124
127
|
export declare enum ThirdPartyServiceCategory {
|
|
125
128
|
AUTH = "auth",
|
|
@@ -14,6 +14,7 @@ export var CollectionName;
|
|
|
14
14
|
CollectionName["COMMITS"] = "commits";
|
|
15
15
|
CollectionName["COMMIT_REQUESTS"] = "commit-requests";
|
|
16
16
|
CollectionName["CUSTOMERS"] = "customers";
|
|
17
|
+
CollectionName["DATABASES"] = "databases";
|
|
17
18
|
CollectionName["DATAFILES"] = "datafiles";
|
|
18
19
|
CollectionName["DATAFRAMES"] = "dataframes";
|
|
19
20
|
CollectionName["DEPLOYMENT_REQUESTS"] = "deployment-requests";
|
|
@@ -121,11 +122,13 @@ export var ThirdPartyDatabaseName;
|
|
|
121
122
|
(function (ThirdPartyDatabaseName) {
|
|
122
123
|
ThirdPartyDatabaseName["FIRESTORE"] = "firestore";
|
|
123
124
|
ThirdPartyDatabaseName["SUPABASE"] = "supabase";
|
|
125
|
+
ThirdPartyDatabaseName["NEON"] = "neon";
|
|
124
126
|
})(ThirdPartyDatabaseName = ThirdPartyDatabaseName || (ThirdPartyDatabaseName = {}));
|
|
125
127
|
export var ThirdPartyAuthName;
|
|
126
128
|
(function (ThirdPartyAuthName) {
|
|
127
129
|
ThirdPartyAuthName["FIREBASE"] = "firebase";
|
|
128
130
|
ThirdPartyAuthName["SUPABASE"] = "supabase";
|
|
131
|
+
ThirdPartyAuthName["STACK"] = "stack";
|
|
129
132
|
})(ThirdPartyAuthName = ThirdPartyAuthName || (ThirdPartyAuthName = {}));
|
|
130
133
|
export var ThirdPartyServiceCategory;
|
|
131
134
|
(function (ThirdPartyServiceCategory) {
|
|
@@ -734,6 +734,8 @@ export interface ProjectGuidelinesV1 {
|
|
|
734
734
|
export declare enum ProjectExtension {
|
|
735
735
|
SHADCN = "shadcn",
|
|
736
736
|
FIREBASE_AUTH = "firebase-auth",
|
|
737
|
+
NEON_DATABASE = "neon-database",
|
|
738
|
+
STACK_AUTH = "stack-auth",
|
|
737
739
|
MCP = "mcp"
|
|
738
740
|
}
|
|
739
741
|
export type ProjectExtensionConfig<T = object> = {
|
|
@@ -752,6 +754,30 @@ export interface McpExtensionConfig {
|
|
|
752
754
|
apiKeyId: string;
|
|
753
755
|
})[];
|
|
754
756
|
}
|
|
757
|
+
export interface SecretRef {
|
|
758
|
+
name: string;
|
|
759
|
+
}
|
|
760
|
+
export interface NeonDatabaseExtensionConfig {
|
|
761
|
+
neonProjectId: string;
|
|
762
|
+
secretRefs: {
|
|
763
|
+
env: {
|
|
764
|
+
prod: {
|
|
765
|
+
admin: SecretRef | null;
|
|
766
|
+
app: SecretRef | null;
|
|
767
|
+
} | null;
|
|
768
|
+
dev: {
|
|
769
|
+
admin: SecretRef | null;
|
|
770
|
+
app: SecretRef | null;
|
|
771
|
+
} | null;
|
|
772
|
+
};
|
|
773
|
+
};
|
|
774
|
+
}
|
|
775
|
+
export interface StackAuthExtensionConfig {
|
|
776
|
+
projectId: string;
|
|
777
|
+
publishableClientKey: string;
|
|
778
|
+
jwksUrl: string;
|
|
779
|
+
secretRefForSecretServerKey: SecretRef;
|
|
780
|
+
}
|
|
755
781
|
export interface FirebaseAuthExtensionConfig {
|
|
756
782
|
firebaseConfig: {
|
|
757
783
|
apiKey: string;
|
|
@@ -1731,4 +1757,20 @@ export interface FirebaseApiKey {
|
|
|
1731
1757
|
sub: string;
|
|
1732
1758
|
}
|
|
1733
1759
|
export type ApiKey = FirebaseApiKey | AuthCodeApiKey;
|
|
1760
|
+
export interface NeonConfig {
|
|
1761
|
+
neonProjectId: string | null;
|
|
1762
|
+
databaseName: string | null;
|
|
1763
|
+
neonAuthUsersTable: string | null;
|
|
1764
|
+
prodBranchId: string | null;
|
|
1765
|
+
devBranchId: string | null;
|
|
1766
|
+
stackAuthProjectId: string | null;
|
|
1767
|
+
}
|
|
1768
|
+
export interface Database<P, C> {
|
|
1769
|
+
createdBy: PerformedBy;
|
|
1770
|
+
updatedBy: PerformedBy;
|
|
1771
|
+
markedForDeletionBy: Date | null;
|
|
1772
|
+
provider: P;
|
|
1773
|
+
config: C;
|
|
1774
|
+
}
|
|
1775
|
+
export type NeonDatabase = Database<"neon", NeonConfig>;
|
|
1734
1776
|
export {};
|
|
@@ -61,6 +61,8 @@ export var ProjectExtension;
|
|
|
61
61
|
(function (ProjectExtension) {
|
|
62
62
|
ProjectExtension["SHADCN"] = "shadcn";
|
|
63
63
|
ProjectExtension["FIREBASE_AUTH"] = "firebase-auth";
|
|
64
|
+
ProjectExtension["NEON_DATABASE"] = "neon-database";
|
|
65
|
+
ProjectExtension["STACK_AUTH"] = "stack-auth";
|
|
64
66
|
ProjectExtension["MCP"] = "mcp";
|
|
65
67
|
})(ProjectExtension = ProjectExtension || (ProjectExtension = {}));
|
|
66
68
|
/**
|