@vertracloud/api-types 0.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (71) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +65 -0
  3. package/common/v1.d.ts +33 -0
  4. package/common/v1.js +19 -0
  5. package/common/v1.js.map +1 -0
  6. package/common/v1.mjs +1 -0
  7. package/package.json +67 -0
  8. package/payloads/v1/activity.d.ts +37 -0
  9. package/payloads/v1/activity.js +44 -0
  10. package/payloads/v1/activity.js.map +1 -0
  11. package/payloads/v1/activity.mjs +18 -0
  12. package/payloads/v1/application.d.ts +202 -0
  13. package/payloads/v1/application.js +76 -0
  14. package/payloads/v1/application.js.map +1 -0
  15. package/payloads/v1/application.mjs +44 -0
  16. package/payloads/v1/database.d.ts +3 -0
  17. package/payloads/v1/database.js +46 -0
  18. package/payloads/v1/database.js.map +1 -0
  19. package/payloads/v1/database.mjs +19 -0
  20. package/payloads/v1/index.d.ts +6 -0
  21. package/payloads/v1/index.js +173 -0
  22. package/payloads/v1/index.js.map +1 -0
  23. package/payloads/v1/index.mjs +129 -0
  24. package/payloads/v1/organization.d.ts +45 -0
  25. package/payloads/v1/organization.js +37 -0
  26. package/payloads/v1/organization.js.map +1 -0
  27. package/payloads/v1/organization.mjs +12 -0
  28. package/payloads/v1/status.d.ts +42 -0
  29. package/payloads/v1/status.js +42 -0
  30. package/payloads/v1/status.js.map +1 -0
  31. package/payloads/v1/status.mjs +16 -0
  32. package/payloads/v1/user.d.ts +3 -0
  33. package/payloads/v1/user.js +56 -0
  34. package/payloads/v1/user.js.map +1 -0
  35. package/payloads/v1/user.mjs +30 -0
  36. package/rest/v1/activity.d.ts +13 -0
  37. package/rest/v1/activity.js +19 -0
  38. package/rest/v1/activity.js.map +1 -0
  39. package/rest/v1/activity.mjs +1 -0
  40. package/rest/v1/application.d.ts +61 -0
  41. package/rest/v1/application.js +19 -0
  42. package/rest/v1/application.js.map +1 -0
  43. package/rest/v1/application.mjs +1 -0
  44. package/rest/v1/database.d.ts +38 -0
  45. package/rest/v1/database.js +19 -0
  46. package/rest/v1/database.js.map +1 -0
  47. package/rest/v1/database.mjs +1 -0
  48. package/rest/v1/index.d.ts +10 -0
  49. package/rest/v1/index.js +19 -0
  50. package/rest/v1/index.js.map +1 -0
  51. package/rest/v1/index.mjs +1 -0
  52. package/rest/v1/organization.d.ts +15 -0
  53. package/rest/v1/organization.js +19 -0
  54. package/rest/v1/organization.js.map +1 -0
  55. package/rest/v1/organization.mjs +1 -0
  56. package/rest/v1/status.d.ts +9 -0
  57. package/rest/v1/status.js +19 -0
  58. package/rest/v1/status.js.map +1 -0
  59. package/rest/v1/status.mjs +1 -0
  60. package/rest/v1/user.d.ts +14 -0
  61. package/rest/v1/user.js +19 -0
  62. package/rest/v1/user.js.map +1 -0
  63. package/rest/v1/user.mjs +1 -0
  64. package/utils.d.ts +8 -0
  65. package/utils.js +19 -0
  66. package/utils.js.map +1 -0
  67. package/utils.mjs +1 -0
  68. package/v1.d.ts +12 -0
  69. package/v1.js +173 -0
  70. package/v1.js.map +1 -0
  71. package/v1.mjs +129 -0
@@ -0,0 +1,46 @@
1
+ "use strict";
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __export = (target, all) => {
7
+ for (var name in all)
8
+ __defProp(target, name, { get: all[name], enumerable: true });
9
+ };
10
+ var __copyProps = (to, from, except, desc) => {
11
+ if (from && typeof from === "object" || typeof from === "function") {
12
+ for (let key of __getOwnPropNames(from))
13
+ if (!__hasOwnProp.call(to, key) && key !== except)
14
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
+ }
16
+ return to;
17
+ };
18
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
+
20
+ // payloads/v1/database.ts
21
+ var database_exports = {};
22
+ __export(database_exports, {
23
+ DatabaseCluster: () => DatabaseCluster,
24
+ DatabaseStatus: () => DatabaseStatus,
25
+ DatabaseType: () => DatabaseType
26
+ });
27
+ module.exports = __toCommonJS(database_exports);
28
+ var DatabaseType = {
29
+ PostgreSQL: 1,
30
+ MongoDB: 2,
31
+ Redis: 3
32
+ };
33
+ var DatabaseStatus = {
34
+ UP: "up",
35
+ DOWN: "down"
36
+ };
37
+ var DatabaseCluster = {
38
+ USA: 1
39
+ };
40
+ // Annotate the CommonJS export names for ESM import in node:
41
+ 0 && (module.exports = {
42
+ DatabaseCluster,
43
+ DatabaseStatus,
44
+ DatabaseType
45
+ });
46
+ //# sourceMappingURL=database.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["database.ts"],"sourcesContent":["import type { ISODateString, SnowFlake, UserDatabasePlan } from \"../../v1\";\n\n/**\n * @see https://docs.vertracloud.com/api-reference/endpoint/databases\n */\nexport type DatabaseType = 1 | 2 | 3;\nexport const DatabaseType = {\n\tPostgreSQL: 1,\n\tMongoDB: 2,\n\tRedis: 3,\n} as const;\n\n/**\n * @see https://docs.vertracloud.com/api-reference/endpoint/databases\n */\nexport type DatabaseStatus = \"up\" | \"down\";\nexport const DatabaseStatus = {\n\tUP: \"up\",\n\tDOWN: \"down\",\n} as const;\n\n/**\n * @see https://docs.vertracloud.com/api-reference/endpoint/status\n */\nexport type DatabaseCluster = 1;\nexport const DatabaseCluster = {\n\tUSA: 1,\n} as const;\n\n/**\n * @see https://docs.vertracloud.com/api-reference/endpoint/databases\n */\nexport interface APIDatabaseConnection {\n\tip: string;\n\tport: number;\n\tusername: string;\n\tpassword: string;\n\tconnection_url?: string;\n}\n\n/**\n * @see https://docs.vertracloud.com/api-reference/endpoint/databases\n */\nexport interface APIDatabaseActivity {\n\tmessage: string;\n\ttimestamp: ISODateString;\n}\n\n/**\n * @see https://docs.vertracloud.com/api-reference/endpoint/databases\n */\nexport interface APIDatabase {\n\tid: SnowFlake;\n\tcluster: DatabaseCluster;\n\tplan_id: UserDatabasePlan;\n\ttype: DatabaseType;\n\tduration: number;\n\tname: string;\n\tdescription: string;\n\towner_id: SnowFlake;\n\tstatus: DatabaseStatus;\n\tstorage: number;\n\tram: number;\n\tconnection: APIDatabaseConnection;\n\tcreated_at: ISODateString;\n\tupdated_at: ISODateString;\n\tpurchased_at: ISODateString;\n\texpires_at: ISODateString;\n\tlast_backup: ISODateString | null;\n}\n\n/**\n * @see https://docs.vertracloud.com/api-reference/endpoint/databases\n */\nexport interface APIDatabaseNetwork {\n\ttotal: number;\n\tnow: number;\n}\n\n/**\n * @see https://docs.vertracloud.com/api-reference/endpoint/databases\n */\nexport interface APIDatabaseBackup {\n\tmessage: string;\n\ttimestamp: ISODateString;\n}\n\n/**\n * @see https://docs.vertracloud.com/api-reference/endpoint/databases\n */\nexport interface APIDatabaseStatus {\n\tcpu: string;\n\tram: string;\n\tstatus: DatabaseStatus;\n\trunning: boolean;\n\tstorage: string;\n\tnetwork: APIDatabaseNetwork;\n\tuptime: number;\n\tcreated_at: ISODateString;\n\tupdated_at: ISODateString;\n}\n\n/**\n * @see https://docs.vertracloud.com/api-reference/endpoint/databases\n */\nexport interface APIDatabaseStatusShort {\n\tid: SnowFlake;\n\tcpu: string;\n\tram: string;\n\tstorage: string;\n\trunning: boolean;\n}\n\n/**\n * @see https://docs.vertracloud.com/api-reference/endpoint/databases\n */\nexport interface APIDatabaseMetrics {\n\tcpu: number;\n\tram: number;\n\tstorage: number;\n\tdate: ISODateString;\n\tnetwork: number[];\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAMO,IAAM,eAAe;AAAA,EAC3B,YAAY;AAAA,EACZ,SAAS;AAAA,EACT,OAAO;AACR;AAMO,IAAM,iBAAiB;AAAA,EAC7B,IAAI;AAAA,EACJ,MAAM;AACP;AAMO,IAAM,kBAAkB;AAAA,EAC9B,KAAK;AACN;","names":[]}
@@ -0,0 +1,19 @@
1
+ // payloads/v1/database.ts
2
+ var DatabaseType = {
3
+ PostgreSQL: 1,
4
+ MongoDB: 2,
5
+ Redis: 3
6
+ };
7
+ var DatabaseStatus = {
8
+ UP: "up",
9
+ DOWN: "down"
10
+ };
11
+ var DatabaseCluster = {
12
+ USA: 1
13
+ };
14
+ export {
15
+ DatabaseCluster,
16
+ DatabaseStatus,
17
+ DatabaseType
18
+ };
19
+ //# sourceMappingURL=database.mjs.map
@@ -0,0 +1,6 @@
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';
2
+ export { d as APIDatabase, c as APIDatabaseActivity, f as APIDatabaseBackup, A as APIDatabaseConnection, i as APIDatabaseMetrics, e as APIDatabaseNetwork, g as APIDatabaseStatus, h as APIDatabaseStatusShort, k as APIUser, n as APIUserInfoResponse, o as APIUserOrgInviteKey, m as APIUserPlan, l as APIUserPlanMemory, b as DatabaseCluster, a as DatabaseStatus, D as DatabaseType, j as UserDatabasePlan, U as UserPlan } from '../../user-CeSEUubY.js';
3
+ export { APIOrganization, APIOrganizationInfoResponse, APIOrganizationMember, OrganizationMemberRole } from './organization.js';
4
+ export { APIActivity, ActivityStatus, ActivityTargetType } from './activity.js';
5
+ export { APIStatus, APIStatusServices, ServicesType, StatusType } from './status.js';
6
+ import '../../common/v1.js';
@@ -0,0 +1,173 @@
1
+ "use strict";
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __export = (target, all) => {
7
+ for (var name in all)
8
+ __defProp(target, name, { get: all[name], enumerable: true });
9
+ };
10
+ var __copyProps = (to, from, except, desc) => {
11
+ if (from && typeof from === "object" || typeof from === "function") {
12
+ for (let key of __getOwnPropNames(from))
13
+ if (!__hasOwnProp.call(to, key) && key !== except)
14
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
+ }
16
+ return to;
17
+ };
18
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
+
20
+ // payloads/v1/index.ts
21
+ var v1_exports = {};
22
+ __export(v1_exports, {
23
+ ActivityStatus: () => ActivityStatus,
24
+ ActivityTargetType: () => ActivityTargetType,
25
+ ApplicationCluster: () => ApplicationCluster,
26
+ ApplicationCommitStatus: () => ApplicationCommitStatus,
27
+ ApplicationFileContentType: () => ApplicationFileContentType,
28
+ ApplicationFileType: () => ApplicationFileType,
29
+ ApplicationLanguage: () => ApplicationLanguage,
30
+ ApplicationStatus: () => ApplicationStatus,
31
+ ApplicationType: () => ApplicationType,
32
+ ApplicationVersion: () => ApplicationVersion,
33
+ DatabaseCluster: () => DatabaseCluster,
34
+ DatabaseStatus: () => DatabaseStatus,
35
+ DatabaseType: () => DatabaseType,
36
+ OrganizationMemberRole: () => OrganizationMemberRole,
37
+ ServicesType: () => ServicesType,
38
+ StatusType: () => StatusType,
39
+ UserDatabasePlan: () => UserDatabasePlan,
40
+ UserPlan: () => UserPlan
41
+ });
42
+ module.exports = __toCommonJS(v1_exports);
43
+
44
+ // payloads/v1/application.ts
45
+ var ApplicationLanguage = {
46
+ NodeJS: "nodejs",
47
+ Python: "python"
48
+ };
49
+ var ApplicationStatus = {
50
+ UP: "up",
51
+ DOWN: "down"
52
+ };
53
+ var ApplicationCommitStatus = {
54
+ PENDING: 1,
55
+ DEPLOYING: 2,
56
+ COMPLETED: 3,
57
+ FAILED: 4
58
+ };
59
+ var ApplicationCluster = {
60
+ USA: 1
61
+ };
62
+ var ApplicationType = {
63
+ Bot: 1,
64
+ Website: 2
65
+ };
66
+ var ApplicationFileType = {
67
+ File: "file",
68
+ Directory: "directory"
69
+ };
70
+ var ApplicationVersion = {
71
+ RECOMMENDED: "recommended",
72
+ LATEST: "latest"
73
+ };
74
+ var ApplicationFileContentType = {
75
+ Buffer: "buffer"
76
+ };
77
+
78
+ // payloads/v1/database.ts
79
+ var DatabaseType = {
80
+ PostgreSQL: 1,
81
+ MongoDB: 2,
82
+ Redis: 3
83
+ };
84
+ var DatabaseStatus = {
85
+ UP: "up",
86
+ DOWN: "down"
87
+ };
88
+ var DatabaseCluster = {
89
+ USA: 1
90
+ };
91
+
92
+ // payloads/v1/organization.ts
93
+ var OrganizationMemberRole = {
94
+ Owner: "owner",
95
+ Admin: "admin",
96
+ Developer: "developer",
97
+ Operator: "operator",
98
+ Viewer: "viewer"
99
+ };
100
+
101
+ // payloads/v1/activity.ts
102
+ var ActivityStatus = {
103
+ Success: "success",
104
+ Warning: "warning",
105
+ Error: "error",
106
+ Info: "info"
107
+ };
108
+ var ActivityTargetType = {
109
+ App: "app",
110
+ Database: "database",
111
+ Organization: "organization",
112
+ Audit: "audit"
113
+ };
114
+
115
+ // payloads/v1/status.ts
116
+ var StatusType = {
117
+ Healthy: "healthy",
118
+ Degraded: "degraded",
119
+ Unknown: "unknown"
120
+ };
121
+ var ServicesType = {
122
+ UP: "up",
123
+ DOWN: "down",
124
+ Unknown: "unknown"
125
+ };
126
+
127
+ // payloads/v1/user.ts
128
+ var UserPlan = {
129
+ Free: 1,
130
+ Economy: 2,
131
+ Pro: 3,
132
+ Scale: 4,
133
+ Enterprise4: 5,
134
+ Enterprise8: 6,
135
+ Enterprise16: 7,
136
+ Enterprise32: 8
137
+ };
138
+ var UserDatabasePlan = {
139
+ Redis128: 1,
140
+ Redis256: 2,
141
+ Redis512: 3,
142
+ Redis1024: 4,
143
+ MongoDB1: 5,
144
+ MongoDB2: 6,
145
+ MongoDB5: 7,
146
+ MongoDB10: 8,
147
+ PostgreSQL1: 9,
148
+ PostgreSQL2: 10,
149
+ PostgreSQL5: 11,
150
+ PostgreSQL10: 12
151
+ };
152
+ // Annotate the CommonJS export names for ESM import in node:
153
+ 0 && (module.exports = {
154
+ ActivityStatus,
155
+ ActivityTargetType,
156
+ ApplicationCluster,
157
+ ApplicationCommitStatus,
158
+ ApplicationFileContentType,
159
+ ApplicationFileType,
160
+ ApplicationLanguage,
161
+ ApplicationStatus,
162
+ ApplicationType,
163
+ ApplicationVersion,
164
+ DatabaseCluster,
165
+ DatabaseStatus,
166
+ DatabaseType,
167
+ OrganizationMemberRole,
168
+ ServicesType,
169
+ StatusType,
170
+ UserDatabasePlan,
171
+ UserPlan
172
+ });
173
+ //# sourceMappingURL=index.js.map
@@ -0,0 +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: number;\n\tnow: number;\n}\n\n/**\n * @see https://docs.vertracloud.com/api-reference/endpoint/applications\n */\nexport interface APIApplicationActivity {\n\tmessage: string;\n\ttimestamp: ISODateString;\n}\n\n/**\n * @see https://docs.vertracloud.com/api-reference/endpoint/applications\n */\nexport interface APIApplicationStatus {\n\tcpu: string;\n\tram: string;\n\tstatus: ApplicationStatus;\n\trunning: boolean;\n\tstorage: string;\n\tnetwork: APIApplicationNetwork;\n\tuptime: number;\n\tcreated_at: ISODateString;\n\tupdated_at: ISODateString;\n}\n\n/**\n * @see https://docs.vertracloud.com/api-reference/endpoint/applications\n */\nexport interface APIApplicationStatusShort {\n\tid: SnowFlake;\n\tcpu: string;\n\tram: string;\n\trunning: boolean;\n}\n\n/**\n * @see https://docs.vertracloud.com/api-reference/endpoint/applications\n */\nexport interface APIApplicationMetric {\n\tcpu: number;\n\tram: number;\n\tstorage: number;\n\tdate: ISODateString;\n\tnetwork: number[];\n}\n\n/**\n * @see https://docs.vertracloud.com/api-reference/endpoint/applications\n */\nexport interface APIApplicationCommit {\n\tid: SnowFlake;\n\tauthor_id: SnowFlake;\n\tmessage: string;\n\tversion: string;\n\tstatus: ApplicationCommitStatus;\n\tsize: string;\n\tdate: ISODateString;\n}\n\n/**\n * @see https://docs.vertracloud.com/api-reference/endpoint/applications\n */\nexport interface APIApplicationBackup {\n\tid: SnowFlake;\n\tapp_id: SnowFlake;\n\tauthor_id: SnowFlake | null;\n\tsize: string;\n\tdate: ISODateString;\n}\n\n/**\n * @see https://docs.vertracloud.com/api-reference/endpoint/applications\n */\nexport interface APIGroupedApplicationBackups {\n\tapp_id: SnowFlake;\n\tapp_name: string | null;\n\tbackups: APIApplicationBackup[];\n}\n\n/**\n * @see https://docs.vertracloud.com/api-reference/endpoint/applications\n */\nexport interface APIApplicationConfig {\n\tNAME: string;\n\tMEMORY: number;\n\tMAIN: string;\n\tVERSION: ApplicationVersion;\n\tDESCRIPTION?: string;\n\tAUTORESTART?: boolean;\n\tSTART?: string;\n\tSUBDOMAIN?: string;\n}\n","import type { ISODateString, SnowFlake, UserDatabasePlan } from \"../../v1\";\n\n/**\n * @see https://docs.vertracloud.com/api-reference/endpoint/databases\n */\nexport type DatabaseType = 1 | 2 | 3;\nexport const DatabaseType = {\n\tPostgreSQL: 1,\n\tMongoDB: 2,\n\tRedis: 3,\n} as const;\n\n/**\n * @see https://docs.vertracloud.com/api-reference/endpoint/databases\n */\nexport type DatabaseStatus = \"up\" | \"down\";\nexport const DatabaseStatus = {\n\tUP: \"up\",\n\tDOWN: \"down\",\n} as const;\n\n/**\n * @see https://docs.vertracloud.com/api-reference/endpoint/status\n */\nexport type DatabaseCluster = 1;\nexport const DatabaseCluster = {\n\tUSA: 1,\n} as const;\n\n/**\n * @see https://docs.vertracloud.com/api-reference/endpoint/databases\n */\nexport interface APIDatabaseConnection {\n\tip: string;\n\tport: number;\n\tusername: string;\n\tpassword: string;\n\tconnection_url?: string;\n}\n\n/**\n * @see https://docs.vertracloud.com/api-reference/endpoint/databases\n */\nexport interface APIDatabaseActivity {\n\tmessage: string;\n\ttimestamp: ISODateString;\n}\n\n/**\n * @see https://docs.vertracloud.com/api-reference/endpoint/databases\n */\nexport interface APIDatabase {\n\tid: SnowFlake;\n\tcluster: DatabaseCluster;\n\tplan_id: UserDatabasePlan;\n\ttype: DatabaseType;\n\tduration: number;\n\tname: string;\n\tdescription: string;\n\towner_id: SnowFlake;\n\tstatus: DatabaseStatus;\n\tstorage: number;\n\tram: number;\n\tconnection: APIDatabaseConnection;\n\tcreated_at: ISODateString;\n\tupdated_at: ISODateString;\n\tpurchased_at: ISODateString;\n\texpires_at: ISODateString;\n\tlast_backup: ISODateString | null;\n}\n\n/**\n * @see https://docs.vertracloud.com/api-reference/endpoint/databases\n */\nexport interface APIDatabaseNetwork {\n\ttotal: number;\n\tnow: number;\n}\n\n/**\n * @see https://docs.vertracloud.com/api-reference/endpoint/databases\n */\nexport interface APIDatabaseBackup {\n\tmessage: string;\n\ttimestamp: ISODateString;\n}\n\n/**\n * @see https://docs.vertracloud.com/api-reference/endpoint/databases\n */\nexport interface APIDatabaseStatus {\n\tcpu: string;\n\tram: string;\n\tstatus: DatabaseStatus;\n\trunning: boolean;\n\tstorage: string;\n\tnetwork: APIDatabaseNetwork;\n\tuptime: number;\n\tcreated_at: ISODateString;\n\tupdated_at: ISODateString;\n}\n\n/**\n * @see https://docs.vertracloud.com/api-reference/endpoint/databases\n */\nexport interface APIDatabaseStatusShort {\n\tid: SnowFlake;\n\tcpu: string;\n\tram: string;\n\tstorage: string;\n\trunning: boolean;\n}\n\n/**\n * @see https://docs.vertracloud.com/api-reference/endpoint/databases\n */\nexport interface APIDatabaseMetrics {\n\tcpu: number;\n\tram: number;\n\tstorage: number;\n\tdate: ISODateString;\n\tnetwork: number[];\n}\n","import type {\n\tAPIApplication,\n\tAPIDatabase,\n\tISODateString,\n\tSnowFlake,\n} from \"../../v1\";\n\n/**\n * @see https://docs.vertracloud.com/api-reference/endpoint/organizations\n */\nexport type OrganizationMemberRole =\n\t| \"owner\"\n\t| \"admin\"\n\t| \"developer\"\n\t| \"operator\"\n\t| \"viewer\";\nexport const OrganizationMemberRole = {\n\tOwner: \"owner\",\n\tAdmin: \"admin\",\n\tDeveloper: \"developer\",\n\tOperator: \"operator\",\n\tViewer: \"viewer\",\n} as const;\n\n/**\n * @see https://docs.vertracloud.com/api-reference/endpoint/organizations\n */\nexport interface APIOrganizationMember {\n\tuser_id: string;\n\trole: OrganizationMemberRole;\n\tjoined_at: ISODateString;\n}\n\n/**\n * @see https://docs.vertracloud.com/api-reference/endpoint/organizations\n */\nexport interface APIOrganization {\n\tid: SnowFlake;\n\tname: SnowFlake;\n\tdescription: string;\n\ttags: string[];\n\towner_id: SnowFlake;\n\tmembers: APIOrganizationMember[];\n\tcreated_at: ISODateString;\n\tupdated_at: ISODateString;\n}\n\n/**\n * @see https://docs.vertracloud.com/api-reference/endpoint/organizations\n */\nexport interface APIOrganizationInfoResponse extends APIOrganization {\n\tapplications: APIApplication[];\n\tdatabases: APIDatabase[];\n}\n","import type { ISODateString, SnowFlake } from \"../../v1\";\n\n/**\n * @see https://docs.vertracloud.com/api-reference/endpoint/activities\n */\nexport type ActivityStatus = \"success\" | \"warning\" | \"error\" | \"info\";\nexport const ActivityStatus = {\n\tSuccess: \"success\",\n\tWarning: \"warning\",\n\tError: \"error\",\n\tInfo: \"info\",\n} as const;\n\n/**\n * @see https://docs.vertracloud.com/api-reference/endpoint/activities\n */\nexport type ActivityTargetType = \"app\" | \"database\" | \"organization\" | \"audit\";\nexport const ActivityTargetType = {\n\tApp: \"app\",\n\tDatabase: \"database\",\n\tOrganization: \"organization\",\n\tAudit: \"audit\",\n} as const;\n\n/**\n * @see https://docs.vertracloud.com/api-reference/endpoint/activities\n */\nexport interface APIActivity {\n\tid: SnowFlake;\n\tstatus: ActivityStatus;\n\ttarget_id: string;\n\ttarget_type: ActivityTargetType;\n\tauthor_id: SnowFlake | null;\n\ttitle: string;\n\tmessage: string;\n\ttimestamp: ISODateString;\n}\n","/**\n * @see https://docs.vertracloud.com/api-reference/endpoint/status\n */\nexport type StatusType = \"healthy\" | \"degraded\" | \"unknown\";\nexport const StatusType = {\n\tHealthy: \"healthy\",\n\tDegraded: \"degraded\",\n\tUnknown: \"unknown\",\n} as const;\n\n/**\n * @see https://docs.vertracloud.com/api-reference/endpoint/status\n */\nexport type ServicesType = \"up\" | \"down\" | \"unknown\";\nexport const ServicesType = {\n\tUP: \"up\",\n\tDOWN: \"down\",\n\tUnknown: \"unknown\",\n} as const;\n\n/**\n * @see https://docs.vertracloud.com/api-reference/endpoint/status\n */\nexport interface APIStatusServices {\n\tdatabase: {\n\t\tstatus: ServicesType;\n\t\tping: number;\n\t};\n\tcache: {\n\t\tstatus: ServicesType;\n\t\tping: number;\n\t};\n}\n\n/**\n * @see https://docs.vertracloud.com/api-reference/endpoint/status\n */\nexport interface APIStatus {\n\tstatus: StatusType;\n\tping: number;\n\tservices: APIStatusServices;\n\tuptime: number | null;\n}\n","import type {\n\tAPIApplication,\n\tAPIDatabase,\n\tISODateString,\n\tSnowFlake,\n} from \"../../v1\";\n\n/**\n * @see https://docs.vertracloud.com/api-reference/endpoint/users\n */\nexport type UserPlan = 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8;\nexport const UserPlan = {\n\tFree: 1,\n\tEconomy: 2,\n\tPro: 3,\n\tScale: 4,\n\tEnterprise4: 5,\n\tEnterprise8: 6,\n\tEnterprise16: 7,\n\tEnterprise32: 8,\n} as const;\n\n/**\n * @see https://docs.vertracloud.com/api-reference/endpoint/users\n */\nexport type UserDatabasePlan = 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12;\nexport const UserDatabasePlan = {\n\tRedis128: 1,\n\tRedis256: 2,\n\tRedis512: 3,\n\tRedis1024: 4,\n\tMongoDB1: 5,\n\tMongoDB2: 6,\n\tMongoDB5: 7,\n\tMongoDB10: 8,\n\tPostgreSQL1: 9,\n\tPostgreSQL2: 10,\n\tPostgreSQL5: 11,\n\tPostgreSQL10: 12,\n} as const;\n\n/**\n * @see https://docs.vertracloud.com/api-reference/endpoint/users\n */\nexport interface APIUser {\n\tid: SnowFlake;\n\tname: string;\n\tplan: UserPlan;\n\tcreated_at: ISODateString;\n\tupdated_at: ISODateString;\n}\n\n/**\n * @see https://docs.vertracloud.com/api-reference/endpoint/users\n */\nexport interface APIUserPlanMemory {\n\tlimit: number;\n\tused: number;\n}\n\n/**\n * @see https://docs.vertracloud.com/api-reference/endpoint/users\n */\nexport interface APIUserPlan {\n\tid: UserPlan;\n\tname: string;\n\texpires_at: ISODateString | null;\n\tmemory: APIUserPlanMemory;\n}\n\n/**\n * @see https://docs.vertracloud.com/api-reference/endpoint/users\n */\nexport interface APIUserInfoResponse {\n\tid: SnowFlake;\n\tname: string;\n\tplan: APIUserPlan;\n\tapplications: APIApplication[];\n\tdatabases: APIDatabase[];\n\tcreated_at: ISODateString;\n\tupdated_at: ISODateString;\n}\n\n/**\n * @see https://docs.vertracloud.com/api-reference/endpoint/users\n */\nexport interface APIUserOrgInviteKey {\n\tcode: SnowFlake;\n\tcreated_at: ISODateString;\n\texpire_at: ISODateString;\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;;ACMO,IAAM,sBAAsB;AAAA,EAClC,QAAQ;AAAA,EACR,QAAQ;AACT;AAMO,IAAM,oBAAoB;AAAA,EAChC,IAAI;AAAA,EACJ,MAAM;AACP;AAMO,IAAM,0BAA0B;AAAA,EACtC,SAAS;AAAA,EACT,WAAW;AAAA,EACX,WAAW;AAAA,EACX,QAAQ;AACT;AAMO,IAAM,qBAAqB;AAAA,EACjC,KAAK;AACN;AAMO,IAAM,kBAAkB;AAAA,EAC9B,KAAK;AAAA,EACL,SAAS;AACV;AAeO,IAAM,sBAAsB;AAAA,EAClC,MAAM;AAAA,EACN,WAAW;AACZ;AAMO,IAAM,qBAAqB;AAAA,EACjC,aAAa;AAAA,EACb,QAAQ;AACT;AAMO,IAAM,6BAA6B;AAAA,EACzC,QAAQ;AACT;;;AC3EO,IAAM,eAAe;AAAA,EAC3B,YAAY;AAAA,EACZ,SAAS;AAAA,EACT,OAAO;AACR;AAMO,IAAM,iBAAiB;AAAA,EAC7B,IAAI;AAAA,EACJ,MAAM;AACP;AAMO,IAAM,kBAAkB;AAAA,EAC9B,KAAK;AACN;;;ACXO,IAAM,yBAAyB;AAAA,EACrC,OAAO;AAAA,EACP,OAAO;AAAA,EACP,WAAW;AAAA,EACX,UAAU;AAAA,EACV,QAAQ;AACT;;;AChBO,IAAM,iBAAiB;AAAA,EAC7B,SAAS;AAAA,EACT,SAAS;AAAA,EACT,OAAO;AAAA,EACP,MAAM;AACP;AAMO,IAAM,qBAAqB;AAAA,EACjC,KAAK;AAAA,EACL,UAAU;AAAA,EACV,cAAc;AAAA,EACd,OAAO;AACR;;;AClBO,IAAM,aAAa;AAAA,EACzB,SAAS;AAAA,EACT,UAAU;AAAA,EACV,SAAS;AACV;AAMO,IAAM,eAAe;AAAA,EAC3B,IAAI;AAAA,EACJ,MAAM;AAAA,EACN,SAAS;AACV;;;ACPO,IAAM,WAAW;AAAA,EACvB,MAAM;AAAA,EACN,SAAS;AAAA,EACT,KAAK;AAAA,EACL,OAAO;AAAA,EACP,aAAa;AAAA,EACb,aAAa;AAAA,EACb,cAAc;AAAA,EACd,cAAc;AACf;AAMO,IAAM,mBAAmB;AAAA,EAC/B,UAAU;AAAA,EACV,UAAU;AAAA,EACV,UAAU;AAAA,EACV,WAAW;AAAA,EACX,UAAU;AAAA,EACV,UAAU;AAAA,EACV,UAAU;AAAA,EACV,WAAW;AAAA,EACX,aAAa;AAAA,EACb,aAAa;AAAA,EACb,aAAa;AAAA,EACb,cAAc;AACf;","names":[]}
@@ -0,0 +1,129 @@
1
+ // payloads/v1/application.ts
2
+ var ApplicationLanguage = {
3
+ NodeJS: "nodejs",
4
+ Python: "python"
5
+ };
6
+ var ApplicationStatus = {
7
+ UP: "up",
8
+ DOWN: "down"
9
+ };
10
+ var ApplicationCommitStatus = {
11
+ PENDING: 1,
12
+ DEPLOYING: 2,
13
+ COMPLETED: 3,
14
+ FAILED: 4
15
+ };
16
+ var ApplicationCluster = {
17
+ USA: 1
18
+ };
19
+ var ApplicationType = {
20
+ Bot: 1,
21
+ Website: 2
22
+ };
23
+ var ApplicationFileType = {
24
+ File: "file",
25
+ Directory: "directory"
26
+ };
27
+ var ApplicationVersion = {
28
+ RECOMMENDED: "recommended",
29
+ LATEST: "latest"
30
+ };
31
+ var ApplicationFileContentType = {
32
+ Buffer: "buffer"
33
+ };
34
+
35
+ // payloads/v1/database.ts
36
+ var DatabaseType = {
37
+ PostgreSQL: 1,
38
+ MongoDB: 2,
39
+ Redis: 3
40
+ };
41
+ var DatabaseStatus = {
42
+ UP: "up",
43
+ DOWN: "down"
44
+ };
45
+ var DatabaseCluster = {
46
+ USA: 1
47
+ };
48
+
49
+ // payloads/v1/organization.ts
50
+ var OrganizationMemberRole = {
51
+ Owner: "owner",
52
+ Admin: "admin",
53
+ Developer: "developer",
54
+ Operator: "operator",
55
+ Viewer: "viewer"
56
+ };
57
+
58
+ // payloads/v1/activity.ts
59
+ var ActivityStatus = {
60
+ Success: "success",
61
+ Warning: "warning",
62
+ Error: "error",
63
+ Info: "info"
64
+ };
65
+ var ActivityTargetType = {
66
+ App: "app",
67
+ Database: "database",
68
+ Organization: "organization",
69
+ Audit: "audit"
70
+ };
71
+
72
+ // payloads/v1/status.ts
73
+ var StatusType = {
74
+ Healthy: "healthy",
75
+ Degraded: "degraded",
76
+ Unknown: "unknown"
77
+ };
78
+ var ServicesType = {
79
+ UP: "up",
80
+ DOWN: "down",
81
+ Unknown: "unknown"
82
+ };
83
+
84
+ // payloads/v1/user.ts
85
+ var UserPlan = {
86
+ Free: 1,
87
+ Economy: 2,
88
+ Pro: 3,
89
+ Scale: 4,
90
+ Enterprise4: 5,
91
+ Enterprise8: 6,
92
+ Enterprise16: 7,
93
+ Enterprise32: 8
94
+ };
95
+ var UserDatabasePlan = {
96
+ Redis128: 1,
97
+ Redis256: 2,
98
+ Redis512: 3,
99
+ Redis1024: 4,
100
+ MongoDB1: 5,
101
+ MongoDB2: 6,
102
+ MongoDB5: 7,
103
+ MongoDB10: 8,
104
+ PostgreSQL1: 9,
105
+ PostgreSQL2: 10,
106
+ PostgreSQL5: 11,
107
+ PostgreSQL10: 12
108
+ };
109
+ export {
110
+ ActivityStatus,
111
+ ActivityTargetType,
112
+ ApplicationCluster,
113
+ ApplicationCommitStatus,
114
+ ApplicationFileContentType,
115
+ ApplicationFileType,
116
+ ApplicationLanguage,
117
+ ApplicationStatus,
118
+ ApplicationType,
119
+ ApplicationVersion,
120
+ DatabaseCluster,
121
+ DatabaseStatus,
122
+ DatabaseType,
123
+ OrganizationMemberRole,
124
+ ServicesType,
125
+ StatusType,
126
+ UserDatabasePlan,
127
+ UserPlan
128
+ };
129
+ //# sourceMappingURL=index.mjs.map
@@ -0,0 +1,45 @@
1
+ import { ISODateString, SnowFlake } from '../../common/v1.js';
2
+ import { APIApplication } from './application.js';
3
+ import { d as APIDatabase } from '../../user-CeSEUubY.js';
4
+
5
+ /**
6
+ * @see https://docs.vertracloud.com/api-reference/endpoint/organizations
7
+ */
8
+ type OrganizationMemberRole = "owner" | "admin" | "developer" | "operator" | "viewer";
9
+ declare const OrganizationMemberRole: {
10
+ readonly Owner: "owner";
11
+ readonly Admin: "admin";
12
+ readonly Developer: "developer";
13
+ readonly Operator: "operator";
14
+ readonly Viewer: "viewer";
15
+ };
16
+ /**
17
+ * @see https://docs.vertracloud.com/api-reference/endpoint/organizations
18
+ */
19
+ interface APIOrganizationMember {
20
+ user_id: string;
21
+ role: OrganizationMemberRole;
22
+ joined_at: ISODateString;
23
+ }
24
+ /**
25
+ * @see https://docs.vertracloud.com/api-reference/endpoint/organizations
26
+ */
27
+ interface APIOrganization {
28
+ id: SnowFlake;
29
+ name: SnowFlake;
30
+ description: string;
31
+ tags: string[];
32
+ owner_id: SnowFlake;
33
+ members: APIOrganizationMember[];
34
+ created_at: ISODateString;
35
+ updated_at: ISODateString;
36
+ }
37
+ /**
38
+ * @see https://docs.vertracloud.com/api-reference/endpoint/organizations
39
+ */
40
+ interface APIOrganizationInfoResponse extends APIOrganization {
41
+ applications: APIApplication[];
42
+ databases: APIDatabase[];
43
+ }
44
+
45
+ export { type APIOrganization, type APIOrganizationInfoResponse, type APIOrganizationMember, OrganizationMemberRole };
@@ -0,0 +1,37 @@
1
+ "use strict";
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __export = (target, all) => {
7
+ for (var name in all)
8
+ __defProp(target, name, { get: all[name], enumerable: true });
9
+ };
10
+ var __copyProps = (to, from, except, desc) => {
11
+ if (from && typeof from === "object" || typeof from === "function") {
12
+ for (let key of __getOwnPropNames(from))
13
+ if (!__hasOwnProp.call(to, key) && key !== except)
14
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
+ }
16
+ return to;
17
+ };
18
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
+
20
+ // payloads/v1/organization.ts
21
+ var organization_exports = {};
22
+ __export(organization_exports, {
23
+ OrganizationMemberRole: () => OrganizationMemberRole
24
+ });
25
+ module.exports = __toCommonJS(organization_exports);
26
+ var OrganizationMemberRole = {
27
+ Owner: "owner",
28
+ Admin: "admin",
29
+ Developer: "developer",
30
+ Operator: "operator",
31
+ Viewer: "viewer"
32
+ };
33
+ // Annotate the CommonJS export names for ESM import in node:
34
+ 0 && (module.exports = {
35
+ OrganizationMemberRole
36
+ });
37
+ //# sourceMappingURL=organization.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["organization.ts"],"sourcesContent":["import type {\n\tAPIApplication,\n\tAPIDatabase,\n\tISODateString,\n\tSnowFlake,\n} from \"../../v1\";\n\n/**\n * @see https://docs.vertracloud.com/api-reference/endpoint/organizations\n */\nexport type OrganizationMemberRole =\n\t| \"owner\"\n\t| \"admin\"\n\t| \"developer\"\n\t| \"operator\"\n\t| \"viewer\";\nexport const OrganizationMemberRole = {\n\tOwner: \"owner\",\n\tAdmin: \"admin\",\n\tDeveloper: \"developer\",\n\tOperator: \"operator\",\n\tViewer: \"viewer\",\n} as const;\n\n/**\n * @see https://docs.vertracloud.com/api-reference/endpoint/organizations\n */\nexport interface APIOrganizationMember {\n\tuser_id: string;\n\trole: OrganizationMemberRole;\n\tjoined_at: ISODateString;\n}\n\n/**\n * @see https://docs.vertracloud.com/api-reference/endpoint/organizations\n */\nexport interface APIOrganization {\n\tid: SnowFlake;\n\tname: SnowFlake;\n\tdescription: string;\n\ttags: string[];\n\towner_id: SnowFlake;\n\tmembers: APIOrganizationMember[];\n\tcreated_at: ISODateString;\n\tupdated_at: ISODateString;\n}\n\n/**\n * @see https://docs.vertracloud.com/api-reference/endpoint/organizations\n */\nexport interface APIOrganizationInfoResponse extends APIOrganization {\n\tapplications: APIApplication[];\n\tdatabases: APIDatabase[];\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAgBO,IAAM,yBAAyB;AAAA,EACrC,OAAO;AAAA,EACP,OAAO;AAAA,EACP,WAAW;AAAA,EACX,UAAU;AAAA,EACV,QAAQ;AACT;","names":[]}
@@ -0,0 +1,12 @@
1
+ // payloads/v1/organization.ts
2
+ var OrganizationMemberRole = {
3
+ Owner: "owner",
4
+ Admin: "admin",
5
+ Developer: "developer",
6
+ Operator: "operator",
7
+ Viewer: "viewer"
8
+ };
9
+ export {
10
+ OrganizationMemberRole
11
+ };
12
+ //# sourceMappingURL=organization.mjs.map
@@ -0,0 +1,42 @@
1
+ /**
2
+ * @see https://docs.vertracloud.com/api-reference/endpoint/status
3
+ */
4
+ type StatusType = "healthy" | "degraded" | "unknown";
5
+ declare const StatusType: {
6
+ readonly Healthy: "healthy";
7
+ readonly Degraded: "degraded";
8
+ readonly Unknown: "unknown";
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
+ /**
33
+ * @see https://docs.vertracloud.com/api-reference/endpoint/status
34
+ */
35
+ interface APIStatus {
36
+ status: StatusType;
37
+ ping: number;
38
+ services: APIStatusServices;
39
+ uptime: number | null;
40
+ }
41
+
42
+ export { type APIStatus, type APIStatusServices, ServicesType, StatusType };
@@ -0,0 +1,42 @@
1
+ "use strict";
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __export = (target, all) => {
7
+ for (var name in all)
8
+ __defProp(target, name, { get: all[name], enumerable: true });
9
+ };
10
+ var __copyProps = (to, from, except, desc) => {
11
+ if (from && typeof from === "object" || typeof from === "function") {
12
+ for (let key of __getOwnPropNames(from))
13
+ if (!__hasOwnProp.call(to, key) && key !== except)
14
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
+ }
16
+ return to;
17
+ };
18
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
+
20
+ // payloads/v1/status.ts
21
+ var status_exports = {};
22
+ __export(status_exports, {
23
+ ServicesType: () => ServicesType,
24
+ StatusType: () => StatusType
25
+ });
26
+ module.exports = __toCommonJS(status_exports);
27
+ var StatusType = {
28
+ Healthy: "healthy",
29
+ Degraded: "degraded",
30
+ Unknown: "unknown"
31
+ };
32
+ var ServicesType = {
33
+ UP: "up",
34
+ DOWN: "down",
35
+ Unknown: "unknown"
36
+ };
37
+ // Annotate the CommonJS export names for ESM import in node:
38
+ 0 && (module.exports = {
39
+ ServicesType,
40
+ StatusType
41
+ });
42
+ //# sourceMappingURL=status.js.map
@@ -0,0 +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 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"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAIO,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;","names":[]}
@@ -0,0 +1,16 @@
1
+ // payloads/v1/status.ts
2
+ var StatusType = {
3
+ Healthy: "healthy",
4
+ Degraded: "degraded",
5
+ Unknown: "unknown"
6
+ };
7
+ var ServicesType = {
8
+ UP: "up",
9
+ DOWN: "down",
10
+ Unknown: "unknown"
11
+ };
12
+ export {
13
+ ServicesType,
14
+ StatusType
15
+ };
16
+ //# sourceMappingURL=status.mjs.map
@@ -0,0 +1,3 @@
1
+ import '../../common/v1.js';
2
+ import './application.js';
3
+ export { k as APIUser, n as APIUserInfoResponse, o as APIUserOrgInviteKey, m as APIUserPlan, l as APIUserPlanMemory, j as UserDatabasePlan, U as UserPlan } from '../../user-CeSEUubY.js';