@brimble/models 4.0.1 → 4.0.2
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/types/activity-log.d.ts +8 -8
- package/dist/types/agent-design-skill-revision.d.ts +1 -1
- package/dist/types/alert-rule.d.ts +1 -1
- package/dist/types/app-message.d.ts +4 -4
- package/dist/types/auto-scaling-group.d.ts +2 -2
- package/dist/types/cashier_subscription.d.ts +1 -1
- package/dist/types/collab-annotation.d.ts +13 -13
- package/dist/types/collab-comment.d.ts +6 -6
- package/dist/types/collab-integration.d.ts +1 -1
- package/dist/types/collab-settings.d.ts +2 -2
- package/dist/types/collab-share-token.d.ts +1 -1
- package/dist/types/compute.d.ts +11 -11
- package/dist/types/coupon-redemption.d.ts +9 -9
- package/dist/types/coupon.d.ts +11 -11
- package/dist/types/db-image.d.ts +3 -3
- package/dist/types/domain/dns-changelog.d.ts +8 -8
- package/dist/types/domain/dns.d.ts +1 -1
- package/dist/types/domain/index.d.ts +6 -6
- package/dist/types/domain/transfer.d.ts +13 -13
- package/dist/types/drain.d.ts +13 -13
- package/dist/types/email-dead-letter.d.ts +3 -3
- package/dist/types/env.d.ts +1 -1
- package/dist/types/environment-variable.d.ts +1 -1
- package/dist/types/following.d.ts +2 -2
- package/dist/types/framework.d.ts +9 -9
- package/dist/types/git.d.ts +12 -12
- package/dist/types/integration.d.ts +7 -7
- package/dist/types/intention.d.ts +1 -1
- package/dist/types/job.d.ts +9 -9
- package/dist/types/logs.d.ts +3 -3
- package/dist/types/member.d.ts +2 -2
- package/dist/types/plan_configuration.d.ts +1 -1
- package/dist/types/platform-api-key.d.ts +4 -4
- package/dist/types/project/index.d.ts +31 -31
- package/dist/types/project/preview.d.ts +1 -1
- package/dist/types/project-drain-subscription.d.ts +1 -1
- package/dist/types/project-environment.d.ts +2 -2
- package/dist/types/project-network-settings.d.ts +2 -2
- package/dist/types/project_analytics.d.ts +1 -1
- package/dist/types/quest-campaign.d.ts +2 -2
- package/dist/types/quest-participation.d.ts +2 -2
- package/dist/types/quest-reward-issuance.d.ts +2 -2
- package/dist/types/ratelimit.d.ts +16 -16
- package/dist/types/ref.d.ts +3 -2
- package/dist/types/region.d.ts +15 -15
- package/dist/types/role.d.ts +2 -2
- package/dist/types/sandbox-activity.d.ts +2 -2
- package/dist/types/sandbox-usage-segment.d.ts +2 -2
- package/dist/types/sandbox.d.ts +1 -1
- package/dist/types/server.d.ts +11 -11
- package/dist/types/storage.d.ts +50 -50
- package/dist/types/streak-day.d.ts +2 -2
- package/dist/types/streak-event.d.ts +2 -2
- package/dist/types/streak-milestone.d.ts +2 -2
- package/dist/types/streak.d.ts +2 -2
- package/dist/types/subscription.d.ts +1 -1
- package/dist/types/ticket.d.ts +5 -5
- package/dist/types/user.d.ts +4 -4
- package/dist/types/volume-usage-segment.d.ts +3 -3
- package/dist/types/volume.d.ts +6 -6
- package/dist/types/webhook-setting.d.ts +2 -2
- package/package.json +1 -1
package/dist/types/logs.d.ts
CHANGED
|
@@ -16,14 +16,14 @@ export interface ILog extends Document {
|
|
|
16
16
|
name: string;
|
|
17
17
|
email: string;
|
|
18
18
|
username: string;
|
|
19
|
-
avatar_url
|
|
19
|
+
avatar_url: string;
|
|
20
20
|
};
|
|
21
21
|
};
|
|
22
22
|
source: string;
|
|
23
23
|
status: PROJECT_STATUS;
|
|
24
24
|
project: Ref<IProject>;
|
|
25
|
-
user
|
|
26
|
-
team
|
|
25
|
+
user: Ref<IUser>;
|
|
26
|
+
team: Ref<ITeam>;
|
|
27
27
|
jobs: {
|
|
28
28
|
id: number;
|
|
29
29
|
name: string;
|
package/dist/types/member.d.ts
CHANGED
|
@@ -6,11 +6,11 @@ import { IProjectEnvironment } from "./project-environment";
|
|
|
6
6
|
import { Ref } from "./ref";
|
|
7
7
|
export interface IMember extends Document {
|
|
8
8
|
/** Absent until an invited member registers; `email` identifies them until then. */
|
|
9
|
-
user
|
|
9
|
+
user: Ref<IUser>;
|
|
10
10
|
team: Ref<ITeam>;
|
|
11
11
|
role: ROLES;
|
|
12
12
|
accepted: boolean;
|
|
13
|
-
invitedBy
|
|
13
|
+
invitedBy: Ref<IUser>;
|
|
14
14
|
email: string;
|
|
15
15
|
featureOnboarded: boolean;
|
|
16
16
|
permissions: Ref<IMemberPermission>[];
|
|
@@ -39,7 +39,7 @@ export interface IPlanConfiguration extends Document {
|
|
|
39
39
|
unlimited_projects: boolean;
|
|
40
40
|
webhook_enabled: boolean;
|
|
41
41
|
can_deploy_all_applications: boolean;
|
|
42
|
-
stripe_prices
|
|
42
|
+
stripe_prices: Record<string, string>;
|
|
43
43
|
storage_bucket_enabled: boolean;
|
|
44
44
|
storage_bucket_quota_gb: number;
|
|
45
45
|
sandbox_max_count: number;
|
|
@@ -8,12 +8,12 @@ export interface IPlatformApiKey extends Document {
|
|
|
8
8
|
key_id: string;
|
|
9
9
|
key_prefix: string;
|
|
10
10
|
owner_id: Ref<IUser>;
|
|
11
|
-
team_id
|
|
12
|
-
subscription_id
|
|
11
|
+
team_id: Ref<ITeam> | null;
|
|
12
|
+
subscription_id: Types.ObjectId | null;
|
|
13
13
|
permissions: string[];
|
|
14
14
|
status: PlatformApiKeyStatus;
|
|
15
|
-
expires_at
|
|
16
|
-
last_used_at
|
|
15
|
+
expires_at: Date | null;
|
|
16
|
+
last_used_at: Date | null;
|
|
17
17
|
createdAt: Date;
|
|
18
18
|
updatedAt: Date;
|
|
19
19
|
}
|
|
@@ -26,15 +26,15 @@ export interface IPgBouncerConfig {
|
|
|
26
26
|
}
|
|
27
27
|
export interface IProject extends Document {
|
|
28
28
|
name: string;
|
|
29
|
-
healthCheckPath
|
|
30
|
-
preStartCommand
|
|
29
|
+
healthCheckPath: string;
|
|
30
|
+
preStartCommand: string;
|
|
31
31
|
backupEnabled: boolean;
|
|
32
32
|
backup_mode: "automatic" | "manual";
|
|
33
33
|
backup_schedule: string;
|
|
34
34
|
http2: boolean;
|
|
35
|
-
free_tier_expires_at
|
|
36
|
-
free_tier_expiry_notified_at
|
|
37
|
-
buildCacheEnabled
|
|
35
|
+
free_tier_expires_at: Date | null;
|
|
36
|
+
free_tier_expiry_notified_at: Date | null;
|
|
37
|
+
buildCacheEnabled: boolean;
|
|
38
38
|
alerting_enabled: boolean;
|
|
39
39
|
logDrainsEnabled: boolean;
|
|
40
40
|
domains: Array<Ref<IDomain>>;
|
|
@@ -47,20 +47,20 @@ export interface IProject extends Document {
|
|
|
47
47
|
tlsEnabled: boolean;
|
|
48
48
|
sendReport: boolean;
|
|
49
49
|
pgbouncerEnabled: boolean;
|
|
50
|
-
pgbouncerConfig
|
|
51
|
-
tlsEnabledAt
|
|
52
|
-
tlsCaObjectKey
|
|
53
|
-
tlsServerCertExpiresAt
|
|
54
|
-
tlsHost
|
|
55
|
-
tlsPort
|
|
56
|
-
tlsSslModeHint
|
|
50
|
+
pgbouncerConfig: IPgBouncerConfig | null;
|
|
51
|
+
tlsEnabledAt: Date | null;
|
|
52
|
+
tlsCaObjectKey: string | null;
|
|
53
|
+
tlsServerCertExpiresAt: Date | null;
|
|
54
|
+
tlsHost: string | null;
|
|
55
|
+
tlsPort: number | null;
|
|
56
|
+
tlsSslModeHint: string | null;
|
|
57
57
|
dbImage: Ref<IDbImage>;
|
|
58
58
|
public: boolean;
|
|
59
59
|
installCommand: string;
|
|
60
60
|
buildCommand: string;
|
|
61
61
|
startCommand: string;
|
|
62
62
|
outputDirectory: string;
|
|
63
|
-
runtimeVersions
|
|
63
|
+
runtimeVersions: RuntimeVersions | null;
|
|
64
64
|
workBenchEnabled: boolean;
|
|
65
65
|
user_id: Ref<IUser>;
|
|
66
66
|
monitor_id: string;
|
|
@@ -74,8 +74,8 @@ export interface IProject extends Document {
|
|
|
74
74
|
installationId: string | number;
|
|
75
75
|
git: GIT_TYPE;
|
|
76
76
|
} | null;
|
|
77
|
-
rootDir
|
|
78
|
-
dockerfile
|
|
77
|
+
rootDir: string;
|
|
78
|
+
dockerfile: string;
|
|
79
79
|
team: Ref<ITeam>;
|
|
80
80
|
server: Ref<IServer>;
|
|
81
81
|
isPrivate: boolean;
|
|
@@ -88,10 +88,10 @@ export interface IProject extends Document {
|
|
|
88
88
|
starred: boolean;
|
|
89
89
|
passwordEnabled: boolean;
|
|
90
90
|
disabled: boolean;
|
|
91
|
-
disabled_at
|
|
92
|
-
disabled_by
|
|
91
|
+
disabled_at: Date | null;
|
|
92
|
+
disabled_by: PROJECT_DISABLED_BY | null;
|
|
93
93
|
isDeleted: boolean;
|
|
94
|
-
deletedAt
|
|
94
|
+
deletedAt: Date | null;
|
|
95
95
|
authEnabled: boolean;
|
|
96
96
|
password: string | null;
|
|
97
97
|
deployedInCluster: boolean;
|
|
@@ -106,7 +106,7 @@ export interface IProject extends Document {
|
|
|
106
106
|
tracking_token: string;
|
|
107
107
|
from: string;
|
|
108
108
|
previews: Ref<IPreview>[];
|
|
109
|
-
project_environment
|
|
109
|
+
project_environment: Ref<IProjectEnvironment>;
|
|
110
110
|
inherit_environment_vars: boolean;
|
|
111
111
|
replicas: number;
|
|
112
112
|
vaultPath: string | null;
|
|
@@ -121,20 +121,20 @@ export interface IProject extends Document {
|
|
|
121
121
|
isPaused: boolean;
|
|
122
122
|
paused_by: string | null;
|
|
123
123
|
billable: boolean;
|
|
124
|
-
serviceType
|
|
125
|
-
cronEnabled
|
|
126
|
-
cronExpression
|
|
127
|
-
cronTimezone
|
|
128
|
-
cronCommand
|
|
129
|
-
last_backup_url
|
|
130
|
-
last_backup_at
|
|
124
|
+
serviceType: ServiceType;
|
|
125
|
+
cronEnabled: boolean;
|
|
126
|
+
cronExpression: string | null;
|
|
127
|
+
cronTimezone: string | null;
|
|
128
|
+
cronCommand: string | null;
|
|
129
|
+
last_backup_url: string;
|
|
130
|
+
last_backup_at: Date;
|
|
131
131
|
replica_ready: boolean;
|
|
132
|
-
autoscaling_group
|
|
132
|
+
autoscaling_group: Ref<IAutoScalingGroup>;
|
|
133
133
|
isPaid: boolean;
|
|
134
|
-
hasUpdates
|
|
135
|
-
whiteListedIps
|
|
136
|
-
diskSize
|
|
137
|
-
persistent_mount_path
|
|
134
|
+
hasUpdates: boolean;
|
|
135
|
+
whiteListedIps: string[];
|
|
136
|
+
diskSize: number;
|
|
137
|
+
persistent_mount_path: string;
|
|
138
138
|
volumeMount: string;
|
|
139
139
|
volume: Ref<IVolume> | null;
|
|
140
140
|
}
|
|
@@ -6,8 +6,8 @@ export interface IProjectEnvironment extends Document {
|
|
|
6
6
|
name: string;
|
|
7
7
|
slug: string;
|
|
8
8
|
owner: Ref<IUser>;
|
|
9
|
-
team
|
|
10
|
-
inherit_from
|
|
9
|
+
team: Ref<ITeam>;
|
|
10
|
+
inherit_from: Ref<IProjectEnvironment>;
|
|
11
11
|
isDefault: boolean;
|
|
12
12
|
createdAt: Date;
|
|
13
13
|
updatedAt: Date;
|
|
@@ -1,41 +1,41 @@
|
|
|
1
1
|
import { Document, Types } from "mongoose";
|
|
2
2
|
export type RateLimitMatcher = {
|
|
3
|
-
methods
|
|
4
|
-
paths
|
|
3
|
+
methods: string[];
|
|
4
|
+
paths: string[];
|
|
5
5
|
};
|
|
6
6
|
export type RateLimitZone = {
|
|
7
7
|
name: string;
|
|
8
8
|
key: string;
|
|
9
9
|
window: string;
|
|
10
10
|
events: number;
|
|
11
|
-
matcher
|
|
12
|
-
ipv4Prefix
|
|
13
|
-
ipv6Prefix
|
|
11
|
+
matcher: RateLimitMatcher;
|
|
12
|
+
ipv4Prefix: number;
|
|
13
|
+
ipv6Prefix: number;
|
|
14
14
|
};
|
|
15
15
|
export type DistributedRateLimitConfig = {
|
|
16
16
|
enabled: boolean;
|
|
17
|
-
readInterval
|
|
18
|
-
writeInterval
|
|
19
|
-
purgeAge
|
|
17
|
+
readInterval: string;
|
|
18
|
+
writeInterval: string;
|
|
19
|
+
purgeAge: string;
|
|
20
20
|
};
|
|
21
21
|
export type RatelimitConfig = {
|
|
22
22
|
enabled: boolean;
|
|
23
23
|
zones: RateLimitZone[];
|
|
24
|
-
distributed
|
|
25
|
-
logKey
|
|
26
|
-
disableMetrics
|
|
27
|
-
jitter
|
|
28
|
-
sweepInterval
|
|
24
|
+
distributed: DistributedRateLimitConfig;
|
|
25
|
+
logKey: boolean;
|
|
26
|
+
disableMetrics: boolean;
|
|
27
|
+
jitter: number;
|
|
28
|
+
sweepInterval: string;
|
|
29
29
|
};
|
|
30
30
|
export interface IRatelimit extends Document {
|
|
31
31
|
project: Types.ObjectId;
|
|
32
32
|
enabled: boolean;
|
|
33
33
|
zones: RateLimitZone[];
|
|
34
|
-
distributed
|
|
34
|
+
distributed: DistributedRateLimitConfig;
|
|
35
35
|
logKey: boolean;
|
|
36
36
|
disableMetrics: boolean;
|
|
37
|
-
jitter
|
|
38
|
-
sweepInterval
|
|
37
|
+
jitter: number;
|
|
38
|
+
sweepInterval: string;
|
|
39
39
|
createdAt: Date;
|
|
40
40
|
updatedAt: Date;
|
|
41
41
|
}
|
package/dist/types/ref.d.ts
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { Types } from "mongoose";
|
|
2
2
|
/**
|
|
3
|
-
* A Mongoose reference field. Holds an `ObjectId` unless the query
|
|
4
|
-
*
|
|
3
|
+
* A Mongoose reference field. Holds an `ObjectId` unless the query that loaded
|
|
4
|
+
* the document populated it. Type that query's result as `Populated<T, K>`
|
|
5
|
+
* (or a named alias of it) so callers already know which refs are documents.
|
|
5
6
|
*/
|
|
6
7
|
export type Ref<T> = T | Types.ObjectId;
|
|
7
8
|
type PopulatedField<V> = V extends (infer E)[] ? Exclude<E, Types.ObjectId>[] : Exclude<V, Types.ObjectId>;
|
package/dist/types/region.d.ts
CHANGED
|
@@ -2,31 +2,31 @@ import { Types, Document } from "mongoose";
|
|
|
2
2
|
import { REGION_CONTINENT, VOLUME_BACKEND } from "../enum";
|
|
3
3
|
export type RegionType = "web" | "database" | "sandbox";
|
|
4
4
|
export interface IRegionCsiConfig {
|
|
5
|
-
plugin_id
|
|
6
|
-
topology_path
|
|
7
|
-
require_topology
|
|
8
|
-
availability_zone
|
|
9
|
-
parameters
|
|
10
|
-
parameters_env
|
|
11
|
-
fs_type
|
|
12
|
-
attachment_modes
|
|
5
|
+
plugin_id: string;
|
|
6
|
+
topology_path: string;
|
|
7
|
+
require_topology: boolean;
|
|
8
|
+
availability_zone: string;
|
|
9
|
+
parameters: Record<string, string>;
|
|
10
|
+
parameters_env: Record<string, string>;
|
|
11
|
+
fs_type: string;
|
|
12
|
+
attachment_modes: string[];
|
|
13
13
|
}
|
|
14
14
|
export interface IRegion extends Document {
|
|
15
15
|
_id: Types.ObjectId;
|
|
16
16
|
name: string;
|
|
17
17
|
country: string;
|
|
18
18
|
cname: string;
|
|
19
|
-
continent
|
|
20
|
-
enabled
|
|
19
|
+
continent: REGION_CONTINENT;
|
|
20
|
+
enabled: boolean;
|
|
21
21
|
dbVolumePath: string;
|
|
22
22
|
is_paid: boolean;
|
|
23
23
|
logo: string;
|
|
24
24
|
provider: string;
|
|
25
25
|
provider_identifier: string;
|
|
26
26
|
storage_pricing_factor: number;
|
|
27
|
-
floating_ip
|
|
28
|
-
type
|
|
29
|
-
ceph_cluster_id
|
|
30
|
-
volume_backend
|
|
31
|
-
csi
|
|
27
|
+
floating_ip: string;
|
|
28
|
+
type: RegionType;
|
|
29
|
+
ceph_cluster_id: string;
|
|
30
|
+
volume_backend: VOLUME_BACKEND;
|
|
31
|
+
csi: IRegionCsiConfig;
|
|
32
32
|
}
|
package/dist/types/role.d.ts
CHANGED
|
@@ -4,7 +4,7 @@ import { IPermission } from "./permission";
|
|
|
4
4
|
import { Ref } from "./ref";
|
|
5
5
|
export interface IRole extends Document {
|
|
6
6
|
type: ROLES;
|
|
7
|
-
description
|
|
8
|
-
is_custom
|
|
7
|
+
description: string;
|
|
8
|
+
is_custom: boolean;
|
|
9
9
|
permissions: Ref<IPermission>[];
|
|
10
10
|
}
|
|
@@ -19,8 +19,8 @@ export interface ISandboxUsageSegment extends Document {
|
|
|
19
19
|
current: ISandboxUsageSegmentCurrent;
|
|
20
20
|
costs: ISandboxUsageSegmentCosts;
|
|
21
21
|
billed: boolean;
|
|
22
|
-
region
|
|
23
|
-
template
|
|
22
|
+
region: string;
|
|
23
|
+
template: string;
|
|
24
24
|
createdAt: Date;
|
|
25
25
|
updatedAt: Date;
|
|
26
26
|
}
|
package/dist/types/sandbox.d.ts
CHANGED
|
@@ -35,7 +35,7 @@ export interface ISandbox extends Document {
|
|
|
35
35
|
destroy_timeout: string | null;
|
|
36
36
|
one_shot: boolean;
|
|
37
37
|
block_outbound: boolean;
|
|
38
|
-
egress
|
|
38
|
+
egress: ISandboxEgress | null;
|
|
39
39
|
persistent: boolean;
|
|
40
40
|
persistent_disk_gb: number | null;
|
|
41
41
|
csi_volume_id: string | null;
|
package/dist/types/server.d.ts
CHANGED
|
@@ -5,13 +5,13 @@ import { Ref } from "./ref";
|
|
|
5
5
|
export interface IServer extends Document {
|
|
6
6
|
name: string;
|
|
7
7
|
url: string;
|
|
8
|
-
grpc_address
|
|
9
|
-
ipv6
|
|
10
|
-
domain
|
|
8
|
+
grpc_address: string;
|
|
9
|
+
ipv6: string;
|
|
10
|
+
domain: string;
|
|
11
11
|
node_id: string;
|
|
12
12
|
force_deactivation: boolean;
|
|
13
13
|
userId: mongoose.Types.ObjectId;
|
|
14
|
-
teamId
|
|
14
|
+
teamId: mongoose.Types.ObjectId;
|
|
15
15
|
ip_address: string;
|
|
16
16
|
private_ip_address: string;
|
|
17
17
|
tunnel_token: string;
|
|
@@ -21,15 +21,15 @@ export interface IServer extends Document {
|
|
|
21
21
|
default: boolean;
|
|
22
22
|
tag: string;
|
|
23
23
|
region: Ref<IRegion>;
|
|
24
|
-
webhook_url
|
|
24
|
+
webhook_url: string;
|
|
25
25
|
is_custom_provision: boolean;
|
|
26
|
-
firewall_id
|
|
26
|
+
firewall_id: string;
|
|
27
27
|
specifications: Record<any, any>;
|
|
28
|
-
plugin_id
|
|
28
|
+
plugin_id: string;
|
|
29
29
|
provider: string;
|
|
30
|
-
provider_location
|
|
31
|
-
provider_identifier
|
|
32
|
-
topology_path
|
|
33
|
-
cert_storage_path
|
|
30
|
+
provider_location: string;
|
|
31
|
+
provider_identifier: string;
|
|
32
|
+
topology_path: string;
|
|
33
|
+
cert_storage_path: string | null;
|
|
34
34
|
meta: Record<any, any>;
|
|
35
35
|
}
|
package/dist/types/storage.d.ts
CHANGED
|
@@ -4,29 +4,29 @@ import { Ref } from "./ref";
|
|
|
4
4
|
import { StorageBucketStatus, StorageCredentialRole, StorageCredentialStatus, StorageMigrationStatus, StorageTokenStatus, StorageUploadStatus } from "../enum";
|
|
5
5
|
export type StorageTokenPermission = "read" | "write" | "delete" | "list" | "admin";
|
|
6
6
|
export type StorageCorsRule = {
|
|
7
|
-
allowedHeaders
|
|
8
|
-
allowedMethods
|
|
9
|
-
allowedOrigins
|
|
10
|
-
exposeHeaders
|
|
11
|
-
maxAgeSeconds
|
|
7
|
+
allowedHeaders: string[];
|
|
8
|
+
allowedMethods: string[];
|
|
9
|
+
allowedOrigins: string[];
|
|
10
|
+
exposeHeaders: string[];
|
|
11
|
+
maxAgeSeconds: number;
|
|
12
12
|
[key: string]: unknown;
|
|
13
13
|
};
|
|
14
14
|
export type StorageLifecycleRule = {
|
|
15
|
-
id
|
|
16
|
-
prefix
|
|
17
|
-
expirationDays
|
|
18
|
-
transitions
|
|
15
|
+
id: string;
|
|
16
|
+
prefix: string;
|
|
17
|
+
expirationDays: number;
|
|
18
|
+
transitions: StorageLifecycleRuleTransition[];
|
|
19
19
|
};
|
|
20
20
|
export type StorageLifecycleRuleTransition = {
|
|
21
|
-
days
|
|
22
|
-
storageClass
|
|
21
|
+
days: number;
|
|
22
|
+
storageClass: string;
|
|
23
23
|
};
|
|
24
24
|
export interface IStorageBucket extends Document {
|
|
25
25
|
name: string;
|
|
26
|
-
project
|
|
27
|
-
project_environment
|
|
28
|
-
user_id
|
|
29
|
-
team
|
|
26
|
+
project: Types.ObjectId;
|
|
27
|
+
project_environment: Ref<IProjectEnvironment>;
|
|
28
|
+
user_id: Types.ObjectId;
|
|
29
|
+
team: Types.ObjectId;
|
|
30
30
|
bucket_name: string;
|
|
31
31
|
is_public: boolean;
|
|
32
32
|
versioning: boolean;
|
|
@@ -46,30 +46,30 @@ export interface IStorageBucket extends Document {
|
|
|
46
46
|
}
|
|
47
47
|
export interface IStorageObject extends Document {
|
|
48
48
|
bucket: Types.ObjectId;
|
|
49
|
-
project
|
|
50
|
-
project_environment
|
|
49
|
+
project: Types.ObjectId;
|
|
50
|
+
project_environment: Ref<IProjectEnvironment>;
|
|
51
51
|
key: string;
|
|
52
52
|
path: string;
|
|
53
|
-
content_type
|
|
53
|
+
content_type: string;
|
|
54
54
|
size: number;
|
|
55
|
-
etag
|
|
56
|
-
public_url
|
|
57
|
-
last_modified
|
|
55
|
+
etag: string;
|
|
56
|
+
public_url: string;
|
|
57
|
+
last_modified: Date;
|
|
58
58
|
createdAt: Date;
|
|
59
59
|
updatedAt: Date;
|
|
60
60
|
}
|
|
61
61
|
export interface IStorageUpload extends Document {
|
|
62
62
|
bucket: Types.ObjectId;
|
|
63
|
-
project
|
|
64
|
-
project_environment
|
|
63
|
+
project: Types.ObjectId;
|
|
64
|
+
project_environment: Ref<IProjectEnvironment>;
|
|
65
65
|
key: string;
|
|
66
66
|
path: string;
|
|
67
|
-
upload_id
|
|
68
|
-
content_type
|
|
67
|
+
upload_id: string;
|
|
68
|
+
content_type: string;
|
|
69
69
|
size: number;
|
|
70
70
|
status: StorageUploadStatus;
|
|
71
71
|
expires_at: Date;
|
|
72
|
-
completed_at
|
|
72
|
+
completed_at: Date;
|
|
73
73
|
createdAt: Date;
|
|
74
74
|
updatedAt: Date;
|
|
75
75
|
}
|
|
@@ -77,46 +77,46 @@ export interface IStorageToken extends Document {
|
|
|
77
77
|
name: string;
|
|
78
78
|
token_hash: string;
|
|
79
79
|
prefix: string;
|
|
80
|
-
project
|
|
80
|
+
project: Types.ObjectId;
|
|
81
81
|
buckets: Types.ObjectId[];
|
|
82
|
-
user_id
|
|
83
|
-
team
|
|
82
|
+
user_id: Types.ObjectId;
|
|
83
|
+
team: Types.ObjectId;
|
|
84
84
|
permissions: StorageTokenPermission[];
|
|
85
85
|
status: StorageTokenStatus;
|
|
86
|
-
last_used_at
|
|
87
|
-
expires_at
|
|
86
|
+
last_used_at: Date;
|
|
87
|
+
expires_at: Date;
|
|
88
88
|
createdAt: Date;
|
|
89
89
|
updatedAt: Date;
|
|
90
90
|
}
|
|
91
91
|
export interface IStorageCredential extends Document {
|
|
92
92
|
name: string;
|
|
93
93
|
bucket: Types.ObjectId;
|
|
94
|
-
project
|
|
95
|
-
project_environment
|
|
96
|
-
user_id
|
|
97
|
-
team
|
|
94
|
+
project: Types.ObjectId;
|
|
95
|
+
project_environment: Ref<IProjectEnvironment>;
|
|
96
|
+
user_id: Types.ObjectId;
|
|
97
|
+
team: Types.ObjectId;
|
|
98
98
|
provider: string;
|
|
99
99
|
provider_org_id: string;
|
|
100
100
|
access_key_id: string;
|
|
101
101
|
policy_names: string[];
|
|
102
102
|
role: StorageCredentialRole;
|
|
103
103
|
status: StorageCredentialStatus;
|
|
104
|
-
last_rotated_at
|
|
105
|
-
revoked_at
|
|
104
|
+
last_rotated_at: Date;
|
|
105
|
+
revoked_at: Date;
|
|
106
106
|
createdAt: Date;
|
|
107
107
|
updatedAt: Date;
|
|
108
108
|
}
|
|
109
109
|
export interface IStorageMigration extends Document {
|
|
110
110
|
bucket: Types.ObjectId;
|
|
111
|
-
project
|
|
112
|
-
project_environment
|
|
113
|
-
user_id
|
|
114
|
-
team
|
|
111
|
+
project: Types.ObjectId;
|
|
112
|
+
project_environment: Ref<IProjectEnvironment>;
|
|
113
|
+
user_id: Types.ObjectId;
|
|
114
|
+
team: Types.ObjectId;
|
|
115
115
|
source_bucket: string;
|
|
116
116
|
source_region: string;
|
|
117
|
-
source_endpoint
|
|
118
|
-
source_prefix
|
|
119
|
-
destination_prefix
|
|
117
|
+
source_endpoint: string;
|
|
118
|
+
source_prefix: string;
|
|
119
|
+
destination_prefix: string;
|
|
120
120
|
vault_path: string;
|
|
121
121
|
status: StorageMigrationStatus;
|
|
122
122
|
total_objects: number;
|
|
@@ -124,12 +124,12 @@ export interface IStorageMigration extends Document {
|
|
|
124
124
|
failed_objects: number;
|
|
125
125
|
total_bytes: number;
|
|
126
126
|
copied_bytes: number;
|
|
127
|
-
continuation_token
|
|
128
|
-
last_source_key
|
|
129
|
-
error_message
|
|
130
|
-
started_at
|
|
131
|
-
completed_at
|
|
132
|
-
cancelled_at
|
|
127
|
+
continuation_token: string;
|
|
128
|
+
last_source_key: string;
|
|
129
|
+
error_message: string;
|
|
130
|
+
started_at: Date;
|
|
131
|
+
completed_at: Date;
|
|
132
|
+
cancelled_at: Date;
|
|
133
133
|
createdAt: Date;
|
|
134
134
|
updatedAt: Date;
|
|
135
135
|
}
|