@databutton/firebase-types 1.63.11 → 1.63.12

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;
@@ -1055,4 +1061,7 @@ export interface TokenUsageEntry {
1055
1061
  model: string;
1056
1062
  finishReason: string | null;
1057
1063
  }
1064
+ export interface PublicUsernameRecord {
1065
+ userId: string;
1066
+ }
1058
1067
  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;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@databutton/firebase-types",
3
- "version": "1.63.11",
3
+ "version": "1.63.12",
4
4
  "main": "lib/types/published/index.js",
5
5
  "type": "module",
6
6
  "engines": {