@databutton/firebase-types 1.153.0 → 1.155.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;
@@ -5,6 +5,7 @@ export type ComponentType = "frontend" | "backend" | "module" | "ui-file" | "ui-
5
5
  export declare namespace AuditLogEntry {
6
6
  enum Event {
7
7
  ACCOUNT_CREATED = "account-created",
8
+ ACCOUNT_DELETED = "account-deleted",
8
9
  MEMBER_ADDED = "member-added",
9
10
  MEMBER_REMOVED = "member-removed",
10
11
  MEMBER_ROLES_UPDATED = "member-roles-updated",
@@ -24,6 +25,9 @@ export declare namespace AuditLogEntry {
24
25
  owner: string;
25
26
  ownerEmail: string;
26
27
  }>;
28
+ type AccountDeleted = AuditLog<{
29
+ owner: string;
30
+ }>;
27
31
  type MemberRemoved = AuditLog<{
28
32
  memberId: string;
29
33
  memberEmail: string;
@@ -48,6 +52,8 @@ export declare namespace AuditLogEntry {
48
52
  type SecretSetCurrentVersion = AuditLog<SecretVersionMetadata>;
49
53
  type AuditLogEvent = (AccountCreated & {
50
54
  event: Event.ACCOUNT_CREATED;
55
+ }) | (AccountDeleted & {
56
+ event: Event.ACCOUNT_DELETED;
51
57
  }) | (MemberAdded & {
52
58
  event: Event.MEMBER_ADDED;
53
59
  }) | (MemberRemoved & {
@@ -3,6 +3,7 @@ export var AuditLogEntry;
3
3
  let Event;
4
4
  (function (Event) {
5
5
  Event["ACCOUNT_CREATED"] = "account-created";
6
+ Event["ACCOUNT_DELETED"] = "account-deleted";
6
7
  Event["MEMBER_ADDED"] = "member-added";
7
8
  Event["MEMBER_REMOVED"] = "member-removed";
8
9
  Event["MEMBER_ROLES_UPDATED"] = "member-roles-updated";
@@ -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;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@databutton/firebase-types",
3
- "version": "1.153.0",
3
+ "version": "1.155.0",
4
4
  "main": "lib/types/published/index.js",
5
5
  "type": "module",
6
6
  "engines": {