@vertracloud/api-types 0.0.3 → 0.0.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,7 +1,7 @@
1
1
  // payloads/v1/application.ts
2
2
  var ApplicationLanguage = {
3
- NodeJS: "nodejs",
4
- Python: "python"
3
+ NODEJS: "nodejs",
4
+ PYTHON: "python"
5
5
  };
6
6
  var ApplicationStatus = {
7
7
  UP: "up",
@@ -14,59 +14,61 @@ var ApplicationCommitStatus = {
14
14
  FAILED: 4
15
15
  };
16
16
  var ApplicationCluster = {
17
- USA: 1
17
+ USA_1: 1,
18
+ USA_2: 2
18
19
  };
19
20
  var ApplicationType = {
20
- Bot: 1,
21
- Website: 2
21
+ BOT: 1,
22
+ WEBSITE: 2
22
23
  };
23
24
  var ApplicationFileType = {
24
- File: "file",
25
- Directory: "directory"
25
+ FILE: "file",
26
+ DIRECTORY: "directory"
26
27
  };
27
28
  var ApplicationVersion = {
28
29
  RECOMMENDED: "recommended",
29
30
  LATEST: "latest"
30
31
  };
31
32
  var ApplicationFileContentType = {
32
- Buffer: "buffer"
33
+ BUFFER: "buffer"
33
34
  };
34
35
 
35
36
  // payloads/v1/database.ts
36
37
  var DatabaseType = {
37
- PostgreSQL: 1,
38
- MongoDB: 2,
39
- Redis: 3
38
+ POSTGRESQL: 1,
39
+ MONGODB: 2,
40
+ REDIS: 3
40
41
  };
41
42
  var DatabasePlan = {
42
- Redis128: 1,
43
- Redis256: 2,
44
- Redis512: 3,
45
- Redis1024: 4,
46
- MongoDB1: 5,
47
- MongoDB2: 6,
48
- MongoDB5: 7,
49
- MongoDB10: 8,
50
- PostgreSQL1: 9,
51
- PostgreSQL2: 10,
52
- PostgreSQL5: 11,
53
- PostgreSQL10: 12
43
+ REDIS_128: 1,
44
+ REDIS_256: 2,
45
+ REDIS_512: 3,
46
+ REDIS_1024: 4,
47
+ MONGODB_1024: 5,
48
+ MONGODB_2048: 6,
49
+ MONGODB_5120: 7,
50
+ MONGODB_10240: 8,
51
+ POSTGRESQL_1024: 9,
52
+ POSTGRESQL_2048: 10,
53
+ POSTGRESQL_5120: 11,
54
+ POSTGRESQL_10240: 12
54
55
  };
55
56
  var DatabaseStatus = {
56
57
  UP: "up",
57
58
  DOWN: "down"
58
59
  };
59
60
  var DatabaseCluster = {
60
- USA: 1
61
+ USA_1: 1,
62
+ USA_2: 2
61
63
  };
62
64
 
63
65
  // payloads/v1/organization.ts
64
66
  var OrganizationMemberRole = {
65
- Owner: "owner",
66
- Admin: "admin",
67
- Developer: "developer",
68
- Operator: "operator",
69
- Viewer: "viewer"
67
+ OWNER: "owner",
68
+ ADMIN: "admin",
69
+ DEVELOPER: "developer",
70
+ OPERATOR: "operator",
71
+ VIEWER: "viewer"
70
72
  };
71
73
 
72
74
  // payloads/v1/activity.ts
@@ -85,26 +87,21 @@ var ActivityTargetType = {
85
87
 
86
88
  // payloads/v1/status.ts
87
89
  var StatusType = {
88
- Healthy: "healthy",
89
- Degraded: "degraded",
90
- Unknown: "unknown"
91
- };
92
- var ServicesType = {
93
- UP: "up",
94
- DOWN: "down",
95
- Unknown: "unknown"
90
+ HEALTHY: "healthy",
91
+ DEGRADED: "degraded",
92
+ UNKNOWN: "unknown"
96
93
  };
97
94
 
98
95
  // payloads/v1/user.ts
99
96
  var UserPlan = {
100
- Free: 1,
101
- Economy: 2,
102
- Pro: 3,
103
- Scale: 4,
104
- Enterprise4: 5,
105
- Enterprise8: 6,
106
- Enterprise16: 7,
107
- Enterprise32: 8
97
+ FREE: 1,
98
+ ECONOMY: 2,
99
+ PRO: 3,
100
+ SCALE: 4,
101
+ ENTERPRISE_4: 5,
102
+ ENTERPRISE_8: 6,
103
+ ENTERPRISE_16: 7,
104
+ ENTERPRISE_32: 8
108
105
  };
109
106
  export {
110
107
  ActivityStatus,
@@ -122,7 +119,6 @@ export {
122
119
  DatabaseStatus,
123
120
  DatabaseType,
124
121
  OrganizationMemberRole,
125
- ServicesType,
126
122
  StatusType,
127
123
  UserPlan
128
124
  };
@@ -7,11 +7,11 @@ import { APIDatabase } from './database.js';
7
7
  */
8
8
  type OrganizationMemberRole = "owner" | "admin" | "developer" | "operator" | "viewer";
9
9
  declare const OrganizationMemberRole: {
10
- readonly Owner: "owner";
11
- readonly Admin: "admin";
12
- readonly Developer: "developer";
13
- readonly Operator: "operator";
14
- readonly Viewer: "viewer";
10
+ readonly OWNER: "owner";
11
+ readonly ADMIN: "admin";
12
+ readonly DEVELOPER: "developer";
13
+ readonly OPERATOR: "operator";
14
+ readonly VIEWER: "viewer";
15
15
  };
16
16
  /**
17
17
  * @see https://docs.vertracloud.com/api-reference/endpoint/organizations
@@ -24,11 +24,11 @@ __export(organization_exports, {
24
24
  });
25
25
  module.exports = __toCommonJS(organization_exports);
26
26
  var OrganizationMemberRole = {
27
- Owner: "owner",
28
- Admin: "admin",
29
- Developer: "developer",
30
- Operator: "operator",
31
- Viewer: "viewer"
27
+ OWNER: "owner",
28
+ ADMIN: "admin",
29
+ DEVELOPER: "developer",
30
+ OPERATOR: "operator",
31
+ VIEWER: "viewer"
32
32
  };
33
33
  // Annotate the CommonJS export names for ESM import in node:
34
34
  0 && (module.exports = {
@@ -1 +1 @@
1
- {"version":3,"sources":["organization.ts"],"sourcesContent":["import type { ISODateString, SnowFlake } from \"../../v1\";\nimport type { APIApplication, APIDatabase } from \"./index\";\n\n/**\n * @see https://docs.vertracloud.com/api-reference/endpoint/organizations\n */\nexport type OrganizationMemberRole =\n\t| \"owner\"\n\t| \"admin\"\n\t| \"developer\"\n\t| \"operator\"\n\t| \"viewer\";\nexport const OrganizationMemberRole = {\n\tOwner: \"owner\",\n\tAdmin: \"admin\",\n\tDeveloper: \"developer\",\n\tOperator: \"operator\",\n\tViewer: \"viewer\",\n} as const;\n\n/**\n * @see https://docs.vertracloud.com/api-reference/endpoint/organizations\n */\nexport interface APIOrganizationMember {\n\tuser_id: string;\n\trole: OrganizationMemberRole;\n\tjoined_at: ISODateString;\n}\n\n/**\n * @see https://docs.vertracloud.com/api-reference/endpoint/organizations\n */\nexport interface APIOrganization {\n\tid: SnowFlake;\n\tname: SnowFlake;\n\tdescription: string;\n\ttags: string[];\n\towner_id: SnowFlake;\n\tmembers: APIOrganizationMember[];\n\tcreated_at: ISODateString;\n\tupdated_at: ISODateString;\n}\n\n/**\n * @see https://docs.vertracloud.com/api-reference/endpoint/organizations\n */\nexport interface APIOrganizationInfoResponse extends APIOrganization {\n\tapplications: APIApplication[];\n\tdatabases: APIDatabase[];\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAYO,IAAM,yBAAyB;AAAA,EACrC,OAAO;AAAA,EACP,OAAO;AAAA,EACP,WAAW;AAAA,EACX,UAAU;AAAA,EACV,QAAQ;AACT;","names":[]}
1
+ {"version":3,"sources":["organization.ts"],"sourcesContent":["import type { ISODateString, SnowFlake } from \"../../v1\";\nimport type { APIApplication, APIDatabase } from \"./index\";\n\n/**\n * @see https://docs.vertracloud.com/api-reference/endpoint/organizations\n */\nexport type OrganizationMemberRole =\n\t| \"owner\"\n\t| \"admin\"\n\t| \"developer\"\n\t| \"operator\"\n\t| \"viewer\";\nexport const OrganizationMemberRole = {\n\tOWNER: \"owner\",\n\tADMIN: \"admin\",\n\tDEVELOPER: \"developer\",\n\tOPERATOR: \"operator\",\n\tVIEWER: \"viewer\",\n} as const;\n\n/**\n * @see https://docs.vertracloud.com/api-reference/endpoint/organizations\n */\nexport interface APIOrganizationMember {\n\tuser_id: string;\n\trole: OrganizationMemberRole;\n\tjoined_at: ISODateString;\n}\n\n/**\n * @see https://docs.vertracloud.com/api-reference/endpoint/organizations\n */\nexport interface APIOrganization {\n\tid: SnowFlake;\n\tname: SnowFlake;\n\tdescription: string;\n\ttags: string[];\n\towner_id: SnowFlake;\n\tmembers: APIOrganizationMember[];\n\tcreated_at: ISODateString;\n\tupdated_at: ISODateString;\n}\n\n/**\n * @see https://docs.vertracloud.com/api-reference/endpoint/organizations\n */\nexport interface APIOrganizationInfoResponse extends APIOrganization {\n\tapplications: APIApplication[];\n\tdatabases: APIDatabase[];\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAYO,IAAM,yBAAyB;AAAA,EACrC,OAAO;AAAA,EACP,OAAO;AAAA,EACP,WAAW;AAAA,EACX,UAAU;AAAA,EACV,QAAQ;AACT;","names":[]}
@@ -1,10 +1,10 @@
1
1
  // payloads/v1/organization.ts
2
2
  var OrganizationMemberRole = {
3
- Owner: "owner",
4
- Admin: "admin",
5
- Developer: "developer",
6
- Operator: "operator",
7
- Viewer: "viewer"
3
+ OWNER: "owner",
4
+ ADMIN: "admin",
5
+ DEVELOPER: "developer",
6
+ OPERATOR: "operator",
7
+ VIEWER: "viewer"
8
8
  };
9
9
  export {
10
10
  OrganizationMemberRole
@@ -3,40 +3,16 @@
3
3
  */
4
4
  type StatusType = "healthy" | "degraded" | "unknown";
5
5
  declare const StatusType: {
6
- readonly Healthy: "healthy";
7
- readonly Degraded: "degraded";
8
- readonly Unknown: "unknown";
6
+ readonly HEALTHY: "healthy";
7
+ readonly DEGRADED: "degraded";
8
+ readonly UNKNOWN: "unknown";
9
9
  };
10
- /**
11
- * @see https://docs.vertracloud.com/api-reference/endpoint/status
12
- */
13
- type ServicesType = "up" | "down" | "unknown";
14
- declare const ServicesType: {
15
- readonly UP: "up";
16
- readonly DOWN: "down";
17
- readonly Unknown: "unknown";
18
- };
19
- /**
20
- * @see https://docs.vertracloud.com/api-reference/endpoint/status
21
- */
22
- interface APIStatusServices {
23
- database: {
24
- status: ServicesType;
25
- ping: number;
26
- };
27
- cache: {
28
- status: ServicesType;
29
- ping: number;
30
- };
31
- }
32
10
  /**
33
11
  * @see https://docs.vertracloud.com/api-reference/endpoint/status
34
12
  */
35
13
  interface APIStatus {
36
14
  status: StatusType;
37
- ping: number;
38
- services: APIStatusServices;
39
- uptime: number | null;
15
+ message: string;
40
16
  }
41
17
 
42
- export { type APIStatus, type APIStatusServices, ServicesType, StatusType };
18
+ export { type APIStatus, StatusType };
@@ -20,23 +20,16 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
20
20
  // payloads/v1/status.ts
21
21
  var status_exports = {};
22
22
  __export(status_exports, {
23
- ServicesType: () => ServicesType,
24
23
  StatusType: () => StatusType
25
24
  });
26
25
  module.exports = __toCommonJS(status_exports);
27
26
  var StatusType = {
28
- Healthy: "healthy",
29
- Degraded: "degraded",
30
- Unknown: "unknown"
31
- };
32
- var ServicesType = {
33
- UP: "up",
34
- DOWN: "down",
35
- Unknown: "unknown"
27
+ HEALTHY: "healthy",
28
+ DEGRADED: "degraded",
29
+ UNKNOWN: "unknown"
36
30
  };
37
31
  // Annotate the CommonJS export names for ESM import in node:
38
32
  0 && (module.exports = {
39
- ServicesType,
40
33
  StatusType
41
34
  });
42
35
  //# sourceMappingURL=status.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["status.ts"],"sourcesContent":["/**\n * @see https://docs.vertracloud.com/api-reference/endpoint/status\n */\nexport type StatusType = \"healthy\" | \"degraded\" | \"unknown\";\nexport const StatusType = {\n\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":[]}
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":[]}
@@ -1,16 +1,10 @@
1
1
  // payloads/v1/status.ts
2
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"
3
+ HEALTHY: "healthy",
4
+ DEGRADED: "degraded",
5
+ UNKNOWN: "unknown"
11
6
  };
12
7
  export {
13
- ServicesType,
14
8
  StatusType
15
9
  };
16
10
  //# sourceMappingURL=status.mjs.map
@@ -7,14 +7,14 @@ import { APIDatabase } from './database.js';
7
7
  */
8
8
  type UserPlan = 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8;
9
9
  declare const UserPlan: {
10
- readonly Free: 1;
11
- readonly Economy: 2;
12
- readonly Pro: 3;
13
- readonly Scale: 4;
14
- readonly Enterprise4: 5;
15
- readonly Enterprise8: 6;
16
- readonly Enterprise16: 7;
17
- readonly Enterprise32: 8;
10
+ readonly FREE: 1;
11
+ readonly ECONOMY: 2;
12
+ readonly PRO: 3;
13
+ readonly SCALE: 4;
14
+ readonly ENTERPRISE_4: 5;
15
+ readonly ENTERPRISE_8: 6;
16
+ readonly ENTERPRISE_16: 7;
17
+ readonly ENTERPRISE_32: 8;
18
18
  };
19
19
  /**
20
20
  * @see https://docs.vertracloud.com/api-reference/endpoint/users
@@ -24,14 +24,14 @@ __export(user_exports, {
24
24
  });
25
25
  module.exports = __toCommonJS(user_exports);
26
26
  var UserPlan = {
27
- Free: 1,
28
- Economy: 2,
29
- Pro: 3,
30
- Scale: 4,
31
- Enterprise4: 5,
32
- Enterprise8: 6,
33
- Enterprise16: 7,
34
- Enterprise32: 8
27
+ FREE: 1,
28
+ ECONOMY: 2,
29
+ PRO: 3,
30
+ SCALE: 4,
31
+ ENTERPRISE_4: 5,
32
+ ENTERPRISE_8: 6,
33
+ ENTERPRISE_16: 7,
34
+ ENTERPRISE_32: 8
35
35
  };
36
36
  // Annotate the CommonJS export names for ESM import in node:
37
37
  0 && (module.exports = {
@@ -1 +1 @@
1
- {"version":3,"sources":["user.ts"],"sourcesContent":["import type { ISODateString, SnowFlake } from \"../../v1\";\nimport type { APIApplication, APIDatabase } from \"./index\";\n\n/**\n * @see https://docs.vertracloud.com/api-reference/endpoint/users\n */\nexport type UserPlan = 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8;\nexport const UserPlan = {\n\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;AAOO,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":["user.ts"],"sourcesContent":["import type { ISODateString, SnowFlake } from \"../../v1\";\nimport type { APIApplication, APIDatabase } from \"./index\";\n\n/**\n * @see https://docs.vertracloud.com/api-reference/endpoint/users\n */\nexport type UserPlan = 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8;\nexport const UserPlan = {\n\tFREE: 1,\n\tECONOMY: 2,\n\tPRO: 3,\n\tSCALE: 4,\n\tENTERPRISE_4: 5,\n\tENTERPRISE_8: 6,\n\tENTERPRISE_16: 7,\n\tENTERPRISE_32: 8,\n} as const;\n\n/**\n * @see https://docs.vertracloud.com/api-reference/endpoint/users\n */\nexport interface APIUser {\n\tid: SnowFlake;\n\tname: string;\n\tplan: UserPlan;\n\tcreated_at: ISODateString;\n\tupdated_at: ISODateString;\n}\n\n/**\n * @see https://docs.vertracloud.com/api-reference/endpoint/users\n */\nexport interface APIUserPlanMemory {\n\tlimit: number;\n\tused: number;\n}\n\n/**\n * @see https://docs.vertracloud.com/api-reference/endpoint/users\n */\nexport interface APIUserPlan {\n\tid: UserPlan;\n\tname: string;\n\texpires_at: ISODateString | null;\n\tmemory: APIUserPlanMemory;\n}\n\n/**\n * @see https://docs.vertracloud.com/api-reference/endpoint/users\n */\nexport interface APIUserInfoResponse {\n\tid: SnowFlake;\n\tname: string;\n\tplan: APIUserPlan;\n\tapplications: APIApplication[];\n\tdatabases: APIDatabase[];\n\tcreated_at: ISODateString;\n\tupdated_at: ISODateString;\n}\n\n/**\n * @see https://docs.vertracloud.com/api-reference/endpoint/users\n */\nexport interface APIUserOrgInviteKey {\n\tcode: SnowFlake;\n\tcreated_at: ISODateString;\n\texpire_at: ISODateString;\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAOO,IAAM,WAAW;AAAA,EACvB,MAAM;AAAA,EACN,SAAS;AAAA,EACT,KAAK;AAAA,EACL,OAAO;AAAA,EACP,cAAc;AAAA,EACd,cAAc;AAAA,EACd,eAAe;AAAA,EACf,eAAe;AAChB;","names":[]}
@@ -1,13 +1,13 @@
1
1
  // payloads/v1/user.ts
2
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
3
+ FREE: 1,
4
+ ECONOMY: 2,
5
+ PRO: 3,
6
+ SCALE: 4,
7
+ ENTERPRISE_4: 5,
8
+ ENTERPRISE_8: 6,
9
+ ENTERPRISE_16: 7,
10
+ ENTERPRISE_32: 8
11
11
  };
12
12
  export {
13
13
  UserPlan
@@ -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":[]}
@@ -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, APIStatusServices, ServicesType, StatusType } from './payloads/v1/status.js';
6
+ export { APIStatus, StatusType } from './payloads/v1/status.js';
7
7
  export { APIUser, APIUserInfoResponse, APIUserOrgInviteKey, APIUserPlan, APIUserPlanMemory, UserPlan } from './payloads/v1/user.js';
8
- export { RESTGetAPIApplicationBackupResponse, RESTGetAPIApplicationBackupsResponse, RESTGetAPIApplicationCommitsResponse, RESTGetAPIApplicationFileContentResponse, RESTGetAPIApplicationFilesResponse, RESTGetAPIApplicationLogsResponse, RESTGetAPIApplicationMetricsResponse, RESTGetAPIApplicationResponse, RESTGetAPIApplicationRestartResponse, RESTGetAPIApplicationStartResponse, RESTGetAPIApplicationStatusResponse, RESTGetAPIApplicationStatusShortResponse, RESTGetAPIApplicationStopResponse, RESTGetAPIGroupedApplicationBackupsResponse } from './rest/v1/application.js';
8
+ export { RESTGetAPIApplicationBackupResponse, RESTGetAPIApplicationBackupsResponse, RESTGetAPIApplicationCommitsResponse, RESTGetAPIApplicationEnvironmentResponse, RESTGetAPIApplicationFileContentResponse, RESTGetAPIApplicationFilesResponse, RESTGetAPIApplicationLogsResponse, RESTGetAPIApplicationMetricsResponse, RESTGetAPIApplicationResponse, RESTGetAPIApplicationRestartResponse, RESTGetAPIApplicationStartResponse, RESTGetAPIApplicationStatusResponse, RESTGetAPIApplicationStatusShortResponse, RESTGetAPIApplicationStopResponse, RESTGetAPIGroupedApplicationBackupsResponse } from './rest/v1/application.js';
9
9
  export { RESTGetAPIDatabaseLogsResponse, RESTGetAPIDatabaseMetricsResponse, RESTGetAPIDatabaseResponse, RESTGetAPIDatabaseRestartResponse, RESTGetAPIDatabaseStartResponse, RESTGetAPIDatabaseStatusResponse, RESTGetAPIDatabaseStatusShortResponse, RESTGetAPIDatabaseStopResponse } from './rest/v1/database.js';
10
10
  export { RESTGetAPIOrganizationInfoResponse, RESTGetAPIOrganizationResponse } from './rest/v1/organization.js';
11
11
  export { RESTGetAPIStatusResponse } from './rest/v1/status.js';
package/v1.js CHANGED
@@ -35,7 +35,6 @@ __export(v1_exports, {
35
35
  DatabaseStatus: () => DatabaseStatus,
36
36
  DatabaseType: () => DatabaseType,
37
37
  OrganizationMemberRole: () => OrganizationMemberRole,
38
- ServicesType: () => ServicesType,
39
38
  StatusType: () => StatusType,
40
39
  UserPlan: () => UserPlan
41
40
  });
@@ -43,8 +42,8 @@ module.exports = __toCommonJS(v1_exports);
43
42
 
44
43
  // payloads/v1/application.ts
45
44
  var ApplicationLanguage = {
46
- NodeJS: "nodejs",
47
- Python: "python"
45
+ NODEJS: "nodejs",
46
+ PYTHON: "python"
48
47
  };
49
48
  var ApplicationStatus = {
50
49
  UP: "up",
@@ -57,59 +56,61 @@ var ApplicationCommitStatus = {
57
56
  FAILED: 4
58
57
  };
59
58
  var ApplicationCluster = {
60
- USA: 1
59
+ USA_1: 1,
60
+ USA_2: 2
61
61
  };
62
62
  var ApplicationType = {
63
- Bot: 1,
64
- Website: 2
63
+ BOT: 1,
64
+ WEBSITE: 2
65
65
  };
66
66
  var ApplicationFileType = {
67
- File: "file",
68
- Directory: "directory"
67
+ FILE: "file",
68
+ DIRECTORY: "directory"
69
69
  };
70
70
  var ApplicationVersion = {
71
71
  RECOMMENDED: "recommended",
72
72
  LATEST: "latest"
73
73
  };
74
74
  var ApplicationFileContentType = {
75
- Buffer: "buffer"
75
+ BUFFER: "buffer"
76
76
  };
77
77
 
78
78
  // payloads/v1/database.ts
79
79
  var DatabaseType = {
80
- PostgreSQL: 1,
81
- MongoDB: 2,
82
- Redis: 3
80
+ POSTGRESQL: 1,
81
+ MONGODB: 2,
82
+ REDIS: 3
83
83
  };
84
84
  var DatabasePlan = {
85
- Redis128: 1,
86
- Redis256: 2,
87
- Redis512: 3,
88
- Redis1024: 4,
89
- MongoDB1: 5,
90
- MongoDB2: 6,
91
- MongoDB5: 7,
92
- MongoDB10: 8,
93
- PostgreSQL1: 9,
94
- PostgreSQL2: 10,
95
- PostgreSQL5: 11,
96
- PostgreSQL10: 12
85
+ REDIS_128: 1,
86
+ REDIS_256: 2,
87
+ REDIS_512: 3,
88
+ REDIS_1024: 4,
89
+ MONGODB_1024: 5,
90
+ MONGODB_2048: 6,
91
+ MONGODB_5120: 7,
92
+ MONGODB_10240: 8,
93
+ POSTGRESQL_1024: 9,
94
+ POSTGRESQL_2048: 10,
95
+ POSTGRESQL_5120: 11,
96
+ POSTGRESQL_10240: 12
97
97
  };
98
98
  var DatabaseStatus = {
99
99
  UP: "up",
100
100
  DOWN: "down"
101
101
  };
102
102
  var DatabaseCluster = {
103
- USA: 1
103
+ USA_1: 1,
104
+ USA_2: 2
104
105
  };
105
106
 
106
107
  // payloads/v1/organization.ts
107
108
  var OrganizationMemberRole = {
108
- Owner: "owner",
109
- Admin: "admin",
110
- Developer: "developer",
111
- Operator: "operator",
112
- Viewer: "viewer"
109
+ OWNER: "owner",
110
+ ADMIN: "admin",
111
+ DEVELOPER: "developer",
112
+ OPERATOR: "operator",
113
+ VIEWER: "viewer"
113
114
  };
114
115
 
115
116
  // payloads/v1/activity.ts
@@ -128,26 +129,21 @@ var ActivityTargetType = {
128
129
 
129
130
  // payloads/v1/status.ts
130
131
  var StatusType = {
131
- Healthy: "healthy",
132
- Degraded: "degraded",
133
- Unknown: "unknown"
134
- };
135
- var ServicesType = {
136
- UP: "up",
137
- DOWN: "down",
138
- Unknown: "unknown"
132
+ HEALTHY: "healthy",
133
+ DEGRADED: "degraded",
134
+ UNKNOWN: "unknown"
139
135
  };
140
136
 
141
137
  // payloads/v1/user.ts
142
138
  var UserPlan = {
143
- Free: 1,
144
- Economy: 2,
145
- Pro: 3,
146
- Scale: 4,
147
- Enterprise4: 5,
148
- Enterprise8: 6,
149
- Enterprise16: 7,
150
- Enterprise32: 8
139
+ FREE: 1,
140
+ ECONOMY: 2,
141
+ PRO: 3,
142
+ SCALE: 4,
143
+ ENTERPRISE_4: 5,
144
+ ENTERPRISE_8: 6,
145
+ ENTERPRISE_16: 7,
146
+ ENTERPRISE_32: 8
151
147
  };
152
148
  // Annotate the CommonJS export names for ESM import in node:
153
149
  0 && (module.exports = {
@@ -166,7 +162,6 @@ var UserPlan = {
166
162
  DatabaseStatus,
167
163
  DatabaseType,
168
164
  OrganizationMemberRole,
169
- ServicesType,
170
165
  StatusType,
171
166
  UserPlan
172
167
  });