@databutton/firebase-types 1.63.11 → 1.64.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.
|
@@ -32,6 +32,7 @@ export declare enum CollectionName {
|
|
|
32
32
|
PROJECT_INVITES = "project-invites",
|
|
33
33
|
PROJECTS = "projects",
|
|
34
34
|
PROJECT_TEMPLATES = "project-templates",
|
|
35
|
+
PUBLIC_USERNAMES = "public-usernames",
|
|
35
36
|
PULSES = "pulses",
|
|
36
37
|
REQUIREMENTS = "requirements",
|
|
37
38
|
RUNS = "runs",
|
|
@@ -33,6 +33,7 @@ export var CollectionName;
|
|
|
33
33
|
CollectionName["PROJECT_INVITES"] = "project-invites";
|
|
34
34
|
CollectionName["PROJECTS"] = "projects";
|
|
35
35
|
CollectionName["PROJECT_TEMPLATES"] = "project-templates";
|
|
36
|
+
CollectionName["PUBLIC_USERNAMES"] = "public-usernames";
|
|
36
37
|
CollectionName["PULSES"] = "pulses";
|
|
37
38
|
CollectionName["REQUIREMENTS"] = "requirements";
|
|
38
39
|
CollectionName["RUNS"] = "runs";
|
|
@@ -22,8 +22,14 @@ export type PerformedBy = PerformedByUser | PerformedBySystem | PerformedByAnony
|
|
|
22
22
|
export interface ProjectEventsReadMap {
|
|
23
23
|
[projectId: string]: Timestamp;
|
|
24
24
|
}
|
|
25
|
+
export interface PublicUsername {
|
|
26
|
+
username: string;
|
|
27
|
+
slug: string;
|
|
28
|
+
claimedAt: Timestamp;
|
|
29
|
+
}
|
|
25
30
|
export interface Profile {
|
|
26
31
|
displayName: string;
|
|
32
|
+
publicUsername?: PublicUsername;
|
|
27
33
|
displayPreference?: "dark" | "system" | "light";
|
|
28
34
|
jobTitle?: string;
|
|
29
35
|
companyName?: string;
|
|
@@ -58,6 +64,9 @@ export interface Profile {
|
|
|
58
64
|
storage?: {
|
|
59
65
|
discoveryPopupReadAt?: Timestamp | null;
|
|
60
66
|
};
|
|
67
|
+
landingView?: {
|
|
68
|
+
discoveryPopupReadAt?: Timestamp | null;
|
|
69
|
+
};
|
|
61
70
|
};
|
|
62
71
|
utm?: Record<string, string>;
|
|
63
72
|
/**
|
|
@@ -1055,4 +1064,7 @@ export interface TokenUsageEntry {
|
|
|
1055
1064
|
model: string;
|
|
1056
1065
|
finishReason: string | null;
|
|
1057
1066
|
}
|
|
1067
|
+
export interface PublicUsernameRecord {
|
|
1068
|
+
userId: string;
|
|
1069
|
+
}
|
|
1058
1070
|
export {};
|
|
@@ -73,6 +73,15 @@ export type GrantAccessRequest = {
|
|
|
73
73
|
export type GrantAccessResponse = {
|
|
74
74
|
profileCreated: boolean;
|
|
75
75
|
};
|
|
76
|
+
export type ClaimPublicUsernameRequest = {
|
|
77
|
+
publicUsername: string;
|
|
78
|
+
};
|
|
79
|
+
export type ClaimPublicUsernameResponse = {
|
|
80
|
+
success: true;
|
|
81
|
+
} | {
|
|
82
|
+
success: false;
|
|
83
|
+
message: string;
|
|
84
|
+
};
|
|
76
85
|
export type CreateCustomerSessionClientSecretRequest = {};
|
|
77
86
|
export type CreateCustomerSessionClientSecretResponse = {
|
|
78
87
|
customerSessionClientSecret: string;
|