@brimble/models 3.8.186 → 3.8.189
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/changelog-campaign.ts +19 -5
- package/changelog-entry.ts +12 -2
- package/dist/agent-chat-file.js +5 -1
- package/dist/agent-chat-model.js +1 -1
- package/dist/agent-design-skill-revision.js +15 -3
- package/dist/agent-design-skill.js +5 -1
- package/dist/agent-website-file-overlay.js +5 -1
- package/dist/agent-website-snapshot.js +5 -1
- package/dist/app-message.js +12 -2
- package/dist/blog-post.js +7 -1
- package/dist/career-role.js +7 -1
- package/dist/cashier_subscription.js +1 -1
- package/dist/changelog-campaign.js +15 -4
- package/dist/changelog-entry.js +12 -2
- package/dist/collab-annotation.js +6 -1
- package/dist/collab-comment.js +6 -1
- package/dist/collab-integration.js +6 -1
- package/dist/collab-push-subscription.js +10 -2
- package/dist/collab-share-token.js +6 -1
- package/dist/coupon-redemption.js +16 -3
- package/dist/coupon.js +16 -3
- package/dist/db-image.js +6 -6
- package/dist/domain/index.js +1 -1
- package/dist/domain/renewal.js +1 -1
- package/dist/drain.js +28 -5
- package/dist/enum/index.d.ts +2 -1
- package/dist/enum/index.js +1 -0
- package/dist/environment-variable.js +5 -1
- package/dist/framework.js +3 -3
- package/dist/index.d.ts +1 -1
- package/dist/logs.js +2 -2
- package/dist/member.js +3 -1
- package/dist/object-storage-usage-segment.js +10 -2
- package/dist/pgbouncer-usage-segment.js +10 -2
- package/dist/plan_configuration.js +9 -5
- package/dist/platform-api-key.js +17 -3
- package/dist/project/index.js +11 -7
- package/dist/project-drain-subscription.js +12 -2
- package/dist/project-network-settings.js +15 -3
- package/dist/project_analytics.js +6 -1
- package/dist/quest-campaign.js +4 -1
- package/dist/quest-participation.js +16 -3
- package/dist/quest-reward-issuance.js +27 -5
- package/dist/sandbox-snapshot-usage-segment.js +10 -2
- package/dist/sandbox-warm-pool.js +4 -1
- package/dist/sandbox.js +1 -1
- package/dist/server.js +1 -1
- package/dist/settings.js +1 -1
- package/dist/storage.js +178 -30
- package/dist/streak-day.js +10 -2
- package/dist/streak-event.js +10 -2
- package/dist/streak-milestone.js +10 -2
- package/dist/streak.js +11 -2
- package/dist/subscription.js +2 -2
- package/dist/team.js +1 -1
- package/dist/ticket.js +6 -1
- package/dist/types/index.d.ts +3 -3
- package/dist/types/plan_configuration.d.ts +2 -2
- package/dist/user.js +8 -2
- package/dist/volume.js +2 -2
- package/dist/wallet.js +2 -2
- package/dist/webhook-category.js +1 -1
- package/dist/webhook-setting.js +1 -1
- package/package.json +1 -1
package/dist/storage.js
CHANGED
|
@@ -5,10 +5,30 @@ const mongoose_1 = require("mongoose");
|
|
|
5
5
|
const enum_1 = require("./enum");
|
|
6
6
|
const storageBucketSchema = new mongoose_1.Schema({
|
|
7
7
|
name: { type: String, required: true, trim: true },
|
|
8
|
-
project: {
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
8
|
+
project: {
|
|
9
|
+
type: mongoose_1.Schema.Types.ObjectId,
|
|
10
|
+
ref: "Project",
|
|
11
|
+
required: false,
|
|
12
|
+
index: true,
|
|
13
|
+
},
|
|
14
|
+
project_environment: {
|
|
15
|
+
type: mongoose_1.Schema.Types.ObjectId,
|
|
16
|
+
ref: "ProjectEnvironment",
|
|
17
|
+
required: false,
|
|
18
|
+
index: true,
|
|
19
|
+
},
|
|
20
|
+
user_id: {
|
|
21
|
+
type: mongoose_1.Schema.Types.ObjectId,
|
|
22
|
+
ref: "User",
|
|
23
|
+
required: false,
|
|
24
|
+
index: true,
|
|
25
|
+
},
|
|
26
|
+
team: {
|
|
27
|
+
type: mongoose_1.Schema.Types.ObjectId,
|
|
28
|
+
ref: "Team",
|
|
29
|
+
required: false,
|
|
30
|
+
index: true,
|
|
31
|
+
},
|
|
12
32
|
bucket_name: { type: String, required: true, unique: true },
|
|
13
33
|
is_public: { type: Boolean, default: false },
|
|
14
34
|
versioning: { type: Boolean, default: false },
|
|
@@ -21,7 +41,11 @@ const storageBucketSchema = new mongoose_1.Schema({
|
|
|
21
41
|
quota: { type: Number, required: true },
|
|
22
42
|
cors_rules: { type: Array, required: false },
|
|
23
43
|
lifecycle_rules: { type: Array, required: false },
|
|
24
|
-
status: {
|
|
44
|
+
status: {
|
|
45
|
+
type: String,
|
|
46
|
+
enum: Object.values(enum_1.StorageBucketStatus),
|
|
47
|
+
default: enum_1.StorageBucketStatus.Active,
|
|
48
|
+
},
|
|
25
49
|
starred: { type: Boolean, default: false },
|
|
26
50
|
}, { timestamps: true });
|
|
27
51
|
storageBucketSchema.index({ user_id: 1, team: 1, name: 1 }, { unique: true, name: "uniq_storage_bucket_owner_name" });
|
|
@@ -29,9 +53,24 @@ storageBucketSchema.index({ user_id: 1, updatedAt: -1 }, { name: "idx_storage_bu
|
|
|
29
53
|
storageBucketSchema.index({ team: 1, updatedAt: -1 }, { name: "idx_storage_bucket_team_updated_at" });
|
|
30
54
|
storageBucketSchema.index({ user_id: 1, team: 1, project_environment: 1, updatedAt: -1 }, { name: "idx_storage_bucket_environment_updated_at" });
|
|
31
55
|
const storageObjectSchema = new mongoose_1.Schema({
|
|
32
|
-
bucket: {
|
|
33
|
-
|
|
34
|
-
|
|
56
|
+
bucket: {
|
|
57
|
+
type: mongoose_1.Schema.Types.ObjectId,
|
|
58
|
+
ref: "StorageBucket",
|
|
59
|
+
required: true,
|
|
60
|
+
index: true,
|
|
61
|
+
},
|
|
62
|
+
project: {
|
|
63
|
+
type: mongoose_1.Schema.Types.ObjectId,
|
|
64
|
+
ref: "Project",
|
|
65
|
+
required: false,
|
|
66
|
+
index: true,
|
|
67
|
+
},
|
|
68
|
+
project_environment: {
|
|
69
|
+
type: mongoose_1.Schema.Types.ObjectId,
|
|
70
|
+
ref: "ProjectEnvironment",
|
|
71
|
+
required: false,
|
|
72
|
+
index: true,
|
|
73
|
+
},
|
|
35
74
|
key: { type: String, required: true },
|
|
36
75
|
path: { type: String, required: true },
|
|
37
76
|
content_type: { type: String },
|
|
@@ -42,15 +81,35 @@ const storageObjectSchema = new mongoose_1.Schema({
|
|
|
42
81
|
}, { timestamps: true });
|
|
43
82
|
storageObjectSchema.index({ bucket: 1, key: 1 }, { unique: true, name: "uniq_storage_object_bucket_key" });
|
|
44
83
|
const storageUploadSchema = new mongoose_1.Schema({
|
|
45
|
-
bucket: {
|
|
46
|
-
|
|
47
|
-
|
|
84
|
+
bucket: {
|
|
85
|
+
type: mongoose_1.Schema.Types.ObjectId,
|
|
86
|
+
ref: "StorageBucket",
|
|
87
|
+
required: true,
|
|
88
|
+
index: true,
|
|
89
|
+
},
|
|
90
|
+
project: {
|
|
91
|
+
type: mongoose_1.Schema.Types.ObjectId,
|
|
92
|
+
ref: "Project",
|
|
93
|
+
required: false,
|
|
94
|
+
index: true,
|
|
95
|
+
},
|
|
96
|
+
project_environment: {
|
|
97
|
+
type: mongoose_1.Schema.Types.ObjectId,
|
|
98
|
+
ref: "ProjectEnvironment",
|
|
99
|
+
required: false,
|
|
100
|
+
index: true,
|
|
101
|
+
},
|
|
48
102
|
key: { type: String, required: true },
|
|
49
103
|
path: { type: String, required: true },
|
|
50
104
|
upload_id: { type: String, index: true },
|
|
51
105
|
content_type: { type: String },
|
|
52
106
|
size: { type: Number, required: true },
|
|
53
|
-
status: {
|
|
107
|
+
status: {
|
|
108
|
+
type: String,
|
|
109
|
+
enum: Object.values(enum_1.StorageUploadStatus),
|
|
110
|
+
default: enum_1.StorageUploadStatus.Pending,
|
|
111
|
+
index: true,
|
|
112
|
+
},
|
|
54
113
|
expires_at: { type: Date, required: true, index: true },
|
|
55
114
|
completed_at: { type: Date },
|
|
56
115
|
}, { timestamps: true });
|
|
@@ -58,46 +117,135 @@ const storageTokenSchema = new mongoose_1.Schema({
|
|
|
58
117
|
name: { type: String, required: true, trim: true },
|
|
59
118
|
token_hash: { type: String, required: true, unique: true },
|
|
60
119
|
prefix: { type: String, required: true },
|
|
61
|
-
project: {
|
|
120
|
+
project: {
|
|
121
|
+
type: mongoose_1.Schema.Types.ObjectId,
|
|
122
|
+
ref: "Project",
|
|
123
|
+
required: false,
|
|
124
|
+
index: true,
|
|
125
|
+
},
|
|
62
126
|
buckets: [{ type: mongoose_1.Schema.Types.ObjectId, ref: "StorageBucket" }],
|
|
63
|
-
user_id: {
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
127
|
+
user_id: {
|
|
128
|
+
type: mongoose_1.Schema.Types.ObjectId,
|
|
129
|
+
ref: "User",
|
|
130
|
+
required: false,
|
|
131
|
+
index: true,
|
|
132
|
+
},
|
|
133
|
+
team: {
|
|
134
|
+
type: mongoose_1.Schema.Types.ObjectId,
|
|
135
|
+
ref: "Team",
|
|
136
|
+
required: false,
|
|
137
|
+
index: true,
|
|
138
|
+
},
|
|
139
|
+
permissions: [
|
|
140
|
+
{
|
|
141
|
+
type: String,
|
|
142
|
+
enum: ["read", "write", "delete", "list", "admin"],
|
|
143
|
+
required: true,
|
|
144
|
+
},
|
|
145
|
+
],
|
|
146
|
+
status: {
|
|
147
|
+
type: String,
|
|
148
|
+
enum: Object.values(enum_1.StorageTokenStatus),
|
|
149
|
+
default: enum_1.StorageTokenStatus.Active,
|
|
150
|
+
},
|
|
67
151
|
last_used_at: { type: Date },
|
|
68
152
|
expires_at: { type: Date },
|
|
69
153
|
}, { timestamps: true });
|
|
70
154
|
storageTokenSchema.index({ project: 1, status: 1 }, { name: "idx_storage_token_project_status" });
|
|
71
155
|
const storageCredentialSchema = new mongoose_1.Schema({
|
|
72
156
|
name: { type: String, required: true, trim: true },
|
|
73
|
-
bucket: {
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
157
|
+
bucket: {
|
|
158
|
+
type: mongoose_1.Schema.Types.ObjectId,
|
|
159
|
+
ref: "StorageBucket",
|
|
160
|
+
required: true,
|
|
161
|
+
index: true,
|
|
162
|
+
},
|
|
163
|
+
project: {
|
|
164
|
+
type: mongoose_1.Schema.Types.ObjectId,
|
|
165
|
+
ref: "Project",
|
|
166
|
+
required: false,
|
|
167
|
+
index: true,
|
|
168
|
+
},
|
|
169
|
+
project_environment: {
|
|
170
|
+
type: mongoose_1.Schema.Types.ObjectId,
|
|
171
|
+
ref: "ProjectEnvironment",
|
|
172
|
+
required: false,
|
|
173
|
+
index: true,
|
|
174
|
+
},
|
|
175
|
+
user_id: {
|
|
176
|
+
type: mongoose_1.Schema.Types.ObjectId,
|
|
177
|
+
ref: "User",
|
|
178
|
+
required: false,
|
|
179
|
+
index: true,
|
|
180
|
+
},
|
|
181
|
+
team: {
|
|
182
|
+
type: mongoose_1.Schema.Types.ObjectId,
|
|
183
|
+
ref: "Team",
|
|
184
|
+
required: false,
|
|
185
|
+
index: true,
|
|
186
|
+
},
|
|
78
187
|
provider: { type: String, default: "tigris" },
|
|
79
188
|
provider_org_id: { type: String, required: true },
|
|
80
189
|
access_key_id: { type: String, required: true, unique: true },
|
|
81
190
|
policy_names: [{ type: String }],
|
|
82
|
-
role: {
|
|
83
|
-
|
|
191
|
+
role: {
|
|
192
|
+
type: String,
|
|
193
|
+
enum: Object.values(enum_1.StorageCredentialRole),
|
|
194
|
+
required: true,
|
|
195
|
+
},
|
|
196
|
+
status: {
|
|
197
|
+
type: String,
|
|
198
|
+
enum: Object.values(enum_1.StorageCredentialStatus),
|
|
199
|
+
default: enum_1.StorageCredentialStatus.Active,
|
|
200
|
+
index: true,
|
|
201
|
+
},
|
|
84
202
|
last_rotated_at: { type: Date },
|
|
85
203
|
revoked_at: { type: Date },
|
|
86
204
|
}, { timestamps: true });
|
|
87
205
|
storageCredentialSchema.index({ bucket: 1, status: 1, updatedAt: -1 }, { name: "idx_storage_credential_bucket_status_updated_at" });
|
|
88
206
|
const storageMigrationSchema = new mongoose_1.Schema({
|
|
89
|
-
bucket: {
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
207
|
+
bucket: {
|
|
208
|
+
type: mongoose_1.Schema.Types.ObjectId,
|
|
209
|
+
ref: "StorageBucket",
|
|
210
|
+
required: true,
|
|
211
|
+
index: true,
|
|
212
|
+
},
|
|
213
|
+
project: {
|
|
214
|
+
type: mongoose_1.Schema.Types.ObjectId,
|
|
215
|
+
ref: "Project",
|
|
216
|
+
required: false,
|
|
217
|
+
index: true,
|
|
218
|
+
},
|
|
219
|
+
project_environment: {
|
|
220
|
+
type: mongoose_1.Schema.Types.ObjectId,
|
|
221
|
+
ref: "ProjectEnvironment",
|
|
222
|
+
required: false,
|
|
223
|
+
index: true,
|
|
224
|
+
},
|
|
225
|
+
user_id: {
|
|
226
|
+
type: mongoose_1.Schema.Types.ObjectId,
|
|
227
|
+
ref: "User",
|
|
228
|
+
required: false,
|
|
229
|
+
index: true,
|
|
230
|
+
},
|
|
231
|
+
team: {
|
|
232
|
+
type: mongoose_1.Schema.Types.ObjectId,
|
|
233
|
+
ref: "Team",
|
|
234
|
+
required: false,
|
|
235
|
+
index: true,
|
|
236
|
+
},
|
|
94
237
|
source_bucket: { type: String, required: true, trim: true },
|
|
95
238
|
source_region: { type: String, required: true, trim: true },
|
|
96
239
|
source_endpoint: { type: String, required: false, trim: true },
|
|
97
240
|
source_prefix: { type: String, required: false, trim: true },
|
|
98
241
|
destination_prefix: { type: String, required: false, trim: true },
|
|
99
242
|
vault_path: { type: String, required: true },
|
|
100
|
-
status: {
|
|
243
|
+
status: {
|
|
244
|
+
type: String,
|
|
245
|
+
enum: Object.values(enum_1.StorageMigrationStatus),
|
|
246
|
+
default: enum_1.StorageMigrationStatus.Queued,
|
|
247
|
+
index: true,
|
|
248
|
+
},
|
|
101
249
|
total_objects: { type: Number, default: 0 },
|
|
102
250
|
copied_objects: { type: Number, default: 0 },
|
|
103
251
|
failed_objects: { type: Number, default: 0 },
|
package/dist/streak-day.js
CHANGED
|
@@ -2,10 +2,18 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
const mongoose_1 = require("mongoose");
|
|
4
4
|
const streakDaySchema = new mongoose_1.Schema({
|
|
5
|
-
user_id: {
|
|
5
|
+
user_id: {
|
|
6
|
+
type: mongoose_1.Schema.Types.ObjectId,
|
|
7
|
+
ref: "User",
|
|
8
|
+
required: true,
|
|
9
|
+
index: true,
|
|
10
|
+
},
|
|
6
11
|
day: { type: Date, required: true },
|
|
7
12
|
action_types: { type: [String], default: [] },
|
|
8
13
|
is_milestone_day: { type: Boolean, default: false },
|
|
9
|
-
}, {
|
|
14
|
+
}, {
|
|
15
|
+
timestamps: { createdAt: "created_at", updatedAt: "updated_at" },
|
|
16
|
+
collection: "streak_days",
|
|
17
|
+
});
|
|
10
18
|
streakDaySchema.index({ user_id: 1, day: 1 }, { unique: true });
|
|
11
19
|
exports.default = (0, mongoose_1.model)("StreakDay", streakDaySchema);
|
package/dist/streak-event.js
CHANGED
|
@@ -2,7 +2,12 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
const mongoose_1 = require("mongoose");
|
|
4
4
|
const streakEventSchema = new mongoose_1.Schema({
|
|
5
|
-
user_id: {
|
|
5
|
+
user_id: {
|
|
6
|
+
type: mongoose_1.Schema.Types.ObjectId,
|
|
7
|
+
ref: "User",
|
|
8
|
+
required: true,
|
|
9
|
+
index: true,
|
|
10
|
+
},
|
|
6
11
|
action_type: {
|
|
7
12
|
type: String,
|
|
8
13
|
required: true,
|
|
@@ -12,7 +17,10 @@ const streakEventSchema = new mongoose_1.Schema({
|
|
|
12
17
|
service_type: { type: String, default: null },
|
|
13
18
|
system_day: { type: Date, required: true, index: true },
|
|
14
19
|
dedupe_key: { type: String, required: true, unique: true },
|
|
15
|
-
}, {
|
|
20
|
+
}, {
|
|
21
|
+
timestamps: { createdAt: "created_at", updatedAt: "updated_at" },
|
|
22
|
+
collection: "streak_events",
|
|
23
|
+
});
|
|
16
24
|
streakEventSchema.index({ user_id: 1, system_day: 1 });
|
|
17
25
|
streakEventSchema.index({ user_id: 1, action_type: 1, created_at: 1 });
|
|
18
26
|
exports.default = (0, mongoose_1.model)("StreakEvent", streakEventSchema);
|
package/dist/streak-milestone.js
CHANGED
|
@@ -2,10 +2,18 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
const mongoose_1 = require("mongoose");
|
|
4
4
|
const streakMilestoneSchema = new mongoose_1.Schema({
|
|
5
|
-
user_id: {
|
|
5
|
+
user_id: {
|
|
6
|
+
type: mongoose_1.Schema.Types.ObjectId,
|
|
7
|
+
ref: "User",
|
|
8
|
+
required: true,
|
|
9
|
+
index: true,
|
|
10
|
+
},
|
|
6
11
|
type: { type: String, required: true },
|
|
7
12
|
action: { type: String, required: true },
|
|
8
13
|
date: { type: Date, required: true },
|
|
9
|
-
}, {
|
|
14
|
+
}, {
|
|
15
|
+
timestamps: { createdAt: "created_at", updatedAt: "updated_at" },
|
|
16
|
+
collection: "streak_milestones",
|
|
17
|
+
});
|
|
10
18
|
streakMilestoneSchema.index({ user_id: 1, type: 1, date: 1 }, { unique: true });
|
|
11
19
|
exports.default = (0, mongoose_1.model)("StreakMilestone", streakMilestoneSchema);
|
package/dist/streak.js
CHANGED
|
@@ -6,12 +6,21 @@ const streakMilestoneRefSchema = new mongoose_1.Schema({
|
|
|
6
6
|
date: { type: Date, required: true },
|
|
7
7
|
}, { _id: false });
|
|
8
8
|
const streakSchema = new mongoose_1.Schema({
|
|
9
|
-
user_id: {
|
|
9
|
+
user_id: {
|
|
10
|
+
type: mongoose_1.Schema.Types.ObjectId,
|
|
11
|
+
ref: "User",
|
|
12
|
+
required: true,
|
|
13
|
+
unique: true,
|
|
14
|
+
index: true,
|
|
15
|
+
},
|
|
10
16
|
current_count: { type: Number, default: 0 },
|
|
11
17
|
longest_count: { type: Number, default: 0 },
|
|
12
18
|
last_active_day: { type: Date, default: null },
|
|
13
19
|
last_processed_day: { type: Date, default: null },
|
|
14
20
|
last_milestone: { type: streakMilestoneRefSchema, default: null },
|
|
15
21
|
last_streak_email_day: { type: Date, default: null },
|
|
16
|
-
}, {
|
|
22
|
+
}, {
|
|
23
|
+
timestamps: { createdAt: "created_at", updatedAt: "updated_at" },
|
|
24
|
+
collection: "streaks",
|
|
25
|
+
});
|
|
17
26
|
exports.default = (0, mongoose_1.model)("Streak", streakSchema);
|
package/dist/subscription.js
CHANGED
|
@@ -9,7 +9,7 @@ const subscriptionSchema = new mongoose_1.Schema({
|
|
|
9
9
|
},
|
|
10
10
|
due_amount: {
|
|
11
11
|
type: Number,
|
|
12
|
-
default: 0
|
|
12
|
+
default: 0,
|
|
13
13
|
},
|
|
14
14
|
team_id: {
|
|
15
15
|
type: mongoose_1.Schema.Types.ObjectId,
|
|
@@ -55,7 +55,7 @@ const subscriptionSchema = new mongoose_1.Schema({
|
|
|
55
55
|
transaction_retries: Number,
|
|
56
56
|
downgraded: {
|
|
57
57
|
default: false,
|
|
58
|
-
type: Boolean
|
|
58
|
+
type: Boolean,
|
|
59
59
|
},
|
|
60
60
|
is_pending_downgrade: {
|
|
61
61
|
type: Boolean,
|
package/dist/team.js
CHANGED
package/dist/ticket.js
CHANGED
|
@@ -3,7 +3,12 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
const mongoose_1 = require("mongoose");
|
|
4
4
|
const ticketSchema = new mongoose_1.Schema({
|
|
5
5
|
airtable_id: { type: String, required: true, unique: true, index: true },
|
|
6
|
-
user_id: {
|
|
6
|
+
user_id: {
|
|
7
|
+
type: mongoose_1.Schema.Types.ObjectId,
|
|
8
|
+
ref: "User",
|
|
9
|
+
required: true,
|
|
10
|
+
index: true,
|
|
11
|
+
},
|
|
7
12
|
email: { type: String, required: true },
|
|
8
13
|
subject: { type: String, required: true },
|
|
9
14
|
message: { type: String, required: true },
|
package/dist/types/index.d.ts
CHANGED
|
@@ -56,7 +56,7 @@ export type { IAppMessage } from "./app-message";
|
|
|
56
56
|
export type { IInvoice } from "./invoice";
|
|
57
57
|
export type { IProjectTagAssignment } from "./project-tag-assignment";
|
|
58
58
|
export type { ITag } from "./tag";
|
|
59
|
-
export type { ICashierSubscription, ICashierSubscriptionItem } from "./cashier_subscription";
|
|
59
|
+
export type { ICashierSubscription, ICashierSubscriptionItem, } from "./cashier_subscription";
|
|
60
60
|
export type { IProjectEnvironment } from "./project-environment";
|
|
61
61
|
export type { IEnvironmentVariable } from "./environment-variable";
|
|
62
62
|
export type { IProjectConfigFile } from "./project-config-file";
|
|
@@ -89,14 +89,14 @@ export type { IStreakMilestone } from "./streak-milestone";
|
|
|
89
89
|
export type { IQuestCampaign, IQuestCriterion, IQuestRequirement, IQuestReward, } from "./quest-campaign";
|
|
90
90
|
export type { IQuestParticipation, IQuestCriterionProgress, } from "./quest-participation";
|
|
91
91
|
export type { IQuestRewardIssuance, IQuestIssuedReward, } from "./quest-reward-issuance";
|
|
92
|
-
export type { IStorageBucket, IStorageObject, IStorageUpload, IStorageToken, IStorageCredential, IStorageMigration, StorageTokenPermission, StorageLifecycleRule, StorageCorsRule, StorageLifecycleRuleTransition } from "./storage";
|
|
92
|
+
export type { IStorageBucket, IStorageObject, IStorageUpload, IStorageToken, IStorageCredential, IStorageMigration, StorageTokenPermission, StorageLifecycleRule, StorageCorsRule, StorageLifecycleRuleTransition, } from "./storage";
|
|
93
93
|
export type { ICoupon } from "./coupon";
|
|
94
94
|
export type { ICouponRedemption } from "./coupon-redemption";
|
|
95
95
|
export type { ITicket } from "./ticket";
|
|
96
96
|
export type { ICareerRole } from "./career-role";
|
|
97
97
|
export type { IBlogPost } from "./blog-post";
|
|
98
98
|
export type { IChangelogEntry } from "./changelog-entry";
|
|
99
|
-
export type { ChangelogEmailPayloadEntry, IChangelogCampaign } from "./changelog-campaign";
|
|
99
|
+
export type { ChangelogEmailPayloadEntry, IChangelogCampaign, } from "./changelog-campaign";
|
|
100
100
|
export type { IAgentChat } from "./agent-chat";
|
|
101
101
|
export type { IAgentChatMessage } from "./agent-chat-message";
|
|
102
102
|
export type { IAgentChatFile } from "./agent-chat-file";
|
|
@@ -36,6 +36,7 @@ export interface IPlanConfiguration extends Document {
|
|
|
36
36
|
token_request: number;
|
|
37
37
|
custom_domain: boolean;
|
|
38
38
|
wildcard_domain: boolean;
|
|
39
|
+
email_forwarding_enabled: boolean;
|
|
39
40
|
unlimited_projects: boolean;
|
|
40
41
|
webhook_enabled: boolean;
|
|
41
42
|
can_deploy_all_applications: boolean;
|
|
@@ -43,7 +44,7 @@ export interface IPlanConfiguration extends Document {
|
|
|
43
44
|
storage_bucket_enabled: boolean;
|
|
44
45
|
storage_bucket_quota_gb: number;
|
|
45
46
|
sandbox_max_count: number;
|
|
46
|
-
|
|
47
|
+
sandbox_hours_max: number;
|
|
47
48
|
sandbox_enabled: boolean;
|
|
48
49
|
sandbox_cpu_hours_included: number;
|
|
49
50
|
sandbox_memory_gb_hours_included: number;
|
|
@@ -65,5 +66,4 @@ export interface IPlanConfiguration extends Document {
|
|
|
65
66
|
agent_chat_enabled: boolean;
|
|
66
67
|
agent_chat_tokens_per_session: number;
|
|
67
68
|
agent_chats_per_day: number;
|
|
68
|
-
email_forward_limit: number;
|
|
69
69
|
}
|
package/dist/user.js
CHANGED
|
@@ -51,7 +51,7 @@ const userSchema = new mongoose_1.Schema({
|
|
|
51
51
|
ai_usage_count: {
|
|
52
52
|
type: Number,
|
|
53
53
|
default: 0,
|
|
54
|
-
required: false
|
|
54
|
+
required: false,
|
|
55
55
|
},
|
|
56
56
|
tenant: { type: mongoose_1.Schema.Types.ObjectId, ref: "Tenancy", required: false },
|
|
57
57
|
is_waitlist: { type: Boolean, default: true },
|
|
@@ -68,7 +68,13 @@ const userSchema = new mongoose_1.Schema({
|
|
|
68
68
|
has_payment_method: Boolean,
|
|
69
69
|
totp_enabled: { type: Boolean, default: false },
|
|
70
70
|
agent_byok_enabled: { type: Boolean, default: false },
|
|
71
|
-
referral_code: {
|
|
71
|
+
referral_code: {
|
|
72
|
+
type: String,
|
|
73
|
+
sparse: true,
|
|
74
|
+
unique: true,
|
|
75
|
+
uppercase: true,
|
|
76
|
+
trim: true,
|
|
77
|
+
},
|
|
72
78
|
referred_by: { type: mongoose_1.Schema.Types.ObjectId, ref: "User", default: null },
|
|
73
79
|
referred_at: Date,
|
|
74
80
|
referral_converted_at: Date,
|
package/dist/volume.js
CHANGED
|
@@ -17,12 +17,12 @@ const volumeSchema = new mongoose_1.Schema({
|
|
|
17
17
|
},
|
|
18
18
|
namespace: {
|
|
19
19
|
type: String,
|
|
20
|
-
required: false
|
|
20
|
+
required: false,
|
|
21
21
|
},
|
|
22
22
|
type: {
|
|
23
23
|
type: String,
|
|
24
24
|
required: false,
|
|
25
|
-
default: "project"
|
|
25
|
+
default: "project",
|
|
26
26
|
},
|
|
27
27
|
size: { type: Number, required: true },
|
|
28
28
|
mount_path: { type: String },
|
package/dist/wallet.js
CHANGED
package/dist/webhook-category.js
CHANGED
package/dist/webhook-setting.js
CHANGED
|
@@ -45,6 +45,6 @@ const webhookSettingSchema = new mongoose_1.Schema({
|
|
|
45
45
|
type: [mongoose_1.Schema.Types.ObjectId],
|
|
46
46
|
ref: webhook_event_1.default,
|
|
47
47
|
default: [],
|
|
48
|
-
}
|
|
48
|
+
},
|
|
49
49
|
});
|
|
50
50
|
exports.default = (0, mongoose_1.model)("WebhookSetting", webhookSettingSchema, "webhook_settings");
|