@databutton/firebase-types 1.141.1 → 1.143.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.
|
@@ -41,6 +41,7 @@ export declare enum CollectionName {
|
|
|
41
41
|
LOGS = "logs",
|
|
42
42
|
ACCOUNT_MEMBERS = "members",
|
|
43
43
|
ACCOUNT_CONFIGS = "configs",
|
|
44
|
+
PROJECT_CONFIGS = "configs",
|
|
44
45
|
ACCOUNT_APPROVAL_REQUESTS = "approval-requests",
|
|
45
46
|
ACCOUNT_INVITES = "account-invites",
|
|
46
47
|
ACCOUNT_KNOWLEDGE_SUGGESTIONS = "knowledge-suggestions",
|
|
@@ -42,6 +42,7 @@ export var CollectionName;
|
|
|
42
42
|
CollectionName["LOGS"] = "logs";
|
|
43
43
|
CollectionName["ACCOUNT_MEMBERS"] = "members";
|
|
44
44
|
CollectionName["ACCOUNT_CONFIGS"] = "configs";
|
|
45
|
+
CollectionName["PROJECT_CONFIGS"] = "configs";
|
|
45
46
|
CollectionName["ACCOUNT_APPROVAL_REQUESTS"] = "approval-requests";
|
|
46
47
|
CollectionName["ACCOUNT_INVITES"] = "account-invites";
|
|
47
48
|
CollectionName["ACCOUNT_KNOWLEDGE_SUGGESTIONS"] = "knowledge-suggestions";
|
|
@@ -220,6 +220,27 @@ export interface GatingConfig extends AccountConfigBase {
|
|
|
220
220
|
approvalLevelRequiredFor: Record<ProjectPermissionName, ApprovalLevel>;
|
|
221
221
|
}
|
|
222
222
|
export type AccountConfig = SSOConfig | PostHogConfig | GatingConfig;
|
|
223
|
+
interface ProjectConfigBase {
|
|
224
|
+
enabledBy: PerformedBy;
|
|
225
|
+
lastUpdatedBy: PerformedBy;
|
|
226
|
+
}
|
|
227
|
+
/**
|
|
228
|
+
* Project-level SSO configuration that overrides the account-level config.
|
|
229
|
+
* Stored at /projects/{projectId}/configs/sso
|
|
230
|
+
*/
|
|
231
|
+
export interface ProjectSSOConfig extends ProjectConfigBase {
|
|
232
|
+
type: ConfigTypes.SSO;
|
|
233
|
+
/**
|
|
234
|
+
* Organization ID from WorkOS - if set, overrides the account organizationId
|
|
235
|
+
*/
|
|
236
|
+
organizationId?: string | null;
|
|
237
|
+
/**
|
|
238
|
+
* Project-specific role mapping - fully replaces account mapping when set.
|
|
239
|
+
* If not set, falls back to the account-level mapping.
|
|
240
|
+
*/
|
|
241
|
+
riffToWorkosRoleMapping?: Record<string, string[]>;
|
|
242
|
+
}
|
|
243
|
+
export type ProjectConfig = ProjectSSOConfig;
|
|
223
244
|
export interface SSOConfigLookupEntry {
|
|
224
245
|
lastUpdatedAt: Timestamp;
|
|
225
246
|
organizationId: string;
|
|
@@ -1015,6 +1036,7 @@ export interface OidcAuthExtensionAttributesForWorkos {
|
|
|
1015
1036
|
export interface WorkosAuthExtensionConfig {
|
|
1016
1037
|
clientId: string;
|
|
1017
1038
|
orgId: string;
|
|
1039
|
+
refreshKey?: string;
|
|
1018
1040
|
}
|
|
1019
1041
|
export interface StackAuthExtensionConfig {
|
|
1020
1042
|
projectId: string;
|
|
@@ -1549,6 +1571,9 @@ export interface ProjectAccess {
|
|
|
1549
1571
|
prodxAppbutlerId?: string | null;
|
|
1550
1572
|
supportUntil?: Timestamp | null;
|
|
1551
1573
|
devxOpenUntil?: Timestamp | null;
|
|
1574
|
+
refreshKey?: string;
|
|
1575
|
+
salt?: string;
|
|
1576
|
+
checkAttributes?: OidcAttributeCheck[];
|
|
1552
1577
|
}
|
|
1553
1578
|
export type DnsRecord = {
|
|
1554
1579
|
name: string;
|