@vertracloud/api-types 0.0.14 → 0.0.15
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/common/v1.d.ts +21 -19
- package/common/v1.js.map +1 -1
- package/package.json +2 -1
- package/payloads/v1/activity.d.ts +3 -3
- package/payloads/v1/activity.js.map +1 -1
- package/payloads/v1/application.d.ts +24 -25
- package/payloads/v1/application.js.map +1 -1
- package/payloads/v1/database.d.ts +13 -14
- package/payloads/v1/database.js.map +1 -1
- package/payloads/v1/index.js.map +1 -1
- package/payloads/v1/organization.d.ts +4 -4
- package/payloads/v1/organization.js.map +1 -1
- package/payloads/v1/status.d.ts +2 -2
- package/payloads/v1/status.js.map +1 -1
- package/payloads/v1/user.d.ts +5 -5
- package/payloads/v1/user.js.map +1 -1
- package/rest/v1/activity.d.ts +2 -2
- package/rest/v1/activity.js.map +1 -1
- package/rest/v1/application.d.ts +15 -15
- package/rest/v1/application.js.map +1 -1
- package/rest/v1/database.d.ts +8 -8
- package/rest/v1/database.js.map +1 -1
- package/rest/v1/organization.d.ts +2 -2
- package/rest/v1/organization.js.map +1 -1
- package/rest/v1/status.d.ts +1 -1
- package/rest/v1/status.js.map +1 -1
- package/rest/v1/user.d.ts +1 -1
- package/rest/v1/user.js.map +1 -1
- package/v1.d.ts +1 -1
- package/v1.js.map +1 -1
package/common/v1.d.ts
CHANGED
|
@@ -1,17 +1,27 @@
|
|
|
1
|
-
type APIPayloadStatus = "error" | "success";
|
|
2
1
|
type SnowFlake = string;
|
|
3
|
-
interface
|
|
4
|
-
|
|
5
|
-
|
|
2
|
+
interface PaginationMeta<T> {
|
|
3
|
+
data: T[];
|
|
4
|
+
total_count: number;
|
|
5
|
+
page: number;
|
|
6
|
+
limit: number;
|
|
7
|
+
total_pages: number;
|
|
8
|
+
has_next_page: boolean;
|
|
9
|
+
has_previous_page: boolean;
|
|
10
|
+
}
|
|
11
|
+
interface APIPaginatedPayload<T> {
|
|
12
|
+
response: PaginationMeta<T>;
|
|
13
|
+
}
|
|
14
|
+
interface APIPayload<T> {
|
|
15
|
+
response?: T;
|
|
6
16
|
code?: string;
|
|
17
|
+
message?: string;
|
|
7
18
|
}
|
|
8
|
-
interface
|
|
9
|
-
status:
|
|
19
|
+
interface APIReturnService<T> {
|
|
20
|
+
status: number;
|
|
21
|
+
payload: APIPayload<T>;
|
|
10
22
|
}
|
|
11
|
-
interface
|
|
12
|
-
|
|
13
|
-
response: TResponse;
|
|
14
|
-
meta?: PaginationMeta;
|
|
23
|
+
interface APIPayloadMessageOnly {
|
|
24
|
+
message: string;
|
|
15
25
|
}
|
|
16
26
|
interface APIHeaders {
|
|
17
27
|
Authorization: string;
|
|
@@ -21,14 +31,6 @@ type DeepPartial<T> = T extends object ? {
|
|
|
21
31
|
} : T;
|
|
22
32
|
type APIVersion<TVersion extends number> = `v${TVersion}`;
|
|
23
33
|
type ISODateString = string;
|
|
24
|
-
interface PaginationMeta {
|
|
25
|
-
total_count: number;
|
|
26
|
-
page: number;
|
|
27
|
-
limit: number;
|
|
28
|
-
total_pages: number;
|
|
29
|
-
has_next_page: boolean;
|
|
30
|
-
has_previous_page: boolean;
|
|
31
|
-
}
|
|
32
34
|
type UserPlan = 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8;
|
|
33
35
|
declare const UserPlan: {
|
|
34
36
|
readonly FREE: 1;
|
|
@@ -41,4 +43,4 @@ declare const UserPlan: {
|
|
|
41
43
|
readonly ENTERPRISE_32: 8;
|
|
42
44
|
};
|
|
43
45
|
|
|
44
|
-
export { type APIHeaders, type APIPaginatedPayload, type APIPayload, type
|
|
46
|
+
export { type APIHeaders, type APIPaginatedPayload, type APIPayload, type APIPayloadMessageOnly, type APIReturnService, type APIVersion, type DeepPartial, type ISODateString, type PaginationMeta, type SnowFlake, UserPlan };
|
package/common/v1.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["v1.ts"],"sourcesContent":["export type
|
|
1
|
+
{"version":3,"sources":["v1.ts"],"sourcesContent":["export type SnowFlake = string;\n\nexport interface PaginationMeta<T> {\n\tdata: T[];\n\ttotal_count: number;\n\tpage: number;\n\tlimit: number;\n\ttotal_pages: number;\n\thas_next_page: boolean;\n\thas_previous_page: boolean;\n}\n\nexport interface APIPaginatedPayload<T> {\n\tresponse: PaginationMeta<T>;\n}\n\nexport interface APIPayload<T> {\n\tresponse?: T;\n\tcode?: string;\n\tmessage?: string;\n}\n\nexport interface APIReturnService<T> {\n\tstatus: number;\n\tpayload: APIPayload<T>;\n}\n\nexport interface APIPayloadMessageOnly {\n\tmessage: string;\n}\n\nexport interface APIHeaders {\n\tAuthorization: string;\n}\n\nexport type DeepPartial<T> = T extends object\n\t? {\n\t\t\t[P in keyof T]?: DeepPartial<T[P]>;\n\t\t}\n\t: T;\n\nexport type APIVersion<TVersion extends number> = `v${TVersion}`;\n\nexport type ISODateString = string;\n\nexport type UserPlan = 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8;\nexport const UserPlan = {\n\tFREE: 1,\n\tECONOMY: 2,\n\tPRO: 3,\n\tSCALE: 4,\n\tENTERPRISE_4: 5,\n\tENTERPRISE_8: 6,\n\tENTERPRISE_16: 7,\n\tENTERPRISE_32: 8,\n} as const;\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AA8CO,IAAM,WAAW;AAAA,EACvB,MAAM;AAAA,EACN,SAAS;AAAA,EACT,KAAK;AAAA,EACL,OAAO;AAAA,EACP,cAAc;AAAA,EACd,cAAc;AAAA,EACd,eAAe;AAAA,EACf,eAAe;AAChB;","names":[]}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vertracloud/api-types",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.15",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "Typings for Vertra Cloud API",
|
|
6
6
|
"homepage": "https://github.com/vertracloud/api-types#readme",
|
|
@@ -39,6 +39,7 @@
|
|
|
39
39
|
"check-types": "tsc --noEmit",
|
|
40
40
|
"prepublishOnly": "run-s clean lint build",
|
|
41
41
|
"postpublish": "npm run clean",
|
|
42
|
+
"pack": "npm run clean && npm run build && npm pack && npm run clean",
|
|
42
43
|
"release": "npm run build && changeset publish"
|
|
43
44
|
},
|
|
44
45
|
"license": "MIT",
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { SnowFlake, ISODateString } from '../../common/v1.js';
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
|
-
* @see https://docs.vertracloud.
|
|
4
|
+
* @see https://docs.vertracloud.app/api-reference/endpoint/activities
|
|
5
5
|
*/
|
|
6
6
|
type ActivityStatus = "success" | "warning" | "error" | "info";
|
|
7
7
|
declare const ActivityStatus: {
|
|
@@ -11,7 +11,7 @@ declare const ActivityStatus: {
|
|
|
11
11
|
readonly Info: "info";
|
|
12
12
|
};
|
|
13
13
|
/**
|
|
14
|
-
* @see https://docs.vertracloud.
|
|
14
|
+
* @see https://docs.vertracloud.app/api-reference/endpoint/activities
|
|
15
15
|
*/
|
|
16
16
|
type ActivityTargetType = "app" | "database" | "organization" | "audit";
|
|
17
17
|
declare const ActivityTargetType: {
|
|
@@ -21,7 +21,7 @@ declare const ActivityTargetType: {
|
|
|
21
21
|
readonly Audit: "audit";
|
|
22
22
|
};
|
|
23
23
|
/**
|
|
24
|
-
* @see https://docs.vertracloud.
|
|
24
|
+
* @see https://docs.vertracloud.app/api-reference/endpoint/activities
|
|
25
25
|
*/
|
|
26
26
|
interface APIActivity {
|
|
27
27
|
id: SnowFlake;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["activity.ts"],"sourcesContent":["import type { ISODateString, SnowFlake } from \"../../v1\";\n\n/**\n * @see https://docs.vertracloud.
|
|
1
|
+
{"version":3,"sources":["activity.ts"],"sourcesContent":["import type { ISODateString, SnowFlake } from \"../../v1\";\n\n/**\n * @see https://docs.vertracloud.app/api-reference/endpoint/activities\n */\nexport type ActivityStatus = \"success\" | \"warning\" | \"error\" | \"info\";\nexport const ActivityStatus = {\n\tSuccess: \"success\",\n\tWarning: \"warning\",\n\tError: \"error\",\n\tInfo: \"info\",\n} as const;\n\n/**\n * @see https://docs.vertracloud.app/api-reference/endpoint/activities\n */\nexport type ActivityTargetType = \"app\" | \"database\" | \"organization\" | \"audit\";\nexport const ActivityTargetType = {\n\tApp: \"app\",\n\tDatabase: \"database\",\n\tOrganization: \"organization\",\n\tAudit: \"audit\",\n} as const;\n\n/**\n * @see https://docs.vertracloud.app/api-reference/endpoint/activities\n */\nexport interface APIActivity {\n\tid: SnowFlake;\n\tstatus: ActivityStatus;\n\ttarget_id: string;\n\ttarget_type: ActivityTargetType;\n\tauthor_id: SnowFlake | null;\n\ttitle: string;\n\tmessage: string;\n\ttimestamp: ISODateString;\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAMO,IAAM,iBAAiB;AAAA,EAC7B,SAAS;AAAA,EACT,SAAS;AAAA,EACT,OAAO;AAAA,EACP,MAAM;AACP;AAMO,IAAM,qBAAqB;AAAA,EACjC,KAAK;AAAA,EACL,UAAU;AAAA,EACV,cAAc;AAAA,EACd,OAAO;AACR;","names":[]}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ISODateString, SnowFlake, UserPlan } from '../../common/v1.js';
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
|
-
* @see https://docs.vertracloud.
|
|
4
|
+
* @see https://docs.vertracloud.app/api-reference/endpoint/applications
|
|
5
5
|
*/
|
|
6
6
|
type ApplicationLanguage = "nodejs" | "python";
|
|
7
7
|
declare const ApplicationLanguage: {
|
|
@@ -9,7 +9,7 @@ declare const ApplicationLanguage: {
|
|
|
9
9
|
readonly PYTHON: "python";
|
|
10
10
|
};
|
|
11
11
|
/**
|
|
12
|
-
* @see https://docs.vertracloud.
|
|
12
|
+
* @see https://docs.vertracloud.app/api-reference/endpoint/applications
|
|
13
13
|
*/
|
|
14
14
|
type ApplicationStatus = "up" | "down";
|
|
15
15
|
declare const ApplicationStatus: {
|
|
@@ -17,7 +17,7 @@ declare const ApplicationStatus: {
|
|
|
17
17
|
readonly DOWN: "down";
|
|
18
18
|
};
|
|
19
19
|
/**
|
|
20
|
-
* @see https://docs.vertracloud.
|
|
20
|
+
* @see https://docs.vertracloud.app/api-reference/endpoint/applications
|
|
21
21
|
*/
|
|
22
22
|
type ApplicationCommitStatus = 1 | 2 | 3 | 4;
|
|
23
23
|
declare const ApplicationCommitStatus: {
|
|
@@ -27,15 +27,15 @@ declare const ApplicationCommitStatus: {
|
|
|
27
27
|
readonly FAILED: 4;
|
|
28
28
|
};
|
|
29
29
|
/**
|
|
30
|
-
* @see https://docs.vertracloud.
|
|
30
|
+
* @see https://docs.vertracloud.app/api-reference/endpoint/applications
|
|
31
31
|
*/
|
|
32
|
-
type ApplicationCluster =
|
|
32
|
+
type ApplicationCluster = number;
|
|
33
33
|
declare const ApplicationCluster: {
|
|
34
34
|
readonly USA_1: 1;
|
|
35
35
|
readonly USA_2: 2;
|
|
36
36
|
};
|
|
37
37
|
/**
|
|
38
|
-
* @see https://docs.vertracloud.
|
|
38
|
+
* @see https://docs.vertracloud.app/api-reference/endpoint/applications
|
|
39
39
|
*/
|
|
40
40
|
type ApplicationType = 1 | 2;
|
|
41
41
|
declare const ApplicationType: {
|
|
@@ -43,7 +43,7 @@ declare const ApplicationType: {
|
|
|
43
43
|
readonly WEBSITE: 2;
|
|
44
44
|
};
|
|
45
45
|
/**
|
|
46
|
-
* @see https://docs.vertracloud.
|
|
46
|
+
* @see https://docs.vertracloud.app/api-reference/endpoint/applications
|
|
47
47
|
*/
|
|
48
48
|
interface ApplicationCommit {
|
|
49
49
|
version: string;
|
|
@@ -51,7 +51,7 @@ interface ApplicationCommit {
|
|
|
51
51
|
notes: string;
|
|
52
52
|
}
|
|
53
53
|
/**
|
|
54
|
-
* @see https://docs.vertracloud.
|
|
54
|
+
* @see https://docs.vertracloud.app/api-reference/endpoint/applications
|
|
55
55
|
*/
|
|
56
56
|
type ApplicationFileType = "file" | "directory";
|
|
57
57
|
declare const ApplicationFileType: {
|
|
@@ -59,7 +59,7 @@ declare const ApplicationFileType: {
|
|
|
59
59
|
readonly DIRECTORY: "directory";
|
|
60
60
|
};
|
|
61
61
|
/**
|
|
62
|
-
* @see https://docs.vertracloud.
|
|
62
|
+
* @see https://docs.vertracloud.app/api-reference/endpoint/applications
|
|
63
63
|
*/
|
|
64
64
|
type ApplicationVersion = "recommended" | "latest";
|
|
65
65
|
declare const ApplicationVersion: {
|
|
@@ -67,14 +67,14 @@ declare const ApplicationVersion: {
|
|
|
67
67
|
readonly LATEST: "latest";
|
|
68
68
|
};
|
|
69
69
|
/**
|
|
70
|
-
* @see https://docs.vertracloud.
|
|
70
|
+
* @see https://docs.vertracloud.app/api-reference/endpoint/applications
|
|
71
71
|
*/
|
|
72
72
|
type ApplicationFileContentType = "buffer";
|
|
73
73
|
declare const ApplicationFileContentType: {
|
|
74
74
|
readonly BUFFER: "buffer";
|
|
75
75
|
};
|
|
76
76
|
/**
|
|
77
|
-
* @see https://docs.vertracloud.
|
|
77
|
+
* @see https://docs.vertracloud.app/api-reference/endpoint/applications
|
|
78
78
|
*/
|
|
79
79
|
interface APIApplicationFile {
|
|
80
80
|
type: ApplicationFileType;
|
|
@@ -83,14 +83,14 @@ interface APIApplicationFile {
|
|
|
83
83
|
last_modified: ISODateString;
|
|
84
84
|
}
|
|
85
85
|
/**
|
|
86
|
-
* @see https://docs.vertracloud.
|
|
86
|
+
* @see https://docs.vertracloud.app/api-reference/endpoint/applications
|
|
87
87
|
*/
|
|
88
88
|
interface APIApplicationFileContent {
|
|
89
89
|
type: ApplicationFileContentType;
|
|
90
90
|
data: number[];
|
|
91
91
|
}
|
|
92
92
|
/**
|
|
93
|
-
* @see https://docs.vertracloud.
|
|
93
|
+
* @see https://docs.vertracloud.app/api-reference/endpoint/applications
|
|
94
94
|
*/
|
|
95
95
|
interface APIApplication {
|
|
96
96
|
id: SnowFlake;
|
|
@@ -111,23 +111,24 @@ interface APIApplication {
|
|
|
111
111
|
updated_at: ISODateString;
|
|
112
112
|
}
|
|
113
113
|
/**
|
|
114
|
-
* @see https://docs.vertracloud.
|
|
114
|
+
* @see https://docs.vertracloud.app/api-reference/endpoint/applications
|
|
115
115
|
*/
|
|
116
116
|
interface APIApplicationNetwork {
|
|
117
117
|
total: string;
|
|
118
118
|
now: string;
|
|
119
119
|
}
|
|
120
120
|
/**
|
|
121
|
-
* @see https://docs.vertracloud.
|
|
121
|
+
* @see https://docs.vertracloud.app/api-reference/endpoint/applications
|
|
122
122
|
*/
|
|
123
123
|
interface APIApplicationActivity {
|
|
124
124
|
message: string;
|
|
125
125
|
timestamp: ISODateString;
|
|
126
126
|
}
|
|
127
127
|
/**
|
|
128
|
-
* @see https://docs.vertracloud.
|
|
128
|
+
* @see https://docs.vertracloud.app/api-reference/endpoint/applications
|
|
129
129
|
*/
|
|
130
130
|
interface APIApplicationStatus {
|
|
131
|
+
id: SnowFlake;
|
|
131
132
|
cpu: string;
|
|
132
133
|
ram: string;
|
|
133
134
|
status: ApplicationStatus;
|
|
@@ -135,11 +136,9 @@ interface APIApplicationStatus {
|
|
|
135
136
|
storage: string;
|
|
136
137
|
network: APIApplicationNetwork;
|
|
137
138
|
uptime: number;
|
|
138
|
-
created_at: ISODateString;
|
|
139
|
-
updated_at: ISODateString;
|
|
140
139
|
}
|
|
141
140
|
/**
|
|
142
|
-
* @see https://docs.vertracloud.
|
|
141
|
+
* @see https://docs.vertracloud.app/api-reference/endpoint/applications
|
|
143
142
|
*/
|
|
144
143
|
interface APIApplicationStatusShort {
|
|
145
144
|
id: SnowFlake;
|
|
@@ -148,7 +147,7 @@ interface APIApplicationStatusShort {
|
|
|
148
147
|
running: boolean;
|
|
149
148
|
}
|
|
150
149
|
/**
|
|
151
|
-
* @see https://docs.vertracloud.
|
|
150
|
+
* @see https://docs.vertracloud.app/api-reference/endpoint/applications
|
|
152
151
|
*/
|
|
153
152
|
interface APIApplicationMetric {
|
|
154
153
|
cpu: number;
|
|
@@ -158,7 +157,7 @@ interface APIApplicationMetric {
|
|
|
158
157
|
network: number[];
|
|
159
158
|
}
|
|
160
159
|
/**
|
|
161
|
-
* @see https://docs.vertracloud.
|
|
160
|
+
* @see https://docs.vertracloud.app/api-reference/endpoint/applications
|
|
162
161
|
*/
|
|
163
162
|
interface APIApplicationCommit {
|
|
164
163
|
id: SnowFlake;
|
|
@@ -170,7 +169,7 @@ interface APIApplicationCommit {
|
|
|
170
169
|
date: ISODateString;
|
|
171
170
|
}
|
|
172
171
|
/**
|
|
173
|
-
* @see https://docs.vertracloud.
|
|
172
|
+
* @see https://docs.vertracloud.app/api-reference/endpoint/applications
|
|
174
173
|
*/
|
|
175
174
|
interface APIApplicationBackup {
|
|
176
175
|
id: SnowFlake;
|
|
@@ -180,7 +179,7 @@ interface APIApplicationBackup {
|
|
|
180
179
|
date: ISODateString;
|
|
181
180
|
}
|
|
182
181
|
/**
|
|
183
|
-
* @see https://docs.vertracloud.
|
|
182
|
+
* @see https://docs.vertracloud.app/api-reference/endpoint/applications
|
|
184
183
|
*/
|
|
185
184
|
interface APIGroupedApplicationBackups {
|
|
186
185
|
app_id: SnowFlake;
|
|
@@ -188,7 +187,7 @@ interface APIGroupedApplicationBackups {
|
|
|
188
187
|
backups: APIApplicationBackup[];
|
|
189
188
|
}
|
|
190
189
|
/**
|
|
191
|
-
* @see https://docs.vertracloud.
|
|
190
|
+
* @see https://docs.vertracloud.app/api-reference/endpoint/applications
|
|
192
191
|
*/
|
|
193
192
|
interface APIApplicationConfig {
|
|
194
193
|
NAME: string;
|
|
@@ -201,7 +200,7 @@ interface APIApplicationConfig {
|
|
|
201
200
|
SUBDOMAIN?: string;
|
|
202
201
|
}
|
|
203
202
|
/**
|
|
204
|
-
* @see https://docs.vertracloud.
|
|
203
|
+
* @see https://docs.vertracloud.app/api-reference/endpoint/applications
|
|
205
204
|
*/
|
|
206
205
|
interface APIApplicationEnvironment {
|
|
207
206
|
id: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["application.ts"],"sourcesContent":["import type { ISODateString, SnowFlake, UserPlan } from \"../../v1\";\n\n/**\n * @see https://docs.vertracloud.
|
|
1
|
+
{"version":3,"sources":["application.ts"],"sourcesContent":["import type { ISODateString, SnowFlake, UserPlan } from \"../../v1\";\n\n/**\n * @see https://docs.vertracloud.app/api-reference/endpoint/applications\n */\nexport type ApplicationLanguage = \"nodejs\" | \"python\";\nexport const ApplicationLanguage = {\n\tNODEJS: \"nodejs\",\n\tPYTHON: \"python\",\n} as const;\n\n/**\n * @see https://docs.vertracloud.app/api-reference/endpoint/applications\n */\nexport type ApplicationStatus = \"up\" | \"down\";\nexport const ApplicationStatus = {\n\tUP: \"up\",\n\tDOWN: \"down\",\n} as const;\n\n/**\n * @see https://docs.vertracloud.app/api-reference/endpoint/applications\n */\nexport type ApplicationCommitStatus = 1 | 2 | 3 | 4;\nexport const ApplicationCommitStatus = {\n\tPENDING: 1,\n\tDEPLOYING: 2,\n\tCOMPLETED: 3,\n\tFAILED: 4,\n} as const;\n\n/**\n * @see https://docs.vertracloud.app/api-reference/endpoint/applications\n */\nexport type ApplicationCluster = number;\nexport const ApplicationCluster = {\n\tUSA_1: 1,\n\tUSA_2: 2,\n} as const;\n\n/**\n * @see https://docs.vertracloud.app/api-reference/endpoint/applications\n */\nexport type ApplicationType = 1 | 2;\nexport const ApplicationType = {\n\tBOT: 1,\n\tWEBSITE: 2,\n} as const;\n\n/**\n * @see https://docs.vertracloud.app/api-reference/endpoint/applications\n */\nexport interface ApplicationCommit {\n\tversion: string;\n\ttimestamp: ISODateString;\n\tnotes: string;\n}\n\n/**\n * @see https://docs.vertracloud.app/api-reference/endpoint/applications\n */\nexport type ApplicationFileType = \"file\" | \"directory\";\nexport const ApplicationFileType = {\n\tFILE: \"file\",\n\tDIRECTORY: \"directory\",\n} as const;\n\n/**\n * @see https://docs.vertracloud.app/api-reference/endpoint/applications\n */\nexport type ApplicationVersion = \"recommended\" | \"latest\";\nexport const ApplicationVersion = {\n\tRECOMMENDED: \"recommended\",\n\tLATEST: \"latest\",\n} as const;\n\n/**\n * @see https://docs.vertracloud.app/api-reference/endpoint/applications\n */\nexport type ApplicationFileContentType = \"buffer\";\nexport const ApplicationFileContentType = {\n\tBUFFER: \"buffer\",\n} as const;\n\n/**\n * @see https://docs.vertracloud.app/api-reference/endpoint/applications\n */\nexport interface APIApplicationFile {\n\ttype: ApplicationFileType;\n\tname: string;\n\tsize?: string;\n\tlast_modified: ISODateString;\n}\n\n/**\n * @see https://docs.vertracloud.app/api-reference/endpoint/applications\n */\nexport interface APIApplicationFileContent {\n\ttype: ApplicationFileContentType;\n\tdata: number[];\n}\n\n/**\n * @see https://docs.vertracloud.app/api-reference/endpoint/applications\n */\nexport interface APIApplication {\n\tid: SnowFlake;\n\tcluster: ApplicationCluster;\n\ttype: ApplicationType;\n\tname: string;\n\tdescription: string;\n\towner_id: SnowFlake;\n\towner_plan_id: UserPlan; // Owner App Plan\n\tlanguage: ApplicationLanguage;\n\tram: number;\n\tstatus: ApplicationStatus;\n\tsubdomain: string | null; // example: \"my-app.vertraweb.com\"\n\tcustom_domain: string | null; // example: \"my-app.com.br\"\n\tlast_commit: ISODateString;\n\tlast_backup: ISODateString | null;\n\tcreated_at: ISODateString;\n\tupdated_at: ISODateString;\n}\n\n/**\n * @see https://docs.vertracloud.app/api-reference/endpoint/applications\n */\nexport interface APIApplicationNetwork {\n\ttotal: string;\n\tnow: string;\n}\n\n/**\n * @see https://docs.vertracloud.app/api-reference/endpoint/applications\n */\nexport interface APIApplicationActivity {\n\tmessage: string;\n\ttimestamp: ISODateString;\n}\n\n/**\n * @see https://docs.vertracloud.app/api-reference/endpoint/applications\n */\nexport interface APIApplicationStatus {\n\tid: SnowFlake;\n\tcpu: string;\n\tram: string;\n\tstatus: ApplicationStatus;\n\trunning: boolean;\n\tstorage: string;\n\tnetwork: APIApplicationNetwork;\n\tuptime: number;\n}\n\n/**\n * @see https://docs.vertracloud.app/api-reference/endpoint/applications\n */\nexport interface APIApplicationStatusShort {\n\tid: SnowFlake;\n\tcpu: string;\n\tram: string;\n\trunning: boolean;\n}\n\n/**\n * @see https://docs.vertracloud.app/api-reference/endpoint/applications\n */\nexport interface APIApplicationMetric {\n\tcpu: number;\n\tram: number;\n\tstorage: number;\n\tdate: ISODateString;\n\tnetwork: number[];\n}\n\n/**\n * @see https://docs.vertracloud.app/api-reference/endpoint/applications\n */\nexport interface APIApplicationCommit {\n\tid: SnowFlake;\n\tauthor_id: SnowFlake;\n\tmessage: string;\n\tversion: string;\n\tstatus: ApplicationCommitStatus;\n\tsize: string;\n\tdate: ISODateString;\n}\n\n/**\n * @see https://docs.vertracloud.app/api-reference/endpoint/applications\n */\nexport interface APIApplicationBackup {\n\tid: SnowFlake;\n\tapp_id: SnowFlake;\n\tauthor_id: SnowFlake | null;\n\tsize: string;\n\tdate: ISODateString;\n}\n\n/**\n * @see https://docs.vertracloud.app/api-reference/endpoint/applications\n */\nexport interface APIGroupedApplicationBackups {\n\tapp_id: SnowFlake;\n\tapp_name: string | null;\n\tbackups: APIApplicationBackup[];\n}\n\n/**\n * @see https://docs.vertracloud.app/api-reference/endpoint/applications\n */\nexport interface APIApplicationConfig {\n\tNAME: string;\n\tMEMORY: number;\n\tMAIN: string;\n\tVERSION: ApplicationVersion;\n\tDESCRIPTION?: string;\n\tAUTORESTART?: boolean;\n\tSTART?: string;\n\tSUBDOMAIN?: string;\n}\n\n/**\n * @see https://docs.vertracloud.app/api-reference/endpoint/applications\n */\nexport interface APIApplicationEnvironment {\n\tid: string;\n\tkey: string;\n\tvalue: string;\n\tnote: string | null;\n\tcreated_at: ISODateString;\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAMO,IAAM,sBAAsB;AAAA,EAClC,QAAQ;AAAA,EACR,QAAQ;AACT;AAMO,IAAM,oBAAoB;AAAA,EAChC,IAAI;AAAA,EACJ,MAAM;AACP;AAMO,IAAM,0BAA0B;AAAA,EACtC,SAAS;AAAA,EACT,WAAW;AAAA,EACX,WAAW;AAAA,EACX,QAAQ;AACT;AAMO,IAAM,qBAAqB;AAAA,EACjC,OAAO;AAAA,EACP,OAAO;AACR;AAMO,IAAM,kBAAkB;AAAA,EAC9B,KAAK;AAAA,EACL,SAAS;AACV;AAeO,IAAM,sBAAsB;AAAA,EAClC,MAAM;AAAA,EACN,WAAW;AACZ;AAMO,IAAM,qBAAqB;AAAA,EACjC,aAAa;AAAA,EACb,QAAQ;AACT;AAMO,IAAM,6BAA6B;AAAA,EACzC,QAAQ;AACT;","names":[]}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ISODateString, SnowFlake, UserPlan } from '../../common/v1.js';
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
|
-
* @see https://docs.vertracloud.
|
|
4
|
+
* @see https://docs.vertracloud.app/api-reference/endpoint/databases
|
|
5
5
|
*/
|
|
6
6
|
type DatabaseType = 1 | 2 | 3;
|
|
7
7
|
declare const DatabaseType: {
|
|
@@ -10,7 +10,7 @@ declare const DatabaseType: {
|
|
|
10
10
|
readonly REDIS: 3;
|
|
11
11
|
};
|
|
12
12
|
/**
|
|
13
|
-
* @see https://docs.vertracloud.
|
|
13
|
+
* @see https://docs.vertracloud.app/api-reference/endpoint/users
|
|
14
14
|
*/
|
|
15
15
|
type DatabasePlan = 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12;
|
|
16
16
|
declare const DatabasePlan: {
|
|
@@ -28,7 +28,7 @@ declare const DatabasePlan: {
|
|
|
28
28
|
readonly POSTGRESQL_10240: 12;
|
|
29
29
|
};
|
|
30
30
|
/**
|
|
31
|
-
* @see https://docs.vertracloud.
|
|
31
|
+
* @see https://docs.vertracloud.app/api-reference/endpoint/databases
|
|
32
32
|
*/
|
|
33
33
|
type DatabaseStatus = "up" | "down";
|
|
34
34
|
declare const DatabaseStatus: {
|
|
@@ -36,22 +36,22 @@ declare const DatabaseStatus: {
|
|
|
36
36
|
readonly DOWN: "down";
|
|
37
37
|
};
|
|
38
38
|
/**
|
|
39
|
-
* @see https://docs.vertracloud.
|
|
39
|
+
* @see https://docs.vertracloud.app/api-reference/endpoint/status
|
|
40
40
|
*/
|
|
41
|
-
type DatabaseCluster =
|
|
41
|
+
type DatabaseCluster = number;
|
|
42
42
|
declare const DatabaseCluster: {
|
|
43
43
|
readonly USA_1: 1;
|
|
44
44
|
readonly USA_2: 2;
|
|
45
45
|
};
|
|
46
46
|
/**
|
|
47
|
-
* @see https://docs.vertracloud.
|
|
47
|
+
* @see https://docs.vertracloud.app/api-reference/endpoint/databases
|
|
48
48
|
*/
|
|
49
49
|
interface APIDatabaseActivity {
|
|
50
50
|
message: string;
|
|
51
51
|
timestamp: ISODateString;
|
|
52
52
|
}
|
|
53
53
|
/**
|
|
54
|
-
* @see https://docs.vertracloud.
|
|
54
|
+
* @see https://docs.vertracloud.app/api-reference/endpoint/databases
|
|
55
55
|
*/
|
|
56
56
|
interface APIDatabase {
|
|
57
57
|
id: SnowFlake;
|
|
@@ -75,23 +75,24 @@ interface APIDatabase {
|
|
|
75
75
|
last_backup: ISODateString | null;
|
|
76
76
|
}
|
|
77
77
|
/**
|
|
78
|
-
* @see https://docs.vertracloud.
|
|
78
|
+
* @see https://docs.vertracloud.app/api-reference/endpoint/databases
|
|
79
79
|
*/
|
|
80
80
|
interface APIDatabaseNetwork {
|
|
81
81
|
total: string;
|
|
82
82
|
now: string;
|
|
83
83
|
}
|
|
84
84
|
/**
|
|
85
|
-
* @see https://docs.vertracloud.
|
|
85
|
+
* @see https://docs.vertracloud.app/api-reference/endpoint/databases
|
|
86
86
|
*/
|
|
87
87
|
interface APIDatabaseBackup {
|
|
88
88
|
message: string;
|
|
89
89
|
timestamp: ISODateString;
|
|
90
90
|
}
|
|
91
91
|
/**
|
|
92
|
-
* @see https://docs.vertracloud.
|
|
92
|
+
* @see https://docs.vertracloud.app/api-reference/endpoint/databases
|
|
93
93
|
*/
|
|
94
94
|
interface APIDatabaseStatus {
|
|
95
|
+
id: SnowFlake;
|
|
95
96
|
cpu: string;
|
|
96
97
|
ram: string;
|
|
97
98
|
status: DatabaseStatus;
|
|
@@ -99,11 +100,9 @@ interface APIDatabaseStatus {
|
|
|
99
100
|
storage: string;
|
|
100
101
|
network: APIDatabaseNetwork;
|
|
101
102
|
uptime: number;
|
|
102
|
-
created_at: ISODateString;
|
|
103
|
-
updated_at: ISODateString;
|
|
104
103
|
}
|
|
105
104
|
/**
|
|
106
|
-
* @see https://docs.vertracloud.
|
|
105
|
+
* @see https://docs.vertracloud.app/api-reference/endpoint/databases
|
|
107
106
|
*/
|
|
108
107
|
interface APIDatabaseStatusShort {
|
|
109
108
|
id: SnowFlake;
|
|
@@ -113,7 +112,7 @@ interface APIDatabaseStatusShort {
|
|
|
113
112
|
running: boolean;
|
|
114
113
|
}
|
|
115
114
|
/**
|
|
116
|
-
* @see https://docs.vertracloud.
|
|
115
|
+
* @see https://docs.vertracloud.app/api-reference/endpoint/databases
|
|
117
116
|
*/
|
|
118
117
|
interface APIDatabaseMetrics {
|
|
119
118
|
cpu: number;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["database.ts"],"sourcesContent":["import type { ISODateString, SnowFlake, UserPlan } from \"../../v1\";\n\n/**\n * @see https://docs.vertracloud.
|
|
1
|
+
{"version":3,"sources":["database.ts"],"sourcesContent":["import type { ISODateString, SnowFlake, UserPlan } from \"../../v1\";\n\n/**\n * @see https://docs.vertracloud.app/api-reference/endpoint/databases\n */\nexport type DatabaseType = 1 | 2 | 3;\nexport const DatabaseType = {\n\tPOSTGRESQL: 1,\n\tMONGODB: 2,\n\tREDIS: 3,\n} as const;\n\n/**\n * @see https://docs.vertracloud.app/api-reference/endpoint/users\n */\nexport type DatabasePlan = 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12;\nexport const DatabasePlan = {\n\tREDIS_128: 1,\n\tREDIS_256: 2,\n\tREDIS_512: 3,\n\tREDIS_1024: 4,\n\tMONGODB_1024: 5,\n\tMONGODB_2048: 6,\n\tMONGODB_5120: 7,\n\tMONGODB_10240: 8,\n\tPOSTGRESQL_1024: 9,\n\tPOSTGRESQL_2048: 10,\n\tPOSTGRESQL_5120: 11,\n\tPOSTGRESQL_10240: 12,\n} as const;\n\n/**\n * @see https://docs.vertracloud.app/api-reference/endpoint/databases\n */\nexport type DatabaseStatus = \"up\" | \"down\";\nexport const DatabaseStatus = {\n\tUP: \"up\",\n\tDOWN: \"down\",\n} as const;\n\n/**\n * @see https://docs.vertracloud.app/api-reference/endpoint/status\n */\nexport type DatabaseCluster = number;\nexport const DatabaseCluster = {\n\tUSA_1: 1,\n\tUSA_2: 2,\n} as const;\n\n/**\n * @see https://docs.vertracloud.app/api-reference/endpoint/databases\n */\nexport interface APIDatabaseActivity {\n\tmessage: string;\n\ttimestamp: ISODateString;\n}\n\n/**\n * @see https://docs.vertracloud.app/api-reference/endpoint/databases\n */\nexport interface APIDatabase {\n\tid: SnowFlake;\n\tcluster: DatabaseCluster;\n\ttype: DatabaseType;\n\tduration: number;\n\tname: string;\n\tdescription: string;\n\towner_id: SnowFlake;\n\towner_plan_id: UserPlan; // Owner App Plan\n\tplan_id: DatabasePlan;\n\tstatus: DatabaseStatus;\n\tstorage: number;\n\tram: number;\n\thost: string; // example: \"vertra-cloud-<type>-<dbId>.vertraweb.app\"\n\tport: number;\n\tcreated_at: ISODateString;\n\tupdated_at: ISODateString;\n\tpurchased_at: ISODateString;\n\texpires_at: ISODateString;\n\tlast_backup: ISODateString | null;\n}\n\n/**\n * @see https://docs.vertracloud.app/api-reference/endpoint/databases\n */\nexport interface APIDatabaseNetwork {\n\ttotal: string;\n\tnow: string;\n}\n\n/**\n * @see https://docs.vertracloud.app/api-reference/endpoint/databases\n */\nexport interface APIDatabaseBackup {\n\tmessage: string;\n\ttimestamp: ISODateString;\n}\n\n/**\n * @see https://docs.vertracloud.app/api-reference/endpoint/databases\n */\nexport interface APIDatabaseStatus {\n\tid: SnowFlake;\n\tcpu: string;\n\tram: string;\n\tstatus: DatabaseStatus;\n\trunning: boolean;\n\tstorage: string;\n\tnetwork: APIDatabaseNetwork;\n\tuptime: number;\n}\n\n/**\n * @see https://docs.vertracloud.app/api-reference/endpoint/databases\n */\nexport interface APIDatabaseStatusShort {\n\tid: SnowFlake;\n\tcpu: string;\n\tram: string;\n\tstorage: string;\n\trunning: boolean;\n}\n\n/**\n * @see https://docs.vertracloud.app/api-reference/endpoint/databases\n */\nexport interface APIDatabaseMetrics {\n\tcpu: number;\n\tram: number;\n\tstorage: number;\n\tdate: ISODateString;\n\tnetwork: number[];\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAMO,IAAM,eAAe;AAAA,EAC3B,YAAY;AAAA,EACZ,SAAS;AAAA,EACT,OAAO;AACR;AAMO,IAAM,eAAe;AAAA,EAC3B,WAAW;AAAA,EACX,WAAW;AAAA,EACX,WAAW;AAAA,EACX,YAAY;AAAA,EACZ,cAAc;AAAA,EACd,cAAc;AAAA,EACd,cAAc;AAAA,EACd,eAAe;AAAA,EACf,iBAAiB;AAAA,EACjB,iBAAiB;AAAA,EACjB,iBAAiB;AAAA,EACjB,kBAAkB;AACnB;AAMO,IAAM,iBAAiB;AAAA,EAC7B,IAAI;AAAA,EACJ,MAAM;AACP;AAMO,IAAM,kBAAkB;AAAA,EAC9B,OAAO;AAAA,EACP,OAAO;AACR;","names":[]}
|
package/payloads/v1/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["index.ts","application.ts","database.ts","organization.ts","activity.ts","status.ts"],"sourcesContent":["export * from \"./application\";\nexport * from \"./database\";\nexport * from \"./organization\";\nexport * from \"./activity\";\nexport * from \"./status\";\nexport * from \"./user\";\n","import type { ISODateString, SnowFlake, UserPlan } from \"../../v1\";\n\n/**\n * @see https://docs.vertracloud.com/api-reference/endpoint/applications\n */\nexport type ApplicationLanguage = \"nodejs\" | \"python\";\nexport const ApplicationLanguage = {\n\tNODEJS: \"nodejs\",\n\tPYTHON: \"python\",\n} as const;\n\n/**\n * @see https://docs.vertracloud.com/api-reference/endpoint/applications\n */\nexport type ApplicationStatus = \"up\" | \"down\";\nexport const ApplicationStatus = {\n\tUP: \"up\",\n\tDOWN: \"down\",\n} as const;\n\n/**\n * @see https://docs.vertracloud.com/api-reference/endpoint/applications\n */\nexport type ApplicationCommitStatus = 1 | 2 | 3 | 4;\nexport const ApplicationCommitStatus = {\n\tPENDING: 1,\n\tDEPLOYING: 2,\n\tCOMPLETED: 3,\n\tFAILED: 4,\n} as const;\n\n/**\n * @see https://docs.vertracloud.com/api-reference/endpoint/applications\n */\nexport type ApplicationCluster = 1;\nexport const ApplicationCluster = {\n\tUSA_1: 1,\n\tUSA_2: 2,\n} as const;\n\n/**\n * @see https://docs.vertracloud.com/api-reference/endpoint/applications\n */\nexport type ApplicationType = 1 | 2;\nexport const ApplicationType = {\n\tBOT: 1,\n\tWEBSITE: 2,\n} as const;\n\n/**\n * @see https://docs.vertracloud.com/api-reference/endpoint/applications\n */\nexport interface ApplicationCommit {\n\tversion: string;\n\ttimestamp: ISODateString;\n\tnotes: string;\n}\n\n/**\n * @see https://docs.vertracloud.com/api-reference/endpoint/applications\n */\nexport type ApplicationFileType = \"file\" | \"directory\";\nexport const ApplicationFileType = {\n\tFILE: \"file\",\n\tDIRECTORY: \"directory\",\n} as const;\n\n/**\n * @see https://docs.vertracloud.com/api-reference/endpoint/applications\n */\nexport type ApplicationVersion = \"recommended\" | \"latest\";\nexport const ApplicationVersion = {\n\tRECOMMENDED: \"recommended\",\n\tLATEST: \"latest\",\n} as const;\n\n/**\n * @see https://docs.vertracloud.com/api-reference/endpoint/applications\n */\nexport type ApplicationFileContentType = \"buffer\";\nexport const ApplicationFileContentType = {\n\tBUFFER: \"buffer\",\n} as const;\n\n/**\n * @see https://docs.vertracloud.com/api-reference/endpoint/applications\n */\nexport interface APIApplicationFile {\n\ttype: ApplicationFileType;\n\tname: string;\n\tsize?: string;\n\tlast_modified: ISODateString;\n}\n\n/**\n * @see https://docs.vertracloud.com/api-reference/endpoint/applications\n */\nexport interface APIApplicationFileContent {\n\ttype: ApplicationFileContentType;\n\tdata: number[];\n}\n\n/**\n * @see https://docs.vertracloud.com/api-reference/endpoint/applications\n */\nexport interface APIApplication {\n\tid: SnowFlake;\n\tcluster: ApplicationCluster;\n\ttype: ApplicationType;\n\tname: string;\n\tdescription: string;\n\towner_id: SnowFlake;\n\towner_plan_id: UserPlan; // Owner App Plan\n\tlanguage: ApplicationLanguage;\n\tram: number;\n\tstatus: ApplicationStatus;\n\tsubdomain: string | null; // example: \"my-app.vertraweb.com\"\n\tcustom_domain: string | null; // example: \"my-app.com.br\"\n\tlast_commit: ISODateString;\n\tlast_backup: ISODateString | null;\n\tcreated_at: ISODateString;\n\tupdated_at: ISODateString;\n}\n\n/**\n * @see https://docs.vertracloud.com/api-reference/endpoint/applications\n */\nexport interface APIApplicationNetwork {\n\ttotal: string;\n\tnow: string;\n}\n\n/**\n * @see https://docs.vertracloud.com/api-reference/endpoint/applications\n */\nexport interface APIApplicationActivity {\n\tmessage: string;\n\ttimestamp: ISODateString;\n}\n\n/**\n * @see https://docs.vertracloud.com/api-reference/endpoint/applications\n */\nexport interface APIApplicationStatus {\n\tcpu: string;\n\tram: string;\n\tstatus: ApplicationStatus;\n\trunning: boolean;\n\tstorage: string;\n\tnetwork: APIApplicationNetwork;\n\tuptime: number;\n\tcreated_at: ISODateString;\n\tupdated_at: ISODateString;\n}\n\n/**\n * @see https://docs.vertracloud.com/api-reference/endpoint/applications\n */\nexport interface APIApplicationStatusShort {\n\tid: SnowFlake;\n\tcpu: string;\n\tram: string;\n\trunning: boolean;\n}\n\n/**\n * @see https://docs.vertracloud.com/api-reference/endpoint/applications\n */\nexport interface APIApplicationMetric {\n\tcpu: number;\n\tram: number;\n\tstorage: number;\n\tdate: ISODateString;\n\tnetwork: number[];\n}\n\n/**\n * @see https://docs.vertracloud.com/api-reference/endpoint/applications\n */\nexport interface APIApplicationCommit {\n\tid: SnowFlake;\n\tauthor_id: SnowFlake;\n\tmessage: string;\n\tversion: string;\n\tstatus: ApplicationCommitStatus;\n\tsize: string;\n\tdate: ISODateString;\n}\n\n/**\n * @see https://docs.vertracloud.com/api-reference/endpoint/applications\n */\nexport interface APIApplicationBackup {\n\tid: SnowFlake;\n\tapp_id: SnowFlake;\n\tauthor_id: SnowFlake | null;\n\tsize: string;\n\tdate: ISODateString;\n}\n\n/**\n * @see https://docs.vertracloud.com/api-reference/endpoint/applications\n */\nexport interface APIGroupedApplicationBackups {\n\tapp_id: SnowFlake;\n\tapp_name: string | null;\n\tbackups: APIApplicationBackup[];\n}\n\n/**\n * @see https://docs.vertracloud.com/api-reference/endpoint/applications\n */\nexport interface APIApplicationConfig {\n\tNAME: string;\n\tMEMORY: number;\n\tMAIN: string;\n\tVERSION: ApplicationVersion;\n\tDESCRIPTION?: string;\n\tAUTORESTART?: boolean;\n\tSTART?: string;\n\tSUBDOMAIN?: string;\n}\n\n/**\n * @see https://docs.vertracloud.com/api-reference/endpoint/applications\n */\nexport interface APIApplicationEnvironment {\n\tid: string;\n\tkey: string;\n\tvalue: string;\n\tnote: string | null;\n\tcreated_at: ISODateString;\n}\n","import type { ISODateString, SnowFlake, UserPlan } from \"../../v1\";\n\n/**\n * @see https://docs.vertracloud.com/api-reference/endpoint/databases\n */\nexport type DatabaseType = 1 | 2 | 3;\nexport const DatabaseType = {\n\tPOSTGRESQL: 1,\n\tMONGODB: 2,\n\tREDIS: 3,\n} as const;\n\n/**\n * @see https://docs.vertracloud.com/api-reference/endpoint/users\n */\nexport type DatabasePlan = 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12;\nexport const DatabasePlan = {\n\tREDIS_128: 1,\n\tREDIS_256: 2,\n\tREDIS_512: 3,\n\tREDIS_1024: 4,\n\tMONGODB_1024: 5,\n\tMONGODB_2048: 6,\n\tMONGODB_5120: 7,\n\tMONGODB_10240: 8,\n\tPOSTGRESQL_1024: 9,\n\tPOSTGRESQL_2048: 10,\n\tPOSTGRESQL_5120: 11,\n\tPOSTGRESQL_10240: 12,\n} as const;\n\n/**\n * @see https://docs.vertracloud.com/api-reference/endpoint/databases\n */\nexport type DatabaseStatus = \"up\" | \"down\";\nexport const DatabaseStatus = {\n\tUP: \"up\",\n\tDOWN: \"down\",\n} as const;\n\n/**\n * @see https://docs.vertracloud.com/api-reference/endpoint/status\n */\nexport type DatabaseCluster = 1;\nexport const DatabaseCluster = {\n\tUSA_1: 1,\n\tUSA_2: 2,\n} as const;\n\n/**\n * @see https://docs.vertracloud.com/api-reference/endpoint/databases\n */\nexport interface APIDatabaseActivity {\n\tmessage: string;\n\ttimestamp: ISODateString;\n}\n\n/**\n * @see https://docs.vertracloud.com/api-reference/endpoint/databases\n */\nexport interface APIDatabase {\n\tid: SnowFlake;\n\tcluster: DatabaseCluster;\n\ttype: DatabaseType;\n\tduration: number;\n\tname: string;\n\tdescription: string;\n\towner_id: SnowFlake;\n\towner_plan_id: UserPlan; // Owner App Plan\n\tplan_id: DatabasePlan;\n\tstatus: DatabaseStatus;\n\tstorage: number;\n\tram: number;\n\thost: string; // example: \"vertra-cloud-<type>-<dbId>.vertraweb.app\"\n\tport: number;\n\tcreated_at: ISODateString;\n\tupdated_at: ISODateString;\n\tpurchased_at: ISODateString;\n\texpires_at: ISODateString;\n\tlast_backup: ISODateString | null;\n}\n\n/**\n * @see https://docs.vertracloud.com/api-reference/endpoint/databases\n */\nexport interface APIDatabaseNetwork {\n\ttotal: string;\n\tnow: string;\n}\n\n/**\n * @see https://docs.vertracloud.com/api-reference/endpoint/databases\n */\nexport interface APIDatabaseBackup {\n\tmessage: string;\n\ttimestamp: ISODateString;\n}\n\n/**\n * @see https://docs.vertracloud.com/api-reference/endpoint/databases\n */\nexport interface APIDatabaseStatus {\n\tcpu: string;\n\tram: string;\n\tstatus: DatabaseStatus;\n\trunning: boolean;\n\tstorage: string;\n\tnetwork: APIDatabaseNetwork;\n\tuptime: number;\n\tcreated_at: ISODateString;\n\tupdated_at: ISODateString;\n}\n\n/**\n * @see https://docs.vertracloud.com/api-reference/endpoint/databases\n */\nexport interface APIDatabaseStatusShort {\n\tid: SnowFlake;\n\tcpu: string;\n\tram: string;\n\tstorage: string;\n\trunning: boolean;\n}\n\n/**\n * @see https://docs.vertracloud.com/api-reference/endpoint/databases\n */\nexport interface APIDatabaseMetrics {\n\tcpu: number;\n\tram: number;\n\tstorage: number;\n\tdate: ISODateString;\n\tnetwork: number[];\n}\n","import type { ISODateString, SnowFlake, UserPlan } from \"../../v1\";\nimport type { APIApplication, APIDatabase } from \"./index\";\n\n/**\n * @see https://docs.vertracloud.com/api-reference/endpoint/organizations\n */\nexport type OrganizationMemberRole =\n\t| \"owner\"\n\t| \"admin\"\n\t| \"developer\"\n\t| \"operator\"\n\t| \"viewer\";\nexport const OrganizationMemberRole = {\n\tOWNER: \"owner\",\n\tADMIN: \"admin\",\n\tDEVELOPER: \"developer\",\n\tOPERATOR: \"operator\",\n\tVIEWER: \"viewer\",\n} as const;\n\n/**\n * @see https://docs.vertracloud.com/api-reference/endpoint/organizations\n */\nexport interface APIOrganizationMember {\n\tuser_id: string;\n\trole: OrganizationMemberRole;\n\tjoined_at: ISODateString;\n}\n\n/**\n * @see https://docs.vertracloud.com/api-reference/endpoint/organizations\n */\nexport interface APIOrganization {\n\tid: SnowFlake;\n\tname: SnowFlake;\n\tdescription: string;\n\ttags: string[];\n\towner_id: SnowFlake;\n\tplan_id: UserPlan;\n\tmembers: APIOrganizationMember[];\n\tcreated_at: ISODateString;\n\tupdated_at: ISODateString;\n}\n\n/**\n * @see https://docs.vertracloud.com/api-reference/endpoint/organizations\n */\nexport interface APIOrganizationInfoResponse extends APIOrganization {\n\tapplications: APIApplication[];\n\tdatabases: APIDatabase[];\n}\n","import type { ISODateString, SnowFlake } from \"../../v1\";\n\n/**\n * @see https://docs.vertracloud.com/api-reference/endpoint/activities\n */\nexport type ActivityStatus = \"success\" | \"warning\" | \"error\" | \"info\";\nexport const ActivityStatus = {\n\tSuccess: \"success\",\n\tWarning: \"warning\",\n\tError: \"error\",\n\tInfo: \"info\",\n} as const;\n\n/**\n * @see https://docs.vertracloud.com/api-reference/endpoint/activities\n */\nexport type ActivityTargetType = \"app\" | \"database\" | \"organization\" | \"audit\";\nexport const ActivityTargetType = {\n\tApp: \"app\",\n\tDatabase: \"database\",\n\tOrganization: \"organization\",\n\tAudit: \"audit\",\n} as const;\n\n/**\n * @see https://docs.vertracloud.com/api-reference/endpoint/activities\n */\nexport interface APIActivity {\n\tid: SnowFlake;\n\tstatus: ActivityStatus;\n\ttarget_id: string;\n\ttarget_type: ActivityTargetType;\n\tauthor_id: SnowFlake | null;\n\ttitle: string;\n\tmessage: string;\n\ttimestamp: ISODateString;\n}\n","/**\n * @see https://docs.vertracloud.com/api-reference/endpoint/status\n */\nexport type StatusType = \"healthy\" | \"degraded\" | \"unknown\";\nexport const StatusType = {\n\tHEALTHY: \"healthy\",\n\tDEGRADED: \"degraded\",\n\tUNKNOWN: \"unknown\",\n} as const;\n\n/**\n * @see https://docs.vertracloud.com/api-reference/endpoint/status\n */\nexport interface APIStatus {\n\tstatus: StatusType;\n\tmessage: string;\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;;ACMO,IAAM,sBAAsB;AAAA,EAClC,QAAQ;AAAA,EACR,QAAQ;AACT;AAMO,IAAM,oBAAoB;AAAA,EAChC,IAAI;AAAA,EACJ,MAAM;AACP;AAMO,IAAM,0BAA0B;AAAA,EACtC,SAAS;AAAA,EACT,WAAW;AAAA,EACX,WAAW;AAAA,EACX,QAAQ;AACT;AAMO,IAAM,qBAAqB;AAAA,EACjC,OAAO;AAAA,EACP,OAAO;AACR;AAMO,IAAM,kBAAkB;AAAA,EAC9B,KAAK;AAAA,EACL,SAAS;AACV;AAeO,IAAM,sBAAsB;AAAA,EAClC,MAAM;AAAA,EACN,WAAW;AACZ;AAMO,IAAM,qBAAqB;AAAA,EACjC,aAAa;AAAA,EACb,QAAQ;AACT;AAMO,IAAM,6BAA6B;AAAA,EACzC,QAAQ;AACT;;;AC5EO,IAAM,eAAe;AAAA,EAC3B,YAAY;AAAA,EACZ,SAAS;AAAA,EACT,OAAO;AACR;AAMO,IAAM,eAAe;AAAA,EAC3B,WAAW;AAAA,EACX,WAAW;AAAA,EACX,WAAW;AAAA,EACX,YAAY;AAAA,EACZ,cAAc;AAAA,EACd,cAAc;AAAA,EACd,cAAc;AAAA,EACd,eAAe;AAAA,EACf,iBAAiB;AAAA,EACjB,iBAAiB;AAAA,EACjB,iBAAiB;AAAA,EACjB,kBAAkB;AACnB;AAMO,IAAM,iBAAiB;AAAA,EAC7B,IAAI;AAAA,EACJ,MAAM;AACP;AAMO,IAAM,kBAAkB;AAAA,EAC9B,OAAO;AAAA,EACP,OAAO;AACR;;;ACnCO,IAAM,yBAAyB;AAAA,EACrC,OAAO;AAAA,EACP,OAAO;AAAA,EACP,WAAW;AAAA,EACX,UAAU;AAAA,EACV,QAAQ;AACT;;;ACZO,IAAM,iBAAiB;AAAA,EAC7B,SAAS;AAAA,EACT,SAAS;AAAA,EACT,OAAO;AAAA,EACP,MAAM;AACP;AAMO,IAAM,qBAAqB;AAAA,EACjC,KAAK;AAAA,EACL,UAAU;AAAA,EACV,cAAc;AAAA,EACd,OAAO;AACR;;;AClBO,IAAM,aAAa;AAAA,EACzB,SAAS;AAAA,EACT,UAAU;AAAA,EACV,SAAS;AACV;","names":[]}
|
|
1
|
+
{"version":3,"sources":["index.ts","application.ts","database.ts","organization.ts","activity.ts","status.ts"],"sourcesContent":["export * from \"./application\";\nexport * from \"./database\";\nexport * from \"./organization\";\nexport * from \"./activity\";\nexport * from \"./status\";\nexport * from \"./user\";\n","import type { ISODateString, SnowFlake, UserPlan } from \"../../v1\";\n\n/**\n * @see https://docs.vertracloud.app/api-reference/endpoint/applications\n */\nexport type ApplicationLanguage = \"nodejs\" | \"python\";\nexport const ApplicationLanguage = {\n\tNODEJS: \"nodejs\",\n\tPYTHON: \"python\",\n} as const;\n\n/**\n * @see https://docs.vertracloud.app/api-reference/endpoint/applications\n */\nexport type ApplicationStatus = \"up\" | \"down\";\nexport const ApplicationStatus = {\n\tUP: \"up\",\n\tDOWN: \"down\",\n} as const;\n\n/**\n * @see https://docs.vertracloud.app/api-reference/endpoint/applications\n */\nexport type ApplicationCommitStatus = 1 | 2 | 3 | 4;\nexport const ApplicationCommitStatus = {\n\tPENDING: 1,\n\tDEPLOYING: 2,\n\tCOMPLETED: 3,\n\tFAILED: 4,\n} as const;\n\n/**\n * @see https://docs.vertracloud.app/api-reference/endpoint/applications\n */\nexport type ApplicationCluster = number;\nexport const ApplicationCluster = {\n\tUSA_1: 1,\n\tUSA_2: 2,\n} as const;\n\n/**\n * @see https://docs.vertracloud.app/api-reference/endpoint/applications\n */\nexport type ApplicationType = 1 | 2;\nexport const ApplicationType = {\n\tBOT: 1,\n\tWEBSITE: 2,\n} as const;\n\n/**\n * @see https://docs.vertracloud.app/api-reference/endpoint/applications\n */\nexport interface ApplicationCommit {\n\tversion: string;\n\ttimestamp: ISODateString;\n\tnotes: string;\n}\n\n/**\n * @see https://docs.vertracloud.app/api-reference/endpoint/applications\n */\nexport type ApplicationFileType = \"file\" | \"directory\";\nexport const ApplicationFileType = {\n\tFILE: \"file\",\n\tDIRECTORY: \"directory\",\n} as const;\n\n/**\n * @see https://docs.vertracloud.app/api-reference/endpoint/applications\n */\nexport type ApplicationVersion = \"recommended\" | \"latest\";\nexport const ApplicationVersion = {\n\tRECOMMENDED: \"recommended\",\n\tLATEST: \"latest\",\n} as const;\n\n/**\n * @see https://docs.vertracloud.app/api-reference/endpoint/applications\n */\nexport type ApplicationFileContentType = \"buffer\";\nexport const ApplicationFileContentType = {\n\tBUFFER: \"buffer\",\n} as const;\n\n/**\n * @see https://docs.vertracloud.app/api-reference/endpoint/applications\n */\nexport interface APIApplicationFile {\n\ttype: ApplicationFileType;\n\tname: string;\n\tsize?: string;\n\tlast_modified: ISODateString;\n}\n\n/**\n * @see https://docs.vertracloud.app/api-reference/endpoint/applications\n */\nexport interface APIApplicationFileContent {\n\ttype: ApplicationFileContentType;\n\tdata: number[];\n}\n\n/**\n * @see https://docs.vertracloud.app/api-reference/endpoint/applications\n */\nexport interface APIApplication {\n\tid: SnowFlake;\n\tcluster: ApplicationCluster;\n\ttype: ApplicationType;\n\tname: string;\n\tdescription: string;\n\towner_id: SnowFlake;\n\towner_plan_id: UserPlan; // Owner App Plan\n\tlanguage: ApplicationLanguage;\n\tram: number;\n\tstatus: ApplicationStatus;\n\tsubdomain: string | null; // example: \"my-app.vertraweb.com\"\n\tcustom_domain: string | null; // example: \"my-app.com.br\"\n\tlast_commit: ISODateString;\n\tlast_backup: ISODateString | null;\n\tcreated_at: ISODateString;\n\tupdated_at: ISODateString;\n}\n\n/**\n * @see https://docs.vertracloud.app/api-reference/endpoint/applications\n */\nexport interface APIApplicationNetwork {\n\ttotal: string;\n\tnow: string;\n}\n\n/**\n * @see https://docs.vertracloud.app/api-reference/endpoint/applications\n */\nexport interface APIApplicationActivity {\n\tmessage: string;\n\ttimestamp: ISODateString;\n}\n\n/**\n * @see https://docs.vertracloud.app/api-reference/endpoint/applications\n */\nexport interface APIApplicationStatus {\n\tid: SnowFlake;\n\tcpu: string;\n\tram: string;\n\tstatus: ApplicationStatus;\n\trunning: boolean;\n\tstorage: string;\n\tnetwork: APIApplicationNetwork;\n\tuptime: number;\n}\n\n/**\n * @see https://docs.vertracloud.app/api-reference/endpoint/applications\n */\nexport interface APIApplicationStatusShort {\n\tid: SnowFlake;\n\tcpu: string;\n\tram: string;\n\trunning: boolean;\n}\n\n/**\n * @see https://docs.vertracloud.app/api-reference/endpoint/applications\n */\nexport interface APIApplicationMetric {\n\tcpu: number;\n\tram: number;\n\tstorage: number;\n\tdate: ISODateString;\n\tnetwork: number[];\n}\n\n/**\n * @see https://docs.vertracloud.app/api-reference/endpoint/applications\n */\nexport interface APIApplicationCommit {\n\tid: SnowFlake;\n\tauthor_id: SnowFlake;\n\tmessage: string;\n\tversion: string;\n\tstatus: ApplicationCommitStatus;\n\tsize: string;\n\tdate: ISODateString;\n}\n\n/**\n * @see https://docs.vertracloud.app/api-reference/endpoint/applications\n */\nexport interface APIApplicationBackup {\n\tid: SnowFlake;\n\tapp_id: SnowFlake;\n\tauthor_id: SnowFlake | null;\n\tsize: string;\n\tdate: ISODateString;\n}\n\n/**\n * @see https://docs.vertracloud.app/api-reference/endpoint/applications\n */\nexport interface APIGroupedApplicationBackups {\n\tapp_id: SnowFlake;\n\tapp_name: string | null;\n\tbackups: APIApplicationBackup[];\n}\n\n/**\n * @see https://docs.vertracloud.app/api-reference/endpoint/applications\n */\nexport interface APIApplicationConfig {\n\tNAME: string;\n\tMEMORY: number;\n\tMAIN: string;\n\tVERSION: ApplicationVersion;\n\tDESCRIPTION?: string;\n\tAUTORESTART?: boolean;\n\tSTART?: string;\n\tSUBDOMAIN?: string;\n}\n\n/**\n * @see https://docs.vertracloud.app/api-reference/endpoint/applications\n */\nexport interface APIApplicationEnvironment {\n\tid: string;\n\tkey: string;\n\tvalue: string;\n\tnote: string | null;\n\tcreated_at: ISODateString;\n}\n","import type { ISODateString, SnowFlake, UserPlan } from \"../../v1\";\n\n/**\n * @see https://docs.vertracloud.app/api-reference/endpoint/databases\n */\nexport type DatabaseType = 1 | 2 | 3;\nexport const DatabaseType = {\n\tPOSTGRESQL: 1,\n\tMONGODB: 2,\n\tREDIS: 3,\n} as const;\n\n/**\n * @see https://docs.vertracloud.app/api-reference/endpoint/users\n */\nexport type DatabasePlan = 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12;\nexport const DatabasePlan = {\n\tREDIS_128: 1,\n\tREDIS_256: 2,\n\tREDIS_512: 3,\n\tREDIS_1024: 4,\n\tMONGODB_1024: 5,\n\tMONGODB_2048: 6,\n\tMONGODB_5120: 7,\n\tMONGODB_10240: 8,\n\tPOSTGRESQL_1024: 9,\n\tPOSTGRESQL_2048: 10,\n\tPOSTGRESQL_5120: 11,\n\tPOSTGRESQL_10240: 12,\n} as const;\n\n/**\n * @see https://docs.vertracloud.app/api-reference/endpoint/databases\n */\nexport type DatabaseStatus = \"up\" | \"down\";\nexport const DatabaseStatus = {\n\tUP: \"up\",\n\tDOWN: \"down\",\n} as const;\n\n/**\n * @see https://docs.vertracloud.app/api-reference/endpoint/status\n */\nexport type DatabaseCluster = number;\nexport const DatabaseCluster = {\n\tUSA_1: 1,\n\tUSA_2: 2,\n} as const;\n\n/**\n * @see https://docs.vertracloud.app/api-reference/endpoint/databases\n */\nexport interface APIDatabaseActivity {\n\tmessage: string;\n\ttimestamp: ISODateString;\n}\n\n/**\n * @see https://docs.vertracloud.app/api-reference/endpoint/databases\n */\nexport interface APIDatabase {\n\tid: SnowFlake;\n\tcluster: DatabaseCluster;\n\ttype: DatabaseType;\n\tduration: number;\n\tname: string;\n\tdescription: string;\n\towner_id: SnowFlake;\n\towner_plan_id: UserPlan; // Owner App Plan\n\tplan_id: DatabasePlan;\n\tstatus: DatabaseStatus;\n\tstorage: number;\n\tram: number;\n\thost: string; // example: \"vertra-cloud-<type>-<dbId>.vertraweb.app\"\n\tport: number;\n\tcreated_at: ISODateString;\n\tupdated_at: ISODateString;\n\tpurchased_at: ISODateString;\n\texpires_at: ISODateString;\n\tlast_backup: ISODateString | null;\n}\n\n/**\n * @see https://docs.vertracloud.app/api-reference/endpoint/databases\n */\nexport interface APIDatabaseNetwork {\n\ttotal: string;\n\tnow: string;\n}\n\n/**\n * @see https://docs.vertracloud.app/api-reference/endpoint/databases\n */\nexport interface APIDatabaseBackup {\n\tmessage: string;\n\ttimestamp: ISODateString;\n}\n\n/**\n * @see https://docs.vertracloud.app/api-reference/endpoint/databases\n */\nexport interface APIDatabaseStatus {\n\tid: SnowFlake;\n\tcpu: string;\n\tram: string;\n\tstatus: DatabaseStatus;\n\trunning: boolean;\n\tstorage: string;\n\tnetwork: APIDatabaseNetwork;\n\tuptime: number;\n}\n\n/**\n * @see https://docs.vertracloud.app/api-reference/endpoint/databases\n */\nexport interface APIDatabaseStatusShort {\n\tid: SnowFlake;\n\tcpu: string;\n\tram: string;\n\tstorage: string;\n\trunning: boolean;\n}\n\n/**\n * @see https://docs.vertracloud.app/api-reference/endpoint/databases\n */\nexport interface APIDatabaseMetrics {\n\tcpu: number;\n\tram: number;\n\tstorage: number;\n\tdate: ISODateString;\n\tnetwork: number[];\n}\n","import type { ISODateString, SnowFlake, UserPlan } from \"../../v1\";\nimport type { APIApplication, APIDatabase } from \"./index\";\n\n/**\n * @see https://docs.vertracloud.app/api-reference/endpoint/organizations\n */\nexport type OrganizationMemberRole =\n\t| \"owner\"\n\t| \"admin\"\n\t| \"developer\"\n\t| \"operator\"\n\t| \"viewer\";\nexport const OrganizationMemberRole = {\n\tOWNER: \"owner\",\n\tADMIN: \"admin\",\n\tDEVELOPER: \"developer\",\n\tOPERATOR: \"operator\",\n\tVIEWER: \"viewer\",\n} as const;\n\n/**\n * @see https://docs.vertracloud.app/api-reference/endpoint/organizations\n */\nexport interface APIOrganizationMember {\n\tuser_id: string;\n\trole: OrganizationMemberRole;\n\tjoined_at: ISODateString;\n}\n\n/**\n * @see https://docs.vertracloud.app/api-reference/endpoint/organizations\n */\nexport interface APIOrganization {\n\tid: SnowFlake;\n\tname: SnowFlake;\n\tdescription: string;\n\ttags: string[];\n\towner_id: SnowFlake;\n\tplan_id: UserPlan;\n\tmembers: APIOrganizationMember[];\n\tcreated_at: ISODateString;\n\tupdated_at: ISODateString;\n}\n\n/**\n * @see https://docs.vertracloud.app/api-reference/endpoint/organizations\n */\nexport interface APIOrganizationInfoResponse extends APIOrganization {\n\tapplications: APIApplication[];\n\tdatabases: APIDatabase[];\n}\n","import type { ISODateString, SnowFlake } from \"../../v1\";\n\n/**\n * @see https://docs.vertracloud.app/api-reference/endpoint/activities\n */\nexport type ActivityStatus = \"success\" | \"warning\" | \"error\" | \"info\";\nexport const ActivityStatus = {\n\tSuccess: \"success\",\n\tWarning: \"warning\",\n\tError: \"error\",\n\tInfo: \"info\",\n} as const;\n\n/**\n * @see https://docs.vertracloud.app/api-reference/endpoint/activities\n */\nexport type ActivityTargetType = \"app\" | \"database\" | \"organization\" | \"audit\";\nexport const ActivityTargetType = {\n\tApp: \"app\",\n\tDatabase: \"database\",\n\tOrganization: \"organization\",\n\tAudit: \"audit\",\n} as const;\n\n/**\n * @see https://docs.vertracloud.app/api-reference/endpoint/activities\n */\nexport interface APIActivity {\n\tid: SnowFlake;\n\tstatus: ActivityStatus;\n\ttarget_id: string;\n\ttarget_type: ActivityTargetType;\n\tauthor_id: SnowFlake | null;\n\ttitle: string;\n\tmessage: string;\n\ttimestamp: ISODateString;\n}\n","/**\n * @see https://docs.vertracloud.app/api-reference/endpoint/status\n */\nexport type StatusType = \"healthy\" | \"degraded\" | \"unknown\";\nexport const StatusType = {\n\tHEALTHY: \"healthy\",\n\tDEGRADED: \"degraded\",\n\tUNKNOWN: \"unknown\",\n} as const;\n\n/**\n * @see https://docs.vertracloud.app/api-reference/endpoint/status\n */\nexport interface APIStatus {\n\tstatus: StatusType;\n\tmessage: string;\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;;ACMO,IAAM,sBAAsB;AAAA,EAClC,QAAQ;AAAA,EACR,QAAQ;AACT;AAMO,IAAM,oBAAoB;AAAA,EAChC,IAAI;AAAA,EACJ,MAAM;AACP;AAMO,IAAM,0BAA0B;AAAA,EACtC,SAAS;AAAA,EACT,WAAW;AAAA,EACX,WAAW;AAAA,EACX,QAAQ;AACT;AAMO,IAAM,qBAAqB;AAAA,EACjC,OAAO;AAAA,EACP,OAAO;AACR;AAMO,IAAM,kBAAkB;AAAA,EAC9B,KAAK;AAAA,EACL,SAAS;AACV;AAeO,IAAM,sBAAsB;AAAA,EAClC,MAAM;AAAA,EACN,WAAW;AACZ;AAMO,IAAM,qBAAqB;AAAA,EACjC,aAAa;AAAA,EACb,QAAQ;AACT;AAMO,IAAM,6BAA6B;AAAA,EACzC,QAAQ;AACT;;;AC5EO,IAAM,eAAe;AAAA,EAC3B,YAAY;AAAA,EACZ,SAAS;AAAA,EACT,OAAO;AACR;AAMO,IAAM,eAAe;AAAA,EAC3B,WAAW;AAAA,EACX,WAAW;AAAA,EACX,WAAW;AAAA,EACX,YAAY;AAAA,EACZ,cAAc;AAAA,EACd,cAAc;AAAA,EACd,cAAc;AAAA,EACd,eAAe;AAAA,EACf,iBAAiB;AAAA,EACjB,iBAAiB;AAAA,EACjB,iBAAiB;AAAA,EACjB,kBAAkB;AACnB;AAMO,IAAM,iBAAiB;AAAA,EAC7B,IAAI;AAAA,EACJ,MAAM;AACP;AAMO,IAAM,kBAAkB;AAAA,EAC9B,OAAO;AAAA,EACP,OAAO;AACR;;;ACnCO,IAAM,yBAAyB;AAAA,EACrC,OAAO;AAAA,EACP,OAAO;AAAA,EACP,WAAW;AAAA,EACX,UAAU;AAAA,EACV,QAAQ;AACT;;;ACZO,IAAM,iBAAiB;AAAA,EAC7B,SAAS;AAAA,EACT,SAAS;AAAA,EACT,OAAO;AAAA,EACP,MAAM;AACP;AAMO,IAAM,qBAAqB;AAAA,EACjC,KAAK;AAAA,EACL,UAAU;AAAA,EACV,cAAc;AAAA,EACd,OAAO;AACR;;;AClBO,IAAM,aAAa;AAAA,EACzB,SAAS;AAAA,EACT,UAAU;AAAA,EACV,SAAS;AACV;","names":[]}
|
|
@@ -3,7 +3,7 @@ import { APIApplication } from './application.js';
|
|
|
3
3
|
import { APIDatabase } from './database.js';
|
|
4
4
|
|
|
5
5
|
/**
|
|
6
|
-
* @see https://docs.vertracloud.
|
|
6
|
+
* @see https://docs.vertracloud.app/api-reference/endpoint/organizations
|
|
7
7
|
*/
|
|
8
8
|
type OrganizationMemberRole = "owner" | "admin" | "developer" | "operator" | "viewer";
|
|
9
9
|
declare const OrganizationMemberRole: {
|
|
@@ -14,7 +14,7 @@ declare const OrganizationMemberRole: {
|
|
|
14
14
|
readonly VIEWER: "viewer";
|
|
15
15
|
};
|
|
16
16
|
/**
|
|
17
|
-
* @see https://docs.vertracloud.
|
|
17
|
+
* @see https://docs.vertracloud.app/api-reference/endpoint/organizations
|
|
18
18
|
*/
|
|
19
19
|
interface APIOrganizationMember {
|
|
20
20
|
user_id: string;
|
|
@@ -22,7 +22,7 @@ interface APIOrganizationMember {
|
|
|
22
22
|
joined_at: ISODateString;
|
|
23
23
|
}
|
|
24
24
|
/**
|
|
25
|
-
* @see https://docs.vertracloud.
|
|
25
|
+
* @see https://docs.vertracloud.app/api-reference/endpoint/organizations
|
|
26
26
|
*/
|
|
27
27
|
interface APIOrganization {
|
|
28
28
|
id: SnowFlake;
|
|
@@ -36,7 +36,7 @@ interface APIOrganization {
|
|
|
36
36
|
updated_at: ISODateString;
|
|
37
37
|
}
|
|
38
38
|
/**
|
|
39
|
-
* @see https://docs.vertracloud.
|
|
39
|
+
* @see https://docs.vertracloud.app/api-reference/endpoint/organizations
|
|
40
40
|
*/
|
|
41
41
|
interface APIOrganizationInfoResponse extends APIOrganization {
|
|
42
42
|
applications: APIApplication[];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["organization.ts"],"sourcesContent":["import type { ISODateString, SnowFlake, UserPlan } from \"../../v1\";\nimport type { APIApplication, APIDatabase } from \"./index\";\n\n/**\n * @see https://docs.vertracloud.
|
|
1
|
+
{"version":3,"sources":["organization.ts"],"sourcesContent":["import type { ISODateString, SnowFlake, UserPlan } from \"../../v1\";\nimport type { APIApplication, APIDatabase } from \"./index\";\n\n/**\n * @see https://docs.vertracloud.app/api-reference/endpoint/organizations\n */\nexport type OrganizationMemberRole =\n\t| \"owner\"\n\t| \"admin\"\n\t| \"developer\"\n\t| \"operator\"\n\t| \"viewer\";\nexport const OrganizationMemberRole = {\n\tOWNER: \"owner\",\n\tADMIN: \"admin\",\n\tDEVELOPER: \"developer\",\n\tOPERATOR: \"operator\",\n\tVIEWER: \"viewer\",\n} as const;\n\n/**\n * @see https://docs.vertracloud.app/api-reference/endpoint/organizations\n */\nexport interface APIOrganizationMember {\n\tuser_id: string;\n\trole: OrganizationMemberRole;\n\tjoined_at: ISODateString;\n}\n\n/**\n * @see https://docs.vertracloud.app/api-reference/endpoint/organizations\n */\nexport interface APIOrganization {\n\tid: SnowFlake;\n\tname: SnowFlake;\n\tdescription: string;\n\ttags: string[];\n\towner_id: SnowFlake;\n\tplan_id: UserPlan;\n\tmembers: APIOrganizationMember[];\n\tcreated_at: ISODateString;\n\tupdated_at: ISODateString;\n}\n\n/**\n * @see https://docs.vertracloud.app/api-reference/endpoint/organizations\n */\nexport interface APIOrganizationInfoResponse extends APIOrganization {\n\tapplications: APIApplication[];\n\tdatabases: APIDatabase[];\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAYO,IAAM,yBAAyB;AAAA,EACrC,OAAO;AAAA,EACP,OAAO;AAAA,EACP,WAAW;AAAA,EACX,UAAU;AAAA,EACV,QAAQ;AACT;","names":[]}
|
package/payloads/v1/status.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @see https://docs.vertracloud.
|
|
2
|
+
* @see https://docs.vertracloud.app/api-reference/endpoint/status
|
|
3
3
|
*/
|
|
4
4
|
type StatusType = "healthy" | "degraded" | "unknown";
|
|
5
5
|
declare const StatusType: {
|
|
@@ -8,7 +8,7 @@ declare const StatusType: {
|
|
|
8
8
|
readonly UNKNOWN: "unknown";
|
|
9
9
|
};
|
|
10
10
|
/**
|
|
11
|
-
* @see https://docs.vertracloud.
|
|
11
|
+
* @see https://docs.vertracloud.app/api-reference/endpoint/status
|
|
12
12
|
*/
|
|
13
13
|
interface APIStatus {
|
|
14
14
|
status: StatusType;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["status.ts"],"sourcesContent":["/**\n * @see https://docs.vertracloud.
|
|
1
|
+
{"version":3,"sources":["status.ts"],"sourcesContent":["/**\n * @see https://docs.vertracloud.app/api-reference/endpoint/status\n */\nexport type StatusType = \"healthy\" | \"degraded\" | \"unknown\";\nexport const StatusType = {\n\tHEALTHY: \"healthy\",\n\tDEGRADED: \"degraded\",\n\tUNKNOWN: \"unknown\",\n} as const;\n\n/**\n * @see https://docs.vertracloud.app/api-reference/endpoint/status\n */\nexport interface APIStatus {\n\tstatus: StatusType;\n\tmessage: string;\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAIO,IAAM,aAAa;AAAA,EACzB,SAAS;AAAA,EACT,UAAU;AAAA,EACV,SAAS;AACV;","names":[]}
|
package/payloads/v1/user.d.ts
CHANGED
|
@@ -3,7 +3,7 @@ import { APIApplication } from './application.js';
|
|
|
3
3
|
import { APIDatabase } from './database.js';
|
|
4
4
|
|
|
5
5
|
/**
|
|
6
|
-
* @see https://docs.vertracloud.
|
|
6
|
+
* @see https://docs.vertracloud.app/api-reference/endpoint/users
|
|
7
7
|
*/
|
|
8
8
|
interface APIUser {
|
|
9
9
|
id: SnowFlake;
|
|
@@ -13,7 +13,7 @@ interface APIUser {
|
|
|
13
13
|
updated_at: ISODateString;
|
|
14
14
|
}
|
|
15
15
|
/**
|
|
16
|
-
* @see https://docs.vertracloud.
|
|
16
|
+
* @see https://docs.vertracloud.app/api-reference/endpoint/users
|
|
17
17
|
*/
|
|
18
18
|
interface APIUserInfoResponse extends APIUser {
|
|
19
19
|
plan: APIUserPlan;
|
|
@@ -21,14 +21,14 @@ interface APIUserInfoResponse extends APIUser {
|
|
|
21
21
|
databases: APIDatabase[];
|
|
22
22
|
}
|
|
23
23
|
/**
|
|
24
|
-
* @see https://docs.vertracloud.
|
|
24
|
+
* @see https://docs.vertracloud.app/api-reference/endpoint/users
|
|
25
25
|
*/
|
|
26
26
|
interface APIUserPlanMemory {
|
|
27
27
|
limit: number;
|
|
28
28
|
used: number;
|
|
29
29
|
}
|
|
30
30
|
/**
|
|
31
|
-
* @see https://docs.vertracloud.
|
|
31
|
+
* @see https://docs.vertracloud.app/api-reference/endpoint/users
|
|
32
32
|
*/
|
|
33
33
|
interface APIUserPlan {
|
|
34
34
|
id: UserPlan;
|
|
@@ -38,7 +38,7 @@ interface APIUserPlan {
|
|
|
38
38
|
memory: APIUserPlanMemory;
|
|
39
39
|
}
|
|
40
40
|
/**
|
|
41
|
-
* @see https://docs.vertracloud.
|
|
41
|
+
* @see https://docs.vertracloud.app/api-reference/endpoint/users
|
|
42
42
|
*/
|
|
43
43
|
interface APIUserOrgInviteKey {
|
|
44
44
|
code: SnowFlake;
|
package/payloads/v1/user.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["user.ts"],"sourcesContent":["import type { ISODateString, SnowFlake, UserPlan } from \"../../v1\";\nimport type { APIApplication, APIDatabase } from \"./index\";\n\n/**\n * @see https://docs.vertracloud.
|
|
1
|
+
{"version":3,"sources":["user.ts"],"sourcesContent":["import type { ISODateString, SnowFlake, UserPlan } from \"../../v1\";\nimport type { APIApplication, APIDatabase } from \"./index\";\n\n/**\n * @see https://docs.vertracloud.app/api-reference/endpoint/users\n */\nexport interface APIUser {\n\tid: SnowFlake;\n\tname: string;\n\tplan_id: UserPlan;\n\tcreated_at: ISODateString;\n\tupdated_at: ISODateString;\n}\n\n/**\n * @see https://docs.vertracloud.app/api-reference/endpoint/users\n */\nexport interface APIUserInfoResponse extends APIUser {\n\tplan: APIUserPlan;\n\tapplications: APIApplication[];\n\tdatabases: APIDatabase[];\n}\n\n/**\n * @see https://docs.vertracloud.app/api-reference/endpoint/users\n */\nexport interface APIUserPlanMemory {\n\tlimit: number;\n\tused: number;\n}\n\n/**\n * @see https://docs.vertracloud.app/api-reference/endpoint/users\n */\nexport interface APIUserPlan {\n\tid: UserPlan;\n\tname: string;\n\texpires_at: ISODateString | null;\n\tduration: number;\n\tmemory: APIUserPlanMemory;\n}\n\n/**\n * @see https://docs.vertracloud.app/api-reference/endpoint/users\n */\nexport interface APIUserOrgInviteKey {\n\tcode: SnowFlake;\n\tcreated_at: ISODateString;\n\texpire_at: ISODateString;\n}\n"],"mappings":";;;;;;;;;;;;;;;;AAAA;AAAA;","names":[]}
|
package/rest/v1/activity.d.ts
CHANGED
|
@@ -2,11 +2,11 @@ import { APIPayload } from '../../common/v1.js';
|
|
|
2
2
|
import { APIActivity } from '../../payloads/v1/activity.js';
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
|
-
* @see https://docs.vertracloud.
|
|
5
|
+
* @see https://docs.vertracloud.app/api-reference/endpoint/activities
|
|
6
6
|
*/
|
|
7
7
|
type RESTGetAPIActivityResponse = APIPayload<APIActivity>;
|
|
8
8
|
/**
|
|
9
|
-
* @see https://docs.vertracloud.
|
|
9
|
+
* @see https://docs.vertracloud.app/api-reference/endpoint/activities
|
|
10
10
|
*/
|
|
11
11
|
type RESTGetAPIActivitiesResponse = APIPayload<APIActivity[]>;
|
|
12
12
|
|
package/rest/v1/activity.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["activity.ts"],"sourcesContent":["import type { APIActivity, APIPayload } from \"../../v1\";\n\n/**\n * @see https://docs.vertracloud.
|
|
1
|
+
{"version":3,"sources":["activity.ts"],"sourcesContent":["import type { APIActivity, APIPayload } from \"../../v1\";\n\n/**\n * @see https://docs.vertracloud.app/api-reference/endpoint/activities\n */\nexport type RESTGetAPIActivityResponse = APIPayload<APIActivity>;\n\n/**\n * @see https://docs.vertracloud.app/api-reference/endpoint/activities\n */\nexport type RESTGetAPIActivitiesResponse = APIPayload<APIActivity[]>;\n"],"mappings":";;;;;;;;;;;;;;;;AAAA;AAAA;","names":[]}
|
package/rest/v1/application.d.ts
CHANGED
|
@@ -2,63 +2,63 @@ import { APIPayload } from '../../common/v1.js';
|
|
|
2
2
|
import { APIApplication, APIApplicationStatus, APIApplicationStatusShort, APIApplicationMetric, APIApplicationCommit, APIApplicationBackup, APIGroupedApplicationBackups, APIApplicationFile, APIApplicationFileContent, APIApplicationEnvironment } from '../../payloads/v1/application.js';
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
|
-
* @see https://docs.vertracloud.
|
|
5
|
+
* @see https://docs.vertracloud.app/api-reference/endpoint/applications
|
|
6
6
|
*/
|
|
7
7
|
type RESTGetAPIApplicationResponse = APIPayload<APIApplication>;
|
|
8
8
|
/**
|
|
9
|
-
* @see https://docs.vertracloud.
|
|
9
|
+
* @see https://docs.vertracloud.app/api-reference/endpoint/applications
|
|
10
10
|
*/
|
|
11
11
|
type RESTGetAPIApplicationStatusResponse = APIPayload<APIApplicationStatus>;
|
|
12
12
|
/**
|
|
13
|
-
* @see https://docs.vertracloud.
|
|
13
|
+
* @see https://docs.vertracloud.app/api-reference/endpoint/applications
|
|
14
14
|
*/
|
|
15
15
|
type RESTGetAPIApplicationStatusShortResponse = APIPayload<APIApplicationStatusShort>;
|
|
16
16
|
/**
|
|
17
|
-
* @see https://docs.vertracloud.
|
|
17
|
+
* @see https://docs.vertracloud.app/api-reference/endpoint/applications
|
|
18
18
|
*/
|
|
19
19
|
type RESTGetAPIApplicationLogsResponse = APIPayload<string>;
|
|
20
20
|
/**
|
|
21
|
-
* @see https://docs.vertracloud.
|
|
21
|
+
* @see https://docs.vertracloud.app/api-reference/endpoint/applications
|
|
22
22
|
*/
|
|
23
23
|
type RESTGetAPIApplicationMetricsResponse = APIPayload<APIApplicationMetric[]>;
|
|
24
24
|
/**
|
|
25
|
-
* @see https://docs.vertracloud.
|
|
25
|
+
* @see https://docs.vertracloud.app/api-reference/endpoint/applications
|
|
26
26
|
*/
|
|
27
27
|
type RESTGetAPIApplicationCommitsResponse = APIPayload<APIApplicationCommit[]>;
|
|
28
28
|
/**
|
|
29
|
-
* @see https://docs.vertracloud.
|
|
29
|
+
* @see https://docs.vertracloud.app/api-reference/endpoint/applications
|
|
30
30
|
*/
|
|
31
31
|
type RESTGetAPIApplicationBackupsResponse = APIPayload<APIApplicationBackup[]>;
|
|
32
32
|
/**
|
|
33
|
-
* @see https://docs.vertracloud.
|
|
33
|
+
* @see https://docs.vertracloud.app/api-reference/endpoint/applications
|
|
34
34
|
*/
|
|
35
35
|
type RESTGetAPIGroupedApplicationBackupsResponse = APIPayload<APIGroupedApplicationBackups[]>;
|
|
36
36
|
/**
|
|
37
|
-
* @see https://docs.vertracloud.
|
|
37
|
+
* @see https://docs.vertracloud.app/api-reference/endpoint/applications
|
|
38
38
|
*/
|
|
39
39
|
type RESTGetAPIApplicationBackupResponse = APIPayload<APIApplicationBackup>;
|
|
40
40
|
/**
|
|
41
|
-
* @see https://docs.vertracloud.
|
|
41
|
+
* @see https://docs.vertracloud.app/api-reference/endpoint/applications
|
|
42
42
|
*/
|
|
43
43
|
type RESTGetAPIApplicationFilesResponse = APIPayload<APIApplicationFile[]>;
|
|
44
44
|
/**
|
|
45
|
-
* @see https://docs.vertracloud.
|
|
45
|
+
* @see https://docs.vertracloud.app/api-reference/endpoint/applications
|
|
46
46
|
*/
|
|
47
47
|
type RESTGetAPIApplicationFileContentResponse = APIPayload<APIApplicationFileContent>;
|
|
48
48
|
/**
|
|
49
|
-
* @see https://docs.vertracloud.
|
|
49
|
+
* @see https://docs.vertracloud.app/api-reference/endpoint/applications
|
|
50
50
|
*/
|
|
51
51
|
type RESTGetAPIApplicationStartResponse = APIPayload<boolean>;
|
|
52
52
|
/**
|
|
53
|
-
* @see https://docs.vertracloud.
|
|
53
|
+
* @see https://docs.vertracloud.app/api-reference/endpoint/applications
|
|
54
54
|
*/
|
|
55
55
|
type RESTGetAPIApplicationRestartResponse = APIPayload<boolean>;
|
|
56
56
|
/**
|
|
57
|
-
* @see https://docs.vertracloud.
|
|
57
|
+
* @see https://docs.vertracloud.app/api-reference/endpoint/applications
|
|
58
58
|
*/
|
|
59
59
|
type RESTGetAPIApplicationStopResponse = APIPayload<boolean>;
|
|
60
60
|
/**
|
|
61
|
-
* @see https://docs.vertracloud.
|
|
61
|
+
* @see https://docs.vertracloud.app/api-reference/endpoint/applications
|
|
62
62
|
*/
|
|
63
63
|
type RESTGetAPIApplicationEnvironmentResponse = APIPayload<APIApplicationEnvironment[]>;
|
|
64
64
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["application.ts"],"sourcesContent":["import type {\n\tAPIApplication,\n\tAPIApplicationBackup,\n\tAPIApplicationCommit,\n\tAPIApplicationEnvironment,\n\tAPIApplicationFile,\n\tAPIApplicationFileContent,\n\tAPIApplicationMetric,\n\tAPIApplicationStatus,\n\tAPIApplicationStatusShort,\n\tAPIGroupedApplicationBackups,\n\tAPIPayload,\n} from \"../../v1\";\n\n/**\n * @see https://docs.vertracloud.
|
|
1
|
+
{"version":3,"sources":["application.ts"],"sourcesContent":["import type {\n\tAPIApplication,\n\tAPIApplicationBackup,\n\tAPIApplicationCommit,\n\tAPIApplicationEnvironment,\n\tAPIApplicationFile,\n\tAPIApplicationFileContent,\n\tAPIApplicationMetric,\n\tAPIApplicationStatus,\n\tAPIApplicationStatusShort,\n\tAPIGroupedApplicationBackups,\n\tAPIPayload,\n} from \"../../v1\";\n\n/**\n * @see https://docs.vertracloud.app/api-reference/endpoint/applications\n */\nexport type RESTGetAPIApplicationResponse = APIPayload<APIApplication>;\n\n/**\n * @see https://docs.vertracloud.app/api-reference/endpoint/applications\n */\nexport type RESTGetAPIApplicationStatusResponse =\n\tAPIPayload<APIApplicationStatus>;\n\n/**\n * @see https://docs.vertracloud.app/api-reference/endpoint/applications\n */\nexport type RESTGetAPIApplicationStatusShortResponse =\n\tAPIPayload<APIApplicationStatusShort>;\n\n/**\n * @see https://docs.vertracloud.app/api-reference/endpoint/applications\n */\nexport type RESTGetAPIApplicationLogsResponse = APIPayload<string>;\n\n/**\n * @see https://docs.vertracloud.app/api-reference/endpoint/applications\n */\nexport type RESTGetAPIApplicationMetricsResponse = APIPayload<\n\tAPIApplicationMetric[]\n>;\n\n/**\n * @see https://docs.vertracloud.app/api-reference/endpoint/applications\n */\nexport type RESTGetAPIApplicationCommitsResponse = APIPayload<\n\tAPIApplicationCommit[]\n>;\n\n/**\n * @see https://docs.vertracloud.app/api-reference/endpoint/applications\n */\nexport type RESTGetAPIApplicationBackupsResponse = APIPayload<\n\tAPIApplicationBackup[]\n>;\n\n/**\n * @see https://docs.vertracloud.app/api-reference/endpoint/applications\n */\nexport type RESTGetAPIGroupedApplicationBackupsResponse = APIPayload<\n\tAPIGroupedApplicationBackups[]\n>;\n\n/**\n * @see https://docs.vertracloud.app/api-reference/endpoint/applications\n */\nexport type RESTGetAPIApplicationBackupResponse =\n\tAPIPayload<APIApplicationBackup>;\n\n/**\n * @see https://docs.vertracloud.app/api-reference/endpoint/applications\n */\nexport type RESTGetAPIApplicationFilesResponse = APIPayload<\n\tAPIApplicationFile[]\n>;\n\n/**\n * @see https://docs.vertracloud.app/api-reference/endpoint/applications\n */\nexport type RESTGetAPIApplicationFileContentResponse =\n\tAPIPayload<APIApplicationFileContent>;\n\n/**\n * @see https://docs.vertracloud.app/api-reference/endpoint/applications\n */\nexport type RESTGetAPIApplicationStartResponse = APIPayload<boolean>;\n\n/**\n * @see https://docs.vertracloud.app/api-reference/endpoint/applications\n */\nexport type RESTGetAPIApplicationRestartResponse = APIPayload<boolean>;\n\n/**\n * @see https://docs.vertracloud.app/api-reference/endpoint/applications\n */\nexport type RESTGetAPIApplicationStopResponse = APIPayload<boolean>;\n\n/**\n * @see https://docs.vertracloud.app/api-reference/endpoint/applications\n */\nexport type RESTGetAPIApplicationEnvironmentResponse = APIPayload<\n\tAPIApplicationEnvironment[]\n>;\n"],"mappings":";;;;;;;;;;;;;;;;AAAA;AAAA;","names":[]}
|
package/rest/v1/database.d.ts
CHANGED
|
@@ -2,35 +2,35 @@ import { APIPayload } from '../../common/v1.js';
|
|
|
2
2
|
import { APIDatabase, APIDatabaseStatus, APIDatabaseStatusShort, APIDatabaseMetrics } from '../../payloads/v1/database.js';
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
|
-
* @see https://docs.vertracloud.
|
|
5
|
+
* @see https://docs.vertracloud.app/api-reference/endpoint/databases
|
|
6
6
|
*/
|
|
7
7
|
type RESTGetAPIDatabaseResponse = APIPayload<APIDatabase>;
|
|
8
8
|
/**
|
|
9
|
-
* @see https://docs.vertracloud.
|
|
9
|
+
* @see https://docs.vertracloud.app/api-reference/endpoint/databases
|
|
10
10
|
*/
|
|
11
11
|
type RESTGetAPIDatabaseStatusResponse = APIPayload<APIDatabaseStatus>;
|
|
12
12
|
/**
|
|
13
|
-
* @see https://docs.vertracloud.
|
|
13
|
+
* @see https://docs.vertracloud.app/api-reference/endpoint/databases
|
|
14
14
|
*/
|
|
15
15
|
type RESTGetAPIDatabaseStatusShortResponse = APIPayload<APIDatabaseStatusShort>;
|
|
16
16
|
/**
|
|
17
|
-
* @see https://docs.vertracloud.
|
|
17
|
+
* @see https://docs.vertracloud.app/api-reference/endpoint/databases
|
|
18
18
|
*/
|
|
19
19
|
type RESTGetAPIDatabaseLogsResponse = APIPayload<string>;
|
|
20
20
|
/**
|
|
21
|
-
* @see https://docs.vertracloud.
|
|
21
|
+
* @see https://docs.vertracloud.app/api-reference/endpoint/databases
|
|
22
22
|
*/
|
|
23
23
|
type RESTGetAPIDatabaseMetricsResponse = APIPayload<APIDatabaseMetrics[]>;
|
|
24
24
|
/**
|
|
25
|
-
* @see https://docs.vertracloud.
|
|
25
|
+
* @see https://docs.vertracloud.app/api-reference/endpoint/databases
|
|
26
26
|
*/
|
|
27
27
|
type RESTGetAPIDatabaseStartResponse = APIPayload<boolean>;
|
|
28
28
|
/**
|
|
29
|
-
* @see https://docs.vertracloud.
|
|
29
|
+
* @see https://docs.vertracloud.app/api-reference/endpoint/databases
|
|
30
30
|
*/
|
|
31
31
|
type RESTGetAPIDatabaseRestartResponse = APIPayload<boolean>;
|
|
32
32
|
/**
|
|
33
|
-
* @see https://docs.vertracloud.
|
|
33
|
+
* @see https://docs.vertracloud.app/api-reference/endpoint/databases
|
|
34
34
|
*/
|
|
35
35
|
type RESTGetAPIDatabaseStopResponse = APIPayload<boolean>;
|
|
36
36
|
|
package/rest/v1/database.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["database.ts"],"sourcesContent":["import type {\n\tAPIDatabase,\n\tAPIDatabaseMetrics,\n\tAPIDatabaseStatus,\n\tAPIDatabaseStatusShort,\n\tAPIPayload,\n} from \"../../v1\";\n\n/**\n * @see https://docs.vertracloud.
|
|
1
|
+
{"version":3,"sources":["database.ts"],"sourcesContent":["import type {\n\tAPIDatabase,\n\tAPIDatabaseMetrics,\n\tAPIDatabaseStatus,\n\tAPIDatabaseStatusShort,\n\tAPIPayload,\n} from \"../../v1\";\n\n/**\n * @see https://docs.vertracloud.app/api-reference/endpoint/databases\n */\nexport type RESTGetAPIDatabaseResponse = APIPayload<APIDatabase>;\n\n/**\n * @see https://docs.vertracloud.app/api-reference/endpoint/databases\n */\nexport type RESTGetAPIDatabaseStatusResponse = APIPayload<APIDatabaseStatus>;\n\n/**\n * @see https://docs.vertracloud.app/api-reference/endpoint/databases\n */\nexport type RESTGetAPIDatabaseStatusShortResponse =\n\tAPIPayload<APIDatabaseStatusShort>;\n\n/**\n * @see https://docs.vertracloud.app/api-reference/endpoint/databases\n */\nexport type RESTGetAPIDatabaseLogsResponse = APIPayload<string>;\n\n/**\n * @see https://docs.vertracloud.app/api-reference/endpoint/databases\n */\nexport type RESTGetAPIDatabaseMetricsResponse = APIPayload<\n\tAPIDatabaseMetrics[]\n>;\n\n/**\n * @see https://docs.vertracloud.app/api-reference/endpoint/databases\n */\nexport type RESTGetAPIDatabaseStartResponse = APIPayload<boolean>;\n\n/**\n * @see https://docs.vertracloud.app/api-reference/endpoint/databases\n */\nexport type RESTGetAPIDatabaseRestartResponse = APIPayload<boolean>;\n\n/**\n * @see https://docs.vertracloud.app/api-reference/endpoint/databases\n */\nexport type RESTGetAPIDatabaseStopResponse = APIPayload<boolean>;\n"],"mappings":";;;;;;;;;;;;;;;;AAAA;AAAA;","names":[]}
|
|
@@ -4,11 +4,11 @@ import '../../payloads/v1/application.js';
|
|
|
4
4
|
import '../../payloads/v1/database.js';
|
|
5
5
|
|
|
6
6
|
/**
|
|
7
|
-
* @see https://docs.vertracloud.
|
|
7
|
+
* @see https://docs.vertracloud.app/api-reference/endpoint/organizations
|
|
8
8
|
*/
|
|
9
9
|
type RESTGetAPIOrganizationResponse = APIPayload<APIOrganization>;
|
|
10
10
|
/**
|
|
11
|
-
* @see https://docs.vertracloud.
|
|
11
|
+
* @see https://docs.vertracloud.app/api-reference/endpoint/organizations
|
|
12
12
|
*/
|
|
13
13
|
type RESTGetAPIOrganizationInfoResponse = APIPayload<APIOrganizationInfoResponse>;
|
|
14
14
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["organization.ts"],"sourcesContent":["import type {\n\tAPIOrganization,\n\tAPIOrganizationInfoResponse,\n\tAPIPayload,\n} from \"../../v1\";\n\n/**\n * @see https://docs.vertracloud.
|
|
1
|
+
{"version":3,"sources":["organization.ts"],"sourcesContent":["import type {\n\tAPIOrganization,\n\tAPIOrganizationInfoResponse,\n\tAPIPayload,\n} from \"../../v1\";\n\n/**\n * @see https://docs.vertracloud.app/api-reference/endpoint/organizations\n */\nexport type RESTGetAPIOrganizationResponse = APIPayload<APIOrganization>;\n\n/**\n * @see https://docs.vertracloud.app/api-reference/endpoint/organizations\n */\nexport type RESTGetAPIOrganizationInfoResponse =\n\tAPIPayload<APIOrganizationInfoResponse>;\n"],"mappings":";;;;;;;;;;;;;;;;AAAA;AAAA;","names":[]}
|
package/rest/v1/status.d.ts
CHANGED
|
@@ -2,7 +2,7 @@ import { APIPayload } from '../../common/v1.js';
|
|
|
2
2
|
import { APIStatus } from '../../payloads/v1/status.js';
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
|
-
* @see https://docs.vertracloud.
|
|
5
|
+
* @see https://docs.vertracloud.app/api-reference/endpoint/status
|
|
6
6
|
*/
|
|
7
7
|
type RESTGetAPIStatusResponse = APIPayload<APIStatus>;
|
|
8
8
|
|
package/rest/v1/status.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["status.ts"],"sourcesContent":["import type { APIPayload, APIStatus } from \"../../v1\";\n\n/**\n * @see https://docs.vertracloud.
|
|
1
|
+
{"version":3,"sources":["status.ts"],"sourcesContent":["import type { APIPayload, APIStatus } from \"../../v1\";\n\n/**\n * @see https://docs.vertracloud.app/api-reference/endpoint/status\n */\nexport type RESTGetAPIStatusResponse = APIPayload<APIStatus>;\n"],"mappings":";;;;;;;;;;;;;;;;AAAA;AAAA;","names":[]}
|
package/rest/v1/user.d.ts
CHANGED
|
@@ -4,7 +4,7 @@ import '../../payloads/v1/application.js';
|
|
|
4
4
|
import '../../payloads/v1/database.js';
|
|
5
5
|
|
|
6
6
|
/**
|
|
7
|
-
* @see https://docs.vertracloud.
|
|
7
|
+
* @see https://docs.vertracloud.app/api-reference/endpoint/users
|
|
8
8
|
*/
|
|
9
9
|
type RESTGetAPIUserInfoResponse = APIPayload<APIUserInfoResponse>;
|
|
10
10
|
|
package/rest/v1/user.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["user.ts"],"sourcesContent":["import type { APIPayload, APIUserInfoResponse } from \"../../v1\";\n\n/**\n * @see https://docs.vertracloud.
|
|
1
|
+
{"version":3,"sources":["user.ts"],"sourcesContent":["import type { APIPayload, APIUserInfoResponse } from \"../../v1\";\n\n/**\n * @see https://docs.vertracloud.app/api-reference/endpoint/users\n */\nexport type RESTGetAPIUserInfoResponse = APIPayload<APIUserInfoResponse>;\n"],"mappings":";;;;;;;;;;;;;;;;AAAA;AAAA;","names":[]}
|
package/v1.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { APIHeaders, APIPaginatedPayload, APIPayload,
|
|
1
|
+
export { APIHeaders, APIPaginatedPayload, APIPayload, APIPayloadMessageOnly, APIReturnService, APIVersion, DeepPartial, ISODateString, PaginationMeta, SnowFlake, UserPlan } from './common/v1.js';
|
|
2
2
|
export { APIApplication, APIApplicationActivity, APIApplicationBackup, APIApplicationCommit, APIApplicationConfig, APIApplicationEnvironment, APIApplicationFile, APIApplicationFileContent, APIApplicationMetric, APIApplicationNetwork, APIApplicationStatus, APIApplicationStatusShort, APIGroupedApplicationBackups, ApplicationCluster, ApplicationCommit, ApplicationCommitStatus, ApplicationFileContentType, ApplicationFileType, ApplicationLanguage, ApplicationStatus, ApplicationType, ApplicationVersion } from './payloads/v1/application.js';
|
|
3
3
|
export { APIDatabase, APIDatabaseActivity, APIDatabaseBackup, APIDatabaseMetrics, APIDatabaseNetwork, APIDatabaseStatus, APIDatabaseStatusShort, DatabaseCluster, DatabasePlan, DatabaseStatus, DatabaseType } from './payloads/v1/database.js';
|
|
4
4
|
export { APIOrganization, APIOrganizationInfoResponse, APIOrganizationMember, OrganizationMemberRole } from './payloads/v1/organization.js';
|
package/v1.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["v1.ts","common/v1.ts","payloads/v1/application.ts","payloads/v1/database.ts","payloads/v1/organization.ts","payloads/v1/activity.ts","payloads/v1/status.ts"],"sourcesContent":["export * from \"./common/v1\";\nexport * from \"./payloads/v1/index\";\nexport * from \"./rest/v1/index\";\nexport * from \"./utils\";\n","export type APIPayloadStatus = \"error\" | \"success\";\n\nexport type SnowFlake = string;\n\nexport interface APIPayload<TResponse> {\n\tstatus: APIPayloadStatus;\n\tresponse: TResponse;\n\tcode?: string;\n}\n\nexport interface APIPayloadStatusOnly {\n\tstatus: APIPayloadStatus;\n}\n\nexport interface APIPaginatedPayload<TResponse> {\n\tstatus: APIPayloadStatus;\n\tresponse: TResponse;\n\tmeta?: PaginationMeta;\n}\n\nexport interface APIHeaders {\n\tAuthorization: string;\n}\n\nexport type DeepPartial<T> = T extends object\n\t? {\n\t\t\t[P in keyof T]?: DeepPartial<T[P]>;\n\t\t}\n\t: T;\n\nexport type APIVersion<TVersion extends number> = `v${TVersion}`;\n\nexport type ISODateString = string;\n\nexport interface PaginationMeta {\n\ttotal_count: number;\n\tpage: number;\n\tlimit: number;\n\ttotal_pages: number;\n\thas_next_page: boolean;\n\thas_previous_page: boolean;\n}\n\nexport type UserPlan = 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8;\nexport const UserPlan = {\n\tFREE: 1,\n\tECONOMY: 2,\n\tPRO: 3,\n\tSCALE: 4,\n\tENTERPRISE_4: 5,\n\tENTERPRISE_8: 6,\n\tENTERPRISE_16: 7,\n\tENTERPRISE_32: 8,\n} as const;\n","import type { ISODateString, SnowFlake, UserPlan } from \"../../v1\";\n\n/**\n * @see https://docs.vertracloud.com/api-reference/endpoint/applications\n */\nexport type ApplicationLanguage = \"nodejs\" | \"python\";\nexport const ApplicationLanguage = {\n\tNODEJS: \"nodejs\",\n\tPYTHON: \"python\",\n} as const;\n\n/**\n * @see https://docs.vertracloud.com/api-reference/endpoint/applications\n */\nexport type ApplicationStatus = \"up\" | \"down\";\nexport const ApplicationStatus = {\n\tUP: \"up\",\n\tDOWN: \"down\",\n} as const;\n\n/**\n * @see https://docs.vertracloud.com/api-reference/endpoint/applications\n */\nexport type ApplicationCommitStatus = 1 | 2 | 3 | 4;\nexport const ApplicationCommitStatus = {\n\tPENDING: 1,\n\tDEPLOYING: 2,\n\tCOMPLETED: 3,\n\tFAILED: 4,\n} as const;\n\n/**\n * @see https://docs.vertracloud.com/api-reference/endpoint/applications\n */\nexport type ApplicationCluster = 1;\nexport const ApplicationCluster = {\n\tUSA_1: 1,\n\tUSA_2: 2,\n} as const;\n\n/**\n * @see https://docs.vertracloud.com/api-reference/endpoint/applications\n */\nexport type ApplicationType = 1 | 2;\nexport const ApplicationType = {\n\tBOT: 1,\n\tWEBSITE: 2,\n} as const;\n\n/**\n * @see https://docs.vertracloud.com/api-reference/endpoint/applications\n */\nexport interface ApplicationCommit {\n\tversion: string;\n\ttimestamp: ISODateString;\n\tnotes: string;\n}\n\n/**\n * @see https://docs.vertracloud.com/api-reference/endpoint/applications\n */\nexport type ApplicationFileType = \"file\" | \"directory\";\nexport const ApplicationFileType = {\n\tFILE: \"file\",\n\tDIRECTORY: \"directory\",\n} as const;\n\n/**\n * @see https://docs.vertracloud.com/api-reference/endpoint/applications\n */\nexport type ApplicationVersion = \"recommended\" | \"latest\";\nexport const ApplicationVersion = {\n\tRECOMMENDED: \"recommended\",\n\tLATEST: \"latest\",\n} as const;\n\n/**\n * @see https://docs.vertracloud.com/api-reference/endpoint/applications\n */\nexport type ApplicationFileContentType = \"buffer\";\nexport const ApplicationFileContentType = {\n\tBUFFER: \"buffer\",\n} as const;\n\n/**\n * @see https://docs.vertracloud.com/api-reference/endpoint/applications\n */\nexport interface APIApplicationFile {\n\ttype: ApplicationFileType;\n\tname: string;\n\tsize?: string;\n\tlast_modified: ISODateString;\n}\n\n/**\n * @see https://docs.vertracloud.com/api-reference/endpoint/applications\n */\nexport interface APIApplicationFileContent {\n\ttype: ApplicationFileContentType;\n\tdata: number[];\n}\n\n/**\n * @see https://docs.vertracloud.com/api-reference/endpoint/applications\n */\nexport interface APIApplication {\n\tid: SnowFlake;\n\tcluster: ApplicationCluster;\n\ttype: ApplicationType;\n\tname: string;\n\tdescription: string;\n\towner_id: SnowFlake;\n\towner_plan_id: UserPlan; // Owner App Plan\n\tlanguage: ApplicationLanguage;\n\tram: number;\n\tstatus: ApplicationStatus;\n\tsubdomain: string | null; // example: \"my-app.vertraweb.com\"\n\tcustom_domain: string | null; // example: \"my-app.com.br\"\n\tlast_commit: ISODateString;\n\tlast_backup: ISODateString | null;\n\tcreated_at: ISODateString;\n\tupdated_at: ISODateString;\n}\n\n/**\n * @see https://docs.vertracloud.com/api-reference/endpoint/applications\n */\nexport interface APIApplicationNetwork {\n\ttotal: string;\n\tnow: string;\n}\n\n/**\n * @see https://docs.vertracloud.com/api-reference/endpoint/applications\n */\nexport interface APIApplicationActivity {\n\tmessage: string;\n\ttimestamp: ISODateString;\n}\n\n/**\n * @see https://docs.vertracloud.com/api-reference/endpoint/applications\n */\nexport interface APIApplicationStatus {\n\tcpu: string;\n\tram: string;\n\tstatus: ApplicationStatus;\n\trunning: boolean;\n\tstorage: string;\n\tnetwork: APIApplicationNetwork;\n\tuptime: number;\n\tcreated_at: ISODateString;\n\tupdated_at: ISODateString;\n}\n\n/**\n * @see https://docs.vertracloud.com/api-reference/endpoint/applications\n */\nexport interface APIApplicationStatusShort {\n\tid: SnowFlake;\n\tcpu: string;\n\tram: string;\n\trunning: boolean;\n}\n\n/**\n * @see https://docs.vertracloud.com/api-reference/endpoint/applications\n */\nexport interface APIApplicationMetric {\n\tcpu: number;\n\tram: number;\n\tstorage: number;\n\tdate: ISODateString;\n\tnetwork: number[];\n}\n\n/**\n * @see https://docs.vertracloud.com/api-reference/endpoint/applications\n */\nexport interface APIApplicationCommit {\n\tid: SnowFlake;\n\tauthor_id: SnowFlake;\n\tmessage: string;\n\tversion: string;\n\tstatus: ApplicationCommitStatus;\n\tsize: string;\n\tdate: ISODateString;\n}\n\n/**\n * @see https://docs.vertracloud.com/api-reference/endpoint/applications\n */\nexport interface APIApplicationBackup {\n\tid: SnowFlake;\n\tapp_id: SnowFlake;\n\tauthor_id: SnowFlake | null;\n\tsize: string;\n\tdate: ISODateString;\n}\n\n/**\n * @see https://docs.vertracloud.com/api-reference/endpoint/applications\n */\nexport interface APIGroupedApplicationBackups {\n\tapp_id: SnowFlake;\n\tapp_name: string | null;\n\tbackups: APIApplicationBackup[];\n}\n\n/**\n * @see https://docs.vertracloud.com/api-reference/endpoint/applications\n */\nexport interface APIApplicationConfig {\n\tNAME: string;\n\tMEMORY: number;\n\tMAIN: string;\n\tVERSION: ApplicationVersion;\n\tDESCRIPTION?: string;\n\tAUTORESTART?: boolean;\n\tSTART?: string;\n\tSUBDOMAIN?: string;\n}\n\n/**\n * @see https://docs.vertracloud.com/api-reference/endpoint/applications\n */\nexport interface APIApplicationEnvironment {\n\tid: string;\n\tkey: string;\n\tvalue: string;\n\tnote: string | null;\n\tcreated_at: ISODateString;\n}\n","import type { ISODateString, SnowFlake, UserPlan } from \"../../v1\";\n\n/**\n * @see https://docs.vertracloud.com/api-reference/endpoint/databases\n */\nexport type DatabaseType = 1 | 2 | 3;\nexport const DatabaseType = {\n\tPOSTGRESQL: 1,\n\tMONGODB: 2,\n\tREDIS: 3,\n} as const;\n\n/**\n * @see https://docs.vertracloud.com/api-reference/endpoint/users\n */\nexport type DatabasePlan = 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12;\nexport const DatabasePlan = {\n\tREDIS_128: 1,\n\tREDIS_256: 2,\n\tREDIS_512: 3,\n\tREDIS_1024: 4,\n\tMONGODB_1024: 5,\n\tMONGODB_2048: 6,\n\tMONGODB_5120: 7,\n\tMONGODB_10240: 8,\n\tPOSTGRESQL_1024: 9,\n\tPOSTGRESQL_2048: 10,\n\tPOSTGRESQL_5120: 11,\n\tPOSTGRESQL_10240: 12,\n} as const;\n\n/**\n * @see https://docs.vertracloud.com/api-reference/endpoint/databases\n */\nexport type DatabaseStatus = \"up\" | \"down\";\nexport const DatabaseStatus = {\n\tUP: \"up\",\n\tDOWN: \"down\",\n} as const;\n\n/**\n * @see https://docs.vertracloud.com/api-reference/endpoint/status\n */\nexport type DatabaseCluster = 1;\nexport const DatabaseCluster = {\n\tUSA_1: 1,\n\tUSA_2: 2,\n} as const;\n\n/**\n * @see https://docs.vertracloud.com/api-reference/endpoint/databases\n */\nexport interface APIDatabaseActivity {\n\tmessage: string;\n\ttimestamp: ISODateString;\n}\n\n/**\n * @see https://docs.vertracloud.com/api-reference/endpoint/databases\n */\nexport interface APIDatabase {\n\tid: SnowFlake;\n\tcluster: DatabaseCluster;\n\ttype: DatabaseType;\n\tduration: number;\n\tname: string;\n\tdescription: string;\n\towner_id: SnowFlake;\n\towner_plan_id: UserPlan; // Owner App Plan\n\tplan_id: DatabasePlan;\n\tstatus: DatabaseStatus;\n\tstorage: number;\n\tram: number;\n\thost: string; // example: \"vertra-cloud-<type>-<dbId>.vertraweb.app\"\n\tport: number;\n\tcreated_at: ISODateString;\n\tupdated_at: ISODateString;\n\tpurchased_at: ISODateString;\n\texpires_at: ISODateString;\n\tlast_backup: ISODateString | null;\n}\n\n/**\n * @see https://docs.vertracloud.com/api-reference/endpoint/databases\n */\nexport interface APIDatabaseNetwork {\n\ttotal: string;\n\tnow: string;\n}\n\n/**\n * @see https://docs.vertracloud.com/api-reference/endpoint/databases\n */\nexport interface APIDatabaseBackup {\n\tmessage: string;\n\ttimestamp: ISODateString;\n}\n\n/**\n * @see https://docs.vertracloud.com/api-reference/endpoint/databases\n */\nexport interface APIDatabaseStatus {\n\tcpu: string;\n\tram: string;\n\tstatus: DatabaseStatus;\n\trunning: boolean;\n\tstorage: string;\n\tnetwork: APIDatabaseNetwork;\n\tuptime: number;\n\tcreated_at: ISODateString;\n\tupdated_at: ISODateString;\n}\n\n/**\n * @see https://docs.vertracloud.com/api-reference/endpoint/databases\n */\nexport interface APIDatabaseStatusShort {\n\tid: SnowFlake;\n\tcpu: string;\n\tram: string;\n\tstorage: string;\n\trunning: boolean;\n}\n\n/**\n * @see https://docs.vertracloud.com/api-reference/endpoint/databases\n */\nexport interface APIDatabaseMetrics {\n\tcpu: number;\n\tram: number;\n\tstorage: number;\n\tdate: ISODateString;\n\tnetwork: number[];\n}\n","import type { ISODateString, SnowFlake, UserPlan } from \"../../v1\";\nimport type { APIApplication, APIDatabase } from \"./index\";\n\n/**\n * @see https://docs.vertracloud.com/api-reference/endpoint/organizations\n */\nexport type OrganizationMemberRole =\n\t| \"owner\"\n\t| \"admin\"\n\t| \"developer\"\n\t| \"operator\"\n\t| \"viewer\";\nexport const OrganizationMemberRole = {\n\tOWNER: \"owner\",\n\tADMIN: \"admin\",\n\tDEVELOPER: \"developer\",\n\tOPERATOR: \"operator\",\n\tVIEWER: \"viewer\",\n} as const;\n\n/**\n * @see https://docs.vertracloud.com/api-reference/endpoint/organizations\n */\nexport interface APIOrganizationMember {\n\tuser_id: string;\n\trole: OrganizationMemberRole;\n\tjoined_at: ISODateString;\n}\n\n/**\n * @see https://docs.vertracloud.com/api-reference/endpoint/organizations\n */\nexport interface APIOrganization {\n\tid: SnowFlake;\n\tname: SnowFlake;\n\tdescription: string;\n\ttags: string[];\n\towner_id: SnowFlake;\n\tplan_id: UserPlan;\n\tmembers: APIOrganizationMember[];\n\tcreated_at: ISODateString;\n\tupdated_at: ISODateString;\n}\n\n/**\n * @see https://docs.vertracloud.com/api-reference/endpoint/organizations\n */\nexport interface APIOrganizationInfoResponse extends APIOrganization {\n\tapplications: APIApplication[];\n\tdatabases: APIDatabase[];\n}\n","import type { ISODateString, SnowFlake } from \"../../v1\";\n\n/**\n * @see https://docs.vertracloud.com/api-reference/endpoint/activities\n */\nexport type ActivityStatus = \"success\" | \"warning\" | \"error\" | \"info\";\nexport const ActivityStatus = {\n\tSuccess: \"success\",\n\tWarning: \"warning\",\n\tError: \"error\",\n\tInfo: \"info\",\n} as const;\n\n/**\n * @see https://docs.vertracloud.com/api-reference/endpoint/activities\n */\nexport type ActivityTargetType = \"app\" | \"database\" | \"organization\" | \"audit\";\nexport const ActivityTargetType = {\n\tApp: \"app\",\n\tDatabase: \"database\",\n\tOrganization: \"organization\",\n\tAudit: \"audit\",\n} as const;\n\n/**\n * @see https://docs.vertracloud.com/api-reference/endpoint/activities\n */\nexport interface APIActivity {\n\tid: SnowFlake;\n\tstatus: ActivityStatus;\n\ttarget_id: string;\n\ttarget_type: ActivityTargetType;\n\tauthor_id: SnowFlake | null;\n\ttitle: string;\n\tmessage: string;\n\ttimestamp: ISODateString;\n}\n","/**\n * @see https://docs.vertracloud.com/api-reference/endpoint/status\n */\nexport type StatusType = \"healthy\" | \"degraded\" | \"unknown\";\nexport const StatusType = {\n\tHEALTHY: \"healthy\",\n\tDEGRADED: \"degraded\",\n\tUNKNOWN: \"unknown\",\n} as const;\n\n/**\n * @see https://docs.vertracloud.com/api-reference/endpoint/status\n */\nexport interface APIStatus {\n\tstatus: StatusType;\n\tmessage: string;\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;;AC4CO,IAAM,WAAW;AAAA,EACvB,MAAM;AAAA,EACN,SAAS;AAAA,EACT,KAAK;AAAA,EACL,OAAO;AAAA,EACP,cAAc;AAAA,EACd,cAAc;AAAA,EACd,eAAe;AAAA,EACf,eAAe;AAChB;;;AC/CO,IAAM,sBAAsB;AAAA,EAClC,QAAQ;AAAA,EACR,QAAQ;AACT;AAMO,IAAM,oBAAoB;AAAA,EAChC,IAAI;AAAA,EACJ,MAAM;AACP;AAMO,IAAM,0BAA0B;AAAA,EACtC,SAAS;AAAA,EACT,WAAW;AAAA,EACX,WAAW;AAAA,EACX,QAAQ;AACT;AAMO,IAAM,qBAAqB;AAAA,EACjC,OAAO;AAAA,EACP,OAAO;AACR;AAMO,IAAM,kBAAkB;AAAA,EAC9B,KAAK;AAAA,EACL,SAAS;AACV;AAeO,IAAM,sBAAsB;AAAA,EAClC,MAAM;AAAA,EACN,WAAW;AACZ;AAMO,IAAM,qBAAqB;AAAA,EACjC,aAAa;AAAA,EACb,QAAQ;AACT;AAMO,IAAM,6BAA6B;AAAA,EACzC,QAAQ;AACT;;;AC5EO,IAAM,eAAe;AAAA,EAC3B,YAAY;AAAA,EACZ,SAAS;AAAA,EACT,OAAO;AACR;AAMO,IAAM,eAAe;AAAA,EAC3B,WAAW;AAAA,EACX,WAAW;AAAA,EACX,WAAW;AAAA,EACX,YAAY;AAAA,EACZ,cAAc;AAAA,EACd,cAAc;AAAA,EACd,cAAc;AAAA,EACd,eAAe;AAAA,EACf,iBAAiB;AAAA,EACjB,iBAAiB;AAAA,EACjB,iBAAiB;AAAA,EACjB,kBAAkB;AACnB;AAMO,IAAM,iBAAiB;AAAA,EAC7B,IAAI;AAAA,EACJ,MAAM;AACP;AAMO,IAAM,kBAAkB;AAAA,EAC9B,OAAO;AAAA,EACP,OAAO;AACR;;;ACnCO,IAAM,yBAAyB;AAAA,EACrC,OAAO;AAAA,EACP,OAAO;AAAA,EACP,WAAW;AAAA,EACX,UAAU;AAAA,EACV,QAAQ;AACT;;;ACZO,IAAM,iBAAiB;AAAA,EAC7B,SAAS;AAAA,EACT,SAAS;AAAA,EACT,OAAO;AAAA,EACP,MAAM;AACP;AAMO,IAAM,qBAAqB;AAAA,EACjC,KAAK;AAAA,EACL,UAAU;AAAA,EACV,cAAc;AAAA,EACd,OAAO;AACR;;;AClBO,IAAM,aAAa;AAAA,EACzB,SAAS;AAAA,EACT,UAAU;AAAA,EACV,SAAS;AACV;","names":[]}
|
|
1
|
+
{"version":3,"sources":["v1.ts","common/v1.ts","payloads/v1/application.ts","payloads/v1/database.ts","payloads/v1/organization.ts","payloads/v1/activity.ts","payloads/v1/status.ts"],"sourcesContent":["export * from \"./common/v1\";\nexport * from \"./payloads/v1/index\";\nexport * from \"./rest/v1/index\";\nexport * from \"./utils\";\n","export type SnowFlake = string;\n\nexport interface PaginationMeta<T> {\n\tdata: T[];\n\ttotal_count: number;\n\tpage: number;\n\tlimit: number;\n\ttotal_pages: number;\n\thas_next_page: boolean;\n\thas_previous_page: boolean;\n}\n\nexport interface APIPaginatedPayload<T> {\n\tresponse: PaginationMeta<T>;\n}\n\nexport interface APIPayload<T> {\n\tresponse?: T;\n\tcode?: string;\n\tmessage?: string;\n}\n\nexport interface APIReturnService<T> {\n\tstatus: number;\n\tpayload: APIPayload<T>;\n}\n\nexport interface APIPayloadMessageOnly {\n\tmessage: string;\n}\n\nexport interface APIHeaders {\n\tAuthorization: string;\n}\n\nexport type DeepPartial<T> = T extends object\n\t? {\n\t\t\t[P in keyof T]?: DeepPartial<T[P]>;\n\t\t}\n\t: T;\n\nexport type APIVersion<TVersion extends number> = `v${TVersion}`;\n\nexport type ISODateString = string;\n\nexport type UserPlan = 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8;\nexport const UserPlan = {\n\tFREE: 1,\n\tECONOMY: 2,\n\tPRO: 3,\n\tSCALE: 4,\n\tENTERPRISE_4: 5,\n\tENTERPRISE_8: 6,\n\tENTERPRISE_16: 7,\n\tENTERPRISE_32: 8,\n} as const;\n","import type { ISODateString, SnowFlake, UserPlan } from \"../../v1\";\n\n/**\n * @see https://docs.vertracloud.app/api-reference/endpoint/applications\n */\nexport type ApplicationLanguage = \"nodejs\" | \"python\";\nexport const ApplicationLanguage = {\n\tNODEJS: \"nodejs\",\n\tPYTHON: \"python\",\n} as const;\n\n/**\n * @see https://docs.vertracloud.app/api-reference/endpoint/applications\n */\nexport type ApplicationStatus = \"up\" | \"down\";\nexport const ApplicationStatus = {\n\tUP: \"up\",\n\tDOWN: \"down\",\n} as const;\n\n/**\n * @see https://docs.vertracloud.app/api-reference/endpoint/applications\n */\nexport type ApplicationCommitStatus = 1 | 2 | 3 | 4;\nexport const ApplicationCommitStatus = {\n\tPENDING: 1,\n\tDEPLOYING: 2,\n\tCOMPLETED: 3,\n\tFAILED: 4,\n} as const;\n\n/**\n * @see https://docs.vertracloud.app/api-reference/endpoint/applications\n */\nexport type ApplicationCluster = number;\nexport const ApplicationCluster = {\n\tUSA_1: 1,\n\tUSA_2: 2,\n} as const;\n\n/**\n * @see https://docs.vertracloud.app/api-reference/endpoint/applications\n */\nexport type ApplicationType = 1 | 2;\nexport const ApplicationType = {\n\tBOT: 1,\n\tWEBSITE: 2,\n} as const;\n\n/**\n * @see https://docs.vertracloud.app/api-reference/endpoint/applications\n */\nexport interface ApplicationCommit {\n\tversion: string;\n\ttimestamp: ISODateString;\n\tnotes: string;\n}\n\n/**\n * @see https://docs.vertracloud.app/api-reference/endpoint/applications\n */\nexport type ApplicationFileType = \"file\" | \"directory\";\nexport const ApplicationFileType = {\n\tFILE: \"file\",\n\tDIRECTORY: \"directory\",\n} as const;\n\n/**\n * @see https://docs.vertracloud.app/api-reference/endpoint/applications\n */\nexport type ApplicationVersion = \"recommended\" | \"latest\";\nexport const ApplicationVersion = {\n\tRECOMMENDED: \"recommended\",\n\tLATEST: \"latest\",\n} as const;\n\n/**\n * @see https://docs.vertracloud.app/api-reference/endpoint/applications\n */\nexport type ApplicationFileContentType = \"buffer\";\nexport const ApplicationFileContentType = {\n\tBUFFER: \"buffer\",\n} as const;\n\n/**\n * @see https://docs.vertracloud.app/api-reference/endpoint/applications\n */\nexport interface APIApplicationFile {\n\ttype: ApplicationFileType;\n\tname: string;\n\tsize?: string;\n\tlast_modified: ISODateString;\n}\n\n/**\n * @see https://docs.vertracloud.app/api-reference/endpoint/applications\n */\nexport interface APIApplicationFileContent {\n\ttype: ApplicationFileContentType;\n\tdata: number[];\n}\n\n/**\n * @see https://docs.vertracloud.app/api-reference/endpoint/applications\n */\nexport interface APIApplication {\n\tid: SnowFlake;\n\tcluster: ApplicationCluster;\n\ttype: ApplicationType;\n\tname: string;\n\tdescription: string;\n\towner_id: SnowFlake;\n\towner_plan_id: UserPlan; // Owner App Plan\n\tlanguage: ApplicationLanguage;\n\tram: number;\n\tstatus: ApplicationStatus;\n\tsubdomain: string | null; // example: \"my-app.vertraweb.com\"\n\tcustom_domain: string | null; // example: \"my-app.com.br\"\n\tlast_commit: ISODateString;\n\tlast_backup: ISODateString | null;\n\tcreated_at: ISODateString;\n\tupdated_at: ISODateString;\n}\n\n/**\n * @see https://docs.vertracloud.app/api-reference/endpoint/applications\n */\nexport interface APIApplicationNetwork {\n\ttotal: string;\n\tnow: string;\n}\n\n/**\n * @see https://docs.vertracloud.app/api-reference/endpoint/applications\n */\nexport interface APIApplicationActivity {\n\tmessage: string;\n\ttimestamp: ISODateString;\n}\n\n/**\n * @see https://docs.vertracloud.app/api-reference/endpoint/applications\n */\nexport interface APIApplicationStatus {\n\tid: SnowFlake;\n\tcpu: string;\n\tram: string;\n\tstatus: ApplicationStatus;\n\trunning: boolean;\n\tstorage: string;\n\tnetwork: APIApplicationNetwork;\n\tuptime: number;\n}\n\n/**\n * @see https://docs.vertracloud.app/api-reference/endpoint/applications\n */\nexport interface APIApplicationStatusShort {\n\tid: SnowFlake;\n\tcpu: string;\n\tram: string;\n\trunning: boolean;\n}\n\n/**\n * @see https://docs.vertracloud.app/api-reference/endpoint/applications\n */\nexport interface APIApplicationMetric {\n\tcpu: number;\n\tram: number;\n\tstorage: number;\n\tdate: ISODateString;\n\tnetwork: number[];\n}\n\n/**\n * @see https://docs.vertracloud.app/api-reference/endpoint/applications\n */\nexport interface APIApplicationCommit {\n\tid: SnowFlake;\n\tauthor_id: SnowFlake;\n\tmessage: string;\n\tversion: string;\n\tstatus: ApplicationCommitStatus;\n\tsize: string;\n\tdate: ISODateString;\n}\n\n/**\n * @see https://docs.vertracloud.app/api-reference/endpoint/applications\n */\nexport interface APIApplicationBackup {\n\tid: SnowFlake;\n\tapp_id: SnowFlake;\n\tauthor_id: SnowFlake | null;\n\tsize: string;\n\tdate: ISODateString;\n}\n\n/**\n * @see https://docs.vertracloud.app/api-reference/endpoint/applications\n */\nexport interface APIGroupedApplicationBackups {\n\tapp_id: SnowFlake;\n\tapp_name: string | null;\n\tbackups: APIApplicationBackup[];\n}\n\n/**\n * @see https://docs.vertracloud.app/api-reference/endpoint/applications\n */\nexport interface APIApplicationConfig {\n\tNAME: string;\n\tMEMORY: number;\n\tMAIN: string;\n\tVERSION: ApplicationVersion;\n\tDESCRIPTION?: string;\n\tAUTORESTART?: boolean;\n\tSTART?: string;\n\tSUBDOMAIN?: string;\n}\n\n/**\n * @see https://docs.vertracloud.app/api-reference/endpoint/applications\n */\nexport interface APIApplicationEnvironment {\n\tid: string;\n\tkey: string;\n\tvalue: string;\n\tnote: string | null;\n\tcreated_at: ISODateString;\n}\n","import type { ISODateString, SnowFlake, UserPlan } from \"../../v1\";\n\n/**\n * @see https://docs.vertracloud.app/api-reference/endpoint/databases\n */\nexport type DatabaseType = 1 | 2 | 3;\nexport const DatabaseType = {\n\tPOSTGRESQL: 1,\n\tMONGODB: 2,\n\tREDIS: 3,\n} as const;\n\n/**\n * @see https://docs.vertracloud.app/api-reference/endpoint/users\n */\nexport type DatabasePlan = 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12;\nexport const DatabasePlan = {\n\tREDIS_128: 1,\n\tREDIS_256: 2,\n\tREDIS_512: 3,\n\tREDIS_1024: 4,\n\tMONGODB_1024: 5,\n\tMONGODB_2048: 6,\n\tMONGODB_5120: 7,\n\tMONGODB_10240: 8,\n\tPOSTGRESQL_1024: 9,\n\tPOSTGRESQL_2048: 10,\n\tPOSTGRESQL_5120: 11,\n\tPOSTGRESQL_10240: 12,\n} as const;\n\n/**\n * @see https://docs.vertracloud.app/api-reference/endpoint/databases\n */\nexport type DatabaseStatus = \"up\" | \"down\";\nexport const DatabaseStatus = {\n\tUP: \"up\",\n\tDOWN: \"down\",\n} as const;\n\n/**\n * @see https://docs.vertracloud.app/api-reference/endpoint/status\n */\nexport type DatabaseCluster = number;\nexport const DatabaseCluster = {\n\tUSA_1: 1,\n\tUSA_2: 2,\n} as const;\n\n/**\n * @see https://docs.vertracloud.app/api-reference/endpoint/databases\n */\nexport interface APIDatabaseActivity {\n\tmessage: string;\n\ttimestamp: ISODateString;\n}\n\n/**\n * @see https://docs.vertracloud.app/api-reference/endpoint/databases\n */\nexport interface APIDatabase {\n\tid: SnowFlake;\n\tcluster: DatabaseCluster;\n\ttype: DatabaseType;\n\tduration: number;\n\tname: string;\n\tdescription: string;\n\towner_id: SnowFlake;\n\towner_plan_id: UserPlan; // Owner App Plan\n\tplan_id: DatabasePlan;\n\tstatus: DatabaseStatus;\n\tstorage: number;\n\tram: number;\n\thost: string; // example: \"vertra-cloud-<type>-<dbId>.vertraweb.app\"\n\tport: number;\n\tcreated_at: ISODateString;\n\tupdated_at: ISODateString;\n\tpurchased_at: ISODateString;\n\texpires_at: ISODateString;\n\tlast_backup: ISODateString | null;\n}\n\n/**\n * @see https://docs.vertracloud.app/api-reference/endpoint/databases\n */\nexport interface APIDatabaseNetwork {\n\ttotal: string;\n\tnow: string;\n}\n\n/**\n * @see https://docs.vertracloud.app/api-reference/endpoint/databases\n */\nexport interface APIDatabaseBackup {\n\tmessage: string;\n\ttimestamp: ISODateString;\n}\n\n/**\n * @see https://docs.vertracloud.app/api-reference/endpoint/databases\n */\nexport interface APIDatabaseStatus {\n\tid: SnowFlake;\n\tcpu: string;\n\tram: string;\n\tstatus: DatabaseStatus;\n\trunning: boolean;\n\tstorage: string;\n\tnetwork: APIDatabaseNetwork;\n\tuptime: number;\n}\n\n/**\n * @see https://docs.vertracloud.app/api-reference/endpoint/databases\n */\nexport interface APIDatabaseStatusShort {\n\tid: SnowFlake;\n\tcpu: string;\n\tram: string;\n\tstorage: string;\n\trunning: boolean;\n}\n\n/**\n * @see https://docs.vertracloud.app/api-reference/endpoint/databases\n */\nexport interface APIDatabaseMetrics {\n\tcpu: number;\n\tram: number;\n\tstorage: number;\n\tdate: ISODateString;\n\tnetwork: number[];\n}\n","import type { ISODateString, SnowFlake, UserPlan } from \"../../v1\";\nimport type { APIApplication, APIDatabase } from \"./index\";\n\n/**\n * @see https://docs.vertracloud.app/api-reference/endpoint/organizations\n */\nexport type OrganizationMemberRole =\n\t| \"owner\"\n\t| \"admin\"\n\t| \"developer\"\n\t| \"operator\"\n\t| \"viewer\";\nexport const OrganizationMemberRole = {\n\tOWNER: \"owner\",\n\tADMIN: \"admin\",\n\tDEVELOPER: \"developer\",\n\tOPERATOR: \"operator\",\n\tVIEWER: \"viewer\",\n} as const;\n\n/**\n * @see https://docs.vertracloud.app/api-reference/endpoint/organizations\n */\nexport interface APIOrganizationMember {\n\tuser_id: string;\n\trole: OrganizationMemberRole;\n\tjoined_at: ISODateString;\n}\n\n/**\n * @see https://docs.vertracloud.app/api-reference/endpoint/organizations\n */\nexport interface APIOrganization {\n\tid: SnowFlake;\n\tname: SnowFlake;\n\tdescription: string;\n\ttags: string[];\n\towner_id: SnowFlake;\n\tplan_id: UserPlan;\n\tmembers: APIOrganizationMember[];\n\tcreated_at: ISODateString;\n\tupdated_at: ISODateString;\n}\n\n/**\n * @see https://docs.vertracloud.app/api-reference/endpoint/organizations\n */\nexport interface APIOrganizationInfoResponse extends APIOrganization {\n\tapplications: APIApplication[];\n\tdatabases: APIDatabase[];\n}\n","import type { ISODateString, SnowFlake } from \"../../v1\";\n\n/**\n * @see https://docs.vertracloud.app/api-reference/endpoint/activities\n */\nexport type ActivityStatus = \"success\" | \"warning\" | \"error\" | \"info\";\nexport const ActivityStatus = {\n\tSuccess: \"success\",\n\tWarning: \"warning\",\n\tError: \"error\",\n\tInfo: \"info\",\n} as const;\n\n/**\n * @see https://docs.vertracloud.app/api-reference/endpoint/activities\n */\nexport type ActivityTargetType = \"app\" | \"database\" | \"organization\" | \"audit\";\nexport const ActivityTargetType = {\n\tApp: \"app\",\n\tDatabase: \"database\",\n\tOrganization: \"organization\",\n\tAudit: \"audit\",\n} as const;\n\n/**\n * @see https://docs.vertracloud.app/api-reference/endpoint/activities\n */\nexport interface APIActivity {\n\tid: SnowFlake;\n\tstatus: ActivityStatus;\n\ttarget_id: string;\n\ttarget_type: ActivityTargetType;\n\tauthor_id: SnowFlake | null;\n\ttitle: string;\n\tmessage: string;\n\ttimestamp: ISODateString;\n}\n","/**\n * @see https://docs.vertracloud.app/api-reference/endpoint/status\n */\nexport type StatusType = \"healthy\" | \"degraded\" | \"unknown\";\nexport const StatusType = {\n\tHEALTHY: \"healthy\",\n\tDEGRADED: \"degraded\",\n\tUNKNOWN: \"unknown\",\n} as const;\n\n/**\n * @see https://docs.vertracloud.app/api-reference/endpoint/status\n */\nexport interface APIStatus {\n\tstatus: StatusType;\n\tmessage: string;\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;;AC8CO,IAAM,WAAW;AAAA,EACvB,MAAM;AAAA,EACN,SAAS;AAAA,EACT,KAAK;AAAA,EACL,OAAO;AAAA,EACP,cAAc;AAAA,EACd,cAAc;AAAA,EACd,eAAe;AAAA,EACf,eAAe;AAChB;;;ACjDO,IAAM,sBAAsB;AAAA,EAClC,QAAQ;AAAA,EACR,QAAQ;AACT;AAMO,IAAM,oBAAoB;AAAA,EAChC,IAAI;AAAA,EACJ,MAAM;AACP;AAMO,IAAM,0BAA0B;AAAA,EACtC,SAAS;AAAA,EACT,WAAW;AAAA,EACX,WAAW;AAAA,EACX,QAAQ;AACT;AAMO,IAAM,qBAAqB;AAAA,EACjC,OAAO;AAAA,EACP,OAAO;AACR;AAMO,IAAM,kBAAkB;AAAA,EAC9B,KAAK;AAAA,EACL,SAAS;AACV;AAeO,IAAM,sBAAsB;AAAA,EAClC,MAAM;AAAA,EACN,WAAW;AACZ;AAMO,IAAM,qBAAqB;AAAA,EACjC,aAAa;AAAA,EACb,QAAQ;AACT;AAMO,IAAM,6BAA6B;AAAA,EACzC,QAAQ;AACT;;;AC5EO,IAAM,eAAe;AAAA,EAC3B,YAAY;AAAA,EACZ,SAAS;AAAA,EACT,OAAO;AACR;AAMO,IAAM,eAAe;AAAA,EAC3B,WAAW;AAAA,EACX,WAAW;AAAA,EACX,WAAW;AAAA,EACX,YAAY;AAAA,EACZ,cAAc;AAAA,EACd,cAAc;AAAA,EACd,cAAc;AAAA,EACd,eAAe;AAAA,EACf,iBAAiB;AAAA,EACjB,iBAAiB;AAAA,EACjB,iBAAiB;AAAA,EACjB,kBAAkB;AACnB;AAMO,IAAM,iBAAiB;AAAA,EAC7B,IAAI;AAAA,EACJ,MAAM;AACP;AAMO,IAAM,kBAAkB;AAAA,EAC9B,OAAO;AAAA,EACP,OAAO;AACR;;;ACnCO,IAAM,yBAAyB;AAAA,EACrC,OAAO;AAAA,EACP,OAAO;AAAA,EACP,WAAW;AAAA,EACX,UAAU;AAAA,EACV,QAAQ;AACT;;;ACZO,IAAM,iBAAiB;AAAA,EAC7B,SAAS;AAAA,EACT,SAAS;AAAA,EACT,OAAO;AAAA,EACP,MAAM;AACP;AAMO,IAAM,qBAAqB;AAAA,EACjC,KAAK;AAAA,EACL,UAAU;AAAA,EACV,cAAc;AAAA,EACd,OAAO;AACR;;;AClBO,IAAM,aAAa;AAAA,EACzB,SAAS;AAAA,EACT,UAAU;AAAA,EACV,SAAS;AACV;","names":[]}
|