@databutton/firebase-types 1.90.16 → 1.91.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.
@@ -16,6 +16,7 @@ export declare enum CollectionName {
16
16
  COMMITS = "commits",
17
17
  COMMIT_REQUESTS = "commit-requests",
18
18
  CUSTOMERS = "customers",
19
+ SSO_CONFIG_LOOKUP = "sso-config-lookups",
19
20
  DATABASES = "databases",
20
21
  DATAFILES = "datafiles",
21
22
  DATAFRAMES = "dataframes",
@@ -33,6 +34,7 @@ export declare enum CollectionName {
33
34
  LIFE_STAGE_CHANGE_REQUESTS = "life-stage-change-requests",
34
35
  LOGS = "logs",
35
36
  ACCOUNT_MEMBERS = "members",
37
+ ACCOUNT_CONFIGS = "configs",
36
38
  ROLES = "roles",
37
39
  MESSAGES = "messages",
38
40
  MODULES = "modules",
@@ -199,3 +201,6 @@ export declare enum CreateProjectErrorCode {
199
201
  INVALID_PLAN = "INVALID_PLAN",
200
202
  UNKNOWN_ERROR = "UNKNOWN_ERROR"
201
203
  }
204
+ export declare enum ConfigTypes {
205
+ SSO = "sso"
206
+ }
@@ -17,6 +17,7 @@ export var CollectionName;
17
17
  CollectionName["COMMITS"] = "commits";
18
18
  CollectionName["COMMIT_REQUESTS"] = "commit-requests";
19
19
  CollectionName["CUSTOMERS"] = "customers";
20
+ CollectionName["SSO_CONFIG_LOOKUP"] = "sso-config-lookups";
20
21
  CollectionName["DATABASES"] = "databases";
21
22
  CollectionName["DATAFILES"] = "datafiles";
22
23
  CollectionName["DATAFRAMES"] = "dataframes";
@@ -34,6 +35,7 @@ export var CollectionName;
34
35
  CollectionName["LIFE_STAGE_CHANGE_REQUESTS"] = "life-stage-change-requests";
35
36
  CollectionName["LOGS"] = "logs";
36
37
  CollectionName["ACCOUNT_MEMBERS"] = "members";
38
+ CollectionName["ACCOUNT_CONFIGS"] = "configs";
37
39
  CollectionName["ROLES"] = "roles";
38
40
  CollectionName["MESSAGES"] = "messages";
39
41
  CollectionName["MODULES"] = "modules";
@@ -216,4 +218,8 @@ export var CreateProjectErrorCode;
216
218
  CreateProjectErrorCode["INVALID_PLAN"] = "INVALID_PLAN";
217
219
  CreateProjectErrorCode["UNKNOWN_ERROR"] = "UNKNOWN_ERROR";
218
220
  })(CreateProjectErrorCode || (CreateProjectErrorCode = {}));
221
+ export var ConfigTypes;
222
+ (function (ConfigTypes) {
223
+ ConfigTypes["SSO"] = "sso";
224
+ })(ConfigTypes || (ConfigTypes = {}));
219
225
  //# sourceMappingURL=enums.js.map
@@ -1,7 +1,7 @@
1
1
  import type { Timestamp } from "firebase/firestore";
2
2
  import type { JsonObject, Primitive } from "type-fest";
3
3
  import type { ProjectMigration } from "../internal/enums.js";
4
- import type { AccountRole, IntegrationType, TaskPriority, TaskRelation, ThirdPartyAuthName, ThirdPartyDatabaseName, ThirdPartyPaymentsName, ThirdPartyServiceCategory, ThirdPartyStorageName, UiComponentTag } from "./enums.js";
4
+ import type { AccountRole, ConfigTypes, IntegrationType, TaskPriority, TaskRelation, ThirdPartyAuthName, ThirdPartyDatabaseName, ThirdPartyPaymentsName, ThirdPartyServiceCategory, ThirdPartyStorageName, UiComponentTag } from "./enums.js";
5
5
  /**
6
6
  * Types here should reflect data format stored in firestore and
7
7
  * either be backwards-compatible or migrated when needed
@@ -53,6 +53,26 @@ export interface Account {
53
53
  */
54
54
  parentId: string | null;
55
55
  }
56
+ interface AccountConfigBase {
57
+ enabledBy: PerformedBy;
58
+ lastUpdatedBy: PerformedBy;
59
+ }
60
+ export interface SSOConfig extends AccountConfigBase {
61
+ type: ConfigTypes.SSO;
62
+ /**
63
+ * Organization ID from WorkOS
64
+ */
65
+ organizationId: string;
66
+ /**
67
+ * Email domains
68
+ */
69
+ emailDomains: string[];
70
+ }
71
+ export type AccountConfig = SSOConfig;
72
+ export interface SSOConfigLookupEntry {
73
+ lastUpdatedAt: Timestamp;
74
+ organizationId: string;
75
+ }
56
76
  /**
57
77
  * A list of account IDs that the user is at least a member of
58
78
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@databutton/firebase-types",
3
- "version": "1.90.16",
3
+ "version": "1.91.1",
4
4
  "main": "lib/types/published/index.js",
5
5
  "type": "module",
6
6
  "engines": {