@brimble/models 3.8.190 → 3.8.192
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.
- package/dist/index.d.ts +1 -1
- package/dist/plan_configuration.js +2 -0
- package/dist/project/index.js +24 -1
- package/dist/provider.js +1 -0
- package/dist/types/index.d.ts +1 -1
- package/dist/types/plan_configuration.d.ts +2 -0
- package/dist/types/project/index.d.ts +6 -0
- package/dist/types/provider.d.ts +1 -0
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -107,7 +107,7 @@ export { default as AgentWebsiteSnapshot } from "./agent-website-snapshot";
|
|
|
107
107
|
export { default as AgentWebsiteFileOverlay } from "./agent-website-file-overlay";
|
|
108
108
|
export { default as AgentDesignSkill } from "./agent-design-skill";
|
|
109
109
|
export { default as AgentDesignSkillRevision } from "./agent-design-skill-revision";
|
|
110
|
-
export { IUser, IGit, IOrigin, IProject, IDatabaseProvisionProgress, IProjectAnalytics, IPreview, IProjectConnection, IProjectNetworkSettings, IRatelimit, RatelimitConfig, RateLimitZone, RateLimitMatcher, DistributedRateLimitConfig, IFollowing, IIntegration, IEnv, IServer, IDomain, IToken, IPlatformApiKey, IMember, ITeam, IInstalledIntegration, ILog, ISubscription, ICard, IPaymentMethod, IDns, IDnsChangeLog, IEmailForward, IRole, IPermission, IMemberPermission, IWallet, IDbImage, IDbImageConnection, IJob, ILicense, IPlanConfiguration, IAutoScalingGroup, IComputeChange, IRegion, IVolume, IFramework, BrimbleFrameworkType, ISettings, ILoadBalancerPort, IDomainRenewal, IDomainTransfer, IWebhookCategory, IWebhookEvent, IWebhookSetting, IIntention, IProvider, ICollabAnnotation, ICollabComment, ICollabAttachment, ICollabIntegration, ICollabSettings, ICollabShareToken, ICollabPushSubscription, IAppMessage, IInvoice, ITag, IProjectTagAssignment, ICashierSubscription, ICashierSubscriptionItem, IProjectEnvironment, IEnvironmentVariable, IProjectConfigFile, IActivityLog, IAlertRule, IAlertRuleState, IAlertEvent, IAlertNotificationResult, IDrain, IProjectDrainSubscription, IOwnershipTransfer, ISandbox, ISandboxSpecs, ISandboxActivity, ISandboxImage, ISandboxSize, ISandboxSnapshot, IBackupHistory, IDatabaseUser, IRestoreHistory, IWorkerRun, ISandboxSnapshotUsageSegment, ISandboxSnapshotUsageSegmentCosts, ISandboxUsageSegment, ISandboxUsageSegmentCurrent, ISandboxUsageSegmentCosts, IVolumeUsageSegment, IVolumeUsageSegmentCosts, IPgBouncerUsageSegment, IPgBouncerUsageSegmentCosts, IObjectStorageUsageSegment, IObjectStorageUsageSegmentCosts, IObjectStorageUsageUnitsSummary, IIdempotencyRecord, IStorageBucket, IStorageObject, IStorageUpload, IStorageToken, IStorageCredential, IStorageMigration, StorageTokenPermission, StorageLifecycleRule, StorageCorsRule, StorageLifecycleRuleTransition, IStreak, IStreakMilestoneRef, IStreakEvent, IStreakDay, IStreakMilestone, IQuestCampaign, IQuestCriterion, IQuestRequirement, IQuestReward, IQuestParticipation, IQuestCriterionProgress, IQuestRewardIssuance, IQuestIssuedReward, ICoupon, ICouponRedemption, ITicket, ICareerRole, IBlogPost, IChangelogEntry, IChangelogCampaign, ChangelogEmailPayloadEntry, IAgentChat, IAgentChatMessage, IAgentChatFile, IAgentChatModel, IAgentWebsite, IAgentWebsiteSnapshot, IAgentWebsiteFileOverlay, IAgentDesignSkill, IAgentDesignSkillRevision, IAgentDesignSkillFile, IAgentDesignSkillInspection, IAgentDesignSkillLicense, } from "./types";
|
|
110
|
+
export { IUser, IGit, IOrigin, IProject, IDedicatedEgress, IDatabaseProvisionProgress, IProjectAnalytics, IPreview, IProjectConnection, IProjectNetworkSettings, IRatelimit, RatelimitConfig, RateLimitZone, RateLimitMatcher, DistributedRateLimitConfig, IFollowing, IIntegration, IEnv, IServer, IDomain, IToken, IPlatformApiKey, IMember, ITeam, IInstalledIntegration, ILog, ISubscription, ICard, IPaymentMethod, IDns, IDnsChangeLog, IEmailForward, IRole, IPermission, IMemberPermission, IWallet, IDbImage, IDbImageConnection, IJob, ILicense, IPlanConfiguration, IAutoScalingGroup, IComputeChange, IRegion, IVolume, IFramework, BrimbleFrameworkType, ISettings, ILoadBalancerPort, IDomainRenewal, IDomainTransfer, IWebhookCategory, IWebhookEvent, IWebhookSetting, IIntention, IProvider, ICollabAnnotation, ICollabComment, ICollabAttachment, ICollabIntegration, ICollabSettings, ICollabShareToken, ICollabPushSubscription, IAppMessage, IInvoice, ITag, IProjectTagAssignment, ICashierSubscription, ICashierSubscriptionItem, IProjectEnvironment, IEnvironmentVariable, IProjectConfigFile, IActivityLog, IAlertRule, IAlertRuleState, IAlertEvent, IAlertNotificationResult, IDrain, IProjectDrainSubscription, IOwnershipTransfer, ISandbox, ISandboxSpecs, ISandboxActivity, ISandboxImage, ISandboxSize, ISandboxSnapshot, IBackupHistory, IDatabaseUser, IRestoreHistory, IWorkerRun, ISandboxSnapshotUsageSegment, ISandboxSnapshotUsageSegmentCosts, ISandboxUsageSegment, ISandboxUsageSegmentCurrent, ISandboxUsageSegmentCosts, IVolumeUsageSegment, IVolumeUsageSegmentCosts, IPgBouncerUsageSegment, IPgBouncerUsageSegmentCosts, IObjectStorageUsageSegment, IObjectStorageUsageSegmentCosts, IObjectStorageUsageUnitsSummary, IIdempotencyRecord, IStorageBucket, IStorageObject, IStorageUpload, IStorageToken, IStorageCredential, IStorageMigration, StorageTokenPermission, StorageLifecycleRule, StorageCorsRule, StorageLifecycleRuleTransition, IStreak, IStreakMilestoneRef, IStreakEvent, IStreakDay, IStreakMilestone, IQuestCampaign, IQuestCriterion, IQuestRequirement, IQuestReward, IQuestParticipation, IQuestCriterionProgress, IQuestRewardIssuance, IQuestIssuedReward, ICoupon, ICouponRedemption, ITicket, ICareerRole, IBlogPost, IChangelogEntry, IChangelogCampaign, ChangelogEmailPayloadEntry, IAgentChat, IAgentChatMessage, IAgentChatFile, IAgentChatModel, IAgentWebsite, IAgentWebsiteSnapshot, IAgentWebsiteFileOverlay, IAgentDesignSkill, IAgentDesignSkillRevision, IAgentDesignSkillFile, IAgentDesignSkillInspection, IAgentDesignSkillLicense, } from "./types";
|
|
111
111
|
export { GIT_TYPE, INTEGRATION_TYPES, INTEGRATION_PROVIDERS, OAUTH_PERMISSIONS, ENVIRONMENT, SERVER_STATUS, ROLES, SUBSCRIPTION_PLAN_TYPE, PROJECT_STATUS, AlertMetric, AlertCondition, AlertRuleState, AlertChannelMode, AlertEventStatus, DrainType, DrainStatus, LogSource, DrainEventType, SUBSCRIPTION_STATUS, CARD_TYPES, DNS_TYPE, DNS_CHANGE_TYPE, DNS_CHANGE_SOURCE, EMAIL_FORWARD_STATUS, DNS_MANAGED_BY, PERMISSION_TYPE, REQUEST_TYPE, ServiceType, SCALING_SOURCE, DatabaseEngine, DatabasePasswordChangeMode, DatabasePasswordMode, HaMemberRole, DatabaseInsightsScope, DatabaseProvisionPhase, DatabaseProvisionOperation, DatabaseProvisionStep, EmailDeadLetterStatus, JobStatus, LicenseStatus, REGION_CONTINENT, VOLUME_BACKEND, BUILD_DISABLED_BY, PROJECT_DISABLED_BY, SPENDING_LIMIT_ACTION, SERVER_PROTOCOL, FrameworkApplicationType, DomainRenewalStatus, DomainTransferProvider, DomainTransferDirection, DomainTransferStatus, NomadDeploymentStatus, COLLAB_ANNOTATION_STATUS, COLLAB_INTEGRATION_TYPE, COLLAB_THEME, COLLAB_TOOLBAR_POSITION, INVOICE_STATUS, INVOICE_PAYMENT_STATUS, INVOICE_TYPE, SANDBOX_TEMPLATE, SANDBOX_STATUS, SANDBOX_DESTROY_REASON, SANDBOX_EGRESS_MODE, SANDBOX_SNAPSHOT_STATUS, BACKUP_STATUS, DatabaseUserPermission, DatabaseUserStatus, WorkerRunStatus, WorkerRunTrigger, RESTORE_STATUS, StorageBucketStatus, StorageUploadStatus, StorageTokenStatus, PlatformApiKeyStatus, StorageCredentialRole, StorageCredentialStatus, StorageMigrationStatus, XFrameOptions, XContentTypeOptions, XRobotsTag, QualifyingActionType, MilestoneType, QUEST_COUNTABLE_MILESTONES, ACTION_TO_MILESTONE, EligibilityType, RewardType, QuestRewardStatus, QuestCriterionType, QuestEntity, QuestRequirementType, QUEST_CLAIM_REQUIREMENTS, QUEST_TARGETLESS_REQUIREMENTS, WorkbenchMode, CouponDiscountType, CouponScope, CouponRedemptionStatus, CONFIG_FILE_VISIBILITY, AGENT_CHAT_STATUS, AGENT_CHAT_MESSAGE_ROLE, AGENT_WEBSITE_STATUS, AGENT_WEBSITE_SNAPSHOT_STATUS, AGENT_DESIGN_SKILL_STATUS, AGENT_DESIGN_SKILL_TRUST_LEVEL, AGENT_DESIGN_SKILL_VERDICT, } from "./enum";
|
|
112
112
|
import mongoose from "mongoose";
|
|
113
113
|
export declare const connectToMongo: (mongoUrl: string, config?: mongoose.ConnectOptions) => Promise<void>;
|
|
@@ -12,6 +12,7 @@ const PlanConfigurationSchema = new mongoose_1.Schema({
|
|
|
12
12
|
deploy_private_organization: { type: Boolean, default: false },
|
|
13
13
|
preview_comments: { type: Boolean, default: false },
|
|
14
14
|
analytics: { type: Boolean, default: false },
|
|
15
|
+
dedicated_egress_enabled: { type: Boolean, default: false },
|
|
15
16
|
ha_enabled: { type: Boolean, default: false },
|
|
16
17
|
build_minutes: { type: Number, required: true },
|
|
17
18
|
rate_limit_enabled: { type: Boolean, default: false },
|
|
@@ -22,6 +23,7 @@ const PlanConfigurationSchema = new mongoose_1.Schema({
|
|
|
22
23
|
password_enabled: { type: Boolean, required: false, default: true },
|
|
23
24
|
autoscaling_enabled: { type: Boolean, default: false, required: false },
|
|
24
25
|
region: { type: mongoose_1.Schema.Types.ObjectId, ref: "Region", required: false },
|
|
26
|
+
allowed_regions: { type: [String], required: false, default: undefined },
|
|
25
27
|
multi_region: { type: Boolean, default: false },
|
|
26
28
|
unlimited_projects: { type: Boolean, default: false },
|
|
27
29
|
ai_debug_enabled: { type: Boolean, default: false, required: false },
|
package/dist/project/index.js
CHANGED
|
@@ -7,7 +7,6 @@ const projectSchema = new mongoose_1.Schema({
|
|
|
7
7
|
name: {
|
|
8
8
|
type: String,
|
|
9
9
|
required: true,
|
|
10
|
-
unique: true,
|
|
11
10
|
},
|
|
12
11
|
uuid: Number,
|
|
13
12
|
user_id: {
|
|
@@ -287,6 +286,20 @@ const projectSchema = new mongoose_1.Schema({
|
|
|
287
286
|
type: String,
|
|
288
287
|
default: "UTC",
|
|
289
288
|
},
|
|
289
|
+
dedicated_egress: {
|
|
290
|
+
enabled: {
|
|
291
|
+
type: Boolean,
|
|
292
|
+
default: false,
|
|
293
|
+
},
|
|
294
|
+
pool: {
|
|
295
|
+
type: String,
|
|
296
|
+
required: false,
|
|
297
|
+
},
|
|
298
|
+
updated_at: {
|
|
299
|
+
type: Date,
|
|
300
|
+
required: false,
|
|
301
|
+
},
|
|
302
|
+
},
|
|
290
303
|
free_tier_expires_at: {
|
|
291
304
|
type: Date,
|
|
292
305
|
default: null,
|
|
@@ -541,5 +554,15 @@ projectSchema.index({ free_tier_expires_at: 1, serviceType: 1, status: 1 }, {
|
|
|
541
554
|
partialFilterExpression: { free_tier_expires_at: { $type: "date" } },
|
|
542
555
|
name: "free_tier_lifecycle",
|
|
543
556
|
});
|
|
557
|
+
projectSchema.index({ team: 1, project_environment: 1, name: 1 }, {
|
|
558
|
+
unique: true,
|
|
559
|
+
partialFilterExpression: { team: { $type: "objectId" }, isDeleted: { $ne: true } },
|
|
560
|
+
name: "team_env_project_name",
|
|
561
|
+
});
|
|
562
|
+
projectSchema.index({ user_id: 1, project_environment: 1, name: 1 }, {
|
|
563
|
+
unique: true,
|
|
564
|
+
partialFilterExpression: { team: null, isDeleted: { $ne: true } },
|
|
565
|
+
name: "personal_env_project_name",
|
|
566
|
+
});
|
|
544
567
|
exports.default = (0, mongoose_1.model)("Project", projectSchema);
|
|
545
568
|
exports.DeletedProject = (0, mongoose_1.model)("DeletedProject", projectSchema);
|
package/dist/provider.js
CHANGED
|
@@ -8,5 +8,6 @@ const providerSchema = new mongoose_1.Schema({
|
|
|
8
8
|
type: { type: String, required: false },
|
|
9
9
|
enabled: { type: Boolean, default: true },
|
|
10
10
|
suffix: { type: String, required: false },
|
|
11
|
+
meta: { type: mongoose_1.Schema.Types.Mixed, default: {} },
|
|
11
12
|
});
|
|
12
13
|
exports.default = (0, mongoose_1.model)("Provider", providerSchema, "providers");
|
package/dist/types/index.d.ts
CHANGED
|
@@ -26,7 +26,7 @@ export type { IPermission } from "./permission";
|
|
|
26
26
|
export type { IPaymentMethod } from "./payment-method";
|
|
27
27
|
export type { IPlanConfiguration } from "./plan_configuration";
|
|
28
28
|
export type { IProvider } from "./provider";
|
|
29
|
-
export type { IDatabaseProvisionProgress, IHaCluster, IHaClusterMember, IPasswordRotation, IPendingMqEvent, IPgBouncerConfig, IProject, IProjectSpecs, ITlsMigration, TlsMigrationPhase, } from "./project";
|
|
29
|
+
export type { IDatabaseProvisionProgress, IDedicatedEgress, IHaCluster, IHaClusterMember, IPasswordRotation, IPendingMqEvent, IPgBouncerConfig, IProject, IProjectSpecs, ITlsMigration, TlsMigrationPhase, } from "./project";
|
|
30
30
|
export type { IProjectAnalytics } from "./project_analytics";
|
|
31
31
|
export type { IProjectConnection } from "./project/connection";
|
|
32
32
|
export type { IProjectNetworkSettings } from "./project-network-settings";
|
|
@@ -9,6 +9,7 @@ export interface IPlanConfiguration extends Document {
|
|
|
9
9
|
drain: boolean;
|
|
10
10
|
slack_support: boolean;
|
|
11
11
|
autoscaling_enabled: boolean;
|
|
12
|
+
allowed_regions?: string[];
|
|
12
13
|
concurrent_builds: number;
|
|
13
14
|
rate_limit_enabled: boolean;
|
|
14
15
|
project_limit: number;
|
|
@@ -16,6 +17,7 @@ export interface IPlanConfiguration extends Document {
|
|
|
16
17
|
preview_comments: boolean;
|
|
17
18
|
password_enabled: boolean;
|
|
18
19
|
analytics: boolean;
|
|
20
|
+
dedicated_egress_enabled: boolean;
|
|
19
21
|
ha_enabled: boolean;
|
|
20
22
|
build_minutes: number;
|
|
21
23
|
log_retention: number;
|
|
@@ -43,6 +43,11 @@ export interface IProjectSpecs {
|
|
|
43
43
|
storage: number;
|
|
44
44
|
region: IRegion;
|
|
45
45
|
}
|
|
46
|
+
export interface IDedicatedEgress {
|
|
47
|
+
enabled: boolean;
|
|
48
|
+
pool?: string;
|
|
49
|
+
updated_at?: Date;
|
|
50
|
+
}
|
|
46
51
|
export interface IHaCluster {
|
|
47
52
|
clusterName: string;
|
|
48
53
|
regions?: Array<Types.ObjectId | IRegion>;
|
|
@@ -79,6 +84,7 @@ export interface IProject extends Document {
|
|
|
79
84
|
backup_mode: "automatic" | "manual";
|
|
80
85
|
backup_schedule: string;
|
|
81
86
|
backup_timezone: string;
|
|
87
|
+
dedicated_egress?: IDedicatedEgress;
|
|
82
88
|
http2: boolean;
|
|
83
89
|
free_tier_expires_at?: Date | null;
|
|
84
90
|
free_tier_expiry_notified_at?: Date | null;
|
package/dist/types/provider.d.ts
CHANGED