@brimble/models 3.8.211 → 3.8.213
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/enum/index.d.ts +5 -0
- package/dist/enum/index.js +9 -3
- package/dist/index.d.ts +3 -3
- package/dist/index.js +6 -4
- package/dist/storage.d.ts +8 -1
- package/dist/storage.js +44 -1
- package/dist/team.js +18 -0
- package/dist/types/index.d.ts +1 -1
- package/dist/types/storage.d.ts +31 -0
- package/dist/types/team.d.ts +5 -1
- package/package.json +1 -1
package/dist/enum/index.d.ts
CHANGED
|
@@ -28,6 +28,11 @@ export declare enum SPENDING_LIMIT_ACTION {
|
|
|
28
28
|
Notify = "notify",
|
|
29
29
|
Pause = "pause"
|
|
30
30
|
}
|
|
31
|
+
export declare enum TEAM_ACTIVATION_STATUS {
|
|
32
|
+
Active = "active",
|
|
33
|
+
Pending = "pending",
|
|
34
|
+
Deleting = "deleting"
|
|
35
|
+
}
|
|
31
36
|
export declare enum ENVIRONMENT {
|
|
32
37
|
PREVIEW = "PREVIEW",
|
|
33
38
|
PRODUCTION = "PRODUCTION"
|
package/dist/enum/index.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
4
|
-
exports.
|
|
5
|
-
exports.BuildDispatch = exports.BuildProviderType = exports.BuildMethod = exports.BuildUseCase = exports.AGENT_DESIGN_SKILL_VERDICT = exports.AGENT_DESIGN_SKILL_TRUST_LEVEL = exports.AGENT_DESIGN_SKILL_STATUS = exports.AGENT_WEBSITE_SNAPSHOT_STATUS = exports.AGENT_WEBSITE_STATUS = void 0;
|
|
3
|
+
exports.DomainRenewalStatus = exports.FrameworkApplicationType = exports.SCALING_SOURCE = exports.SCALING_METRIC = exports.SCALING_STRATEGY = exports.LicenseStatus = exports.JobStatus = exports.EmailDeadLetterStatus = exports.DatabaseInsightsScope = exports.HaMemberRole = exports.DatabasePasswordMode = exports.DatabasePasswordChangeMode = exports.DatabaseEngine = exports.ServiceType = exports.VOLUME_BACKEND = exports.REGION_CONTINENT = exports.ROLES = exports.DNS_MANAGED_BY = exports.EMAIL_FORWARD_STATUS = exports.DNS_CHANGE_SOURCE = exports.DNS_CHANGE_TYPE = exports.DNS_TYPE = exports.SERVER_STATUS = exports.OAUTH_PERMISSIONS = exports.SUBSCRIPTION_PLAN_TYPE = exports.SUBSCRIPTION_STATUS = exports.DrainEventType = exports.LogSource = exports.DrainStatus = exports.DrainType = exports.AlertEventStatus = exports.AlertChannelMode = exports.AlertRuleState = exports.AlertCondition = exports.AlertMetric = exports.DatabaseProvisionStep = exports.DatabaseProvisionOperation = exports.DatabaseProvisionPhase = exports.PROJECT_STATUS = exports.CARD_TYPES = exports.INTEGRATION_PROVIDERS = exports.INTEGRATION_TYPES = exports.CONFIG_FILE_VISIBILITY = exports.ENVIRONMENT = exports.TEAM_ACTIVATION_STATUS = exports.SPENDING_LIMIT_ACTION = exports.PROJECT_DISABLED_BY = exports.BUILD_DISABLED_BY = exports.SERVER_PROTOCOL = exports.GIT_TYPE = void 0;
|
|
4
|
+
exports.AGENT_CHAT_STATUS = exports.CouponRedemptionStatus = exports.CouponScope = exports.CouponDiscountType = exports.QUEST_TARGETLESS_REQUIREMENTS = exports.QUEST_CLAIM_REQUIREMENTS = exports.DatabaseUserStatus = exports.DatabaseUserPermission = exports.WorkbenchMode = exports.QuestRequirementType = exports.QuestEntity = exports.QuestCriterionType = exports.QuestRewardStatus = exports.RewardType = exports.EligibilityType = exports.ACTION_TO_MILESTONE = exports.QUEST_COUNTABLE_MILESTONES = exports.MilestoneType = exports.QualifyingActionType = exports.XRobotsTag = exports.XContentTypeOptions = exports.XFrameOptions = exports.StorageMigrationStatus = exports.StorageCredentialStatus = exports.StorageCredentialRole = exports.PlatformApiKeyStatus = exports.StorageTokenStatus = exports.StorageUploadStatus = exports.StorageBucketStatus = exports.RESTORE_STATUS = exports.WorkerRunTrigger = exports.WorkerRunStatus = exports.BACKUP_DESTINATION_TYPE = exports.BACKUP_STATUS = exports.SANDBOX_SNAPSHOT_STATUS = exports.SANDBOX_EGRESS_MODE = exports.SANDBOX_DESTROY_REASON = exports.SANDBOX_STATUS = exports.SANDBOX_TEMPLATE = exports.INVOICE_TYPE = exports.INVOICE_PAYMENT_STATUS = exports.INVOICE_STATUS = exports.COLLAB_TOOLBAR_POSITION = exports.COLLAB_THEME = exports.COLLAB_INTEGRATION_TYPE = exports.COLLAB_ANNOTATION_STATUS = exports.NomadDeploymentStatus = exports.DomainTransferStatus = exports.DomainTransferDirection = exports.DomainTransferProvider = void 0;
|
|
5
|
+
exports.BuildDispatch = exports.BuildProviderType = exports.BuildMethod = exports.BuildUseCase = exports.AGENT_DESIGN_SKILL_VERDICT = exports.AGENT_DESIGN_SKILL_TRUST_LEVEL = exports.AGENT_DESIGN_SKILL_STATUS = exports.AGENT_WEBSITE_SNAPSHOT_STATUS = exports.AGENT_WEBSITE_STATUS = exports.AGENT_CHAT_MESSAGE_ROLE = void 0;
|
|
6
6
|
var GIT_TYPE;
|
|
7
7
|
(function (GIT_TYPE) {
|
|
8
8
|
GIT_TYPE["GITHUB"] = "GITHUB";
|
|
@@ -38,6 +38,12 @@ var SPENDING_LIMIT_ACTION;
|
|
|
38
38
|
SPENDING_LIMIT_ACTION["Notify"] = "notify";
|
|
39
39
|
SPENDING_LIMIT_ACTION["Pause"] = "pause";
|
|
40
40
|
})(SPENDING_LIMIT_ACTION || (exports.SPENDING_LIMIT_ACTION = SPENDING_LIMIT_ACTION = {}));
|
|
41
|
+
var TEAM_ACTIVATION_STATUS;
|
|
42
|
+
(function (TEAM_ACTIVATION_STATUS) {
|
|
43
|
+
TEAM_ACTIVATION_STATUS["Active"] = "active";
|
|
44
|
+
TEAM_ACTIVATION_STATUS["Pending"] = "pending";
|
|
45
|
+
TEAM_ACTIVATION_STATUS["Deleting"] = "deleting";
|
|
46
|
+
})(TEAM_ACTIVATION_STATUS || (exports.TEAM_ACTIVATION_STATUS = TEAM_ACTIVATION_STATUS = {}));
|
|
41
47
|
var ENVIRONMENT;
|
|
42
48
|
(function (ENVIRONMENT) {
|
|
43
49
|
ENVIRONMENT["PREVIEW"] = "PREVIEW";
|
package/dist/index.d.ts
CHANGED
|
@@ -81,7 +81,7 @@ export { default as VolumeUsageSegment } from "./volume-usage-segment";
|
|
|
81
81
|
export { default as PgBouncerUsageSegment } from "./pgbouncer-usage-segment";
|
|
82
82
|
export { default as ObjectStorageUsageSegment } from "./object-storage-usage-segment";
|
|
83
83
|
export { default as IdempotencyRecord } from "./idempotency";
|
|
84
|
-
export { StorageBucket, StorageObject, StorageUpload, StorageToken, StorageCredential, StorageMigration, } from "./storage";
|
|
84
|
+
export { StorageBucket, StorageBucketConnection, StorageObject, StorageUpload, StorageToken, StorageCredential, StorageMigration, } from "./storage";
|
|
85
85
|
export { default as Streak } from "./streak";
|
|
86
86
|
export { default as StreakEvent } from "./streak-event";
|
|
87
87
|
export { default as StreakDay } from "./streak-day";
|
|
@@ -105,8 +105,8 @@ export { default as AgentWebsiteSnapshot } from "./agent-website-snapshot";
|
|
|
105
105
|
export { default as AgentWebsiteFileOverlay } from "./agent-website-file-overlay";
|
|
106
106
|
export { default as AgentDesignSkill } from "./agent-design-skill";
|
|
107
107
|
export { default as AgentDesignSkillRevision } from "./agent-design-skill-revision";
|
|
108
|
-
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, IWallet, IDbImage, IDbImageConnection, IJob, ILicense, IPlanConfiguration, IAutoScalingGroup, IComputeChange, IRegion, IVolume, IFramework, BrimbleFrameworkType, ISettings, ILoadBalancerPort, IDomainRenewal, IDomainTransfer, IWebhookCategory, IWebhookEvent, IWebhookSetting, IIntention, IProvider, BuildProviderRoute, BuildSandboxPoolConfig, BuildSandboxConfig, BuildProviderMeta, 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";
|
|
109
|
-
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, ServiceType, BuildUseCase, BuildMethod, BuildProviderType, BuildDispatch, 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, BACKUP_DESTINATION_TYPE, 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";
|
|
108
|
+
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, IWallet, IDbImage, IDbImageConnection, IJob, ILicense, IPlanConfiguration, IAutoScalingGroup, IComputeChange, IRegion, IVolume, IFramework, BrimbleFrameworkType, ISettings, ILoadBalancerPort, IDomainRenewal, IDomainTransfer, IWebhookCategory, IWebhookEvent, IWebhookSetting, IIntention, IProvider, BuildProviderRoute, BuildSandboxPoolConfig, BuildSandboxConfig, BuildProviderMeta, 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, IStorageBucketConnection, 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";
|
|
109
|
+
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, ServiceType, BuildUseCase, BuildMethod, BuildProviderType, BuildDispatch, 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, TEAM_ACTIVATION_STATUS, 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, BACKUP_DESTINATION_TYPE, 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";
|
|
110
110
|
import mongoose from "mongoose";
|
|
111
111
|
export declare const connectToMongo: (mongoUrl: string, config?: mongoose.ConnectOptions) => Promise<void>;
|
|
112
112
|
export declare const db: mongoose.Connection;
|
package/dist/index.js
CHANGED
|
@@ -13,10 +13,10 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
13
13
|
};
|
|
14
14
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
15
|
exports.CollabShareToken = exports.CollabSettings = exports.CollabIntegration = exports.CollabComment = exports.CollabAnnotation = exports.Provider = exports.Intention = exports.WebhookSetting = exports.WebhookEvent = exports.WebhookCategory = exports.DomainTransfer = exports.DomainRenewal = exports.LoadBalancerPort = exports.Settings = exports.Framework = exports.Volume = exports.Region = exports.ComputeChange = exports.AutoScalingGroup = exports.PlanConfiguration = exports.Liscense = exports.Job = exports.EmailDeadLetter = exports.DbImage = exports.Wallet = exports.Server = exports.Card = exports.Subscription = exports.Log = exports.Role = exports.PaymentMethod = exports.Member = exports.Team = exports.PlatformApiKey = exports.Token = exports.Env = exports.EmailForward = exports.DnsChangeLog = exports.Dns = exports.Domain = exports.Integration = exports.Following = exports.Ratelimit = exports.ProjectNetworkSettings = exports.ProjectConnection = exports.Preview = exports.ProjectAnalytics = exports.DeletedProject = exports.Project = exports.User = void 0;
|
|
16
|
-
exports.
|
|
17
|
-
exports.
|
|
18
|
-
exports.
|
|
19
|
-
exports.healthCheckMongo = exports.closeMongo = exports.db = exports.connectToMongo = exports.AGENT_DESIGN_SKILL_VERDICT = exports.AGENT_DESIGN_SKILL_TRUST_LEVEL = exports.AGENT_DESIGN_SKILL_STATUS = exports.AGENT_WEBSITE_SNAPSHOT_STATUS = exports.AGENT_WEBSITE_STATUS = exports.AGENT_CHAT_MESSAGE_ROLE = exports.AGENT_CHAT_STATUS = exports.CONFIG_FILE_VISIBILITY = exports.CouponRedemptionStatus = exports.CouponScope = exports.CouponDiscountType = exports.WorkbenchMode = exports.QUEST_TARGETLESS_REQUIREMENTS = exports.QUEST_CLAIM_REQUIREMENTS = exports.QuestRequirementType = exports.QuestEntity = exports.QuestCriterionType = exports.QuestRewardStatus = exports.RewardType = exports.EligibilityType = void 0;
|
|
16
|
+
exports.CouponRedemption = exports.Coupon = exports.QuestRewardIssuance = exports.QuestParticipation = exports.QuestCampaign = exports.StreakMilestone = exports.StreakDay = exports.StreakEvent = exports.Streak = exports.StorageMigration = exports.StorageCredential = exports.StorageToken = exports.StorageUpload = exports.StorageObject = exports.StorageBucketConnection = exports.StorageBucket = exports.IdempotencyRecord = exports.ObjectStorageUsageSegment = exports.PgBouncerUsageSegment = exports.VolumeUsageSegment = exports.SandboxUsageSegment = exports.SandboxSnapshotUsageSegment = exports.WorkerRun = exports.RestoreHistory = exports.DatabaseUser = exports.BackupHistory = exports.SandboxSnapshot = exports.SandboxWarmPoolMember = exports.SandboxWarmPool = exports.SandboxSize = exports.SandboxImage = exports.SandboxActivity = exports.Sandbox = exports.OwnershipTransfer = exports.ProjectDrainSubscription = exports.Drain = exports.AlertEvent = exports.AlertRuleStateModel = exports.AlertRule = exports.ActivityLog = exports.ProjectConfigFile = exports.EnvironmentVariable = exports.ProjectEnvironment = exports.CashierSubscriptionItem = exports.CashierSubscription = exports.ProjectTagAssignment = exports.Tag = exports.Invoice = exports.AppMessage = exports.CollabPushSubscription = void 0;
|
|
17
|
+
exports.DatabaseInsightsScope = exports.HaMemberRole = exports.DatabasePasswordMode = exports.DatabasePasswordChangeMode = exports.DatabaseEngine = exports.SCALING_SOURCE = exports.BuildDispatch = exports.BuildProviderType = exports.BuildMethod = exports.BuildUseCase = exports.ServiceType = exports.DNS_MANAGED_BY = exports.EMAIL_FORWARD_STATUS = exports.DNS_CHANGE_SOURCE = exports.DNS_CHANGE_TYPE = exports.DNS_TYPE = exports.CARD_TYPES = exports.SUBSCRIPTION_STATUS = exports.DrainEventType = exports.LogSource = exports.DrainStatus = exports.DrainType = exports.AlertEventStatus = exports.AlertChannelMode = exports.AlertRuleState = exports.AlertCondition = exports.AlertMetric = exports.PROJECT_STATUS = exports.SUBSCRIPTION_PLAN_TYPE = exports.ROLES = exports.SERVER_STATUS = exports.ENVIRONMENT = exports.OAUTH_PERMISSIONS = exports.INTEGRATION_PROVIDERS = exports.INTEGRATION_TYPES = exports.GIT_TYPE = exports.AgentDesignSkillRevision = exports.AgentDesignSkill = exports.AgentWebsiteFileOverlay = exports.AgentWebsiteSnapshot = exports.AgentWebsite = exports.AgentChatModel = exports.AgentChatFile = exports.AgentChatMessage = exports.AgentChat = exports.ChangelogCampaign = exports.ChangelogEntry = exports.BlogPost = exports.CareerRole = exports.Ticket = void 0;
|
|
18
|
+
exports.MilestoneType = exports.QualifyingActionType = exports.XRobotsTag = exports.XContentTypeOptions = exports.XFrameOptions = exports.StorageMigrationStatus = exports.StorageCredentialStatus = exports.StorageCredentialRole = exports.PlatformApiKeyStatus = exports.StorageTokenStatus = exports.StorageUploadStatus = exports.StorageBucketStatus = exports.RESTORE_STATUS = exports.WorkerRunTrigger = exports.WorkerRunStatus = exports.DatabaseUserStatus = exports.DatabaseUserPermission = exports.BACKUP_DESTINATION_TYPE = exports.BACKUP_STATUS = exports.SANDBOX_SNAPSHOT_STATUS = exports.SANDBOX_EGRESS_MODE = exports.SANDBOX_DESTROY_REASON = exports.SANDBOX_STATUS = exports.SANDBOX_TEMPLATE = exports.INVOICE_TYPE = exports.INVOICE_PAYMENT_STATUS = exports.INVOICE_STATUS = exports.COLLAB_TOOLBAR_POSITION = exports.COLLAB_THEME = exports.COLLAB_INTEGRATION_TYPE = exports.COLLAB_ANNOTATION_STATUS = exports.NomadDeploymentStatus = exports.DomainTransferStatus = exports.DomainTransferDirection = exports.DomainTransferProvider = exports.DomainRenewalStatus = exports.FrameworkApplicationType = exports.SERVER_PROTOCOL = exports.TEAM_ACTIVATION_STATUS = exports.SPENDING_LIMIT_ACTION = exports.PROJECT_DISABLED_BY = exports.BUILD_DISABLED_BY = exports.VOLUME_BACKEND = exports.REGION_CONTINENT = exports.LicenseStatus = exports.JobStatus = exports.EmailDeadLetterStatus = exports.DatabaseProvisionStep = exports.DatabaseProvisionOperation = exports.DatabaseProvisionPhase = void 0;
|
|
19
|
+
exports.healthCheckMongo = exports.closeMongo = exports.db = exports.connectToMongo = exports.AGENT_DESIGN_SKILL_VERDICT = exports.AGENT_DESIGN_SKILL_TRUST_LEVEL = exports.AGENT_DESIGN_SKILL_STATUS = exports.AGENT_WEBSITE_SNAPSHOT_STATUS = exports.AGENT_WEBSITE_STATUS = exports.AGENT_CHAT_MESSAGE_ROLE = exports.AGENT_CHAT_STATUS = exports.CONFIG_FILE_VISIBILITY = exports.CouponRedemptionStatus = exports.CouponScope = exports.CouponDiscountType = exports.WorkbenchMode = exports.QUEST_TARGETLESS_REQUIREMENTS = exports.QUEST_CLAIM_REQUIREMENTS = exports.QuestRequirementType = exports.QuestEntity = exports.QuestCriterionType = exports.QuestRewardStatus = exports.RewardType = exports.EligibilityType = exports.ACTION_TO_MILESTONE = exports.QUEST_COUNTABLE_MILESTONES = void 0;
|
|
20
20
|
var user_1 = require("./user");
|
|
21
21
|
Object.defineProperty(exports, "User", { enumerable: true, get: function () { return __importDefault(user_1).default; } });
|
|
22
22
|
var project_1 = require("./project");
|
|
@@ -186,6 +186,7 @@ var idempotency_1 = require("./idempotency");
|
|
|
186
186
|
Object.defineProperty(exports, "IdempotencyRecord", { enumerable: true, get: function () { return __importDefault(idempotency_1).default; } });
|
|
187
187
|
var storage_1 = require("./storage");
|
|
188
188
|
Object.defineProperty(exports, "StorageBucket", { enumerable: true, get: function () { return storage_1.StorageBucket; } });
|
|
189
|
+
Object.defineProperty(exports, "StorageBucketConnection", { enumerable: true, get: function () { return storage_1.StorageBucketConnection; } });
|
|
189
190
|
Object.defineProperty(exports, "StorageObject", { enumerable: true, get: function () { return storage_1.StorageObject; } });
|
|
190
191
|
Object.defineProperty(exports, "StorageUpload", { enumerable: true, get: function () { return storage_1.StorageUpload; } });
|
|
191
192
|
Object.defineProperty(exports, "StorageToken", { enumerable: true, get: function () { return storage_1.StorageToken; } });
|
|
@@ -285,6 +286,7 @@ Object.defineProperty(exports, "VOLUME_BACKEND", { enumerable: true, get: functi
|
|
|
285
286
|
Object.defineProperty(exports, "BUILD_DISABLED_BY", { enumerable: true, get: function () { return enum_1.BUILD_DISABLED_BY; } });
|
|
286
287
|
Object.defineProperty(exports, "PROJECT_DISABLED_BY", { enumerable: true, get: function () { return enum_1.PROJECT_DISABLED_BY; } });
|
|
287
288
|
Object.defineProperty(exports, "SPENDING_LIMIT_ACTION", { enumerable: true, get: function () { return enum_1.SPENDING_LIMIT_ACTION; } });
|
|
289
|
+
Object.defineProperty(exports, "TEAM_ACTIVATION_STATUS", { enumerable: true, get: function () { return enum_1.TEAM_ACTIVATION_STATUS; } });
|
|
288
290
|
Object.defineProperty(exports, "SERVER_PROTOCOL", { enumerable: true, get: function () { return enum_1.SERVER_PROTOCOL; } });
|
|
289
291
|
Object.defineProperty(exports, "FrameworkApplicationType", { enumerable: true, get: function () { return enum_1.FrameworkApplicationType; } });
|
|
290
292
|
Object.defineProperty(exports, "DomainRenewalStatus", { enumerable: true, get: function () { return enum_1.DomainRenewalStatus; } });
|
package/dist/storage.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { IStorageBucket, IStorageCredential, IStorageMigration, IStorageObject, IStorageToken, IStorageUpload } from "./types/storage";
|
|
1
|
+
import { IStorageBucket, IStorageBucketConnection, IStorageCredential, IStorageMigration, IStorageObject, IStorageToken, IStorageUpload } from "./types/storage";
|
|
2
2
|
export declare const StorageBucket: import("mongoose").Model<IStorageBucket, {}, {}, {}, import("mongoose").Document<unknown, {}, IStorageBucket, {}, import("mongoose").DefaultSchemaOptions> & IStorageBucket & Required<{
|
|
3
3
|
_id: import("mongoose").Types.ObjectId;
|
|
4
4
|
}> & {
|
|
@@ -41,3 +41,10 @@ export declare const StorageMigration: import("mongoose").Model<IStorageMigratio
|
|
|
41
41
|
} & {
|
|
42
42
|
id: string;
|
|
43
43
|
}, any, IStorageMigration>;
|
|
44
|
+
export declare const StorageBucketConnection: import("mongoose").Model<IStorageBucketConnection, {}, {}, {}, import("mongoose").Document<unknown, {}, IStorageBucketConnection, {}, import("mongoose").DefaultSchemaOptions> & IStorageBucketConnection & Required<{
|
|
45
|
+
_id: import("mongoose").Types.ObjectId;
|
|
46
|
+
}> & {
|
|
47
|
+
__v: number;
|
|
48
|
+
} & {
|
|
49
|
+
id: string;
|
|
50
|
+
}, any, IStorageBucketConnection>;
|
package/dist/storage.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.StorageMigration = exports.StorageCredential = exports.StorageToken = exports.StorageUpload = exports.StorageObject = exports.StorageBucket = void 0;
|
|
3
|
+
exports.StorageBucketConnection = exports.StorageMigration = exports.StorageCredential = exports.StorageToken = exports.StorageUpload = exports.StorageObject = exports.StorageBucket = void 0;
|
|
4
4
|
const mongoose_1 = require("mongoose");
|
|
5
5
|
const enum_1 = require("./enum");
|
|
6
6
|
const storageBucketSchema = new mongoose_1.Schema({
|
|
@@ -47,6 +47,7 @@ const storageBucketSchema = new mongoose_1.Schema({
|
|
|
47
47
|
default: enum_1.StorageBucketStatus.Active,
|
|
48
48
|
},
|
|
49
49
|
starred: { type: Boolean, default: false },
|
|
50
|
+
custom_hosts: { type: [String], default: [] },
|
|
50
51
|
}, { timestamps: true });
|
|
51
52
|
storageBucketSchema.index({ user_id: 1, team: 1, name: 1 }, { unique: true, name: "uniq_storage_bucket_owner_name" });
|
|
52
53
|
storageBucketSchema.index({ user_id: 1, updatedAt: -1 }, { name: "idx_storage_bucket_user_updated_at" });
|
|
@@ -261,9 +262,51 @@ const storageMigrationSchema = new mongoose_1.Schema({
|
|
|
261
262
|
storageMigrationSchema.index({ bucket: 1, status: 1, updatedAt: -1 }, { name: "idx_storage_migration_bucket_status_updated_at" });
|
|
262
263
|
storageMigrationSchema.index({ user_id: 1, updatedAt: -1 }, { name: "idx_storage_migration_user_updated_at" });
|
|
263
264
|
storageMigrationSchema.index({ team: 1, updatedAt: -1 }, { name: "idx_storage_migration_team_updated_at" });
|
|
265
|
+
const storageBucketConnectionSchema = new mongoose_1.Schema({
|
|
266
|
+
bucket: {
|
|
267
|
+
type: mongoose_1.Schema.Types.ObjectId,
|
|
268
|
+
ref: "StorageBucket",
|
|
269
|
+
required: true,
|
|
270
|
+
index: true,
|
|
271
|
+
},
|
|
272
|
+
project: {
|
|
273
|
+
type: mongoose_1.Schema.Types.ObjectId,
|
|
274
|
+
ref: "Project",
|
|
275
|
+
required: true,
|
|
276
|
+
index: true,
|
|
277
|
+
},
|
|
278
|
+
credential: {
|
|
279
|
+
type: mongoose_1.Schema.Types.ObjectId,
|
|
280
|
+
ref: "StorageCredential",
|
|
281
|
+
required: true,
|
|
282
|
+
index: true,
|
|
283
|
+
},
|
|
284
|
+
project_environment: {
|
|
285
|
+
type: mongoose_1.Schema.Types.ObjectId,
|
|
286
|
+
ref: "ProjectEnvironment",
|
|
287
|
+
required: false,
|
|
288
|
+
index: true,
|
|
289
|
+
},
|
|
290
|
+
user_id: {
|
|
291
|
+
type: mongoose_1.Schema.Types.ObjectId,
|
|
292
|
+
ref: "User",
|
|
293
|
+
required: false,
|
|
294
|
+
index: true,
|
|
295
|
+
},
|
|
296
|
+
team: {
|
|
297
|
+
type: mongoose_1.Schema.Types.ObjectId,
|
|
298
|
+
ref: "Team",
|
|
299
|
+
required: false,
|
|
300
|
+
index: true,
|
|
301
|
+
},
|
|
302
|
+
credential_created_by_link: { type: Boolean, default: false },
|
|
303
|
+
}, { timestamps: true });
|
|
304
|
+
storageBucketConnectionSchema.index({ bucket: 1, project: 1 }, { unique: true, name: "uniq_storage_bucket_connection_bucket_project" });
|
|
305
|
+
storageBucketConnectionSchema.index({ project: 1, project_environment: 1 }, { name: "idx_storage_bucket_connection_project_environment" });
|
|
264
306
|
exports.StorageBucket = (0, mongoose_1.model)("StorageBucket", storageBucketSchema);
|
|
265
307
|
exports.StorageObject = (0, mongoose_1.model)("StorageObject", storageObjectSchema);
|
|
266
308
|
exports.StorageUpload = (0, mongoose_1.model)("StorageUpload", storageUploadSchema);
|
|
267
309
|
exports.StorageToken = (0, mongoose_1.model)("StorageToken", storageTokenSchema);
|
|
268
310
|
exports.StorageCredential = (0, mongoose_1.model)("StorageCredential", storageCredentialSchema);
|
|
269
311
|
exports.StorageMigration = (0, mongoose_1.model)("StorageMigration", storageMigrationSchema);
|
|
312
|
+
exports.StorageBucketConnection = (0, mongoose_1.model)("StorageBucketConnection", storageBucketConnectionSchema);
|
package/dist/team.js
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
const mongoose_1 = require("mongoose");
|
|
4
|
+
const enum_1 = require("./enum");
|
|
4
5
|
const teamSchema = new mongoose_1.Schema({
|
|
5
6
|
name: {
|
|
6
7
|
type: String,
|
|
@@ -104,6 +105,23 @@ const teamSchema = new mongoose_1.Schema({
|
|
|
104
105
|
ref: "User",
|
|
105
106
|
default: null,
|
|
106
107
|
},
|
|
108
|
+
activation_status: {
|
|
109
|
+
type: String,
|
|
110
|
+
enum: Object.values(enum_1.TEAM_ACTIVATION_STATUS),
|
|
111
|
+
default: enum_1.TEAM_ACTIVATION_STATUS.Active,
|
|
112
|
+
},
|
|
113
|
+
activation_pending_since: {
|
|
114
|
+
type: Date,
|
|
115
|
+
default: null,
|
|
116
|
+
},
|
|
117
|
+
pending_member_invites: {
|
|
118
|
+
type: [String],
|
|
119
|
+
default: [],
|
|
120
|
+
},
|
|
121
|
+
activation_checked_at: {
|
|
122
|
+
type: Date,
|
|
123
|
+
default: null,
|
|
124
|
+
},
|
|
107
125
|
}, {
|
|
108
126
|
timestamps: true,
|
|
109
127
|
});
|
package/dist/types/index.d.ts
CHANGED
|
@@ -88,7 +88,7 @@ export type { IStreakMilestone } from "./streak-milestone";
|
|
|
88
88
|
export type { IQuestCampaign, IQuestCriterion, IQuestRequirement, IQuestReward, } from "./quest-campaign";
|
|
89
89
|
export type { IQuestParticipation, IQuestCriterionProgress, } from "./quest-participation";
|
|
90
90
|
export type { IQuestRewardIssuance, IQuestIssuedReward, } from "./quest-reward-issuance";
|
|
91
|
-
export type { IStorageBucket, IStorageObject, IStorageUpload, IStorageToken, IStorageCredential, IStorageMigration, StorageTokenPermission, StorageLifecycleRule, StorageCorsRule, StorageLifecycleRuleTransition, } from "./storage";
|
|
91
|
+
export type { IStorageBucket, IStorageBucketConnection, IStorageObject, IStorageUpload, IStorageToken, IStorageCredential, IStorageMigration, StorageTokenPermission, StorageLifecycleRule, StorageCorsRule, StorageLifecycleRuleTransition, StorageBucketCapabilities, } from "./storage";
|
|
92
92
|
export type { ICoupon } from "./coupon";
|
|
93
93
|
export type { ICouponRedemption } from "./coupon-redemption";
|
|
94
94
|
export type { ITicket } from "./ticket";
|
package/dist/types/storage.d.ts
CHANGED
|
@@ -40,9 +40,29 @@ export interface IStorageBucket extends Document {
|
|
|
40
40
|
lifecycle_rules: StorageLifecycleRule[];
|
|
41
41
|
status: StorageBucketStatus;
|
|
42
42
|
starred: boolean;
|
|
43
|
+
custom_hosts?: string[];
|
|
44
|
+
capabilities?: StorageBucketCapabilities;
|
|
43
45
|
createdAt: Date;
|
|
44
46
|
updatedAt: Date;
|
|
45
47
|
}
|
|
48
|
+
export type StorageBucketCapabilities = {
|
|
49
|
+
cors: boolean;
|
|
50
|
+
publicToggle: boolean;
|
|
51
|
+
customDomain: boolean;
|
|
52
|
+
lifecycle: boolean;
|
|
53
|
+
versioning: boolean;
|
|
54
|
+
bucketPolicy: boolean;
|
|
55
|
+
objectAcl: boolean;
|
|
56
|
+
publicWebsite: boolean;
|
|
57
|
+
copyObject: boolean;
|
|
58
|
+
objectTagging: boolean;
|
|
59
|
+
notifications: boolean;
|
|
60
|
+
replication: boolean;
|
|
61
|
+
select: boolean;
|
|
62
|
+
objectLock: boolean;
|
|
63
|
+
inventory: boolean;
|
|
64
|
+
nativeIam: boolean;
|
|
65
|
+
};
|
|
46
66
|
export interface IStorageObject extends Document {
|
|
47
67
|
bucket: Types.ObjectId;
|
|
48
68
|
project?: Types.ObjectId;
|
|
@@ -132,3 +152,14 @@ export interface IStorageMigration extends Document {
|
|
|
132
152
|
createdAt: Date;
|
|
133
153
|
updatedAt: Date;
|
|
134
154
|
}
|
|
155
|
+
export interface IStorageBucketConnection extends Document {
|
|
156
|
+
bucket: Types.ObjectId;
|
|
157
|
+
project: Types.ObjectId;
|
|
158
|
+
credential: Types.ObjectId;
|
|
159
|
+
project_environment?: IProjectEnvironment | Types.ObjectId;
|
|
160
|
+
user_id?: Types.ObjectId;
|
|
161
|
+
team?: Types.ObjectId;
|
|
162
|
+
credential_created_by_link: boolean;
|
|
163
|
+
createdAt: Date;
|
|
164
|
+
updatedAt: Date;
|
|
165
|
+
}
|
package/dist/types/team.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Document, Types } from "mongoose";
|
|
2
2
|
import { IMember, IProject, ISubscription, IUser } from "./";
|
|
3
|
-
import { BUILD_DISABLED_BY, SPENDING_LIMIT_ACTION } from "../enum";
|
|
3
|
+
import { BUILD_DISABLED_BY, SPENDING_LIMIT_ACTION, TEAM_ACTIVATION_STATUS } from "../enum";
|
|
4
4
|
export interface ITeam extends Document {
|
|
5
5
|
name: string;
|
|
6
6
|
slug: string;
|
|
@@ -27,4 +27,8 @@ export interface ITeam extends Document {
|
|
|
27
27
|
enforce_2fa: boolean;
|
|
28
28
|
enforce_2fa_at: Date | null;
|
|
29
29
|
enforce_2fa_by: IUser | Types.ObjectId | null;
|
|
30
|
+
activation_status?: TEAM_ACTIVATION_STATUS;
|
|
31
|
+
activation_pending_since: Date | null;
|
|
32
|
+
pending_member_invites: string[];
|
|
33
|
+
activation_checked_at: Date | null;
|
|
30
34
|
}
|