@databutton/firebase-types 1.116.0 → 1.118.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.
@@ -88,6 +88,7 @@ export declare enum CollectionName {
88
88
  TOKEN_USAGE_RECORDS = "token-usage-records",
89
89
  UI_COMPONENTS = "ui-components",
90
90
  UI_FILES = "ui-files",
91
+ CONTEXT_FILES = "context-files",
91
92
  TASKS = "tasks",
92
93
  TOKEN_USAGE_ENTRIES = "entries",
93
94
  COMPUTE_HOUR_USAGE = "compute-hour-usage",
@@ -133,6 +134,7 @@ export declare enum DatabuttonIdPrefix {
133
134
  THREADS = "th",
134
135
  UI_COMPONENT = "uic",
135
136
  UI_FILE = "uif",
137
+ CONTEXT_FILE = "ctx",
136
138
  BROKEN_VENV = "venv",
137
139
  CREDIT_TRANSACTION = "ct",
138
140
  PAGE = "pa",
@@ -182,7 +184,8 @@ export declare enum CodeComponentType {
182
184
  BACKEND = "backend",
183
185
  MODULE = "module",
184
186
  UI_FILE = "ui-file",
185
- UI_COMPONENT = "ui-component"
187
+ UI_COMPONENT = "ui-component",
188
+ CONTEXT_FILE = "context-file"
186
189
  }
187
190
  export declare enum ComponentType {
188
191
  BACKEND = "backend",
@@ -192,7 +195,8 @@ export declare enum ComponentType {
192
195
  FRONTEND = "frontend",
193
196
  UI_COMPONENT = "ui-component",
194
197
  UI_FILE = "ui-file",
195
- MODULE = "module"
198
+ MODULE = "module",
199
+ CONTEXT_FILE = "context-file"
196
200
  }
197
201
  export declare enum TaskPriority {
198
202
  LOW = "low",
@@ -89,6 +89,7 @@ export var CollectionName;
89
89
  CollectionName["TOKEN_USAGE_RECORDS"] = "token-usage-records";
90
90
  CollectionName["UI_COMPONENTS"] = "ui-components";
91
91
  CollectionName["UI_FILES"] = "ui-files";
92
+ CollectionName["CONTEXT_FILES"] = "context-files";
92
93
  CollectionName["TASKS"] = "tasks";
93
94
  CollectionName["TOKEN_USAGE_ENTRIES"] = "entries";
94
95
  CollectionName["COMPUTE_HOUR_USAGE"] = "compute-hour-usage";
@@ -137,6 +138,7 @@ export var DatabuttonIdPrefix;
137
138
  DatabuttonIdPrefix["THREADS"] = "th";
138
139
  DatabuttonIdPrefix["UI_COMPONENT"] = "uic";
139
140
  DatabuttonIdPrefix["UI_FILE"] = "uif";
141
+ DatabuttonIdPrefix["CONTEXT_FILE"] = "ctx";
140
142
  DatabuttonIdPrefix["BROKEN_VENV"] = "venv";
141
143
  DatabuttonIdPrefix["CREDIT_TRANSACTION"] = "ct";
142
144
  DatabuttonIdPrefix["PAGE"] = "pa";
@@ -196,6 +198,7 @@ export var CodeComponentType;
196
198
  CodeComponentType["MODULE"] = "module";
197
199
  CodeComponentType["UI_FILE"] = "ui-file";
198
200
  CodeComponentType["UI_COMPONENT"] = "ui-component";
201
+ CodeComponentType["CONTEXT_FILE"] = "context-file";
199
202
  })(CodeComponentType || (CodeComponentType = {}));
200
203
  export var ComponentType;
201
204
  (function (ComponentType) {
@@ -207,6 +210,7 @@ export var ComponentType;
207
210
  ComponentType["UI_COMPONENT"] = "ui-component";
208
211
  ComponentType["UI_FILE"] = "ui-file";
209
212
  ComponentType["MODULE"] = "module";
213
+ ComponentType["CONTEXT_FILE"] = "context-file";
210
214
  })(ComponentType || (ComponentType = {}));
211
215
  export var TaskPriority;
212
216
  (function (TaskPriority) {
@@ -1,7 +1,7 @@
1
1
  import type { AccountRole } from "./enums.js";
2
- import type { AuditLog, Backend, Frontend, Module, UiComponent, UiFile } from "./persisted.js";
3
- export type Component = Frontend | Backend | Module | UiFile | UiComponent;
4
- export type ComponentType = "frontend" | "backend" | "module" | "ui-file" | "ui-component";
2
+ import type { AuditLog, Backend, ContextFile, Frontend, Module, UiComponent, UiFile } from "./persisted.js";
3
+ export type Component = Frontend | Backend | Module | UiFile | UiComponent | ContextFile;
4
+ export type ComponentType = "frontend" | "backend" | "module" | "ui-file" | "ui-component" | "context-file";
5
5
  export declare namespace AuditLogEntry {
6
6
  enum Event {
7
7
  ACCOUNT_CREATED = "account-created",
@@ -451,6 +451,12 @@ export interface UiFile {
451
451
  markedForDeletionBy: PerformedBy | null;
452
452
  codeBlockRef: string;
453
453
  }
454
+ export interface ContextFile {
455
+ name: string;
456
+ createdBy: PerformedBy;
457
+ markedForDeletionBy: PerformedBy | null;
458
+ codeBlockRef: string;
459
+ }
454
460
  export declare enum StepState {
455
461
  TODO = "todo",
456
462
  IN_PROGRESS = "in-progress",
@@ -545,7 +551,7 @@ export declare enum AgentAccess {
545
551
  READ_ONLY = "read-only"
546
552
  }
547
553
  export interface CodeBlock {
548
- type: "module" | "backend" | "frontend" | "ui-component" | "ui-file";
554
+ type: "module" | "backend" | "frontend" | "ui-component" | "ui-file" | "context-file";
549
555
  createdAtUtc: Timestamp;
550
556
  componentId: string;
551
557
  controlTakenBy?: PerformedBy | null;
@@ -1458,6 +1464,7 @@ export interface ProjectCustomDomain {
1458
1464
  acmCertificateStatus?: CertificateStatus;
1459
1465
  apiPathPrefix?: string;
1460
1466
  apiHost?: string;
1467
+ frozenUntil?: Timestamp | null;
1461
1468
  /**
1462
1469
  * @deprecated Will be removed
1463
1470
  */
@@ -1539,6 +1546,11 @@ export interface ProjectTemplate {
1539
1546
  config?: BackendConfig;
1540
1547
  agentAccess?: AgentAccess | null;
1541
1548
  }[];
1549
+ contextFiles?: {
1550
+ name: string;
1551
+ code: string;
1552
+ agentAccess?: AgentAccess | null;
1553
+ }[];
1542
1554
  backendPackages?: BackendPackages | null;
1543
1555
  frontendPackages?: FrontendPackages | null;
1544
1556
  requirements?: ProjectTemplateRequirementsSnapshot | null;
@@ -1724,7 +1736,7 @@ type WithDocRef<T> = T & {
1724
1736
  export type ComponentSnapshotBase = {
1725
1737
  component: WithDocRef<{
1726
1738
  name: string;
1727
- type: "module" | "frontend" | "backend" | "ui-component" | "ui-file";
1739
+ type: "module" | "frontend" | "backend" | "ui-component" | "ui-file" | "context-file";
1728
1740
  }>;
1729
1741
  codeBlock: WithDocRef<{
1730
1742
  version: WithDocRef<{
@@ -1746,6 +1758,7 @@ export type BackendSnapshot<T = ComponentSnapshotBase> = T & {
1746
1758
  };
1747
1759
  export type UiFileSnapshot<T = ComponentSnapshotBase> = T;
1748
1760
  export type UiComponentSnapshot<T = ComponentSnapshotBase> = T;
1761
+ export type ContextFileSnapshot<T = ComponentSnapshotBase> = T;
1749
1762
  export type FrontendSnapshot<T = ComponentSnapshotBase> = T & {
1750
1763
  config?: FrontendConfig;
1751
1764
  };
@@ -1756,6 +1769,7 @@ export type AppSnapshot<T = ComponentSnapshotBase> = {
1756
1769
  uiFiles?: UiFileSnapshot<T>[];
1757
1770
  uiComponents?: UiComponentSnapshot<T>[];
1758
1771
  frontends?: FrontendSnapshot<T>[];
1772
+ contextFiles?: ContextFileSnapshot<T>[];
1759
1773
  };
1760
1774
  export interface ProjectDeploymentBase<T = ComponentSnapshotBase> extends Approvable, AppSnapshot<T> {
1761
1775
  build: {
@@ -1820,7 +1834,7 @@ export interface ContextBase {
1820
1834
  export interface ComponentContext extends ContextBase {
1821
1835
  type: "component";
1822
1836
  componentId: string;
1823
- componentType: "module" | "frontend" | "backend" | "ui-component" | "ui-file";
1837
+ componentType: "module" | "frontend" | "backend" | "ui-component" | "ui-file" | "context-file";
1824
1838
  }
1825
1839
  export interface ProjectContext extends ContextBase {
1826
1840
  type: "project";
@@ -75,6 +75,11 @@ export type RefreshCertificateRequest = {
75
75
  domainName: string;
76
76
  };
77
77
  export type RefreshCertificateResponse = {};
78
+ export type ReactivateDomainRequest = {
79
+ domainName: string;
80
+ projectId: string;
81
+ };
82
+ export type ReactivateDomainResponse = {};
78
83
  export type AdminCommandsForPalleteRequest = {
79
84
  projectId: string;
80
85
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@databutton/firebase-types",
3
- "version": "1.116.0",
3
+ "version": "1.118.0",
4
4
  "main": "lib/types/published/index.js",
5
5
  "type": "module",
6
6
  "engines": {