@brimble/models 3.8.77 → 3.8.79

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 (300) hide show
  1. package/dist/activity-log.d.ts +6 -27
  2. package/dist/alert-event.d.ts +9 -0
  3. package/dist/alert-event.js +78 -0
  4. package/dist/alert-rule-state.d.ts +9 -0
  5. package/dist/alert-rule-state.js +49 -0
  6. package/dist/alert-rule.d.ts +9 -0
  7. package/dist/alert-rule.js +77 -0
  8. package/dist/app-message.d.ts +6 -27
  9. package/dist/app-message.js +2 -2
  10. package/dist/auto-scaling.d.ts +6 -27
  11. package/dist/card.d.ts +6 -27
  12. package/dist/cashier_subscription.d.ts +6 -27
  13. package/dist/cashier_subscription_item.d.ts +6 -27
  14. package/dist/collab-annotation.d.ts +6 -27
  15. package/dist/collab-comment.d.ts +6 -27
  16. package/dist/collab-integration.d.ts +6 -27
  17. package/dist/collab-push-subscription.d.ts +6 -27
  18. package/dist/collab-settings.d.ts +6 -27
  19. package/dist/collab-share-token.d.ts +6 -27
  20. package/dist/compute.d.ts +6 -27
  21. package/dist/compute.js +6 -0
  22. package/dist/db-image.d.ts +6 -27
  23. package/dist/db-image.js +19 -0
  24. package/dist/domain/dns-changelog.d.ts +9 -0
  25. package/dist/domain/dns-changelog.js +82 -0
  26. package/dist/domain/dns.d.ts +6 -27
  27. package/dist/domain/index.d.ts +6 -27
  28. package/dist/domain/index.js +4 -0
  29. package/dist/domain/renewal.d.ts +6 -27
  30. package/dist/domain/transfer.d.ts +6 -27
  31. package/dist/enum/index.d.ts +184 -0
  32. package/dist/enum/index.js +273 -37
  33. package/dist/env.d.ts +6 -27
  34. package/dist/environment-variable.d.ts +6 -27
  35. package/dist/environment-variable.js +8 -0
  36. package/dist/follower.d.ts +6 -27
  37. package/dist/following.d.ts +6 -27
  38. package/dist/framework.d.ts +6 -27
  39. package/dist/idempotency.d.ts +9 -0
  40. package/dist/idempotency.js +17 -0
  41. package/dist/index.d.ts +25 -2
  42. package/dist/index.js +92 -3
  43. package/dist/integration.d.ts +6 -27
  44. package/dist/intention.d.ts +6 -27
  45. package/dist/invoice.d.ts +6 -27
  46. package/dist/job.d.ts +6 -2
  47. package/dist/job.js +17 -7
  48. package/dist/license.d.ts +6 -27
  49. package/dist/load-balancer-port.d.ts +6 -27
  50. package/dist/logs.d.ts +6 -27
  51. package/dist/logs.js +0 -2
  52. package/dist/member-permission.d.ts +6 -27
  53. package/dist/member.d.ts +6 -27
  54. package/dist/object-storage-usage-segment.d.ts +9 -0
  55. package/dist/object-storage-usage-segment.js +46 -0
  56. package/dist/ownership-transfer.d.ts +6 -27
  57. package/dist/permission.d.ts +6 -27
  58. package/dist/plan_configuration.d.ts +6 -2
  59. package/dist/plan_configuration.js +22 -0
  60. package/dist/project/connection.d.ts +6 -27
  61. package/dist/project/index.d.ts +12 -29
  62. package/dist/project/index.js +29 -0
  63. package/dist/project/preview.d.ts +6 -27
  64. package/dist/project-environment.d.ts +6 -27
  65. package/dist/project-network-settings.d.ts +9 -0
  66. package/dist/project-network-settings.js +34 -0
  67. package/dist/project-tag-assignment.d.ts +6 -27
  68. package/dist/project_analytics.d.ts +6 -27
  69. package/dist/provider.d.ts +6 -27
  70. package/dist/provider.js +1 -0
  71. package/dist/quest-campaign.d.ts +9 -0
  72. package/dist/quest-campaign.js +39 -0
  73. package/dist/quest-participation.d.ts +9 -0
  74. package/dist/quest-participation.js +21 -0
  75. package/dist/quest-reward-issuance.d.ts +9 -0
  76. package/dist/quest-reward-issuance.js +19 -0
  77. package/dist/ratelimit.d.ts +9 -0
  78. package/dist/ratelimit.js +36 -0
  79. package/dist/region.d.ts +7 -28
  80. package/dist/role.d.ts +6 -27
  81. package/dist/sandbox-activity.d.ts +9 -0
  82. package/dist/sandbox-activity.js +49 -0
  83. package/dist/sandbox-image.d.ts +9 -0
  84. package/dist/sandbox-image.js +31 -0
  85. package/dist/sandbox-snapshot-usage-segment.d.ts +9 -0
  86. package/dist/sandbox-snapshot-usage-segment.js +49 -0
  87. package/dist/sandbox-snapshot.d.ts +9 -0
  88. package/dist/sandbox-snapshot.js +51 -0
  89. package/dist/sandbox-usage-segment.d.ts +9 -0
  90. package/dist/sandbox-usage-segment.js +57 -0
  91. package/dist/sandbox.d.ts +9 -0
  92. package/dist/sandbox.js +142 -0
  93. package/dist/server.d.ts +6 -27
  94. package/dist/settings.d.ts +6 -27
  95. package/dist/storage.d.ts +43 -0
  96. package/dist/storage.js +118 -0
  97. package/dist/streak-day.d.ts +9 -0
  98. package/dist/streak-day.js +11 -0
  99. package/dist/streak-event.d.ts +9 -0
  100. package/dist/streak-event.js +18 -0
  101. package/dist/streak-milestone.d.ts +9 -0
  102. package/dist/streak-milestone.js +11 -0
  103. package/dist/streak.d.ts +9 -0
  104. package/dist/streak.js +17 -0
  105. package/dist/subscription.d.ts +6 -27
  106. package/dist/tag.d.ts +6 -27
  107. package/dist/team.d.ts +6 -27
  108. package/dist/team.js +26 -0
  109. package/dist/token.d.ts +6 -27
  110. package/dist/types/alert-event.d.ts +23 -0
  111. package/dist/types/alert-event.js +2 -0
  112. package/dist/types/alert-rule-state.d.ts +13 -0
  113. package/dist/types/alert-rule-state.js +2 -0
  114. package/dist/types/alert-rule.d.ts +21 -0
  115. package/dist/types/alert-rule.js +2 -0
  116. package/dist/types/app-message.d.ts +2 -2
  117. package/dist/types/auto-scaling-group.d.ts +1 -1
  118. package/dist/types/compute.d.ts +3 -1
  119. package/dist/types/db-image.d.ts +5 -1
  120. package/dist/types/domain/dns-changelog.d.ts +20 -0
  121. package/dist/types/domain/dns-changelog.js +2 -0
  122. package/dist/types/domain/index.d.ts +1 -0
  123. package/dist/types/environment-variable.d.ts +2 -0
  124. package/dist/types/idempotency.d.ts +10 -0
  125. package/dist/types/idempotency.js +2 -0
  126. package/dist/types/index.d.ts +23 -0
  127. package/dist/types/object-storage-usage-segment.d.ts +23 -0
  128. package/dist/types/object-storage-usage-segment.js +2 -0
  129. package/dist/types/plan_configuration.d.ts +22 -0
  130. package/dist/types/project/index.d.ts +7 -0
  131. package/dist/types/project-network-settings.d.ts +28 -0
  132. package/dist/types/project-network-settings.js +2 -0
  133. package/dist/types/provider.d.ts +1 -0
  134. package/dist/types/quest-campaign.d.ts +38 -0
  135. package/dist/types/quest-campaign.js +2 -0
  136. package/dist/types/quest-participation.d.ts +19 -0
  137. package/dist/types/quest-participation.js +2 -0
  138. package/dist/types/quest-reward-issuance.d.ts +17 -0
  139. package/dist/types/quest-reward-issuance.js +2 -0
  140. package/dist/types/ratelimit.d.ts +41 -0
  141. package/dist/types/ratelimit.js +2 -0
  142. package/dist/types/region.d.ts +2 -2
  143. package/dist/types/sandbox-activity.d.ts +14 -0
  144. package/dist/types/sandbox-activity.js +2 -0
  145. package/dist/types/sandbox-image.d.ts +9 -0
  146. package/dist/types/sandbox-image.js +2 -0
  147. package/dist/types/sandbox-snapshot-usage-segment.d.ts +16 -0
  148. package/dist/types/sandbox-snapshot-usage-segment.js +2 -0
  149. package/dist/types/sandbox-snapshot.d.ts +16 -0
  150. package/dist/types/sandbox-snapshot.js +2 -0
  151. package/dist/types/sandbox-usage-segment.d.ts +25 -0
  152. package/dist/types/sandbox-usage-segment.js +2 -0
  153. package/dist/types/sandbox.d.ts +46 -0
  154. package/dist/types/sandbox.js +2 -0
  155. package/dist/types/storage.d.ts +131 -0
  156. package/dist/types/storage.js +2 -0
  157. package/dist/types/streak-day.d.ts +9 -0
  158. package/dist/types/streak-day.js +2 -0
  159. package/dist/types/streak-event.d.ts +13 -0
  160. package/dist/types/streak-event.js +2 -0
  161. package/dist/types/streak-milestone.d.ts +10 -0
  162. package/dist/types/streak-milestone.js +2 -0
  163. package/dist/types/streak.d.ts +17 -0
  164. package/dist/types/streak.js +2 -0
  165. package/dist/types/team.d.ts +8 -2
  166. package/dist/types/user.d.ts +4 -0
  167. package/dist/types/volume-usage-segment.d.ts +16 -0
  168. package/dist/types/volume-usage-segment.js +2 -0
  169. package/dist/types/volume.d.ts +9 -3
  170. package/dist/types/wallet.d.ts +1 -0
  171. package/dist/user.d.ts +6 -27
  172. package/dist/user.js +14 -0
  173. package/dist/volume-usage-segment.d.ts +9 -0
  174. package/dist/volume-usage-segment.js +46 -0
  175. package/dist/volume.d.ts +6 -27
  176. package/dist/volume.js +21 -4
  177. package/dist/wallet.d.ts +6 -27
  178. package/dist/wallet.js +4 -0
  179. package/dist/webhook-category.d.ts +6 -27
  180. package/dist/webhook-event.d.ts +6 -27
  181. package/dist/webhook-setting.d.ts +6 -27
  182. package/package.json +9 -5
  183. package/.claude/settings.local.json +0 -7
  184. package/.eslintrc.js +0 -26
  185. package/.prettierrc +0 -4
  186. package/activity-log.ts +0 -66
  187. package/app-message.ts +0 -18
  188. package/auto-scaling.ts +0 -72
  189. package/card.ts +0 -45
  190. package/cashier_subscription.ts +0 -35
  191. package/cashier_subscription_item.ts +0 -25
  192. package/collab-annotation.ts +0 -36
  193. package/collab-comment.ts +0 -27
  194. package/collab-integration.ts +0 -21
  195. package/collab-push-subscription.ts +0 -19
  196. package/collab-settings.ts +0 -29
  197. package/collab-share-token.ts +0 -15
  198. package/compute.ts +0 -88
  199. package/db-image.ts +0 -66
  200. package/domain/dns.ts +0 -34
  201. package/domain/index.ts +0 -109
  202. package/domain/renewal.ts +0 -25
  203. package/domain/transfer.ts +0 -112
  204. package/enum/index.ts +0 -257
  205. package/env.ts +0 -38
  206. package/environment-variable.ts +0 -21
  207. package/follower.ts +0 -19
  208. package/following.ts +0 -19
  209. package/framework.ts +0 -88
  210. package/index.ts +0 -199
  211. package/integration.ts +0 -39
  212. package/intention.ts +0 -40
  213. package/invoice.ts +0 -36
  214. package/job.ts +0 -30
  215. package/load-balancer-port.ts +0 -31
  216. package/logs.ts +0 -47
  217. package/member-permission.ts +0 -13
  218. package/member.ts +0 -44
  219. package/ownership-transfer.ts +0 -42
  220. package/permission.ts +0 -13
  221. package/plan_configuration.ts +0 -48
  222. package/project/connection.ts +0 -21
  223. package/project/index.ts +0 -238
  224. package/project/preview.ts +0 -41
  225. package/project-environment.ts +0 -18
  226. package/project-tag-assignment.ts +0 -40
  227. package/project_analytics.ts +0 -26
  228. package/provider.ts +0 -11
  229. package/region.ts +0 -18
  230. package/role.ts +0 -12
  231. package/server.ts +0 -105
  232. package/settings.ts +0 -53
  233. package/subscription.ts +0 -86
  234. package/tag.ts +0 -34
  235. package/team.ts +0 -60
  236. package/token.ts +0 -40
  237. package/tsconfig.json +0 -14
  238. package/types/activity-log.ts +0 -19
  239. package/types/app-message.ts +0 -16
  240. package/types/auto-scaling-group.ts +0 -21
  241. package/types/card.ts +0 -20
  242. package/types/cashier_subscription.ts +0 -29
  243. package/types/collab-annotation.ts +0 -28
  244. package/types/collab-comment.ts +0 -22
  245. package/types/collab-integration.ts +0 -14
  246. package/types/collab-push-subscription.ts +0 -10
  247. package/types/collab-settings.ts +0 -17
  248. package/types/collab-share-token.ts +0 -13
  249. package/types/compute.ts +0 -51
  250. package/types/db-image.ts +0 -18
  251. package/types/domain/dns.ts +0 -13
  252. package/types/domain/index.ts +0 -35
  253. package/types/domain/renewal.ts +0 -11
  254. package/types/domain/transfer.ts +0 -32
  255. package/types/env.ts +0 -14
  256. package/types/environment-variable.ts +0 -13
  257. package/types/following.ts +0 -6
  258. package/types/framework.ts +0 -41
  259. package/types/git.ts +0 -15
  260. package/types/index.ts +0 -56
  261. package/types/installed_integration.ts +0 -9
  262. package/types/integration.ts +0 -24
  263. package/types/intention.ts +0 -14
  264. package/types/invoice.ts +0 -16
  265. package/types/job.ts +0 -20
  266. package/types/license.ts +0 -19
  267. package/types/load-balancer-port.ts +0 -13
  268. package/types/logs.ts +0 -36
  269. package/types/member-permission.ts +0 -11
  270. package/types/member.ts +0 -19
  271. package/types/ownership-transfer.ts +0 -13
  272. package/types/permission.ts +0 -19
  273. package/types/plan_configuration.ts +0 -35
  274. package/types/project/connection.ts +0 -7
  275. package/types/project/index.ts +0 -96
  276. package/types/project/preview.ts +0 -22
  277. package/types/project-environment.ts +0 -14
  278. package/types/project-tag-assignment.ts +0 -14
  279. package/types/project_analytics.ts +0 -12
  280. package/types/provider.ts +0 -8
  281. package/types/region.ts +0 -16
  282. package/types/role.ts +0 -13
  283. package/types/server.ts +0 -59
  284. package/types/settings.ts +0 -19
  285. package/types/subscription.ts +0 -34
  286. package/types/tag.ts +0 -12
  287. package/types/team.ts +0 -19
  288. package/types/token.ts +0 -12
  289. package/types/user.ts +0 -41
  290. package/types/volume.ts +0 -15
  291. package/types/wallet.ts +0 -8
  292. package/types/webhook-category.ts +0 -5
  293. package/types/webhook-event.ts +0 -8
  294. package/types/webhook-setting.ts +0 -17
  295. package/user.ts +0 -61
  296. package/volume.ts +0 -36
  297. package/wallet.ts +0 -23
  298. package/webhook-category.ts +0 -11
  299. package/webhook-event.ts +0 -20
  300. package/webhook-setting.ts +0 -48
@@ -1,41 +0,0 @@
1
- import { Document } from "mongoose";
2
- import { FrameworkApplicationType } from "../enum";
3
-
4
- export interface IFramework extends Document {
5
- name: string;
6
- slug: string;
7
- demo?: string;
8
- logo: string;
9
- tagline?: string;
10
- supported: boolean;
11
- description?: string;
12
- website: string;
13
- port: number;
14
- envPrefix?: string;
15
- detector: string;
16
- file_detectors: string[];
17
- type: FrameworkApplicationType;
18
- settings: {
19
- installCommand?: string;
20
- startCommand?: string;
21
- buildCommand: string;
22
- outputDirectory: string;
23
- manager?: string;
24
- };
25
- createdAt?: Date;
26
- updatedAt?: Date;
27
- }
28
-
29
- export type BrimbleFrameworkType = {
30
- name: string;
31
- slug: string;
32
- logo: string;
33
- installCommand: string;
34
- buildCommand: string;
35
- startCommand: string;
36
- outputDirectory: string;
37
- manager: string | null;
38
- envPrefix: string;
39
- supported: boolean;
40
- type: string;
41
- };
package/types/git.ts DELETED
@@ -1,15 +0,0 @@
1
- import { Document } from "mongoose";
2
-
3
- export interface IGit extends Document {
4
- git_id?: number;
5
- installation_ids?: number[];
6
- access_token: string;
7
- token_type: string;
8
- scope?: string;
9
- refresh_token?: string;
10
- created_at?: number;
11
- state?: string;
12
- expires_in?: number;
13
- expires_at?: number;
14
- scopes?: string;
15
- }
package/types/index.ts DELETED
@@ -1,56 +0,0 @@
1
- export type { IAutoScalingGroup } from "./auto-scaling-group";
2
- export type { ICard } from "./card";
3
- export type { IComputeChange } from "./compute";
4
- export type { IDbImage } from "./db-image";
5
- export type { IDomain } from "./domain";
6
- export type { IDns } from "./domain/dns";
7
- export type { IDomainRenewal } from "./domain/renewal";
8
- export type { IDomainTransfer } from "./domain/transfer";
9
- export type { IEnv } from "./env";
10
- export type { IFollowing } from "./following";
11
- export type { BrimbleFrameworkType, IFramework } from "./framework";
12
- export type { IGit } from "./git";
13
- export type { IInstalledIntegration } from "./installed_integration";
14
- export type { IIntegration } from "./integration";
15
- export type { IIntention } from "./intention";
16
- export type { IJob } from "./job";
17
- export type { ILicense } from "./license";
18
- export type { ILoadBalancerPort } from "./load-balancer-port";
19
- export type { ILog } from "./logs";
20
- export type { IMember } from "./member";
21
- export type { IMemberPermission } from "./member-permission";
22
- export type { IPermission } from "./permission";
23
- export type { IPlanConfiguration } from "./plan_configuration";
24
- export type { IProvider } from "./provider";
25
- export type { IProject } from "./project";
26
- export type { IProjectAnalytics } from "./project_analytics";
27
- export type { IProjectConnection } from "./project/connection";
28
- export type { IPreview } from "./project/preview";
29
- export type { IRegion } from "./region";
30
- export type { IRole } from "./role";
31
- export type { IServer } from "./server";
32
- export type { ISettings } from "./settings";
33
- export type { ISubscription } from "./subscription";
34
- export type { ITeam } from "./team";
35
- export type { IToken } from "./token";
36
- export type { IUser } from "./user";
37
- export type { IVolume } from "./volume";
38
- export type { IWallet } from "./wallet";
39
- export type { IWebhookCategory } from "./webhook-category";
40
- export type { IWebhookEvent } from "./webhook-event";
41
- export type { IWebhookSetting } from "./webhook-setting";
42
- export type { ICollabAnnotation } from "./collab-annotation";
43
- export type { ICollabComment, ICollabAttachment } from "./collab-comment";
44
- export type { ICollabIntegration } from "./collab-integration";
45
- export type { ICollabSettings } from "./collab-settings";
46
- export type { ICollabShareToken } from "./collab-share-token";
47
- export type { ICollabPushSubscription } from "./collab-push-subscription";
48
- export type { IAppMessage } from "./app-message";
49
- export type { IInvoice } from "./invoice";
50
- export type { IProjectTagAssignment } from "./project-tag-assignment";
51
- export type { ITag } from "./tag";
52
- export type { ICashierSubscription, ICashierSubscriptionItem } from "./cashier_subscription";
53
- export type { IProjectEnvironment } from "./project-environment";
54
- export type { IEnvironmentVariable } from "./environment-variable";
55
- export type { IActivityLog } from "./activity-log";
56
- export type { IOwnershipTransfer } from "./ownership-transfer";
@@ -1,9 +0,0 @@
1
- import { Document } from "mongoose";
2
-
3
- export interface IInstalledIntegration extends Document {
4
- user_id: string;
5
-
6
- integration_id: string;
7
-
8
- enabled: boolean;
9
- }
@@ -1,24 +0,0 @@
1
- import { Document } from "mongoose";
2
- import { INTEGRATION_PROVIDERS, INTEGRATION_TYPES } from "../enum";
3
-
4
- export interface IIntegration extends Document {
5
- user_id: string;
6
-
7
- team_id?: string;
8
-
9
- app_id?: string;
10
-
11
- name: INTEGRATION_PROVIDERS;
12
-
13
- scope_description?: string[];
14
-
15
- hook?: string;
16
-
17
- reference?: string;
18
-
19
- token?: string;
20
-
21
- type: INTEGRATION_TYPES;
22
-
23
- extra?: any;
24
- }
@@ -1,14 +0,0 @@
1
- import { Document } from "mongoose";
2
- import { IProject } from "./";
3
-
4
- export interface IIntention extends Document {
5
- project: IProject;
6
- sourceName: string;
7
- destinationName: string;
8
- sourceNamespace: string;
9
- destinationNamespace: string;
10
- action: "allow" | "deny";
11
- description?: string;
12
- createdAt: Date;
13
- updatedAt: Date;
14
- }
package/types/invoice.ts DELETED
@@ -1,16 +0,0 @@
1
- import { Document } from "mongoose";
2
- import { INVOICE_STATUS, INVOICE_PAYMENT_STATUS, INVOICE_TYPE } from "../enum";
3
-
4
- export interface IInvoice extends Document {
5
- ref: string;
6
- user_id: string;
7
- subscription_id: string;
8
- total_amount: number;
9
- due: boolean;
10
- type: INVOICE_TYPE;
11
- status: INVOICE_STATUS;
12
- payment_status: INVOICE_PAYMENT_STATUS;
13
- billing_period: string;
14
- created_at: Date;
15
- updated_at: Date;
16
- }
package/types/job.ts DELETED
@@ -1,20 +0,0 @@
1
- import { Document } from "mongoose";
2
- import { JobStatus } from "../enum";
3
-
4
- export interface IJob extends Document {
5
- title: string;
6
- jobId: string;
7
- url: string;
8
- method: string;
9
- schedule: string;
10
- headers?: Map<string, string>;
11
- maxAttempts?: number;
12
- attempts?: number;
13
- isRecurring: boolean;
14
- lastRun?: Date;
15
- nextRun?: Date;
16
- body?: any;
17
- status?: JobStatus;
18
- createdAt?: Date;
19
- updatedAt?: Date;
20
- }
package/types/license.ts DELETED
@@ -1,19 +0,0 @@
1
- import mongoose, { Document } from "mongoose";
2
- import { LicenseStatus } from "../enum";
3
-
4
- export interface ILicense extends Document {
5
- licenseKey: string;
6
- infisicalIdentity: string;
7
- userId: mongoose.Types.ObjectId;
8
- teamId: mongoose.Types.ObjectId;
9
- status: LicenseStatus;
10
- tag: string;
11
- subscriptionId: mongoose.Types.ObjectId;
12
- devices: Array<{
13
- deviceId: string;
14
- hostname: string;
15
- lastSeen: Date;
16
- isActive: boolean;
17
- }>;
18
- maxDevices: number;
19
- }
@@ -1,13 +0,0 @@
1
- import { Document } from "mongoose";
2
- import { IProject } from "./project";
3
- import { IRegion } from "./region";
4
- import { IServer } from "./server";
5
-
6
- export interface ILoadBalancerPort extends Document {
7
- port: number;
8
- server_id: IServer;
9
- project_id: IProject;
10
- region_id: IRegion;
11
- createdAt: Date;
12
- updatedAt: Date;
13
- }
package/types/logs.ts DELETED
@@ -1,36 +0,0 @@
1
- import { Document } from "mongoose";
2
- import { ENVIRONMENT, PROJECT_STATUS } from "../enum";
3
- import { IProject } from "./project";
4
- import { IUser } from "./user";
5
- import { IPreview } from "./project/preview";
6
- import { ITeam } from "./team";
7
-
8
- export interface ILog extends Document {
9
- name: string;
10
- key: string;
11
- commit: {
12
- sha: string;
13
- branch: string;
14
- message: string;
15
- committer: {
16
- name: string;
17
- email: string;
18
- username: string;
19
- };
20
- };
21
- status: PROJECT_STATUS;
22
- project: IProject;
23
- user?: IUser;
24
- team?: ITeam;
25
- jobs: {
26
- id: number;
27
- name: string;
28
- }[];
29
- environment: ENVIRONMENT;
30
- preview: IPreview;
31
- startTime: Date | string;
32
- endTime: Date | string;
33
- createdAt: Date | string;
34
- updatedAt: Date | string;
35
- deleted: boolean;
36
- }
@@ -1,11 +0,0 @@
1
- import { Document } from "mongoose";
2
- import { IPermission } from "./permission";
3
- import { IMember } from "./member";
4
-
5
- export interface IMemberPermission extends Document {
6
- permission: IPermission;
7
-
8
- member: IMember;
9
-
10
- enabled: boolean;
11
- }
package/types/member.ts DELETED
@@ -1,19 +0,0 @@
1
- import { Document } from "mongoose";
2
- import { ROLES } from "../enum";
3
- import { ITeam, IUser } from "./";
4
- import { IMemberPermission } from "./member-permission";
5
- import { IProjectEnvironment } from "./project-environment";
6
-
7
- export interface IMember extends Document {
8
- user: IUser;
9
- team: ITeam;
10
- role: ROLES;
11
- accepted: boolean;
12
- invitedBy: IUser;
13
- email: string;
14
- featureOnboarded: boolean;
15
- permissions: IMemberPermission[];
16
- project_environments: IProjectEnvironment[];
17
- createdAt: Date;
18
- updatedAt: Date;
19
- }
@@ -1,13 +0,0 @@
1
- import { Document } from "mongoose";
2
- import { ITeam } from "./team";
3
- import { IUser } from "./user";
4
-
5
- export interface IOwnershipTransfer extends Document {
6
- team: ITeam;
7
- from_user: IUser;
8
- to_user: IUser;
9
- status: "pending" | "accepted" | "denied" | "expired";
10
- expires_at: Date;
11
- created_at: Date;
12
- updated_at: Date;
13
- }
@@ -1,19 +0,0 @@
1
- import { Document } from "mongoose";
2
- import { IRole } from "./role";
3
- import { PERMISSION_TYPE, REQUEST_TYPE } from "../enum";
4
-
5
- export interface IPermission extends Document {
6
- title: string;
7
-
8
- role: IRole[];
9
-
10
- type: PERMISSION_TYPE;
11
-
12
- request: {
13
- route: string;
14
-
15
- type: REQUEST_TYPE;
16
- };
17
-
18
- enabled: boolean;
19
- }
@@ -1,35 +0,0 @@
1
- import { Document } from "mongoose";
2
- import { SUBSCRIPTION_PLAN_TYPE } from "../enum";
3
- import { IRegion } from "./region";
4
-
5
- export interface IPlanConfiguration extends Document {
6
- tag: string;
7
- price: number;
8
- region: IRegion;
9
- slack_support: boolean;
10
- autoscaling_enabled: boolean;
11
- concurrent_builds: number;
12
- project_limit: number;
13
- deploy_private_organization: boolean;
14
- preview_comments: boolean;
15
- analytics: boolean;
16
- build_minutes: number;
17
- log_retention: number;
18
- multi_region: boolean;
19
- bandwidth: number;
20
- pull_request_preview: boolean;
21
- plan_type: SUBSCRIPTION_PLAN_TYPE;
22
- memory: number;
23
- build_timeout: number;
24
- storage: number;
25
- cpu: number;
26
- tokens: number;
27
- hierarchy: number;
28
- view_metrics: boolean;
29
- token_request: number;
30
- custom_domain: boolean;
31
- unlimited_projects: boolean;
32
- webhook_enabled: boolean;
33
- can_deploy_all_applications: boolean;
34
- stripe_prices?: Record<string, string>;
35
- }
@@ -1,7 +0,0 @@
1
- import { Document } from "mongoose";
2
- import { IProject } from ".";
3
-
4
- export interface IProjectConnection extends Document {
5
- service: IProject;
6
- project: IProject;
7
- }
@@ -1,96 +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
-
15
- export interface IProject extends Document {
16
- name: string;
17
- healthCheckPath?: string;
18
- preStartCommand?: string;
19
- backupEnabled: boolean;
20
- buildCacheEnabled?: boolean;
21
- domains: Array<IDomain>;
22
- environments: Array<IEnv>;
23
- uuid: number;
24
- pid: number;
25
- port: number;
26
- ip: string;
27
- dir: string;
28
- tlsEnabled: boolean;
29
- dbImage: IDbImage;
30
- installCommand: string;
31
- buildCommand: string;
32
- startCommand: string;
33
- outputDirectory: string;
34
- user_id: IUser;
35
- monitor_id: string;
36
- nomadJobId: string;
37
- watchPaths: string[];
38
- repo: {
39
- name: string;
40
- full_name: string;
41
- id: number;
42
- branch: string;
43
- installationId: number;
44
- git: GIT_TYPE;
45
- } | null;
46
- rootDir?: string;
47
- team: ITeam;
48
- server: IServer;
49
- isPrivate: boolean;
50
- status: PROJECT_STATUS;
51
- framework: string;
52
- description: string;
53
- logs: Array<ILog>;
54
- log: ILog;
55
- maintenance: boolean;
56
- passwordEnabled: boolean;
57
- disabled: boolean;
58
- authEnabled: boolean;
59
- password: string | null;
60
- deployedInCluster: boolean;
61
- screenshot: {
62
- image: string;
63
- public_id: string;
64
- };
65
- createdAt: Date;
66
- updatedAt: Date;
67
- container_stats_schedule_id: string | null;
68
- lastProcessed: number;
69
- tracking_token: string;
70
- from: string;
71
- previews: IPreview[];
72
- project_environment?: IProjectEnvironment;
73
- inherit_environment_vars: boolean;
74
- replicas: number;
75
- vaultPath: string | null;
76
- vaultToken: string | null;
77
- specs: {
78
- memory: number;
79
- cpu: number;
80
- storage: number;
81
- region: IRegion;
82
- };
83
- last_requested: Date;
84
- isPaused: boolean;
85
- billable: boolean;
86
- serviceType?: ServiceType;
87
- last_backup_url?: string;
88
- last_backup_at?: Date;
89
- replica_ready: boolean;
90
- autoscaling_group?: IAutoScalingGroup;
91
- isPaid: boolean;
92
- hasUpdates?: boolean;
93
- whiteListedIps?: string[];
94
- diskSize?: number;
95
- volumeMount: string;
96
- }
@@ -1,22 +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
-
7
- export interface IPreview extends Document {
8
- name: string;
9
- healthCheckPath?: string;
10
- pid: number;
11
- port: number;
12
- ip: string;
13
- dir: string;
14
- branch: string;
15
- server: IServer;
16
- project: IProject;
17
- issue_comment_id: number;
18
- status: PROJECT_STATUS;
19
- log: ILog;
20
- last_requested: Date;
21
- isPaused: boolean;
22
- }
@@ -1,14 +0,0 @@
1
- import { Document } from "mongoose";
2
- import { ITeam } from "./team";
3
- import { IUser } from "./user";
4
-
5
- export interface IProjectEnvironment extends Document {
6
- name: string;
7
- slug: string;
8
- owner: IUser;
9
- team?: ITeam;
10
- inherit_from?: IProjectEnvironment;
11
- isDefault: boolean;
12
- createdAt: Date;
13
- updatedAt: Date;
14
- }
@@ -1,14 +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
-
7
- export interface IProjectTagAssignment extends Document {
8
- tagId: ITag;
9
- projectId: IProject;
10
- teamId: ITeam;
11
- assignedBy: IUser;
12
- createdAt: Date;
13
- updatedAt: Date;
14
- }
@@ -1,12 +0,0 @@
1
- import { Document, Types } from "mongoose";
2
-
3
- export interface IProjectAnalytics extends Document {
4
- project: Types.ObjectId;
5
- provider: "umami";
6
- websiteId: string;
7
- shareId?: string | null;
8
- domain: string;
9
- enabled: boolean;
10
- createdAt: Date;
11
- updatedAt: Date;
12
- }
package/types/provider.ts DELETED
@@ -1,8 +0,0 @@
1
- import { Document } from "mongoose";
2
-
3
- export interface IProvider extends Document {
4
- name: string;
5
- slug: string;
6
- logo: string;
7
- enabled: boolean;
8
- }
package/types/region.ts DELETED
@@ -1,16 +0,0 @@
1
- import { Schema } from "mongoose";
2
- import { REGION_CONTINENT } from "../enum";
3
-
4
- export interface IRegion extends Document {
5
- _id: Schema.Types.ObjectId;
6
- name: string;
7
- country: string;
8
- continent?: REGION_CONTINENT;
9
- enabled?: boolean;
10
- dbVolumePath: string;
11
- is_paid: boolean;
12
- provider: string;
13
- provider_identifier: string;
14
- storage_pricing_factor: number;
15
- floating_ip?: string;
16
- }
package/types/role.ts DELETED
@@ -1,13 +0,0 @@
1
- import { Document } from "mongoose";
2
- import { ROLES } from "../enum";
3
- import { IPermission } from "./permission";
4
-
5
- export interface IRole extends Document {
6
- type: ROLES;
7
-
8
- description?: string;
9
-
10
- is_custom?: boolean;
11
-
12
- permissions: IPermission[];
13
- }
package/types/server.ts DELETED
@@ -1,59 +0,0 @@
1
- import mongoose, { Document } from "mongoose";
2
- import { SERVER_STATUS, SERVER_PROTOCOL } from "../enum";
3
- import { IRegion } from "./region";
4
-
5
- export interface IServer extends Document {
6
- name: string;
7
-
8
- url: string;
9
-
10
- grpc_address?: string;
11
-
12
- ipv6?: string;
13
-
14
- domain?: string;
15
-
16
- userId: mongoose.Types.ObjectId;
17
-
18
- teamId?: mongoose.Types.ObjectId;
19
-
20
- ip_address: string;
21
-
22
- private_ip_address: string;
23
-
24
- tunnel_token: string;
25
-
26
- type: string;
27
-
28
- protocol: SERVER_PROTOCOL;
29
-
30
- status: SERVER_STATUS;
31
-
32
- default: boolean;
33
-
34
- tag: string;
35
-
36
- region: IRegion;
37
-
38
- webhook_url?: string;
39
-
40
- is_custom_provision: boolean;
41
-
42
- firewall_id?: string;
43
-
44
- specifications: Record<any, any>;
45
-
46
- plugin_id?: string;
47
-
48
- provider: string;
49
-
50
- provider_location?: string;
51
-
52
- provider_identifier?: string;
53
-
54
- topology_path?: string;
55
-
56
- cert_storage_path?: string | null;
57
-
58
- meta: Record<any, any>;
59
- }
package/types/settings.ts DELETED
@@ -1,19 +0,0 @@
1
- import { Document } from "mongoose";
2
-
3
- export interface ISettings extends Document {
4
- vaultEnabled: boolean;
5
-
6
- maintenanceMode: boolean;
7
-
8
- buildsEnabled: boolean;
9
-
10
- minimumBuildMinutes: number;
11
-
12
- enableSecretRotation: boolean;
13
-
14
- domainPromoEnabled: boolean;
15
-
16
- postHogEnabled: boolean;
17
-
18
- metaSettings: Record<string, any>;
19
- }