@vertracloud/api-types 0.0.3 → 0.0.5
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/LICENSE +1 -1
- package/README.md +1 -1
- package/package.json +1 -1
- package/payloads/v1/application.d.ts +20 -9
- package/payloads/v1/application.js +9 -8
- package/payloads/v1/application.js.map +1 -1
- package/payloads/v1/application.mjs +9 -8
- package/payloads/v1/database.d.ts +20 -18
- package/payloads/v1/database.js +17 -16
- package/payloads/v1/database.js.map +1 -1
- package/payloads/v1/database.mjs +17 -16
- package/payloads/v1/index.d.ts +2 -2
- package/payloads/v1/index.js +42 -47
- package/payloads/v1/index.js.map +1 -1
- package/payloads/v1/index.mjs +42 -46
- package/payloads/v1/organization.d.ts +5 -5
- package/payloads/v1/organization.js +5 -5
- package/payloads/v1/organization.js.map +1 -1
- package/payloads/v1/organization.mjs +5 -5
- package/payloads/v1/status.d.ts +5 -29
- package/payloads/v1/status.js +3 -10
- package/payloads/v1/status.js.map +1 -1
- package/payloads/v1/status.mjs +3 -9
- package/payloads/v1/user.d.ts +8 -8
- package/payloads/v1/user.js +8 -8
- package/payloads/v1/user.js.map +1 -1
- package/payloads/v1/user.mjs +8 -8
- package/rest/v1/application.d.ts +6 -2
- package/rest/v1/application.js.map +1 -1
- package/rest/v1/index.d.ts +1 -1
- package/v1.d.ts +3 -3
- package/v1.js +42 -47
- package/v1.js.map +1 -1
- package/v1.mjs +42 -46
package/payloads/v1/index.mjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// payloads/v1/application.ts
|
|
2
2
|
var ApplicationLanguage = {
|
|
3
|
-
|
|
4
|
-
|
|
3
|
+
NODEJS: "nodejs",
|
|
4
|
+
PYTHON: "python"
|
|
5
5
|
};
|
|
6
6
|
var ApplicationStatus = {
|
|
7
7
|
UP: "up",
|
|
@@ -14,59 +14,61 @@ var ApplicationCommitStatus = {
|
|
|
14
14
|
FAILED: 4
|
|
15
15
|
};
|
|
16
16
|
var ApplicationCluster = {
|
|
17
|
-
|
|
17
|
+
USA_1: 1,
|
|
18
|
+
USA_2: 2
|
|
18
19
|
};
|
|
19
20
|
var ApplicationType = {
|
|
20
|
-
|
|
21
|
-
|
|
21
|
+
BOT: 1,
|
|
22
|
+
WEBSITE: 2
|
|
22
23
|
};
|
|
23
24
|
var ApplicationFileType = {
|
|
24
|
-
|
|
25
|
-
|
|
25
|
+
FILE: "file",
|
|
26
|
+
DIRECTORY: "directory"
|
|
26
27
|
};
|
|
27
28
|
var ApplicationVersion = {
|
|
28
29
|
RECOMMENDED: "recommended",
|
|
29
30
|
LATEST: "latest"
|
|
30
31
|
};
|
|
31
32
|
var ApplicationFileContentType = {
|
|
32
|
-
|
|
33
|
+
BUFFER: "buffer"
|
|
33
34
|
};
|
|
34
35
|
|
|
35
36
|
// payloads/v1/database.ts
|
|
36
37
|
var DatabaseType = {
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
38
|
+
POSTGRESQL: 1,
|
|
39
|
+
MONGODB: 2,
|
|
40
|
+
REDIS: 3
|
|
40
41
|
};
|
|
41
42
|
var DatabasePlan = {
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
43
|
+
REDIS_128: 1,
|
|
44
|
+
REDIS_256: 2,
|
|
45
|
+
REDIS_512: 3,
|
|
46
|
+
REDIS_1024: 4,
|
|
47
|
+
MONGODB_1024: 5,
|
|
48
|
+
MONGODB_2048: 6,
|
|
49
|
+
MONGODB_5120: 7,
|
|
50
|
+
MONGODB_10240: 8,
|
|
51
|
+
POSTGRESQL_1024: 9,
|
|
52
|
+
POSTGRESQL_2048: 10,
|
|
53
|
+
POSTGRESQL_5120: 11,
|
|
54
|
+
POSTGRESQL_10240: 12
|
|
54
55
|
};
|
|
55
56
|
var DatabaseStatus = {
|
|
56
57
|
UP: "up",
|
|
57
58
|
DOWN: "down"
|
|
58
59
|
};
|
|
59
60
|
var DatabaseCluster = {
|
|
60
|
-
|
|
61
|
+
USA_1: 1,
|
|
62
|
+
USA_2: 2
|
|
61
63
|
};
|
|
62
64
|
|
|
63
65
|
// payloads/v1/organization.ts
|
|
64
66
|
var OrganizationMemberRole = {
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
67
|
+
OWNER: "owner",
|
|
68
|
+
ADMIN: "admin",
|
|
69
|
+
DEVELOPER: "developer",
|
|
70
|
+
OPERATOR: "operator",
|
|
71
|
+
VIEWER: "viewer"
|
|
70
72
|
};
|
|
71
73
|
|
|
72
74
|
// payloads/v1/activity.ts
|
|
@@ -85,26 +87,21 @@ var ActivityTargetType = {
|
|
|
85
87
|
|
|
86
88
|
// payloads/v1/status.ts
|
|
87
89
|
var StatusType = {
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
};
|
|
92
|
-
var ServicesType = {
|
|
93
|
-
UP: "up",
|
|
94
|
-
DOWN: "down",
|
|
95
|
-
Unknown: "unknown"
|
|
90
|
+
HEALTHY: "healthy",
|
|
91
|
+
DEGRADED: "degraded",
|
|
92
|
+
UNKNOWN: "unknown"
|
|
96
93
|
};
|
|
97
94
|
|
|
98
95
|
// payloads/v1/user.ts
|
|
99
96
|
var UserPlan = {
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
97
|
+
FREE: 1,
|
|
98
|
+
ECONOMY: 2,
|
|
99
|
+
PRO: 3,
|
|
100
|
+
SCALE: 4,
|
|
101
|
+
ENTERPRISE_4: 5,
|
|
102
|
+
ENTERPRISE_8: 6,
|
|
103
|
+
ENTERPRISE_16: 7,
|
|
104
|
+
ENTERPRISE_32: 8
|
|
108
105
|
};
|
|
109
106
|
export {
|
|
110
107
|
ActivityStatus,
|
|
@@ -122,7 +119,6 @@ export {
|
|
|
122
119
|
DatabaseStatus,
|
|
123
120
|
DatabaseType,
|
|
124
121
|
OrganizationMemberRole,
|
|
125
|
-
ServicesType,
|
|
126
122
|
StatusType,
|
|
127
123
|
UserPlan
|
|
128
124
|
};
|
|
@@ -7,11 +7,11 @@ import { APIDatabase } from './database.js';
|
|
|
7
7
|
*/
|
|
8
8
|
type OrganizationMemberRole = "owner" | "admin" | "developer" | "operator" | "viewer";
|
|
9
9
|
declare const OrganizationMemberRole: {
|
|
10
|
-
readonly
|
|
11
|
-
readonly
|
|
12
|
-
readonly
|
|
13
|
-
readonly
|
|
14
|
-
readonly
|
|
10
|
+
readonly OWNER: "owner";
|
|
11
|
+
readonly ADMIN: "admin";
|
|
12
|
+
readonly DEVELOPER: "developer";
|
|
13
|
+
readonly OPERATOR: "operator";
|
|
14
|
+
readonly VIEWER: "viewer";
|
|
15
15
|
};
|
|
16
16
|
/**
|
|
17
17
|
* @see https://docs.vertracloud.com/api-reference/endpoint/organizations
|
|
@@ -24,11 +24,11 @@ __export(organization_exports, {
|
|
|
24
24
|
});
|
|
25
25
|
module.exports = __toCommonJS(organization_exports);
|
|
26
26
|
var OrganizationMemberRole = {
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
27
|
+
OWNER: "owner",
|
|
28
|
+
ADMIN: "admin",
|
|
29
|
+
DEVELOPER: "developer",
|
|
30
|
+
OPERATOR: "operator",
|
|
31
|
+
VIEWER: "viewer"
|
|
32
32
|
};
|
|
33
33
|
// Annotate the CommonJS export names for ESM import in node:
|
|
34
34
|
0 && (module.exports = {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["organization.ts"],"sourcesContent":["import type { ISODateString, SnowFlake } 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\
|
|
1
|
+
{"version":3,"sources":["organization.ts"],"sourcesContent":["import type { ISODateString, SnowFlake } 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\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"],"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":[]}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
// payloads/v1/organization.ts
|
|
2
2
|
var OrganizationMemberRole = {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
3
|
+
OWNER: "owner",
|
|
4
|
+
ADMIN: "admin",
|
|
5
|
+
DEVELOPER: "developer",
|
|
6
|
+
OPERATOR: "operator",
|
|
7
|
+
VIEWER: "viewer"
|
|
8
8
|
};
|
|
9
9
|
export {
|
|
10
10
|
OrganizationMemberRole
|
package/payloads/v1/status.d.ts
CHANGED
|
@@ -3,40 +3,16 @@
|
|
|
3
3
|
*/
|
|
4
4
|
type StatusType = "healthy" | "degraded" | "unknown";
|
|
5
5
|
declare const StatusType: {
|
|
6
|
-
readonly
|
|
7
|
-
readonly
|
|
8
|
-
readonly
|
|
6
|
+
readonly HEALTHY: "healthy";
|
|
7
|
+
readonly DEGRADED: "degraded";
|
|
8
|
+
readonly UNKNOWN: "unknown";
|
|
9
9
|
};
|
|
10
|
-
/**
|
|
11
|
-
* @see https://docs.vertracloud.com/api-reference/endpoint/status
|
|
12
|
-
*/
|
|
13
|
-
type ServicesType = "up" | "down" | "unknown";
|
|
14
|
-
declare const ServicesType: {
|
|
15
|
-
readonly UP: "up";
|
|
16
|
-
readonly DOWN: "down";
|
|
17
|
-
readonly Unknown: "unknown";
|
|
18
|
-
};
|
|
19
|
-
/**
|
|
20
|
-
* @see https://docs.vertracloud.com/api-reference/endpoint/status
|
|
21
|
-
*/
|
|
22
|
-
interface APIStatusServices {
|
|
23
|
-
database: {
|
|
24
|
-
status: ServicesType;
|
|
25
|
-
ping: number;
|
|
26
|
-
};
|
|
27
|
-
cache: {
|
|
28
|
-
status: ServicesType;
|
|
29
|
-
ping: number;
|
|
30
|
-
};
|
|
31
|
-
}
|
|
32
10
|
/**
|
|
33
11
|
* @see https://docs.vertracloud.com/api-reference/endpoint/status
|
|
34
12
|
*/
|
|
35
13
|
interface APIStatus {
|
|
36
14
|
status: StatusType;
|
|
37
|
-
|
|
38
|
-
services: APIStatusServices;
|
|
39
|
-
uptime: number | null;
|
|
15
|
+
message: string;
|
|
40
16
|
}
|
|
41
17
|
|
|
42
|
-
export { type APIStatus,
|
|
18
|
+
export { type APIStatus, StatusType };
|
package/payloads/v1/status.js
CHANGED
|
@@ -20,23 +20,16 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
|
|
|
20
20
|
// payloads/v1/status.ts
|
|
21
21
|
var status_exports = {};
|
|
22
22
|
__export(status_exports, {
|
|
23
|
-
ServicesType: () => ServicesType,
|
|
24
23
|
StatusType: () => StatusType
|
|
25
24
|
});
|
|
26
25
|
module.exports = __toCommonJS(status_exports);
|
|
27
26
|
var StatusType = {
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
};
|
|
32
|
-
var ServicesType = {
|
|
33
|
-
UP: "up",
|
|
34
|
-
DOWN: "down",
|
|
35
|
-
Unknown: "unknown"
|
|
27
|
+
HEALTHY: "healthy",
|
|
28
|
+
DEGRADED: "degraded",
|
|
29
|
+
UNKNOWN: "unknown"
|
|
36
30
|
};
|
|
37
31
|
// Annotate the CommonJS export names for ESM import in node:
|
|
38
32
|
0 && (module.exports = {
|
|
39
|
-
ServicesType,
|
|
40
33
|
StatusType
|
|
41
34
|
});
|
|
42
35
|
//# sourceMappingURL=status.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["status.ts"],"sourcesContent":["/**\n * @see https://docs.vertracloud.com/api-reference/endpoint/status\n */\nexport type StatusType = \"healthy\" | \"degraded\" | \"unknown\";\nexport const StatusType = {\n\
|
|
1
|
+
{"version":3,"sources":["status.ts"],"sourcesContent":["/**\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;AAIO,IAAM,aAAa;AAAA,EACzB,SAAS;AAAA,EACT,UAAU;AAAA,EACV,SAAS;AACV;","names":[]}
|
package/payloads/v1/status.mjs
CHANGED
|
@@ -1,16 +1,10 @@
|
|
|
1
1
|
// payloads/v1/status.ts
|
|
2
2
|
var StatusType = {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
};
|
|
7
|
-
var ServicesType = {
|
|
8
|
-
UP: "up",
|
|
9
|
-
DOWN: "down",
|
|
10
|
-
Unknown: "unknown"
|
|
3
|
+
HEALTHY: "healthy",
|
|
4
|
+
DEGRADED: "degraded",
|
|
5
|
+
UNKNOWN: "unknown"
|
|
11
6
|
};
|
|
12
7
|
export {
|
|
13
|
-
ServicesType,
|
|
14
8
|
StatusType
|
|
15
9
|
};
|
|
16
10
|
//# sourceMappingURL=status.mjs.map
|
package/payloads/v1/user.d.ts
CHANGED
|
@@ -7,14 +7,14 @@ import { APIDatabase } from './database.js';
|
|
|
7
7
|
*/
|
|
8
8
|
type UserPlan = 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8;
|
|
9
9
|
declare const UserPlan: {
|
|
10
|
-
readonly
|
|
11
|
-
readonly
|
|
12
|
-
readonly
|
|
13
|
-
readonly
|
|
14
|
-
readonly
|
|
15
|
-
readonly
|
|
16
|
-
readonly
|
|
17
|
-
readonly
|
|
10
|
+
readonly FREE: 1;
|
|
11
|
+
readonly ECONOMY: 2;
|
|
12
|
+
readonly PRO: 3;
|
|
13
|
+
readonly SCALE: 4;
|
|
14
|
+
readonly ENTERPRISE_4: 5;
|
|
15
|
+
readonly ENTERPRISE_8: 6;
|
|
16
|
+
readonly ENTERPRISE_16: 7;
|
|
17
|
+
readonly ENTERPRISE_32: 8;
|
|
18
18
|
};
|
|
19
19
|
/**
|
|
20
20
|
* @see https://docs.vertracloud.com/api-reference/endpoint/users
|
package/payloads/v1/user.js
CHANGED
|
@@ -24,14 +24,14 @@ __export(user_exports, {
|
|
|
24
24
|
});
|
|
25
25
|
module.exports = __toCommonJS(user_exports);
|
|
26
26
|
var UserPlan = {
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
27
|
+
FREE: 1,
|
|
28
|
+
ECONOMY: 2,
|
|
29
|
+
PRO: 3,
|
|
30
|
+
SCALE: 4,
|
|
31
|
+
ENTERPRISE_4: 5,
|
|
32
|
+
ENTERPRISE_8: 6,
|
|
33
|
+
ENTERPRISE_16: 7,
|
|
34
|
+
ENTERPRISE_32: 8
|
|
35
35
|
};
|
|
36
36
|
// Annotate the CommonJS export names for ESM import in node:
|
|
37
37
|
0 && (module.exports = {
|
package/payloads/v1/user.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["user.ts"],"sourcesContent":["import type { ISODateString, SnowFlake } from \"../../v1\";\nimport type { APIApplication, APIDatabase } from \"./index\";\n\n/**\n * @see https://docs.vertracloud.com/api-reference/endpoint/users\n */\nexport type UserPlan = 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8;\nexport const UserPlan = {\n\
|
|
1
|
+
{"version":3,"sources":["user.ts"],"sourcesContent":["import type { ISODateString, SnowFlake } from \"../../v1\";\nimport type { APIApplication, APIDatabase } from \"./index\";\n\n/**\n * @see https://docs.vertracloud.com/api-reference/endpoint/users\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\n/**\n * @see https://docs.vertracloud.com/api-reference/endpoint/users\n */\nexport interface APIUser {\n\tid: SnowFlake;\n\tname: string;\n\tplan: UserPlan;\n\tcreated_at: ISODateString;\n\tupdated_at: ISODateString;\n}\n\n/**\n * @see https://docs.vertracloud.com/api-reference/endpoint/users\n */\nexport interface APIUserPlanMemory {\n\tlimit: number;\n\tused: number;\n}\n\n/**\n * @see https://docs.vertracloud.com/api-reference/endpoint/users\n */\nexport interface APIUserPlan {\n\tid: UserPlan;\n\tname: string;\n\texpires_at: ISODateString | null;\n\tmemory: APIUserPlanMemory;\n}\n\n/**\n * @see https://docs.vertracloud.com/api-reference/endpoint/users\n */\nexport interface APIUserInfoResponse {\n\tid: SnowFlake;\n\tname: string;\n\tplan: APIUserPlan;\n\tapplications: APIApplication[];\n\tdatabases: APIDatabase[];\n\tcreated_at: ISODateString;\n\tupdated_at: ISODateString;\n}\n\n/**\n * @see https://docs.vertracloud.com/api-reference/endpoint/users\n */\nexport interface APIUserOrgInviteKey {\n\tcode: SnowFlake;\n\tcreated_at: ISODateString;\n\texpire_at: ISODateString;\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAOO,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/payloads/v1/user.mjs
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
// payloads/v1/user.ts
|
|
2
2
|
var UserPlan = {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
3
|
+
FREE: 1,
|
|
4
|
+
ECONOMY: 2,
|
|
5
|
+
PRO: 3,
|
|
6
|
+
SCALE: 4,
|
|
7
|
+
ENTERPRISE_4: 5,
|
|
8
|
+
ENTERPRISE_8: 6,
|
|
9
|
+
ENTERPRISE_16: 7,
|
|
10
|
+
ENTERPRISE_32: 8
|
|
11
11
|
};
|
|
12
12
|
export {
|
|
13
13
|
UserPlan
|
package/rest/v1/application.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { APIPayload } from '../../common/v1.js';
|
|
2
|
-
import { APIApplication, APIApplicationStatus, APIApplicationStatusShort, APIApplicationMetric, APIApplicationCommit, APIApplicationBackup, APIGroupedApplicationBackups, APIApplicationFile, APIApplicationFileContent } from '../../payloads/v1/application.js';
|
|
2
|
+
import { APIApplication, APIApplicationStatus, APIApplicationStatusShort, APIApplicationMetric, APIApplicationCommit, APIApplicationBackup, APIGroupedApplicationBackups, APIApplicationFile, APIApplicationFileContent, APIApplicationEnvironment } from '../../payloads/v1/application.js';
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
5
|
* @see https://docs.vertracloud.com/api-reference/endpoint/applications
|
|
@@ -57,5 +57,9 @@ type RESTGetAPIApplicationRestartResponse = APIPayload<boolean>;
|
|
|
57
57
|
* @see https://docs.vertracloud.com/api-reference/endpoint/applications
|
|
58
58
|
*/
|
|
59
59
|
type RESTGetAPIApplicationStopResponse = APIPayload<boolean>;
|
|
60
|
+
/**
|
|
61
|
+
* @see https://docs.vertracloud.com/api-reference/endpoint/applications
|
|
62
|
+
*/
|
|
63
|
+
type RESTGetAPIApplicationEnvironmentResponse = APIPayload<APIApplicationEnvironment[]>;
|
|
60
64
|
|
|
61
|
-
export type { RESTGetAPIApplicationBackupResponse, RESTGetAPIApplicationBackupsResponse, RESTGetAPIApplicationCommitsResponse, RESTGetAPIApplicationFileContentResponse, RESTGetAPIApplicationFilesResponse, RESTGetAPIApplicationLogsResponse, RESTGetAPIApplicationMetricsResponse, RESTGetAPIApplicationResponse, RESTGetAPIApplicationRestartResponse, RESTGetAPIApplicationStartResponse, RESTGetAPIApplicationStatusResponse, RESTGetAPIApplicationStatusShortResponse, RESTGetAPIApplicationStopResponse, RESTGetAPIGroupedApplicationBackupsResponse };
|
|
65
|
+
export type { RESTGetAPIApplicationBackupResponse, RESTGetAPIApplicationBackupsResponse, RESTGetAPIApplicationCommitsResponse, RESTGetAPIApplicationEnvironmentResponse, RESTGetAPIApplicationFileContentResponse, RESTGetAPIApplicationFilesResponse, RESTGetAPIApplicationLogsResponse, RESTGetAPIApplicationMetricsResponse, RESTGetAPIApplicationResponse, RESTGetAPIApplicationRestartResponse, RESTGetAPIApplicationStartResponse, RESTGetAPIApplicationStatusResponse, RESTGetAPIApplicationStatusShortResponse, RESTGetAPIApplicationStopResponse, RESTGetAPIGroupedApplicationBackupsResponse };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["application.ts"],"sourcesContent":["import type {\n\tAPIApplication,\n\tAPIApplicationBackup,\n\tAPIApplicationCommit,\n\tAPIApplicationFile,\n\tAPIApplicationFileContent,\n\tAPIApplicationMetric,\n\tAPIApplicationStatus,\n\tAPIApplicationStatusShort,\n\tAPIGroupedApplicationBackups,\n\tAPIPayload,\n} from \"../../v1\";\n\n/**\n * @see https://docs.vertracloud.com/api-reference/endpoint/applications\n */\nexport type RESTGetAPIApplicationResponse = APIPayload<APIApplication>;\n\n/**\n * @see https://docs.vertracloud.com/api-reference/endpoint/applications\n */\nexport type RESTGetAPIApplicationStatusResponse =\n\tAPIPayload<APIApplicationStatus>;\n\n/**\n * @see https://docs.vertracloud.com/api-reference/endpoint/applications\n */\nexport type RESTGetAPIApplicationStatusShortResponse =\n\tAPIPayload<APIApplicationStatusShort>;\n\n/**\n * @see https://docs.vertracloud.com/api-reference/endpoint/applications\n */\nexport type RESTGetAPIApplicationLogsResponse = APIPayload<string>;\n\n/**\n * @see https://docs.vertracloud.com/api-reference/endpoint/applications\n */\nexport type RESTGetAPIApplicationMetricsResponse = APIPayload<\n\tAPIApplicationMetric[]\n>;\n\n/**\n * @see https://docs.vertracloud.com/api-reference/endpoint/applications\n */\nexport type RESTGetAPIApplicationCommitsResponse = APIPayload<\n\tAPIApplicationCommit[]\n>;\n\n/**\n * @see https://docs.vertracloud.com/api-reference/endpoint/applications\n */\nexport type RESTGetAPIApplicationBackupsResponse = APIPayload<\n\tAPIApplicationBackup[]\n>;\n\n/**\n * @see https://docs.vertracloud.com/api-reference/endpoint/applications\n */\nexport type RESTGetAPIGroupedApplicationBackupsResponse = APIPayload<\n\tAPIGroupedApplicationBackups[]\n>;\n\n/**\n * @see https://docs.vertracloud.com/api-reference/endpoint/applications\n */\nexport type RESTGetAPIApplicationBackupResponse =\n\tAPIPayload<APIApplicationBackup>;\n\n/**\n * @see https://docs.vertracloud.com/api-reference/endpoint/applications\n */\nexport type RESTGetAPIApplicationFilesResponse = APIPayload<\n\tAPIApplicationFile[]\n>;\n\n/**\n * @see https://docs.vertracloud.com/api-reference/endpoint/applications\n */\nexport type RESTGetAPIApplicationFileContentResponse =\n\tAPIPayload<APIApplicationFileContent>;\n\n/**\n * @see https://docs.vertracloud.com/api-reference/endpoint/applications\n */\nexport type RESTGetAPIApplicationStartResponse = APIPayload<boolean>;\n\n/**\n * @see https://docs.vertracloud.com/api-reference/endpoint/applications\n */\nexport type RESTGetAPIApplicationRestartResponse = APIPayload<boolean>;\n\n/**\n * @see https://docs.vertracloud.com/api-reference/endpoint/applications\n */\nexport type RESTGetAPIApplicationStopResponse = APIPayload<boolean>;\n"],"mappings":";;;;;;;;;;;;;;;;AAAA;AAAA;","names":[]}
|
|
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.com/api-reference/endpoint/applications\n */\nexport type RESTGetAPIApplicationResponse = APIPayload<APIApplication>;\n\n/**\n * @see https://docs.vertracloud.com/api-reference/endpoint/applications\n */\nexport type RESTGetAPIApplicationStatusResponse =\n\tAPIPayload<APIApplicationStatus>;\n\n/**\n * @see https://docs.vertracloud.com/api-reference/endpoint/applications\n */\nexport type RESTGetAPIApplicationStatusShortResponse =\n\tAPIPayload<APIApplicationStatusShort>;\n\n/**\n * @see https://docs.vertracloud.com/api-reference/endpoint/applications\n */\nexport type RESTGetAPIApplicationLogsResponse = APIPayload<string>;\n\n/**\n * @see https://docs.vertracloud.com/api-reference/endpoint/applications\n */\nexport type RESTGetAPIApplicationMetricsResponse = APIPayload<\n\tAPIApplicationMetric[]\n>;\n\n/**\n * @see https://docs.vertracloud.com/api-reference/endpoint/applications\n */\nexport type RESTGetAPIApplicationCommitsResponse = APIPayload<\n\tAPIApplicationCommit[]\n>;\n\n/**\n * @see https://docs.vertracloud.com/api-reference/endpoint/applications\n */\nexport type RESTGetAPIApplicationBackupsResponse = APIPayload<\n\tAPIApplicationBackup[]\n>;\n\n/**\n * @see https://docs.vertracloud.com/api-reference/endpoint/applications\n */\nexport type RESTGetAPIGroupedApplicationBackupsResponse = APIPayload<\n\tAPIGroupedApplicationBackups[]\n>;\n\n/**\n * @see https://docs.vertracloud.com/api-reference/endpoint/applications\n */\nexport type RESTGetAPIApplicationBackupResponse =\n\tAPIPayload<APIApplicationBackup>;\n\n/**\n * @see https://docs.vertracloud.com/api-reference/endpoint/applications\n */\nexport type RESTGetAPIApplicationFilesResponse = APIPayload<\n\tAPIApplicationFile[]\n>;\n\n/**\n * @see https://docs.vertracloud.com/api-reference/endpoint/applications\n */\nexport type RESTGetAPIApplicationFileContentResponse =\n\tAPIPayload<APIApplicationFileContent>;\n\n/**\n * @see https://docs.vertracloud.com/api-reference/endpoint/applications\n */\nexport type RESTGetAPIApplicationStartResponse = APIPayload<boolean>;\n\n/**\n * @see https://docs.vertracloud.com/api-reference/endpoint/applications\n */\nexport type RESTGetAPIApplicationRestartResponse = APIPayload<boolean>;\n\n/**\n * @see https://docs.vertracloud.com/api-reference/endpoint/applications\n */\nexport type RESTGetAPIApplicationStopResponse = APIPayload<boolean>;\n\n/**\n * @see https://docs.vertracloud.com/api-reference/endpoint/applications\n */\nexport type RESTGetAPIApplicationEnvironmentResponse = APIPayload<\n\tAPIApplicationEnvironment[]\n>;\n"],"mappings":";;;;;;;;;;;;;;;;AAAA;AAAA;","names":[]}
|
package/rest/v1/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { RESTGetAPIApplicationBackupResponse, RESTGetAPIApplicationBackupsResponse, RESTGetAPIApplicationCommitsResponse, RESTGetAPIApplicationFileContentResponse, RESTGetAPIApplicationFilesResponse, RESTGetAPIApplicationLogsResponse, RESTGetAPIApplicationMetricsResponse, RESTGetAPIApplicationResponse, RESTGetAPIApplicationRestartResponse, RESTGetAPIApplicationStartResponse, RESTGetAPIApplicationStatusResponse, RESTGetAPIApplicationStatusShortResponse, RESTGetAPIApplicationStopResponse, RESTGetAPIGroupedApplicationBackupsResponse } from './application.js';
|
|
1
|
+
export { RESTGetAPIApplicationBackupResponse, RESTGetAPIApplicationBackupsResponse, RESTGetAPIApplicationCommitsResponse, RESTGetAPIApplicationEnvironmentResponse, RESTGetAPIApplicationFileContentResponse, RESTGetAPIApplicationFilesResponse, RESTGetAPIApplicationLogsResponse, RESTGetAPIApplicationMetricsResponse, RESTGetAPIApplicationResponse, RESTGetAPIApplicationRestartResponse, RESTGetAPIApplicationStartResponse, RESTGetAPIApplicationStatusResponse, RESTGetAPIApplicationStatusShortResponse, RESTGetAPIApplicationStopResponse, RESTGetAPIGroupedApplicationBackupsResponse } from './application.js';
|
|
2
2
|
export { RESTGetAPIDatabaseLogsResponse, RESTGetAPIDatabaseMetricsResponse, RESTGetAPIDatabaseResponse, RESTGetAPIDatabaseRestartResponse, RESTGetAPIDatabaseStartResponse, RESTGetAPIDatabaseStatusResponse, RESTGetAPIDatabaseStatusShortResponse, RESTGetAPIDatabaseStopResponse } from './database.js';
|
|
3
3
|
export { RESTGetAPIOrganizationInfoResponse, RESTGetAPIOrganizationResponse } from './organization.js';
|
|
4
4
|
export { RESTGetAPIStatusResponse } from './status.js';
|
package/v1.d.ts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
export { APIHeaders, APIPaginatedPayload, APIPayload, APIPayloadStatus, APIPayloadStatusOnly, APIVersion, DeepPartial, ISODateString, PaginationMeta, SnowFlake } from './common/v1.js';
|
|
2
|
-
export { APIApplication, APIApplicationActivity, APIApplicationBackup, APIApplicationCommit, APIApplicationConfig, APIApplicationFile, APIApplicationFileContent, APIApplicationMetric, APIApplicationNetwork, APIApplicationStatus, APIApplicationStatusShort, APIGroupedApplicationBackups, ApplicationCluster, ApplicationCommit, ApplicationCommitStatus, ApplicationFileContentType, ApplicationFileType, ApplicationLanguage, ApplicationStatus, ApplicationType, ApplicationVersion } from './payloads/v1/application.js';
|
|
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, APIDatabaseConnection, 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';
|
|
5
5
|
export { APIActivity, ActivityStatus, ActivityTargetType } from './payloads/v1/activity.js';
|
|
6
|
-
export { APIStatus,
|
|
6
|
+
export { APIStatus, StatusType } from './payloads/v1/status.js';
|
|
7
7
|
export { APIUser, APIUserInfoResponse, APIUserOrgInviteKey, APIUserPlan, APIUserPlanMemory, UserPlan } from './payloads/v1/user.js';
|
|
8
|
-
export { RESTGetAPIApplicationBackupResponse, RESTGetAPIApplicationBackupsResponse, RESTGetAPIApplicationCommitsResponse, RESTGetAPIApplicationFileContentResponse, RESTGetAPIApplicationFilesResponse, RESTGetAPIApplicationLogsResponse, RESTGetAPIApplicationMetricsResponse, RESTGetAPIApplicationResponse, RESTGetAPIApplicationRestartResponse, RESTGetAPIApplicationStartResponse, RESTGetAPIApplicationStatusResponse, RESTGetAPIApplicationStatusShortResponse, RESTGetAPIApplicationStopResponse, RESTGetAPIGroupedApplicationBackupsResponse } from './rest/v1/application.js';
|
|
8
|
+
export { RESTGetAPIApplicationBackupResponse, RESTGetAPIApplicationBackupsResponse, RESTGetAPIApplicationCommitsResponse, RESTGetAPIApplicationEnvironmentResponse, RESTGetAPIApplicationFileContentResponse, RESTGetAPIApplicationFilesResponse, RESTGetAPIApplicationLogsResponse, RESTGetAPIApplicationMetricsResponse, RESTGetAPIApplicationResponse, RESTGetAPIApplicationRestartResponse, RESTGetAPIApplicationStartResponse, RESTGetAPIApplicationStatusResponse, RESTGetAPIApplicationStatusShortResponse, RESTGetAPIApplicationStopResponse, RESTGetAPIGroupedApplicationBackupsResponse } from './rest/v1/application.js';
|
|
9
9
|
export { RESTGetAPIDatabaseLogsResponse, RESTGetAPIDatabaseMetricsResponse, RESTGetAPIDatabaseResponse, RESTGetAPIDatabaseRestartResponse, RESTGetAPIDatabaseStartResponse, RESTGetAPIDatabaseStatusResponse, RESTGetAPIDatabaseStatusShortResponse, RESTGetAPIDatabaseStopResponse } from './rest/v1/database.js';
|
|
10
10
|
export { RESTGetAPIOrganizationInfoResponse, RESTGetAPIOrganizationResponse } from './rest/v1/organization.js';
|
|
11
11
|
export { RESTGetAPIStatusResponse } from './rest/v1/status.js';
|
package/v1.js
CHANGED
|
@@ -35,7 +35,6 @@ __export(v1_exports, {
|
|
|
35
35
|
DatabaseStatus: () => DatabaseStatus,
|
|
36
36
|
DatabaseType: () => DatabaseType,
|
|
37
37
|
OrganizationMemberRole: () => OrganizationMemberRole,
|
|
38
|
-
ServicesType: () => ServicesType,
|
|
39
38
|
StatusType: () => StatusType,
|
|
40
39
|
UserPlan: () => UserPlan
|
|
41
40
|
});
|
|
@@ -43,8 +42,8 @@ module.exports = __toCommonJS(v1_exports);
|
|
|
43
42
|
|
|
44
43
|
// payloads/v1/application.ts
|
|
45
44
|
var ApplicationLanguage = {
|
|
46
|
-
|
|
47
|
-
|
|
45
|
+
NODEJS: "nodejs",
|
|
46
|
+
PYTHON: "python"
|
|
48
47
|
};
|
|
49
48
|
var ApplicationStatus = {
|
|
50
49
|
UP: "up",
|
|
@@ -57,59 +56,61 @@ var ApplicationCommitStatus = {
|
|
|
57
56
|
FAILED: 4
|
|
58
57
|
};
|
|
59
58
|
var ApplicationCluster = {
|
|
60
|
-
|
|
59
|
+
USA_1: 1,
|
|
60
|
+
USA_2: 2
|
|
61
61
|
};
|
|
62
62
|
var ApplicationType = {
|
|
63
|
-
|
|
64
|
-
|
|
63
|
+
BOT: 1,
|
|
64
|
+
WEBSITE: 2
|
|
65
65
|
};
|
|
66
66
|
var ApplicationFileType = {
|
|
67
|
-
|
|
68
|
-
|
|
67
|
+
FILE: "file",
|
|
68
|
+
DIRECTORY: "directory"
|
|
69
69
|
};
|
|
70
70
|
var ApplicationVersion = {
|
|
71
71
|
RECOMMENDED: "recommended",
|
|
72
72
|
LATEST: "latest"
|
|
73
73
|
};
|
|
74
74
|
var ApplicationFileContentType = {
|
|
75
|
-
|
|
75
|
+
BUFFER: "buffer"
|
|
76
76
|
};
|
|
77
77
|
|
|
78
78
|
// payloads/v1/database.ts
|
|
79
79
|
var DatabaseType = {
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
80
|
+
POSTGRESQL: 1,
|
|
81
|
+
MONGODB: 2,
|
|
82
|
+
REDIS: 3
|
|
83
83
|
};
|
|
84
84
|
var DatabasePlan = {
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
85
|
+
REDIS_128: 1,
|
|
86
|
+
REDIS_256: 2,
|
|
87
|
+
REDIS_512: 3,
|
|
88
|
+
REDIS_1024: 4,
|
|
89
|
+
MONGODB_1024: 5,
|
|
90
|
+
MONGODB_2048: 6,
|
|
91
|
+
MONGODB_5120: 7,
|
|
92
|
+
MONGODB_10240: 8,
|
|
93
|
+
POSTGRESQL_1024: 9,
|
|
94
|
+
POSTGRESQL_2048: 10,
|
|
95
|
+
POSTGRESQL_5120: 11,
|
|
96
|
+
POSTGRESQL_10240: 12
|
|
97
97
|
};
|
|
98
98
|
var DatabaseStatus = {
|
|
99
99
|
UP: "up",
|
|
100
100
|
DOWN: "down"
|
|
101
101
|
};
|
|
102
102
|
var DatabaseCluster = {
|
|
103
|
-
|
|
103
|
+
USA_1: 1,
|
|
104
|
+
USA_2: 2
|
|
104
105
|
};
|
|
105
106
|
|
|
106
107
|
// payloads/v1/organization.ts
|
|
107
108
|
var OrganizationMemberRole = {
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
109
|
+
OWNER: "owner",
|
|
110
|
+
ADMIN: "admin",
|
|
111
|
+
DEVELOPER: "developer",
|
|
112
|
+
OPERATOR: "operator",
|
|
113
|
+
VIEWER: "viewer"
|
|
113
114
|
};
|
|
114
115
|
|
|
115
116
|
// payloads/v1/activity.ts
|
|
@@ -128,26 +129,21 @@ var ActivityTargetType = {
|
|
|
128
129
|
|
|
129
130
|
// payloads/v1/status.ts
|
|
130
131
|
var StatusType = {
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
};
|
|
135
|
-
var ServicesType = {
|
|
136
|
-
UP: "up",
|
|
137
|
-
DOWN: "down",
|
|
138
|
-
Unknown: "unknown"
|
|
132
|
+
HEALTHY: "healthy",
|
|
133
|
+
DEGRADED: "degraded",
|
|
134
|
+
UNKNOWN: "unknown"
|
|
139
135
|
};
|
|
140
136
|
|
|
141
137
|
// payloads/v1/user.ts
|
|
142
138
|
var UserPlan = {
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
139
|
+
FREE: 1,
|
|
140
|
+
ECONOMY: 2,
|
|
141
|
+
PRO: 3,
|
|
142
|
+
SCALE: 4,
|
|
143
|
+
ENTERPRISE_4: 5,
|
|
144
|
+
ENTERPRISE_8: 6,
|
|
145
|
+
ENTERPRISE_16: 7,
|
|
146
|
+
ENTERPRISE_32: 8
|
|
151
147
|
};
|
|
152
148
|
// Annotate the CommonJS export names for ESM import in node:
|
|
153
149
|
0 && (module.exports = {
|
|
@@ -166,7 +162,6 @@ var UserPlan = {
|
|
|
166
162
|
DatabaseStatus,
|
|
167
163
|
DatabaseType,
|
|
168
164
|
OrganizationMemberRole,
|
|
169
|
-
ServicesType,
|
|
170
165
|
StatusType,
|
|
171
166
|
UserPlan
|
|
172
167
|
});
|