@vertracloud/api-types 0.0.36 → 0.0.38
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/package.json +1 -1
- package/payloads/v1/application.d.ts +46 -1
- package/payloads/v1/application.js.map +1 -1
- package/payloads/v1/credits.d.ts +12 -15
- package/payloads/v1/credits.js.map +1 -1
- package/payloads/v1/database.d.ts +8 -1
- package/payloads/v1/database.js.map +1 -1
- package/payloads/v1/index.d.ts +8 -5
- package/payloads/v1/index.js.map +1 -1
- package/payloads/v1/orders.d.ts +80 -0
- package/payloads/v1/orders.js +19 -0
- package/payloads/v1/orders.js.map +1 -0
- package/payloads/v1/orders.mjs +1 -0
- package/payloads/v1/redeem.d.ts +11 -0
- package/payloads/v1/redeem.js +19 -0
- package/payloads/v1/redeem.js.map +1 -0
- package/payloads/v1/redeem.mjs +1 -0
- package/payloads/v1/snapshot.d.ts +7 -1
- package/payloads/v1/snapshot.js.map +1 -1
- package/payloads/v1/user.d.ts +8 -1
- package/payloads/v1/user.js.map +1 -1
- package/payloads/v1/wing.d.ts +124 -0
- package/payloads/v1/wing.js +19 -0
- package/payloads/v1/wing.js.map +1 -0
- package/payloads/v1/wing.mjs +1 -0
- package/payloads/v1/workspace.d.ts +16 -1
- package/payloads/v1/workspace.js.map +1 -1
- package/rest/v1/application.d.ts +65 -13
- package/rest/v1/application.js.map +1 -1
- package/rest/v1/credits.d.ts +17 -0
- package/rest/v1/credits.js +19 -0
- package/rest/v1/credits.js.map +1 -0
- package/rest/v1/credits.mjs +1 -0
- package/rest/v1/database.d.ts +37 -13
- package/rest/v1/database.js.map +1 -1
- package/rest/v1/index.d.ts +17 -6
- package/rest/v1/index.js.map +1 -1
- package/rest/v1/notification.d.ts +9 -0
- package/rest/v1/notification.js +19 -0
- package/rest/v1/notification.js.map +1 -0
- package/rest/v1/notification.mjs +1 -0
- package/rest/v1/orders.d.ts +21 -0
- package/rest/v1/orders.js +19 -0
- package/rest/v1/orders.js.map +1 -0
- package/rest/v1/orders.mjs +1 -0
- package/rest/v1/redeem.d.ts +9 -0
- package/rest/v1/redeem.js +19 -0
- package/rest/v1/redeem.js.map +1 -0
- package/rest/v1/redeem.mjs +1 -0
- package/rest/v1/snapshot.d.ts +17 -5
- package/rest/v1/snapshot.js.map +1 -1
- package/rest/v1/status.d.ts +1 -1
- package/rest/v1/status.js.map +1 -1
- package/rest/v1/user.d.ts +15 -3
- package/rest/v1/user.js.map +1 -1
- package/rest/v1/wing.d.ts +36 -0
- package/rest/v1/wing.js +19 -0
- package/rest/v1/wing.js.map +1 -0
- package/rest/v1/wing.mjs +1 -0
- package/rest/v1/workspace.d.ts +28 -4
- package/rest/v1/workspace.js.map +1 -1
- package/v1.d.ts +19 -10
- package/v1.js.map +1 -1
|
@@ -0,0 +1,124 @@
|
|
|
1
|
+
import { ISODateString } from '../../common/v1.js';
|
|
2
|
+
import { ApplicationLanguage } from './application.js';
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* Wing service response wrapper
|
|
6
|
+
*/
|
|
7
|
+
type APIPayloadStatus = "error" | "success";
|
|
8
|
+
interface WingPayload<T = unknown> {
|
|
9
|
+
status: APIPayloadStatus;
|
|
10
|
+
response?: T;
|
|
11
|
+
code?: string;
|
|
12
|
+
}
|
|
13
|
+
interface WingServiceResult<T = unknown> {
|
|
14
|
+
status: number;
|
|
15
|
+
payload: WingPayload<T>;
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* Container metrics (shared between apps and databases)
|
|
19
|
+
*/
|
|
20
|
+
interface WingsContainerMetric {
|
|
21
|
+
id: string;
|
|
22
|
+
cpu: number;
|
|
23
|
+
ram: number;
|
|
24
|
+
storage: number;
|
|
25
|
+
network_in: number;
|
|
26
|
+
network_out: number;
|
|
27
|
+
network: {
|
|
28
|
+
total: string;
|
|
29
|
+
now: string;
|
|
30
|
+
} | null;
|
|
31
|
+
uptime: number;
|
|
32
|
+
running: boolean;
|
|
33
|
+
}
|
|
34
|
+
/**
|
|
35
|
+
* Application container creation response
|
|
36
|
+
*/
|
|
37
|
+
interface WingsAppCreateResponse {
|
|
38
|
+
container_id: string;
|
|
39
|
+
container_name: string;
|
|
40
|
+
envs: Array<{
|
|
41
|
+
key: string;
|
|
42
|
+
value: string;
|
|
43
|
+
note?: string;
|
|
44
|
+
}>;
|
|
45
|
+
language: ApplicationLanguage;
|
|
46
|
+
version: string;
|
|
47
|
+
subdomain: string;
|
|
48
|
+
max_bandwidth: string;
|
|
49
|
+
memory: number;
|
|
50
|
+
vcpus: number;
|
|
51
|
+
auto_restart: boolean;
|
|
52
|
+
created_at: ISODateString;
|
|
53
|
+
}
|
|
54
|
+
/**
|
|
55
|
+
* Application container rebuild response
|
|
56
|
+
*/
|
|
57
|
+
interface WingsAppRebuildResponse {
|
|
58
|
+
container_id: string;
|
|
59
|
+
container_name: string;
|
|
60
|
+
version: string;
|
|
61
|
+
}
|
|
62
|
+
/**
|
|
63
|
+
* Database container creation response
|
|
64
|
+
*/
|
|
65
|
+
interface WingsDatabaseCreateResponse {
|
|
66
|
+
container_id: string;
|
|
67
|
+
container_name: string;
|
|
68
|
+
subdomain_full: string;
|
|
69
|
+
max_bandwidth: string;
|
|
70
|
+
memory: number;
|
|
71
|
+
vcpus: number;
|
|
72
|
+
type: number;
|
|
73
|
+
host: string;
|
|
74
|
+
port: number;
|
|
75
|
+
storage: number;
|
|
76
|
+
created_at: ISODateString;
|
|
77
|
+
}
|
|
78
|
+
/**
|
|
79
|
+
* Database container rebuild response
|
|
80
|
+
*/
|
|
81
|
+
interface WingsDatabaseRebuildResponse {
|
|
82
|
+
container_id: string;
|
|
83
|
+
container_name: string;
|
|
84
|
+
type: number;
|
|
85
|
+
host: string;
|
|
86
|
+
port: number;
|
|
87
|
+
created_at: ISODateString;
|
|
88
|
+
}
|
|
89
|
+
/**
|
|
90
|
+
* Database certificate bundle
|
|
91
|
+
*/
|
|
92
|
+
interface WingsDatabaseCertificate {
|
|
93
|
+
crt: string;
|
|
94
|
+
key: string;
|
|
95
|
+
pem: string;
|
|
96
|
+
}
|
|
97
|
+
/**
|
|
98
|
+
* File upload response
|
|
99
|
+
*/
|
|
100
|
+
interface WingsFileUploadResponse {
|
|
101
|
+
app_id: string;
|
|
102
|
+
updated_at: ISODateString;
|
|
103
|
+
}
|
|
104
|
+
/**
|
|
105
|
+
* File move response
|
|
106
|
+
*/
|
|
107
|
+
interface WingsFileMoveResponse {
|
|
108
|
+
from: string;
|
|
109
|
+
to: string;
|
|
110
|
+
}
|
|
111
|
+
/**
|
|
112
|
+
* Snapshot restore response
|
|
113
|
+
*/
|
|
114
|
+
interface WingsSnapshotRestoreResponse {
|
|
115
|
+
message: string;
|
|
116
|
+
}
|
|
117
|
+
/**
|
|
118
|
+
* Database reset response
|
|
119
|
+
*/
|
|
120
|
+
interface WingsDatabaseResetResponse {
|
|
121
|
+
id: string;
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
export type { APIPayloadStatus, WingPayload, WingServiceResult, WingsAppCreateResponse, WingsAppRebuildResponse, WingsContainerMetric, WingsDatabaseCertificate, WingsDatabaseCreateResponse, WingsDatabaseRebuildResponse, WingsDatabaseResetResponse, WingsFileMoveResponse, WingsFileUploadResponse, WingsSnapshotRestoreResponse };
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __copyProps = (to, from, except, desc) => {
|
|
7
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
8
|
+
for (let key of __getOwnPropNames(from))
|
|
9
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
10
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
11
|
+
}
|
|
12
|
+
return to;
|
|
13
|
+
};
|
|
14
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
15
|
+
|
|
16
|
+
// payloads/v1/wing.ts
|
|
17
|
+
var wing_exports = {};
|
|
18
|
+
module.exports = __toCommonJS(wing_exports);
|
|
19
|
+
//# sourceMappingURL=wing.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["wing.ts"],"sourcesContent":["import type { ISODateString } from \"../../common/v1\";\nimport type { ApplicationLanguage } from \"./application\";\n\n/**\n * Wing service response wrapper\n */\nexport type APIPayloadStatus = \"error\" | \"success\";\n\nexport interface WingPayload<T = unknown> {\n\tstatus: APIPayloadStatus;\n\tresponse?: T;\n\tcode?: string;\n}\n\nexport interface WingServiceResult<T = unknown> {\n\tstatus: number;\n\tpayload: WingPayload<T>;\n}\n\n/**\n * Container metrics (shared between apps and databases)\n */\nexport interface WingsContainerMetric {\n\tid: string;\n\tcpu: number;\n\tram: number;\n\tstorage: number;\n\tnetwork_in: number;\n\tnetwork_out: number;\n\tnetwork: { total: string; now: string } | null;\n\tuptime: number;\n\trunning: boolean;\n}\n\n/**\n * Application container creation response\n */\nexport interface WingsAppCreateResponse {\n\tcontainer_id: string;\n\tcontainer_name: string;\n\tenvs: Array<{ key: string; value: string; note?: string }>;\n\tlanguage: ApplicationLanguage;\n\tversion: string;\n\tsubdomain: string;\n\tmax_bandwidth: string;\n\tmemory: number;\n\tvcpus: number;\n\tauto_restart: boolean;\n\tcreated_at: ISODateString;\n}\n\n/**\n * Application container rebuild response\n */\nexport interface WingsAppRebuildResponse {\n\tcontainer_id: string;\n\tcontainer_name: string;\n\tversion: string;\n}\n\n/**\n * Database container creation response\n */\nexport interface WingsDatabaseCreateResponse {\n\tcontainer_id: string;\n\tcontainer_name: string;\n\tsubdomain_full: string;\n\tmax_bandwidth: string;\n\tmemory: number;\n\tvcpus: number;\n\ttype: number;\n\thost: string;\n\tport: number;\n\tstorage: number;\n\tcreated_at: ISODateString;\n}\n\n/**\n * Database container rebuild response\n */\nexport interface WingsDatabaseRebuildResponse {\n\tcontainer_id: string;\n\tcontainer_name: string;\n\ttype: number;\n\thost: string;\n\tport: number;\n\tcreated_at: ISODateString;\n}\n\n/**\n * Database certificate bundle\n */\nexport interface WingsDatabaseCertificate {\n\tcrt: string;\n\tkey: string;\n\tpem: string;\n}\n\n/**\n * File upload response\n */\nexport interface WingsFileUploadResponse {\n\tapp_id: string;\n\tupdated_at: ISODateString;\n}\n\n/**\n * File move response\n */\nexport interface WingsFileMoveResponse {\n\tfrom: string;\n\tto: string;\n}\n\n/**\n * Snapshot restore response\n */\nexport interface WingsSnapshotRestoreResponse {\n\tmessage: string;\n}\n\n/**\n * Database reset response\n */\nexport interface WingsDatabaseResetResponse {\n\tid: string;\n}\n"],"mappings":";;;;;;;;;;;;;;;;AAAA;AAAA;","names":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
//# sourceMappingURL=wing.mjs.map
|
|
@@ -40,5 +40,20 @@ interface APIWorkspaceInfoResponse extends APIWorkspace {
|
|
|
40
40
|
applications: APIApplication[];
|
|
41
41
|
databases: APIDatabase[];
|
|
42
42
|
}
|
|
43
|
+
/**
|
|
44
|
+
* @see https://docs.vertracloud.app/api-reference/endpoint/workspaces
|
|
45
|
+
*/
|
|
46
|
+
interface APIWorkspaceMemberAdd {
|
|
47
|
+
id: string;
|
|
48
|
+
email: string;
|
|
49
|
+
role: WorkspaceMemberRole;
|
|
50
|
+
}
|
|
51
|
+
/**
|
|
52
|
+
* @see https://docs.vertracloud.app/api-reference/endpoint/workspaces
|
|
53
|
+
*/
|
|
54
|
+
interface APIWorkspaceMemberRoleUpdate {
|
|
55
|
+
user_id: string;
|
|
56
|
+
role: WorkspaceMemberRole;
|
|
57
|
+
}
|
|
43
58
|
|
|
44
|
-
export { type APIWorkspace, type APIWorkspaceInfoResponse, type APIWorkspaceMember, WorkspaceMemberRole };
|
|
59
|
+
export { type APIWorkspace, type APIWorkspaceInfoResponse, type APIWorkspaceMember, type APIWorkspaceMemberAdd, type APIWorkspaceMemberRoleUpdate, WorkspaceMemberRole };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["workspace.ts"],"sourcesContent":["import type { ISODateString, SnowFlake } from \"../../v1\";\nimport type { APIApplication, APIDatabase } from \"./index\";\n\n/**\n * @see https://docs.vertracloud.app/api-reference/endpoint/workspaces\n */\nexport type WorkspaceMemberRole = \"owner\" | \"admin\" | \"developer\" | \"operator\" | \"viewer\";\nexport const WorkspaceMemberRole = {\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/workspaces\n */\nexport interface APIWorkspaceMember {\n\tuser_id: string;\n\trole: WorkspaceMemberRole;\n\tjoined_at: ISODateString;\n}\n\n/**\n * @see https://docs.vertracloud.app/api-reference/endpoint/workspaces\n */\nexport interface APIWorkspace {\n\tid: SnowFlake;\n\tname: string;\n\tdescription: string | null;\n\towner_id: SnowFlake;\n\tmembers: APIWorkspaceMember[];\n\tcreated_at: ISODateString;\n\tupdated_at: ISODateString;\n}\n\n/**\n * @see https://docs.vertracloud.app/api-reference/endpoint/workspaces\n */\nexport interface APIWorkspaceInfoResponse extends APIWorkspace {\n\tapplications: APIApplication[];\n\tdatabases: APIDatabase[];\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAOO,IAAM,sBAAsB;AAAA,EAClC,OAAO;AAAA,EACP,OAAO;AAAA,EACP,WAAW;AAAA,EACX,UAAU;AAAA,EACV,QAAQ;AACT;","names":[]}
|
|
1
|
+
{"version":3,"sources":["workspace.ts"],"sourcesContent":["import type { ISODateString, SnowFlake } from \"../../v1\";\nimport type { APIApplication, APIDatabase } from \"./index\";\n\n/**\n * @see https://docs.vertracloud.app/api-reference/endpoint/workspaces\n */\nexport type WorkspaceMemberRole = \"owner\" | \"admin\" | \"developer\" | \"operator\" | \"viewer\";\nexport const WorkspaceMemberRole = {\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/workspaces\n */\nexport interface APIWorkspaceMember {\n\tuser_id: string;\n\trole: WorkspaceMemberRole;\n\tjoined_at: ISODateString;\n}\n\n/**\n * @see https://docs.vertracloud.app/api-reference/endpoint/workspaces\n */\nexport interface APIWorkspace {\n\tid: SnowFlake;\n\tname: string;\n\tdescription: string | null;\n\towner_id: SnowFlake;\n\tmembers: APIWorkspaceMember[];\n\tcreated_at: ISODateString;\n\tupdated_at: ISODateString;\n}\n\n/**\n * @see https://docs.vertracloud.app/api-reference/endpoint/workspaces\n */\nexport interface APIWorkspaceInfoResponse extends APIWorkspace {\n\tapplications: APIApplication[];\n\tdatabases: APIDatabase[];\n}\n\n/**\n * @see https://docs.vertracloud.app/api-reference/endpoint/workspaces\n */\nexport interface APIWorkspaceMemberAdd {\n\tid: string;\n\temail: string;\n\trole: WorkspaceMemberRole;\n}\n\n/**\n * @see https://docs.vertracloud.app/api-reference/endpoint/workspaces\n */\nexport interface APIWorkspaceMemberRoleUpdate {\n\tuser_id: string;\n\trole: WorkspaceMemberRole;\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAOO,IAAM,sBAAsB;AAAA,EAClC,OAAO;AAAA,EACP,OAAO;AAAA,EACP,WAAW;AAAA,EACX,UAAU;AAAA,EACV,QAAQ;AACT;","names":[]}
|
package/rest/v1/application.d.ts
CHANGED
|
@@ -1,49 +1,101 @@
|
|
|
1
1
|
import { APIPayload } from '../../common/v1.js';
|
|
2
|
-
import { APIApplication, APIApplicationStatus, APIApplicationStatusShort, APIApplicationMetric, APIApplicationFile, APIApplicationFileContent, APIApplicationEnvironment } from '../../payloads/v1/application.js';
|
|
2
|
+
import { APIApplication, APIApplicationStatus, APIApplicationStatusShort, APIApplicationMetric, APIApplicationFile, APIApplicationFileContent, APIApplicationEnvironment, APIApplicationOperationResponse, APIDnsRecord, APICustomDomainResponse, APISubdomainResponse, APIWebhookUrl, APIApplicationDeployment } from '../../payloads/v1/application.js';
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
|
-
* @see https://docs.vertracloud.app/api-reference/endpoint/
|
|
5
|
+
* @see https://docs.vertracloud.app/api-reference/endpoint/apps/get
|
|
6
6
|
*/
|
|
7
7
|
type RESTGetAPIApplicationResponse = APIPayload<APIApplication>;
|
|
8
8
|
/**
|
|
9
|
-
* @see https://docs.vertracloud.app/api-reference/endpoint/
|
|
9
|
+
* @see https://docs.vertracloud.app/api-reference/endpoint/apps/status
|
|
10
10
|
*/
|
|
11
11
|
type RESTGetAPIApplicationStatusResponse = APIPayload<APIApplicationStatus>;
|
|
12
12
|
/**
|
|
13
|
-
* @see https://docs.vertracloud.app/api-reference/endpoint/
|
|
13
|
+
* @see https://docs.vertracloud.app/api-reference/endpoint/apps/allstatus
|
|
14
14
|
*/
|
|
15
15
|
type RESTGetAPIApplicationStatusShortResponse = APIPayload<APIApplicationStatusShort>;
|
|
16
16
|
/**
|
|
17
|
-
* @see https://docs.vertracloud.app/api-reference/endpoint/
|
|
17
|
+
* @see https://docs.vertracloud.app/api-reference/endpoint/apps/logs
|
|
18
18
|
*/
|
|
19
19
|
type RESTGetAPIApplicationLogsResponse = APIPayload<string>;
|
|
20
20
|
/**
|
|
21
|
-
* @see https://docs.vertracloud.app/api-reference/endpoint/
|
|
21
|
+
* @see https://docs.vertracloud.app/api-reference/endpoint/apps/metrics
|
|
22
22
|
*/
|
|
23
23
|
type RESTGetAPIApplicationMetricsResponse = APIPayload<APIApplicationMetric[]>;
|
|
24
24
|
/**
|
|
25
|
-
* @see https://docs.vertracloud.app/api-reference/endpoint/
|
|
25
|
+
* @see https://docs.vertracloud.app/api-reference/endpoint/apps/filemanager/files
|
|
26
26
|
*/
|
|
27
27
|
type RESTGetAPIApplicationFilesResponse = APIPayload<APIApplicationFile[]>;
|
|
28
28
|
/**
|
|
29
|
-
* @see https://docs.vertracloud.app/api-reference/endpoint/
|
|
29
|
+
* @see https://docs.vertracloud.app/api-reference/endpoint/apps/filemanager/content
|
|
30
30
|
*/
|
|
31
31
|
type RESTGetAPIApplicationFileContentResponse = APIPayload<APIApplicationFileContent>;
|
|
32
32
|
/**
|
|
33
|
-
* @see https://docs.vertracloud.app/api-reference/endpoint/
|
|
33
|
+
* @see https://docs.vertracloud.app/api-reference/endpoint/apps/start
|
|
34
34
|
*/
|
|
35
35
|
type RESTGetAPIApplicationStartResponse = APIPayload<boolean>;
|
|
36
36
|
/**
|
|
37
|
-
* @see https://docs.vertracloud.app/api-reference/endpoint/
|
|
37
|
+
* @see https://docs.vertracloud.app/api-reference/endpoint/apps/restart
|
|
38
38
|
*/
|
|
39
39
|
type RESTGetAPIApplicationRestartResponse = APIPayload<boolean>;
|
|
40
40
|
/**
|
|
41
|
-
* @see https://docs.vertracloud.app/api-reference/endpoint/
|
|
41
|
+
* @see https://docs.vertracloud.app/api-reference/endpoint/apps/stop
|
|
42
42
|
*/
|
|
43
43
|
type RESTGetAPIApplicationStopResponse = APIPayload<boolean>;
|
|
44
44
|
/**
|
|
45
|
-
* @see https://docs.vertracloud.app/api-reference/endpoint/
|
|
45
|
+
* @see https://docs.vertracloud.app/api-reference/endpoint/apps/enviroments/get
|
|
46
46
|
*/
|
|
47
47
|
type RESTGetAPIApplicationEnvironmentResponse = APIPayload<APIApplicationEnvironment[]>;
|
|
48
|
+
/**
|
|
49
|
+
* @see https://docs.vertracloud.app/api-reference/endpoint/apps/create
|
|
50
|
+
*/
|
|
51
|
+
type RESTPostAPIApplicationCreateResponse = APIPayload<APIApplication>;
|
|
52
|
+
/**
|
|
53
|
+
* @see https://docs.vertracloud.app/api-reference/endpoint/apps/delete
|
|
54
|
+
*/
|
|
55
|
+
type RESTDeleteAPIApplicationResponse = APIPayload<void>;
|
|
56
|
+
/**
|
|
57
|
+
* @see https://docs.vertracloud.app/api-reference/endpoint/apps/download
|
|
58
|
+
*/
|
|
59
|
+
type RESTGetAPIApplicationDownloadResponse = ArrayBuffer;
|
|
60
|
+
/**
|
|
61
|
+
* @see https://docs.vertracloud.app/api-reference/endpoint/apps/realtime
|
|
62
|
+
*/
|
|
63
|
+
type RESTGetAPIApplicationRealtimeResponse = EventSource;
|
|
64
|
+
/**
|
|
65
|
+
* @see https://docs.vertracloud.app/api-reference/endpoint/apps/start
|
|
66
|
+
*/
|
|
67
|
+
type RESTPostAPIApplicationStartResponse = APIPayload<APIApplicationOperationResponse>;
|
|
68
|
+
/**
|
|
69
|
+
* @see https://docs.vertracloud.app/api-reference/endpoint/apps/stop
|
|
70
|
+
*/
|
|
71
|
+
type RESTPostAPIApplicationStopResponse = APIPayload<APIApplicationOperationResponse>;
|
|
72
|
+
/**
|
|
73
|
+
* @see https://docs.vertracloud.app/api-reference/endpoint/apps/restart
|
|
74
|
+
*/
|
|
75
|
+
type RESTPostAPIApplicationRestartResponse = APIPayload<APIApplicationOperationResponse>;
|
|
76
|
+
/**
|
|
77
|
+
* @see https://docs.vertracloud.app/api-reference/endpoint/apps/updateconfig
|
|
78
|
+
*/
|
|
79
|
+
type RESTPostAPIApplicationUpdateConfigResponse = APIPayload<string>;
|
|
80
|
+
/**
|
|
81
|
+
* @see https://docs.vertracloud.app/api-reference/endpoint/apps/dnsrecords
|
|
82
|
+
*/
|
|
83
|
+
type RESTGetAPIApplicationDnsRecordsResponse = APIPayload<APIDnsRecord[]>;
|
|
84
|
+
/**
|
|
85
|
+
* @see https://docs.vertracloud.app/api-reference/endpoint/apps/customdomain
|
|
86
|
+
*/
|
|
87
|
+
type RESTPostAPIApplicationCustomDomainResponse = APIPayload<APICustomDomainResponse>;
|
|
88
|
+
/**
|
|
89
|
+
* @see https://docs.vertracloud.app/api-reference/endpoint/apps/subdomain
|
|
90
|
+
*/
|
|
91
|
+
type RESTPatchAPIApplicationSubdomainResponse = APIPayload<APISubdomainResponse>;
|
|
92
|
+
/**
|
|
93
|
+
* @see https://docs.vertracloud.app/api-reference/endpoint/apps/webhook
|
|
94
|
+
*/
|
|
95
|
+
type RESTGetAPIApplicationWebhookUrlResponse = APIPayload<APIWebhookUrl>;
|
|
96
|
+
/**
|
|
97
|
+
* @see https://docs.vertracloud.app/api-reference/endpoint/apps/deployments
|
|
98
|
+
*/
|
|
99
|
+
type RESTGetAPIApplicationDeploymentsResponse = APIPayload<APIApplicationDeployment[]>;
|
|
48
100
|
|
|
49
|
-
export type { RESTGetAPIApplicationEnvironmentResponse, RESTGetAPIApplicationFileContentResponse, RESTGetAPIApplicationFilesResponse, RESTGetAPIApplicationLogsResponse, RESTGetAPIApplicationMetricsResponse, RESTGetAPIApplicationResponse, RESTGetAPIApplicationRestartResponse, RESTGetAPIApplicationStartResponse, RESTGetAPIApplicationStatusResponse, RESTGetAPIApplicationStatusShortResponse, RESTGetAPIApplicationStopResponse };
|
|
101
|
+
export type { RESTDeleteAPIApplicationResponse, RESTGetAPIApplicationDeploymentsResponse, RESTGetAPIApplicationDnsRecordsResponse, RESTGetAPIApplicationDownloadResponse, RESTGetAPIApplicationEnvironmentResponse, RESTGetAPIApplicationFileContentResponse, RESTGetAPIApplicationFilesResponse, RESTGetAPIApplicationLogsResponse, RESTGetAPIApplicationMetricsResponse, RESTGetAPIApplicationRealtimeResponse, RESTGetAPIApplicationResponse, RESTGetAPIApplicationRestartResponse, RESTGetAPIApplicationStartResponse, RESTGetAPIApplicationStatusResponse, RESTGetAPIApplicationStatusShortResponse, RESTGetAPIApplicationStopResponse, RESTGetAPIApplicationWebhookUrlResponse, RESTPatchAPIApplicationSubdomainResponse, RESTPostAPIApplicationCreateResponse, RESTPostAPIApplicationCustomDomainResponse, RESTPostAPIApplicationRestartResponse, RESTPostAPIApplicationStartResponse, RESTPostAPIApplicationStopResponse, RESTPostAPIApplicationUpdateConfigResponse };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["application.ts"],"sourcesContent":["import type {
|
|
1
|
+
{"version":3,"sources":["application.ts"],"sourcesContent":["import type {\n\tAPIApplication,\n\tAPIApplicationDeployment,\n\tAPIApplicationEnvironment,\n\tAPIApplicationFile,\n\tAPIApplicationFileContent,\n\tAPIApplicationMetric,\n\tAPIApplicationOperationResponse,\n\tAPIApplicationStatus,\n\tAPIApplicationStatusShort,\n\tAPICustomDomainResponse,\n\tAPIDnsRecord,\n\tAPIPayload,\n\tAPISubdomainResponse,\n\tAPIWebhookUrl,\n} from \"../../v1\";\n\n/**\n * @see https://docs.vertracloud.app/api-reference/endpoint/apps/get\n */\nexport type RESTGetAPIApplicationResponse = APIPayload<APIApplication>;\n\n/**\n * @see https://docs.vertracloud.app/api-reference/endpoint/apps/status\n */\nexport type RESTGetAPIApplicationStatusResponse = APIPayload<APIApplicationStatus>;\n\n/**\n * @see https://docs.vertracloud.app/api-reference/endpoint/apps/allstatus\n */\nexport type RESTGetAPIApplicationStatusShortResponse = APIPayload<APIApplicationStatusShort>;\n\n/**\n * @see https://docs.vertracloud.app/api-reference/endpoint/apps/logs\n */\nexport type RESTGetAPIApplicationLogsResponse = APIPayload<string>;\n\n/**\n * @see https://docs.vertracloud.app/api-reference/endpoint/apps/metrics\n */\nexport type RESTGetAPIApplicationMetricsResponse = APIPayload<APIApplicationMetric[]>;\n\n/**\n * @see https://docs.vertracloud.app/api-reference/endpoint/apps/filemanager/files\n */\nexport type RESTGetAPIApplicationFilesResponse = APIPayload<APIApplicationFile[]>;\n\n/**\n * @see https://docs.vertracloud.app/api-reference/endpoint/apps/filemanager/content\n */\nexport type RESTGetAPIApplicationFileContentResponse = APIPayload<APIApplicationFileContent>;\n\n/**\n * @see https://docs.vertracloud.app/api-reference/endpoint/apps/start\n */\nexport type RESTGetAPIApplicationStartResponse = APIPayload<boolean>;\n\n/**\n * @see https://docs.vertracloud.app/api-reference/endpoint/apps/restart\n */\nexport type RESTGetAPIApplicationRestartResponse = APIPayload<boolean>;\n\n/**\n * @see https://docs.vertracloud.app/api-reference/endpoint/apps/stop\n */\nexport type RESTGetAPIApplicationStopResponse = APIPayload<boolean>;\n\n/**\n * @see https://docs.vertracloud.app/api-reference/endpoint/apps/enviroments/get\n */\nexport type RESTGetAPIApplicationEnvironmentResponse = APIPayload<APIApplicationEnvironment[]>;\n\n/**\n * @see https://docs.vertracloud.app/api-reference/endpoint/apps/create\n */\nexport type RESTPostAPIApplicationCreateResponse = APIPayload<APIApplication>;\n\n/**\n * @see https://docs.vertracloud.app/api-reference/endpoint/apps/delete\n */\nexport type RESTDeleteAPIApplicationResponse = APIPayload<void>;\n\n/**\n * @see https://docs.vertracloud.app/api-reference/endpoint/apps/download\n */\nexport type RESTGetAPIApplicationDownloadResponse = ArrayBuffer;\n\n/**\n * @see https://docs.vertracloud.app/api-reference/endpoint/apps/realtime\n */\nexport type RESTGetAPIApplicationRealtimeResponse = EventSource;\n\n/**\n * @see https://docs.vertracloud.app/api-reference/endpoint/apps/start\n */\nexport type RESTPostAPIApplicationStartResponse = APIPayload<APIApplicationOperationResponse>;\n\n/**\n * @see https://docs.vertracloud.app/api-reference/endpoint/apps/stop\n */\nexport type RESTPostAPIApplicationStopResponse = APIPayload<APIApplicationOperationResponse>;\n\n/**\n * @see https://docs.vertracloud.app/api-reference/endpoint/apps/restart\n */\nexport type RESTPostAPIApplicationRestartResponse = APIPayload<APIApplicationOperationResponse>;\n\n/**\n * @see https://docs.vertracloud.app/api-reference/endpoint/apps/updateconfig\n */\nexport type RESTPostAPIApplicationUpdateConfigResponse = APIPayload<string>;\n\n/**\n * @see https://docs.vertracloud.app/api-reference/endpoint/apps/dnsrecords\n */\nexport type RESTGetAPIApplicationDnsRecordsResponse = APIPayload<APIDnsRecord[]>;\n\n/**\n * @see https://docs.vertracloud.app/api-reference/endpoint/apps/customdomain\n */\nexport type RESTPostAPIApplicationCustomDomainResponse = APIPayload<APICustomDomainResponse>;\n\n/**\n * @see https://docs.vertracloud.app/api-reference/endpoint/apps/subdomain\n */\nexport type RESTPatchAPIApplicationSubdomainResponse = APIPayload<APISubdomainResponse>;\n\n/**\n * @see https://docs.vertracloud.app/api-reference/endpoint/apps/webhook\n */\nexport type RESTGetAPIApplicationWebhookUrlResponse = APIPayload<APIWebhookUrl>;\n\n/**\n * @see https://docs.vertracloud.app/api-reference/endpoint/apps/deployments\n */\nexport type RESTGetAPIApplicationDeploymentsResponse = APIPayload<APIApplicationDeployment[]>;\n"],"mappings":";;;;;;;;;;;;;;;;AAAA;AAAA;","names":[]}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { APIPayload } from '../../common/v1.js';
|
|
2
|
+
import { APICreditBalance, APICreditUsage, APICreditCostEstimate } from '../../payloads/v1/credits.js';
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* @see https://docs.vertracloud.app/api-reference/endpoint/credits/balance
|
|
6
|
+
*/
|
|
7
|
+
type RESTGetAPICreditBalanceResponse = APIPayload<APICreditBalance>;
|
|
8
|
+
/**
|
|
9
|
+
* @see https://docs.vertracloud.app/api-reference/endpoint/credits/usage
|
|
10
|
+
*/
|
|
11
|
+
type RESTGetAPICreditUsageResponse = APIPayload<APICreditUsage[]>;
|
|
12
|
+
/**
|
|
13
|
+
* @see https://docs.vertracloud.app/api-reference/endpoint/credits/cost
|
|
14
|
+
*/
|
|
15
|
+
type RESTGetAPICreditCostEstimateResponse = APIPayload<APICreditCostEstimate>;
|
|
16
|
+
|
|
17
|
+
export type { RESTGetAPICreditBalanceResponse, RESTGetAPICreditCostEstimateResponse, RESTGetAPICreditUsageResponse };
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __copyProps = (to, from, except, desc) => {
|
|
7
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
8
|
+
for (let key of __getOwnPropNames(from))
|
|
9
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
10
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
11
|
+
}
|
|
12
|
+
return to;
|
|
13
|
+
};
|
|
14
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
15
|
+
|
|
16
|
+
// rest/v1/credits.ts
|
|
17
|
+
var credits_exports = {};
|
|
18
|
+
module.exports = __toCommonJS(credits_exports);
|
|
19
|
+
//# sourceMappingURL=credits.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["credits.ts"],"sourcesContent":["import type { APICreditBalance, APICreditCostEstimate, APICreditUsage, APIPayload } from \"../../v1\";\n\n/**\n * @see https://docs.vertracloud.app/api-reference/endpoint/credits/balance\n */\nexport type RESTGetAPICreditBalanceResponse = APIPayload<APICreditBalance>;\n\n/**\n * @see https://docs.vertracloud.app/api-reference/endpoint/credits/usage\n */\nexport type RESTGetAPICreditUsageResponse = APIPayload<APICreditUsage[]>;\n\n/**\n * @see https://docs.vertracloud.app/api-reference/endpoint/credits/cost\n */\nexport type RESTGetAPICreditCostEstimateResponse = APIPayload<APICreditCostEstimate>;\n"],"mappings":";;;;;;;;;;;;;;;;AAAA;AAAA;","names":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
//# sourceMappingURL=credits.mjs.map
|
package/rest/v1/database.d.ts
CHANGED
|
@@ -1,37 +1,61 @@
|
|
|
1
1
|
import { APIPayload } from '../../common/v1.js';
|
|
2
|
-
import { APIDatabase, APIDatabaseStatus, APIDatabaseStatusShort, APIDatabaseMetrics } from '../../payloads/v1/database.js';
|
|
2
|
+
import { APIDatabase, APIDatabaseStatus, APIDatabaseStatusShort, APIDatabaseMetrics, APIDatabasePasswordReset } from '../../payloads/v1/database.js';
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
|
-
* @see https://docs.vertracloud.app/api-reference/endpoint/databases
|
|
5
|
+
* @see https://docs.vertracloud.app/api-reference/endpoint/databases/get
|
|
6
6
|
*/
|
|
7
7
|
type RESTGetAPIDatabaseResponse = APIPayload<APIDatabase>;
|
|
8
8
|
/**
|
|
9
|
-
* @see https://docs.vertracloud.app/api-reference/endpoint/databases
|
|
9
|
+
* @see https://docs.vertracloud.app/api-reference/endpoint/databases/status
|
|
10
10
|
*/
|
|
11
11
|
type RESTGetAPIDatabaseStatusResponse = APIPayload<APIDatabaseStatus>;
|
|
12
12
|
/**
|
|
13
|
-
* @see https://docs.vertracloud.app/api-reference/endpoint/databases
|
|
13
|
+
* @see https://docs.vertracloud.app/api-reference/endpoint/databases/allstatus
|
|
14
14
|
*/
|
|
15
15
|
type RESTGetAPIDatabaseStatusShortResponse = APIPayload<APIDatabaseStatusShort>;
|
|
16
16
|
/**
|
|
17
|
-
* @see https://docs.vertracloud.app/api-reference/endpoint/databases
|
|
18
|
-
*/
|
|
19
|
-
type RESTGetAPIDatabaseLogsResponse = APIPayload<string>;
|
|
20
|
-
/**
|
|
21
|
-
* @see https://docs.vertracloud.app/api-reference/endpoint/databases
|
|
17
|
+
* @see https://docs.vertracloud.app/api-reference/endpoint/databases/metrics
|
|
22
18
|
*/
|
|
23
19
|
type RESTGetAPIDatabaseMetricsResponse = APIPayload<APIDatabaseMetrics[]>;
|
|
24
20
|
/**
|
|
25
|
-
* @see https://docs.vertracloud.app/api-reference/endpoint/databases
|
|
21
|
+
* @see https://docs.vertracloud.app/api-reference/endpoint/databases/start
|
|
26
22
|
*/
|
|
27
23
|
type RESTGetAPIDatabaseStartResponse = APIPayload<boolean>;
|
|
28
24
|
/**
|
|
29
|
-
* @see https://docs.vertracloud.app/api-reference/endpoint/databases
|
|
25
|
+
* @see https://docs.vertracloud.app/api-reference/endpoint/databases/restart
|
|
30
26
|
*/
|
|
31
27
|
type RESTGetAPIDatabaseRestartResponse = APIPayload<boolean>;
|
|
32
28
|
/**
|
|
33
|
-
* @see https://docs.vertracloud.app/api-reference/endpoint/databases
|
|
29
|
+
* @see https://docs.vertracloud.app/api-reference/endpoint/databases/stop
|
|
34
30
|
*/
|
|
35
31
|
type RESTGetAPIDatabaseStopResponse = APIPayload<boolean>;
|
|
32
|
+
/**
|
|
33
|
+
* @see https://docs.vertracloud.app/api-reference/endpoint/databases/create
|
|
34
|
+
*/
|
|
35
|
+
type RESTPostAPIDatabaseCreateResponse = APIPayload<APIDatabase>;
|
|
36
|
+
/**
|
|
37
|
+
* @see https://docs.vertracloud.app/api-reference/endpoint/databases/delete
|
|
38
|
+
*/
|
|
39
|
+
type RESTDeleteAPIDatabaseResponse = APIPayload<void>;
|
|
40
|
+
/**
|
|
41
|
+
* @see https://docs.vertracloud.app/api-reference/endpoint/databases/update
|
|
42
|
+
*/
|
|
43
|
+
type RESTPutAPIDatabaseUpdateResponse = APIPayload<APIDatabase>;
|
|
44
|
+
/**
|
|
45
|
+
* @see https://docs.vertracloud.app/api-reference/endpoint/databases/reset
|
|
46
|
+
*/
|
|
47
|
+
type RESTPostAPIDatabaseResetResponse = APIPayload<void>;
|
|
48
|
+
/**
|
|
49
|
+
* @see https://docs.vertracloud.app/api-reference/endpoint/databases/credentials/get
|
|
50
|
+
*/
|
|
51
|
+
type RESTGetAPIDatabaseCertificateResponse = ArrayBuffer;
|
|
52
|
+
/**
|
|
53
|
+
* @see https://docs.vertracloud.app/api-reference/endpoint/databases/credentials/reset
|
|
54
|
+
*/
|
|
55
|
+
type RESTPostAPIDatabaseResetCertificateResponse = APIPayload<void>;
|
|
56
|
+
/**
|
|
57
|
+
* @see https://docs.vertracloud.app/api-reference/endpoint/databases/credentials/resetpassword
|
|
58
|
+
*/
|
|
59
|
+
type RESTPostAPIDatabaseResetPasswordResponse = APIPayload<APIDatabasePasswordReset>;
|
|
36
60
|
|
|
37
|
-
export type {
|
|
61
|
+
export type { RESTDeleteAPIDatabaseResponse, RESTGetAPIDatabaseCertificateResponse, RESTGetAPIDatabaseMetricsResponse, RESTGetAPIDatabaseResponse, RESTGetAPIDatabaseRestartResponse, RESTGetAPIDatabaseStartResponse, RESTGetAPIDatabaseStatusResponse, RESTGetAPIDatabaseStatusShortResponse, RESTGetAPIDatabaseStopResponse, RESTPostAPIDatabaseCreateResponse, RESTPostAPIDatabaseResetCertificateResponse, RESTPostAPIDatabaseResetPasswordResponse, RESTPostAPIDatabaseResetResponse, RESTPutAPIDatabaseUpdateResponse };
|
package/rest/v1/database.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["database.ts"],"sourcesContent":["import type { APIDatabase, APIDatabaseMetrics, APIDatabaseStatus, APIDatabaseStatusShort, APIPayload } 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 = APIPayload<APIDatabaseStatusShort>;\n\n/**\n * @see https://docs.vertracloud.app/api-reference/endpoint/databases\n */\nexport type
|
|
1
|
+
{"version":3,"sources":["database.ts"],"sourcesContent":["import type { APIDatabase, APIDatabaseMetrics, APIDatabasePasswordReset, APIDatabaseStatus, APIDatabaseStatusShort, APIPayload } from \"../../v1\";\n\n/**\n * @see https://docs.vertracloud.app/api-reference/endpoint/databases/get\n */\nexport type RESTGetAPIDatabaseResponse = APIPayload<APIDatabase>;\n\n/**\n * @see https://docs.vertracloud.app/api-reference/endpoint/databases/status\n */\nexport type RESTGetAPIDatabaseStatusResponse = APIPayload<APIDatabaseStatus>;\n\n/**\n * @see https://docs.vertracloud.app/api-reference/endpoint/databases/allstatus\n */\nexport type RESTGetAPIDatabaseStatusShortResponse = APIPayload<APIDatabaseStatusShort>;\n\n/**\n * @see https://docs.vertracloud.app/api-reference/endpoint/databases/metrics\n */\nexport type RESTGetAPIDatabaseMetricsResponse = APIPayload<APIDatabaseMetrics[]>;\n\n/**\n * @see https://docs.vertracloud.app/api-reference/endpoint/databases/start\n */\nexport type RESTGetAPIDatabaseStartResponse = APIPayload<boolean>;\n\n/**\n * @see https://docs.vertracloud.app/api-reference/endpoint/databases/restart\n */\nexport type RESTGetAPIDatabaseRestartResponse = APIPayload<boolean>;\n\n/**\n * @see https://docs.vertracloud.app/api-reference/endpoint/databases/stop\n */\nexport type RESTGetAPIDatabaseStopResponse = APIPayload<boolean>;\n\n/**\n * @see https://docs.vertracloud.app/api-reference/endpoint/databases/create\n */\nexport type RESTPostAPIDatabaseCreateResponse = APIPayload<APIDatabase>;\n\n/**\n * @see https://docs.vertracloud.app/api-reference/endpoint/databases/delete\n */\nexport type RESTDeleteAPIDatabaseResponse = APIPayload<void>;\n\n/**\n * @see https://docs.vertracloud.app/api-reference/endpoint/databases/update\n */\nexport type RESTPutAPIDatabaseUpdateResponse = APIPayload<APIDatabase>;\n\n/**\n * @see https://docs.vertracloud.app/api-reference/endpoint/databases/reset\n */\nexport type RESTPostAPIDatabaseResetResponse = APIPayload<void>;\n\n/**\n * @see https://docs.vertracloud.app/api-reference/endpoint/databases/credentials/get\n */\nexport type RESTGetAPIDatabaseCertificateResponse = ArrayBuffer;\n\n/**\n * @see https://docs.vertracloud.app/api-reference/endpoint/databases/credentials/reset\n */\nexport type RESTPostAPIDatabaseResetCertificateResponse = APIPayload<void>;\n\n/**\n * @see https://docs.vertracloud.app/api-reference/endpoint/databases/credentials/resetpassword\n */\nexport type RESTPostAPIDatabaseResetPasswordResponse = APIPayload<APIDatabasePasswordReset>;\n"],"mappings":";;;;;;;;;;;;;;;;AAAA;AAAA;","names":[]}
|
package/rest/v1/index.d.ts
CHANGED
|
@@ -1,14 +1,25 @@
|
|
|
1
|
-
export {
|
|
2
|
-
export {
|
|
3
|
-
export {
|
|
1
|
+
export { RESTGetAPIActivitiesResponse, RESTGetAPIActivityResponse } from './activity.js';
|
|
2
|
+
export { RESTDeleteAPIApplicationResponse, RESTGetAPIApplicationDeploymentsResponse, RESTGetAPIApplicationDnsRecordsResponse, RESTGetAPIApplicationDownloadResponse, RESTGetAPIApplicationEnvironmentResponse, RESTGetAPIApplicationFileContentResponse, RESTGetAPIApplicationFilesResponse, RESTGetAPIApplicationLogsResponse, RESTGetAPIApplicationMetricsResponse, RESTGetAPIApplicationRealtimeResponse, RESTGetAPIApplicationResponse, RESTGetAPIApplicationRestartResponse, RESTGetAPIApplicationStartResponse, RESTGetAPIApplicationStatusResponse, RESTGetAPIApplicationStatusShortResponse, RESTGetAPIApplicationStopResponse, RESTGetAPIApplicationWebhookUrlResponse, RESTPatchAPIApplicationSubdomainResponse, RESTPostAPIApplicationCreateResponse, RESTPostAPIApplicationCustomDomainResponse, RESTPostAPIApplicationRestartResponse, RESTPostAPIApplicationStartResponse, RESTPostAPIApplicationStopResponse, RESTPostAPIApplicationUpdateConfigResponse } from './application.js';
|
|
3
|
+
export { RESTGetAPICreditBalanceResponse, RESTGetAPICreditCostEstimateResponse, RESTGetAPICreditUsageResponse } from './credits.js';
|
|
4
|
+
export { RESTDeleteAPIDatabaseResponse, RESTGetAPIDatabaseCertificateResponse, RESTGetAPIDatabaseMetricsResponse, RESTGetAPIDatabaseResponse, RESTGetAPIDatabaseRestartResponse, RESTGetAPIDatabaseStartResponse, RESTGetAPIDatabaseStatusResponse, RESTGetAPIDatabaseStatusShortResponse, RESTGetAPIDatabaseStopResponse, RESTPostAPIDatabaseCreateResponse, RESTPostAPIDatabaseResetCertificateResponse, RESTPostAPIDatabaseResetPasswordResponse, RESTPostAPIDatabaseResetResponse, RESTPutAPIDatabaseUpdateResponse } from './database.js';
|
|
5
|
+
export { RESTGetAPINotificationsResponse } from './notification.js';
|
|
6
|
+
export { RESTGetAPIOrderListResponse, RESTGetAPIOrderStatusResponse, RESTPostAPIOrderCreateResponse, RESTPostAPIPixPaymentResponse } from './orders.js';
|
|
7
|
+
export { RESTPostAPIRedeemResponse } from './redeem.js';
|
|
8
|
+
export { RESTGetAPIGroupedSnapshotsResponse, RESTGetAPISnapshotDownloadResponse, RESTGetAPISnapshotResponse, RESTGetAPISnapshotsResponse, RESTPostAPISnapshotCreateResponse, RESTPostAPISnapshotRestoreResponse } from './snapshot.js';
|
|
4
9
|
export { RESTGetAPIStatusResponse } from './status.js';
|
|
5
|
-
export { RESTGetAPIUserInfoResponse } from './user.js';
|
|
6
|
-
export {
|
|
10
|
+
export { RESTGetAPIUserInfoResponse, RESTGetAPIUserSessionsResponse, RESTPostAPIUserDowngradeResponse, RESTPostAPIUserGenerateApiKeyResponse } from './user.js';
|
|
11
|
+
export { WingGetAppDownloadResponse, WingGetAppLogsResponse, WingGetAppStatusResponse, WingGetDatabaseCertificateResponse, WingGetDatabaseStatusResponse, WingPostAppAllStatusResponse, WingPostAppCreateResponse, WingPostAppFileUploadResponse, WingPostAppRebuildResponse, WingPostDatabaseAllStatusResponse, WingPostDatabaseCreateResponse, WingPostDatabaseRebuildResponse, WingPostDatabaseResetCertificateResponse, WingPostDatabaseResetResponse, WingPostSnapshotRestoreResponse } from './wing.js';
|
|
12
|
+
export { RESTDeleteAPIWorkspaceResponse, RESTGetAPIWorkspaceInfoResponse, RESTGetAPIWorkspaceResponse, RESTGetAPIWorkspacesResponse, RESTPostAPIWorkspaceCreateResponse, RESTPostAPIWorkspaceMemberAddResponse, RESTPutAPIWorkspaceMemberRoleResponse, RESTPutAPIWorkspaceUpdateResponse } from './workspace.js';
|
|
7
13
|
import '../../common/v1.js';
|
|
14
|
+
import '../../payloads/v1/activity.js';
|
|
8
15
|
import '../../payloads/v1/application.js';
|
|
16
|
+
import '../../payloads/v1/credits.js';
|
|
9
17
|
import '../../payloads/v1/database.js';
|
|
18
|
+
import '../../payloads/v1/notification.js';
|
|
19
|
+
import '../../payloads/v1/orders.js';
|
|
20
|
+
import '../../payloads/v1/redeem.js';
|
|
10
21
|
import '../../payloads/v1/snapshot.js';
|
|
11
22
|
import '../../payloads/v1/status.js';
|
|
12
23
|
import '../../payloads/v1/user.js';
|
|
13
|
-
import '../../payloads/v1/
|
|
24
|
+
import '../../payloads/v1/wing.js';
|
|
14
25
|
import '../../payloads/v1/workspace.js';
|
package/rest/v1/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["index.ts"],"sourcesContent":["export * from \"./application\";\nexport * from \"./database\";\nexport * from \"./snapshot\";\nexport * from \"./status\";\nexport * from \"./user\";\nexport * from \"./workspace\";\n"],"mappings":";;;;;;;;;;;;;;;;AAAA;AAAA;","names":[]}
|
|
1
|
+
{"version":3,"sources":["index.ts"],"sourcesContent":["export * from \"./activity\";\nexport * from \"./application\";\nexport * from \"./credits\";\nexport * from \"./database\";\nexport * from \"./notification\";\nexport * from \"./orders\";\nexport * from \"./redeem\";\nexport * from \"./snapshot\";\nexport * from \"./status\";\nexport * from \"./user\";\nexport * from \"./wing\";\nexport * from \"./workspace\";\n"],"mappings":";;;;;;;;;;;;;;;;AAAA;AAAA;","names":[]}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { APIPayload } from '../../common/v1.js';
|
|
2
|
+
import { APINotification } from '../../payloads/v1/notification.js';
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* @see https://docs.vertracloud.app/api-reference/endpoint/notifications
|
|
6
|
+
*/
|
|
7
|
+
type RESTGetAPINotificationsResponse = APIPayload<APINotification[]>;
|
|
8
|
+
|
|
9
|
+
export type { RESTGetAPINotificationsResponse };
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __copyProps = (to, from, except, desc) => {
|
|
7
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
8
|
+
for (let key of __getOwnPropNames(from))
|
|
9
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
10
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
11
|
+
}
|
|
12
|
+
return to;
|
|
13
|
+
};
|
|
14
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
15
|
+
|
|
16
|
+
// rest/v1/notification.ts
|
|
17
|
+
var notification_exports = {};
|
|
18
|
+
module.exports = __toCommonJS(notification_exports);
|
|
19
|
+
//# sourceMappingURL=notification.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["notification.ts"],"sourcesContent":["import type { APINotification, APIPayload } from \"../../v1\";\n\n/**\n * @see https://docs.vertracloud.app/api-reference/endpoint/notifications\n */\nexport type RESTGetAPINotificationsResponse = APIPayload<APINotification[]>;\n"],"mappings":";;;;;;;;;;;;;;;;AAAA;AAAA;","names":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
//# sourceMappingURL=notification.mjs.map
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { APIPayload } from '../../common/v1.js';
|
|
2
|
+
import { APIOrderCreateResponse, APIOrderStatus, APIOrderListItem, APIPixPaymentResponse } from '../../payloads/v1/orders.js';
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* @see https://docs.vertracloud.app/api-reference/endpoint/orders/create
|
|
6
|
+
*/
|
|
7
|
+
type RESTPostAPIOrderCreateResponse = APIPayload<APIOrderCreateResponse>;
|
|
8
|
+
/**
|
|
9
|
+
* @see https://docs.vertracloud.app/api-reference/endpoint/orders/status
|
|
10
|
+
*/
|
|
11
|
+
type RESTGetAPIOrderStatusResponse = APIPayload<APIOrderStatus>;
|
|
12
|
+
/**
|
|
13
|
+
* @see https://docs.vertracloud.app/api-reference/endpoint/orders/list
|
|
14
|
+
*/
|
|
15
|
+
type RESTGetAPIOrderListResponse = APIPayload<APIOrderListItem[]>;
|
|
16
|
+
/**
|
|
17
|
+
* @see https://docs.vertracloud.app/api-reference/endpoint/orders/pix
|
|
18
|
+
*/
|
|
19
|
+
type RESTPostAPIPixPaymentResponse = APIPayload<APIPixPaymentResponse>;
|
|
20
|
+
|
|
21
|
+
export type { RESTGetAPIOrderListResponse, RESTGetAPIOrderStatusResponse, RESTPostAPIOrderCreateResponse, RESTPostAPIPixPaymentResponse };
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __copyProps = (to, from, except, desc) => {
|
|
7
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
8
|
+
for (let key of __getOwnPropNames(from))
|
|
9
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
10
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
11
|
+
}
|
|
12
|
+
return to;
|
|
13
|
+
};
|
|
14
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
15
|
+
|
|
16
|
+
// rest/v1/orders.ts
|
|
17
|
+
var orders_exports = {};
|
|
18
|
+
module.exports = __toCommonJS(orders_exports);
|
|
19
|
+
//# sourceMappingURL=orders.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["orders.ts"],"sourcesContent":["import type { APIOrderCreateResponse, APIOrderListItem, APIOrderStatus, APIPayload, APIPixPaymentResponse } from \"../../v1\";\n\n/**\n * @see https://docs.vertracloud.app/api-reference/endpoint/orders/create\n */\nexport type RESTPostAPIOrderCreateResponse = APIPayload<APIOrderCreateResponse>;\n\n/**\n * @see https://docs.vertracloud.app/api-reference/endpoint/orders/status\n */\nexport type RESTGetAPIOrderStatusResponse = APIPayload<APIOrderStatus>;\n\n/**\n * @see https://docs.vertracloud.app/api-reference/endpoint/orders/list\n */\nexport type RESTGetAPIOrderListResponse = APIPayload<APIOrderListItem[]>;\n\n/**\n * @see https://docs.vertracloud.app/api-reference/endpoint/orders/pix\n */\nexport type RESTPostAPIPixPaymentResponse = APIPayload<APIPixPaymentResponse>;\n"],"mappings":";;;;;;;;;;;;;;;;AAAA;AAAA;","names":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
//# sourceMappingURL=orders.mjs.map
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { APIPayload } from '../../common/v1.js';
|
|
2
|
+
import { APIRedeemResponse } from '../../payloads/v1/redeem.js';
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* @see https://docs.vertracloud.app/api-reference/endpoint/redeem
|
|
6
|
+
*/
|
|
7
|
+
type RESTPostAPIRedeemResponse = APIPayload<APIRedeemResponse>;
|
|
8
|
+
|
|
9
|
+
export type { RESTPostAPIRedeemResponse };
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __copyProps = (to, from, except, desc) => {
|
|
7
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
8
|
+
for (let key of __getOwnPropNames(from))
|
|
9
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
10
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
11
|
+
}
|
|
12
|
+
return to;
|
|
13
|
+
};
|
|
14
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
15
|
+
|
|
16
|
+
// rest/v1/redeem.ts
|
|
17
|
+
var redeem_exports = {};
|
|
18
|
+
module.exports = __toCommonJS(redeem_exports);
|
|
19
|
+
//# sourceMappingURL=redeem.js.map
|