@vertracloud/api-types 0.0.3 → 0.0.4
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/README.md +1 -1
- package/package.json +1 -1
- package/payloads/v1/application.d.ts +11 -1
- package/payloads/v1/application.js.map +1 -1
- package/payloads/v1/index.d.ts +2 -2
- package/payloads/v1/index.js +0 -7
- package/payloads/v1/index.js.map +1 -1
- package/payloads/v1/index.mjs +0 -6
- package/payloads/v1/status.d.ts +2 -26
- package/payloads/v1/status.js +0 -7
- package/payloads/v1/status.js.map +1 -1
- package/payloads/v1/status.mjs +0 -6
- 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 +0 -7
- package/v1.js.map +1 -1
- package/v1.mjs +0 -6
package/README.md
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Simple type definitions for the **VertraCloud API**.
|
|
4
4
|
|
|
5
5
|
[](https://github.com/vertracloud/api-types/blob/main/LICENSE)
|
|
6
|
-
[](https://www.npmjs.com/package/@vertracloud/api-types)
|
|
7
7
|
|
|
8
8
|
## Installation
|
|
9
9
|
|
package/package.json
CHANGED
|
@@ -198,5 +198,15 @@ interface APIApplicationConfig {
|
|
|
198
198
|
START?: string;
|
|
199
199
|
SUBDOMAIN?: string;
|
|
200
200
|
}
|
|
201
|
+
/**
|
|
202
|
+
* @see https://docs.vertracloud.com/api-reference/endpoint/applications
|
|
203
|
+
*/
|
|
204
|
+
interface APIApplicationEnvironment {
|
|
205
|
+
id: string;
|
|
206
|
+
key: string;
|
|
207
|
+
value: string;
|
|
208
|
+
note: string | null;
|
|
209
|
+
created_at: ISODateString;
|
|
210
|
+
}
|
|
201
211
|
|
|
202
|
-
export { type APIApplication, type APIApplicationActivity, type APIApplicationBackup, type APIApplicationCommit, type APIApplicationConfig, type APIApplicationFile, type APIApplicationFileContent, type APIApplicationMetric, type APIApplicationNetwork, type APIApplicationStatus, type APIApplicationStatusShort, type APIGroupedApplicationBackups, ApplicationCluster, type ApplicationCommit, ApplicationCommitStatus, ApplicationFileContentType, ApplicationFileType, ApplicationLanguage, ApplicationStatus, ApplicationType, ApplicationVersion };
|
|
212
|
+
export { type APIApplication, type APIApplicationActivity, type APIApplicationBackup, type APIApplicationCommit, type APIApplicationConfig, type APIApplicationEnvironment, type APIApplicationFile, type APIApplicationFileContent, type APIApplicationMetric, type APIApplicationNetwork, type APIApplicationStatus, type APIApplicationStatusShort, type APIGroupedApplicationBackups, ApplicationCluster, type ApplicationCommit, ApplicationCommitStatus, ApplicationFileContentType, ApplicationFileType, ApplicationLanguage, ApplicationStatus, ApplicationType, ApplicationVersion };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["application.ts"],"sourcesContent":["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: 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"],"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,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;","names":[]}
|
|
1
|
+
{"version":3,"sources":["application.ts"],"sourcesContent":["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: 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"],"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,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;","names":[]}
|
package/payloads/v1/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
export { APIApplication, APIApplicationActivity, APIApplicationBackup, APIApplicationCommit, APIApplicationConfig, APIApplicationFile, APIApplicationFileContent, APIApplicationMetric, APIApplicationNetwork, APIApplicationStatus, APIApplicationStatusShort, APIGroupedApplicationBackups, ApplicationCluster, ApplicationCommit, ApplicationCommitStatus, ApplicationFileContentType, ApplicationFileType, ApplicationLanguage, ApplicationStatus, ApplicationType, ApplicationVersion } from './application.js';
|
|
1
|
+
export { APIApplication, APIApplicationActivity, APIApplicationBackup, APIApplicationCommit, APIApplicationConfig, APIApplicationEnvironment, APIApplicationFile, APIApplicationFileContent, APIApplicationMetric, APIApplicationNetwork, APIApplicationStatus, APIApplicationStatusShort, APIGroupedApplicationBackups, ApplicationCluster, ApplicationCommit, ApplicationCommitStatus, ApplicationFileContentType, ApplicationFileType, ApplicationLanguage, ApplicationStatus, ApplicationType, ApplicationVersion } from './application.js';
|
|
2
2
|
export { APIDatabase, APIDatabaseActivity, APIDatabaseBackup, APIDatabaseConnection, APIDatabaseMetrics, APIDatabaseNetwork, APIDatabaseStatus, APIDatabaseStatusShort, DatabaseCluster, DatabasePlan, DatabaseStatus, DatabaseType } from './database.js';
|
|
3
3
|
export { APIOrganization, APIOrganizationInfoResponse, APIOrganizationMember, OrganizationMemberRole } from './organization.js';
|
|
4
4
|
export { APIActivity, ActivityStatus, ActivityTargetType } from './activity.js';
|
|
5
|
-
export { APIStatus,
|
|
5
|
+
export { APIStatus, StatusType } from './status.js';
|
|
6
6
|
export { APIUser, APIUserInfoResponse, APIUserOrgInviteKey, APIUserPlan, APIUserPlanMemory, UserPlan } from './user.js';
|
|
7
7
|
import '../../common/v1.js';
|
package/payloads/v1/index.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
|
});
|
|
@@ -132,11 +131,6 @@ var StatusType = {
|
|
|
132
131
|
Degraded: "degraded",
|
|
133
132
|
Unknown: "unknown"
|
|
134
133
|
};
|
|
135
|
-
var ServicesType = {
|
|
136
|
-
UP: "up",
|
|
137
|
-
DOWN: "down",
|
|
138
|
-
Unknown: "unknown"
|
|
139
|
-
};
|
|
140
134
|
|
|
141
135
|
// payloads/v1/user.ts
|
|
142
136
|
var UserPlan = {
|
|
@@ -166,7 +160,6 @@ var UserPlan = {
|
|
|
166
160
|
DatabaseStatus,
|
|
167
161
|
DatabaseType,
|
|
168
162
|
OrganizationMemberRole,
|
|
169
|
-
ServicesType,
|
|
170
163
|
StatusType,
|
|
171
164
|
UserPlan
|
|
172
165
|
});
|
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","user.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 } 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: 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","import type { ISODateString, SnowFlake } 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\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/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: DatabasePlan;\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: 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 } 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","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 { 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\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 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,eAAe;AAAA,EAC3B,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;AAMO,IAAM,iBAAiB;AAAA,EAC7B,IAAI;AAAA,EACJ,MAAM;AACP;AAMO,IAAM,kBAAkB;AAAA,EAC9B,KAAK;AACN;;;AClCO,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;AAMO,IAAM,eAAe;AAAA,EAC3B,IAAI;AAAA,EACJ,MAAM;AAAA,EACN,SAAS;AACV;;;ACXO,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;","names":[]}
|
|
1
|
+
{"version":3,"sources":["index.ts","application.ts","database.ts","organization.ts","activity.ts","status.ts","user.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 } 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: 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 } 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\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/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: DatabasePlan;\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: 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 } 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","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","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\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 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;;;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,eAAe;AAAA,EAC3B,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;AAMO,IAAM,iBAAiB;AAAA,EAC7B,IAAI;AAAA,EACJ,MAAM;AACP;AAMO,IAAM,kBAAkB;AAAA,EAC9B,KAAK;AACN;;;AClCO,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;;;ACDO,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;","names":[]}
|
package/payloads/v1/index.mjs
CHANGED
|
@@ -89,11 +89,6 @@ var StatusType = {
|
|
|
89
89
|
Degraded: "degraded",
|
|
90
90
|
Unknown: "unknown"
|
|
91
91
|
};
|
|
92
|
-
var ServicesType = {
|
|
93
|
-
UP: "up",
|
|
94
|
-
DOWN: "down",
|
|
95
|
-
Unknown: "unknown"
|
|
96
|
-
};
|
|
97
92
|
|
|
98
93
|
// payloads/v1/user.ts
|
|
99
94
|
var UserPlan = {
|
|
@@ -122,7 +117,6 @@ export {
|
|
|
122
117
|
DatabaseStatus,
|
|
123
118
|
DatabaseType,
|
|
124
119
|
OrganizationMemberRole,
|
|
125
|
-
ServicesType,
|
|
126
120
|
StatusType,
|
|
127
121
|
UserPlan
|
|
128
122
|
};
|
package/payloads/v1/status.d.ts
CHANGED
|
@@ -7,36 +7,12 @@ declare const StatusType: {
|
|
|
7
7
|
readonly Degraded: "degraded";
|
|
8
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,7 +20,6 @@ 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);
|
|
@@ -29,14 +28,8 @@ var StatusType = {
|
|
|
29
28
|
Degraded: "degraded",
|
|
30
29
|
Unknown: "unknown"
|
|
31
30
|
};
|
|
32
|
-
var ServicesType = {
|
|
33
|
-
UP: "up",
|
|
34
|
-
DOWN: "down",
|
|
35
|
-
Unknown: "unknown"
|
|
36
|
-
};
|
|
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\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
|
|
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
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
|
});
|
|
@@ -132,11 +131,6 @@ var StatusType = {
|
|
|
132
131
|
Degraded: "degraded",
|
|
133
132
|
Unknown: "unknown"
|
|
134
133
|
};
|
|
135
|
-
var ServicesType = {
|
|
136
|
-
UP: "up",
|
|
137
|
-
DOWN: "down",
|
|
138
|
-
Unknown: "unknown"
|
|
139
|
-
};
|
|
140
134
|
|
|
141
135
|
// payloads/v1/user.ts
|
|
142
136
|
var UserPlan = {
|
|
@@ -166,7 +160,6 @@ var UserPlan = {
|
|
|
166
160
|
DatabaseStatus,
|
|
167
161
|
DatabaseType,
|
|
168
162
|
OrganizationMemberRole,
|
|
169
|
-
ServicesType,
|
|
170
163
|
StatusType,
|
|
171
164
|
UserPlan
|
|
172
165
|
});
|
package/v1.js.map
CHANGED
|
@@ -1 +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: 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","import type { ISODateString, SnowFlake } 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\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/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: DatabasePlan;\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: 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 } 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","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 { 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\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 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,eAAe;AAAA,EAC3B,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;AAMO,IAAM,iBAAiB;AAAA,EAC7B,IAAI;AAAA,EACJ,MAAM;AACP;AAMO,IAAM,kBAAkB;AAAA,EAC9B,KAAK;AACN;;;AClCO,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;AAMO,IAAM,eAAe;AAAA,EAC3B,IAAI;AAAA,EACJ,MAAM;AAAA,EACN,SAAS;AACV;;;ACXO,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;","names":[]}
|
|
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: 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 } 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\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/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: DatabasePlan;\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: 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 } 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","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","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\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 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;;;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,eAAe;AAAA,EAC3B,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;AAMO,IAAM,iBAAiB;AAAA,EAC7B,IAAI;AAAA,EACJ,MAAM;AACP;AAMO,IAAM,kBAAkB;AAAA,EAC9B,KAAK;AACN;;;AClCO,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;;;ACDO,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;","names":[]}
|
package/v1.mjs
CHANGED
|
@@ -89,11 +89,6 @@ var StatusType = {
|
|
|
89
89
|
Degraded: "degraded",
|
|
90
90
|
Unknown: "unknown"
|
|
91
91
|
};
|
|
92
|
-
var ServicesType = {
|
|
93
|
-
UP: "up",
|
|
94
|
-
DOWN: "down",
|
|
95
|
-
Unknown: "unknown"
|
|
96
|
-
};
|
|
97
92
|
|
|
98
93
|
// payloads/v1/user.ts
|
|
99
94
|
var UserPlan = {
|
|
@@ -122,7 +117,6 @@ export {
|
|
|
122
117
|
DatabaseStatus,
|
|
123
118
|
DatabaseType,
|
|
124
119
|
OrganizationMemberRole,
|
|
125
|
-
ServicesType,
|
|
126
120
|
StatusType,
|
|
127
121
|
UserPlan
|
|
128
122
|
};
|