@databutton/firebase-types 1.153.0 → 1.154.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.
|
@@ -264,7 +264,11 @@ export declare enum CreateTeamAccountErrorCode {
|
|
|
264
264
|
ACCOUNT_LIMIT_REACHED = "ACCOUNT_LIMIT_REACHED",
|
|
265
265
|
INTERNAL_ERROR = "INTERNAL_ERROR",
|
|
266
266
|
INVALID_USERNAME = "INVALID_USERNAME",
|
|
267
|
-
USERNAME_TAKEN = "USERNAME_TAKEN"
|
|
267
|
+
USERNAME_TAKEN = "USERNAME_TAKEN",
|
|
268
|
+
PARENT_NOT_FOUND = "PARENT_NOT_FOUND",
|
|
269
|
+
PARENT_PERMISSION_DENIED = "PARENT_PERMISSION_DENIED",
|
|
270
|
+
SSO_INHERIT_NO_PARENT_CONFIG = "SSO_INHERIT_NO_PARENT_CONFIG",
|
|
271
|
+
TOP_LEVEL_REQUIRES_STAFF = "TOP_LEVEL_REQUIRES_STAFF"
|
|
268
272
|
}
|
|
269
273
|
export declare enum ProjectEnvConfigEnv {
|
|
270
274
|
DEV = "dev",
|
|
@@ -290,6 +290,11 @@ export var CreateTeamAccountErrorCode;
|
|
|
290
290
|
CreateTeamAccountErrorCode["INTERNAL_ERROR"] = "INTERNAL_ERROR";
|
|
291
291
|
CreateTeamAccountErrorCode["INVALID_USERNAME"] = "INVALID_USERNAME";
|
|
292
292
|
CreateTeamAccountErrorCode["USERNAME_TAKEN"] = "USERNAME_TAKEN";
|
|
293
|
+
CreateTeamAccountErrorCode["PARENT_NOT_FOUND"] = "PARENT_NOT_FOUND";
|
|
294
|
+
CreateTeamAccountErrorCode["PARENT_PERMISSION_DENIED"] = "PARENT_PERMISSION_DENIED";
|
|
295
|
+
CreateTeamAccountErrorCode["SSO_INHERIT_NO_PARENT_CONFIG"] = "SSO_INHERIT_NO_PARENT_CONFIG";
|
|
296
|
+
// Brand-new top-level accounts are staff-only; customers create sub-teams.
|
|
297
|
+
CreateTeamAccountErrorCode["TOP_LEVEL_REQUIRES_STAFF"] = "TOP_LEVEL_REQUIRES_STAFF";
|
|
293
298
|
})(CreateTeamAccountErrorCode || (CreateTeamAccountErrorCode = {}));
|
|
294
299
|
// Environments config can be defined for
|
|
295
300
|
export var ProjectEnvConfigEnv;
|
|
@@ -509,6 +509,8 @@ export type CreateTeamAccountRequest = {
|
|
|
509
509
|
name: string;
|
|
510
510
|
publicUsername?: string;
|
|
511
511
|
teamType?: "internal" | "enterprise" | "enterprise_trial";
|
|
512
|
+
parentId?: string;
|
|
513
|
+
inheritParentSso?: boolean;
|
|
512
514
|
};
|
|
513
515
|
export type CreateTeamAccountResponse = {
|
|
514
516
|
success: true;
|