@databutton/firebase-types 1.142.0 → 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;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@databutton/firebase-types",
3
- "version": "1.142.0",
3
+ "version": "1.143.0",
4
4
  "main": "lib/types/published/index.js",
5
5
  "type": "module",
6
6
  "engines": {