@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,56 @@
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/user.ts
21
+ var user_exports = {};
22
+ __export(user_exports, {
23
+ UserDatabasePlan: () => UserDatabasePlan,
24
+ UserPlan: () => UserPlan
25
+ });
26
+ module.exports = __toCommonJS(user_exports);
27
+ var UserPlan = {
28
+ Free: 1,
29
+ Economy: 2,
30
+ Pro: 3,
31
+ Scale: 4,
32
+ Enterprise4: 5,
33
+ Enterprise8: 6,
34
+ Enterprise16: 7,
35
+ Enterprise32: 8
36
+ };
37
+ var UserDatabasePlan = {
38
+ Redis128: 1,
39
+ Redis256: 2,
40
+ Redis512: 3,
41
+ Redis1024: 4,
42
+ MongoDB1: 5,
43
+ MongoDB2: 6,
44
+ MongoDB5: 7,
45
+ MongoDB10: 8,
46
+ PostgreSQL1: 9,
47
+ PostgreSQL2: 10,
48
+ PostgreSQL5: 11,
49
+ PostgreSQL10: 12
50
+ };
51
+ // Annotate the CommonJS export names for ESM import in node:
52
+ 0 && (module.exports = {
53
+ UserDatabasePlan,
54
+ UserPlan
55
+ });
56
+ //# sourceMappingURL=user.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["user.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/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;AAWO,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,30 @@
1
+ // payloads/v1/user.ts
2
+ var UserPlan = {
3
+ Free: 1,
4
+ Economy: 2,
5
+ Pro: 3,
6
+ Scale: 4,
7
+ Enterprise4: 5,
8
+ Enterprise8: 6,
9
+ Enterprise16: 7,
10
+ Enterprise32: 8
11
+ };
12
+ var UserDatabasePlan = {
13
+ Redis128: 1,
14
+ Redis256: 2,
15
+ Redis512: 3,
16
+ Redis1024: 4,
17
+ MongoDB1: 5,
18
+ MongoDB2: 6,
19
+ MongoDB5: 7,
20
+ MongoDB10: 8,
21
+ PostgreSQL1: 9,
22
+ PostgreSQL2: 10,
23
+ PostgreSQL5: 11,
24
+ PostgreSQL10: 12
25
+ };
26
+ export {
27
+ UserDatabasePlan,
28
+ UserPlan
29
+ };
30
+ //# sourceMappingURL=user.mjs.map
@@ -0,0 +1,13 @@
1
+ import { APIPayload } from '../../common/v1.js';
2
+ import { APIActivity } from '../../payloads/v1/activity.js';
3
+
4
+ /**
5
+ * @see https://docs.vertracloud.com/api-reference/endpoint/activities
6
+ */
7
+ type RESTGetAPIActivityResponse = APIPayload<APIActivity>;
8
+ /**
9
+ * @see https://docs.vertracloud.com/api-reference/endpoint/activities
10
+ */
11
+ type RESTGetAPIActivitiesResponse = APIPayload<APIActivity[]>;
12
+
13
+ export type { RESTGetAPIActivitiesResponse, RESTGetAPIActivityResponse };
@@ -0,0 +1,19 @@
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 __copyProps = (to, from, except, desc) => {
7
+ if (from && typeof from === "object" || typeof from === "function") {
8
+ for (let key of __getOwnPropNames(from))
9
+ if (!__hasOwnProp.call(to, key) && key !== except)
10
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
11
+ }
12
+ return to;
13
+ };
14
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
15
+
16
+ // rest/v1/activity.ts
17
+ var activity_exports = {};
18
+ module.exports = __toCommonJS(activity_exports);
19
+ //# sourceMappingURL=activity.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["activity.ts"],"sourcesContent":["import type { APIActivity, APIPayload } from \"../../v1\";\n\n/**\n * @see https://docs.vertracloud.com/api-reference/endpoint/activities\n */\nexport type RESTGetAPIActivityResponse = APIPayload<APIActivity>;\n\n/**\n * @see https://docs.vertracloud.com/api-reference/endpoint/activities\n */\nexport type RESTGetAPIActivitiesResponse = APIPayload<APIActivity[]>;\n"],"mappings":";;;;;;;;;;;;;;;;AAAA;AAAA;","names":[]}
@@ -0,0 +1 @@
1
+ //# sourceMappingURL=activity.mjs.map
@@ -0,0 +1,61 @@
1
+ import { APIPayload } from '../../common/v1.js';
2
+ import { APIApplication, APIApplicationStatus, APIApplicationStatusShort, APIApplicationMetric, APIApplicationCommit, APIApplicationBackup, APIGroupedApplicationBackups, APIApplicationFile, APIApplicationFileContent } from '../../payloads/v1/application.js';
3
+
4
+ /**
5
+ * @see https://docs.vertracloud.com/api-reference/endpoint/applications
6
+ */
7
+ type RESTGetAPIApplicationResponse = APIPayload<APIApplication>;
8
+ /**
9
+ * @see https://docs.vertracloud.com/api-reference/endpoint/applications
10
+ */
11
+ type RESTGetAPIApplicationStatusResponse = APIPayload<APIApplicationStatus>;
12
+ /**
13
+ * @see https://docs.vertracloud.com/api-reference/endpoint/applications
14
+ */
15
+ type RESTGetAPIApplicationStatusShortResponse = APIPayload<APIApplicationStatusShort>;
16
+ /**
17
+ * @see https://docs.vertracloud.com/api-reference/endpoint/applications
18
+ */
19
+ type RESTGetAPIApplicationLogsResponse = APIPayload<string>;
20
+ /**
21
+ * @see https://docs.vertracloud.com/api-reference/endpoint/applications
22
+ */
23
+ type RESTGetAPIApplicationMetricsResponse = APIPayload<APIApplicationMetric[]>;
24
+ /**
25
+ * @see https://docs.vertracloud.com/api-reference/endpoint/applications
26
+ */
27
+ type RESTGetAPIApplicationCommitsResponse = APIPayload<APIApplicationCommit[]>;
28
+ /**
29
+ * @see https://docs.vertracloud.com/api-reference/endpoint/applications
30
+ */
31
+ type RESTGetAPIApplicationBackupsResponse = APIPayload<APIApplicationBackup[]>;
32
+ /**
33
+ * @see https://docs.vertracloud.com/api-reference/endpoint/applications
34
+ */
35
+ type RESTGetAPIGroupedApplicationBackupsResponse = APIPayload<APIGroupedApplicationBackups[]>;
36
+ /**
37
+ * @see https://docs.vertracloud.com/api-reference/endpoint/applications
38
+ */
39
+ type RESTGetAPIApplicationBackupResponse = APIPayload<APIApplicationBackup>;
40
+ /**
41
+ * @see https://docs.vertracloud.com/api-reference/endpoint/applications
42
+ */
43
+ type RESTGetAPIApplicationFilesResponse = APIPayload<APIApplicationFile[]>;
44
+ /**
45
+ * @see https://docs.vertracloud.com/api-reference/endpoint/applications
46
+ */
47
+ type RESTGetAPIApplicationFileContentResponse = APIPayload<APIApplicationFileContent>;
48
+ /**
49
+ * @see https://docs.vertracloud.com/api-reference/endpoint/applications
50
+ */
51
+ type RESTGetAPIApplicationStartResponse = APIPayload<boolean>;
52
+ /**
53
+ * @see https://docs.vertracloud.com/api-reference/endpoint/applications
54
+ */
55
+ type RESTGetAPIApplicationRestartResponse = APIPayload<boolean>;
56
+ /**
57
+ * @see https://docs.vertracloud.com/api-reference/endpoint/applications
58
+ */
59
+ type RESTGetAPIApplicationStopResponse = APIPayload<boolean>;
60
+
61
+ export type { RESTGetAPIApplicationBackupResponse, RESTGetAPIApplicationBackupsResponse, RESTGetAPIApplicationCommitsResponse, RESTGetAPIApplicationFileContentResponse, RESTGetAPIApplicationFilesResponse, RESTGetAPIApplicationLogsResponse, RESTGetAPIApplicationMetricsResponse, RESTGetAPIApplicationResponse, RESTGetAPIApplicationRestartResponse, RESTGetAPIApplicationStartResponse, RESTGetAPIApplicationStatusResponse, RESTGetAPIApplicationStatusShortResponse, RESTGetAPIApplicationStopResponse, RESTGetAPIGroupedApplicationBackupsResponse };
@@ -0,0 +1,19 @@
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 __copyProps = (to, from, except, desc) => {
7
+ if (from && typeof from === "object" || typeof from === "function") {
8
+ for (let key of __getOwnPropNames(from))
9
+ if (!__hasOwnProp.call(to, key) && key !== except)
10
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
11
+ }
12
+ return to;
13
+ };
14
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
15
+
16
+ // rest/v1/application.ts
17
+ var application_exports = {};
18
+ module.exports = __toCommonJS(application_exports);
19
+ //# sourceMappingURL=application.js.map
@@ -0,0 +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":[]}
@@ -0,0 +1 @@
1
+ //# sourceMappingURL=application.mjs.map
@@ -0,0 +1,38 @@
1
+ import { APIPayload } from '../../common/v1.js';
2
+ import { d as APIDatabase, g as APIDatabaseStatus, h as APIDatabaseStatusShort, i as APIDatabaseMetrics } from '../../user-CeSEUubY.js';
3
+ import '../../payloads/v1/application.js';
4
+
5
+ /**
6
+ * @see https://docs.vertracloud.com/api-reference/endpoint/databases
7
+ */
8
+ type RESTGetAPIDatabaseResponse = APIPayload<APIDatabase>;
9
+ /**
10
+ * @see https://docs.vertracloud.com/api-reference/endpoint/databases
11
+ */
12
+ type RESTGetAPIDatabaseStatusResponse = APIPayload<APIDatabaseStatus>;
13
+ /**
14
+ * @see https://docs.vertracloud.com/api-reference/endpoint/databases
15
+ */
16
+ type RESTGetAPIDatabaseStatusShortResponse = APIPayload<APIDatabaseStatusShort>;
17
+ /**
18
+ * @see https://docs.vertracloud.com/api-reference/endpoint/databases
19
+ */
20
+ type RESTGetAPIDatabaseLogsResponse = APIPayload<string>;
21
+ /**
22
+ * @see https://docs.vertracloud.com/api-reference/endpoint/databases
23
+ */
24
+ type RESTGetAPIDatabaseMetricsResponse = APIPayload<APIDatabaseMetrics[]>;
25
+ /**
26
+ * @see https://docs.vertracloud.com/api-reference/endpoint/databases
27
+ */
28
+ type RESTGetAPIDatabaseStartResponse = APIPayload<boolean>;
29
+ /**
30
+ * @see https://docs.vertracloud.com/api-reference/endpoint/databases
31
+ */
32
+ type RESTGetAPIDatabaseRestartResponse = APIPayload<boolean>;
33
+ /**
34
+ * @see https://docs.vertracloud.com/api-reference/endpoint/databases
35
+ */
36
+ type RESTGetAPIDatabaseStopResponse = APIPayload<boolean>;
37
+
38
+ export type { RESTGetAPIDatabaseLogsResponse, RESTGetAPIDatabaseMetricsResponse, RESTGetAPIDatabaseResponse, RESTGetAPIDatabaseRestartResponse, RESTGetAPIDatabaseStartResponse, RESTGetAPIDatabaseStatusResponse, RESTGetAPIDatabaseStatusShortResponse, RESTGetAPIDatabaseStopResponse };
@@ -0,0 +1,19 @@
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 __copyProps = (to, from, except, desc) => {
7
+ if (from && typeof from === "object" || typeof from === "function") {
8
+ for (let key of __getOwnPropNames(from))
9
+ if (!__hasOwnProp.call(to, key) && key !== except)
10
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
11
+ }
12
+ return to;
13
+ };
14
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
15
+
16
+ // rest/v1/database.ts
17
+ var database_exports = {};
18
+ module.exports = __toCommonJS(database_exports);
19
+ //# sourceMappingURL=database.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["database.ts"],"sourcesContent":["import type {\n\tAPIDatabase,\n\tAPIDatabaseMetrics,\n\tAPIDatabaseStatus,\n\tAPIDatabaseStatusShort,\n\tAPIPayload,\n} from \"../../v1\";\n\n/**\n * @see https://docs.vertracloud.com/api-reference/endpoint/databases\n */\nexport type RESTGetAPIDatabaseResponse = APIPayload<APIDatabase>;\n\n/**\n * @see https://docs.vertracloud.com/api-reference/endpoint/databases\n */\nexport type RESTGetAPIDatabaseStatusResponse = APIPayload<APIDatabaseStatus>;\n\n/**\n * @see https://docs.vertracloud.com/api-reference/endpoint/databases\n */\nexport type RESTGetAPIDatabaseStatusShortResponse =\n\tAPIPayload<APIDatabaseStatusShort>;\n\n/**\n * @see https://docs.vertracloud.com/api-reference/endpoint/databases\n */\nexport type RESTGetAPIDatabaseLogsResponse = APIPayload<string>;\n\n/**\n * @see https://docs.vertracloud.com/api-reference/endpoint/databases\n */\nexport type RESTGetAPIDatabaseMetricsResponse = APIPayload<\n\tAPIDatabaseMetrics[]\n>;\n\n/**\n * @see https://docs.vertracloud.com/api-reference/endpoint/databases\n */\nexport type RESTGetAPIDatabaseStartResponse = APIPayload<boolean>;\n\n/**\n * @see https://docs.vertracloud.com/api-reference/endpoint/databases\n */\nexport type RESTGetAPIDatabaseRestartResponse = APIPayload<boolean>;\n\n/**\n * @see https://docs.vertracloud.com/api-reference/endpoint/databases\n */\nexport type RESTGetAPIDatabaseStopResponse = APIPayload<boolean>;\n"],"mappings":";;;;;;;;;;;;;;;;AAAA;AAAA;","names":[]}
@@ -0,0 +1 @@
1
+ //# sourceMappingURL=database.mjs.map
@@ -0,0 +1,10 @@
1
+ export { RESTGetAPIApplicationBackupResponse, RESTGetAPIApplicationBackupsResponse, RESTGetAPIApplicationCommitsResponse, RESTGetAPIApplicationFileContentResponse, RESTGetAPIApplicationFilesResponse, RESTGetAPIApplicationLogsResponse, RESTGetAPIApplicationMetricsResponse, RESTGetAPIApplicationResponse, RESTGetAPIApplicationRestartResponse, RESTGetAPIApplicationStartResponse, RESTGetAPIApplicationStatusResponse, RESTGetAPIApplicationStatusShortResponse, RESTGetAPIApplicationStopResponse, RESTGetAPIGroupedApplicationBackupsResponse } from './application.js';
2
+ export { RESTGetAPIDatabaseLogsResponse, RESTGetAPIDatabaseMetricsResponse, RESTGetAPIDatabaseResponse, RESTGetAPIDatabaseRestartResponse, RESTGetAPIDatabaseStartResponse, RESTGetAPIDatabaseStatusResponse, RESTGetAPIDatabaseStatusShortResponse, RESTGetAPIDatabaseStopResponse } from './database.js';
3
+ export { RESTGetAPIOrganizationInfoResponse, RESTGetAPIOrganizationResponse } from './organization.js';
4
+ export { RESTGetAPIStatusResponse } from './status.js';
5
+ export { RESTGetAPIUserInfoResponse, RESTGetAPIUserResponse } from './user.js';
6
+ import '../../common/v1.js';
7
+ import '../../payloads/v1/application.js';
8
+ import '../../user-CeSEUubY.js';
9
+ import '../../payloads/v1/organization.js';
10
+ import '../../payloads/v1/status.js';
@@ -0,0 +1,19 @@
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 __copyProps = (to, from, except, desc) => {
7
+ if (from && typeof from === "object" || typeof from === "function") {
8
+ for (let key of __getOwnPropNames(from))
9
+ if (!__hasOwnProp.call(to, key) && key !== except)
10
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
11
+ }
12
+ return to;
13
+ };
14
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
15
+
16
+ // rest/v1/index.ts
17
+ var v1_exports = {};
18
+ module.exports = __toCommonJS(v1_exports);
19
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["index.ts"],"sourcesContent":["export * from \"./application\";\nexport * from \"./database\";\nexport * from \"./organization\";\nexport * from \"./status\";\nexport * from \"./user\";\n"],"mappings":";;;;;;;;;;;;;;;;AAAA;AAAA;","names":[]}
@@ -0,0 +1 @@
1
+ //# sourceMappingURL=index.mjs.map
@@ -0,0 +1,15 @@
1
+ import { APIPayload } from '../../common/v1.js';
2
+ import { APIOrganization, APIOrganizationInfoResponse } from '../../payloads/v1/organization.js';
3
+ import '../../payloads/v1/application.js';
4
+ import '../../user-CeSEUubY.js';
5
+
6
+ /**
7
+ * @see https://docs.vertracloud.com/api-reference/endpoint/organizations
8
+ */
9
+ type RESTGetAPIOrganizationResponse = APIPayload<APIOrganization>;
10
+ /**
11
+ * @see https://docs.vertracloud.com/api-reference/endpoint/organizations
12
+ */
13
+ type RESTGetAPIOrganizationInfoResponse = APIPayload<APIOrganizationInfoResponse>;
14
+
15
+ export type { RESTGetAPIOrganizationInfoResponse, RESTGetAPIOrganizationResponse };
@@ -0,0 +1,19 @@
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 __copyProps = (to, from, except, desc) => {
7
+ if (from && typeof from === "object" || typeof from === "function") {
8
+ for (let key of __getOwnPropNames(from))
9
+ if (!__hasOwnProp.call(to, key) && key !== except)
10
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
11
+ }
12
+ return to;
13
+ };
14
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
15
+
16
+ // rest/v1/organization.ts
17
+ var organization_exports = {};
18
+ module.exports = __toCommonJS(organization_exports);
19
+ //# sourceMappingURL=organization.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["organization.ts"],"sourcesContent":["import type {\n\tAPIOrganization,\n\tAPIOrganizationInfoResponse,\n\tAPIPayload,\n} from \"../../v1\";\n\n/**\n * @see https://docs.vertracloud.com/api-reference/endpoint/organizations\n */\nexport type RESTGetAPIOrganizationResponse = APIPayload<APIOrganization>;\n\n/**\n * @see https://docs.vertracloud.com/api-reference/endpoint/organizations\n */\nexport type RESTGetAPIOrganizationInfoResponse =\n\tAPIPayload<APIOrganizationInfoResponse>;\n"],"mappings":";;;;;;;;;;;;;;;;AAAA;AAAA;","names":[]}
@@ -0,0 +1 @@
1
+ //# sourceMappingURL=organization.mjs.map
@@ -0,0 +1,9 @@
1
+ import { APIPayload } from '../../common/v1.js';
2
+ import { APIStatus } from '../../payloads/v1/status.js';
3
+
4
+ /**
5
+ * @see https://docs.vertracloud.com/api-reference/endpoint/status
6
+ */
7
+ type RESTGetAPIStatusResponse = APIPayload<APIStatus>;
8
+
9
+ export type { RESTGetAPIStatusResponse };
@@ -0,0 +1,19 @@
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 __copyProps = (to, from, except, desc) => {
7
+ if (from && typeof from === "object" || typeof from === "function") {
8
+ for (let key of __getOwnPropNames(from))
9
+ if (!__hasOwnProp.call(to, key) && key !== except)
10
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
11
+ }
12
+ return to;
13
+ };
14
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
15
+
16
+ // rest/v1/status.ts
17
+ var status_exports = {};
18
+ module.exports = __toCommonJS(status_exports);
19
+ //# sourceMappingURL=status.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["status.ts"],"sourcesContent":["import type { APIPayload, APIStatus } from \"../../v1\";\n\n/**\n * @see https://docs.vertracloud.com/api-reference/endpoint/status\n */\nexport type RESTGetAPIStatusResponse = APIPayload<APIStatus>;\n"],"mappings":";;;;;;;;;;;;;;;;AAAA;AAAA;","names":[]}
@@ -0,0 +1 @@
1
+ //# sourceMappingURL=status.mjs.map
@@ -0,0 +1,14 @@
1
+ import { APIPayload } from '../../common/v1.js';
2
+ import { k as APIUser, n as APIUserInfoResponse } from '../../user-CeSEUubY.js';
3
+ import '../../payloads/v1/application.js';
4
+
5
+ /**
6
+ * @see https://docs.vertracloud.com/api-reference/endpoint/users
7
+ */
8
+ type RESTGetAPIUserResponse = APIPayload<APIUser>;
9
+ /**
10
+ * @see https://docs.vertracloud.com/api-reference/endpoint/users
11
+ */
12
+ type RESTGetAPIUserInfoResponse = APIPayload<APIUserInfoResponse>;
13
+
14
+ export type { RESTGetAPIUserInfoResponse, RESTGetAPIUserResponse };
@@ -0,0 +1,19 @@
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 __copyProps = (to, from, except, desc) => {
7
+ if (from && typeof from === "object" || typeof from === "function") {
8
+ for (let key of __getOwnPropNames(from))
9
+ if (!__hasOwnProp.call(to, key) && key !== except)
10
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
11
+ }
12
+ return to;
13
+ };
14
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
15
+
16
+ // rest/v1/user.ts
17
+ var user_exports = {};
18
+ module.exports = __toCommonJS(user_exports);
19
+ //# sourceMappingURL=user.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["user.ts"],"sourcesContent":["import type { APIPayload, APIUser, APIUserInfoResponse } from \"../../v1\";\n\n/**\n * @see https://docs.vertracloud.com/api-reference/endpoint/users\n */\nexport type RESTGetAPIUserResponse = APIPayload<APIUser>;\n\n/**\n * @see https://docs.vertracloud.com/api-reference/endpoint/users\n */\nexport type RESTGetAPIUserInfoResponse = APIPayload<APIUserInfoResponse>;\n"],"mappings":";;;;;;;;;;;;;;;;AAAA;AAAA;","names":[]}
@@ -0,0 +1 @@
1
+ //# sourceMappingURL=user.mjs.map
package/utils.d.ts ADDED
@@ -0,0 +1,8 @@
1
+ type Prettify<T> = {
2
+ [K in keyof T]: Prettify<T[K]>;
3
+ } & {};
4
+ type Brand<T extends string> = {
5
+ readonly __brand: T;
6
+ };
7
+
8
+ export type { Brand, Prettify };
package/utils.js ADDED
@@ -0,0 +1,19 @@
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 __copyProps = (to, from, except, desc) => {
7
+ if (from && typeof from === "object" || typeof from === "function") {
8
+ for (let key of __getOwnPropNames(from))
9
+ if (!__hasOwnProp.call(to, key) && key !== except)
10
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
11
+ }
12
+ return to;
13
+ };
14
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
15
+
16
+ // utils.ts
17
+ var utils_exports = {};
18
+ module.exports = __toCommonJS(utils_exports);
19
+ //# sourceMappingURL=utils.js.map
package/utils.js.map ADDED
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["utils.ts"],"sourcesContent":["export type Prettify<T> = {\n\t[K in keyof T]: Prettify<T[K]>;\n} & {};\n\nexport type Brand<T extends string> = { readonly __brand: T };\n"],"mappings":";;;;;;;;;;;;;;;;AAAA;AAAA;","names":[]}
package/utils.mjs ADDED
@@ -0,0 +1 @@
1
+ //# sourceMappingURL=utils.mjs.map
package/v1.d.ts ADDED
@@ -0,0 +1,12 @@
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';
3
+ 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';
4
+ export { APIOrganization, APIOrganizationInfoResponse, APIOrganizationMember, OrganizationMemberRole } from './payloads/v1/organization.js';
5
+ export { APIActivity, ActivityStatus, ActivityTargetType } from './payloads/v1/activity.js';
6
+ export { APIStatus, APIStatusServices, ServicesType, StatusType } from './payloads/v1/status.js';
7
+ export { RESTGetAPIApplicationBackupResponse, RESTGetAPIApplicationBackupsResponse, RESTGetAPIApplicationCommitsResponse, RESTGetAPIApplicationFileContentResponse, RESTGetAPIApplicationFilesResponse, RESTGetAPIApplicationLogsResponse, RESTGetAPIApplicationMetricsResponse, RESTGetAPIApplicationResponse, RESTGetAPIApplicationRestartResponse, RESTGetAPIApplicationStartResponse, RESTGetAPIApplicationStatusResponse, RESTGetAPIApplicationStatusShortResponse, RESTGetAPIApplicationStopResponse, RESTGetAPIGroupedApplicationBackupsResponse } from './rest/v1/application.js';
8
+ export { RESTGetAPIDatabaseLogsResponse, RESTGetAPIDatabaseMetricsResponse, RESTGetAPIDatabaseResponse, RESTGetAPIDatabaseRestartResponse, RESTGetAPIDatabaseStartResponse, RESTGetAPIDatabaseStatusResponse, RESTGetAPIDatabaseStatusShortResponse, RESTGetAPIDatabaseStopResponse } from './rest/v1/database.js';
9
+ export { RESTGetAPIOrganizationInfoResponse, RESTGetAPIOrganizationResponse } from './rest/v1/organization.js';
10
+ export { RESTGetAPIStatusResponse } from './rest/v1/status.js';
11
+ export { RESTGetAPIUserInfoResponse, RESTGetAPIUserResponse } from './rest/v1/user.js';
12
+ export { Brand, Prettify } from './utils.js';