@brimble/models 3.8.150 → 3.8.152

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.
@@ -0,0 +1,9 @@
1
+ import { IAgentDesignSkillRevision } from "./types/agent-design-skill-revision";
2
+ declare const _default: import("mongoose").Model<IAgentDesignSkillRevision, {}, {}, {}, import("mongoose").Document<unknown, {}, IAgentDesignSkillRevision, {}, import("mongoose").DefaultSchemaOptions> & IAgentDesignSkillRevision & Required<{
3
+ _id: import("mongoose").Types.ObjectId;
4
+ }> & {
5
+ __v: number;
6
+ } & {
7
+ id: string;
8
+ }, any, IAgentDesignSkillRevision>;
9
+ export default _default;
@@ -0,0 +1,57 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const mongoose_1 = require("mongoose");
4
+ const enum_1 = require("./enum");
5
+ const fileSchema = new mongoose_1.Schema({
6
+ path: { type: String, required: true },
7
+ content: { type: String, required: true },
8
+ bytes: { type: Number, required: true },
9
+ }, { _id: false });
10
+ const inspectionSchema = new mongoose_1.Schema({
11
+ verdict: { type: String, enum: Object.values(enum_1.AGENT_DESIGN_SKILL_VERDICT), required: true },
12
+ capabilities: { type: [String], default: [] },
13
+ warnings: { type: [String], default: [] },
14
+ rejected_reasons: { type: [String], default: [] },
15
+ script_references: { type: [String], default: [] },
16
+ external_references: { type: [String], default: [] },
17
+ suspicious_patterns: { type: [String], default: [] },
18
+ inspector_version: { type: String, required: true },
19
+ inspected_at: { type: Date, required: true },
20
+ }, { _id: false });
21
+ const licenseSchema = new mongoose_1.Schema({
22
+ name: { type: String, default: null },
23
+ path: { type: String, default: null },
24
+ text_hash: { type: String, default: null },
25
+ }, { _id: false });
26
+ const agentDesignSkillRevisionSchema = new mongoose_1.Schema({
27
+ skill_id: { type: mongoose_1.Schema.Types.ObjectId, ref: "AgentDesignSkill", required: true },
28
+ commit: { type: String, required: true },
29
+ content_hash: { type: String, required: true },
30
+ trust_level: {
31
+ type: String,
32
+ enum: Object.values(enum_1.AGENT_DESIGN_SKILL_TRUST_LEVEL),
33
+ required: true,
34
+ default: enum_1.AGENT_DESIGN_SKILL_TRUST_LEVEL.Untrusted,
35
+ },
36
+ status: {
37
+ type: String,
38
+ enum: Object.values(enum_1.AGENT_DESIGN_SKILL_STATUS),
39
+ required: true,
40
+ default: enum_1.AGENT_DESIGN_SKILL_STATUS.Quarantined,
41
+ },
42
+ description: { type: String, default: "" },
43
+ categories: { type: [String], default: [] },
44
+ attribution: { type: String, default: null },
45
+ source_url: { type: String, required: true },
46
+ license: { type: licenseSchema, required: true },
47
+ inspection: { type: inspectionSchema, required: true },
48
+ files: { type: [fileSchema], default: [] },
49
+ total_bytes: { type: Number, required: true },
50
+ }, {
51
+ timestamps: { createdAt: "created_at", updatedAt: "updated_at" },
52
+ collection: "agent_design_skill_revisions",
53
+ });
54
+ agentDesignSkillRevisionSchema.index({ skill_id: 1, commit: 1 }, { unique: true });
55
+ agentDesignSkillRevisionSchema.index({ content_hash: 1 });
56
+ agentDesignSkillRevisionSchema.index({ skill_id: 1, status: 1, created_at: -1 });
57
+ exports.default = (0, mongoose_1.model)("AgentDesignSkillRevision", agentDesignSkillRevisionSchema);
@@ -0,0 +1,9 @@
1
+ import { IAgentDesignSkill } from "./types/agent-design-skill";
2
+ declare const _default: import("mongoose").Model<IAgentDesignSkill, {}, {}, {}, import("mongoose").Document<unknown, {}, IAgentDesignSkill, {}, import("mongoose").DefaultSchemaOptions> & IAgentDesignSkill & Required<{
3
+ _id: import("mongoose").Types.ObjectId;
4
+ }> & {
5
+ __v: number;
6
+ } & {
7
+ id: string;
8
+ }, any, IAgentDesignSkill>;
9
+ export default _default;
@@ -0,0 +1,23 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const mongoose_1 = require("mongoose");
4
+ const enum_1 = require("./enum");
5
+ const agentDesignSkillSchema = new mongoose_1.Schema({
6
+ name: { type: String, required: true },
7
+ repository: { type: String, required: true },
8
+ skill_path: { type: String, required: true },
9
+ source_id: { type: String, required: true },
10
+ status: {
11
+ type: String,
12
+ enum: Object.values(enum_1.AGENT_DESIGN_SKILL_STATUS),
13
+ required: true,
14
+ default: enum_1.AGENT_DESIGN_SKILL_STATUS.Active,
15
+ },
16
+ latest_revision_id: { type: mongoose_1.Schema.Types.ObjectId, ref: "AgentDesignSkillRevision", default: null },
17
+ }, {
18
+ timestamps: { createdAt: "created_at", updatedAt: "updated_at" },
19
+ collection: "agent_design_skills",
20
+ });
21
+ agentDesignSkillSchema.index({ repository: 1, skill_path: 1 }, { unique: true });
22
+ agentDesignSkillSchema.index({ status: 1, name: 1 });
23
+ exports.default = (0, mongoose_1.model)("AgentDesignSkill", agentDesignSkillSchema);
@@ -0,0 +1,9 @@
1
+ import { IAgentWebsiteSnapshot } from "./types/agent-website-snapshot";
2
+ declare const _default: import("mongoose").Model<IAgentWebsiteSnapshot, {}, {}, {}, import("mongoose").Document<unknown, {}, IAgentWebsiteSnapshot, {}, import("mongoose").DefaultSchemaOptions> & IAgentWebsiteSnapshot & Required<{
3
+ _id: import("mongoose").Types.ObjectId;
4
+ }> & {
5
+ __v: number;
6
+ } & {
7
+ id: string;
8
+ }, any, IAgentWebsiteSnapshot>;
9
+ export default _default;
@@ -0,0 +1,22 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const mongoose_1 = require("mongoose");
4
+ const enum_1 = require("./enum");
5
+ const agentWebsiteSnapshotSchema = new mongoose_1.Schema({
6
+ website_id: { type: mongoose_1.Schema.Types.ObjectId, ref: "AgentWebsite", required: true },
7
+ user_id: { type: mongoose_1.Schema.Types.ObjectId, ref: "User", required: true },
8
+ s3_key: { type: String, required: true },
9
+ size: { type: Number, required: true },
10
+ digest: { type: String, default: null },
11
+ status: {
12
+ type: String,
13
+ enum: Object.values(enum_1.AGENT_WEBSITE_SNAPSHOT_STATUS),
14
+ required: true,
15
+ default: enum_1.AGENT_WEBSITE_SNAPSHOT_STATUS.Pending,
16
+ },
17
+ }, {
18
+ timestamps: { createdAt: "created_at", updatedAt: "updated_at" },
19
+ collection: "agent_website_snapshots",
20
+ });
21
+ agentWebsiteSnapshotSchema.index({ website_id: 1, status: 1, created_at: -1 });
22
+ exports.default = (0, mongoose_1.model)("AgentWebsiteSnapshot", agentWebsiteSnapshotSchema);
@@ -0,0 +1,9 @@
1
+ import { IAgentWebsite } from "./types/agent-website";
2
+ declare const _default: import("mongoose").Model<IAgentWebsite, {}, {}, {}, import("mongoose").Document<unknown, {}, IAgentWebsite, {}, import("mongoose").DefaultSchemaOptions> & IAgentWebsite & Required<{
3
+ _id: import("mongoose").Types.ObjectId;
4
+ }> & {
5
+ __v: number;
6
+ } & {
7
+ id: string;
8
+ }, any, IAgentWebsite>;
9
+ export default _default;
@@ -0,0 +1,22 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const mongoose_1 = require("mongoose");
4
+ const enum_1 = require("./enum");
5
+ const agentWebsiteSchema = new mongoose_1.Schema({
6
+ chat_id: { type: mongoose_1.Schema.Types.ObjectId, ref: "AgentChat", required: true },
7
+ user_id: { type: mongoose_1.Schema.Types.ObjectId, ref: "User", required: true },
8
+ team_id: { type: mongoose_1.Schema.Types.ObjectId, ref: "Team", default: null },
9
+ status: {
10
+ type: String,
11
+ enum: Object.values(enum_1.AGENT_WEBSITE_STATUS),
12
+ required: true,
13
+ default: enum_1.AGENT_WEBSITE_STATUS.Active,
14
+ },
15
+ deleted_at: { type: Date, default: null },
16
+ }, {
17
+ timestamps: { createdAt: "created_at", updatedAt: "updated_at" },
18
+ collection: "agent_websites",
19
+ });
20
+ agentWebsiteSchema.index({ chat_id: 1 }, { unique: true });
21
+ agentWebsiteSchema.index({ user_id: 1, created_at: -1 });
22
+ exports.default = (0, mongoose_1.model)("AgentWebsite", agentWebsiteSchema);
@@ -503,3 +503,26 @@ export declare enum AGENT_CHAT_MESSAGE_ROLE {
503
503
  Assistant = "assistant",
504
504
  System = "system"
505
505
  }
506
+ export declare enum AGENT_WEBSITE_STATUS {
507
+ Active = "active",
508
+ Deleted = "deleted"
509
+ }
510
+ export declare enum AGENT_WEBSITE_SNAPSHOT_STATUS {
511
+ Pending = "pending",
512
+ Ready = "ready"
513
+ }
514
+ export declare enum AGENT_DESIGN_SKILL_STATUS {
515
+ Active = "active",
516
+ Quarantined = "quarantined",
517
+ Deprecated = "deprecated"
518
+ }
519
+ export declare enum AGENT_DESIGN_SKILL_TRUST_LEVEL {
520
+ Trusted = "trusted",
521
+ Reviewed = "reviewed",
522
+ Untrusted = "untrusted"
523
+ }
524
+ export declare enum AGENT_DESIGN_SKILL_VERDICT {
525
+ Approve = "approve",
526
+ ApproveWithWarnings = "approve-with-warnings",
527
+ Reject = "reject"
528
+ }
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  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.SCALING_SOURCE = exports.SCALING_METRIC = exports.SCALING_STRATEGY = exports.LicenseStatus = exports.JobStatus = exports.EmailDeadLetterStatus = exports.DatabaseEngine = exports.ServiceType = exports.VOLUME_BACKEND = exports.REGION_CONTINENT = exports.PERMISSION_TYPE = exports.ROLES = 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.PROJECT_STATUS = exports.CARD_TYPES = exports.INTEGRATION_PROVIDERS = exports.INTEGRATION_TYPES = exports.CONFIG_FILE_VISIBILITY = exports.ENVIRONMENT = exports.REQUEST_TYPE = exports.SPENDING_LIMIT_ACTION = exports.PROJECT_DISABLED_BY = exports.BUILD_DISABLED_BY = exports.SERVER_PROTOCOL = exports.GIT_TYPE = void 0;
4
- exports.AGENT_CHAT_MESSAGE_ROLE = exports.AGENT_CHAT_STATUS = exports.CouponRedemptionStatus = exports.CouponScope = exports.CouponDiscountType = exports.QUEST_TARGETLESS_REQUIREMENTS = exports.QUEST_CLAIM_REQUIREMENTS = 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_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 = void 0;
4
+ 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.CouponRedemptionStatus = exports.CouponScope = exports.CouponDiscountType = exports.QUEST_TARGETLESS_REQUIREMENTS = exports.QUEST_CLAIM_REQUIREMENTS = 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_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 = void 0;
5
5
  var GIT_TYPE;
6
6
  (function (GIT_TYPE) {
7
7
  GIT_TYPE["GITHUB"] = "GITHUB";
@@ -613,3 +613,31 @@ var AGENT_CHAT_MESSAGE_ROLE;
613
613
  AGENT_CHAT_MESSAGE_ROLE["Assistant"] = "assistant";
614
614
  AGENT_CHAT_MESSAGE_ROLE["System"] = "system";
615
615
  })(AGENT_CHAT_MESSAGE_ROLE || (exports.AGENT_CHAT_MESSAGE_ROLE = AGENT_CHAT_MESSAGE_ROLE = {}));
616
+ var AGENT_WEBSITE_STATUS;
617
+ (function (AGENT_WEBSITE_STATUS) {
618
+ AGENT_WEBSITE_STATUS["Active"] = "active";
619
+ AGENT_WEBSITE_STATUS["Deleted"] = "deleted";
620
+ })(AGENT_WEBSITE_STATUS || (exports.AGENT_WEBSITE_STATUS = AGENT_WEBSITE_STATUS = {}));
621
+ var AGENT_WEBSITE_SNAPSHOT_STATUS;
622
+ (function (AGENT_WEBSITE_SNAPSHOT_STATUS) {
623
+ AGENT_WEBSITE_SNAPSHOT_STATUS["Pending"] = "pending";
624
+ AGENT_WEBSITE_SNAPSHOT_STATUS["Ready"] = "ready";
625
+ })(AGENT_WEBSITE_SNAPSHOT_STATUS || (exports.AGENT_WEBSITE_SNAPSHOT_STATUS = AGENT_WEBSITE_SNAPSHOT_STATUS = {}));
626
+ var AGENT_DESIGN_SKILL_STATUS;
627
+ (function (AGENT_DESIGN_SKILL_STATUS) {
628
+ AGENT_DESIGN_SKILL_STATUS["Active"] = "active";
629
+ AGENT_DESIGN_SKILL_STATUS["Quarantined"] = "quarantined";
630
+ AGENT_DESIGN_SKILL_STATUS["Deprecated"] = "deprecated";
631
+ })(AGENT_DESIGN_SKILL_STATUS || (exports.AGENT_DESIGN_SKILL_STATUS = AGENT_DESIGN_SKILL_STATUS = {}));
632
+ var AGENT_DESIGN_SKILL_TRUST_LEVEL;
633
+ (function (AGENT_DESIGN_SKILL_TRUST_LEVEL) {
634
+ AGENT_DESIGN_SKILL_TRUST_LEVEL["Trusted"] = "trusted";
635
+ AGENT_DESIGN_SKILL_TRUST_LEVEL["Reviewed"] = "reviewed";
636
+ AGENT_DESIGN_SKILL_TRUST_LEVEL["Untrusted"] = "untrusted";
637
+ })(AGENT_DESIGN_SKILL_TRUST_LEVEL || (exports.AGENT_DESIGN_SKILL_TRUST_LEVEL = AGENT_DESIGN_SKILL_TRUST_LEVEL = {}));
638
+ var AGENT_DESIGN_SKILL_VERDICT;
639
+ (function (AGENT_DESIGN_SKILL_VERDICT) {
640
+ AGENT_DESIGN_SKILL_VERDICT["Approve"] = "approve";
641
+ AGENT_DESIGN_SKILL_VERDICT["ApproveWithWarnings"] = "approve-with-warnings";
642
+ AGENT_DESIGN_SKILL_VERDICT["Reject"] = "reject";
643
+ })(AGENT_DESIGN_SKILL_VERDICT || (exports.AGENT_DESIGN_SKILL_VERDICT = AGENT_DESIGN_SKILL_VERDICT = {}));
package/dist/index.d.ts CHANGED
@@ -96,8 +96,12 @@ export { default as AgentChat } from "./agent-chat";
96
96
  export { default as AgentChatMessage } from "./agent-chat-message";
97
97
  export { default as AgentChatFile } from "./agent-chat-file";
98
98
  export { default as AgentChatModel } from "./agent-chat-model";
99
- export { IUser, IGit, IOrigin, IProject, 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, IRole, IPermission, IMemberPermission, IWallet, IDbImage, 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, 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, IAgentChat, IAgentChatMessage, IAgentChatFile, IAgentChatModel, } from "./types";
100
- 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, PERMISSION_TYPE, REQUEST_TYPE, ServiceType, SCALING_SOURCE, DatabaseEngine, 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, 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, } from "./enum";
99
+ export { default as AgentWebsite } from "./agent-website";
100
+ export { default as AgentWebsiteSnapshot } from "./agent-website-snapshot";
101
+ export { default as AgentDesignSkill } from "./agent-design-skill";
102
+ export { default as AgentDesignSkillRevision } from "./agent-design-skill-revision";
103
+ export { IUser, IGit, IOrigin, IProject, 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, IRole, IPermission, IMemberPermission, IWallet, IDbImage, 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, 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, IAgentChat, IAgentChatMessage, IAgentChatFile, IAgentChatModel, IAgentWebsite, IAgentWebsiteSnapshot, IAgentDesignSkill, IAgentDesignSkillRevision, IAgentDesignSkillFile, IAgentDesignSkillInspection, IAgentDesignSkillLicense, } from "./types";
104
+ 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, PERMISSION_TYPE, REQUEST_TYPE, ServiceType, SCALING_SOURCE, DatabaseEngine, 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, 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";
101
105
  import mongoose from "mongoose";
102
106
  export declare const connectToMongo: (mongoUrl: string, config?: mongoose.ConnectOptions) => Promise<void>;
103
107
  export declare const db: mongoose.Connection;
package/dist/index.js CHANGED
@@ -14,8 +14,9 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
14
14
  Object.defineProperty(exports, "__esModule", { value: true });
15
15
  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.MemberPermission = exports.PaymentMethod = exports.Permission = exports.Member = exports.Team = exports.PlatformApiKey = exports.Token = exports.Env = 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
16
  exports.Ticket = 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.StorageBucket = exports.IdempotencyRecord = exports.ObjectStorageUsageSegment = exports.PgBouncerUsageSegment = exports.VolumeUsageSegment = exports.SandboxUsageSegment = exports.SandboxSnapshotUsageSegment = exports.WorkerRun = exports.RestoreHistory = 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 = exports.CollabShareToken = void 0;
17
- 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.SPENDING_LIMIT_ACTION = exports.PROJECT_DISABLED_BY = exports.BUILD_DISABLED_BY = exports.VOLUME_BACKEND = exports.REGION_CONTINENT = exports.LicenseStatus = exports.JobStatus = exports.EmailDeadLetterStatus = exports.DatabaseEngine = exports.SCALING_SOURCE = exports.ServiceType = exports.REQUEST_TYPE = exports.PERMISSION_TYPE = 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.AgentChatModel = exports.AgentChatFile = exports.AgentChatMessage = exports.AgentChat = void 0;
18
- exports.healthCheckMongo = exports.closeMongo = exports.db = exports.connectToMongo = 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 = 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_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 = void 0;
17
+ exports.DomainTransferStatus = exports.DomainTransferDirection = exports.DomainTransferProvider = exports.DomainRenewalStatus = exports.FrameworkApplicationType = exports.SERVER_PROTOCOL = 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.DatabaseEngine = exports.SCALING_SOURCE = exports.ServiceType = exports.REQUEST_TYPE = exports.PERMISSION_TYPE = 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.AgentWebsiteSnapshot = exports.AgentWebsite = exports.AgentChatModel = exports.AgentChatFile = exports.AgentChatMessage = exports.AgentChat = void 0;
18
+ 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 = 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_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 = void 0;
19
+ exports.healthCheckMongo = exports.closeMongo = exports.db = exports.connectToMongo = exports.AGENT_DESIGN_SKILL_VERDICT = void 0;
19
20
  var user_1 = require("./user");
20
21
  Object.defineProperty(exports, "User", { enumerable: true, get: function () { return __importDefault(user_1).default; } });
21
22
  var project_1 = require("./project");
@@ -218,6 +219,14 @@ var agent_chat_file_1 = require("./agent-chat-file");
218
219
  Object.defineProperty(exports, "AgentChatFile", { enumerable: true, get: function () { return __importDefault(agent_chat_file_1).default; } });
219
220
  var agent_chat_model_1 = require("./agent-chat-model");
220
221
  Object.defineProperty(exports, "AgentChatModel", { enumerable: true, get: function () { return __importDefault(agent_chat_model_1).default; } });
222
+ var agent_website_1 = require("./agent-website");
223
+ Object.defineProperty(exports, "AgentWebsite", { enumerable: true, get: function () { return __importDefault(agent_website_1).default; } });
224
+ var agent_website_snapshot_1 = require("./agent-website-snapshot");
225
+ Object.defineProperty(exports, "AgentWebsiteSnapshot", { enumerable: true, get: function () { return __importDefault(agent_website_snapshot_1).default; } });
226
+ var agent_design_skill_1 = require("./agent-design-skill");
227
+ Object.defineProperty(exports, "AgentDesignSkill", { enumerable: true, get: function () { return __importDefault(agent_design_skill_1).default; } });
228
+ var agent_design_skill_revision_1 = require("./agent-design-skill-revision");
229
+ Object.defineProperty(exports, "AgentDesignSkillRevision", { enumerable: true, get: function () { return __importDefault(agent_design_skill_revision_1).default; } });
221
230
  var enum_1 = require("./enum");
222
231
  Object.defineProperty(exports, "GIT_TYPE", { enumerable: true, get: function () { return enum_1.GIT_TYPE; } });
223
232
  Object.defineProperty(exports, "INTEGRATION_TYPES", { enumerable: true, get: function () { return enum_1.INTEGRATION_TYPES; } });
@@ -307,6 +316,11 @@ Object.defineProperty(exports, "CouponRedemptionStatus", { enumerable: true, get
307
316
  Object.defineProperty(exports, "CONFIG_FILE_VISIBILITY", { enumerable: true, get: function () { return enum_1.CONFIG_FILE_VISIBILITY; } });
308
317
  Object.defineProperty(exports, "AGENT_CHAT_STATUS", { enumerable: true, get: function () { return enum_1.AGENT_CHAT_STATUS; } });
309
318
  Object.defineProperty(exports, "AGENT_CHAT_MESSAGE_ROLE", { enumerable: true, get: function () { return enum_1.AGENT_CHAT_MESSAGE_ROLE; } });
319
+ Object.defineProperty(exports, "AGENT_WEBSITE_STATUS", { enumerable: true, get: function () { return enum_1.AGENT_WEBSITE_STATUS; } });
320
+ Object.defineProperty(exports, "AGENT_WEBSITE_SNAPSHOT_STATUS", { enumerable: true, get: function () { return enum_1.AGENT_WEBSITE_SNAPSHOT_STATUS; } });
321
+ Object.defineProperty(exports, "AGENT_DESIGN_SKILL_STATUS", { enumerable: true, get: function () { return enum_1.AGENT_DESIGN_SKILL_STATUS; } });
322
+ Object.defineProperty(exports, "AGENT_DESIGN_SKILL_TRUST_LEVEL", { enumerable: true, get: function () { return enum_1.AGENT_DESIGN_SKILL_TRUST_LEVEL; } });
323
+ Object.defineProperty(exports, "AGENT_DESIGN_SKILL_VERDICT", { enumerable: true, get: function () { return enum_1.AGENT_DESIGN_SKILL_VERDICT; } });
310
324
  const mongoose_1 = __importDefault(require("mongoose"));
311
325
  const utils_1 = require("@brimble/utils");
312
326
  const connectToMongo = (mongoUrl, config) => __awaiter(void 0, void 0, void 0, function* () {
@@ -3,11 +3,11 @@ declare const _default: import("mongoose").Model<{
3
3
  [x: string]: NativeDate;
4
4
  _id: string;
5
5
  size: string;
6
+ digest: string;
6
7
  region: string;
7
8
  template: string;
8
9
  cpu_mhz: number;
9
10
  mem_mb: number;
10
- digest: string;
11
11
  image_tag: string;
12
12
  target_count: number;
13
13
  }, {}, {}, {
@@ -16,11 +16,11 @@ declare const _default: import("mongoose").Model<{
16
16
  [x: string]: NativeDate;
17
17
  _id: string;
18
18
  size: string;
19
+ digest: string;
19
20
  region: string;
20
21
  template: string;
21
22
  cpu_mhz: number;
22
23
  mem_mb: number;
23
- digest: string;
24
24
  image_tag: string;
25
25
  target_count: number;
26
26
  }, {
@@ -35,11 +35,11 @@ declare const _default: import("mongoose").Model<{
35
35
  [x: string]: NativeDate;
36
36
  _id: string;
37
37
  size: string;
38
+ digest: string;
38
39
  region: string;
39
40
  template: string;
40
41
  cpu_mhz: number;
41
42
  mem_mb: number;
42
- digest: string;
43
43
  image_tag: string;
44
44
  target_count: number;
45
45
  } & Required<{
@@ -58,22 +58,22 @@ declare const _default: import("mongoose").Model<{
58
58
  [x: string]: NativeDate;
59
59
  _id: string;
60
60
  size: string;
61
+ digest: string;
61
62
  region: string;
62
63
  template: string;
63
64
  cpu_mhz: number;
64
65
  mem_mb: number;
65
- digest: string;
66
66
  image_tag: string;
67
67
  target_count: number;
68
68
  }, import("mongoose").Document<unknown, {}, {
69
69
  [x: string]: NativeDate;
70
70
  _id: string;
71
71
  size: string;
72
+ digest: string;
72
73
  region: string;
73
74
  template: string;
74
75
  cpu_mhz: number;
75
76
  mem_mb: number;
76
- digest: string;
77
77
  image_tag: string;
78
78
  target_count: number;
79
79
  }, {
@@ -88,11 +88,11 @@ declare const _default: import("mongoose").Model<{
88
88
  [x: string]: NativeDate;
89
89
  _id: string;
90
90
  size: string;
91
+ digest: string;
91
92
  region: string;
92
93
  template: string;
93
94
  cpu_mhz: number;
94
95
  mem_mb: number;
95
- digest: string;
96
96
  image_tag: string;
97
97
  target_count: number;
98
98
  } & Required<{
@@ -105,11 +105,11 @@ declare const _default: import("mongoose").Model<{
105
105
  [x: string]: NativeDate;
106
106
  _id: string;
107
107
  size: string;
108
+ digest: string;
108
109
  region: string;
109
110
  template: string;
110
111
  cpu_mhz: number;
111
112
  mem_mb: number;
112
- digest: string;
113
113
  image_tag: string;
114
114
  target_count: number;
115
115
  } & Required<{
@@ -120,11 +120,11 @@ declare const _default: import("mongoose").Model<{
120
120
  [x: string]: NativeDate;
121
121
  _id: string;
122
122
  size: string;
123
+ digest: string;
123
124
  region: string;
124
125
  template: string;
125
126
  cpu_mhz: number;
126
127
  mem_mb: number;
127
- digest: string;
128
128
  image_tag: string;
129
129
  target_count: number;
130
130
  } & Required<{
@@ -0,0 +1,41 @@
1
+ import { Document, Types } from "mongoose";
2
+ import { AGENT_DESIGN_SKILL_STATUS, AGENT_DESIGN_SKILL_TRUST_LEVEL, AGENT_DESIGN_SKILL_VERDICT } from "../enum";
3
+ import { IAgentDesignSkill } from "./agent-design-skill";
4
+ export interface IAgentDesignSkillFile {
5
+ path: string;
6
+ content?: string;
7
+ bytes: number;
8
+ }
9
+ export interface IAgentDesignSkillInspection {
10
+ verdict: AGENT_DESIGN_SKILL_VERDICT;
11
+ capabilities: string[];
12
+ warnings: string[];
13
+ rejected_reasons: string[];
14
+ script_references: string[];
15
+ external_references: string[];
16
+ suspicious_patterns: string[];
17
+ inspector_version: string;
18
+ inspected_at: Date;
19
+ }
20
+ export interface IAgentDesignSkillLicense {
21
+ name: string | null;
22
+ path: string | null;
23
+ text_hash: string | null;
24
+ }
25
+ export interface IAgentDesignSkillRevision extends Document {
26
+ skill_id: IAgentDesignSkill | Types.ObjectId;
27
+ commit: string;
28
+ content_hash: string;
29
+ trust_level: AGENT_DESIGN_SKILL_TRUST_LEVEL;
30
+ status: AGENT_DESIGN_SKILL_STATUS;
31
+ description: string;
32
+ categories: string[];
33
+ attribution: string | null;
34
+ source_url: string;
35
+ license: IAgentDesignSkillLicense;
36
+ inspection: IAgentDesignSkillInspection;
37
+ files: IAgentDesignSkillFile[];
38
+ total_bytes: number;
39
+ created_at: Date;
40
+ updated_at: Date;
41
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,13 @@
1
+ import { Document, Types } from "mongoose";
2
+ import { AGENT_DESIGN_SKILL_STATUS } from "../enum";
3
+ import { IAgentDesignSkillRevision } from "./agent-design-skill-revision";
4
+ export interface IAgentDesignSkill extends Document {
5
+ name: string;
6
+ repository: string;
7
+ skill_path: string;
8
+ source_id: string;
9
+ status: AGENT_DESIGN_SKILL_STATUS;
10
+ latest_revision_id: IAgentDesignSkillRevision | Types.ObjectId | null;
11
+ created_at: Date;
12
+ updated_at: Date;
13
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,14 @@
1
+ import { Document, Types } from "mongoose";
2
+ import { AGENT_WEBSITE_SNAPSHOT_STATUS } from "../enum";
3
+ import { IAgentWebsite } from "./agent-website";
4
+ import { IUser } from "./user";
5
+ export interface IAgentWebsiteSnapshot extends Document {
6
+ website_id: IAgentWebsite | Types.ObjectId;
7
+ user_id: IUser | Types.ObjectId;
8
+ s3_key: string;
9
+ size: number;
10
+ digest: string | null;
11
+ status: AGENT_WEBSITE_SNAPSHOT_STATUS;
12
+ created_at: Date;
13
+ updated_at: Date;
14
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,14 @@
1
+ import { Document, Types } from "mongoose";
2
+ import { AGENT_WEBSITE_STATUS } from "../enum";
3
+ import { IAgentChat } from "./agent-chat";
4
+ import { ITeam } from "./team";
5
+ import { IUser } from "./user";
6
+ export interface IAgentWebsite extends Document {
7
+ chat_id: IAgentChat | Types.ObjectId;
8
+ user_id: IUser | Types.ObjectId;
9
+ team_id: ITeam | Types.ObjectId | null;
10
+ status: AGENT_WEBSITE_STATUS;
11
+ deleted_at: Date | null;
12
+ created_at: Date;
13
+ updated_at: Date;
14
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -95,3 +95,7 @@ export type { IAgentChat } from "./agent-chat";
95
95
  export type { IAgentChatMessage } from "./agent-chat-message";
96
96
  export type { IAgentChatFile } from "./agent-chat-file";
97
97
  export type { IAgentChatModel } from "./agent-chat-model";
98
+ export type { IAgentWebsite } from "./agent-website";
99
+ export type { IAgentWebsiteSnapshot } from "./agent-website-snapshot";
100
+ export type { IAgentDesignSkill } from "./agent-design-skill";
101
+ export type { IAgentDesignSkillFile, IAgentDesignSkillInspection, IAgentDesignSkillLicense, IAgentDesignSkillRevision, } from "./agent-design-skill-revision";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@brimble/models",
3
- "version": "3.8.150",
3
+ "version": "3.8.152",
4
4
  "description": "Brimble models",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",