@vertracloud/api-types 0.0.1
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 +21 -0
- package/README.md +65 -0
- package/common/v1.d.ts +33 -0
- package/common/v1.js +19 -0
- package/common/v1.js.map +1 -0
- package/common/v1.mjs +1 -0
- package/package.json +67 -0
- package/payloads/v1/activity.d.ts +37 -0
- package/payloads/v1/activity.js +44 -0
- package/payloads/v1/activity.js.map +1 -0
- package/payloads/v1/activity.mjs +18 -0
- package/payloads/v1/application.d.ts +202 -0
- package/payloads/v1/application.js +76 -0
- package/payloads/v1/application.js.map +1 -0
- package/payloads/v1/application.mjs +44 -0
- package/payloads/v1/database.d.ts +3 -0
- package/payloads/v1/database.js +46 -0
- package/payloads/v1/database.js.map +1 -0
- package/payloads/v1/database.mjs +19 -0
- package/payloads/v1/index.d.ts +6 -0
- package/payloads/v1/index.js +173 -0
- package/payloads/v1/index.js.map +1 -0
- package/payloads/v1/index.mjs +129 -0
- package/payloads/v1/organization.d.ts +45 -0
- package/payloads/v1/organization.js +37 -0
- package/payloads/v1/organization.js.map +1 -0
- package/payloads/v1/organization.mjs +12 -0
- package/payloads/v1/status.d.ts +42 -0
- package/payloads/v1/status.js +42 -0
- package/payloads/v1/status.js.map +1 -0
- package/payloads/v1/status.mjs +16 -0
- package/payloads/v1/user.d.ts +3 -0
- package/payloads/v1/user.js +56 -0
- package/payloads/v1/user.js.map +1 -0
- package/payloads/v1/user.mjs +30 -0
- package/rest/v1/activity.d.ts +13 -0
- package/rest/v1/activity.js +19 -0
- package/rest/v1/activity.js.map +1 -0
- package/rest/v1/activity.mjs +1 -0
- package/rest/v1/application.d.ts +61 -0
- package/rest/v1/application.js +19 -0
- package/rest/v1/application.js.map +1 -0
- package/rest/v1/application.mjs +1 -0
- package/rest/v1/database.d.ts +38 -0
- package/rest/v1/database.js +19 -0
- package/rest/v1/database.js.map +1 -0
- package/rest/v1/database.mjs +1 -0
- package/rest/v1/index.d.ts +10 -0
- package/rest/v1/index.js +19 -0
- package/rest/v1/index.js.map +1 -0
- package/rest/v1/index.mjs +1 -0
- package/rest/v1/organization.d.ts +15 -0
- package/rest/v1/organization.js +19 -0
- package/rest/v1/organization.js.map +1 -0
- package/rest/v1/organization.mjs +1 -0
- package/rest/v1/status.d.ts +9 -0
- package/rest/v1/status.js +19 -0
- package/rest/v1/status.js.map +1 -0
- package/rest/v1/status.mjs +1 -0
- package/rest/v1/user.d.ts +14 -0
- package/rest/v1/user.js +19 -0
- package/rest/v1/user.js.map +1 -0
- package/rest/v1/user.mjs +1 -0
- package/utils.d.ts +8 -0
- package/utils.js +19 -0
- package/utils.js.map +1 -0
- package/utils.mjs +1 -0
- package/v1.d.ts +12 -0
- package/v1.js +173 -0
- package/v1.js.map +1 -0
- package/v1.mjs +129 -0
package/v1.js
ADDED
|
@@ -0,0 +1,173 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __export = (target, all) => {
|
|
7
|
+
for (var name in all)
|
|
8
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
+
};
|
|
10
|
+
var __copyProps = (to, from, except, desc) => {
|
|
11
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
+
for (let key of __getOwnPropNames(from))
|
|
13
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
+
}
|
|
16
|
+
return to;
|
|
17
|
+
};
|
|
18
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
+
|
|
20
|
+
// v1.ts
|
|
21
|
+
var v1_exports = {};
|
|
22
|
+
__export(v1_exports, {
|
|
23
|
+
ActivityStatus: () => ActivityStatus,
|
|
24
|
+
ActivityTargetType: () => ActivityTargetType,
|
|
25
|
+
ApplicationCluster: () => ApplicationCluster,
|
|
26
|
+
ApplicationCommitStatus: () => ApplicationCommitStatus,
|
|
27
|
+
ApplicationFileContentType: () => ApplicationFileContentType,
|
|
28
|
+
ApplicationFileType: () => ApplicationFileType,
|
|
29
|
+
ApplicationLanguage: () => ApplicationLanguage,
|
|
30
|
+
ApplicationStatus: () => ApplicationStatus,
|
|
31
|
+
ApplicationType: () => ApplicationType,
|
|
32
|
+
ApplicationVersion: () => ApplicationVersion,
|
|
33
|
+
DatabaseCluster: () => DatabaseCluster,
|
|
34
|
+
DatabaseStatus: () => DatabaseStatus,
|
|
35
|
+
DatabaseType: () => DatabaseType,
|
|
36
|
+
OrganizationMemberRole: () => OrganizationMemberRole,
|
|
37
|
+
ServicesType: () => ServicesType,
|
|
38
|
+
StatusType: () => StatusType,
|
|
39
|
+
UserDatabasePlan: () => UserDatabasePlan,
|
|
40
|
+
UserPlan: () => UserPlan
|
|
41
|
+
});
|
|
42
|
+
module.exports = __toCommonJS(v1_exports);
|
|
43
|
+
|
|
44
|
+
// payloads/v1/application.ts
|
|
45
|
+
var ApplicationLanguage = {
|
|
46
|
+
NodeJS: "nodejs",
|
|
47
|
+
Python: "python"
|
|
48
|
+
};
|
|
49
|
+
var ApplicationStatus = {
|
|
50
|
+
UP: "up",
|
|
51
|
+
DOWN: "down"
|
|
52
|
+
};
|
|
53
|
+
var ApplicationCommitStatus = {
|
|
54
|
+
PENDING: 1,
|
|
55
|
+
DEPLOYING: 2,
|
|
56
|
+
COMPLETED: 3,
|
|
57
|
+
FAILED: 4
|
|
58
|
+
};
|
|
59
|
+
var ApplicationCluster = {
|
|
60
|
+
USA: 1
|
|
61
|
+
};
|
|
62
|
+
var ApplicationType = {
|
|
63
|
+
Bot: 1,
|
|
64
|
+
Website: 2
|
|
65
|
+
};
|
|
66
|
+
var ApplicationFileType = {
|
|
67
|
+
File: "file",
|
|
68
|
+
Directory: "directory"
|
|
69
|
+
};
|
|
70
|
+
var ApplicationVersion = {
|
|
71
|
+
RECOMMENDED: "recommended",
|
|
72
|
+
LATEST: "latest"
|
|
73
|
+
};
|
|
74
|
+
var ApplicationFileContentType = {
|
|
75
|
+
Buffer: "buffer"
|
|
76
|
+
};
|
|
77
|
+
|
|
78
|
+
// payloads/v1/database.ts
|
|
79
|
+
var DatabaseType = {
|
|
80
|
+
PostgreSQL: 1,
|
|
81
|
+
MongoDB: 2,
|
|
82
|
+
Redis: 3
|
|
83
|
+
};
|
|
84
|
+
var DatabaseStatus = {
|
|
85
|
+
UP: "up",
|
|
86
|
+
DOWN: "down"
|
|
87
|
+
};
|
|
88
|
+
var DatabaseCluster = {
|
|
89
|
+
USA: 1
|
|
90
|
+
};
|
|
91
|
+
|
|
92
|
+
// payloads/v1/organization.ts
|
|
93
|
+
var OrganizationMemberRole = {
|
|
94
|
+
Owner: "owner",
|
|
95
|
+
Admin: "admin",
|
|
96
|
+
Developer: "developer",
|
|
97
|
+
Operator: "operator",
|
|
98
|
+
Viewer: "viewer"
|
|
99
|
+
};
|
|
100
|
+
|
|
101
|
+
// payloads/v1/activity.ts
|
|
102
|
+
var ActivityStatus = {
|
|
103
|
+
Success: "success",
|
|
104
|
+
Warning: "warning",
|
|
105
|
+
Error: "error",
|
|
106
|
+
Info: "info"
|
|
107
|
+
};
|
|
108
|
+
var ActivityTargetType = {
|
|
109
|
+
App: "app",
|
|
110
|
+
Database: "database",
|
|
111
|
+
Organization: "organization",
|
|
112
|
+
Audit: "audit"
|
|
113
|
+
};
|
|
114
|
+
|
|
115
|
+
// payloads/v1/status.ts
|
|
116
|
+
var StatusType = {
|
|
117
|
+
Healthy: "healthy",
|
|
118
|
+
Degraded: "degraded",
|
|
119
|
+
Unknown: "unknown"
|
|
120
|
+
};
|
|
121
|
+
var ServicesType = {
|
|
122
|
+
UP: "up",
|
|
123
|
+
DOWN: "down",
|
|
124
|
+
Unknown: "unknown"
|
|
125
|
+
};
|
|
126
|
+
|
|
127
|
+
// payloads/v1/user.ts
|
|
128
|
+
var UserPlan = {
|
|
129
|
+
Free: 1,
|
|
130
|
+
Economy: 2,
|
|
131
|
+
Pro: 3,
|
|
132
|
+
Scale: 4,
|
|
133
|
+
Enterprise4: 5,
|
|
134
|
+
Enterprise8: 6,
|
|
135
|
+
Enterprise16: 7,
|
|
136
|
+
Enterprise32: 8
|
|
137
|
+
};
|
|
138
|
+
var UserDatabasePlan = {
|
|
139
|
+
Redis128: 1,
|
|
140
|
+
Redis256: 2,
|
|
141
|
+
Redis512: 3,
|
|
142
|
+
Redis1024: 4,
|
|
143
|
+
MongoDB1: 5,
|
|
144
|
+
MongoDB2: 6,
|
|
145
|
+
MongoDB5: 7,
|
|
146
|
+
MongoDB10: 8,
|
|
147
|
+
PostgreSQL1: 9,
|
|
148
|
+
PostgreSQL2: 10,
|
|
149
|
+
PostgreSQL5: 11,
|
|
150
|
+
PostgreSQL10: 12
|
|
151
|
+
};
|
|
152
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
153
|
+
0 && (module.exports = {
|
|
154
|
+
ActivityStatus,
|
|
155
|
+
ActivityTargetType,
|
|
156
|
+
ApplicationCluster,
|
|
157
|
+
ApplicationCommitStatus,
|
|
158
|
+
ApplicationFileContentType,
|
|
159
|
+
ApplicationFileType,
|
|
160
|
+
ApplicationLanguage,
|
|
161
|
+
ApplicationStatus,
|
|
162
|
+
ApplicationType,
|
|
163
|
+
ApplicationVersion,
|
|
164
|
+
DatabaseCluster,
|
|
165
|
+
DatabaseStatus,
|
|
166
|
+
DatabaseType,
|
|
167
|
+
OrganizationMemberRole,
|
|
168
|
+
ServicesType,
|
|
169
|
+
StatusType,
|
|
170
|
+
UserDatabasePlan,
|
|
171
|
+
UserPlan
|
|
172
|
+
});
|
|
173
|
+
//# sourceMappingURL=v1.js.map
|
package/v1.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["v1.ts","payloads/v1/application.ts","payloads/v1/database.ts","payloads/v1/organization.ts","payloads/v1/activity.ts","payloads/v1/status.ts","payloads/v1/user.ts"],"sourcesContent":["export * from \"./common/v1\";\nexport * from \"./payloads/v1/index\";\nexport * from \"./rest/v1/index\";\nexport * from \"./utils\";\n","import type { ISODateString, SnowFlake } 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,\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\tlanguage: ApplicationLanguage;\n\tram: number;\n\tstatus: ApplicationStatus;\n\tdomain: string | null;\n\tcustom_domain: string | null;\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: number;\n\tnow: number;\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","import type { ISODateString, SnowFlake, UserDatabasePlan } 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/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,\n} as const;\n\n/**\n * @see https://docs.vertracloud.com/api-reference/endpoint/databases\n */\nexport interface APIDatabaseConnection {\n\tip: string;\n\tport: number;\n\tusername: string;\n\tpassword: string;\n\tconnection_url?: string;\n}\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\tplan_id: UserDatabasePlan;\n\ttype: DatabaseType;\n\tduration: number;\n\tname: string;\n\tdescription: string;\n\towner_id: SnowFlake;\n\tstatus: DatabaseStatus;\n\tstorage: number;\n\tram: number;\n\tconnection: APIDatabaseConnection;\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: number;\n\tnow: number;\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 {\n\tAPIApplication,\n\tAPIDatabase,\n\tISODateString,\n\tSnowFlake,\n} from \"../../v1\";\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","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 type ServicesType = \"up\" | \"down\" | \"unknown\";\nexport const ServicesType = {\n\tUP: \"up\",\n\tDOWN: \"down\",\n\tUnknown: \"unknown\",\n} as const;\n\n/**\n * @see https://docs.vertracloud.com/api-reference/endpoint/status\n */\nexport interface APIStatusServices {\n\tdatabase: {\n\t\tstatus: ServicesType;\n\t\tping: number;\n\t};\n\tcache: {\n\t\tstatus: ServicesType;\n\t\tping: number;\n\t};\n}\n\n/**\n * @see https://docs.vertracloud.com/api-reference/endpoint/status\n */\nexport interface APIStatus {\n\tstatus: StatusType;\n\tping: number;\n\tservices: APIStatusServices;\n\tuptime: number | null;\n}\n","import type {\n\tAPIApplication,\n\tAPIDatabase,\n\tISODateString,\n\tSnowFlake,\n} from \"../../v1\";\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\tEnterprise4: 5,\n\tEnterprise8: 6,\n\tEnterprise16: 7,\n\tEnterprise32: 8,\n} as const;\n\n/**\n * @see https://docs.vertracloud.com/api-reference/endpoint/users\n */\nexport type UserDatabasePlan = 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12;\nexport const UserDatabasePlan = {\n\tRedis128: 1,\n\tRedis256: 2,\n\tRedis512: 3,\n\tRedis1024: 4,\n\tMongoDB1: 5,\n\tMongoDB2: 6,\n\tMongoDB5: 7,\n\tMongoDB10: 8,\n\tPostgreSQL1: 9,\n\tPostgreSQL2: 10,\n\tPostgreSQL5: 11,\n\tPostgreSQL10: 12,\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;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,KAAK;AACN;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;;;AC3EO,IAAM,eAAe;AAAA,EAC3B,YAAY;AAAA,EACZ,SAAS;AAAA,EACT,OAAO;AACR;AAMO,IAAM,iBAAiB;AAAA,EAC7B,IAAI;AAAA,EACJ,MAAM;AACP;AAMO,IAAM,kBAAkB;AAAA,EAC9B,KAAK;AACN;;;ACXO,IAAM,yBAAyB;AAAA,EACrC,OAAO;AAAA,EACP,OAAO;AAAA,EACP,WAAW;AAAA,EACX,UAAU;AAAA,EACV,QAAQ;AACT;;;AChBO,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;AAMO,IAAM,eAAe;AAAA,EAC3B,IAAI;AAAA,EACJ,MAAM;AAAA,EACN,SAAS;AACV;;;ACPO,IAAM,WAAW;AAAA,EACvB,MAAM;AAAA,EACN,SAAS;AAAA,EACT,KAAK;AAAA,EACL,OAAO;AAAA,EACP,aAAa;AAAA,EACb,aAAa;AAAA,EACb,cAAc;AAAA,EACd,cAAc;AACf;AAMO,IAAM,mBAAmB;AAAA,EAC/B,UAAU;AAAA,EACV,UAAU;AAAA,EACV,UAAU;AAAA,EACV,WAAW;AAAA,EACX,UAAU;AAAA,EACV,UAAU;AAAA,EACV,UAAU;AAAA,EACV,WAAW;AAAA,EACX,aAAa;AAAA,EACb,aAAa;AAAA,EACb,aAAa;AAAA,EACb,cAAc;AACf;","names":[]}
|
package/v1.mjs
ADDED
|
@@ -0,0 +1,129 @@
|
|
|
1
|
+
// payloads/v1/application.ts
|
|
2
|
+
var ApplicationLanguage = {
|
|
3
|
+
NodeJS: "nodejs",
|
|
4
|
+
Python: "python"
|
|
5
|
+
};
|
|
6
|
+
var ApplicationStatus = {
|
|
7
|
+
UP: "up",
|
|
8
|
+
DOWN: "down"
|
|
9
|
+
};
|
|
10
|
+
var ApplicationCommitStatus = {
|
|
11
|
+
PENDING: 1,
|
|
12
|
+
DEPLOYING: 2,
|
|
13
|
+
COMPLETED: 3,
|
|
14
|
+
FAILED: 4
|
|
15
|
+
};
|
|
16
|
+
var ApplicationCluster = {
|
|
17
|
+
USA: 1
|
|
18
|
+
};
|
|
19
|
+
var ApplicationType = {
|
|
20
|
+
Bot: 1,
|
|
21
|
+
Website: 2
|
|
22
|
+
};
|
|
23
|
+
var ApplicationFileType = {
|
|
24
|
+
File: "file",
|
|
25
|
+
Directory: "directory"
|
|
26
|
+
};
|
|
27
|
+
var ApplicationVersion = {
|
|
28
|
+
RECOMMENDED: "recommended",
|
|
29
|
+
LATEST: "latest"
|
|
30
|
+
};
|
|
31
|
+
var ApplicationFileContentType = {
|
|
32
|
+
Buffer: "buffer"
|
|
33
|
+
};
|
|
34
|
+
|
|
35
|
+
// payloads/v1/database.ts
|
|
36
|
+
var DatabaseType = {
|
|
37
|
+
PostgreSQL: 1,
|
|
38
|
+
MongoDB: 2,
|
|
39
|
+
Redis: 3
|
|
40
|
+
};
|
|
41
|
+
var DatabaseStatus = {
|
|
42
|
+
UP: "up",
|
|
43
|
+
DOWN: "down"
|
|
44
|
+
};
|
|
45
|
+
var DatabaseCluster = {
|
|
46
|
+
USA: 1
|
|
47
|
+
};
|
|
48
|
+
|
|
49
|
+
// payloads/v1/organization.ts
|
|
50
|
+
var OrganizationMemberRole = {
|
|
51
|
+
Owner: "owner",
|
|
52
|
+
Admin: "admin",
|
|
53
|
+
Developer: "developer",
|
|
54
|
+
Operator: "operator",
|
|
55
|
+
Viewer: "viewer"
|
|
56
|
+
};
|
|
57
|
+
|
|
58
|
+
// payloads/v1/activity.ts
|
|
59
|
+
var ActivityStatus = {
|
|
60
|
+
Success: "success",
|
|
61
|
+
Warning: "warning",
|
|
62
|
+
Error: "error",
|
|
63
|
+
Info: "info"
|
|
64
|
+
};
|
|
65
|
+
var ActivityTargetType = {
|
|
66
|
+
App: "app",
|
|
67
|
+
Database: "database",
|
|
68
|
+
Organization: "organization",
|
|
69
|
+
Audit: "audit"
|
|
70
|
+
};
|
|
71
|
+
|
|
72
|
+
// payloads/v1/status.ts
|
|
73
|
+
var StatusType = {
|
|
74
|
+
Healthy: "healthy",
|
|
75
|
+
Degraded: "degraded",
|
|
76
|
+
Unknown: "unknown"
|
|
77
|
+
};
|
|
78
|
+
var ServicesType = {
|
|
79
|
+
UP: "up",
|
|
80
|
+
DOWN: "down",
|
|
81
|
+
Unknown: "unknown"
|
|
82
|
+
};
|
|
83
|
+
|
|
84
|
+
// payloads/v1/user.ts
|
|
85
|
+
var UserPlan = {
|
|
86
|
+
Free: 1,
|
|
87
|
+
Economy: 2,
|
|
88
|
+
Pro: 3,
|
|
89
|
+
Scale: 4,
|
|
90
|
+
Enterprise4: 5,
|
|
91
|
+
Enterprise8: 6,
|
|
92
|
+
Enterprise16: 7,
|
|
93
|
+
Enterprise32: 8
|
|
94
|
+
};
|
|
95
|
+
var UserDatabasePlan = {
|
|
96
|
+
Redis128: 1,
|
|
97
|
+
Redis256: 2,
|
|
98
|
+
Redis512: 3,
|
|
99
|
+
Redis1024: 4,
|
|
100
|
+
MongoDB1: 5,
|
|
101
|
+
MongoDB2: 6,
|
|
102
|
+
MongoDB5: 7,
|
|
103
|
+
MongoDB10: 8,
|
|
104
|
+
PostgreSQL1: 9,
|
|
105
|
+
PostgreSQL2: 10,
|
|
106
|
+
PostgreSQL5: 11,
|
|
107
|
+
PostgreSQL10: 12
|
|
108
|
+
};
|
|
109
|
+
export {
|
|
110
|
+
ActivityStatus,
|
|
111
|
+
ActivityTargetType,
|
|
112
|
+
ApplicationCluster,
|
|
113
|
+
ApplicationCommitStatus,
|
|
114
|
+
ApplicationFileContentType,
|
|
115
|
+
ApplicationFileType,
|
|
116
|
+
ApplicationLanguage,
|
|
117
|
+
ApplicationStatus,
|
|
118
|
+
ApplicationType,
|
|
119
|
+
ApplicationVersion,
|
|
120
|
+
DatabaseCluster,
|
|
121
|
+
DatabaseStatus,
|
|
122
|
+
DatabaseType,
|
|
123
|
+
OrganizationMemberRole,
|
|
124
|
+
ServicesType,
|
|
125
|
+
StatusType,
|
|
126
|
+
UserDatabasePlan,
|
|
127
|
+
UserPlan
|
|
128
|
+
};
|
|
129
|
+
//# sourceMappingURL=v1.mjs.map
|