@nixopus/api-client 0.0.8 → 0.0.10
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 +1409 -136
- package/dist/index.d.ts +1409 -136
- package/dist/index.js +319 -11
- package/dist/index.mjs +282 -11
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -126,6 +126,12 @@ __export(index_exports, {
|
|
|
126
126
|
getHealthChecks: () => getHealthChecks,
|
|
127
127
|
getHealthChecksOptions: () => getHealthChecksOptions,
|
|
128
128
|
getHealthChecksQueryKey: () => getHealthChecksQueryKey,
|
|
129
|
+
getMachineBillingStatus: () => getMachineBillingStatus,
|
|
130
|
+
getMachineBillingStatusOptions: () => getMachineBillingStatusOptions,
|
|
131
|
+
getMachineBillingStatusQueryKey: () => getMachineBillingStatusQueryKey,
|
|
132
|
+
getMachineLifecycleStatus: () => getMachineLifecycleStatus,
|
|
133
|
+
getMachineLifecycleStatusOptions: () => getMachineLifecycleStatusOptions,
|
|
134
|
+
getMachineLifecycleStatusQueryKey: () => getMachineLifecycleStatusQueryKey,
|
|
129
135
|
getMachineSystemStats: () => getMachineSystemStats,
|
|
130
136
|
getMachineSystemStatsOptions: () => getMachineSystemStatsOptions,
|
|
131
137
|
getMachineSystemStatsQueryKey: () => getMachineSystemStatsQueryKey,
|
|
@@ -174,6 +180,9 @@ __export(index_exports, {
|
|
|
174
180
|
listAuditLogsInfiniteQueryKey: () => listAuditLogsInfiniteQueryKey,
|
|
175
181
|
listAuditLogsOptions: () => listAuditLogsOptions,
|
|
176
182
|
listAuditLogsQueryKey: () => listAuditLogsQueryKey,
|
|
183
|
+
listAvailableMachinePlans: () => listAvailableMachinePlans,
|
|
184
|
+
listAvailableMachinePlansOptions: () => listAvailableMachinePlansOptions,
|
|
185
|
+
listAvailableMachinePlansQueryKey: () => listAvailableMachinePlansQueryKey,
|
|
177
186
|
listComposeServices: () => listComposeServices,
|
|
178
187
|
listComposeServicesOptions: () => listComposeServicesOptions,
|
|
179
188
|
listComposeServicesQueryKey: () => listComposeServicesQueryKey,
|
|
@@ -233,6 +242,8 @@ __export(index_exports, {
|
|
|
233
242
|
moveDirectoryMutation: () => moveDirectoryMutation,
|
|
234
243
|
pauseLiveDeployService: () => pauseLiveDeployService,
|
|
235
244
|
pauseLiveDeployServiceMutation: () => pauseLiveDeployServiceMutation,
|
|
245
|
+
pauseMachine: () => pauseMachine,
|
|
246
|
+
pauseMachineMutation: () => pauseMachineMutation,
|
|
236
247
|
performUpdate: () => performUpdate,
|
|
237
248
|
performUpdateMutation: () => performUpdateMutation,
|
|
238
249
|
previewComposeServices: () => previewComposeServices,
|
|
@@ -257,10 +268,16 @@ __export(index_exports, {
|
|
|
257
268
|
restartContainerMutation: () => restartContainerMutation,
|
|
258
269
|
restartDeployment: () => restartDeployment,
|
|
259
270
|
restartDeploymentMutation: () => restartDeploymentMutation,
|
|
271
|
+
restartMachine: () => restartMachine,
|
|
272
|
+
restartMachineMutation: () => restartMachineMutation,
|
|
273
|
+
resumeMachine: () => resumeMachine,
|
|
274
|
+
resumeMachineMutation: () => resumeMachineMutation,
|
|
260
275
|
rollbackDeployment: () => rollbackDeployment,
|
|
261
276
|
rollbackDeploymentMutation: () => rollbackDeploymentMutation,
|
|
262
277
|
runExtension: () => runExtension,
|
|
263
278
|
runExtensionMutation: () => runExtensionMutation,
|
|
279
|
+
selectAMachinePlan: () => selectAMachinePlan,
|
|
280
|
+
selectAMachinePlanMutation: () => selectAMachinePlanMutation,
|
|
264
281
|
sendNotification: () => sendNotification,
|
|
265
282
|
sendNotificationMutation: () => sendNotificationMutation,
|
|
266
283
|
startContainer: () => startContainer,
|
|
@@ -436,6 +453,10 @@ __export(index_exports, {
|
|
|
436
453
|
zGetHealthCheckStatsResponse: () => zGetHealthCheckStatsResponse,
|
|
437
454
|
zGetHealthChecksData: () => zGetHealthChecksData,
|
|
438
455
|
zGetHealthChecksResponse: () => zGetHealthChecksResponse,
|
|
456
|
+
zGetMachineBillingStatusData: () => zGetMachineBillingStatusData,
|
|
457
|
+
zGetMachineBillingStatusResponse: () => zGetMachineBillingStatusResponse,
|
|
458
|
+
zGetMachineLifecycleStatusData: () => zGetMachineLifecycleStatusData,
|
|
459
|
+
zGetMachineLifecycleStatusResponse: () => zGetMachineLifecycleStatusResponse,
|
|
439
460
|
zGetMachineSystemStatsData: () => zGetMachineSystemStatsData,
|
|
440
461
|
zGetMachineSystemStatsResponse: () => zGetMachineSystemStatsResponse,
|
|
441
462
|
zGetNotificationPreferencesData: () => zGetNotificationPreferencesData,
|
|
@@ -479,6 +500,8 @@ __export(index_exports, {
|
|
|
479
500
|
zListApplicationsResponse2: () => zListApplicationsResponse2,
|
|
480
501
|
zListAuditLogsData: () => zListAuditLogsData,
|
|
481
502
|
zListAuditLogsResponse: () => zListAuditLogsResponse,
|
|
503
|
+
zListAvailableMachinePlansData: () => zListAvailableMachinePlansData,
|
|
504
|
+
zListAvailableMachinePlansResponse: () => zListAvailableMachinePlansResponse,
|
|
482
505
|
zListBranchesResponse: () => zListBranchesResponse,
|
|
483
506
|
zListComposeServicesData: () => zListComposeServicesData,
|
|
484
507
|
zListComposeServicesResponse: () => zListComposeServicesResponse,
|
|
@@ -519,6 +542,7 @@ __export(index_exports, {
|
|
|
519
542
|
zListImagesResponse: () => zListImagesResponse,
|
|
520
543
|
zListImagesResponse2: () => zListImagesResponse2,
|
|
521
544
|
zListLogsResponse: () => zListLogsResponse,
|
|
545
|
+
zListPlansResponse: () => zListPlansResponse,
|
|
522
546
|
zListProjectsInFamilyData: () => zListProjectsInFamilyData,
|
|
523
547
|
zListProjectsInFamilyResponse: () => zListProjectsInFamilyResponse,
|
|
524
548
|
zListRepositoriesResponse: () => zListRepositoriesResponse,
|
|
@@ -528,6 +552,9 @@ __export(index_exports, {
|
|
|
528
552
|
zListServersResponse: () => zListServersResponse,
|
|
529
553
|
zListServersResponse2: () => zListServersResponse2,
|
|
530
554
|
zLogsResponse: () => zLogsResponse,
|
|
555
|
+
zMachineActionResponse: () => zMachineActionResponse,
|
|
556
|
+
zMachineBillingResponse: () => zMachineBillingResponse,
|
|
557
|
+
zMachineStateResponse: () => zMachineStateResponse,
|
|
531
558
|
zMarkOnboardingCompleteData: () => zMarkOnboardingCompleteData,
|
|
532
559
|
zMarkOnboardingCompleteResponse: () => zMarkOnboardingCompleteResponse,
|
|
533
560
|
zMarkOnboardingCompleteResponse2: () => zMarkOnboardingCompleteResponse2,
|
|
@@ -537,6 +564,8 @@ __export(index_exports, {
|
|
|
537
564
|
zMoveDirectoryResponse: () => zMoveDirectoryResponse,
|
|
538
565
|
zPauseLiveDeployServiceData: () => zPauseLiveDeployServiceData,
|
|
539
566
|
zPauseLiveDeployServiceResponse: () => zPauseLiveDeployServiceResponse,
|
|
567
|
+
zPauseMachineData: () => zPauseMachineData,
|
|
568
|
+
zPauseMachineResponse: () => zPauseMachineResponse,
|
|
540
569
|
zPauseRequest: () => zPauseRequest,
|
|
541
570
|
zPauseResponse: () => zPauseResponse,
|
|
542
571
|
zPerformUpdateData: () => zPerformUpdateData,
|
|
@@ -579,12 +608,20 @@ __export(index_exports, {
|
|
|
579
608
|
zRestartDeploymentData: () => zRestartDeploymentData,
|
|
580
609
|
zRestartDeploymentRequest: () => zRestartDeploymentRequest,
|
|
581
610
|
zRestartDeploymentResponse: () => zRestartDeploymentResponse,
|
|
611
|
+
zRestartMachineData: () => zRestartMachineData,
|
|
612
|
+
zRestartMachineResponse: () => zRestartMachineResponse,
|
|
613
|
+
zResumeMachineData: () => zResumeMachineData,
|
|
614
|
+
zResumeMachineResponse: () => zResumeMachineResponse,
|
|
582
615
|
zRollbackDeploymentData: () => zRollbackDeploymentData,
|
|
583
616
|
zRollbackDeploymentRequest: () => zRollbackDeploymentRequest,
|
|
584
617
|
zRollbackDeploymentResponse: () => zRollbackDeploymentResponse,
|
|
585
618
|
zRunExtensionData: () => zRunExtensionData,
|
|
586
619
|
zRunExtensionRequest: () => zRunExtensionRequest,
|
|
587
620
|
zRunExtensionResponse: () => zRunExtensionResponse,
|
|
621
|
+
zSelectAMachinePlanData: () => zSelectAMachinePlanData,
|
|
622
|
+
zSelectAMachinePlanResponse: () => zSelectAMachinePlanResponse,
|
|
623
|
+
zSelectPlanRequest: () => zSelectPlanRequest,
|
|
624
|
+
zSelectPlanResponse: () => zSelectPlanResponse,
|
|
588
625
|
zSendNotificationData: () => zSendNotificationData,
|
|
589
626
|
zSendNotificationRequest: () => zSendNotificationRequest,
|
|
590
627
|
zSendNotificationResponse: () => zSendNotificationResponse,
|
|
@@ -1831,6 +1868,7 @@ var pauseLiveDeployService = (options) => (options.client ?? client).post({
|
|
|
1831
1868
|
...options.headers
|
|
1832
1869
|
}
|
|
1833
1870
|
});
|
|
1871
|
+
var getMachineBillingStatus = (options) => (options?.client ?? client).get({ url: "/api/v1/machine/billing", ...options });
|
|
1834
1872
|
var executeACommandOnTheHostMachine = (options) => (options.client ?? client).post({
|
|
1835
1873
|
url: "/api/v1/machine/exec",
|
|
1836
1874
|
...options,
|
|
@@ -1839,7 +1877,20 @@ var executeACommandOnTheHostMachine = (options) => (options.client ?? client).po
|
|
|
1839
1877
|
...options.headers
|
|
1840
1878
|
}
|
|
1841
1879
|
});
|
|
1880
|
+
var pauseMachine = (options) => (options?.client ?? client).post({ url: "/api/v1/machine/pause", ...options });
|
|
1881
|
+
var selectAMachinePlan = (options) => (options.client ?? client).post({
|
|
1882
|
+
url: "/api/v1/machine/plan/select",
|
|
1883
|
+
...options,
|
|
1884
|
+
headers: {
|
|
1885
|
+
"Content-Type": "*/*",
|
|
1886
|
+
...options.headers
|
|
1887
|
+
}
|
|
1888
|
+
});
|
|
1889
|
+
var listAvailableMachinePlans = (options) => (options?.client ?? client).get({ url: "/api/v1/machine/plans", ...options });
|
|
1890
|
+
var restartMachine = (options) => (options?.client ?? client).post({ url: "/api/v1/machine/restart", ...options });
|
|
1891
|
+
var resumeMachine = (options) => (options?.client ?? client).post({ url: "/api/v1/machine/resume", ...options });
|
|
1842
1892
|
var getMachineSystemStats = (options) => (options?.client ?? client).get({ url: "/api/v1/machine/stats", ...options });
|
|
1893
|
+
var getMachineLifecycleStatus = (options) => (options?.client ?? client).get({ url: "/api/v1/machine/status", ...options });
|
|
1843
1894
|
var getNotificationPreferences = (options) => (options?.client ?? client).get({ url: "/api/v1/notification/preferences", ...options });
|
|
1844
1895
|
var updateNotificationPreferences = (options) => (options.client ?? client).post({
|
|
1845
1896
|
url: "/api/v1/notification/preferences",
|
|
@@ -3226,6 +3277,19 @@ var pauseLiveDeployServiceMutation = (options) => {
|
|
|
3226
3277
|
};
|
|
3227
3278
|
return mutationOptions;
|
|
3228
3279
|
};
|
|
3280
|
+
var getMachineBillingStatusQueryKey = (options) => createQueryKey("getMachineBillingStatus", options);
|
|
3281
|
+
var getMachineBillingStatusOptions = (options) => (0, import_react_query.queryOptions)({
|
|
3282
|
+
queryFn: async ({ queryKey, signal }) => {
|
|
3283
|
+
const { data } = await getMachineBillingStatus({
|
|
3284
|
+
...options,
|
|
3285
|
+
...queryKey[0],
|
|
3286
|
+
signal,
|
|
3287
|
+
throwOnError: true
|
|
3288
|
+
});
|
|
3289
|
+
return data;
|
|
3290
|
+
},
|
|
3291
|
+
queryKey: getMachineBillingStatusQueryKey(options)
|
|
3292
|
+
});
|
|
3229
3293
|
var executeACommandOnTheHostMachineMutation = (options) => {
|
|
3230
3294
|
const mutationOptions = {
|
|
3231
3295
|
mutationFn: async (fnOptions) => {
|
|
@@ -3239,6 +3303,71 @@ var executeACommandOnTheHostMachineMutation = (options) => {
|
|
|
3239
3303
|
};
|
|
3240
3304
|
return mutationOptions;
|
|
3241
3305
|
};
|
|
3306
|
+
var pauseMachineMutation = (options) => {
|
|
3307
|
+
const mutationOptions = {
|
|
3308
|
+
mutationFn: async (fnOptions) => {
|
|
3309
|
+
const { data } = await pauseMachine({
|
|
3310
|
+
...options,
|
|
3311
|
+
...fnOptions,
|
|
3312
|
+
throwOnError: true
|
|
3313
|
+
});
|
|
3314
|
+
return data;
|
|
3315
|
+
}
|
|
3316
|
+
};
|
|
3317
|
+
return mutationOptions;
|
|
3318
|
+
};
|
|
3319
|
+
var selectAMachinePlanMutation = (options) => {
|
|
3320
|
+
const mutationOptions = {
|
|
3321
|
+
mutationFn: async (fnOptions) => {
|
|
3322
|
+
const { data } = await selectAMachinePlan({
|
|
3323
|
+
...options,
|
|
3324
|
+
...fnOptions,
|
|
3325
|
+
throwOnError: true
|
|
3326
|
+
});
|
|
3327
|
+
return data;
|
|
3328
|
+
}
|
|
3329
|
+
};
|
|
3330
|
+
return mutationOptions;
|
|
3331
|
+
};
|
|
3332
|
+
var listAvailableMachinePlansQueryKey = (options) => createQueryKey("listAvailableMachinePlans", options);
|
|
3333
|
+
var listAvailableMachinePlansOptions = (options) => (0, import_react_query.queryOptions)({
|
|
3334
|
+
queryFn: async ({ queryKey, signal }) => {
|
|
3335
|
+
const { data } = await listAvailableMachinePlans({
|
|
3336
|
+
...options,
|
|
3337
|
+
...queryKey[0],
|
|
3338
|
+
signal,
|
|
3339
|
+
throwOnError: true
|
|
3340
|
+
});
|
|
3341
|
+
return data;
|
|
3342
|
+
},
|
|
3343
|
+
queryKey: listAvailableMachinePlansQueryKey(options)
|
|
3344
|
+
});
|
|
3345
|
+
var restartMachineMutation = (options) => {
|
|
3346
|
+
const mutationOptions = {
|
|
3347
|
+
mutationFn: async (fnOptions) => {
|
|
3348
|
+
const { data } = await restartMachine({
|
|
3349
|
+
...options,
|
|
3350
|
+
...fnOptions,
|
|
3351
|
+
throwOnError: true
|
|
3352
|
+
});
|
|
3353
|
+
return data;
|
|
3354
|
+
}
|
|
3355
|
+
};
|
|
3356
|
+
return mutationOptions;
|
|
3357
|
+
};
|
|
3358
|
+
var resumeMachineMutation = (options) => {
|
|
3359
|
+
const mutationOptions = {
|
|
3360
|
+
mutationFn: async (fnOptions) => {
|
|
3361
|
+
const { data } = await resumeMachine({
|
|
3362
|
+
...options,
|
|
3363
|
+
...fnOptions,
|
|
3364
|
+
throwOnError: true
|
|
3365
|
+
});
|
|
3366
|
+
return data;
|
|
3367
|
+
}
|
|
3368
|
+
};
|
|
3369
|
+
return mutationOptions;
|
|
3370
|
+
};
|
|
3242
3371
|
var getMachineSystemStatsQueryKey = (options) => createQueryKey("getMachineSystemStats", options);
|
|
3243
3372
|
var getMachineSystemStatsOptions = (options) => (0, import_react_query.queryOptions)({
|
|
3244
3373
|
queryFn: async ({ queryKey, signal }) => {
|
|
@@ -3252,6 +3381,19 @@ var getMachineSystemStatsOptions = (options) => (0, import_react_query.queryOpti
|
|
|
3252
3381
|
},
|
|
3253
3382
|
queryKey: getMachineSystemStatsQueryKey(options)
|
|
3254
3383
|
});
|
|
3384
|
+
var getMachineLifecycleStatusQueryKey = (options) => createQueryKey("getMachineLifecycleStatus", options);
|
|
3385
|
+
var getMachineLifecycleStatusOptions = (options) => (0, import_react_query.queryOptions)({
|
|
3386
|
+
queryFn: async ({ queryKey, signal }) => {
|
|
3387
|
+
const { data } = await getMachineLifecycleStatus({
|
|
3388
|
+
...options,
|
|
3389
|
+
...queryKey[0],
|
|
3390
|
+
signal,
|
|
3391
|
+
throwOnError: true
|
|
3392
|
+
});
|
|
3393
|
+
return data;
|
|
3394
|
+
},
|
|
3395
|
+
queryKey: getMachineLifecycleStatusQueryKey(options)
|
|
3396
|
+
});
|
|
3255
3397
|
var getNotificationPreferencesQueryKey = (options) => createQueryKey("getNotificationPreferences", options);
|
|
3256
3398
|
var getNotificationPreferencesOptions = (options) => (0, import_react_query.queryOptions)({
|
|
3257
3399
|
queryFn: async ({ queryKey, signal }) => {
|
|
@@ -3789,6 +3931,7 @@ var zCreateGithubConnectorRequest = import_zod.z.object({
|
|
|
3789
3931
|
app_id: import_zod.z.string().uuid().optional(),
|
|
3790
3932
|
client_id: import_zod.z.string().uuid().optional(),
|
|
3791
3933
|
client_secret: import_zod.z.string().optional(),
|
|
3934
|
+
installation_id: import_zod.z.string().uuid().optional(),
|
|
3792
3935
|
pem: import_zod.z.string().optional(),
|
|
3793
3936
|
slug: import_zod.z.string().optional(),
|
|
3794
3937
|
webhook_secret: import_zod.z.string().optional()
|
|
@@ -4633,6 +4776,19 @@ var zListLogsResponse = import_zod.z.object({
|
|
|
4633
4776
|
message: import_zod.z.string().optional(),
|
|
4634
4777
|
status: import_zod.z.string().optional()
|
|
4635
4778
|
});
|
|
4779
|
+
var zListPlansResponse = import_zod.z.object({
|
|
4780
|
+
data: import_zod.z.array(import_zod.z.object({
|
|
4781
|
+
id: import_zod.z.string().uuid().optional(),
|
|
4782
|
+
monthly_cost_cents: import_zod.z.number().int().optional(),
|
|
4783
|
+
monthly_cost_usd: import_zod.z.string().optional(),
|
|
4784
|
+
name: import_zod.z.string().optional(),
|
|
4785
|
+
ram_mb: import_zod.z.number().int().optional(),
|
|
4786
|
+
storage_mb: import_zod.z.number().int().optional(),
|
|
4787
|
+
tier: import_zod.z.string().optional(),
|
|
4788
|
+
vcpu: import_zod.z.number().int().optional()
|
|
4789
|
+
})).optional(),
|
|
4790
|
+
status: import_zod.z.string().optional()
|
|
4791
|
+
});
|
|
4636
4792
|
var zListRepositoriesResponse = import_zod.z.object({
|
|
4637
4793
|
data: import_zod.z.object({
|
|
4638
4794
|
page: import_zod.z.number().int().gte(1).optional().default(1),
|
|
@@ -4755,6 +4911,35 @@ var zListRepositoriesResponse = import_zod.z.object({
|
|
|
4755
4911
|
message: import_zod.z.string().optional(),
|
|
4756
4912
|
status: import_zod.z.string().optional()
|
|
4757
4913
|
});
|
|
4914
|
+
var zMachineActionResponse = import_zod.z.object({
|
|
4915
|
+
message: import_zod.z.string().optional(),
|
|
4916
|
+
status: import_zod.z.string().optional()
|
|
4917
|
+
});
|
|
4918
|
+
var zMachineBillingResponse = import_zod.z.object({
|
|
4919
|
+
data: import_zod.z.object({
|
|
4920
|
+
billing_status: import_zod.z.string().optional(),
|
|
4921
|
+
days_remaining: import_zod.z.number().int().optional(),
|
|
4922
|
+
grace_deadline: import_zod.z.string().optional(),
|
|
4923
|
+
has_machine: import_zod.z.boolean().optional(),
|
|
4924
|
+
message: import_zod.z.string().optional(),
|
|
4925
|
+
monthly_cost_cents: import_zod.z.number().int().optional(),
|
|
4926
|
+
monthly_cost_usd: import_zod.z.string().optional(),
|
|
4927
|
+
period_end: import_zod.z.string().optional(),
|
|
4928
|
+
plan_name: import_zod.z.string().optional(),
|
|
4929
|
+
plan_tier: import_zod.z.string().optional()
|
|
4930
|
+
}).optional(),
|
|
4931
|
+
status: import_zod.z.string().optional()
|
|
4932
|
+
});
|
|
4933
|
+
var zMachineStateResponse = import_zod.z.object({
|
|
4934
|
+
data: import_zod.z.object({
|
|
4935
|
+
active: import_zod.z.boolean().optional(),
|
|
4936
|
+
pid: import_zod.z.number().int().optional(),
|
|
4937
|
+
state: import_zod.z.string().optional(),
|
|
4938
|
+
uptime_sec: 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()
|
|
4939
|
+
}).optional(),
|
|
4940
|
+
message: import_zod.z.string().optional(),
|
|
4941
|
+
status: import_zod.z.string().optional()
|
|
4942
|
+
});
|
|
4758
4943
|
var zMarkOnboardingCompleteResponse = import_zod.z.object({
|
|
4759
4944
|
data: import_zod.z.object({
|
|
4760
4945
|
is_onboarded: import_zod.z.boolean().optional()
|
|
@@ -4920,6 +5105,27 @@ var zSshConnectionStatusResponse = import_zod.z.object({
|
|
|
4920
5105
|
message: import_zod.z.string().optional(),
|
|
4921
5106
|
status: import_zod.z.string().optional()
|
|
4922
5107
|
});
|
|
5108
|
+
var zSelectPlanRequest = import_zod.z.object({
|
|
5109
|
+
plan_tier: import_zod.z.string()
|
|
5110
|
+
});
|
|
5111
|
+
var zSelectPlanResponse = import_zod.z.object({
|
|
5112
|
+
balance_after_cents: import_zod.z.number().int().optional(),
|
|
5113
|
+
charged_cents: import_zod.z.number().int().optional(),
|
|
5114
|
+
error: import_zod.z.string().optional(),
|
|
5115
|
+
message: import_zod.z.string().optional(),
|
|
5116
|
+
period_end: import_zod.z.string().optional(),
|
|
5117
|
+
plan: import_zod.z.object({
|
|
5118
|
+
id: import_zod.z.string().uuid().optional(),
|
|
5119
|
+
monthly_cost_cents: import_zod.z.number().int().optional(),
|
|
5120
|
+
monthly_cost_usd: import_zod.z.string().optional(),
|
|
5121
|
+
name: import_zod.z.string().optional(),
|
|
5122
|
+
ram_mb: import_zod.z.number().int().optional(),
|
|
5123
|
+
storage_mb: import_zod.z.number().int().optional(),
|
|
5124
|
+
tier: import_zod.z.string().optional(),
|
|
5125
|
+
vcpu: import_zod.z.number().int().optional()
|
|
5126
|
+
}).optional(),
|
|
5127
|
+
status: import_zod.z.string().optional()
|
|
5128
|
+
});
|
|
4923
5129
|
var zSendNotificationRequest = import_zod.z.object({
|
|
4924
5130
|
channel: import_zod.z.string(),
|
|
4925
5131
|
message: import_zod.z.string(),
|
|
@@ -5213,6 +5419,7 @@ var zListServersResponse = import_zod.z.object({
|
|
|
5213
5419
|
created_at: import_zod.z.string().datetime().optional(),
|
|
5214
5420
|
domain: import_zod.z.string().optional(),
|
|
5215
5421
|
error: import_zod.z.string().optional(),
|
|
5422
|
+
guest_ip: import_zod.z.string().optional(),
|
|
5216
5423
|
id: import_zod.z.string().uuid().optional(),
|
|
5217
5424
|
lxd_container_name: import_zod.z.string().optional(),
|
|
5218
5425
|
organization: import_zod.z.object({
|
|
@@ -5224,6 +5431,7 @@ var zListServersResponse = import_zod.z.object({
|
|
|
5224
5431
|
slug: import_zod.z.string().optional()
|
|
5225
5432
|
}).optional(),
|
|
5226
5433
|
organization_id: import_zod.z.string().uuid().optional(),
|
|
5434
|
+
server_id: import_zod.z.string().uuid().optional(),
|
|
5227
5435
|
ssh_key: import_zod.z.object({
|
|
5228
5436
|
auth_method: import_zod.z.string().optional(),
|
|
5229
5437
|
created_at: import_zod.z.string().datetime().optional(),
|
|
@@ -5701,16 +5909,7 @@ var zApplicationDeployment = import_zod.z.object({
|
|
|
5701
5909
|
id: import_zod.z.string().uuid().optional(),
|
|
5702
5910
|
image_s3_key: import_zod.z.string().optional(),
|
|
5703
5911
|
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(),
|
|
5704
|
-
logs: import_zod.z.array(import_zod.z.
|
|
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(),
|
|
5912
|
+
logs: import_zod.z.array(import_zod.z.lazy(() => zApplicationLogs)).optional(),
|
|
5714
5913
|
status: import_zod.z.object({
|
|
5715
5914
|
application_deployment: import_zod.z.lazy(() => zApplicationDeployment).optional(),
|
|
5716
5915
|
application_deployment_id: import_zod.z.string().uuid().optional(),
|
|
@@ -5724,7 +5923,16 @@ var zApplicationDeployment = import_zod.z.object({
|
|
|
5724
5923
|
var zApplicationDomain = import_zod.z.object({
|
|
5725
5924
|
application: zApplication.optional(),
|
|
5726
5925
|
application_id: import_zod.z.string().uuid().optional(),
|
|
5727
|
-
compose_service: import_zod.z.
|
|
5926
|
+
compose_service: import_zod.z.object({
|
|
5927
|
+
application: zApplication.optional(),
|
|
5928
|
+
application_id: import_zod.z.string().uuid().optional(),
|
|
5929
|
+
created_at: import_zod.z.string().datetime().optional(),
|
|
5930
|
+
domains: import_zod.z.array(import_zod.z.lazy(() => zApplicationDomain)).optional(),
|
|
5931
|
+
id: import_zod.z.string().uuid().optional(),
|
|
5932
|
+
port: import_zod.z.number().int().optional(),
|
|
5933
|
+
service_name: import_zod.z.string().optional(),
|
|
5934
|
+
updated_at: import_zod.z.string().datetime().optional()
|
|
5935
|
+
}).optional(),
|
|
5728
5936
|
compose_service_id: import_zod.z.string().uuid().optional(),
|
|
5729
5937
|
created_at: import_zod.z.string().datetime().optional(),
|
|
5730
5938
|
domain: import_zod.z.string().optional(),
|
|
@@ -8605,6 +8813,15 @@ var zPauseLiveDeployServiceData = import_zod.z.object({
|
|
|
8605
8813
|
}).optional()
|
|
8606
8814
|
});
|
|
8607
8815
|
var zPauseLiveDeployServiceResponse = zPauseResponse;
|
|
8816
|
+
var zGetMachineBillingStatusData = import_zod.z.object({
|
|
8817
|
+
body: import_zod.z.never().optional(),
|
|
8818
|
+
path: import_zod.z.never().optional(),
|
|
8819
|
+
query: import_zod.z.never().optional(),
|
|
8820
|
+
headers: import_zod.z.object({
|
|
8821
|
+
Accept: import_zod.z.string().optional()
|
|
8822
|
+
}).optional()
|
|
8823
|
+
});
|
|
8824
|
+
var zGetMachineBillingStatusResponse = zMachineBillingResponse;
|
|
8608
8825
|
var zExecuteACommandOnTheHostMachineData = import_zod.z.object({
|
|
8609
8826
|
body: zHostExecRequest,
|
|
8610
8827
|
path: import_zod.z.never().optional(),
|
|
@@ -8614,6 +8831,51 @@ var zExecuteACommandOnTheHostMachineData = import_zod.z.object({
|
|
|
8614
8831
|
}).optional()
|
|
8615
8832
|
});
|
|
8616
8833
|
var zExecuteACommandOnTheHostMachineResponse = zHostExecResponse;
|
|
8834
|
+
var zPauseMachineData = import_zod.z.object({
|
|
8835
|
+
body: import_zod.z.never().optional(),
|
|
8836
|
+
path: import_zod.z.never().optional(),
|
|
8837
|
+
query: import_zod.z.never().optional(),
|
|
8838
|
+
headers: import_zod.z.object({
|
|
8839
|
+
Accept: import_zod.z.string().optional()
|
|
8840
|
+
}).optional()
|
|
8841
|
+
});
|
|
8842
|
+
var zPauseMachineResponse = zMachineActionResponse;
|
|
8843
|
+
var zSelectAMachinePlanData = import_zod.z.object({
|
|
8844
|
+
body: zSelectPlanRequest,
|
|
8845
|
+
path: import_zod.z.never().optional(),
|
|
8846
|
+
query: import_zod.z.never().optional(),
|
|
8847
|
+
headers: import_zod.z.object({
|
|
8848
|
+
Accept: import_zod.z.string().optional()
|
|
8849
|
+
}).optional()
|
|
8850
|
+
});
|
|
8851
|
+
var zSelectAMachinePlanResponse = zSelectPlanResponse;
|
|
8852
|
+
var zListAvailableMachinePlansData = import_zod.z.object({
|
|
8853
|
+
body: import_zod.z.never().optional(),
|
|
8854
|
+
path: import_zod.z.never().optional(),
|
|
8855
|
+
query: import_zod.z.never().optional(),
|
|
8856
|
+
headers: import_zod.z.object({
|
|
8857
|
+
Accept: import_zod.z.string().optional()
|
|
8858
|
+
}).optional()
|
|
8859
|
+
});
|
|
8860
|
+
var zListAvailableMachinePlansResponse = zListPlansResponse;
|
|
8861
|
+
var zRestartMachineData = import_zod.z.object({
|
|
8862
|
+
body: import_zod.z.never().optional(),
|
|
8863
|
+
path: import_zod.z.never().optional(),
|
|
8864
|
+
query: import_zod.z.never().optional(),
|
|
8865
|
+
headers: import_zod.z.object({
|
|
8866
|
+
Accept: import_zod.z.string().optional()
|
|
8867
|
+
}).optional()
|
|
8868
|
+
});
|
|
8869
|
+
var zRestartMachineResponse = zMachineActionResponse;
|
|
8870
|
+
var zResumeMachineData = import_zod.z.object({
|
|
8871
|
+
body: import_zod.z.never().optional(),
|
|
8872
|
+
path: import_zod.z.never().optional(),
|
|
8873
|
+
query: import_zod.z.never().optional(),
|
|
8874
|
+
headers: import_zod.z.object({
|
|
8875
|
+
Accept: import_zod.z.string().optional()
|
|
8876
|
+
}).optional()
|
|
8877
|
+
});
|
|
8878
|
+
var zResumeMachineResponse = zMachineActionResponse;
|
|
8617
8879
|
var zGetMachineSystemStatsData = import_zod.z.object({
|
|
8618
8880
|
body: import_zod.z.never().optional(),
|
|
8619
8881
|
path: import_zod.z.never().optional(),
|
|
@@ -8623,6 +8885,15 @@ var zGetMachineSystemStatsData = import_zod.z.object({
|
|
|
8623
8885
|
}).optional()
|
|
8624
8886
|
});
|
|
8625
8887
|
var zGetMachineSystemStatsResponse = zSystemStatsResponse;
|
|
8888
|
+
var zGetMachineLifecycleStatusData = import_zod.z.object({
|
|
8889
|
+
body: import_zod.z.never().optional(),
|
|
8890
|
+
path: import_zod.z.never().optional(),
|
|
8891
|
+
query: import_zod.z.never().optional(),
|
|
8892
|
+
headers: import_zod.z.object({
|
|
8893
|
+
Accept: import_zod.z.string().optional()
|
|
8894
|
+
}).optional()
|
|
8895
|
+
});
|
|
8896
|
+
var zGetMachineLifecycleStatusResponse = zMachineStateResponse;
|
|
8626
8897
|
var zGetNotificationPreferencesData = import_zod.z.object({
|
|
8627
8898
|
body: import_zod.z.never().optional(),
|
|
8628
8899
|
path: import_zod.z.never().optional(),
|
|
@@ -9221,6 +9492,12 @@ var zListHealthCheckResultsResponse = zHealthCheckResultsResponse;
|
|
|
9221
9492
|
getHealthChecks,
|
|
9222
9493
|
getHealthChecksOptions,
|
|
9223
9494
|
getHealthChecksQueryKey,
|
|
9495
|
+
getMachineBillingStatus,
|
|
9496
|
+
getMachineBillingStatusOptions,
|
|
9497
|
+
getMachineBillingStatusQueryKey,
|
|
9498
|
+
getMachineLifecycleStatus,
|
|
9499
|
+
getMachineLifecycleStatusOptions,
|
|
9500
|
+
getMachineLifecycleStatusQueryKey,
|
|
9224
9501
|
getMachineSystemStats,
|
|
9225
9502
|
getMachineSystemStatsOptions,
|
|
9226
9503
|
getMachineSystemStatsQueryKey,
|
|
@@ -9269,6 +9546,9 @@ var zListHealthCheckResultsResponse = zHealthCheckResultsResponse;
|
|
|
9269
9546
|
listAuditLogsInfiniteQueryKey,
|
|
9270
9547
|
listAuditLogsOptions,
|
|
9271
9548
|
listAuditLogsQueryKey,
|
|
9549
|
+
listAvailableMachinePlans,
|
|
9550
|
+
listAvailableMachinePlansOptions,
|
|
9551
|
+
listAvailableMachinePlansQueryKey,
|
|
9272
9552
|
listComposeServices,
|
|
9273
9553
|
listComposeServicesOptions,
|
|
9274
9554
|
listComposeServicesQueryKey,
|
|
@@ -9328,6 +9608,8 @@ var zListHealthCheckResultsResponse = zHealthCheckResultsResponse;
|
|
|
9328
9608
|
moveDirectoryMutation,
|
|
9329
9609
|
pauseLiveDeployService,
|
|
9330
9610
|
pauseLiveDeployServiceMutation,
|
|
9611
|
+
pauseMachine,
|
|
9612
|
+
pauseMachineMutation,
|
|
9331
9613
|
performUpdate,
|
|
9332
9614
|
performUpdateMutation,
|
|
9333
9615
|
previewComposeServices,
|
|
@@ -9352,10 +9634,16 @@ var zListHealthCheckResultsResponse = zHealthCheckResultsResponse;
|
|
|
9352
9634
|
restartContainerMutation,
|
|
9353
9635
|
restartDeployment,
|
|
9354
9636
|
restartDeploymentMutation,
|
|
9637
|
+
restartMachine,
|
|
9638
|
+
restartMachineMutation,
|
|
9639
|
+
resumeMachine,
|
|
9640
|
+
resumeMachineMutation,
|
|
9355
9641
|
rollbackDeployment,
|
|
9356
9642
|
rollbackDeploymentMutation,
|
|
9357
9643
|
runExtension,
|
|
9358
9644
|
runExtensionMutation,
|
|
9645
|
+
selectAMachinePlan,
|
|
9646
|
+
selectAMachinePlanMutation,
|
|
9359
9647
|
sendNotification,
|
|
9360
9648
|
sendNotificationMutation,
|
|
9361
9649
|
startContainer,
|
|
@@ -9531,6 +9819,10 @@ var zListHealthCheckResultsResponse = zHealthCheckResultsResponse;
|
|
|
9531
9819
|
zGetHealthCheckStatsResponse,
|
|
9532
9820
|
zGetHealthChecksData,
|
|
9533
9821
|
zGetHealthChecksResponse,
|
|
9822
|
+
zGetMachineBillingStatusData,
|
|
9823
|
+
zGetMachineBillingStatusResponse,
|
|
9824
|
+
zGetMachineLifecycleStatusData,
|
|
9825
|
+
zGetMachineLifecycleStatusResponse,
|
|
9534
9826
|
zGetMachineSystemStatsData,
|
|
9535
9827
|
zGetMachineSystemStatsResponse,
|
|
9536
9828
|
zGetNotificationPreferencesData,
|
|
@@ -9574,6 +9866,8 @@ var zListHealthCheckResultsResponse = zHealthCheckResultsResponse;
|
|
|
9574
9866
|
zListApplicationsResponse2,
|
|
9575
9867
|
zListAuditLogsData,
|
|
9576
9868
|
zListAuditLogsResponse,
|
|
9869
|
+
zListAvailableMachinePlansData,
|
|
9870
|
+
zListAvailableMachinePlansResponse,
|
|
9577
9871
|
zListBranchesResponse,
|
|
9578
9872
|
zListComposeServicesData,
|
|
9579
9873
|
zListComposeServicesResponse,
|
|
@@ -9614,6 +9908,7 @@ var zListHealthCheckResultsResponse = zHealthCheckResultsResponse;
|
|
|
9614
9908
|
zListImagesResponse,
|
|
9615
9909
|
zListImagesResponse2,
|
|
9616
9910
|
zListLogsResponse,
|
|
9911
|
+
zListPlansResponse,
|
|
9617
9912
|
zListProjectsInFamilyData,
|
|
9618
9913
|
zListProjectsInFamilyResponse,
|
|
9619
9914
|
zListRepositoriesResponse,
|
|
@@ -9623,6 +9918,9 @@ var zListHealthCheckResultsResponse = zHealthCheckResultsResponse;
|
|
|
9623
9918
|
zListServersResponse,
|
|
9624
9919
|
zListServersResponse2,
|
|
9625
9920
|
zLogsResponse,
|
|
9921
|
+
zMachineActionResponse,
|
|
9922
|
+
zMachineBillingResponse,
|
|
9923
|
+
zMachineStateResponse,
|
|
9626
9924
|
zMarkOnboardingCompleteData,
|
|
9627
9925
|
zMarkOnboardingCompleteResponse,
|
|
9628
9926
|
zMarkOnboardingCompleteResponse2,
|
|
@@ -9632,6 +9930,8 @@ var zListHealthCheckResultsResponse = zHealthCheckResultsResponse;
|
|
|
9632
9930
|
zMoveDirectoryResponse,
|
|
9633
9931
|
zPauseLiveDeployServiceData,
|
|
9634
9932
|
zPauseLiveDeployServiceResponse,
|
|
9933
|
+
zPauseMachineData,
|
|
9934
|
+
zPauseMachineResponse,
|
|
9635
9935
|
zPauseRequest,
|
|
9636
9936
|
zPauseResponse,
|
|
9637
9937
|
zPerformUpdateData,
|
|
@@ -9674,12 +9974,20 @@ var zListHealthCheckResultsResponse = zHealthCheckResultsResponse;
|
|
|
9674
9974
|
zRestartDeploymentData,
|
|
9675
9975
|
zRestartDeploymentRequest,
|
|
9676
9976
|
zRestartDeploymentResponse,
|
|
9977
|
+
zRestartMachineData,
|
|
9978
|
+
zRestartMachineResponse,
|
|
9979
|
+
zResumeMachineData,
|
|
9980
|
+
zResumeMachineResponse,
|
|
9677
9981
|
zRollbackDeploymentData,
|
|
9678
9982
|
zRollbackDeploymentRequest,
|
|
9679
9983
|
zRollbackDeploymentResponse,
|
|
9680
9984
|
zRunExtensionData,
|
|
9681
9985
|
zRunExtensionRequest,
|
|
9682
9986
|
zRunExtensionResponse,
|
|
9987
|
+
zSelectAMachinePlanData,
|
|
9988
|
+
zSelectAMachinePlanResponse,
|
|
9989
|
+
zSelectPlanRequest,
|
|
9990
|
+
zSelectPlanResponse,
|
|
9683
9991
|
zSendNotificationData,
|
|
9684
9992
|
zSendNotificationRequest,
|
|
9685
9993
|
zSendNotificationResponse,
|