@nixopus/api-client 0.0.6 → 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.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()
@@ -5608,7 +5733,29 @@ var zApplicationDomain = import_zod.z.object({
5608
5733
  });
5609
5734
  var zApplicationLogs = import_zod.z.object({
5610
5735
  application: zApplication.optional(),
5611
- application_deployment: zApplicationDeployment.optional(),
5736
+ application_deployment: import_zod.z.object({
5737
+ application: zApplication.optional(),
5738
+ application_id: import_zod.z.string().uuid().optional(),
5739
+ commit_hash: import_zod.z.string().optional(),
5740
+ container_id: import_zod.z.string().uuid().optional(),
5741
+ container_image: import_zod.z.string().optional(),
5742
+ container_name: import_zod.z.string().optional(),
5743
+ container_status: import_zod.z.string().optional(),
5744
+ created_at: import_zod.z.string().datetime().optional(),
5745
+ id: import_zod.z.string().uuid().optional(),
5746
+ image_s3_key: import_zod.z.string().optional(),
5747
+ 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(),
5748
+ logs: import_zod.z.array(import_zod.z.lazy(() => zApplicationLogs)).optional(),
5749
+ status: import_zod.z.object({
5750
+ application_deployment: zApplicationDeployment.optional(),
5751
+ application_deployment_id: import_zod.z.string().uuid().optional(),
5752
+ created_at: import_zod.z.string().datetime().optional(),
5753
+ id: import_zod.z.string().uuid().optional(),
5754
+ status: import_zod.z.string().optional(),
5755
+ updated_at: import_zod.z.string().datetime().optional()
5756
+ }).optional(),
5757
+ updated_at: import_zod.z.string().datetime().optional()
5758
+ }).optional(),
5612
5759
  application_deployment_id: import_zod.z.string().uuid().optional(),
5613
5760
  application_id: import_zod.z.string().uuid().optional(),
5614
5761
  created_at: import_zod.z.string().datetime().optional(),
@@ -5806,16 +5953,7 @@ var zComposeService = import_zod.z.object({
5806
5953
  application: zApplication.optional(),
5807
5954
  application_id: import_zod.z.string().uuid().optional(),
5808
5955
  created_at: import_zod.z.string().datetime().optional(),
5809
- domains: import_zod.z.array(import_zod.z.object({
5810
- application: zApplication.optional(),
5811
- application_id: import_zod.z.string().uuid().optional(),
5812
- compose_service: import_zod.z.lazy(() => zComposeService).optional(),
5813
- compose_service_id: import_zod.z.string().uuid().optional(),
5814
- created_at: import_zod.z.string().datetime().optional(),
5815
- domain: import_zod.z.string().optional(),
5816
- id: import_zod.z.string().uuid().optional(),
5817
- port: import_zod.z.number().int().optional()
5818
- })).optional(),
5956
+ domains: import_zod.z.array(zApplicationDomain).optional(),
5819
5957
  id: import_zod.z.string().uuid().optional(),
5820
5958
  port: import_zod.z.number().int().optional(),
5821
5959
  service_name: import_zod.z.string().optional(),
@@ -8467,6 +8605,24 @@ var zPauseLiveDeployServiceData = import_zod.z.object({
8467
8605
  }).optional()
8468
8606
  });
8469
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;
8470
8626
  var zGetNotificationPreferencesData = import_zod.z.object({
8471
8627
  body: import_zod.z.never().optional(),
8472
8628
  path: import_zod.z.never().optional(),
@@ -9016,6 +9172,8 @@ var zListHealthCheckResultsResponse = zHealthCheckResultsResponse;
9016
9172
  deployProjectMutation,
9017
9173
  duplicateProject,
9018
9174
  duplicateProjectMutation,
9175
+ executeACommandOnTheHostMachine,
9176
+ executeACommandOnTheHostMachineMutation,
9019
9177
  forkExtension,
9020
9178
  forkExtensionMutation,
9021
9179
  generateRandomSubdomain,
@@ -9063,6 +9221,9 @@ var zListHealthCheckResultsResponse = zHealthCheckResultsResponse;
9063
9221
  getHealthChecks,
9064
9222
  getHealthChecksOptions,
9065
9223
  getHealthChecksQueryKey,
9224
+ getMachineSystemStats,
9225
+ getMachineSystemStatsOptions,
9226
+ getMachineSystemStatsQueryKey,
9066
9227
  getNotificationPreferences,
9067
9228
  getNotificationPreferencesOptions,
9068
9229
  getNotificationPreferencesQueryKey,
@@ -9330,6 +9491,8 @@ var zListHealthCheckResultsResponse = zHealthCheckResultsResponse;
9330
9491
  zDuplicateProjectResponse,
9331
9492
  zEnvironmentsInFamilyResponse,
9332
9493
  zErrorEnvelope,
9494
+ zExecuteACommandOnTheHostMachineData,
9495
+ zExecuteACommandOnTheHostMachineResponse,
9333
9496
  zExecutionResponse,
9334
9497
  zExtension,
9335
9498
  zExtensionExecution,
@@ -9368,6 +9531,8 @@ var zListHealthCheckResultsResponse = zHealthCheckResultsResponse;
9368
9531
  zGetHealthCheckStatsResponse,
9369
9532
  zGetHealthChecksData,
9370
9533
  zGetHealthChecksResponse,
9534
+ zGetMachineSystemStatsData,
9535
+ zGetMachineSystemStatsResponse,
9371
9536
  zGetNotificationPreferencesData,
9372
9537
  zGetNotificationPreferencesResponse,
9373
9538
  zGetSmtpConfigData,
@@ -9391,6 +9556,8 @@ var zListHealthCheckResultsResponse = zHealthCheckResultsResponse;
9391
9556
  zHealthCheckResult,
9392
9557
  zHealthCheckResultsResponse,
9393
9558
  zHealthCheckStatsResponse,
9559
+ zHostExecRequest,
9560
+ zHostExecResponse,
9394
9561
  zHttpError,
9395
9562
  zIndexApplicationCodebaseData,
9396
9563
  zIndexApplicationCodebaseResponse,
@@ -9523,6 +9690,7 @@ var zListHealthCheckResultsResponse = zHealthCheckResultsResponse;
9523
9690
  zStartContainerResponse,
9524
9691
  zStopContainerData,
9525
9692
  zStopContainerResponse,
9693
+ zSystemStatsResponse,
9526
9694
  zToggleHealthCheckData,
9527
9695
  zToggleHealthCheckRequest,
9528
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()
@@ -4951,7 +5064,29 @@ var zApplicationDomain = z.object({
4951
5064
  });
4952
5065
  var zApplicationLogs = z.object({
4953
5066
  application: zApplication.optional(),
4954
- application_deployment: zApplicationDeployment.optional(),
5067
+ application_deployment: z.object({
5068
+ application: zApplication.optional(),
5069
+ application_id: z.string().uuid().optional(),
5070
+ commit_hash: z.string().optional(),
5071
+ container_id: z.string().uuid().optional(),
5072
+ container_image: z.string().optional(),
5073
+ container_name: z.string().optional(),
5074
+ container_status: z.string().optional(),
5075
+ created_at: z.string().datetime().optional(),
5076
+ id: z.string().uuid().optional(),
5077
+ image_s3_key: z.string().optional(),
5078
+ 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(),
5079
+ logs: z.array(z.lazy(() => zApplicationLogs)).optional(),
5080
+ status: z.object({
5081
+ application_deployment: zApplicationDeployment.optional(),
5082
+ application_deployment_id: z.string().uuid().optional(),
5083
+ created_at: z.string().datetime().optional(),
5084
+ id: z.string().uuid().optional(),
5085
+ status: z.string().optional(),
5086
+ updated_at: z.string().datetime().optional()
5087
+ }).optional(),
5088
+ updated_at: z.string().datetime().optional()
5089
+ }).optional(),
4955
5090
  application_deployment_id: z.string().uuid().optional(),
4956
5091
  application_id: z.string().uuid().optional(),
4957
5092
  created_at: z.string().datetime().optional(),
@@ -5149,16 +5284,7 @@ var zComposeService = z.object({
5149
5284
  application: zApplication.optional(),
5150
5285
  application_id: z.string().uuid().optional(),
5151
5286
  created_at: z.string().datetime().optional(),
5152
- domains: z.array(z.object({
5153
- application: zApplication.optional(),
5154
- application_id: z.string().uuid().optional(),
5155
- compose_service: z.lazy(() => zComposeService).optional(),
5156
- compose_service_id: z.string().uuid().optional(),
5157
- created_at: z.string().datetime().optional(),
5158
- domain: z.string().optional(),
5159
- id: z.string().uuid().optional(),
5160
- port: z.number().int().optional()
5161
- })).optional(),
5287
+ domains: z.array(zApplicationDomain).optional(),
5162
5288
  id: z.string().uuid().optional(),
5163
5289
  port: z.number().int().optional(),
5164
5290
  service_name: z.string().optional(),
@@ -7810,6 +7936,24 @@ var zPauseLiveDeployServiceData = z.object({
7810
7936
  }).optional()
7811
7937
  });
7812
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;
7813
7957
  var zGetNotificationPreferencesData = z.object({
7814
7958
  body: z.never().optional(),
7815
7959
  path: z.never().optional(),
@@ -8358,6 +8502,8 @@ export {
8358
8502
  deployProjectMutation,
8359
8503
  duplicateProject,
8360
8504
  duplicateProjectMutation,
8505
+ executeACommandOnTheHostMachine,
8506
+ executeACommandOnTheHostMachineMutation,
8361
8507
  forkExtension,
8362
8508
  forkExtensionMutation,
8363
8509
  generateRandomSubdomain,
@@ -8405,6 +8551,9 @@ export {
8405
8551
  getHealthChecks,
8406
8552
  getHealthChecksOptions,
8407
8553
  getHealthChecksQueryKey,
8554
+ getMachineSystemStats,
8555
+ getMachineSystemStatsOptions,
8556
+ getMachineSystemStatsQueryKey,
8408
8557
  getNotificationPreferences,
8409
8558
  getNotificationPreferencesOptions,
8410
8559
  getNotificationPreferencesQueryKey,
@@ -8672,6 +8821,8 @@ export {
8672
8821
  zDuplicateProjectResponse,
8673
8822
  zEnvironmentsInFamilyResponse,
8674
8823
  zErrorEnvelope,
8824
+ zExecuteACommandOnTheHostMachineData,
8825
+ zExecuteACommandOnTheHostMachineResponse,
8675
8826
  zExecutionResponse,
8676
8827
  zExtension,
8677
8828
  zExtensionExecution,
@@ -8710,6 +8861,8 @@ export {
8710
8861
  zGetHealthCheckStatsResponse,
8711
8862
  zGetHealthChecksData,
8712
8863
  zGetHealthChecksResponse,
8864
+ zGetMachineSystemStatsData,
8865
+ zGetMachineSystemStatsResponse,
8713
8866
  zGetNotificationPreferencesData,
8714
8867
  zGetNotificationPreferencesResponse,
8715
8868
  zGetSmtpConfigData,
@@ -8733,6 +8886,8 @@ export {
8733
8886
  zHealthCheckResult,
8734
8887
  zHealthCheckResultsResponse,
8735
8888
  zHealthCheckStatsResponse,
8889
+ zHostExecRequest,
8890
+ zHostExecResponse,
8736
8891
  zHttpError,
8737
8892
  zIndexApplicationCodebaseData,
8738
8893
  zIndexApplicationCodebaseResponse,
@@ -8865,6 +9020,7 @@ export {
8865
9020
  zStartContainerResponse,
8866
9021
  zStopContainerData,
8867
9022
  zStopContainerResponse,
9023
+ zSystemStatsResponse,
8868
9024
  zToggleHealthCheckData,
8869
9025
  zToggleHealthCheckRequest,
8870
9026
  zToggleHealthCheckResponse,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nixopus/api-client",
3
- "version": "0.0.6",
3
+ "version": "0.0.8",
4
4
  "description": "TypeScript API client for Nixopus, generated from OpenAPI spec",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",