@databutton/firebase-types 1.151.0 → 1.153.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.
@@ -95,6 +95,7 @@ export declare enum CollectionName {
95
95
  CONTEXT_FILES = "context-files",
96
96
  TOOL_CONFIGS = "tool-configs",
97
97
  PERFORMANCE_METRIC_CONFIGS = "performance-metric-configs",
98
+ DISPLAY_STRINGS = "display-strings",
98
99
  TASKS = "tasks",
99
100
  TOKEN_USAGE_ENTRIES = "entries",
100
101
  COMPUTE_HOUR_USAGE = "compute-hour-usage",
@@ -96,6 +96,7 @@ export var CollectionName;
96
96
  CollectionName["CONTEXT_FILES"] = "context-files";
97
97
  CollectionName["TOOL_CONFIGS"] = "tool-configs";
98
98
  CollectionName["PERFORMANCE_METRIC_CONFIGS"] = "performance-metric-configs";
99
+ CollectionName["DISPLAY_STRINGS"] = "display-strings";
99
100
  CollectionName["TASKS"] = "tasks";
100
101
  CollectionName["TOKEN_USAGE_ENTRIES"] = "entries";
101
102
  CollectionName["COMPUTE_HOUR_USAGE"] = "compute-hour-usage";
@@ -220,6 +220,13 @@ export interface SSOConfig extends AccountConfigBase {
220
220
  * }
221
221
  */
222
222
  riffToWorkosRoleMapping?: Record<string, string[]>;
223
+ /**
224
+ * Account-wide default for gating the deployed app bundle at the edge.
225
+ * When true, CloudFront will not serve the JS bundle until the visitor has
226
+ * logged in — an extra layer on top of the runtime WorkOS auth.
227
+ * Absent = false. Can be overridden per project via ProjectSSOConfig.
228
+ */
229
+ gateBundle?: boolean;
223
230
  }
224
231
  export interface PostHogConfig extends AccountConfigBase {
225
232
  type: ConfigTypes.POSTHOG;
@@ -266,6 +273,11 @@ export interface ProjectSSOConfig extends ProjectConfigBase {
266
273
  * If not set, falls back to the account-level mapping.
267
274
  */
268
275
  riffToWorkosRoleMapping?: Record<string, string[]>;
276
+ /**
277
+ * Project-level override for edge-gating the deployed app bundle.
278
+ * undefined/null = inherit the account-level SSOConfig.gateBundle.
279
+ */
280
+ gateBundle?: boolean | null;
269
281
  }
270
282
  export type ProjectConfig = ProjectSSOConfig;
271
283
  export interface SSOConfigLookupEntry {
@@ -1064,6 +1076,7 @@ export interface WorkosAuthExtensionConfig {
1064
1076
  clientId: string;
1065
1077
  orgId: string;
1066
1078
  refreshKey?: string;
1079
+ gateBundle?: boolean;
1067
1080
  }
1068
1081
  export interface StackAuthExtensionConfig {
1069
1082
  projectId: string;
@@ -2790,6 +2803,11 @@ export interface PerformanceMetricConfig {
2790
2803
  createdBy: PerformedBy;
2791
2804
  lastUpdatedBy: PerformedBy;
2792
2805
  }
2806
+ export interface DisplayString {
2807
+ value: string;
2808
+ updatedBy: PerformedBy;
2809
+ updatedAt: Timestamp;
2810
+ }
2793
2811
  export interface AgentImprovement {
2794
2812
  createdBy: PerformedBy;
2795
2813
  createdAt: Timestamp;
@@ -57,7 +57,8 @@ export declare enum CustomDomainFailureCode {
57
57
  DOMAIN_FROZEN = "DOMAIN_FROZEN",
58
58
  DOMAIN_NEEDS_MIGRATION = "DOMAIN_NEEDS_MIGRATION",
59
59
  UNSUPPORTED_TOP_LEVEL_DOMAIN = "UNSUPPORTED_TOP_LEVEL_DOMAIN",
60
- INVALID_DOMAIN_FORMAT = "INVALID_DOMAIN_FORMAT"
60
+ INVALID_DOMAIN_FORMAT = "INVALID_DOMAIN_FORMAT",
61
+ BUNDLE_GATING_ENABLED = "BUNDLE_GATING_ENABLED"
61
62
  }
62
63
  export type CustomDomainResponse = {
63
64
  status: "Success";
@@ -10,6 +10,10 @@ export var CustomDomainFailureCode;
10
10
  CustomDomainFailureCode["DOMAIN_NEEDS_MIGRATION"] = "DOMAIN_NEEDS_MIGRATION";
11
11
  CustomDomainFailureCode["UNSUPPORTED_TOP_LEVEL_DOMAIN"] = "UNSUPPORTED_TOP_LEVEL_DOMAIN";
12
12
  CustomDomainFailureCode["INVALID_DOMAIN_FORMAT"] = "INVALID_DOMAIN_FORMAT";
13
+ // App has edge bundle gating (WorkOS gateBundle) enabled. Custom domains are
14
+ // served from a different CloudFront distribution that does not enforce the
15
+ // gate, so allowing one would bypass it. Rejected on the backend (DAT-13050).
16
+ CustomDomainFailureCode["BUNDLE_GATING_ENABLED"] = "BUNDLE_GATING_ENABLED";
13
17
  })(CustomDomainFailureCode || (CustomDomainFailureCode = {}));
14
18
  export var TimeRangeFilter;
15
19
  (function (TimeRangeFilter) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@databutton/firebase-types",
3
- "version": "1.151.0",
3
+ "version": "1.153.0",
4
4
  "main": "lib/types/published/index.js",
5
5
  "type": "module",
6
6
  "engines": {