@nixopus/api-client 0.0.7 → 0.0.8
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/dist/index.d.mts +1279 -2
- package/dist/index.d.ts +1279 -2
- package/dist/index.js +165 -1
- package/dist/index.mjs +153 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -77,6 +77,8 @@ __export(index_exports, {
|
|
|
77
77
|
deployProjectMutation: () => deployProjectMutation,
|
|
78
78
|
duplicateProject: () => duplicateProject,
|
|
79
79
|
duplicateProjectMutation: () => duplicateProjectMutation,
|
|
80
|
+
executeACommandOnTheHostMachine: () => executeACommandOnTheHostMachine,
|
|
81
|
+
executeACommandOnTheHostMachineMutation: () => executeACommandOnTheHostMachineMutation,
|
|
80
82
|
forkExtension: () => forkExtension,
|
|
81
83
|
forkExtensionMutation: () => forkExtensionMutation,
|
|
82
84
|
generateRandomSubdomain: () => generateRandomSubdomain,
|
|
@@ -124,6 +126,9 @@ __export(index_exports, {
|
|
|
124
126
|
getHealthChecks: () => getHealthChecks,
|
|
125
127
|
getHealthChecksOptions: () => getHealthChecksOptions,
|
|
126
128
|
getHealthChecksQueryKey: () => getHealthChecksQueryKey,
|
|
129
|
+
getMachineSystemStats: () => getMachineSystemStats,
|
|
130
|
+
getMachineSystemStatsOptions: () => getMachineSystemStatsOptions,
|
|
131
|
+
getMachineSystemStatsQueryKey: () => getMachineSystemStatsQueryKey,
|
|
127
132
|
getNotificationPreferences: () => getNotificationPreferences,
|
|
128
133
|
getNotificationPreferencesOptions: () => getNotificationPreferencesOptions,
|
|
129
134
|
getNotificationPreferencesQueryKey: () => getNotificationPreferencesQueryKey,
|
|
@@ -391,6 +396,8 @@ __export(index_exports, {
|
|
|
391
396
|
zDuplicateProjectResponse: () => zDuplicateProjectResponse,
|
|
392
397
|
zEnvironmentsInFamilyResponse: () => zEnvironmentsInFamilyResponse,
|
|
393
398
|
zErrorEnvelope: () => zErrorEnvelope,
|
|
399
|
+
zExecuteACommandOnTheHostMachineData: () => zExecuteACommandOnTheHostMachineData,
|
|
400
|
+
zExecuteACommandOnTheHostMachineResponse: () => zExecuteACommandOnTheHostMachineResponse,
|
|
394
401
|
zExecutionResponse: () => zExecutionResponse,
|
|
395
402
|
zExtension: () => zExtension,
|
|
396
403
|
zExtensionExecution: () => zExtensionExecution,
|
|
@@ -429,6 +436,8 @@ __export(index_exports, {
|
|
|
429
436
|
zGetHealthCheckStatsResponse: () => zGetHealthCheckStatsResponse,
|
|
430
437
|
zGetHealthChecksData: () => zGetHealthChecksData,
|
|
431
438
|
zGetHealthChecksResponse: () => zGetHealthChecksResponse,
|
|
439
|
+
zGetMachineSystemStatsData: () => zGetMachineSystemStatsData,
|
|
440
|
+
zGetMachineSystemStatsResponse: () => zGetMachineSystemStatsResponse,
|
|
432
441
|
zGetNotificationPreferencesData: () => zGetNotificationPreferencesData,
|
|
433
442
|
zGetNotificationPreferencesResponse: () => zGetNotificationPreferencesResponse,
|
|
434
443
|
zGetSmtpConfigData: () => zGetSmtpConfigData,
|
|
@@ -452,6 +461,8 @@ __export(index_exports, {
|
|
|
452
461
|
zHealthCheckResult: () => zHealthCheckResult,
|
|
453
462
|
zHealthCheckResultsResponse: () => zHealthCheckResultsResponse,
|
|
454
463
|
zHealthCheckStatsResponse: () => zHealthCheckStatsResponse,
|
|
464
|
+
zHostExecRequest: () => zHostExecRequest,
|
|
465
|
+
zHostExecResponse: () => zHostExecResponse,
|
|
455
466
|
zHttpError: () => zHttpError,
|
|
456
467
|
zIndexApplicationCodebaseData: () => zIndexApplicationCodebaseData,
|
|
457
468
|
zIndexApplicationCodebaseResponse: () => zIndexApplicationCodebaseResponse,
|
|
@@ -584,6 +595,7 @@ __export(index_exports, {
|
|
|
584
595
|
zStartContainerResponse: () => zStartContainerResponse,
|
|
585
596
|
zStopContainerData: () => zStopContainerData,
|
|
586
597
|
zStopContainerResponse: () => zStopContainerResponse,
|
|
598
|
+
zSystemStatsResponse: () => zSystemStatsResponse,
|
|
587
599
|
zToggleHealthCheckData: () => zToggleHealthCheckData,
|
|
588
600
|
zToggleHealthCheckRequest: () => zToggleHealthCheckRequest,
|
|
589
601
|
zToggleHealthCheckResponse: () => zToggleHealthCheckResponse,
|
|
@@ -1819,6 +1831,15 @@ var pauseLiveDeployService = (options) => (options.client ?? client).post({
|
|
|
1819
1831
|
...options.headers
|
|
1820
1832
|
}
|
|
1821
1833
|
});
|
|
1834
|
+
var executeACommandOnTheHostMachine = (options) => (options.client ?? client).post({
|
|
1835
|
+
url: "/api/v1/machine/exec",
|
|
1836
|
+
...options,
|
|
1837
|
+
headers: {
|
|
1838
|
+
"Content-Type": "*/*",
|
|
1839
|
+
...options.headers
|
|
1840
|
+
}
|
|
1841
|
+
});
|
|
1842
|
+
var getMachineSystemStats = (options) => (options?.client ?? client).get({ url: "/api/v1/machine/stats", ...options });
|
|
1822
1843
|
var getNotificationPreferences = (options) => (options?.client ?? client).get({ url: "/api/v1/notification/preferences", ...options });
|
|
1823
1844
|
var updateNotificationPreferences = (options) => (options.client ?? client).post({
|
|
1824
1845
|
url: "/api/v1/notification/preferences",
|
|
@@ -3205,6 +3226,32 @@ var pauseLiveDeployServiceMutation = (options) => {
|
|
|
3205
3226
|
};
|
|
3206
3227
|
return mutationOptions;
|
|
3207
3228
|
};
|
|
3229
|
+
var executeACommandOnTheHostMachineMutation = (options) => {
|
|
3230
|
+
const mutationOptions = {
|
|
3231
|
+
mutationFn: async (fnOptions) => {
|
|
3232
|
+
const { data } = await executeACommandOnTheHostMachine({
|
|
3233
|
+
...options,
|
|
3234
|
+
...fnOptions,
|
|
3235
|
+
throwOnError: true
|
|
3236
|
+
});
|
|
3237
|
+
return data;
|
|
3238
|
+
}
|
|
3239
|
+
};
|
|
3240
|
+
return mutationOptions;
|
|
3241
|
+
};
|
|
3242
|
+
var getMachineSystemStatsQueryKey = (options) => createQueryKey("getMachineSystemStats", options);
|
|
3243
|
+
var getMachineSystemStatsOptions = (options) => (0, import_react_query.queryOptions)({
|
|
3244
|
+
queryFn: async ({ queryKey, signal }) => {
|
|
3245
|
+
const { data } = await getMachineSystemStats({
|
|
3246
|
+
...options,
|
|
3247
|
+
...queryKey[0],
|
|
3248
|
+
signal,
|
|
3249
|
+
throwOnError: true
|
|
3250
|
+
});
|
|
3251
|
+
return data;
|
|
3252
|
+
},
|
|
3253
|
+
queryKey: getMachineSystemStatsQueryKey(options)
|
|
3254
|
+
});
|
|
3208
3255
|
var getNotificationPreferencesQueryKey = (options) => createQueryKey("getNotificationPreferences", options);
|
|
3209
3256
|
var getNotificationPreferencesOptions = (options) => (0, import_react_query.queryOptions)({
|
|
3210
3257
|
queryFn: async ({ queryKey, signal }) => {
|
|
@@ -4192,6 +4239,18 @@ var zHealthCheckStatsResponse = import_zod.z.object({
|
|
|
4192
4239
|
message: import_zod.z.string().optional(),
|
|
4193
4240
|
status: import_zod.z.string().optional()
|
|
4194
4241
|
});
|
|
4242
|
+
var zHostExecRequest = import_zod.z.object({
|
|
4243
|
+
command: import_zod.z.string()
|
|
4244
|
+
});
|
|
4245
|
+
var zHostExecResponse = import_zod.z.object({
|
|
4246
|
+
data: import_zod.z.object({
|
|
4247
|
+
exit_code: import_zod.z.number().int().optional(),
|
|
4248
|
+
stderr: import_zod.z.string().optional(),
|
|
4249
|
+
stdout: import_zod.z.string().optional()
|
|
4250
|
+
}).optional(),
|
|
4251
|
+
message: import_zod.z.string().optional(),
|
|
4252
|
+
status: import_zod.z.string().optional()
|
|
4253
|
+
});
|
|
4195
4254
|
var zIndexCodebaseResponse = import_zod.z.object({
|
|
4196
4255
|
data: import_zod.z.object({
|
|
4197
4256
|
indexed: import_zod.z.number().int().optional(),
|
|
@@ -4877,6 +4936,72 @@ var zSendNotificationResponse = import_zod.z.object({
|
|
|
4877
4936
|
message: import_zod.z.string().optional(),
|
|
4878
4937
|
status: import_zod.z.string().optional()
|
|
4879
4938
|
});
|
|
4939
|
+
var zSystemStatsResponse = import_zod.z.object({
|
|
4940
|
+
data: import_zod.z.object({
|
|
4941
|
+
architecture: import_zod.z.string().optional(),
|
|
4942
|
+
cpu: import_zod.z.object({
|
|
4943
|
+
overall: import_zod.z.number().optional(),
|
|
4944
|
+
per_core: import_zod.z.array(import_zod.z.object({
|
|
4945
|
+
core_id: import_zod.z.number().int().optional(),
|
|
4946
|
+
usage: import_zod.z.number().optional()
|
|
4947
|
+
})).optional()
|
|
4948
|
+
}).optional(),
|
|
4949
|
+
cpu_cores: import_zod.z.number().int().optional(),
|
|
4950
|
+
cpu_info: import_zod.z.string().optional(),
|
|
4951
|
+
disk: import_zod.z.object({
|
|
4952
|
+
allMounts: import_zod.z.array(import_zod.z.object({
|
|
4953
|
+
avail: import_zod.z.string().optional(),
|
|
4954
|
+
capacity: import_zod.z.string().optional(),
|
|
4955
|
+
filesystem: import_zod.z.string().optional(),
|
|
4956
|
+
mountPoint: import_zod.z.string().optional(),
|
|
4957
|
+
size: import_zod.z.string().optional(),
|
|
4958
|
+
used: import_zod.z.string().optional()
|
|
4959
|
+
})).optional(),
|
|
4960
|
+
available: import_zod.z.number().optional(),
|
|
4961
|
+
mountPoint: import_zod.z.string().optional(),
|
|
4962
|
+
percentage: import_zod.z.number().optional(),
|
|
4963
|
+
total: import_zod.z.number().optional(),
|
|
4964
|
+
used: import_zod.z.number().optional()
|
|
4965
|
+
}).optional(),
|
|
4966
|
+
hostname: import_zod.z.string().optional(),
|
|
4967
|
+
kernel_version: import_zod.z.string().optional(),
|
|
4968
|
+
load: import_zod.z.object({
|
|
4969
|
+
fifteenMin: import_zod.z.number().optional(),
|
|
4970
|
+
fiveMin: import_zod.z.number().optional(),
|
|
4971
|
+
oneMin: import_zod.z.number().optional(),
|
|
4972
|
+
uptime: import_zod.z.string().optional()
|
|
4973
|
+
}).optional(),
|
|
4974
|
+
memory: import_zod.z.object({
|
|
4975
|
+
percentage: import_zod.z.number().optional(),
|
|
4976
|
+
rawInfo: import_zod.z.string().optional(),
|
|
4977
|
+
total: import_zod.z.number().optional(),
|
|
4978
|
+
used: import_zod.z.number().optional()
|
|
4979
|
+
}).optional(),
|
|
4980
|
+
network: import_zod.z.object({
|
|
4981
|
+
downloadSpeed: import_zod.z.number().optional(),
|
|
4982
|
+
interfaces: import_zod.z.array(import_zod.z.object({
|
|
4983
|
+
bytesRecv: import_zod.z.number().int().gte(0).lte(18446744073709552e3).optional(),
|
|
4984
|
+
bytesSent: import_zod.z.number().int().gte(0).lte(18446744073709552e3).optional(),
|
|
4985
|
+
dropIn: import_zod.z.number().int().gte(0).lte(18446744073709552e3).optional(),
|
|
4986
|
+
dropOut: import_zod.z.number().int().gte(0).lte(18446744073709552e3).optional(),
|
|
4987
|
+
errorIn: import_zod.z.number().int().gte(0).lte(18446744073709552e3).optional(),
|
|
4988
|
+
errorOut: import_zod.z.number().int().gte(0).lte(18446744073709552e3).optional(),
|
|
4989
|
+
name: import_zod.z.string().optional(),
|
|
4990
|
+
packetsRecv: import_zod.z.number().int().gte(0).lte(18446744073709552e3).optional(),
|
|
4991
|
+
packetsSent: import_zod.z.number().int().gte(0).lte(18446744073709552e3).optional()
|
|
4992
|
+
})).optional(),
|
|
4993
|
+
totalBytesRecv: import_zod.z.number().int().gte(0).lte(18446744073709552e3).optional(),
|
|
4994
|
+
totalBytesSent: import_zod.z.number().int().gte(0).lte(18446744073709552e3).optional(),
|
|
4995
|
+
totalPacketsRecv: import_zod.z.number().int().gte(0).lte(18446744073709552e3).optional(),
|
|
4996
|
+
totalPacketsSent: import_zod.z.number().int().gte(0).lte(18446744073709552e3).optional(),
|
|
4997
|
+
uploadSpeed: import_zod.z.number().optional()
|
|
4998
|
+
}).optional(),
|
|
4999
|
+
os_type: import_zod.z.string().optional(),
|
|
5000
|
+
timestamp: import_zod.z.string().datetime().optional()
|
|
5001
|
+
}).optional(),
|
|
5002
|
+
message: import_zod.z.string().optional(),
|
|
5003
|
+
status: import_zod.z.string().optional()
|
|
5004
|
+
});
|
|
4880
5005
|
var zToggleHealthCheckRequest = import_zod.z.object({
|
|
4881
5006
|
application_id: import_zod.z.string().uuid(),
|
|
4882
5007
|
enabled: import_zod.z.boolean().optional()
|
|
@@ -5576,7 +5701,16 @@ var zApplicationDeployment = import_zod.z.object({
|
|
|
5576
5701
|
id: import_zod.z.string().uuid().optional(),
|
|
5577
5702
|
image_s3_key: import_zod.z.string().optional(),
|
|
5578
5703
|
image_size: import_zod.z.coerce.bigint().min(BigInt("-9223372036854775808"), { message: "Invalid value: Expected int64 to be >= -9223372036854775808" }).max(BigInt("9223372036854775807"), { message: "Invalid value: Expected int64 to be <= 9223372036854775807" }).optional(),
|
|
5579
|
-
logs: import_zod.z.array(import_zod.z.
|
|
5704
|
+
logs: import_zod.z.array(import_zod.z.object({
|
|
5705
|
+
application: zApplication.optional(),
|
|
5706
|
+
application_deployment: import_zod.z.lazy(() => zApplicationDeployment).optional(),
|
|
5707
|
+
application_deployment_id: import_zod.z.string().uuid().optional(),
|
|
5708
|
+
application_id: import_zod.z.string().uuid().optional(),
|
|
5709
|
+
created_at: import_zod.z.string().datetime().optional(),
|
|
5710
|
+
id: import_zod.z.string().uuid().optional(),
|
|
5711
|
+
log: import_zod.z.string().optional(),
|
|
5712
|
+
updated_at: import_zod.z.string().datetime().optional()
|
|
5713
|
+
})).optional(),
|
|
5580
5714
|
status: import_zod.z.object({
|
|
5581
5715
|
application_deployment: import_zod.z.lazy(() => zApplicationDeployment).optional(),
|
|
5582
5716
|
application_deployment_id: import_zod.z.string().uuid().optional(),
|
|
@@ -8471,6 +8605,24 @@ var zPauseLiveDeployServiceData = import_zod.z.object({
|
|
|
8471
8605
|
}).optional()
|
|
8472
8606
|
});
|
|
8473
8607
|
var zPauseLiveDeployServiceResponse = zPauseResponse;
|
|
8608
|
+
var zExecuteACommandOnTheHostMachineData = import_zod.z.object({
|
|
8609
|
+
body: zHostExecRequest,
|
|
8610
|
+
path: import_zod.z.never().optional(),
|
|
8611
|
+
query: import_zod.z.never().optional(),
|
|
8612
|
+
headers: import_zod.z.object({
|
|
8613
|
+
Accept: import_zod.z.string().optional()
|
|
8614
|
+
}).optional()
|
|
8615
|
+
});
|
|
8616
|
+
var zExecuteACommandOnTheHostMachineResponse = zHostExecResponse;
|
|
8617
|
+
var zGetMachineSystemStatsData = import_zod.z.object({
|
|
8618
|
+
body: import_zod.z.never().optional(),
|
|
8619
|
+
path: import_zod.z.never().optional(),
|
|
8620
|
+
query: import_zod.z.never().optional(),
|
|
8621
|
+
headers: import_zod.z.object({
|
|
8622
|
+
Accept: import_zod.z.string().optional()
|
|
8623
|
+
}).optional()
|
|
8624
|
+
});
|
|
8625
|
+
var zGetMachineSystemStatsResponse = zSystemStatsResponse;
|
|
8474
8626
|
var zGetNotificationPreferencesData = import_zod.z.object({
|
|
8475
8627
|
body: import_zod.z.never().optional(),
|
|
8476
8628
|
path: import_zod.z.never().optional(),
|
|
@@ -9020,6 +9172,8 @@ var zListHealthCheckResultsResponse = zHealthCheckResultsResponse;
|
|
|
9020
9172
|
deployProjectMutation,
|
|
9021
9173
|
duplicateProject,
|
|
9022
9174
|
duplicateProjectMutation,
|
|
9175
|
+
executeACommandOnTheHostMachine,
|
|
9176
|
+
executeACommandOnTheHostMachineMutation,
|
|
9023
9177
|
forkExtension,
|
|
9024
9178
|
forkExtensionMutation,
|
|
9025
9179
|
generateRandomSubdomain,
|
|
@@ -9067,6 +9221,9 @@ var zListHealthCheckResultsResponse = zHealthCheckResultsResponse;
|
|
|
9067
9221
|
getHealthChecks,
|
|
9068
9222
|
getHealthChecksOptions,
|
|
9069
9223
|
getHealthChecksQueryKey,
|
|
9224
|
+
getMachineSystemStats,
|
|
9225
|
+
getMachineSystemStatsOptions,
|
|
9226
|
+
getMachineSystemStatsQueryKey,
|
|
9070
9227
|
getNotificationPreferences,
|
|
9071
9228
|
getNotificationPreferencesOptions,
|
|
9072
9229
|
getNotificationPreferencesQueryKey,
|
|
@@ -9334,6 +9491,8 @@ var zListHealthCheckResultsResponse = zHealthCheckResultsResponse;
|
|
|
9334
9491
|
zDuplicateProjectResponse,
|
|
9335
9492
|
zEnvironmentsInFamilyResponse,
|
|
9336
9493
|
zErrorEnvelope,
|
|
9494
|
+
zExecuteACommandOnTheHostMachineData,
|
|
9495
|
+
zExecuteACommandOnTheHostMachineResponse,
|
|
9337
9496
|
zExecutionResponse,
|
|
9338
9497
|
zExtension,
|
|
9339
9498
|
zExtensionExecution,
|
|
@@ -9372,6 +9531,8 @@ var zListHealthCheckResultsResponse = zHealthCheckResultsResponse;
|
|
|
9372
9531
|
zGetHealthCheckStatsResponse,
|
|
9373
9532
|
zGetHealthChecksData,
|
|
9374
9533
|
zGetHealthChecksResponse,
|
|
9534
|
+
zGetMachineSystemStatsData,
|
|
9535
|
+
zGetMachineSystemStatsResponse,
|
|
9375
9536
|
zGetNotificationPreferencesData,
|
|
9376
9537
|
zGetNotificationPreferencesResponse,
|
|
9377
9538
|
zGetSmtpConfigData,
|
|
@@ -9395,6 +9556,8 @@ var zListHealthCheckResultsResponse = zHealthCheckResultsResponse;
|
|
|
9395
9556
|
zHealthCheckResult,
|
|
9396
9557
|
zHealthCheckResultsResponse,
|
|
9397
9558
|
zHealthCheckStatsResponse,
|
|
9559
|
+
zHostExecRequest,
|
|
9560
|
+
zHostExecResponse,
|
|
9398
9561
|
zHttpError,
|
|
9399
9562
|
zIndexApplicationCodebaseData,
|
|
9400
9563
|
zIndexApplicationCodebaseResponse,
|
|
@@ -9527,6 +9690,7 @@ var zListHealthCheckResultsResponse = zHealthCheckResultsResponse;
|
|
|
9527
9690
|
zStartContainerResponse,
|
|
9528
9691
|
zStopContainerData,
|
|
9529
9692
|
zStopContainerResponse,
|
|
9693
|
+
zSystemStatsResponse,
|
|
9530
9694
|
zToggleHealthCheckData,
|
|
9531
9695
|
zToggleHealthCheckRequest,
|
|
9532
9696
|
zToggleHealthCheckResponse,
|
package/dist/index.mjs
CHANGED
|
@@ -1162,6 +1162,15 @@ var pauseLiveDeployService = (options) => (options.client ?? client).post({
|
|
|
1162
1162
|
...options.headers
|
|
1163
1163
|
}
|
|
1164
1164
|
});
|
|
1165
|
+
var executeACommandOnTheHostMachine = (options) => (options.client ?? client).post({
|
|
1166
|
+
url: "/api/v1/machine/exec",
|
|
1167
|
+
...options,
|
|
1168
|
+
headers: {
|
|
1169
|
+
"Content-Type": "*/*",
|
|
1170
|
+
...options.headers
|
|
1171
|
+
}
|
|
1172
|
+
});
|
|
1173
|
+
var getMachineSystemStats = (options) => (options?.client ?? client).get({ url: "/api/v1/machine/stats", ...options });
|
|
1165
1174
|
var getNotificationPreferences = (options) => (options?.client ?? client).get({ url: "/api/v1/notification/preferences", ...options });
|
|
1166
1175
|
var updateNotificationPreferences = (options) => (options.client ?? client).post({
|
|
1167
1176
|
url: "/api/v1/notification/preferences",
|
|
@@ -2548,6 +2557,32 @@ var pauseLiveDeployServiceMutation = (options) => {
|
|
|
2548
2557
|
};
|
|
2549
2558
|
return mutationOptions;
|
|
2550
2559
|
};
|
|
2560
|
+
var executeACommandOnTheHostMachineMutation = (options) => {
|
|
2561
|
+
const mutationOptions = {
|
|
2562
|
+
mutationFn: async (fnOptions) => {
|
|
2563
|
+
const { data } = await executeACommandOnTheHostMachine({
|
|
2564
|
+
...options,
|
|
2565
|
+
...fnOptions,
|
|
2566
|
+
throwOnError: true
|
|
2567
|
+
});
|
|
2568
|
+
return data;
|
|
2569
|
+
}
|
|
2570
|
+
};
|
|
2571
|
+
return mutationOptions;
|
|
2572
|
+
};
|
|
2573
|
+
var getMachineSystemStatsQueryKey = (options) => createQueryKey("getMachineSystemStats", options);
|
|
2574
|
+
var getMachineSystemStatsOptions = (options) => queryOptions({
|
|
2575
|
+
queryFn: async ({ queryKey, signal }) => {
|
|
2576
|
+
const { data } = await getMachineSystemStats({
|
|
2577
|
+
...options,
|
|
2578
|
+
...queryKey[0],
|
|
2579
|
+
signal,
|
|
2580
|
+
throwOnError: true
|
|
2581
|
+
});
|
|
2582
|
+
return data;
|
|
2583
|
+
},
|
|
2584
|
+
queryKey: getMachineSystemStatsQueryKey(options)
|
|
2585
|
+
});
|
|
2551
2586
|
var getNotificationPreferencesQueryKey = (options) => createQueryKey("getNotificationPreferences", options);
|
|
2552
2587
|
var getNotificationPreferencesOptions = (options) => queryOptions({
|
|
2553
2588
|
queryFn: async ({ queryKey, signal }) => {
|
|
@@ -3535,6 +3570,18 @@ var zHealthCheckStatsResponse = z.object({
|
|
|
3535
3570
|
message: z.string().optional(),
|
|
3536
3571
|
status: z.string().optional()
|
|
3537
3572
|
});
|
|
3573
|
+
var zHostExecRequest = z.object({
|
|
3574
|
+
command: z.string()
|
|
3575
|
+
});
|
|
3576
|
+
var zHostExecResponse = z.object({
|
|
3577
|
+
data: z.object({
|
|
3578
|
+
exit_code: z.number().int().optional(),
|
|
3579
|
+
stderr: z.string().optional(),
|
|
3580
|
+
stdout: z.string().optional()
|
|
3581
|
+
}).optional(),
|
|
3582
|
+
message: z.string().optional(),
|
|
3583
|
+
status: z.string().optional()
|
|
3584
|
+
});
|
|
3538
3585
|
var zIndexCodebaseResponse = z.object({
|
|
3539
3586
|
data: z.object({
|
|
3540
3587
|
indexed: z.number().int().optional(),
|
|
@@ -4220,6 +4267,72 @@ var zSendNotificationResponse = z.object({
|
|
|
4220
4267
|
message: z.string().optional(),
|
|
4221
4268
|
status: z.string().optional()
|
|
4222
4269
|
});
|
|
4270
|
+
var zSystemStatsResponse = z.object({
|
|
4271
|
+
data: z.object({
|
|
4272
|
+
architecture: z.string().optional(),
|
|
4273
|
+
cpu: z.object({
|
|
4274
|
+
overall: z.number().optional(),
|
|
4275
|
+
per_core: z.array(z.object({
|
|
4276
|
+
core_id: z.number().int().optional(),
|
|
4277
|
+
usage: z.number().optional()
|
|
4278
|
+
})).optional()
|
|
4279
|
+
}).optional(),
|
|
4280
|
+
cpu_cores: z.number().int().optional(),
|
|
4281
|
+
cpu_info: z.string().optional(),
|
|
4282
|
+
disk: z.object({
|
|
4283
|
+
allMounts: z.array(z.object({
|
|
4284
|
+
avail: z.string().optional(),
|
|
4285
|
+
capacity: z.string().optional(),
|
|
4286
|
+
filesystem: z.string().optional(),
|
|
4287
|
+
mountPoint: z.string().optional(),
|
|
4288
|
+
size: z.string().optional(),
|
|
4289
|
+
used: z.string().optional()
|
|
4290
|
+
})).optional(),
|
|
4291
|
+
available: z.number().optional(),
|
|
4292
|
+
mountPoint: z.string().optional(),
|
|
4293
|
+
percentage: z.number().optional(),
|
|
4294
|
+
total: z.number().optional(),
|
|
4295
|
+
used: z.number().optional()
|
|
4296
|
+
}).optional(),
|
|
4297
|
+
hostname: z.string().optional(),
|
|
4298
|
+
kernel_version: z.string().optional(),
|
|
4299
|
+
load: z.object({
|
|
4300
|
+
fifteenMin: z.number().optional(),
|
|
4301
|
+
fiveMin: z.number().optional(),
|
|
4302
|
+
oneMin: z.number().optional(),
|
|
4303
|
+
uptime: z.string().optional()
|
|
4304
|
+
}).optional(),
|
|
4305
|
+
memory: z.object({
|
|
4306
|
+
percentage: z.number().optional(),
|
|
4307
|
+
rawInfo: z.string().optional(),
|
|
4308
|
+
total: z.number().optional(),
|
|
4309
|
+
used: z.number().optional()
|
|
4310
|
+
}).optional(),
|
|
4311
|
+
network: z.object({
|
|
4312
|
+
downloadSpeed: z.number().optional(),
|
|
4313
|
+
interfaces: z.array(z.object({
|
|
4314
|
+
bytesRecv: z.number().int().gte(0).lte(18446744073709552e3).optional(),
|
|
4315
|
+
bytesSent: z.number().int().gte(0).lte(18446744073709552e3).optional(),
|
|
4316
|
+
dropIn: z.number().int().gte(0).lte(18446744073709552e3).optional(),
|
|
4317
|
+
dropOut: z.number().int().gte(0).lte(18446744073709552e3).optional(),
|
|
4318
|
+
errorIn: z.number().int().gte(0).lte(18446744073709552e3).optional(),
|
|
4319
|
+
errorOut: z.number().int().gte(0).lte(18446744073709552e3).optional(),
|
|
4320
|
+
name: z.string().optional(),
|
|
4321
|
+
packetsRecv: z.number().int().gte(0).lte(18446744073709552e3).optional(),
|
|
4322
|
+
packetsSent: z.number().int().gte(0).lte(18446744073709552e3).optional()
|
|
4323
|
+
})).optional(),
|
|
4324
|
+
totalBytesRecv: z.number().int().gte(0).lte(18446744073709552e3).optional(),
|
|
4325
|
+
totalBytesSent: z.number().int().gte(0).lte(18446744073709552e3).optional(),
|
|
4326
|
+
totalPacketsRecv: z.number().int().gte(0).lte(18446744073709552e3).optional(),
|
|
4327
|
+
totalPacketsSent: z.number().int().gte(0).lte(18446744073709552e3).optional(),
|
|
4328
|
+
uploadSpeed: z.number().optional()
|
|
4329
|
+
}).optional(),
|
|
4330
|
+
os_type: z.string().optional(),
|
|
4331
|
+
timestamp: z.string().datetime().optional()
|
|
4332
|
+
}).optional(),
|
|
4333
|
+
message: z.string().optional(),
|
|
4334
|
+
status: z.string().optional()
|
|
4335
|
+
});
|
|
4223
4336
|
var zToggleHealthCheckRequest = z.object({
|
|
4224
4337
|
application_id: z.string().uuid(),
|
|
4225
4338
|
enabled: z.boolean().optional()
|
|
@@ -4919,7 +5032,16 @@ var zApplicationDeployment = z.object({
|
|
|
4919
5032
|
id: z.string().uuid().optional(),
|
|
4920
5033
|
image_s3_key: z.string().optional(),
|
|
4921
5034
|
image_size: z.coerce.bigint().min(BigInt("-9223372036854775808"), { message: "Invalid value: Expected int64 to be >= -9223372036854775808" }).max(BigInt("9223372036854775807"), { message: "Invalid value: Expected int64 to be <= 9223372036854775807" }).optional(),
|
|
4922
|
-
logs: z.array(z.
|
|
5035
|
+
logs: z.array(z.object({
|
|
5036
|
+
application: zApplication.optional(),
|
|
5037
|
+
application_deployment: z.lazy(() => zApplicationDeployment).optional(),
|
|
5038
|
+
application_deployment_id: z.string().uuid().optional(),
|
|
5039
|
+
application_id: z.string().uuid().optional(),
|
|
5040
|
+
created_at: z.string().datetime().optional(),
|
|
5041
|
+
id: z.string().uuid().optional(),
|
|
5042
|
+
log: z.string().optional(),
|
|
5043
|
+
updated_at: z.string().datetime().optional()
|
|
5044
|
+
})).optional(),
|
|
4923
5045
|
status: z.object({
|
|
4924
5046
|
application_deployment: z.lazy(() => zApplicationDeployment).optional(),
|
|
4925
5047
|
application_deployment_id: z.string().uuid().optional(),
|
|
@@ -7814,6 +7936,24 @@ var zPauseLiveDeployServiceData = z.object({
|
|
|
7814
7936
|
}).optional()
|
|
7815
7937
|
});
|
|
7816
7938
|
var zPauseLiveDeployServiceResponse = zPauseResponse;
|
|
7939
|
+
var zExecuteACommandOnTheHostMachineData = z.object({
|
|
7940
|
+
body: zHostExecRequest,
|
|
7941
|
+
path: z.never().optional(),
|
|
7942
|
+
query: z.never().optional(),
|
|
7943
|
+
headers: z.object({
|
|
7944
|
+
Accept: z.string().optional()
|
|
7945
|
+
}).optional()
|
|
7946
|
+
});
|
|
7947
|
+
var zExecuteACommandOnTheHostMachineResponse = zHostExecResponse;
|
|
7948
|
+
var zGetMachineSystemStatsData = z.object({
|
|
7949
|
+
body: z.never().optional(),
|
|
7950
|
+
path: z.never().optional(),
|
|
7951
|
+
query: z.never().optional(),
|
|
7952
|
+
headers: z.object({
|
|
7953
|
+
Accept: z.string().optional()
|
|
7954
|
+
}).optional()
|
|
7955
|
+
});
|
|
7956
|
+
var zGetMachineSystemStatsResponse = zSystemStatsResponse;
|
|
7817
7957
|
var zGetNotificationPreferencesData = z.object({
|
|
7818
7958
|
body: z.never().optional(),
|
|
7819
7959
|
path: z.never().optional(),
|
|
@@ -8362,6 +8502,8 @@ export {
|
|
|
8362
8502
|
deployProjectMutation,
|
|
8363
8503
|
duplicateProject,
|
|
8364
8504
|
duplicateProjectMutation,
|
|
8505
|
+
executeACommandOnTheHostMachine,
|
|
8506
|
+
executeACommandOnTheHostMachineMutation,
|
|
8365
8507
|
forkExtension,
|
|
8366
8508
|
forkExtensionMutation,
|
|
8367
8509
|
generateRandomSubdomain,
|
|
@@ -8409,6 +8551,9 @@ export {
|
|
|
8409
8551
|
getHealthChecks,
|
|
8410
8552
|
getHealthChecksOptions,
|
|
8411
8553
|
getHealthChecksQueryKey,
|
|
8554
|
+
getMachineSystemStats,
|
|
8555
|
+
getMachineSystemStatsOptions,
|
|
8556
|
+
getMachineSystemStatsQueryKey,
|
|
8412
8557
|
getNotificationPreferences,
|
|
8413
8558
|
getNotificationPreferencesOptions,
|
|
8414
8559
|
getNotificationPreferencesQueryKey,
|
|
@@ -8676,6 +8821,8 @@ export {
|
|
|
8676
8821
|
zDuplicateProjectResponse,
|
|
8677
8822
|
zEnvironmentsInFamilyResponse,
|
|
8678
8823
|
zErrorEnvelope,
|
|
8824
|
+
zExecuteACommandOnTheHostMachineData,
|
|
8825
|
+
zExecuteACommandOnTheHostMachineResponse,
|
|
8679
8826
|
zExecutionResponse,
|
|
8680
8827
|
zExtension,
|
|
8681
8828
|
zExtensionExecution,
|
|
@@ -8714,6 +8861,8 @@ export {
|
|
|
8714
8861
|
zGetHealthCheckStatsResponse,
|
|
8715
8862
|
zGetHealthChecksData,
|
|
8716
8863
|
zGetHealthChecksResponse,
|
|
8864
|
+
zGetMachineSystemStatsData,
|
|
8865
|
+
zGetMachineSystemStatsResponse,
|
|
8717
8866
|
zGetNotificationPreferencesData,
|
|
8718
8867
|
zGetNotificationPreferencesResponse,
|
|
8719
8868
|
zGetSmtpConfigData,
|
|
@@ -8737,6 +8886,8 @@ export {
|
|
|
8737
8886
|
zHealthCheckResult,
|
|
8738
8887
|
zHealthCheckResultsResponse,
|
|
8739
8888
|
zHealthCheckStatsResponse,
|
|
8889
|
+
zHostExecRequest,
|
|
8890
|
+
zHostExecResponse,
|
|
8740
8891
|
zHttpError,
|
|
8741
8892
|
zIndexApplicationCodebaseData,
|
|
8742
8893
|
zIndexApplicationCodebaseResponse,
|
|
@@ -8869,6 +9020,7 @@ export {
|
|
|
8869
9020
|
zStartContainerResponse,
|
|
8870
9021
|
zStopContainerData,
|
|
8871
9022
|
zStopContainerResponse,
|
|
9023
|
+
zSystemStatsResponse,
|
|
8872
9024
|
zToggleHealthCheckData,
|
|
8873
9025
|
zToggleHealthCheckRequest,
|
|
8874
9026
|
zToggleHealthCheckResponse,
|