@brimble/models 3.8.44 → 3.8.45

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.
Files changed (273) hide show
  1. package/package.json +1 -1
  2. package/types/volume.ts +1 -0
  3. package/volume.ts +4 -0
  4. package/dist/activity-log.d.ts +0 -9
  5. package/dist/activity-log.js +0 -61
  6. package/dist/app-message.d.ts +0 -9
  7. package/dist/app-message.js +0 -14
  8. package/dist/auto-scaling.d.ts +0 -9
  9. package/dist/auto-scaling.js +0 -63
  10. package/dist/card.d.ts +0 -9
  11. package/dist/card.js +0 -41
  12. package/dist/cashier_subscription.d.ts +0 -9
  13. package/dist/cashier_subscription.js +0 -27
  14. package/dist/cashier_subscription_item.d.ts +0 -9
  15. package/dist/cashier_subscription_item.js +0 -17
  16. package/dist/collab-annotation.d.ts +0 -9
  17. package/dist/collab-annotation.js +0 -31
  18. package/dist/collab-comment.d.ts +0 -9
  19. package/dist/collab-comment.js +0 -19
  20. package/dist/collab-integration.d.ts +0 -9
  21. package/dist/collab-integration.js +0 -17
  22. package/dist/collab-push-subscription.d.ts +0 -9
  23. package/dist/collab-push-subscription.js +0 -14
  24. package/dist/collab-settings.d.ts +0 -9
  25. package/dist/collab-settings.js +0 -24
  26. package/dist/collab-share-token.d.ts +0 -9
  27. package/dist/collab-share-token.js +0 -11
  28. package/dist/compute.d.ts +0 -9
  29. package/dist/compute.js +0 -82
  30. package/dist/db-image.d.ts +0 -9
  31. package/dist/db-image.js +0 -67
  32. package/dist/domain/dns.d.ts +0 -9
  33. package/dist/domain/dns.js +0 -33
  34. package/dist/domain/index.d.ts +0 -9
  35. package/dist/domain/index.js +0 -109
  36. package/dist/domain/renewal.d.ts +0 -9
  37. package/dist/domain/renewal.js +0 -21
  38. package/dist/domain/transfer.d.ts +0 -9
  39. package/dist/domain/transfer.js +0 -99
  40. package/dist/enum/index.d.ts +0 -271
  41. package/dist/enum/index.js +0 -319
  42. package/dist/env.d.ts +0 -9
  43. package/dist/env.js +0 -34
  44. package/dist/environment-variable.d.ts +0 -9
  45. package/dist/environment-variable.js +0 -16
  46. package/dist/follower.d.ts +0 -9
  47. package/dist/follower.js +0 -15
  48. package/dist/following.d.ts +0 -9
  49. package/dist/following.js +0 -15
  50. package/dist/framework.d.ts +0 -9
  51. package/dist/framework.js +0 -84
  52. package/dist/idempotency.d.ts +0 -9
  53. package/dist/idempotency.js +0 -17
  54. package/dist/index.d.ts +0 -72
  55. package/dist/index.js +0 -232
  56. package/dist/integration.d.ts +0 -9
  57. package/dist/integration.js +0 -35
  58. package/dist/intention.d.ts +0 -9
  59. package/dist/intention.js +0 -36
  60. package/dist/invoice.d.ts +0 -9
  61. package/dist/invoice.js +0 -28
  62. package/dist/job.d.ts +0 -10
  63. package/dist/job.js +0 -62
  64. package/dist/license.d.ts +0 -9
  65. package/dist/license.js +0 -75
  66. package/dist/load-balancer-port.d.ts +0 -9
  67. package/dist/load-balancer-port.js +0 -27
  68. package/dist/logs.d.ts +0 -9
  69. package/dist/logs.js +0 -40
  70. package/dist/member-permission.d.ts +0 -9
  71. package/dist/member-permission.js +0 -9
  72. package/dist/member.d.ts +0 -9
  73. package/dist/member.js +0 -40
  74. package/dist/object-storage-usage-segment.d.ts +0 -9
  75. package/dist/object-storage-usage-segment.js +0 -46
  76. package/dist/ownership-transfer.d.ts +0 -9
  77. package/dist/ownership-transfer.js +0 -35
  78. package/dist/permission.d.ts +0 -9
  79. package/dist/permission.js +0 -12
  80. package/dist/plan_configuration.d.ts +0 -10
  81. package/dist/plan_configuration.js +0 -61
  82. package/dist/project/connection.d.ts +0 -9
  83. package/dist/project/connection.js +0 -14
  84. package/dist/project/index.d.ts +0 -16
  85. package/dist/project/index.js +0 -256
  86. package/dist/project/preview.d.ts +0 -9
  87. package/dist/project/preview.js +0 -37
  88. package/dist/project-environment.d.ts +0 -9
  89. package/dist/project-environment.js +0 -13
  90. package/dist/project-tag-assignment.d.ts +0 -9
  91. package/dist/project-tag-assignment.js +0 -32
  92. package/dist/project_analytics.d.ts +0 -9
  93. package/dist/project_analytics.js +0 -18
  94. package/dist/provider.d.ts +0 -9
  95. package/dist/provider.js +0 -10
  96. package/dist/region.d.ts +0 -10
  97. package/dist/region.js +0 -17
  98. package/dist/role.d.ts +0 -9
  99. package/dist/role.js +0 -11
  100. package/dist/sandbox-activity.d.ts +0 -9
  101. package/dist/sandbox-activity.js +0 -49
  102. package/dist/sandbox-image.d.ts +0 -9
  103. package/dist/sandbox-image.js +0 -31
  104. package/dist/sandbox-snapshot-usage-segment.d.ts +0 -9
  105. package/dist/sandbox-snapshot-usage-segment.js +0 -49
  106. package/dist/sandbox-snapshot.d.ts +0 -9
  107. package/dist/sandbox-snapshot.js +0 -51
  108. package/dist/sandbox-usage-segment.d.ts +0 -9
  109. package/dist/sandbox-usage-segment.js +0 -57
  110. package/dist/sandbox.d.ts +0 -9
  111. package/dist/sandbox.js +0 -132
  112. package/dist/server.d.ts +0 -9
  113. package/dist/server.js +0 -101
  114. package/dist/settings.d.ts +0 -9
  115. package/dist/settings.js +0 -49
  116. package/dist/storage.d.ts +0 -36
  117. package/dist/storage.js +0 -82
  118. package/dist/subscription.d.ts +0 -9
  119. package/dist/subscription.js +0 -82
  120. package/dist/tag.d.ts +0 -9
  121. package/dist/tag.js +0 -29
  122. package/dist/team.d.ts +0 -9
  123. package/dist/team.js +0 -82
  124. package/dist/token.d.ts +0 -9
  125. package/dist/token.js +0 -36
  126. package/dist/types/activity-log.d.ts +0 -18
  127. package/dist/types/activity-log.js +0 -2
  128. package/dist/types/app-message.d.ts +0 -15
  129. package/dist/types/app-message.js +0 -2
  130. package/dist/types/auto-scaling-group.d.ts +0 -20
  131. package/dist/types/auto-scaling-group.js +0 -2
  132. package/dist/types/card.d.ts +0 -12
  133. package/dist/types/card.js +0 -2
  134. package/dist/types/cashier_subscription.d.ts +0 -27
  135. package/dist/types/cashier_subscription.js +0 -2
  136. package/dist/types/collab-annotation.d.ts +0 -27
  137. package/dist/types/collab-annotation.js +0 -2
  138. package/dist/types/collab-comment.d.ts +0 -20
  139. package/dist/types/collab-comment.js +0 -2
  140. package/dist/types/collab-integration.d.ts +0 -13
  141. package/dist/types/collab-integration.js +0 -2
  142. package/dist/types/collab-push-subscription.d.ts +0 -12
  143. package/dist/types/collab-push-subscription.js +0 -2
  144. package/dist/types/collab-settings.d.ts +0 -16
  145. package/dist/types/collab-settings.js +0 -2
  146. package/dist/types/collab-share-token.d.ts +0 -12
  147. package/dist/types/collab-share-token.js +0 -2
  148. package/dist/types/compute.d.ts +0 -48
  149. package/dist/types/compute.js +0 -2
  150. package/dist/types/db-image.d.ts +0 -25
  151. package/dist/types/db-image.js +0 -2
  152. package/dist/types/domain/dns.d.ts +0 -12
  153. package/dist/types/domain/dns.js +0 -2
  154. package/dist/types/domain/index.d.ts +0 -35
  155. package/dist/types/domain/index.js +0 -2
  156. package/dist/types/domain/renewal.d.ts +0 -10
  157. package/dist/types/domain/renewal.js +0 -2
  158. package/dist/types/domain/transfer.d.ts +0 -27
  159. package/dist/types/domain/transfer.js +0 -2
  160. package/dist/types/env.d.ts +0 -13
  161. package/dist/types/env.js +0 -2
  162. package/dist/types/environment-variable.d.ts +0 -12
  163. package/dist/types/environment-variable.js +0 -2
  164. package/dist/types/following.d.ts +0 -5
  165. package/dist/types/following.js +0 -2
  166. package/dist/types/framework.d.ts +0 -39
  167. package/dist/types/framework.js +0 -2
  168. package/dist/types/git.d.ts +0 -14
  169. package/dist/types/git.js +0 -2
  170. package/dist/types/idempotency.d.ts +0 -10
  171. package/dist/types/idempotency.js +0 -2
  172. package/dist/types/index.d.ts +0 -66
  173. package/dist/types/index.js +0 -2
  174. package/dist/types/installed_integration.d.ts +0 -6
  175. package/dist/types/installed_integration.js +0 -2
  176. package/dist/types/integration.d.ts +0 -14
  177. package/dist/types/integration.js +0 -2
  178. package/dist/types/intention.d.ts +0 -13
  179. package/dist/types/intention.js +0 -2
  180. package/dist/types/invoice.d.ts +0 -15
  181. package/dist/types/invoice.js +0 -2
  182. package/dist/types/job.d.ts +0 -19
  183. package/dist/types/job.js +0 -2
  184. package/dist/types/license.d.ts +0 -18
  185. package/dist/types/license.js +0 -2
  186. package/dist/types/load-balancer-port.d.ts +0 -12
  187. package/dist/types/load-balancer-port.js +0 -2
  188. package/dist/types/logs.d.ts +0 -35
  189. package/dist/types/logs.js +0 -2
  190. package/dist/types/member-permission.d.ts +0 -8
  191. package/dist/types/member-permission.js +0 -2
  192. package/dist/types/member.d.ts +0 -18
  193. package/dist/types/member.js +0 -2
  194. package/dist/types/object-storage-usage-segment.d.ts +0 -23
  195. package/dist/types/object-storage-usage-segment.js +0 -2
  196. package/dist/types/ownership-transfer.d.ts +0 -12
  197. package/dist/types/ownership-transfer.js +0 -2
  198. package/dist/types/permission.d.ts +0 -13
  199. package/dist/types/permission.js +0 -2
  200. package/dist/types/plan_configuration.d.ts +0 -55
  201. package/dist/types/plan_configuration.js +0 -2
  202. package/dist/types/project/connection.d.ts +0 -6
  203. package/dist/types/project/connection.js +0 -2
  204. package/dist/types/project/index.d.ts +0 -100
  205. package/dist/types/project/index.js +0 -2
  206. package/dist/types/project/preview.d.ts +0 -21
  207. package/dist/types/project/preview.js +0 -2
  208. package/dist/types/project-environment.d.ts +0 -13
  209. package/dist/types/project-environment.js +0 -2
  210. package/dist/types/project-tag-assignment.d.ts +0 -13
  211. package/dist/types/project-tag-assignment.js +0 -2
  212. package/dist/types/project_analytics.d.ts +0 -11
  213. package/dist/types/project_analytics.js +0 -2
  214. package/dist/types/provider.d.ts +0 -7
  215. package/dist/types/provider.js +0 -2
  216. package/dist/types/region.d.ts +0 -15
  217. package/dist/types/region.js +0 -2
  218. package/dist/types/role.d.ts +0 -9
  219. package/dist/types/role.js +0 -2
  220. package/dist/types/sandbox-activity.d.ts +0 -14
  221. package/dist/types/sandbox-activity.js +0 -2
  222. package/dist/types/sandbox-image.d.ts +0 -9
  223. package/dist/types/sandbox-image.js +0 -2
  224. package/dist/types/sandbox-snapshot-usage-segment.d.ts +0 -16
  225. package/dist/types/sandbox-snapshot-usage-segment.js +0 -2
  226. package/dist/types/sandbox-snapshot.d.ts +0 -16
  227. package/dist/types/sandbox-snapshot.js +0 -2
  228. package/dist/types/sandbox-usage-segment.d.ts +0 -25
  229. package/dist/types/sandbox-usage-segment.js +0 -2
  230. package/dist/types/sandbox.d.ts +0 -41
  231. package/dist/types/sandbox.js +0 -2
  232. package/dist/types/server.d.ts +0 -32
  233. package/dist/types/server.js +0 -2
  234. package/dist/types/settings.d.ts +0 -11
  235. package/dist/types/settings.js +0 -2
  236. package/dist/types/storage.d.ts +0 -79
  237. package/dist/types/storage.js +0 -2
  238. package/dist/types/subscription.d.ts +0 -33
  239. package/dist/types/subscription.js +0 -2
  240. package/dist/types/tag.d.ts +0 -11
  241. package/dist/types/tag.js +0 -2
  242. package/dist/types/team.d.ts +0 -24
  243. package/dist/types/team.js +0 -2
  244. package/dist/types/token.d.ts +0 -11
  245. package/dist/types/token.js +0 -2
  246. package/dist/types/user.d.ts +0 -44
  247. package/dist/types/user.js +0 -2
  248. package/dist/types/volume-usage-segment.d.ts +0 -16
  249. package/dist/types/volume-usage-segment.js +0 -2
  250. package/dist/types/volume.d.ts +0 -19
  251. package/dist/types/volume.js +0 -2
  252. package/dist/types/wallet.d.ts +0 -8
  253. package/dist/types/wallet.js +0 -2
  254. package/dist/types/webhook-category.d.ts +0 -4
  255. package/dist/types/webhook-category.js +0 -2
  256. package/dist/types/webhook-event.d.ts +0 -7
  257. package/dist/types/webhook-event.js +0 -2
  258. package/dist/types/webhook-setting.d.ts +0 -16
  259. package/dist/types/webhook-setting.js +0 -2
  260. package/dist/user.d.ts +0 -9
  261. package/dist/user.js +0 -70
  262. package/dist/volume-usage-segment.d.ts +0 -9
  263. package/dist/volume-usage-segment.js +0 -46
  264. package/dist/volume.d.ts +0 -9
  265. package/dist/volume.js +0 -44
  266. package/dist/wallet.d.ts +0 -9
  267. package/dist/wallet.js +0 -26
  268. package/dist/webhook-category.d.ts +0 -9
  269. package/dist/webhook-category.js +0 -10
  270. package/dist/webhook-event.d.ts +0 -9
  271. package/dist/webhook-event.js +0 -19
  272. package/dist/webhook-setting.d.ts +0 -9
  273. package/dist/webhook-setting.js +0 -50
@@ -1,23 +0,0 @@
1
- import { Document, Types } from "mongoose";
2
- export interface IObjectStorageUsageSegmentCosts {
3
- startDate: Date;
4
- endDate: Date | null;
5
- }
6
- export interface IObjectStorageUsageSegment extends Document {
7
- bucket_id: Types.ObjectId;
8
- user_id: Types.ObjectId;
9
- team_id: Types.ObjectId | null;
10
- size_gb: number;
11
- costs: IObjectStorageUsageSegmentCosts;
12
- billed: boolean;
13
- createdAt: Date;
14
- updatedAt: Date;
15
- }
16
- export interface IObjectStorageUsageUnitsSummary {
17
- gbHours: number;
18
- segmentIds: string[];
19
- date: {
20
- start: string;
21
- end: string;
22
- };
23
- }
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,12 +0,0 @@
1
- import { Document } from "mongoose";
2
- import { ITeam } from "./team";
3
- import { IUser } from "./user";
4
- export interface IOwnershipTransfer extends Document {
5
- team: ITeam;
6
- from_user: IUser;
7
- to_user: IUser;
8
- status: "pending" | "accepted" | "denied" | "expired";
9
- expires_at: Date;
10
- created_at: Date;
11
- updated_at: Date;
12
- }
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,13 +0,0 @@
1
- import { Document } from "mongoose";
2
- import { IRole } from "./role";
3
- import { PERMISSION_TYPE, REQUEST_TYPE } from "../enum";
4
- export interface IPermission extends Document {
5
- title: string;
6
- role: IRole[];
7
- type: PERMISSION_TYPE;
8
- request: {
9
- route: string;
10
- type: REQUEST_TYPE;
11
- };
12
- enabled: boolean;
13
- }
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,55 +0,0 @@
1
- import { Document } from "mongoose";
2
- import { SUBSCRIPTION_PLAN_TYPE } from "../enum";
3
- import { IRegion } from "./region";
4
- export interface IPlanConfiguration extends Document {
5
- tag: string;
6
- price: number;
7
- region: IRegion;
8
- slack_support: boolean;
9
- autoscaling_enabled: boolean;
10
- concurrent_builds: number;
11
- project_limit: number;
12
- deploy_private_organization: boolean;
13
- preview_comments: boolean;
14
- password_enabled: boolean;
15
- analytics: boolean;
16
- build_minutes: number;
17
- log_retention: number;
18
- multi_region: boolean;
19
- ai_debug_enabled: boolean;
20
- ai_debug_limit: number;
21
- bandwidth: number;
22
- pull_request_preview: boolean;
23
- plan_type: SUBSCRIPTION_PLAN_TYPE;
24
- volumes_enabled: boolean;
25
- memory: number;
26
- build_timeout: number;
27
- storage: number;
28
- cpu: number;
29
- tokens: number;
30
- hierarchy: number;
31
- view_metrics: boolean;
32
- token_request: number;
33
- custom_domain: boolean;
34
- unlimited_projects: boolean;
35
- webhook_enabled: boolean;
36
- can_deploy_all_applications: boolean;
37
- stripe_prices?: Record<string, string>;
38
- storage_bucket_enabled: boolean;
39
- storage_bucket_quota_gb: number;
40
- sandbox_max_count: number;
41
- sanxbox_hours_max: number;
42
- sandbox_enabled: boolean;
43
- sandbox_cpu_hours_included: number;
44
- sandbox_memory_gb_hours_included: number;
45
- sandbox_max_runtime_minutes: number;
46
- sandbox_max_vcpu: number;
47
- sandbox_max_memory_gb: number;
48
- sandbox_creation_rate_per_minute: number;
49
- sandbox_cpu_overage_price: number;
50
- sandbox_memory_overage_price: number;
51
- sandbox_snapshot_storage_price: number;
52
- sandbox_snapshot_gb_months_included: number;
53
- sandbox_max_volume_size_gb: number;
54
- sandbox_max_volumes: number;
55
- }
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,6 +0,0 @@
1
- import { Document } from "mongoose";
2
- import { IProject } from ".";
3
- export interface IProjectConnection extends Document {
4
- service: IProject;
5
- project: IProject;
6
- }
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,100 +0,0 @@
1
- import { Document } from "mongoose";
2
- import { GIT_TYPE, PROJECT_STATUS, ServiceType } from "../../enum";
3
- import { IDomain } from "../domain";
4
- import { IEnv } from "../env";
5
- import { ILog } from "../logs";
6
- import { ITeam } from "../team";
7
- import { IUser } from "../user";
8
- import { IServer } from "../server";
9
- import { IPreview } from "./preview";
10
- import { IDbImage } from "../db-image";
11
- import { IAutoScalingGroup } from "../auto-scaling-group";
12
- import { IProjectEnvironment } from "../project-environment";
13
- import { IRegion } from "../region";
14
- import { IVolume } from "../volume";
15
- export interface IProject extends Document {
16
- name: string;
17
- healthCheckPath?: string;
18
- preStartCommand?: string;
19
- backupEnabled: boolean;
20
- free_tier_expires_at?: Date | null;
21
- free_tier_expiry_notified_at?: Date | null;
22
- buildCacheEnabled?: boolean;
23
- domains: Array<IDomain>;
24
- environments: Array<IEnv>;
25
- uuid: number;
26
- pid: number;
27
- port: number;
28
- ip: string;
29
- dir: string;
30
- tlsEnabled: boolean;
31
- dbImage: IDbImage;
32
- installCommand: string;
33
- buildCommand: string;
34
- startCommand: string;
35
- outputDirectory: string;
36
- user_id: IUser;
37
- monitor_id: string;
38
- nomadJobId: string;
39
- watchPaths: string[];
40
- repo: {
41
- name: string;
42
- full_name: string;
43
- id: number;
44
- branch: string;
45
- installationId: number;
46
- git: GIT_TYPE;
47
- } | null;
48
- rootDir?: string;
49
- team: ITeam;
50
- server: IServer;
51
- isPrivate: boolean;
52
- status: PROJECT_STATUS;
53
- framework: string;
54
- description: string;
55
- logs: Array<ILog>;
56
- log: ILog;
57
- maintenance: boolean;
58
- passwordEnabled: boolean;
59
- disabled: boolean;
60
- authEnabled: boolean;
61
- password: string | null;
62
- deployedInCluster: boolean;
63
- screenshot: {
64
- image: string;
65
- public_id: string;
66
- };
67
- createdAt: Date;
68
- updatedAt: Date;
69
- container_stats_schedule_id: string | null;
70
- lastProcessed: number;
71
- tracking_token: string;
72
- from: string;
73
- previews: IPreview[];
74
- project_environment?: IProjectEnvironment;
75
- inherit_environment_vars: boolean;
76
- replicas: number;
77
- vaultPath: string | null;
78
- vaultToken: string | null;
79
- specs: {
80
- memory: number;
81
- cpu: number;
82
- storage: number;
83
- region: IRegion;
84
- };
85
- last_requested: Date;
86
- isPaused: boolean;
87
- billable: boolean;
88
- serviceType?: ServiceType;
89
- last_backup_url?: string;
90
- last_backup_at?: Date;
91
- replica_ready: boolean;
92
- autoscaling_group?: IAutoScalingGroup;
93
- isPaid: boolean;
94
- hasUpdates?: boolean;
95
- whiteListedIps?: string[];
96
- diskSize?: number;
97
- persistent_mount_path?: string;
98
- volumeMount: string;
99
- volume: IVolume | null;
100
- }
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,21 +0,0 @@
1
- import { Document } from "mongoose";
2
- import { IServer } from "../server";
3
- import { IProject } from ".";
4
- import { PROJECT_STATUS } from "../../enum";
5
- import { ILog } from "../logs";
6
- export interface IPreview extends Document {
7
- name: string;
8
- healthCheckPath?: string;
9
- pid: number;
10
- port: number;
11
- ip: string;
12
- dir: string;
13
- branch: string;
14
- server: IServer;
15
- project: IProject;
16
- issue_comment_id: number;
17
- status: PROJECT_STATUS;
18
- log: ILog;
19
- last_requested: Date;
20
- isPaused: boolean;
21
- }
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,13 +0,0 @@
1
- import { Document } from "mongoose";
2
- import { ITeam } from "./team";
3
- import { IUser } from "./user";
4
- export interface IProjectEnvironment extends Document {
5
- name: string;
6
- slug: string;
7
- owner: IUser;
8
- team?: ITeam;
9
- inherit_from?: IProjectEnvironment;
10
- isDefault: boolean;
11
- createdAt: Date;
12
- updatedAt: Date;
13
- }
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,13 +0,0 @@
1
- import { Document } from "mongoose";
2
- import { ITag } from "./tag";
3
- import { IProject } from "./project";
4
- import { ITeam } from "./team";
5
- import { IUser } from "./user";
6
- export interface IProjectTagAssignment extends Document {
7
- tagId: ITag;
8
- projectId: IProject;
9
- teamId: ITeam;
10
- assignedBy: IUser;
11
- createdAt: Date;
12
- updatedAt: Date;
13
- }
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,11 +0,0 @@
1
- import { Document, Types } from "mongoose";
2
- export interface IProjectAnalytics extends Document {
3
- project: Types.ObjectId;
4
- provider: "umami";
5
- websiteId: string;
6
- shareId?: string | null;
7
- domain: string;
8
- enabled: boolean;
9
- createdAt: Date;
10
- updatedAt: Date;
11
- }
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,7 +0,0 @@
1
- import { Document } from "mongoose";
2
- export interface IProvider extends Document {
3
- name: string;
4
- slug: string;
5
- logo: string;
6
- enabled: boolean;
7
- }
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,15 +0,0 @@
1
- import { Schema } from "mongoose";
2
- import { REGION_CONTINENT } from "../enum";
3
- export interface IRegion extends Document {
4
- _id: Schema.Types.ObjectId;
5
- name: string;
6
- country: string;
7
- continent?: REGION_CONTINENT;
8
- enabled?: boolean;
9
- dbVolumePath: string;
10
- is_paid: boolean;
11
- provider: string;
12
- provider_identifier: string;
13
- storage_pricing_factor: number;
14
- floating_ip?: string;
15
- }
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,9 +0,0 @@
1
- import { Document } from "mongoose";
2
- import { ROLES } from "../enum";
3
- import { IPermission } from "./permission";
4
- export interface IRole extends Document {
5
- type: ROLES;
6
- description?: string;
7
- is_custom?: boolean;
8
- permissions: IPermission[];
9
- }
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,14 +0,0 @@
1
- import { Document, Types } from "mongoose";
2
- export interface ISandboxActivity extends Document {
3
- sandbox_id: Types.ObjectId;
4
- user_id: Types.ObjectId;
5
- team: Types.ObjectId | null;
6
- command: string;
7
- started_at: Date;
8
- ended_at: Date | null;
9
- exit_code: number | null;
10
- duration_ms: number | null;
11
- error: string | null;
12
- created_at?: Date;
13
- updated_at?: Date;
14
- }
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,9 +0,0 @@
1
- import { Document } from "mongoose";
2
- export interface ISandboxImage extends Document {
3
- name: string;
4
- display_name: string;
5
- image: string;
6
- description: string;
7
- is_available: boolean;
8
- is_default: boolean;
9
- }
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,16 +0,0 @@
1
- import { Document, Types } from "mongoose";
2
- export interface ISandboxSnapshotUsageSegmentCosts {
3
- startDate: Date;
4
- endDate: Date | null;
5
- }
6
- export interface ISandboxSnapshotUsageSegment extends Document {
7
- _id: Types.ObjectId;
8
- snapshot_id: Types.ObjectId;
9
- user_id: Types.ObjectId;
10
- team_id: Types.ObjectId | null;
11
- size_gb: number;
12
- costs: ISandboxSnapshotUsageSegmentCosts;
13
- billed: boolean;
14
- createdAt: Date;
15
- updatedAt: Date;
16
- }
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,16 +0,0 @@
1
- import { Document, Types } from "mongoose";
2
- import { SANDBOX_SNAPSHOT_STATUS } from "../enum";
3
- export interface ISandboxSnapshot extends Document {
4
- user_id: Types.ObjectId;
5
- team: Types.ObjectId | null;
6
- sandbox_id: Types.ObjectId;
7
- name: string;
8
- image_tag: string;
9
- source_template: string;
10
- status: SANDBOX_SNAPSHOT_STATUS;
11
- failure_reason: string | null;
12
- size_bytes: number | null;
13
- created_at: Date;
14
- updated_at: Date;
15
- isDeleted: boolean;
16
- }
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,25 +0,0 @@
1
- import { Document, Types } from "mongoose";
2
- import { ISandbox } from "./sandbox";
3
- import { IUser } from "./user";
4
- import { ITeam } from "./team";
5
- export interface ISandboxUsageSegmentCurrent {
6
- cpu: number;
7
- memory: number;
8
- storage: number;
9
- }
10
- export interface ISandboxUsageSegmentCosts {
11
- startDate: Date;
12
- endDate: Date | null;
13
- }
14
- export interface ISandboxUsageSegment extends Document {
15
- sandbox_id: ISandbox | Types.ObjectId;
16
- user_id: IUser | Types.ObjectId;
17
- team_id: ITeam | Types.ObjectId | null;
18
- current: ISandboxUsageSegmentCurrent;
19
- costs: ISandboxUsageSegmentCosts;
20
- billed: boolean;
21
- region?: string;
22
- template?: string;
23
- createdAt: Date;
24
- updatedAt: Date;
25
- }
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,41 +0,0 @@
1
- import { Document, Types } from "mongoose";
2
- import { IUser } from "./user";
3
- import { ITeam } from "./team";
4
- import { IProjectEnvironment } from "./project-environment";
5
- import { SANDBOX_STATUS, SANDBOX_DESTROY_REASON } from "../enum";
6
- import { IRegion } from "./region";
7
- export interface ISandboxSpecs {
8
- cpu: number;
9
- memory: number;
10
- disk: number;
11
- }
12
- export interface ISandbox extends Document {
13
- name: string;
14
- user_id: IUser | Types.ObjectId;
15
- team: ITeam | Types.ObjectId | null;
16
- project_environment: IProjectEnvironment | Types.ObjectId | null;
17
- template: string;
18
- status: SANDBOX_STATUS;
19
- nomad_job_id: string;
20
- nomad_alloc_id: string | null;
21
- region: IRegion;
22
- specs: ISandboxSpecs;
23
- created_at: Date;
24
- last_activity_at: Date;
25
- expires_at: Date;
26
- destroyed_at: Date | null;
27
- destroy_reason: SANDBOX_DESTROY_REASON | null;
28
- auto_destroy: boolean;
29
- destroy_timeout: string | null;
30
- one_shot: boolean;
31
- block_outbound: boolean;
32
- persistent: boolean;
33
- persistent_disk_gb: number | null;
34
- csi_volume_id: string | null;
35
- paused_at: Date | null;
36
- image_override: string | null;
37
- from_snapshot: Types.ObjectId | null;
38
- snapshot_mode: "automatic" | "manual";
39
- snapshot_frequency: string | null;
40
- isDeleted: boolean;
41
- }
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,32 +0,0 @@
1
- import mongoose, { Document } from "mongoose";
2
- import { SERVER_STATUS, SERVER_PROTOCOL } from "../enum";
3
- import { IRegion } from "./region";
4
- export interface IServer extends Document {
5
- name: string;
6
- url: string;
7
- grpc_address?: string;
8
- ipv6?: string;
9
- domain?: string;
10
- userId: mongoose.Types.ObjectId;
11
- teamId?: mongoose.Types.ObjectId;
12
- ip_address: string;
13
- private_ip_address: string;
14
- tunnel_token: string;
15
- type: string;
16
- protocol: SERVER_PROTOCOL;
17
- status: SERVER_STATUS;
18
- default: boolean;
19
- tag: string;
20
- region: IRegion;
21
- webhook_url?: string;
22
- is_custom_provision: boolean;
23
- firewall_id?: string;
24
- specifications: Record<any, any>;
25
- plugin_id?: string;
26
- provider: string;
27
- provider_location?: string;
28
- provider_identifier?: string;
29
- topology_path?: string;
30
- cert_storage_path?: string | null;
31
- meta: Record<any, any>;
32
- }
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,11 +0,0 @@
1
- import { Document } from "mongoose";
2
- export interface ISettings extends Document {
3
- vaultEnabled: boolean;
4
- maintenanceMode: boolean;
5
- buildsEnabled: boolean;
6
- minimumBuildMinutes: number;
7
- enableSecretRotation: boolean;
8
- domainPromoEnabled: boolean;
9
- postHogEnabled: boolean;
10
- metaSettings: Record<string, any>;
11
- }
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,79 +0,0 @@
1
- import { Document, Types } from "mongoose";
2
- import { StorageBucketStatus, StorageCredentialRole, StorageCredentialStatus, StorageTokenStatus, StorageUploadStatus } from "../enum";
3
- export type StorageTokenPermission = "read" | "write" | "delete" | "list" | "admin";
4
- export interface IStorageBucket extends Document {
5
- name: string;
6
- project?: Types.ObjectId;
7
- user_id?: Types.ObjectId;
8
- team?: Types.ObjectId;
9
- bucket_name: string;
10
- is_public: boolean;
11
- versioning: boolean;
12
- provider: string;
13
- region: string;
14
- storage_used: number;
15
- reserved_bytes: number;
16
- quota: number;
17
- status: StorageBucketStatus;
18
- createdAt: Date;
19
- updatedAt: Date;
20
- }
21
- export interface IStorageObject extends Document {
22
- bucket: Types.ObjectId;
23
- project?: Types.ObjectId;
24
- key: string;
25
- path: string;
26
- content_type?: string;
27
- size: number;
28
- etag?: string;
29
- public_url?: string;
30
- last_modified?: Date;
31
- createdAt: Date;
32
- updatedAt: Date;
33
- }
34
- export interface IStorageUpload extends Document {
35
- bucket: Types.ObjectId;
36
- project?: Types.ObjectId;
37
- key: string;
38
- path: string;
39
- upload_id?: string;
40
- content_type?: string;
41
- size: number;
42
- status: StorageUploadStatus;
43
- expires_at: Date;
44
- completed_at?: Date;
45
- createdAt: Date;
46
- updatedAt: Date;
47
- }
48
- export interface IStorageToken extends Document {
49
- name: string;
50
- token_hash: string;
51
- prefix: string;
52
- project?: Types.ObjectId;
53
- buckets: Types.ObjectId[];
54
- user_id?: Types.ObjectId;
55
- team?: Types.ObjectId;
56
- permissions: StorageTokenPermission[];
57
- status: StorageTokenStatus;
58
- last_used_at?: Date;
59
- expires_at?: Date;
60
- createdAt: Date;
61
- updatedAt: Date;
62
- }
63
- export interface IStorageCredential extends Document {
64
- name: string;
65
- bucket: Types.ObjectId;
66
- project?: Types.ObjectId;
67
- user_id?: Types.ObjectId;
68
- team?: Types.ObjectId;
69
- provider: string;
70
- provider_org_id: string;
71
- access_key_id: string;
72
- policy_names: string[];
73
- role: StorageCredentialRole;
74
- status: StorageCredentialStatus;
75
- last_rotated_at?: Date;
76
- revoked_at?: Date;
77
- createdAt: Date;
78
- updatedAt: Date;
79
- }
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });