@databutton/firebase-types 1.139.0 → 1.141.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.
@@ -36,6 +36,17 @@ export interface AccountNotificationGroup {
36
36
  createdBy: PerformedBy;
37
37
  lastUpdatedBy: PerformedBy;
38
38
  }
39
+ /**
40
+ * Controls when a subscribed notification group receives notifications for a project.
41
+ * - "all": always notified
42
+ * - "member-triggered": notified only when one of its members is the direct addressee
43
+ * - "off": subscribed but muted
44
+ */
45
+ export type NotificationGroupMode = "all" | "member-triggered" | "off";
46
+ export interface SubscribedNotificationGroup {
47
+ groupId: string;
48
+ mode: NotificationGroupMode;
49
+ }
39
50
  export interface Notification {
40
51
  createdBy: PerformedBy;
41
52
  createdAt: Timestamp;
@@ -172,6 +183,15 @@ export interface SSOConfig extends AccountConfigBase {
172
183
  * in with an email domain that is allowed by the SSO config
173
184
  */
174
185
  autoAddNewUsers: boolean;
186
+ /**
187
+ * Which workos roles should imply a riff role.
188
+ *
189
+ * E.g. riffToWorkosRoleMapping = {
190
+ * "admin": ["company-admin"],
191
+ * "viewer": ["buyer", "accountant"],
192
+ * }
193
+ */
194
+ riffToWorkosRoleMapping?: Record<string, string[]>;
175
195
  }
176
196
  export interface PostHogConfig extends AccountConfigBase {
177
197
  type: ConfigTypes.POSTHOG;
@@ -974,11 +994,18 @@ export interface NeonDatabaseExtensionConfigV2 {
974
994
  connectionUrlEnvVar: string | null;
975
995
  }
976
996
  export type NeonDatabaseExtensionConfig = NeonDatabaseExtensionConfigV1 | NeonDatabaseExtensionConfigV2;
997
+ export type OidcAttributeCheckOp = "eq" | "in" | "contains_any" | "contains_all" | "exists";
998
+ export interface OidcAttributeCheck {
999
+ name: string;
1000
+ op: OidcAttributeCheckOp;
1001
+ values?: string[];
1002
+ }
977
1003
  export interface OidcAuthExtensionConfig {
978
1004
  jwksUrl: string;
979
1005
  iss: string;
980
1006
  aud?: string;
981
1007
  requiredAttributes?: Record<string, string>;
1008
+ checkAttributes?: OidcAttributeCheck[];
982
1009
  }
983
1010
  export interface OidcAuthExtensionAttributesForWorkos {
984
1011
  client_id: string;
@@ -1439,8 +1466,8 @@ export interface Project {
1439
1466
  notificationSettings?: {
1440
1467
  /** When true, all maintainers receive notifications even if a specific userId is also targeted. */
1441
1468
  sendToAllMaintainers?: boolean;
1442
- /** IDs of account-level notification groups subscribed to this project's notifications. */
1443
- subscribedGroupIds?: string[];
1469
+ /** Notification groups subscribed to this project, each with an individual delivery mode. */
1470
+ subscribedGroups?: SubscribedNotificationGroup[];
1444
1471
  };
1445
1472
  permittedUsers?: Record<ProjectPermissionName, string[]>;
1446
1473
  name: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@databutton/firebase-types",
3
- "version": "1.139.0",
3
+ "version": "1.141.0",
4
4
  "main": "lib/types/published/index.js",
5
5
  "type": "module",
6
6
  "engines": {