@databutton/firebase-types 1.142.0 → 1.143.1
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";
|
|
@@ -59,6 +59,8 @@ export interface Notification {
|
|
|
59
59
|
title: string;
|
|
60
60
|
description: string;
|
|
61
61
|
sessionId: string;
|
|
62
|
+
messageSequence?: string | null;
|
|
63
|
+
toolUseId?: string | null;
|
|
62
64
|
taskId?: string | null;
|
|
63
65
|
displayId?: string | null;
|
|
64
66
|
reason?: string | null;
|
|
@@ -220,6 +222,27 @@ export interface GatingConfig extends AccountConfigBase {
|
|
|
220
222
|
approvalLevelRequiredFor: Record<ProjectPermissionName, ApprovalLevel>;
|
|
221
223
|
}
|
|
222
224
|
export type AccountConfig = SSOConfig | PostHogConfig | GatingConfig;
|
|
225
|
+
interface ProjectConfigBase {
|
|
226
|
+
enabledBy: PerformedBy;
|
|
227
|
+
lastUpdatedBy: PerformedBy;
|
|
228
|
+
}
|
|
229
|
+
/**
|
|
230
|
+
* Project-level SSO configuration that overrides the account-level config.
|
|
231
|
+
* Stored at /projects/{projectId}/configs/sso
|
|
232
|
+
*/
|
|
233
|
+
export interface ProjectSSOConfig extends ProjectConfigBase {
|
|
234
|
+
type: ConfigTypes.SSO;
|
|
235
|
+
/**
|
|
236
|
+
* Organization ID from WorkOS - if set, overrides the account organizationId
|
|
237
|
+
*/
|
|
238
|
+
organizationId?: string | null;
|
|
239
|
+
/**
|
|
240
|
+
* Project-specific role mapping - fully replaces account mapping when set.
|
|
241
|
+
* If not set, falls back to the account-level mapping.
|
|
242
|
+
*/
|
|
243
|
+
riffToWorkosRoleMapping?: Record<string, string[]>;
|
|
244
|
+
}
|
|
245
|
+
export type ProjectConfig = ProjectSSOConfig;
|
|
223
246
|
export interface SSOConfigLookupEntry {
|
|
224
247
|
lastUpdatedAt: Timestamp;
|
|
225
248
|
organizationId: string;
|
|
@@ -574,6 +574,8 @@ export type CreateApprovalNotificationRequest = {
|
|
|
574
574
|
userId: string | null;
|
|
575
575
|
toolName: string;
|
|
576
576
|
sessionId: string;
|
|
577
|
+
messageSequence?: string | null;
|
|
578
|
+
toolUseId?: string | null;
|
|
577
579
|
taskId?: string | null;
|
|
578
580
|
displayId?: string | null;
|
|
579
581
|
reason?: string | null;
|