@vertracloud/api-types 0.0.14 → 0.0.16

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/common/v1.d.ts CHANGED
@@ -1,17 +1,27 @@
1
- type APIPayloadStatus = "error" | "success";
2
1
  type SnowFlake = string;
3
- interface APIPayload<TResponse> {
4
- status: APIPayloadStatus;
5
- response: TResponse;
2
+ interface PaginationMeta<T> {
3
+ data: T[];
4
+ total_count: number;
5
+ page: number;
6
+ limit: number;
7
+ total_pages: number;
8
+ has_next_page: boolean;
9
+ has_previous_page: boolean;
10
+ }
11
+ interface APIPaginatedPayload<T> {
12
+ response: PaginationMeta<T>;
13
+ }
14
+ interface APIPayload<T> {
15
+ response?: T;
6
16
  code?: string;
17
+ message?: string;
7
18
  }
8
- interface APIPayloadStatusOnly {
9
- status: APIPayloadStatus;
19
+ interface APIReturnService<T> {
20
+ status: number;
21
+ payload: APIPayload<T>;
10
22
  }
11
- interface APIPaginatedPayload<TResponse> {
12
- status: APIPayloadStatus;
13
- response: TResponse;
14
- meta?: PaginationMeta;
23
+ interface APIPayloadMessageOnly {
24
+ message: string;
15
25
  }
16
26
  interface APIHeaders {
17
27
  Authorization: string;
@@ -21,14 +31,6 @@ type DeepPartial<T> = T extends object ? {
21
31
  } : T;
22
32
  type APIVersion<TVersion extends number> = `v${TVersion}`;
23
33
  type ISODateString = string;
24
- interface PaginationMeta {
25
- total_count: number;
26
- page: number;
27
- limit: number;
28
- total_pages: number;
29
- has_next_page: boolean;
30
- has_previous_page: boolean;
31
- }
32
34
  type UserPlan = 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8;
33
35
  declare const UserPlan: {
34
36
  readonly FREE: 1;
@@ -41,4 +43,4 @@ declare const UserPlan: {
41
43
  readonly ENTERPRISE_32: 8;
42
44
  };
43
45
 
44
- export { type APIHeaders, type APIPaginatedPayload, type APIPayload, type APIPayloadStatus, type APIPayloadStatusOnly, type APIVersion, type DeepPartial, type ISODateString, type PaginationMeta, type SnowFlake, UserPlan };
46
+ export { type APIHeaders, type APIPaginatedPayload, type APIPayload, type APIPayloadMessageOnly, type APIReturnService, type APIVersion, type DeepPartial, type ISODateString, type PaginationMeta, type SnowFlake, UserPlan };
package/common/v1.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"sources":["v1.ts"],"sourcesContent":["export type APIPayloadStatus = \"error\" | \"success\";\n\nexport type SnowFlake = string;\n\nexport interface APIPayload<TResponse> {\n\tstatus: APIPayloadStatus;\n\tresponse: TResponse;\n\tcode?: string;\n}\n\nexport interface APIPayloadStatusOnly {\n\tstatus: APIPayloadStatus;\n}\n\nexport interface APIPaginatedPayload<TResponse> {\n\tstatus: APIPayloadStatus;\n\tresponse: TResponse;\n\tmeta?: PaginationMeta;\n}\n\nexport interface APIHeaders {\n\tAuthorization: string;\n}\n\nexport type DeepPartial<T> = T extends object\n\t? {\n\t\t\t[P in keyof T]?: DeepPartial<T[P]>;\n\t\t}\n\t: T;\n\nexport type APIVersion<TVersion extends number> = `v${TVersion}`;\n\nexport type ISODateString = string;\n\nexport interface PaginationMeta {\n\ttotal_count: number;\n\tpage: number;\n\tlimit: number;\n\ttotal_pages: number;\n\thas_next_page: boolean;\n\thas_previous_page: boolean;\n}\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"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AA4CO,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
+ {"version":3,"sources":["v1.ts"],"sourcesContent":["export type SnowFlake = string;\n\nexport interface PaginationMeta<T> {\n\tdata: T[];\n\ttotal_count: number;\n\tpage: number;\n\tlimit: number;\n\ttotal_pages: number;\n\thas_next_page: boolean;\n\thas_previous_page: boolean;\n}\n\nexport interface APIPaginatedPayload<T> {\n\tresponse: PaginationMeta<T>;\n}\n\nexport interface APIPayload<T> {\n\tresponse?: T;\n\tcode?: string;\n\tmessage?: string;\n}\n\nexport interface APIReturnService<T> {\n\tstatus: number;\n\tpayload: APIPayload<T>;\n}\n\nexport interface APIPayloadMessageOnly {\n\tmessage: string;\n}\n\nexport interface APIHeaders {\n\tAuthorization: string;\n}\n\nexport type DeepPartial<T> = T extends object\n\t? {\n\t\t\t[P in keyof T]?: DeepPartial<T[P]>;\n\t\t}\n\t: T;\n\nexport type APIVersion<TVersion extends number> = `v${TVersion}`;\n\nexport type ISODateString = string;\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"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AA8CO,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":[]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vertracloud/api-types",
3
- "version": "0.0.14",
3
+ "version": "0.0.16",
4
4
  "private": false,
5
5
  "description": "Typings for Vertra Cloud API",
6
6
  "homepage": "https://github.com/vertracloud/api-types#readme",
@@ -39,6 +39,7 @@
39
39
  "check-types": "tsc --noEmit",
40
40
  "prepublishOnly": "run-s clean lint build",
41
41
  "postpublish": "npm run clean",
42
+ "pack": "npm run clean && npm run build && npm pack && npm run clean",
42
43
  "release": "npm run build && changeset publish"
43
44
  },
44
45
  "license": "MIT",
@@ -1,7 +1,7 @@
1
1
  import { SnowFlake, ISODateString } from '../../common/v1.js';
2
2
 
3
3
  /**
4
- * @see https://docs.vertracloud.com/api-reference/endpoint/activities
4
+ * @see https://docs.vertracloud.app/api-reference/endpoint/activities
5
5
  */
6
6
  type ActivityStatus = "success" | "warning" | "error" | "info";
7
7
  declare const ActivityStatus: {
@@ -11,7 +11,7 @@ declare const ActivityStatus: {
11
11
  readonly Info: "info";
12
12
  };
13
13
  /**
14
- * @see https://docs.vertracloud.com/api-reference/endpoint/activities
14
+ * @see https://docs.vertracloud.app/api-reference/endpoint/activities
15
15
  */
16
16
  type ActivityTargetType = "app" | "database" | "organization" | "audit";
17
17
  declare const ActivityTargetType: {
@@ -21,7 +21,7 @@ declare const ActivityTargetType: {
21
21
  readonly Audit: "audit";
22
22
  };
23
23
  /**
24
- * @see https://docs.vertracloud.com/api-reference/endpoint/activities
24
+ * @see https://docs.vertracloud.app/api-reference/endpoint/activities
25
25
  */
26
26
  interface APIActivity {
27
27
  id: SnowFlake;
@@ -1 +1 @@
1
- {"version":3,"sources":["activity.ts"],"sourcesContent":["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"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAMO,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;","names":[]}
1
+ {"version":3,"sources":["activity.ts"],"sourcesContent":["import type { ISODateString, SnowFlake } from \"../../v1\";\n\n/**\n * @see https://docs.vertracloud.app/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.app/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.app/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"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAMO,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;","names":[]}
@@ -1,15 +1,17 @@
1
1
  import { ISODateString, SnowFlake, UserPlan } from '../../common/v1.js';
2
2
 
3
3
  /**
4
- * @see https://docs.vertracloud.com/api-reference/endpoint/applications
4
+ * @see https://docs.vertracloud.app/api-reference/endpoint/applications
5
5
  */
6
- type ApplicationLanguage = "nodejs" | "python";
6
+ type ApplicationLanguage = "javascript" | "typescript" | "bun" | "python";
7
7
  declare const ApplicationLanguage: {
8
- readonly NODEJS: "nodejs";
8
+ readonly JAVASCRIPT: "javascript";
9
+ readonly TYPESCRIPT: "typescript";
10
+ readonly BUN: "bun";
9
11
  readonly PYTHON: "python";
10
12
  };
11
13
  /**
12
- * @see https://docs.vertracloud.com/api-reference/endpoint/applications
14
+ * @see https://docs.vertracloud.app/api-reference/endpoint/applications
13
15
  */
14
16
  type ApplicationStatus = "up" | "down";
15
17
  declare const ApplicationStatus: {
@@ -17,7 +19,7 @@ declare const ApplicationStatus: {
17
19
  readonly DOWN: "down";
18
20
  };
19
21
  /**
20
- * @see https://docs.vertracloud.com/api-reference/endpoint/applications
22
+ * @see https://docs.vertracloud.app/api-reference/endpoint/applications
21
23
  */
22
24
  type ApplicationCommitStatus = 1 | 2 | 3 | 4;
23
25
  declare const ApplicationCommitStatus: {
@@ -27,15 +29,15 @@ declare const ApplicationCommitStatus: {
27
29
  readonly FAILED: 4;
28
30
  };
29
31
  /**
30
- * @see https://docs.vertracloud.com/api-reference/endpoint/applications
32
+ * @see https://docs.vertracloud.app/api-reference/endpoint/applications
31
33
  */
32
- type ApplicationCluster = 1;
34
+ type ApplicationCluster = number;
33
35
  declare const ApplicationCluster: {
34
36
  readonly USA_1: 1;
35
37
  readonly USA_2: 2;
36
38
  };
37
39
  /**
38
- * @see https://docs.vertracloud.com/api-reference/endpoint/applications
40
+ * @see https://docs.vertracloud.app/api-reference/endpoint/applications
39
41
  */
40
42
  type ApplicationType = 1 | 2;
41
43
  declare const ApplicationType: {
@@ -43,7 +45,7 @@ declare const ApplicationType: {
43
45
  readonly WEBSITE: 2;
44
46
  };
45
47
  /**
46
- * @see https://docs.vertracloud.com/api-reference/endpoint/applications
48
+ * @see https://docs.vertracloud.app/api-reference/endpoint/applications
47
49
  */
48
50
  interface ApplicationCommit {
49
51
  version: string;
@@ -51,7 +53,7 @@ interface ApplicationCommit {
51
53
  notes: string;
52
54
  }
53
55
  /**
54
- * @see https://docs.vertracloud.com/api-reference/endpoint/applications
56
+ * @see https://docs.vertracloud.app/api-reference/endpoint/applications
55
57
  */
56
58
  type ApplicationFileType = "file" | "directory";
57
59
  declare const ApplicationFileType: {
@@ -59,7 +61,7 @@ declare const ApplicationFileType: {
59
61
  readonly DIRECTORY: "directory";
60
62
  };
61
63
  /**
62
- * @see https://docs.vertracloud.com/api-reference/endpoint/applications
64
+ * @see https://docs.vertracloud.app/api-reference/endpoint/applications
63
65
  */
64
66
  type ApplicationVersion = "recommended" | "latest";
65
67
  declare const ApplicationVersion: {
@@ -67,14 +69,14 @@ declare const ApplicationVersion: {
67
69
  readonly LATEST: "latest";
68
70
  };
69
71
  /**
70
- * @see https://docs.vertracloud.com/api-reference/endpoint/applications
72
+ * @see https://docs.vertracloud.app/api-reference/endpoint/applications
71
73
  */
72
74
  type ApplicationFileContentType = "buffer";
73
75
  declare const ApplicationFileContentType: {
74
76
  readonly BUFFER: "buffer";
75
77
  };
76
78
  /**
77
- * @see https://docs.vertracloud.com/api-reference/endpoint/applications
79
+ * @see https://docs.vertracloud.app/api-reference/endpoint/applications
78
80
  */
79
81
  interface APIApplicationFile {
80
82
  type: ApplicationFileType;
@@ -83,14 +85,14 @@ interface APIApplicationFile {
83
85
  last_modified: ISODateString;
84
86
  }
85
87
  /**
86
- * @see https://docs.vertracloud.com/api-reference/endpoint/applications
88
+ * @see https://docs.vertracloud.app/api-reference/endpoint/applications
87
89
  */
88
90
  interface APIApplicationFileContent {
89
91
  type: ApplicationFileContentType;
90
92
  data: number[];
91
93
  }
92
94
  /**
93
- * @see https://docs.vertracloud.com/api-reference/endpoint/applications
95
+ * @see https://docs.vertracloud.app/api-reference/endpoint/applications
94
96
  */
95
97
  interface APIApplication {
96
98
  id: SnowFlake;
@@ -111,23 +113,24 @@ interface APIApplication {
111
113
  updated_at: ISODateString;
112
114
  }
113
115
  /**
114
- * @see https://docs.vertracloud.com/api-reference/endpoint/applications
116
+ * @see https://docs.vertracloud.app/api-reference/endpoint/applications
115
117
  */
116
118
  interface APIApplicationNetwork {
117
119
  total: string;
118
120
  now: string;
119
121
  }
120
122
  /**
121
- * @see https://docs.vertracloud.com/api-reference/endpoint/applications
123
+ * @see https://docs.vertracloud.app/api-reference/endpoint/applications
122
124
  */
123
125
  interface APIApplicationActivity {
124
126
  message: string;
125
127
  timestamp: ISODateString;
126
128
  }
127
129
  /**
128
- * @see https://docs.vertracloud.com/api-reference/endpoint/applications
130
+ * @see https://docs.vertracloud.app/api-reference/endpoint/applications
129
131
  */
130
132
  interface APIApplicationStatus {
133
+ id: SnowFlake;
131
134
  cpu: string;
132
135
  ram: string;
133
136
  status: ApplicationStatus;
@@ -135,11 +138,9 @@ interface APIApplicationStatus {
135
138
  storage: string;
136
139
  network: APIApplicationNetwork;
137
140
  uptime: number;
138
- created_at: ISODateString;
139
- updated_at: ISODateString;
140
141
  }
141
142
  /**
142
- * @see https://docs.vertracloud.com/api-reference/endpoint/applications
143
+ * @see https://docs.vertracloud.app/api-reference/endpoint/applications
143
144
  */
144
145
  interface APIApplicationStatusShort {
145
146
  id: SnowFlake;
@@ -148,7 +149,7 @@ interface APIApplicationStatusShort {
148
149
  running: boolean;
149
150
  }
150
151
  /**
151
- * @see https://docs.vertracloud.com/api-reference/endpoint/applications
152
+ * @see https://docs.vertracloud.app/api-reference/endpoint/applications
152
153
  */
153
154
  interface APIApplicationMetric {
154
155
  cpu: number;
@@ -158,7 +159,7 @@ interface APIApplicationMetric {
158
159
  network: number[];
159
160
  }
160
161
  /**
161
- * @see https://docs.vertracloud.com/api-reference/endpoint/applications
162
+ * @see https://docs.vertracloud.app/api-reference/endpoint/applications
162
163
  */
163
164
  interface APIApplicationCommit {
164
165
  id: SnowFlake;
@@ -170,7 +171,7 @@ interface APIApplicationCommit {
170
171
  date: ISODateString;
171
172
  }
172
173
  /**
173
- * @see https://docs.vertracloud.com/api-reference/endpoint/applications
174
+ * @see https://docs.vertracloud.app/api-reference/endpoint/applications
174
175
  */
175
176
  interface APIApplicationBackup {
176
177
  id: SnowFlake;
@@ -180,7 +181,7 @@ interface APIApplicationBackup {
180
181
  date: ISODateString;
181
182
  }
182
183
  /**
183
- * @see https://docs.vertracloud.com/api-reference/endpoint/applications
184
+ * @see https://docs.vertracloud.app/api-reference/endpoint/applications
184
185
  */
185
186
  interface APIGroupedApplicationBackups {
186
187
  app_id: SnowFlake;
@@ -188,7 +189,7 @@ interface APIGroupedApplicationBackups {
188
189
  backups: APIApplicationBackup[];
189
190
  }
190
191
  /**
191
- * @see https://docs.vertracloud.com/api-reference/endpoint/applications
192
+ * @see https://docs.vertracloud.app/api-reference/endpoint/applications
192
193
  */
193
194
  interface APIApplicationConfig {
194
195
  NAME: string;
@@ -201,7 +202,7 @@ interface APIApplicationConfig {
201
202
  SUBDOMAIN?: string;
202
203
  }
203
204
  /**
204
- * @see https://docs.vertracloud.com/api-reference/endpoint/applications
205
+ * @see https://docs.vertracloud.app/api-reference/endpoint/applications
205
206
  */
206
207
  interface APIApplicationEnvironment {
207
208
  id: string;
@@ -31,7 +31,9 @@ __export(application_exports, {
31
31
  });
32
32
  module.exports = __toCommonJS(application_exports);
33
33
  var ApplicationLanguage = {
34
- NODEJS: "nodejs",
34
+ JAVASCRIPT: "javascript",
35
+ TYPESCRIPT: "typescript",
36
+ BUN: "bun",
35
37
  PYTHON: "python"
36
38
  };
37
39
  var ApplicationStatus = {
@@ -1 +1 @@
1
- {"version":3,"sources":["application.ts"],"sourcesContent":["import type { ISODateString, SnowFlake, UserPlan } 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: 1,\n\tUSA_2: 2,\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\towner_plan_id: UserPlan; // Owner App Plan\n\tlanguage: ApplicationLanguage;\n\tram: number;\n\tstatus: ApplicationStatus;\n\tsubdomain: string | null; // example: \"my-app.vertraweb.com\"\n\tcustom_domain: string | null; // example: \"my-app.com.br\"\n\tlast_commit: ISODateString;\n\tlast_backup: ISODateString | null;\n\tcreated_at: ISODateString;\n\tupdated_at: ISODateString;\n}\n\n/**\n * @see https://docs.vertracloud.com/api-reference/endpoint/applications\n */\nexport interface APIApplicationNetwork {\n\ttotal: string;\n\tnow: string;\n}\n\n/**\n * @see https://docs.vertracloud.com/api-reference/endpoint/applications\n */\nexport interface APIApplicationActivity {\n\tmessage: string;\n\ttimestamp: ISODateString;\n}\n\n/**\n * @see https://docs.vertracloud.com/api-reference/endpoint/applications\n */\nexport interface APIApplicationStatus {\n\tcpu: string;\n\tram: string;\n\tstatus: ApplicationStatus;\n\trunning: boolean;\n\tstorage: string;\n\tnetwork: APIApplicationNetwork;\n\tuptime: number;\n\tcreated_at: ISODateString;\n\tupdated_at: ISODateString;\n}\n\n/**\n * @see https://docs.vertracloud.com/api-reference/endpoint/applications\n */\nexport interface APIApplicationStatusShort {\n\tid: SnowFlake;\n\tcpu: string;\n\tram: string;\n\trunning: boolean;\n}\n\n/**\n * @see https://docs.vertracloud.com/api-reference/endpoint/applications\n */\nexport interface APIApplicationMetric {\n\tcpu: number;\n\tram: number;\n\tstorage: number;\n\tdate: ISODateString;\n\tnetwork: number[];\n}\n\n/**\n * @see https://docs.vertracloud.com/api-reference/endpoint/applications\n */\nexport interface APIApplicationCommit {\n\tid: SnowFlake;\n\tauthor_id: SnowFlake;\n\tmessage: string;\n\tversion: string;\n\tstatus: ApplicationCommitStatus;\n\tsize: string;\n\tdate: ISODateString;\n}\n\n/**\n * @see https://docs.vertracloud.com/api-reference/endpoint/applications\n */\nexport interface APIApplicationBackup {\n\tid: SnowFlake;\n\tapp_id: SnowFlake;\n\tauthor_id: SnowFlake | null;\n\tsize: string;\n\tdate: ISODateString;\n}\n\n/**\n * @see https://docs.vertracloud.com/api-reference/endpoint/applications\n */\nexport interface APIGroupedApplicationBackups {\n\tapp_id: SnowFlake;\n\tapp_name: string | null;\n\tbackups: APIApplicationBackup[];\n}\n\n/**\n * @see https://docs.vertracloud.com/api-reference/endpoint/applications\n */\nexport interface APIApplicationConfig {\n\tNAME: string;\n\tMEMORY: number;\n\tMAIN: string;\n\tVERSION: ApplicationVersion;\n\tDESCRIPTION?: string;\n\tAUTORESTART?: boolean;\n\tSTART?: string;\n\tSUBDOMAIN?: string;\n}\n\n/**\n * @see https://docs.vertracloud.com/api-reference/endpoint/applications\n */\nexport interface APIApplicationEnvironment {\n\tid: string;\n\tkey: string;\n\tvalue: string;\n\tnote: string | null;\n\tcreated_at: ISODateString;\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAMO,IAAM,sBAAsB;AAAA,EAClC,QAAQ;AAAA,EACR,QAAQ;AACT;AAMO,IAAM,oBAAoB;AAAA,EAChC,IAAI;AAAA,EACJ,MAAM;AACP;AAMO,IAAM,0BAA0B;AAAA,EACtC,SAAS;AAAA,EACT,WAAW;AAAA,EACX,WAAW;AAAA,EACX,QAAQ;AACT;AAMO,IAAM,qBAAqB;AAAA,EACjC,OAAO;AAAA,EACP,OAAO;AACR;AAMO,IAAM,kBAAkB;AAAA,EAC9B,KAAK;AAAA,EACL,SAAS;AACV;AAeO,IAAM,sBAAsB;AAAA,EAClC,MAAM;AAAA,EACN,WAAW;AACZ;AAMO,IAAM,qBAAqB;AAAA,EACjC,aAAa;AAAA,EACb,QAAQ;AACT;AAMO,IAAM,6BAA6B;AAAA,EACzC,QAAQ;AACT;","names":[]}
1
+ {"version":3,"sources":["application.ts"],"sourcesContent":["import type { ISODateString, SnowFlake, UserPlan } from \"../../v1\";\n\n/**\n * @see https://docs.vertracloud.app/api-reference/endpoint/applications\n */\nexport type ApplicationLanguage =\n\t| \"javascript\"\n\t| \"typescript\"\n\t| \"bun\"\n\t| \"python\";\nexport const ApplicationLanguage = {\n\tJAVASCRIPT: \"javascript\",\n\tTYPESCRIPT: \"typescript\",\n\tBUN: \"bun\",\n\tPYTHON: \"python\",\n} as const;\n\n/**\n * @see https://docs.vertracloud.app/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.app/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.app/api-reference/endpoint/applications\n */\nexport type ApplicationCluster = number;\nexport const ApplicationCluster = {\n\tUSA_1: 1,\n\tUSA_2: 2,\n} as const;\n\n/**\n * @see https://docs.vertracloud.app/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.app/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.app/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.app/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.app/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.app/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.app/api-reference/endpoint/applications\n */\nexport interface APIApplicationFileContent {\n\ttype: ApplicationFileContentType;\n\tdata: number[];\n}\n\n/**\n * @see https://docs.vertracloud.app/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\towner_plan_id: UserPlan; // Owner App Plan\n\tlanguage: ApplicationLanguage;\n\tram: number;\n\tstatus: ApplicationStatus;\n\tsubdomain: string | null; // example: \"my-app.vertraweb.com\"\n\tcustom_domain: string | null; // example: \"my-app.com.br\"\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.app/api-reference/endpoint/applications\n */\nexport interface APIApplicationNetwork {\n\ttotal: string;\n\tnow: string;\n}\n\n/**\n * @see https://docs.vertracloud.app/api-reference/endpoint/applications\n */\nexport interface APIApplicationActivity {\n\tmessage: string;\n\ttimestamp: ISODateString;\n}\n\n/**\n * @see https://docs.vertracloud.app/api-reference/endpoint/applications\n */\nexport interface APIApplicationStatus {\n\tid: SnowFlake;\n\tcpu: string;\n\tram: string;\n\tstatus: ApplicationStatus;\n\trunning: boolean;\n\tstorage: string;\n\tnetwork: APIApplicationNetwork;\n\tuptime: number;\n}\n\n/**\n * @see https://docs.vertracloud.app/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.app/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.app/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.app/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.app/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.app/api-reference/endpoint/applications\n */\nexport interface APIApplicationConfig {\n\tNAME: string;\n\tMEMORY: number;\n\tMAIN: string;\n\tVERSION: ApplicationVersion;\n\tDESCRIPTION?: string;\n\tAUTORESTART?: boolean;\n\tSTART?: string;\n\tSUBDOMAIN?: string;\n}\n\n/**\n * @see https://docs.vertracloud.app/api-reference/endpoint/applications\n */\nexport interface APIApplicationEnvironment {\n\tid: string;\n\tkey: string;\n\tvalue: string;\n\tnote: string | null;\n\tcreated_at: ISODateString;\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAUO,IAAM,sBAAsB;AAAA,EAClC,YAAY;AAAA,EACZ,YAAY;AAAA,EACZ,KAAK;AAAA,EACL,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,OAAO;AAAA,EACP,OAAO;AACR;AAMO,IAAM,kBAAkB;AAAA,EAC9B,KAAK;AAAA,EACL,SAAS;AACV;AAeO,IAAM,sBAAsB;AAAA,EAClC,MAAM;AAAA,EACN,WAAW;AACZ;AAMO,IAAM,qBAAqB;AAAA,EACjC,aAAa;AAAA,EACb,QAAQ;AACT;AAMO,IAAM,6BAA6B;AAAA,EACzC,QAAQ;AACT;","names":[]}
@@ -1,6 +1,8 @@
1
1
  // payloads/v1/application.ts
2
2
  var ApplicationLanguage = {
3
- NODEJS: "nodejs",
3
+ JAVASCRIPT: "javascript",
4
+ TYPESCRIPT: "typescript",
5
+ BUN: "bun",
4
6
  PYTHON: "python"
5
7
  };
6
8
  var ApplicationStatus = {
@@ -1,7 +1,7 @@
1
1
  import { ISODateString, SnowFlake, UserPlan } from '../../common/v1.js';
2
2
 
3
3
  /**
4
- * @see https://docs.vertracloud.com/api-reference/endpoint/databases
4
+ * @see https://docs.vertracloud.app/api-reference/endpoint/databases
5
5
  */
6
6
  type DatabaseType = 1 | 2 | 3;
7
7
  declare const DatabaseType: {
@@ -10,7 +10,7 @@ declare const DatabaseType: {
10
10
  readonly REDIS: 3;
11
11
  };
12
12
  /**
13
- * @see https://docs.vertracloud.com/api-reference/endpoint/users
13
+ * @see https://docs.vertracloud.app/api-reference/endpoint/users
14
14
  */
15
15
  type DatabasePlan = 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12;
16
16
  declare const DatabasePlan: {
@@ -28,7 +28,7 @@ declare const DatabasePlan: {
28
28
  readonly POSTGRESQL_10240: 12;
29
29
  };
30
30
  /**
31
- * @see https://docs.vertracloud.com/api-reference/endpoint/databases
31
+ * @see https://docs.vertracloud.app/api-reference/endpoint/databases
32
32
  */
33
33
  type DatabaseStatus = "up" | "down";
34
34
  declare const DatabaseStatus: {
@@ -36,22 +36,22 @@ declare const DatabaseStatus: {
36
36
  readonly DOWN: "down";
37
37
  };
38
38
  /**
39
- * @see https://docs.vertracloud.com/api-reference/endpoint/status
39
+ * @see https://docs.vertracloud.app/api-reference/endpoint/status
40
40
  */
41
- type DatabaseCluster = 1;
41
+ type DatabaseCluster = number;
42
42
  declare const DatabaseCluster: {
43
43
  readonly USA_1: 1;
44
44
  readonly USA_2: 2;
45
45
  };
46
46
  /**
47
- * @see https://docs.vertracloud.com/api-reference/endpoint/databases
47
+ * @see https://docs.vertracloud.app/api-reference/endpoint/databases
48
48
  */
49
49
  interface APIDatabaseActivity {
50
50
  message: string;
51
51
  timestamp: ISODateString;
52
52
  }
53
53
  /**
54
- * @see https://docs.vertracloud.com/api-reference/endpoint/databases
54
+ * @see https://docs.vertracloud.app/api-reference/endpoint/databases
55
55
  */
56
56
  interface APIDatabase {
57
57
  id: SnowFlake;
@@ -75,23 +75,24 @@ interface APIDatabase {
75
75
  last_backup: ISODateString | null;
76
76
  }
77
77
  /**
78
- * @see https://docs.vertracloud.com/api-reference/endpoint/databases
78
+ * @see https://docs.vertracloud.app/api-reference/endpoint/databases
79
79
  */
80
80
  interface APIDatabaseNetwork {
81
81
  total: string;
82
82
  now: string;
83
83
  }
84
84
  /**
85
- * @see https://docs.vertracloud.com/api-reference/endpoint/databases
85
+ * @see https://docs.vertracloud.app/api-reference/endpoint/databases
86
86
  */
87
87
  interface APIDatabaseBackup {
88
88
  message: string;
89
89
  timestamp: ISODateString;
90
90
  }
91
91
  /**
92
- * @see https://docs.vertracloud.com/api-reference/endpoint/databases
92
+ * @see https://docs.vertracloud.app/api-reference/endpoint/databases
93
93
  */
94
94
  interface APIDatabaseStatus {
95
+ id: SnowFlake;
95
96
  cpu: string;
96
97
  ram: string;
97
98
  status: DatabaseStatus;
@@ -99,11 +100,9 @@ interface APIDatabaseStatus {
99
100
  storage: string;
100
101
  network: APIDatabaseNetwork;
101
102
  uptime: number;
102
- created_at: ISODateString;
103
- updated_at: ISODateString;
104
103
  }
105
104
  /**
106
- * @see https://docs.vertracloud.com/api-reference/endpoint/databases
105
+ * @see https://docs.vertracloud.app/api-reference/endpoint/databases
107
106
  */
108
107
  interface APIDatabaseStatusShort {
109
108
  id: SnowFlake;
@@ -113,7 +112,7 @@ interface APIDatabaseStatusShort {
113
112
  running: boolean;
114
113
  }
115
114
  /**
116
- * @see https://docs.vertracloud.com/api-reference/endpoint/databases
115
+ * @see https://docs.vertracloud.app/api-reference/endpoint/databases
117
116
  */
118
117
  interface APIDatabaseMetrics {
119
118
  cpu: number;
@@ -1 +1 @@
1
- {"version":3,"sources":["database.ts"],"sourcesContent":["import type { ISODateString, SnowFlake, UserPlan } from \"../../v1\";\n\n/**\n * @see https://docs.vertracloud.com/api-reference/endpoint/databases\n */\nexport type DatabaseType = 1 | 2 | 3;\nexport const DatabaseType = {\n\tPOSTGRESQL: 1,\n\tMONGODB: 2,\n\tREDIS: 3,\n} as const;\n\n/**\n * @see https://docs.vertracloud.com/api-reference/endpoint/users\n */\nexport type DatabasePlan = 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12;\nexport const DatabasePlan = {\n\tREDIS_128: 1,\n\tREDIS_256: 2,\n\tREDIS_512: 3,\n\tREDIS_1024: 4,\n\tMONGODB_1024: 5,\n\tMONGODB_2048: 6,\n\tMONGODB_5120: 7,\n\tMONGODB_10240: 8,\n\tPOSTGRESQL_1024: 9,\n\tPOSTGRESQL_2048: 10,\n\tPOSTGRESQL_5120: 11,\n\tPOSTGRESQL_10240: 12,\n} as const;\n\n/**\n * @see https://docs.vertracloud.com/api-reference/endpoint/databases\n */\nexport type DatabaseStatus = \"up\" | \"down\";\nexport const DatabaseStatus = {\n\tUP: \"up\",\n\tDOWN: \"down\",\n} as const;\n\n/**\n * @see https://docs.vertracloud.com/api-reference/endpoint/status\n */\nexport type DatabaseCluster = 1;\nexport const DatabaseCluster = {\n\tUSA_1: 1,\n\tUSA_2: 2,\n} as const;\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\ttype: DatabaseType;\n\tduration: number;\n\tname: string;\n\tdescription: string;\n\towner_id: SnowFlake;\n\towner_plan_id: UserPlan; // Owner App Plan\n\tplan_id: DatabasePlan;\n\tstatus: DatabaseStatus;\n\tstorage: number;\n\tram: number;\n\thost: string; // example: \"vertra-cloud-<type>-<dbId>.vertraweb.app\"\n\tport: number;\n\tcreated_at: ISODateString;\n\tupdated_at: ISODateString;\n\tpurchased_at: ISODateString;\n\texpires_at: ISODateString;\n\tlast_backup: ISODateString | null;\n}\n\n/**\n * @see https://docs.vertracloud.com/api-reference/endpoint/databases\n */\nexport interface APIDatabaseNetwork {\n\ttotal: string;\n\tnow: string;\n}\n\n/**\n * @see https://docs.vertracloud.com/api-reference/endpoint/databases\n */\nexport interface APIDatabaseBackup {\n\tmessage: string;\n\ttimestamp: ISODateString;\n}\n\n/**\n * @see https://docs.vertracloud.com/api-reference/endpoint/databases\n */\nexport interface APIDatabaseStatus {\n\tcpu: string;\n\tram: string;\n\tstatus: DatabaseStatus;\n\trunning: boolean;\n\tstorage: string;\n\tnetwork: APIDatabaseNetwork;\n\tuptime: number;\n\tcreated_at: ISODateString;\n\tupdated_at: ISODateString;\n}\n\n/**\n * @see https://docs.vertracloud.com/api-reference/endpoint/databases\n */\nexport interface APIDatabaseStatusShort {\n\tid: SnowFlake;\n\tcpu: string;\n\tram: string;\n\tstorage: string;\n\trunning: boolean;\n}\n\n/**\n * @see https://docs.vertracloud.com/api-reference/endpoint/databases\n */\nexport interface APIDatabaseMetrics {\n\tcpu: number;\n\tram: number;\n\tstorage: number;\n\tdate: ISODateString;\n\tnetwork: number[];\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAMO,IAAM,eAAe;AAAA,EAC3B,YAAY;AAAA,EACZ,SAAS;AAAA,EACT,OAAO;AACR;AAMO,IAAM,eAAe;AAAA,EAC3B,WAAW;AAAA,EACX,WAAW;AAAA,EACX,WAAW;AAAA,EACX,YAAY;AAAA,EACZ,cAAc;AAAA,EACd,cAAc;AAAA,EACd,cAAc;AAAA,EACd,eAAe;AAAA,EACf,iBAAiB;AAAA,EACjB,iBAAiB;AAAA,EACjB,iBAAiB;AAAA,EACjB,kBAAkB;AACnB;AAMO,IAAM,iBAAiB;AAAA,EAC7B,IAAI;AAAA,EACJ,MAAM;AACP;AAMO,IAAM,kBAAkB;AAAA,EAC9B,OAAO;AAAA,EACP,OAAO;AACR;","names":[]}
1
+ {"version":3,"sources":["database.ts"],"sourcesContent":["import type { ISODateString, SnowFlake, UserPlan } from \"../../v1\";\n\n/**\n * @see https://docs.vertracloud.app/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.app/api-reference/endpoint/users\n */\nexport type DatabasePlan = 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12;\nexport const DatabasePlan = {\n\tREDIS_128: 1,\n\tREDIS_256: 2,\n\tREDIS_512: 3,\n\tREDIS_1024: 4,\n\tMONGODB_1024: 5,\n\tMONGODB_2048: 6,\n\tMONGODB_5120: 7,\n\tMONGODB_10240: 8,\n\tPOSTGRESQL_1024: 9,\n\tPOSTGRESQL_2048: 10,\n\tPOSTGRESQL_5120: 11,\n\tPOSTGRESQL_10240: 12,\n} as const;\n\n/**\n * @see https://docs.vertracloud.app/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.app/api-reference/endpoint/status\n */\nexport type DatabaseCluster = number;\nexport const DatabaseCluster = {\n\tUSA_1: 1,\n\tUSA_2: 2,\n} as const;\n\n/**\n * @see https://docs.vertracloud.app/api-reference/endpoint/databases\n */\nexport interface APIDatabaseActivity {\n\tmessage: string;\n\ttimestamp: ISODateString;\n}\n\n/**\n * @see https://docs.vertracloud.app/api-reference/endpoint/databases\n */\nexport interface APIDatabase {\n\tid: SnowFlake;\n\tcluster: DatabaseCluster;\n\ttype: DatabaseType;\n\tduration: number;\n\tname: string;\n\tdescription: string;\n\towner_id: SnowFlake;\n\towner_plan_id: UserPlan; // Owner App Plan\n\tplan_id: DatabasePlan;\n\tstatus: DatabaseStatus;\n\tstorage: number;\n\tram: number;\n\thost: string; // example: \"vertra-cloud-<type>-<dbId>.vertraweb.app\"\n\tport: number;\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.app/api-reference/endpoint/databases\n */\nexport interface APIDatabaseNetwork {\n\ttotal: string;\n\tnow: string;\n}\n\n/**\n * @see https://docs.vertracloud.app/api-reference/endpoint/databases\n */\nexport interface APIDatabaseBackup {\n\tmessage: string;\n\ttimestamp: ISODateString;\n}\n\n/**\n * @see https://docs.vertracloud.app/api-reference/endpoint/databases\n */\nexport interface APIDatabaseStatus {\n\tid: SnowFlake;\n\tcpu: string;\n\tram: string;\n\tstatus: DatabaseStatus;\n\trunning: boolean;\n\tstorage: string;\n\tnetwork: APIDatabaseNetwork;\n\tuptime: number;\n}\n\n/**\n * @see https://docs.vertracloud.app/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.app/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;AAAA;AAMO,IAAM,eAAe;AAAA,EAC3B,YAAY;AAAA,EACZ,SAAS;AAAA,EACT,OAAO;AACR;AAMO,IAAM,eAAe;AAAA,EAC3B,WAAW;AAAA,EACX,WAAW;AAAA,EACX,WAAW;AAAA,EACX,YAAY;AAAA,EACZ,cAAc;AAAA,EACd,cAAc;AAAA,EACd,cAAc;AAAA,EACd,eAAe;AAAA,EACf,iBAAiB;AAAA,EACjB,iBAAiB;AAAA,EACjB,iBAAiB;AAAA,EACjB,kBAAkB;AACnB;AAMO,IAAM,iBAAiB;AAAA,EAC7B,IAAI;AAAA,EACJ,MAAM;AACP;AAMO,IAAM,kBAAkB;AAAA,EAC9B,OAAO;AAAA,EACP,OAAO;AACR;","names":[]}
@@ -41,7 +41,9 @@ module.exports = __toCommonJS(v1_exports);
41
41
 
42
42
  // payloads/v1/application.ts
43
43
  var ApplicationLanguage = {
44
- NODEJS: "nodejs",
44
+ JAVASCRIPT: "javascript",
45
+ TYPESCRIPT: "typescript",
46
+ BUN: "bun",
45
47
  PYTHON: "python"
46
48
  };
47
49
  var ApplicationStatus = {
@@ -1 +1 @@
1
- {"version":3,"sources":["index.ts","application.ts","database.ts","organization.ts","activity.ts","status.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, UserPlan } 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: 1,\n\tUSA_2: 2,\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\towner_plan_id: UserPlan; // Owner App Plan\n\tlanguage: ApplicationLanguage;\n\tram: number;\n\tstatus: ApplicationStatus;\n\tsubdomain: string | null; // example: \"my-app.vertraweb.com\"\n\tcustom_domain: string | null; // example: \"my-app.com.br\"\n\tlast_commit: ISODateString;\n\tlast_backup: ISODateString | null;\n\tcreated_at: ISODateString;\n\tupdated_at: ISODateString;\n}\n\n/**\n * @see https://docs.vertracloud.com/api-reference/endpoint/applications\n */\nexport interface APIApplicationNetwork {\n\ttotal: string;\n\tnow: string;\n}\n\n/**\n * @see https://docs.vertracloud.com/api-reference/endpoint/applications\n */\nexport interface APIApplicationActivity {\n\tmessage: string;\n\ttimestamp: ISODateString;\n}\n\n/**\n * @see https://docs.vertracloud.com/api-reference/endpoint/applications\n */\nexport interface APIApplicationStatus {\n\tcpu: string;\n\tram: string;\n\tstatus: ApplicationStatus;\n\trunning: boolean;\n\tstorage: string;\n\tnetwork: APIApplicationNetwork;\n\tuptime: number;\n\tcreated_at: ISODateString;\n\tupdated_at: ISODateString;\n}\n\n/**\n * @see https://docs.vertracloud.com/api-reference/endpoint/applications\n */\nexport interface APIApplicationStatusShort {\n\tid: SnowFlake;\n\tcpu: string;\n\tram: string;\n\trunning: boolean;\n}\n\n/**\n * @see https://docs.vertracloud.com/api-reference/endpoint/applications\n */\nexport interface APIApplicationMetric {\n\tcpu: number;\n\tram: number;\n\tstorage: number;\n\tdate: ISODateString;\n\tnetwork: number[];\n}\n\n/**\n * @see https://docs.vertracloud.com/api-reference/endpoint/applications\n */\nexport interface APIApplicationCommit {\n\tid: SnowFlake;\n\tauthor_id: SnowFlake;\n\tmessage: string;\n\tversion: string;\n\tstatus: ApplicationCommitStatus;\n\tsize: string;\n\tdate: ISODateString;\n}\n\n/**\n * @see https://docs.vertracloud.com/api-reference/endpoint/applications\n */\nexport interface APIApplicationBackup {\n\tid: SnowFlake;\n\tapp_id: SnowFlake;\n\tauthor_id: SnowFlake | null;\n\tsize: string;\n\tdate: ISODateString;\n}\n\n/**\n * @see https://docs.vertracloud.com/api-reference/endpoint/applications\n */\nexport interface APIGroupedApplicationBackups {\n\tapp_id: SnowFlake;\n\tapp_name: string | null;\n\tbackups: APIApplicationBackup[];\n}\n\n/**\n * @see https://docs.vertracloud.com/api-reference/endpoint/applications\n */\nexport interface APIApplicationConfig {\n\tNAME: string;\n\tMEMORY: number;\n\tMAIN: string;\n\tVERSION: ApplicationVersion;\n\tDESCRIPTION?: string;\n\tAUTORESTART?: boolean;\n\tSTART?: string;\n\tSUBDOMAIN?: string;\n}\n\n/**\n * @see https://docs.vertracloud.com/api-reference/endpoint/applications\n */\nexport interface APIApplicationEnvironment {\n\tid: string;\n\tkey: string;\n\tvalue: string;\n\tnote: string | null;\n\tcreated_at: ISODateString;\n}\n","import type { ISODateString, SnowFlake, UserPlan } from \"../../v1\";\n\n/**\n * @see https://docs.vertracloud.com/api-reference/endpoint/databases\n */\nexport type DatabaseType = 1 | 2 | 3;\nexport const DatabaseType = {\n\tPOSTGRESQL: 1,\n\tMONGODB: 2,\n\tREDIS: 3,\n} as const;\n\n/**\n * @see https://docs.vertracloud.com/api-reference/endpoint/users\n */\nexport type DatabasePlan = 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12;\nexport const DatabasePlan = {\n\tREDIS_128: 1,\n\tREDIS_256: 2,\n\tREDIS_512: 3,\n\tREDIS_1024: 4,\n\tMONGODB_1024: 5,\n\tMONGODB_2048: 6,\n\tMONGODB_5120: 7,\n\tMONGODB_10240: 8,\n\tPOSTGRESQL_1024: 9,\n\tPOSTGRESQL_2048: 10,\n\tPOSTGRESQL_5120: 11,\n\tPOSTGRESQL_10240: 12,\n} as const;\n\n/**\n * @see https://docs.vertracloud.com/api-reference/endpoint/databases\n */\nexport type DatabaseStatus = \"up\" | \"down\";\nexport const DatabaseStatus = {\n\tUP: \"up\",\n\tDOWN: \"down\",\n} as const;\n\n/**\n * @see https://docs.vertracloud.com/api-reference/endpoint/status\n */\nexport type DatabaseCluster = 1;\nexport const DatabaseCluster = {\n\tUSA_1: 1,\n\tUSA_2: 2,\n} as const;\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\ttype: DatabaseType;\n\tduration: number;\n\tname: string;\n\tdescription: string;\n\towner_id: SnowFlake;\n\towner_plan_id: UserPlan; // Owner App Plan\n\tplan_id: DatabasePlan;\n\tstatus: DatabaseStatus;\n\tstorage: number;\n\tram: number;\n\thost: string; // example: \"vertra-cloud-<type>-<dbId>.vertraweb.app\"\n\tport: number;\n\tcreated_at: ISODateString;\n\tupdated_at: ISODateString;\n\tpurchased_at: ISODateString;\n\texpires_at: ISODateString;\n\tlast_backup: ISODateString | null;\n}\n\n/**\n * @see https://docs.vertracloud.com/api-reference/endpoint/databases\n */\nexport interface APIDatabaseNetwork {\n\ttotal: string;\n\tnow: string;\n}\n\n/**\n * @see https://docs.vertracloud.com/api-reference/endpoint/databases\n */\nexport interface APIDatabaseBackup {\n\tmessage: string;\n\ttimestamp: ISODateString;\n}\n\n/**\n * @see https://docs.vertracloud.com/api-reference/endpoint/databases\n */\nexport interface APIDatabaseStatus {\n\tcpu: string;\n\tram: string;\n\tstatus: DatabaseStatus;\n\trunning: boolean;\n\tstorage: string;\n\tnetwork: APIDatabaseNetwork;\n\tuptime: number;\n\tcreated_at: ISODateString;\n\tupdated_at: ISODateString;\n}\n\n/**\n * @see https://docs.vertracloud.com/api-reference/endpoint/databases\n */\nexport interface APIDatabaseStatusShort {\n\tid: SnowFlake;\n\tcpu: string;\n\tram: string;\n\tstorage: string;\n\trunning: boolean;\n}\n\n/**\n * @see https://docs.vertracloud.com/api-reference/endpoint/databases\n */\nexport interface APIDatabaseMetrics {\n\tcpu: number;\n\tram: number;\n\tstorage: number;\n\tdate: ISODateString;\n\tnetwork: number[];\n}\n","import type { ISODateString, SnowFlake, UserPlan } 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\tplan_id: UserPlan;\n\tmembers: APIOrganizationMember[];\n\tcreated_at: ISODateString;\n\tupdated_at: ISODateString;\n}\n\n/**\n * @see https://docs.vertracloud.com/api-reference/endpoint/organizations\n */\nexport interface APIOrganizationInfoResponse extends APIOrganization {\n\tapplications: APIApplication[];\n\tdatabases: APIDatabase[];\n}\n","import type { ISODateString, SnowFlake } from \"../../v1\";\n\n/**\n * @see https://docs.vertracloud.com/api-reference/endpoint/activities\n */\nexport type ActivityStatus = \"success\" | \"warning\" | \"error\" | \"info\";\nexport const ActivityStatus = {\n\tSuccess: \"success\",\n\tWarning: \"warning\",\n\tError: \"error\",\n\tInfo: \"info\",\n} as const;\n\n/**\n * @see https://docs.vertracloud.com/api-reference/endpoint/activities\n */\nexport type ActivityTargetType = \"app\" | \"database\" | \"organization\" | \"audit\";\nexport const ActivityTargetType = {\n\tApp: \"app\",\n\tDatabase: \"database\",\n\tOrganization: \"organization\",\n\tAudit: \"audit\",\n} as const;\n\n/**\n * @see https://docs.vertracloud.com/api-reference/endpoint/activities\n */\nexport interface APIActivity {\n\tid: SnowFlake;\n\tstatus: ActivityStatus;\n\ttarget_id: string;\n\ttarget_type: ActivityTargetType;\n\tauthor_id: SnowFlake | null;\n\ttitle: string;\n\tmessage: string;\n\ttimestamp: ISODateString;\n}\n","/**\n * @see https://docs.vertracloud.com/api-reference/endpoint/status\n */\nexport type StatusType = \"healthy\" | \"degraded\" | \"unknown\";\nexport const StatusType = {\n\tHEALTHY: \"healthy\",\n\tDEGRADED: \"degraded\",\n\tUNKNOWN: \"unknown\",\n} as const;\n\n/**\n * @see https://docs.vertracloud.com/api-reference/endpoint/status\n */\nexport interface APIStatus {\n\tstatus: StatusType;\n\tmessage: string;\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;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,OAAO;AAAA,EACP,OAAO;AACR;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;;;AC5EO,IAAM,eAAe;AAAA,EAC3B,YAAY;AAAA,EACZ,SAAS;AAAA,EACT,OAAO;AACR;AAMO,IAAM,eAAe;AAAA,EAC3B,WAAW;AAAA,EACX,WAAW;AAAA,EACX,WAAW;AAAA,EACX,YAAY;AAAA,EACZ,cAAc;AAAA,EACd,cAAc;AAAA,EACd,cAAc;AAAA,EACd,eAAe;AAAA,EACf,iBAAiB;AAAA,EACjB,iBAAiB;AAAA,EACjB,iBAAiB;AAAA,EACjB,kBAAkB;AACnB;AAMO,IAAM,iBAAiB;AAAA,EAC7B,IAAI;AAAA,EACJ,MAAM;AACP;AAMO,IAAM,kBAAkB;AAAA,EAC9B,OAAO;AAAA,EACP,OAAO;AACR;;;ACnCO,IAAM,yBAAyB;AAAA,EACrC,OAAO;AAAA,EACP,OAAO;AAAA,EACP,WAAW;AAAA,EACX,UAAU;AAAA,EACV,QAAQ;AACT;;;ACZO,IAAM,iBAAiB;AAAA,EAC7B,SAAS;AAAA,EACT,SAAS;AAAA,EACT,OAAO;AAAA,EACP,MAAM;AACP;AAMO,IAAM,qBAAqB;AAAA,EACjC,KAAK;AAAA,EACL,UAAU;AAAA,EACV,cAAc;AAAA,EACd,OAAO;AACR;;;AClBO,IAAM,aAAa;AAAA,EACzB,SAAS;AAAA,EACT,UAAU;AAAA,EACV,SAAS;AACV;","names":[]}
1
+ {"version":3,"sources":["index.ts","application.ts","database.ts","organization.ts","activity.ts","status.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, UserPlan } from \"../../v1\";\n\n/**\n * @see https://docs.vertracloud.app/api-reference/endpoint/applications\n */\nexport type ApplicationLanguage =\n\t| \"javascript\"\n\t| \"typescript\"\n\t| \"bun\"\n\t| \"python\";\nexport const ApplicationLanguage = {\n\tJAVASCRIPT: \"javascript\",\n\tTYPESCRIPT: \"typescript\",\n\tBUN: \"bun\",\n\tPYTHON: \"python\",\n} as const;\n\n/**\n * @see https://docs.vertracloud.app/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.app/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.app/api-reference/endpoint/applications\n */\nexport type ApplicationCluster = number;\nexport const ApplicationCluster = {\n\tUSA_1: 1,\n\tUSA_2: 2,\n} as const;\n\n/**\n * @see https://docs.vertracloud.app/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.app/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.app/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.app/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.app/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.app/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.app/api-reference/endpoint/applications\n */\nexport interface APIApplicationFileContent {\n\ttype: ApplicationFileContentType;\n\tdata: number[];\n}\n\n/**\n * @see https://docs.vertracloud.app/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\towner_plan_id: UserPlan; // Owner App Plan\n\tlanguage: ApplicationLanguage;\n\tram: number;\n\tstatus: ApplicationStatus;\n\tsubdomain: string | null; // example: \"my-app.vertraweb.com\"\n\tcustom_domain: string | null; // example: \"my-app.com.br\"\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.app/api-reference/endpoint/applications\n */\nexport interface APIApplicationNetwork {\n\ttotal: string;\n\tnow: string;\n}\n\n/**\n * @see https://docs.vertracloud.app/api-reference/endpoint/applications\n */\nexport interface APIApplicationActivity {\n\tmessage: string;\n\ttimestamp: ISODateString;\n}\n\n/**\n * @see https://docs.vertracloud.app/api-reference/endpoint/applications\n */\nexport interface APIApplicationStatus {\n\tid: SnowFlake;\n\tcpu: string;\n\tram: string;\n\tstatus: ApplicationStatus;\n\trunning: boolean;\n\tstorage: string;\n\tnetwork: APIApplicationNetwork;\n\tuptime: number;\n}\n\n/**\n * @see https://docs.vertracloud.app/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.app/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.app/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.app/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.app/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.app/api-reference/endpoint/applications\n */\nexport interface APIApplicationConfig {\n\tNAME: string;\n\tMEMORY: number;\n\tMAIN: string;\n\tVERSION: ApplicationVersion;\n\tDESCRIPTION?: string;\n\tAUTORESTART?: boolean;\n\tSTART?: string;\n\tSUBDOMAIN?: string;\n}\n\n/**\n * @see https://docs.vertracloud.app/api-reference/endpoint/applications\n */\nexport interface APIApplicationEnvironment {\n\tid: string;\n\tkey: string;\n\tvalue: string;\n\tnote: string | null;\n\tcreated_at: ISODateString;\n}\n","import type { ISODateString, SnowFlake, UserPlan } from \"../../v1\";\n\n/**\n * @see https://docs.vertracloud.app/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.app/api-reference/endpoint/users\n */\nexport type DatabasePlan = 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12;\nexport const DatabasePlan = {\n\tREDIS_128: 1,\n\tREDIS_256: 2,\n\tREDIS_512: 3,\n\tREDIS_1024: 4,\n\tMONGODB_1024: 5,\n\tMONGODB_2048: 6,\n\tMONGODB_5120: 7,\n\tMONGODB_10240: 8,\n\tPOSTGRESQL_1024: 9,\n\tPOSTGRESQL_2048: 10,\n\tPOSTGRESQL_5120: 11,\n\tPOSTGRESQL_10240: 12,\n} as const;\n\n/**\n * @see https://docs.vertracloud.app/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.app/api-reference/endpoint/status\n */\nexport type DatabaseCluster = number;\nexport const DatabaseCluster = {\n\tUSA_1: 1,\n\tUSA_2: 2,\n} as const;\n\n/**\n * @see https://docs.vertracloud.app/api-reference/endpoint/databases\n */\nexport interface APIDatabaseActivity {\n\tmessage: string;\n\ttimestamp: ISODateString;\n}\n\n/**\n * @see https://docs.vertracloud.app/api-reference/endpoint/databases\n */\nexport interface APIDatabase {\n\tid: SnowFlake;\n\tcluster: DatabaseCluster;\n\ttype: DatabaseType;\n\tduration: number;\n\tname: string;\n\tdescription: string;\n\towner_id: SnowFlake;\n\towner_plan_id: UserPlan; // Owner App Plan\n\tplan_id: DatabasePlan;\n\tstatus: DatabaseStatus;\n\tstorage: number;\n\tram: number;\n\thost: string; // example: \"vertra-cloud-<type>-<dbId>.vertraweb.app\"\n\tport: number;\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.app/api-reference/endpoint/databases\n */\nexport interface APIDatabaseNetwork {\n\ttotal: string;\n\tnow: string;\n}\n\n/**\n * @see https://docs.vertracloud.app/api-reference/endpoint/databases\n */\nexport interface APIDatabaseBackup {\n\tmessage: string;\n\ttimestamp: ISODateString;\n}\n\n/**\n * @see https://docs.vertracloud.app/api-reference/endpoint/databases\n */\nexport interface APIDatabaseStatus {\n\tid: SnowFlake;\n\tcpu: string;\n\tram: string;\n\tstatus: DatabaseStatus;\n\trunning: boolean;\n\tstorage: string;\n\tnetwork: APIDatabaseNetwork;\n\tuptime: number;\n}\n\n/**\n * @see https://docs.vertracloud.app/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.app/api-reference/endpoint/databases\n */\nexport interface APIDatabaseMetrics {\n\tcpu: number;\n\tram: number;\n\tstorage: number;\n\tdate: ISODateString;\n\tnetwork: number[];\n}\n","import type { ISODateString, SnowFlake, UserPlan } from \"../../v1\";\nimport type { APIApplication, APIDatabase } from \"./index\";\n\n/**\n * @see https://docs.vertracloud.app/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.app/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.app/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\tplan_id: UserPlan;\n\tmembers: APIOrganizationMember[];\n\tcreated_at: ISODateString;\n\tupdated_at: ISODateString;\n}\n\n/**\n * @see https://docs.vertracloud.app/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.app/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.app/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.app/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.app/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.app/api-reference/endpoint/status\n */\nexport interface APIStatus {\n\tstatus: StatusType;\n\tmessage: string;\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;;ACUO,IAAM,sBAAsB;AAAA,EAClC,YAAY;AAAA,EACZ,YAAY;AAAA,EACZ,KAAK;AAAA,EACL,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,OAAO;AAAA,EACP,OAAO;AACR;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;;;AClFO,IAAM,eAAe;AAAA,EAC3B,YAAY;AAAA,EACZ,SAAS;AAAA,EACT,OAAO;AACR;AAMO,IAAM,eAAe;AAAA,EAC3B,WAAW;AAAA,EACX,WAAW;AAAA,EACX,WAAW;AAAA,EACX,YAAY;AAAA,EACZ,cAAc;AAAA,EACd,cAAc;AAAA,EACd,cAAc;AAAA,EACd,eAAe;AAAA,EACf,iBAAiB;AAAA,EACjB,iBAAiB;AAAA,EACjB,iBAAiB;AAAA,EACjB,kBAAkB;AACnB;AAMO,IAAM,iBAAiB;AAAA,EAC7B,IAAI;AAAA,EACJ,MAAM;AACP;AAMO,IAAM,kBAAkB;AAAA,EAC9B,OAAO;AAAA,EACP,OAAO;AACR;;;ACnCO,IAAM,yBAAyB;AAAA,EACrC,OAAO;AAAA,EACP,OAAO;AAAA,EACP,WAAW;AAAA,EACX,UAAU;AAAA,EACV,QAAQ;AACT;;;ACZO,IAAM,iBAAiB;AAAA,EAC7B,SAAS;AAAA,EACT,SAAS;AAAA,EACT,OAAO;AAAA,EACP,MAAM;AACP;AAMO,IAAM,qBAAqB;AAAA,EACjC,KAAK;AAAA,EACL,UAAU;AAAA,EACV,cAAc;AAAA,EACd,OAAO;AACR;;;AClBO,IAAM,aAAa;AAAA,EACzB,SAAS;AAAA,EACT,UAAU;AAAA,EACV,SAAS;AACV;","names":[]}
@@ -1,6 +1,8 @@
1
1
  // payloads/v1/application.ts
2
2
  var ApplicationLanguage = {
3
- NODEJS: "nodejs",
3
+ JAVASCRIPT: "javascript",
4
+ TYPESCRIPT: "typescript",
5
+ BUN: "bun",
4
6
  PYTHON: "python"
5
7
  };
6
8
  var ApplicationStatus = {
@@ -3,7 +3,7 @@ import { APIApplication } from './application.js';
3
3
  import { APIDatabase } from './database.js';
4
4
 
5
5
  /**
6
- * @see https://docs.vertracloud.com/api-reference/endpoint/organizations
6
+ * @see https://docs.vertracloud.app/api-reference/endpoint/organizations
7
7
  */
8
8
  type OrganizationMemberRole = "owner" | "admin" | "developer" | "operator" | "viewer";
9
9
  declare const OrganizationMemberRole: {
@@ -14,7 +14,7 @@ declare const OrganizationMemberRole: {
14
14
  readonly VIEWER: "viewer";
15
15
  };
16
16
  /**
17
- * @see https://docs.vertracloud.com/api-reference/endpoint/organizations
17
+ * @see https://docs.vertracloud.app/api-reference/endpoint/organizations
18
18
  */
19
19
  interface APIOrganizationMember {
20
20
  user_id: string;
@@ -22,7 +22,7 @@ interface APIOrganizationMember {
22
22
  joined_at: ISODateString;
23
23
  }
24
24
  /**
25
- * @see https://docs.vertracloud.com/api-reference/endpoint/organizations
25
+ * @see https://docs.vertracloud.app/api-reference/endpoint/organizations
26
26
  */
27
27
  interface APIOrganization {
28
28
  id: SnowFlake;
@@ -36,7 +36,7 @@ interface APIOrganization {
36
36
  updated_at: ISODateString;
37
37
  }
38
38
  /**
39
- * @see https://docs.vertracloud.com/api-reference/endpoint/organizations
39
+ * @see https://docs.vertracloud.app/api-reference/endpoint/organizations
40
40
  */
41
41
  interface APIOrganizationInfoResponse extends APIOrganization {
42
42
  applications: APIApplication[];
@@ -1 +1 @@
1
- {"version":3,"sources":["organization.ts"],"sourcesContent":["import type { ISODateString, SnowFlake, UserPlan } 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\tplan_id: UserPlan;\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, UserPlan } from \"../../v1\";\nimport type { APIApplication, APIDatabase } from \"./index\";\n\n/**\n * @see https://docs.vertracloud.app/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.app/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.app/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\tplan_id: UserPlan;\n\tmembers: APIOrganizationMember[];\n\tcreated_at: ISODateString;\n\tupdated_at: ISODateString;\n}\n\n/**\n * @see https://docs.vertracloud.app/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,5 +1,5 @@
1
1
  /**
2
- * @see https://docs.vertracloud.com/api-reference/endpoint/status
2
+ * @see https://docs.vertracloud.app/api-reference/endpoint/status
3
3
  */
4
4
  type StatusType = "healthy" | "degraded" | "unknown";
5
5
  declare const StatusType: {
@@ -8,7 +8,7 @@ declare const StatusType: {
8
8
  readonly UNKNOWN: "unknown";
9
9
  };
10
10
  /**
11
- * @see https://docs.vertracloud.com/api-reference/endpoint/status
11
+ * @see https://docs.vertracloud.app/api-reference/endpoint/status
12
12
  */
13
13
  interface APIStatus {
14
14
  status: StatusType;
@@ -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 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
+ {"version":3,"sources":["status.ts"],"sourcesContent":["/**\n * @see https://docs.vertracloud.app/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.app/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":[]}
@@ -3,7 +3,7 @@ import { APIApplication } from './application.js';
3
3
  import { APIDatabase } from './database.js';
4
4
 
5
5
  /**
6
- * @see https://docs.vertracloud.com/api-reference/endpoint/users
6
+ * @see https://docs.vertracloud.app/api-reference/endpoint/users
7
7
  */
8
8
  interface APIUser {
9
9
  id: SnowFlake;
@@ -13,7 +13,7 @@ interface APIUser {
13
13
  updated_at: ISODateString;
14
14
  }
15
15
  /**
16
- * @see https://docs.vertracloud.com/api-reference/endpoint/users
16
+ * @see https://docs.vertracloud.app/api-reference/endpoint/users
17
17
  */
18
18
  interface APIUserInfoResponse extends APIUser {
19
19
  plan: APIUserPlan;
@@ -21,14 +21,14 @@ interface APIUserInfoResponse extends APIUser {
21
21
  databases: APIDatabase[];
22
22
  }
23
23
  /**
24
- * @see https://docs.vertracloud.com/api-reference/endpoint/users
24
+ * @see https://docs.vertracloud.app/api-reference/endpoint/users
25
25
  */
26
26
  interface APIUserPlanMemory {
27
27
  limit: number;
28
28
  used: number;
29
29
  }
30
30
  /**
31
- * @see https://docs.vertracloud.com/api-reference/endpoint/users
31
+ * @see https://docs.vertracloud.app/api-reference/endpoint/users
32
32
  */
33
33
  interface APIUserPlan {
34
34
  id: UserPlan;
@@ -38,7 +38,7 @@ interface APIUserPlan {
38
38
  memory: APIUserPlanMemory;
39
39
  }
40
40
  /**
41
- * @see https://docs.vertracloud.com/api-reference/endpoint/users
41
+ * @see https://docs.vertracloud.app/api-reference/endpoint/users
42
42
  */
43
43
  interface APIUserOrgInviteKey {
44
44
  code: SnowFlake;
@@ -1 +1 @@
1
- {"version":3,"sources":["user.ts"],"sourcesContent":["import type { ISODateString, SnowFlake, UserPlan } from \"../../v1\";\nimport type { APIApplication, APIDatabase } from \"./index\";\n\n/**\n * @see https://docs.vertracloud.com/api-reference/endpoint/users\n */\nexport interface APIUser {\n\tid: SnowFlake;\n\tname: string;\n\tplan_id: 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 APIUserInfoResponse extends APIUser {\n\tplan: APIUserPlan;\n\tapplications: APIApplication[];\n\tdatabases: APIDatabase[];\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\tduration: number;\n\tmemory: APIUserPlanMemory;\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;","names":[]}
1
+ {"version":3,"sources":["user.ts"],"sourcesContent":["import type { ISODateString, SnowFlake, UserPlan } from \"../../v1\";\nimport type { APIApplication, APIDatabase } from \"./index\";\n\n/**\n * @see https://docs.vertracloud.app/api-reference/endpoint/users\n */\nexport interface APIUser {\n\tid: SnowFlake;\n\tname: string;\n\tplan_id: UserPlan;\n\tcreated_at: ISODateString;\n\tupdated_at: ISODateString;\n}\n\n/**\n * @see https://docs.vertracloud.app/api-reference/endpoint/users\n */\nexport interface APIUserInfoResponse extends APIUser {\n\tplan: APIUserPlan;\n\tapplications: APIApplication[];\n\tdatabases: APIDatabase[];\n}\n\n/**\n * @see https://docs.vertracloud.app/api-reference/endpoint/users\n */\nexport interface APIUserPlanMemory {\n\tlimit: number;\n\tused: number;\n}\n\n/**\n * @see https://docs.vertracloud.app/api-reference/endpoint/users\n */\nexport interface APIUserPlan {\n\tid: UserPlan;\n\tname: string;\n\texpires_at: ISODateString | null;\n\tduration: number;\n\tmemory: APIUserPlanMemory;\n}\n\n/**\n * @see https://docs.vertracloud.app/api-reference/endpoint/users\n */\nexport interface APIUserOrgInviteKey {\n\tcode: SnowFlake;\n\tcreated_at: ISODateString;\n\texpire_at: ISODateString;\n}\n"],"mappings":";;;;;;;;;;;;;;;;AAAA;AAAA;","names":[]}
@@ -2,11 +2,11 @@ import { APIPayload } from '../../common/v1.js';
2
2
  import { APIActivity } from '../../payloads/v1/activity.js';
3
3
 
4
4
  /**
5
- * @see https://docs.vertracloud.com/api-reference/endpoint/activities
5
+ * @see https://docs.vertracloud.app/api-reference/endpoint/activities
6
6
  */
7
7
  type RESTGetAPIActivityResponse = APIPayload<APIActivity>;
8
8
  /**
9
- * @see https://docs.vertracloud.com/api-reference/endpoint/activities
9
+ * @see https://docs.vertracloud.app/api-reference/endpoint/activities
10
10
  */
11
11
  type RESTGetAPIActivitiesResponse = APIPayload<APIActivity[]>;
12
12
 
@@ -1 +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":[]}
1
+ {"version":3,"sources":["activity.ts"],"sourcesContent":["import type { APIActivity, APIPayload } from \"../../v1\";\n\n/**\n * @see https://docs.vertracloud.app/api-reference/endpoint/activities\n */\nexport type RESTGetAPIActivityResponse = APIPayload<APIActivity>;\n\n/**\n * @see https://docs.vertracloud.app/api-reference/endpoint/activities\n */\nexport type RESTGetAPIActivitiesResponse = APIPayload<APIActivity[]>;\n"],"mappings":";;;;;;;;;;;;;;;;AAAA;AAAA;","names":[]}
@@ -2,63 +2,63 @@ import { APIPayload } from '../../common/v1.js';
2
2
  import { APIApplication, APIApplicationStatus, APIApplicationStatusShort, APIApplicationMetric, APIApplicationCommit, APIApplicationBackup, APIGroupedApplicationBackups, APIApplicationFile, APIApplicationFileContent, APIApplicationEnvironment } from '../../payloads/v1/application.js';
3
3
 
4
4
  /**
5
- * @see https://docs.vertracloud.com/api-reference/endpoint/applications
5
+ * @see https://docs.vertracloud.app/api-reference/endpoint/applications
6
6
  */
7
7
  type RESTGetAPIApplicationResponse = APIPayload<APIApplication>;
8
8
  /**
9
- * @see https://docs.vertracloud.com/api-reference/endpoint/applications
9
+ * @see https://docs.vertracloud.app/api-reference/endpoint/applications
10
10
  */
11
11
  type RESTGetAPIApplicationStatusResponse = APIPayload<APIApplicationStatus>;
12
12
  /**
13
- * @see https://docs.vertracloud.com/api-reference/endpoint/applications
13
+ * @see https://docs.vertracloud.app/api-reference/endpoint/applications
14
14
  */
15
15
  type RESTGetAPIApplicationStatusShortResponse = APIPayload<APIApplicationStatusShort>;
16
16
  /**
17
- * @see https://docs.vertracloud.com/api-reference/endpoint/applications
17
+ * @see https://docs.vertracloud.app/api-reference/endpoint/applications
18
18
  */
19
19
  type RESTGetAPIApplicationLogsResponse = APIPayload<string>;
20
20
  /**
21
- * @see https://docs.vertracloud.com/api-reference/endpoint/applications
21
+ * @see https://docs.vertracloud.app/api-reference/endpoint/applications
22
22
  */
23
23
  type RESTGetAPIApplicationMetricsResponse = APIPayload<APIApplicationMetric[]>;
24
24
  /**
25
- * @see https://docs.vertracloud.com/api-reference/endpoint/applications
25
+ * @see https://docs.vertracloud.app/api-reference/endpoint/applications
26
26
  */
27
27
  type RESTGetAPIApplicationCommitsResponse = APIPayload<APIApplicationCommit[]>;
28
28
  /**
29
- * @see https://docs.vertracloud.com/api-reference/endpoint/applications
29
+ * @see https://docs.vertracloud.app/api-reference/endpoint/applications
30
30
  */
31
31
  type RESTGetAPIApplicationBackupsResponse = APIPayload<APIApplicationBackup[]>;
32
32
  /**
33
- * @see https://docs.vertracloud.com/api-reference/endpoint/applications
33
+ * @see https://docs.vertracloud.app/api-reference/endpoint/applications
34
34
  */
35
35
  type RESTGetAPIGroupedApplicationBackupsResponse = APIPayload<APIGroupedApplicationBackups[]>;
36
36
  /**
37
- * @see https://docs.vertracloud.com/api-reference/endpoint/applications
37
+ * @see https://docs.vertracloud.app/api-reference/endpoint/applications
38
38
  */
39
39
  type RESTGetAPIApplicationBackupResponse = APIPayload<APIApplicationBackup>;
40
40
  /**
41
- * @see https://docs.vertracloud.com/api-reference/endpoint/applications
41
+ * @see https://docs.vertracloud.app/api-reference/endpoint/applications
42
42
  */
43
43
  type RESTGetAPIApplicationFilesResponse = APIPayload<APIApplicationFile[]>;
44
44
  /**
45
- * @see https://docs.vertracloud.com/api-reference/endpoint/applications
45
+ * @see https://docs.vertracloud.app/api-reference/endpoint/applications
46
46
  */
47
47
  type RESTGetAPIApplicationFileContentResponse = APIPayload<APIApplicationFileContent>;
48
48
  /**
49
- * @see https://docs.vertracloud.com/api-reference/endpoint/applications
49
+ * @see https://docs.vertracloud.app/api-reference/endpoint/applications
50
50
  */
51
51
  type RESTGetAPIApplicationStartResponse = APIPayload<boolean>;
52
52
  /**
53
- * @see https://docs.vertracloud.com/api-reference/endpoint/applications
53
+ * @see https://docs.vertracloud.app/api-reference/endpoint/applications
54
54
  */
55
55
  type RESTGetAPIApplicationRestartResponse = APIPayload<boolean>;
56
56
  /**
57
- * @see https://docs.vertracloud.com/api-reference/endpoint/applications
57
+ * @see https://docs.vertracloud.app/api-reference/endpoint/applications
58
58
  */
59
59
  type RESTGetAPIApplicationStopResponse = APIPayload<boolean>;
60
60
  /**
61
- * @see https://docs.vertracloud.com/api-reference/endpoint/applications
61
+ * @see https://docs.vertracloud.app/api-reference/endpoint/applications
62
62
  */
63
63
  type RESTGetAPIApplicationEnvironmentResponse = APIPayload<APIApplicationEnvironment[]>;
64
64
 
@@ -1 +1 @@
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
+ {"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.app/api-reference/endpoint/applications\n */\nexport type RESTGetAPIApplicationResponse = APIPayload<APIApplication>;\n\n/**\n * @see https://docs.vertracloud.app/api-reference/endpoint/applications\n */\nexport type RESTGetAPIApplicationStatusResponse =\n\tAPIPayload<APIApplicationStatus>;\n\n/**\n * @see https://docs.vertracloud.app/api-reference/endpoint/applications\n */\nexport type RESTGetAPIApplicationStatusShortResponse =\n\tAPIPayload<APIApplicationStatusShort>;\n\n/**\n * @see https://docs.vertracloud.app/api-reference/endpoint/applications\n */\nexport type RESTGetAPIApplicationLogsResponse = APIPayload<string>;\n\n/**\n * @see https://docs.vertracloud.app/api-reference/endpoint/applications\n */\nexport type RESTGetAPIApplicationMetricsResponse = APIPayload<\n\tAPIApplicationMetric[]\n>;\n\n/**\n * @see https://docs.vertracloud.app/api-reference/endpoint/applications\n */\nexport type RESTGetAPIApplicationCommitsResponse = APIPayload<\n\tAPIApplicationCommit[]\n>;\n\n/**\n * @see https://docs.vertracloud.app/api-reference/endpoint/applications\n */\nexport type RESTGetAPIApplicationBackupsResponse = APIPayload<\n\tAPIApplicationBackup[]\n>;\n\n/**\n * @see https://docs.vertracloud.app/api-reference/endpoint/applications\n */\nexport type RESTGetAPIGroupedApplicationBackupsResponse = APIPayload<\n\tAPIGroupedApplicationBackups[]\n>;\n\n/**\n * @see https://docs.vertracloud.app/api-reference/endpoint/applications\n */\nexport type RESTGetAPIApplicationBackupResponse =\n\tAPIPayload<APIApplicationBackup>;\n\n/**\n * @see https://docs.vertracloud.app/api-reference/endpoint/applications\n */\nexport type RESTGetAPIApplicationFilesResponse = APIPayload<\n\tAPIApplicationFile[]\n>;\n\n/**\n * @see https://docs.vertracloud.app/api-reference/endpoint/applications\n */\nexport type RESTGetAPIApplicationFileContentResponse =\n\tAPIPayload<APIApplicationFileContent>;\n\n/**\n * @see https://docs.vertracloud.app/api-reference/endpoint/applications\n */\nexport type RESTGetAPIApplicationStartResponse = APIPayload<boolean>;\n\n/**\n * @see https://docs.vertracloud.app/api-reference/endpoint/applications\n */\nexport type RESTGetAPIApplicationRestartResponse = APIPayload<boolean>;\n\n/**\n * @see https://docs.vertracloud.app/api-reference/endpoint/applications\n */\nexport type RESTGetAPIApplicationStopResponse = APIPayload<boolean>;\n\n/**\n * @see https://docs.vertracloud.app/api-reference/endpoint/applications\n */\nexport type RESTGetAPIApplicationEnvironmentResponse = APIPayload<\n\tAPIApplicationEnvironment[]\n>;\n"],"mappings":";;;;;;;;;;;;;;;;AAAA;AAAA;","names":[]}
@@ -2,35 +2,35 @@ import { APIPayload } from '../../common/v1.js';
2
2
  import { APIDatabase, APIDatabaseStatus, APIDatabaseStatusShort, APIDatabaseMetrics } from '../../payloads/v1/database.js';
3
3
 
4
4
  /**
5
- * @see https://docs.vertracloud.com/api-reference/endpoint/databases
5
+ * @see https://docs.vertracloud.app/api-reference/endpoint/databases
6
6
  */
7
7
  type RESTGetAPIDatabaseResponse = APIPayload<APIDatabase>;
8
8
  /**
9
- * @see https://docs.vertracloud.com/api-reference/endpoint/databases
9
+ * @see https://docs.vertracloud.app/api-reference/endpoint/databases
10
10
  */
11
11
  type RESTGetAPIDatabaseStatusResponse = APIPayload<APIDatabaseStatus>;
12
12
  /**
13
- * @see https://docs.vertracloud.com/api-reference/endpoint/databases
13
+ * @see https://docs.vertracloud.app/api-reference/endpoint/databases
14
14
  */
15
15
  type RESTGetAPIDatabaseStatusShortResponse = APIPayload<APIDatabaseStatusShort>;
16
16
  /**
17
- * @see https://docs.vertracloud.com/api-reference/endpoint/databases
17
+ * @see https://docs.vertracloud.app/api-reference/endpoint/databases
18
18
  */
19
19
  type RESTGetAPIDatabaseLogsResponse = APIPayload<string>;
20
20
  /**
21
- * @see https://docs.vertracloud.com/api-reference/endpoint/databases
21
+ * @see https://docs.vertracloud.app/api-reference/endpoint/databases
22
22
  */
23
23
  type RESTGetAPIDatabaseMetricsResponse = APIPayload<APIDatabaseMetrics[]>;
24
24
  /**
25
- * @see https://docs.vertracloud.com/api-reference/endpoint/databases
25
+ * @see https://docs.vertracloud.app/api-reference/endpoint/databases
26
26
  */
27
27
  type RESTGetAPIDatabaseStartResponse = APIPayload<boolean>;
28
28
  /**
29
- * @see https://docs.vertracloud.com/api-reference/endpoint/databases
29
+ * @see https://docs.vertracloud.app/api-reference/endpoint/databases
30
30
  */
31
31
  type RESTGetAPIDatabaseRestartResponse = APIPayload<boolean>;
32
32
  /**
33
- * @see https://docs.vertracloud.com/api-reference/endpoint/databases
33
+ * @see https://docs.vertracloud.app/api-reference/endpoint/databases
34
34
  */
35
35
  type RESTGetAPIDatabaseStopResponse = APIPayload<boolean>;
36
36
 
@@ -1 +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":[]}
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.app/api-reference/endpoint/databases\n */\nexport type RESTGetAPIDatabaseResponse = APIPayload<APIDatabase>;\n\n/**\n * @see https://docs.vertracloud.app/api-reference/endpoint/databases\n */\nexport type RESTGetAPIDatabaseStatusResponse = APIPayload<APIDatabaseStatus>;\n\n/**\n * @see https://docs.vertracloud.app/api-reference/endpoint/databases\n */\nexport type RESTGetAPIDatabaseStatusShortResponse =\n\tAPIPayload<APIDatabaseStatusShort>;\n\n/**\n * @see https://docs.vertracloud.app/api-reference/endpoint/databases\n */\nexport type RESTGetAPIDatabaseLogsResponse = APIPayload<string>;\n\n/**\n * @see https://docs.vertracloud.app/api-reference/endpoint/databases\n */\nexport type RESTGetAPIDatabaseMetricsResponse = APIPayload<\n\tAPIDatabaseMetrics[]\n>;\n\n/**\n * @see https://docs.vertracloud.app/api-reference/endpoint/databases\n */\nexport type RESTGetAPIDatabaseStartResponse = APIPayload<boolean>;\n\n/**\n * @see https://docs.vertracloud.app/api-reference/endpoint/databases\n */\nexport type RESTGetAPIDatabaseRestartResponse = APIPayload<boolean>;\n\n/**\n * @see https://docs.vertracloud.app/api-reference/endpoint/databases\n */\nexport type RESTGetAPIDatabaseStopResponse = APIPayload<boolean>;\n"],"mappings":";;;;;;;;;;;;;;;;AAAA;AAAA;","names":[]}
@@ -4,11 +4,11 @@ import '../../payloads/v1/application.js';
4
4
  import '../../payloads/v1/database.js';
5
5
 
6
6
  /**
7
- * @see https://docs.vertracloud.com/api-reference/endpoint/organizations
7
+ * @see https://docs.vertracloud.app/api-reference/endpoint/organizations
8
8
  */
9
9
  type RESTGetAPIOrganizationResponse = APIPayload<APIOrganization>;
10
10
  /**
11
- * @see https://docs.vertracloud.com/api-reference/endpoint/organizations
11
+ * @see https://docs.vertracloud.app/api-reference/endpoint/organizations
12
12
  */
13
13
  type RESTGetAPIOrganizationInfoResponse = APIPayload<APIOrganizationInfoResponse>;
14
14
 
@@ -1 +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":[]}
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.app/api-reference/endpoint/organizations\n */\nexport type RESTGetAPIOrganizationResponse = APIPayload<APIOrganization>;\n\n/**\n * @see https://docs.vertracloud.app/api-reference/endpoint/organizations\n */\nexport type RESTGetAPIOrganizationInfoResponse =\n\tAPIPayload<APIOrganizationInfoResponse>;\n"],"mappings":";;;;;;;;;;;;;;;;AAAA;AAAA;","names":[]}
@@ -2,7 +2,7 @@ import { APIPayload } from '../../common/v1.js';
2
2
  import { APIStatus } from '../../payloads/v1/status.js';
3
3
 
4
4
  /**
5
- * @see https://docs.vertracloud.com/api-reference/endpoint/status
5
+ * @see https://docs.vertracloud.app/api-reference/endpoint/status
6
6
  */
7
7
  type RESTGetAPIStatusResponse = APIPayload<APIStatus>;
8
8
 
@@ -1 +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":[]}
1
+ {"version":3,"sources":["status.ts"],"sourcesContent":["import type { APIPayload, APIStatus } from \"../../v1\";\n\n/**\n * @see https://docs.vertracloud.app/api-reference/endpoint/status\n */\nexport type RESTGetAPIStatusResponse = APIPayload<APIStatus>;\n"],"mappings":";;;;;;;;;;;;;;;;AAAA;AAAA;","names":[]}
package/rest/v1/user.d.ts CHANGED
@@ -4,7 +4,7 @@ import '../../payloads/v1/application.js';
4
4
  import '../../payloads/v1/database.js';
5
5
 
6
6
  /**
7
- * @see https://docs.vertracloud.com/api-reference/endpoint/users
7
+ * @see https://docs.vertracloud.app/api-reference/endpoint/users
8
8
  */
9
9
  type RESTGetAPIUserInfoResponse = APIPayload<APIUserInfoResponse>;
10
10
 
@@ -1 +1 @@
1
- {"version":3,"sources":["user.ts"],"sourcesContent":["import type { APIPayload, APIUserInfoResponse } from \"../../v1\";\n\n/**\n * @see https://docs.vertracloud.com/api-reference/endpoint/users\n */\nexport type RESTGetAPIUserInfoResponse = APIPayload<APIUserInfoResponse>;\n"],"mappings":";;;;;;;;;;;;;;;;AAAA;AAAA;","names":[]}
1
+ {"version":3,"sources":["user.ts"],"sourcesContent":["import type { APIPayload, APIUserInfoResponse } from \"../../v1\";\n\n/**\n * @see https://docs.vertracloud.app/api-reference/endpoint/users\n */\nexport type RESTGetAPIUserInfoResponse = APIPayload<APIUserInfoResponse>;\n"],"mappings":";;;;;;;;;;;;;;;;AAAA;AAAA;","names":[]}
package/v1.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- export { APIHeaders, APIPaginatedPayload, APIPayload, APIPayloadStatus, APIPayloadStatusOnly, APIVersion, DeepPartial, ISODateString, PaginationMeta, SnowFlake, UserPlan } from './common/v1.js';
1
+ export { APIHeaders, APIPaginatedPayload, APIPayload, APIPayloadMessageOnly, APIReturnService, APIVersion, DeepPartial, ISODateString, PaginationMeta, SnowFlake, UserPlan } from './common/v1.js';
2
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, 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';
package/v1.js CHANGED
@@ -54,7 +54,9 @@ var UserPlan = {
54
54
 
55
55
  // payloads/v1/application.ts
56
56
  var ApplicationLanguage = {
57
- NODEJS: "nodejs",
57
+ JAVASCRIPT: "javascript",
58
+ TYPESCRIPT: "typescript",
59
+ BUN: "bun",
58
60
  PYTHON: "python"
59
61
  };
60
62
  var ApplicationStatus = {
package/v1.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"sources":["v1.ts","common/v1.ts","payloads/v1/application.ts","payloads/v1/database.ts","payloads/v1/organization.ts","payloads/v1/activity.ts","payloads/v1/status.ts"],"sourcesContent":["export * from \"./common/v1\";\nexport * from \"./payloads/v1/index\";\nexport * from \"./rest/v1/index\";\nexport * from \"./utils\";\n","export type APIPayloadStatus = \"error\" | \"success\";\n\nexport type SnowFlake = string;\n\nexport interface APIPayload<TResponse> {\n\tstatus: APIPayloadStatus;\n\tresponse: TResponse;\n\tcode?: string;\n}\n\nexport interface APIPayloadStatusOnly {\n\tstatus: APIPayloadStatus;\n}\n\nexport interface APIPaginatedPayload<TResponse> {\n\tstatus: APIPayloadStatus;\n\tresponse: TResponse;\n\tmeta?: PaginationMeta;\n}\n\nexport interface APIHeaders {\n\tAuthorization: string;\n}\n\nexport type DeepPartial<T> = T extends object\n\t? {\n\t\t\t[P in keyof T]?: DeepPartial<T[P]>;\n\t\t}\n\t: T;\n\nexport type APIVersion<TVersion extends number> = `v${TVersion}`;\n\nexport type ISODateString = string;\n\nexport interface PaginationMeta {\n\ttotal_count: number;\n\tpage: number;\n\tlimit: number;\n\ttotal_pages: number;\n\thas_next_page: boolean;\n\thas_previous_page: boolean;\n}\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","import type { ISODateString, SnowFlake, UserPlan } 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: 1,\n\tUSA_2: 2,\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\towner_plan_id: UserPlan; // Owner App Plan\n\tlanguage: ApplicationLanguage;\n\tram: number;\n\tstatus: ApplicationStatus;\n\tsubdomain: string | null; // example: \"my-app.vertraweb.com\"\n\tcustom_domain: string | null; // example: \"my-app.com.br\"\n\tlast_commit: ISODateString;\n\tlast_backup: ISODateString | null;\n\tcreated_at: ISODateString;\n\tupdated_at: ISODateString;\n}\n\n/**\n * @see https://docs.vertracloud.com/api-reference/endpoint/applications\n */\nexport interface APIApplicationNetwork {\n\ttotal: string;\n\tnow: string;\n}\n\n/**\n * @see https://docs.vertracloud.com/api-reference/endpoint/applications\n */\nexport interface APIApplicationActivity {\n\tmessage: string;\n\ttimestamp: ISODateString;\n}\n\n/**\n * @see https://docs.vertracloud.com/api-reference/endpoint/applications\n */\nexport interface APIApplicationStatus {\n\tcpu: string;\n\tram: string;\n\tstatus: ApplicationStatus;\n\trunning: boolean;\n\tstorage: string;\n\tnetwork: APIApplicationNetwork;\n\tuptime: number;\n\tcreated_at: ISODateString;\n\tupdated_at: ISODateString;\n}\n\n/**\n * @see https://docs.vertracloud.com/api-reference/endpoint/applications\n */\nexport interface APIApplicationStatusShort {\n\tid: SnowFlake;\n\tcpu: string;\n\tram: string;\n\trunning: boolean;\n}\n\n/**\n * @see https://docs.vertracloud.com/api-reference/endpoint/applications\n */\nexport interface APIApplicationMetric {\n\tcpu: number;\n\tram: number;\n\tstorage: number;\n\tdate: ISODateString;\n\tnetwork: number[];\n}\n\n/**\n * @see https://docs.vertracloud.com/api-reference/endpoint/applications\n */\nexport interface APIApplicationCommit {\n\tid: SnowFlake;\n\tauthor_id: SnowFlake;\n\tmessage: string;\n\tversion: string;\n\tstatus: ApplicationCommitStatus;\n\tsize: string;\n\tdate: ISODateString;\n}\n\n/**\n * @see https://docs.vertracloud.com/api-reference/endpoint/applications\n */\nexport interface APIApplicationBackup {\n\tid: SnowFlake;\n\tapp_id: SnowFlake;\n\tauthor_id: SnowFlake | null;\n\tsize: string;\n\tdate: ISODateString;\n}\n\n/**\n * @see https://docs.vertracloud.com/api-reference/endpoint/applications\n */\nexport interface APIGroupedApplicationBackups {\n\tapp_id: SnowFlake;\n\tapp_name: string | null;\n\tbackups: APIApplicationBackup[];\n}\n\n/**\n * @see https://docs.vertracloud.com/api-reference/endpoint/applications\n */\nexport interface APIApplicationConfig {\n\tNAME: string;\n\tMEMORY: number;\n\tMAIN: string;\n\tVERSION: ApplicationVersion;\n\tDESCRIPTION?: string;\n\tAUTORESTART?: boolean;\n\tSTART?: string;\n\tSUBDOMAIN?: string;\n}\n\n/**\n * @see https://docs.vertracloud.com/api-reference/endpoint/applications\n */\nexport interface APIApplicationEnvironment {\n\tid: string;\n\tkey: string;\n\tvalue: string;\n\tnote: string | null;\n\tcreated_at: ISODateString;\n}\n","import type { ISODateString, SnowFlake, UserPlan } from \"../../v1\";\n\n/**\n * @see https://docs.vertracloud.com/api-reference/endpoint/databases\n */\nexport type DatabaseType = 1 | 2 | 3;\nexport const DatabaseType = {\n\tPOSTGRESQL: 1,\n\tMONGODB: 2,\n\tREDIS: 3,\n} as const;\n\n/**\n * @see https://docs.vertracloud.com/api-reference/endpoint/users\n */\nexport type DatabasePlan = 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12;\nexport const DatabasePlan = {\n\tREDIS_128: 1,\n\tREDIS_256: 2,\n\tREDIS_512: 3,\n\tREDIS_1024: 4,\n\tMONGODB_1024: 5,\n\tMONGODB_2048: 6,\n\tMONGODB_5120: 7,\n\tMONGODB_10240: 8,\n\tPOSTGRESQL_1024: 9,\n\tPOSTGRESQL_2048: 10,\n\tPOSTGRESQL_5120: 11,\n\tPOSTGRESQL_10240: 12,\n} as const;\n\n/**\n * @see https://docs.vertracloud.com/api-reference/endpoint/databases\n */\nexport type DatabaseStatus = \"up\" | \"down\";\nexport const DatabaseStatus = {\n\tUP: \"up\",\n\tDOWN: \"down\",\n} as const;\n\n/**\n * @see https://docs.vertracloud.com/api-reference/endpoint/status\n */\nexport type DatabaseCluster = 1;\nexport const DatabaseCluster = {\n\tUSA_1: 1,\n\tUSA_2: 2,\n} as const;\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\ttype: DatabaseType;\n\tduration: number;\n\tname: string;\n\tdescription: string;\n\towner_id: SnowFlake;\n\towner_plan_id: UserPlan; // Owner App Plan\n\tplan_id: DatabasePlan;\n\tstatus: DatabaseStatus;\n\tstorage: number;\n\tram: number;\n\thost: string; // example: \"vertra-cloud-<type>-<dbId>.vertraweb.app\"\n\tport: number;\n\tcreated_at: ISODateString;\n\tupdated_at: ISODateString;\n\tpurchased_at: ISODateString;\n\texpires_at: ISODateString;\n\tlast_backup: ISODateString | null;\n}\n\n/**\n * @see https://docs.vertracloud.com/api-reference/endpoint/databases\n */\nexport interface APIDatabaseNetwork {\n\ttotal: string;\n\tnow: string;\n}\n\n/**\n * @see https://docs.vertracloud.com/api-reference/endpoint/databases\n */\nexport interface APIDatabaseBackup {\n\tmessage: string;\n\ttimestamp: ISODateString;\n}\n\n/**\n * @see https://docs.vertracloud.com/api-reference/endpoint/databases\n */\nexport interface APIDatabaseStatus {\n\tcpu: string;\n\tram: string;\n\tstatus: DatabaseStatus;\n\trunning: boolean;\n\tstorage: string;\n\tnetwork: APIDatabaseNetwork;\n\tuptime: number;\n\tcreated_at: ISODateString;\n\tupdated_at: ISODateString;\n}\n\n/**\n * @see https://docs.vertracloud.com/api-reference/endpoint/databases\n */\nexport interface APIDatabaseStatusShort {\n\tid: SnowFlake;\n\tcpu: string;\n\tram: string;\n\tstorage: string;\n\trunning: boolean;\n}\n\n/**\n * @see https://docs.vertracloud.com/api-reference/endpoint/databases\n */\nexport interface APIDatabaseMetrics {\n\tcpu: number;\n\tram: number;\n\tstorage: number;\n\tdate: ISODateString;\n\tnetwork: number[];\n}\n","import type { ISODateString, SnowFlake, UserPlan } 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\tplan_id: UserPlan;\n\tmembers: APIOrganizationMember[];\n\tcreated_at: ISODateString;\n\tupdated_at: ISODateString;\n}\n\n/**\n * @see https://docs.vertracloud.com/api-reference/endpoint/organizations\n */\nexport interface APIOrganizationInfoResponse extends APIOrganization {\n\tapplications: APIApplication[];\n\tdatabases: APIDatabase[];\n}\n","import type { ISODateString, SnowFlake } from \"../../v1\";\n\n/**\n * @see https://docs.vertracloud.com/api-reference/endpoint/activities\n */\nexport type ActivityStatus = \"success\" | \"warning\" | \"error\" | \"info\";\nexport const ActivityStatus = {\n\tSuccess: \"success\",\n\tWarning: \"warning\",\n\tError: \"error\",\n\tInfo: \"info\",\n} as const;\n\n/**\n * @see https://docs.vertracloud.com/api-reference/endpoint/activities\n */\nexport type ActivityTargetType = \"app\" | \"database\" | \"organization\" | \"audit\";\nexport const ActivityTargetType = {\n\tApp: \"app\",\n\tDatabase: \"database\",\n\tOrganization: \"organization\",\n\tAudit: \"audit\",\n} as const;\n\n/**\n * @see https://docs.vertracloud.com/api-reference/endpoint/activities\n */\nexport interface APIActivity {\n\tid: SnowFlake;\n\tstatus: ActivityStatus;\n\ttarget_id: string;\n\ttarget_type: ActivityTargetType;\n\tauthor_id: SnowFlake | null;\n\ttitle: string;\n\tmessage: string;\n\ttimestamp: ISODateString;\n}\n","/**\n * @see https://docs.vertracloud.com/api-reference/endpoint/status\n */\nexport type StatusType = \"healthy\" | \"degraded\" | \"unknown\";\nexport const StatusType = {\n\tHEALTHY: \"healthy\",\n\tDEGRADED: \"degraded\",\n\tUNKNOWN: \"unknown\",\n} as const;\n\n/**\n * @see https://docs.vertracloud.com/api-reference/endpoint/status\n */\nexport interface APIStatus {\n\tstatus: StatusType;\n\tmessage: string;\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;;AC4CO,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;;;AC/CO,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,OAAO;AAAA,EACP,OAAO;AACR;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;;;AC5EO,IAAM,eAAe;AAAA,EAC3B,YAAY;AAAA,EACZ,SAAS;AAAA,EACT,OAAO;AACR;AAMO,IAAM,eAAe;AAAA,EAC3B,WAAW;AAAA,EACX,WAAW;AAAA,EACX,WAAW;AAAA,EACX,YAAY;AAAA,EACZ,cAAc;AAAA,EACd,cAAc;AAAA,EACd,cAAc;AAAA,EACd,eAAe;AAAA,EACf,iBAAiB;AAAA,EACjB,iBAAiB;AAAA,EACjB,iBAAiB;AAAA,EACjB,kBAAkB;AACnB;AAMO,IAAM,iBAAiB;AAAA,EAC7B,IAAI;AAAA,EACJ,MAAM;AACP;AAMO,IAAM,kBAAkB;AAAA,EAC9B,OAAO;AAAA,EACP,OAAO;AACR;;;ACnCO,IAAM,yBAAyB;AAAA,EACrC,OAAO;AAAA,EACP,OAAO;AAAA,EACP,WAAW;AAAA,EACX,UAAU;AAAA,EACV,QAAQ;AACT;;;ACZO,IAAM,iBAAiB;AAAA,EAC7B,SAAS;AAAA,EACT,SAAS;AAAA,EACT,OAAO;AAAA,EACP,MAAM;AACP;AAMO,IAAM,qBAAqB;AAAA,EACjC,KAAK;AAAA,EACL,UAAU;AAAA,EACV,cAAc;AAAA,EACd,OAAO;AACR;;;AClBO,IAAM,aAAa;AAAA,EACzB,SAAS;AAAA,EACT,UAAU;AAAA,EACV,SAAS;AACV;","names":[]}
1
+ {"version":3,"sources":["v1.ts","common/v1.ts","payloads/v1/application.ts","payloads/v1/database.ts","payloads/v1/organization.ts","payloads/v1/activity.ts","payloads/v1/status.ts"],"sourcesContent":["export * from \"./common/v1\";\nexport * from \"./payloads/v1/index\";\nexport * from \"./rest/v1/index\";\nexport * from \"./utils\";\n","export type SnowFlake = string;\n\nexport interface PaginationMeta<T> {\n\tdata: T[];\n\ttotal_count: number;\n\tpage: number;\n\tlimit: number;\n\ttotal_pages: number;\n\thas_next_page: boolean;\n\thas_previous_page: boolean;\n}\n\nexport interface APIPaginatedPayload<T> {\n\tresponse: PaginationMeta<T>;\n}\n\nexport interface APIPayload<T> {\n\tresponse?: T;\n\tcode?: string;\n\tmessage?: string;\n}\n\nexport interface APIReturnService<T> {\n\tstatus: number;\n\tpayload: APIPayload<T>;\n}\n\nexport interface APIPayloadMessageOnly {\n\tmessage: string;\n}\n\nexport interface APIHeaders {\n\tAuthorization: string;\n}\n\nexport type DeepPartial<T> = T extends object\n\t? {\n\t\t\t[P in keyof T]?: DeepPartial<T[P]>;\n\t\t}\n\t: T;\n\nexport type APIVersion<TVersion extends number> = `v${TVersion}`;\n\nexport type ISODateString = string;\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","import type { ISODateString, SnowFlake, UserPlan } from \"../../v1\";\n\n/**\n * @see https://docs.vertracloud.app/api-reference/endpoint/applications\n */\nexport type ApplicationLanguage =\n\t| \"javascript\"\n\t| \"typescript\"\n\t| \"bun\"\n\t| \"python\";\nexport const ApplicationLanguage = {\n\tJAVASCRIPT: \"javascript\",\n\tTYPESCRIPT: \"typescript\",\n\tBUN: \"bun\",\n\tPYTHON: \"python\",\n} as const;\n\n/**\n * @see https://docs.vertracloud.app/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.app/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.app/api-reference/endpoint/applications\n */\nexport type ApplicationCluster = number;\nexport const ApplicationCluster = {\n\tUSA_1: 1,\n\tUSA_2: 2,\n} as const;\n\n/**\n * @see https://docs.vertracloud.app/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.app/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.app/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.app/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.app/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.app/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.app/api-reference/endpoint/applications\n */\nexport interface APIApplicationFileContent {\n\ttype: ApplicationFileContentType;\n\tdata: number[];\n}\n\n/**\n * @see https://docs.vertracloud.app/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\towner_plan_id: UserPlan; // Owner App Plan\n\tlanguage: ApplicationLanguage;\n\tram: number;\n\tstatus: ApplicationStatus;\n\tsubdomain: string | null; // example: \"my-app.vertraweb.com\"\n\tcustom_domain: string | null; // example: \"my-app.com.br\"\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.app/api-reference/endpoint/applications\n */\nexport interface APIApplicationNetwork {\n\ttotal: string;\n\tnow: string;\n}\n\n/**\n * @see https://docs.vertracloud.app/api-reference/endpoint/applications\n */\nexport interface APIApplicationActivity {\n\tmessage: string;\n\ttimestamp: ISODateString;\n}\n\n/**\n * @see https://docs.vertracloud.app/api-reference/endpoint/applications\n */\nexport interface APIApplicationStatus {\n\tid: SnowFlake;\n\tcpu: string;\n\tram: string;\n\tstatus: ApplicationStatus;\n\trunning: boolean;\n\tstorage: string;\n\tnetwork: APIApplicationNetwork;\n\tuptime: number;\n}\n\n/**\n * @see https://docs.vertracloud.app/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.app/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.app/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.app/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.app/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.app/api-reference/endpoint/applications\n */\nexport interface APIApplicationConfig {\n\tNAME: string;\n\tMEMORY: number;\n\tMAIN: string;\n\tVERSION: ApplicationVersion;\n\tDESCRIPTION?: string;\n\tAUTORESTART?: boolean;\n\tSTART?: string;\n\tSUBDOMAIN?: string;\n}\n\n/**\n * @see https://docs.vertracloud.app/api-reference/endpoint/applications\n */\nexport interface APIApplicationEnvironment {\n\tid: string;\n\tkey: string;\n\tvalue: string;\n\tnote: string | null;\n\tcreated_at: ISODateString;\n}\n","import type { ISODateString, SnowFlake, UserPlan } from \"../../v1\";\n\n/**\n * @see https://docs.vertracloud.app/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.app/api-reference/endpoint/users\n */\nexport type DatabasePlan = 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12;\nexport const DatabasePlan = {\n\tREDIS_128: 1,\n\tREDIS_256: 2,\n\tREDIS_512: 3,\n\tREDIS_1024: 4,\n\tMONGODB_1024: 5,\n\tMONGODB_2048: 6,\n\tMONGODB_5120: 7,\n\tMONGODB_10240: 8,\n\tPOSTGRESQL_1024: 9,\n\tPOSTGRESQL_2048: 10,\n\tPOSTGRESQL_5120: 11,\n\tPOSTGRESQL_10240: 12,\n} as const;\n\n/**\n * @see https://docs.vertracloud.app/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.app/api-reference/endpoint/status\n */\nexport type DatabaseCluster = number;\nexport const DatabaseCluster = {\n\tUSA_1: 1,\n\tUSA_2: 2,\n} as const;\n\n/**\n * @see https://docs.vertracloud.app/api-reference/endpoint/databases\n */\nexport interface APIDatabaseActivity {\n\tmessage: string;\n\ttimestamp: ISODateString;\n}\n\n/**\n * @see https://docs.vertracloud.app/api-reference/endpoint/databases\n */\nexport interface APIDatabase {\n\tid: SnowFlake;\n\tcluster: DatabaseCluster;\n\ttype: DatabaseType;\n\tduration: number;\n\tname: string;\n\tdescription: string;\n\towner_id: SnowFlake;\n\towner_plan_id: UserPlan; // Owner App Plan\n\tplan_id: DatabasePlan;\n\tstatus: DatabaseStatus;\n\tstorage: number;\n\tram: number;\n\thost: string; // example: \"vertra-cloud-<type>-<dbId>.vertraweb.app\"\n\tport: number;\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.app/api-reference/endpoint/databases\n */\nexport interface APIDatabaseNetwork {\n\ttotal: string;\n\tnow: string;\n}\n\n/**\n * @see https://docs.vertracloud.app/api-reference/endpoint/databases\n */\nexport interface APIDatabaseBackup {\n\tmessage: string;\n\ttimestamp: ISODateString;\n}\n\n/**\n * @see https://docs.vertracloud.app/api-reference/endpoint/databases\n */\nexport interface APIDatabaseStatus {\n\tid: SnowFlake;\n\tcpu: string;\n\tram: string;\n\tstatus: DatabaseStatus;\n\trunning: boolean;\n\tstorage: string;\n\tnetwork: APIDatabaseNetwork;\n\tuptime: number;\n}\n\n/**\n * @see https://docs.vertracloud.app/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.app/api-reference/endpoint/databases\n */\nexport interface APIDatabaseMetrics {\n\tcpu: number;\n\tram: number;\n\tstorage: number;\n\tdate: ISODateString;\n\tnetwork: number[];\n}\n","import type { ISODateString, SnowFlake, UserPlan } from \"../../v1\";\nimport type { APIApplication, APIDatabase } from \"./index\";\n\n/**\n * @see https://docs.vertracloud.app/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.app/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.app/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\tplan_id: UserPlan;\n\tmembers: APIOrganizationMember[];\n\tcreated_at: ISODateString;\n\tupdated_at: ISODateString;\n}\n\n/**\n * @see https://docs.vertracloud.app/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.app/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.app/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.app/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.app/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.app/api-reference/endpoint/status\n */\nexport interface APIStatus {\n\tstatus: StatusType;\n\tmessage: string;\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;;AC8CO,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;;;AC7CO,IAAM,sBAAsB;AAAA,EAClC,YAAY;AAAA,EACZ,YAAY;AAAA,EACZ,KAAK;AAAA,EACL,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,OAAO;AAAA,EACP,OAAO;AACR;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;;;AClFO,IAAM,eAAe;AAAA,EAC3B,YAAY;AAAA,EACZ,SAAS;AAAA,EACT,OAAO;AACR;AAMO,IAAM,eAAe;AAAA,EAC3B,WAAW;AAAA,EACX,WAAW;AAAA,EACX,WAAW;AAAA,EACX,YAAY;AAAA,EACZ,cAAc;AAAA,EACd,cAAc;AAAA,EACd,cAAc;AAAA,EACd,eAAe;AAAA,EACf,iBAAiB;AAAA,EACjB,iBAAiB;AAAA,EACjB,iBAAiB;AAAA,EACjB,kBAAkB;AACnB;AAMO,IAAM,iBAAiB;AAAA,EAC7B,IAAI;AAAA,EACJ,MAAM;AACP;AAMO,IAAM,kBAAkB;AAAA,EAC9B,OAAO;AAAA,EACP,OAAO;AACR;;;ACnCO,IAAM,yBAAyB;AAAA,EACrC,OAAO;AAAA,EACP,OAAO;AAAA,EACP,WAAW;AAAA,EACX,UAAU;AAAA,EACV,QAAQ;AACT;;;ACZO,IAAM,iBAAiB;AAAA,EAC7B,SAAS;AAAA,EACT,SAAS;AAAA,EACT,OAAO;AAAA,EACP,MAAM;AACP;AAMO,IAAM,qBAAqB;AAAA,EACjC,KAAK;AAAA,EACL,UAAU;AAAA,EACV,cAAc;AAAA,EACd,OAAO;AACR;;;AClBO,IAAM,aAAa;AAAA,EACzB,SAAS;AAAA,EACT,UAAU;AAAA,EACV,SAAS;AACV;","names":[]}
package/v1.mjs CHANGED
@@ -12,7 +12,9 @@ var UserPlan = {
12
12
 
13
13
  // payloads/v1/application.ts
14
14
  var ApplicationLanguage = {
15
- NODEJS: "nodejs",
15
+ JAVASCRIPT: "javascript",
16
+ TYPESCRIPT: "typescript",
17
+ BUN: "bun",
16
18
  PYTHON: "python"
17
19
  };
18
20
  var ApplicationStatus = {