@fabrika/provider-zerops 0.8.2 → 0.9.0-cloudflare.2

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.
Files changed (128) hide show
  1. package/package.json +16 -14
  2. package/src/api/client.ts +6 -0
  3. package/src/api/types.ts +12 -0
  4. package/src/cli.ts +11 -0
  5. package/src/collaborators.ts +0 -14
  6. package/src/control.ts +33 -57
  7. package/src/execution.ts +113 -102
  8. package/src/installation/admin.ts +1 -1
  9. package/src/installation/deploy-options.ts +1 -2
  10. package/src/installation/deploy.ts +41 -75
  11. package/src/installation/generated/platform-console-schema.ts +3 -0
  12. package/src/installation/generated/platform-proxy-manifest.ts +21 -1
  13. package/src/installation/guide.md +9 -6
  14. package/src/installation/hosts.ts +1 -7
  15. package/src/installation/index.ts +0 -13
  16. package/src/installation/init-options.ts +2 -1
  17. package/src/installation/install-environment.ts +42 -106
  18. package/src/installation/install-options.ts +3 -1
  19. package/src/installation/install-secrets.ts +24 -68
  20. package/src/installation/install.ts +8 -4
  21. package/src/installation/sidecar.ts +5 -26
  22. package/src/installation/topology/setups.ts +5 -0
  23. package/src/installation/upgrade-options.ts +2 -2
  24. package/src/managed-env.ts +1 -174
  25. package/src/manifest.ts +11 -14
  26. package/src/namespace/claims.ts +56 -1
  27. package/src/namespace/errors.ts +1 -1
  28. package/src/namespace/manifest.ts +6 -19
  29. package/src/namespace/provisioning.ts +15 -3
  30. package/src/namespace/proxy-attempt.ts +43 -2
  31. package/src/namespace/proxy-reads.ts +12 -22
  32. package/src/namespace-cli.ts +152 -0
  33. package/src/plan.ts +2 -7
  34. package/src/provider.ts +128 -126
  35. package/src/proxy-manifest-carrier.ts +18 -0
  36. package/src/types.ts +0 -2
  37. package/types/src/api/client.d.ts +5 -0
  38. package/types/src/api/errors.d.ts +24 -0
  39. package/types/src/api/polling.d.ts +41 -0
  40. package/types/src/api/readers.d.ts +1115 -0
  41. package/types/src/api/service-env-limit.d.ts +17 -0
  42. package/types/src/api/service-env-response.d.ts +23 -0
  43. package/types/src/api/types.d.ts +687 -0
  44. package/types/src/api.d.ts +6 -0
  45. package/types/src/authoring.d.ts +9 -0
  46. package/types/src/cli-args.d.ts +19 -0
  47. package/types/src/cli.d.ts +13 -0
  48. package/types/src/collaborators.d.ts +16 -0
  49. package/types/src/compile.d.ts +91 -0
  50. package/types/src/control.d.ts +40 -0
  51. package/types/src/database-budget.d.ts +38 -0
  52. package/types/src/descriptor.d.ts +28 -0
  53. package/types/src/execution.d.ts +125 -0
  54. package/types/src/exposure.d.ts +47 -0
  55. package/types/src/index.d.ts +31 -0
  56. package/types/src/installation/admin-options.d.ts +24 -0
  57. package/types/src/installation/admin.d.ts +35 -0
  58. package/types/src/installation/checker-release.d.ts +12 -0
  59. package/types/src/installation/deploy-options.d.ts +37 -0
  60. package/types/src/installation/deploy.d.ts +136 -0
  61. package/types/src/installation/generated/platform-console-schema.d.ts +2 -0
  62. package/types/src/installation/generated/platform-proxy-manifest.d.ts +2 -0
  63. package/types/src/installation/hosts.d.ts +34 -0
  64. package/types/src/installation/index.d.ts +7 -0
  65. package/types/src/installation/init-options.d.ts +38 -0
  66. package/types/src/installation/init.d.ts +60 -0
  67. package/types/src/installation/install-collaborators.d.ts +24 -0
  68. package/types/src/installation/install-environment.d.ts +63 -0
  69. package/types/src/installation/install-options.d.ts +49 -0
  70. package/types/src/installation/install-project.d.ts +13 -0
  71. package/types/src/installation/install-provisioning.d.ts +58 -0
  72. package/types/src/installation/install-secrets.d.ts +17 -0
  73. package/types/src/installation/install-token.d.ts +10 -0
  74. package/types/src/installation/install.d.ts +23 -0
  75. package/types/src/installation/installation-source.d.ts +8 -0
  76. package/types/src/installation/log.d.ts +44 -0
  77. package/types/src/installation/machine-key.d.ts +19 -0
  78. package/types/src/installation/placement-options.d.ts +11 -0
  79. package/types/src/installation/platform-archive.d.ts +7 -0
  80. package/types/src/installation/platform-source.d.ts +8 -0
  81. package/types/src/installation/platform-upload.d.ts +3 -0
  82. package/types/src/installation/sidecar.d.ts +49 -0
  83. package/types/src/installation/source-options.d.ts +1 -0
  84. package/types/src/installation/topology/artifacts.d.ts +8 -0
  85. package/types/src/installation/topology/index.d.ts +5 -0
  86. package/types/src/installation/topology/installation-schemas.d.ts +2242 -0
  87. package/types/src/installation/topology/invariants.d.ts +23 -0
  88. package/types/src/installation/topology/setups.d.ts +59 -0
  89. package/types/src/installation/topology/topology.d.ts +153 -0
  90. package/types/src/installation/topology/validate.d.ts +11 -0
  91. package/types/src/installation/upgrade-options.d.ts +26 -0
  92. package/types/src/installation/upgrade-output.d.ts +6 -0
  93. package/types/src/installation/upgrade.d.ts +88 -0
  94. package/types/src/managed-env.d.ts +24 -0
  95. package/types/src/manifest.d.ts +204 -0
  96. package/types/src/namespace/claims.d.ts +16 -0
  97. package/types/src/namespace/codec.d.ts +334 -0
  98. package/types/src/namespace/constants.d.ts +25 -0
  99. package/types/src/namespace/errors.d.ts +15 -0
  100. package/types/src/namespace/manifest.d.ts +4 -0
  101. package/types/src/namespace/operator.d.ts +12 -0
  102. package/types/src/namespace/provisioning.d.ts +4 -0
  103. package/types/src/namespace/proxy-attempt.d.ts +39 -0
  104. package/types/src/namespace/proxy-reads.d.ts +22 -0
  105. package/types/src/namespace/proxy-secrets.d.ts +8 -0
  106. package/types/src/namespace/proxy-source.d.ts +74 -0
  107. package/types/src/namespace/topology.d.ts +9 -0
  108. package/types/src/namespace/types.d.ts +101 -0
  109. package/types/src/namespace/update.d.ts +6 -0
  110. package/types/src/namespace/validation.d.ts +12 -0
  111. package/types/src/namespace-cli.d.ts +2 -0
  112. package/types/src/namespace.d.ts +9 -0
  113. package/types/src/plan.d.ts +11 -0
  114. package/types/src/provider.d.ts +63 -0
  115. package/types/src/proxy-manifest-carrier.d.ts +24 -0
  116. package/types/src/schema.generated.d.ts +376 -0
  117. package/types/src/service-names.d.ts +4 -0
  118. package/types/src/service-references.d.ts +13 -0
  119. package/types/src/source/constants.d.ts +6 -0
  120. package/types/src/source/port.d.ts +60 -0
  121. package/types/src/source/types.d.ts +4 -0
  122. package/types/src/source/validation.d.ts +19 -0
  123. package/types/src/source.d.ts +2 -0
  124. package/types/src/types.d.ts +119 -0
  125. package/types/src/version-attempt.d.ts +8 -0
  126. package/src/installation/mcp.ts +0 -102
  127. package/src/installation/proxy-manifest.ts +0 -214
  128. package/src/installation/secrets.ts +0 -78
@@ -0,0 +1,1115 @@
1
+ import { z } from 'zod';
2
+ import type { ZeropsBackupConfig, ZeropsImportResult, ZeropsProcess, ZeropsService, ZeropsServiceAutoscaling } from './types';
3
+ export declare const appVersionSchema: z.ZodObject<{
4
+ id: z.ZodEffects<z.ZodString, string, string>;
5
+ status: z.ZodCatch<z.ZodOptional<z.ZodEnum<["UPLOADING", "WAITING_TO_BUILD", "BUILDING", "BUILD_FAILED", "BUILD_VALIDATION_FAILED", "WAITING_TO_DEPLOY", "DEPLOYING", "DEPLOY_FAILED", "PREPARING_RUNTIME", "PREPARING_RUNTIME_FAILED", "ACTIVE", "BACKUP", "CANCELLED"]>>>;
6
+ serviceStackId: z.ZodCatch<z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>>;
7
+ projectId: z.ZodCatch<z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>>;
8
+ sequence: z.ZodCatch<z.ZodOptional<z.ZodNumber>>;
9
+ build: z.ZodCatch<z.ZodOptional<z.ZodObject<{
10
+ startDate: z.ZodCatch<z.ZodOptional<z.ZodString>>;
11
+ endDate: z.ZodCatch<z.ZodOptional<z.ZodString>>;
12
+ pipelineStart: z.ZodCatch<z.ZodOptional<z.ZodString>>;
13
+ pipelineFinish: z.ZodCatch<z.ZodOptional<z.ZodString>>;
14
+ pipelineFailed: z.ZodCatch<z.ZodOptional<z.ZodString>>;
15
+ }, "strip", z.ZodTypeAny, {
16
+ startDate?: string | undefined;
17
+ endDate?: string | undefined;
18
+ pipelineStart?: string | undefined;
19
+ pipelineFinish?: string | undefined;
20
+ pipelineFailed?: string | undefined;
21
+ }, {
22
+ startDate?: unknown;
23
+ endDate?: unknown;
24
+ pipelineStart?: unknown;
25
+ pipelineFinish?: unknown;
26
+ pipelineFailed?: unknown;
27
+ }>>>;
28
+ }, "strip", z.ZodTypeAny, {
29
+ id: string;
30
+ status?: "UPLOADING" | "WAITING_TO_BUILD" | "BUILDING" | "BUILD_FAILED" | "BUILD_VALIDATION_FAILED" | "WAITING_TO_DEPLOY" | "DEPLOYING" | "DEPLOY_FAILED" | "PREPARING_RUNTIME" | "PREPARING_RUNTIME_FAILED" | "ACTIVE" | "BACKUP" | "CANCELLED" | undefined;
31
+ build?: {
32
+ startDate?: string | undefined;
33
+ endDate?: string | undefined;
34
+ pipelineStart?: string | undefined;
35
+ pipelineFinish?: string | undefined;
36
+ pipelineFailed?: string | undefined;
37
+ } | undefined;
38
+ serviceStackId?: string | undefined;
39
+ projectId?: string | undefined;
40
+ sequence?: number | undefined;
41
+ }, {
42
+ id: string;
43
+ status?: unknown;
44
+ build?: unknown;
45
+ serviceStackId?: unknown;
46
+ projectId?: unknown;
47
+ sequence?: unknown;
48
+ }>;
49
+ export declare const processSchema: z.ZodEffects<z.ZodObject<{
50
+ id: z.ZodEffects<z.ZodString, string, string>;
51
+ status: z.ZodCatch<z.ZodOptional<z.ZodString>>;
52
+ actionName: z.ZodCatch<z.ZodOptional<z.ZodString>>;
53
+ serviceStackId: z.ZodCatch<z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>>;
54
+ appVersion: z.ZodOptional<z.ZodNullable<z.ZodObject<{
55
+ id: z.ZodEffects<z.ZodString, string, string>;
56
+ }, "strip", z.ZodTypeAny, {
57
+ id: string;
58
+ }, {
59
+ id: string;
60
+ }>>>;
61
+ }, "strip", z.ZodTypeAny, {
62
+ id: string;
63
+ status?: string | undefined;
64
+ serviceStackId?: string | undefined;
65
+ actionName?: string | undefined;
66
+ appVersion?: {
67
+ id: string;
68
+ } | null | undefined;
69
+ }, {
70
+ id: string;
71
+ status?: unknown;
72
+ serviceStackId?: unknown;
73
+ actionName?: unknown;
74
+ appVersion?: {
75
+ id: string;
76
+ } | null | undefined;
77
+ }>, ZeropsProcess, {
78
+ id: string;
79
+ status?: unknown;
80
+ serviceStackId?: unknown;
81
+ actionName?: unknown;
82
+ appVersion?: {
83
+ id: string;
84
+ } | null | undefined;
85
+ }>;
86
+ export declare const serviceSchema: z.ZodEffects<z.ZodObject<{
87
+ id: z.ZodEffects<z.ZodString, string, string>;
88
+ name: z.ZodString;
89
+ projectId: z.ZodCatch<z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>>;
90
+ status: z.ZodCatch<z.ZodOptional<z.ZodEnum<["NEW", "CREATING", "ACTIVE", "STOPPING", "STOPPED", "STARTING", "RESTARTING", "RELOADING", "DELETING", "DELETED", "FAILED", "ACTION_FAILED", "UPGRADING", "READY_TO_DEPLOY", "SERVICE_CREATING", "SERVICE_ACTIVE", "SERVICE_STOPPING", "SERVICE_STOPPED", "SERVICE_STARTING", "SERVICE_RESTARTING", "SERVICE_RELOADING", "SERVICE_DELETING", "SERVICE_DELETED", "SERVICE_FAILED", "SERVICE_ACTION_FAILED", "SERVICE_REPAIRING", "SERVICE_CONTAINER_FAILED", "SERVICE_MOVING_CONTAINER", "SERVICE_UPGRADING", "SERVICE_SCALING", "SERVICE_REPAIR_FAILED", "REPAIRING", "CONTAINER_FAILED", "MOVING_CONTAINER", "SCALING", "REPAIR_FAILED"]>>>;
91
+ base: z.ZodCatch<z.ZodOptional<z.ZodString>>;
92
+ activeAppVersion: z.ZodOptional<z.ZodNullable<z.ZodObject<{
93
+ id: z.ZodEffects<z.ZodString, string, string>;
94
+ }, "strip", z.ZodTypeAny, {
95
+ id: string;
96
+ }, {
97
+ id: string;
98
+ }>>>;
99
+ subdomainAccess: z.ZodCatch<z.ZodOptional<z.ZodBoolean>>;
100
+ autoscalingProfileId: z.ZodCatch<z.ZodOptional<z.ZodString>>;
101
+ customAutoscaling: z.ZodCatch<z.ZodOptional<z.ZodEffects<z.ZodObject<{
102
+ verticalAutoscaling: z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodObject<{
103
+ cpuMode: z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodEnum<["DEDICATED", "SHARED"]>>>, "DEDICATED" | "SHARED" | null, "DEDICATED" | "SHARED" | null | undefined>;
104
+ minResource: z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodObject<{
105
+ cpuCoreCount: z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodNumber>>, number | null, number | null | undefined>;
106
+ memoryGBytes: z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodNumber>>, number | null, number | null | undefined>;
107
+ diskGBytes: z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodNumber>>, number | null, number | null | undefined>;
108
+ }, "strip", z.ZodTypeAny, {
109
+ cpuCoreCount: number | null;
110
+ memoryGBytes: number | null;
111
+ diskGBytes: number | null;
112
+ }, {
113
+ cpuCoreCount?: number | null | undefined;
114
+ memoryGBytes?: number | null | undefined;
115
+ diskGBytes?: number | null | undefined;
116
+ }>>>, {
117
+ cpuCoreCount: number | null;
118
+ memoryGBytes: number | null;
119
+ diskGBytes: number | null;
120
+ }, {
121
+ cpuCoreCount?: number | null | undefined;
122
+ memoryGBytes?: number | null | undefined;
123
+ diskGBytes?: number | null | undefined;
124
+ } | null | undefined>;
125
+ maxResource: z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodObject<{
126
+ cpuCoreCount: z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodNumber>>, number | null, number | null | undefined>;
127
+ memoryGBytes: z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodNumber>>, number | null, number | null | undefined>;
128
+ diskGBytes: z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodNumber>>, number | null, number | null | undefined>;
129
+ }, "strip", z.ZodTypeAny, {
130
+ cpuCoreCount: number | null;
131
+ memoryGBytes: number | null;
132
+ diskGBytes: number | null;
133
+ }, {
134
+ cpuCoreCount?: number | null | undefined;
135
+ memoryGBytes?: number | null | undefined;
136
+ diskGBytes?: number | null | undefined;
137
+ }>>>, {
138
+ cpuCoreCount: number | null;
139
+ memoryGBytes: number | null;
140
+ diskGBytes: number | null;
141
+ }, {
142
+ cpuCoreCount?: number | null | undefined;
143
+ memoryGBytes?: number | null | undefined;
144
+ diskGBytes?: number | null | undefined;
145
+ } | null | undefined>;
146
+ minFreeResource: z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodObject<{
147
+ cpuCoreCount: z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodNumber>>, number | null, number | null | undefined>;
148
+ cpuCorePercent: z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodNumber>>, number | null, number | null | undefined>;
149
+ memoryGBytes: z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodNumber>>, number | null, number | null | undefined>;
150
+ memoryPercent: z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodNumber>>, number | null, number | null | undefined>;
151
+ }, "strip", z.ZodTypeAny, {
152
+ cpuCoreCount: number | null;
153
+ memoryGBytes: number | null;
154
+ cpuCorePercent: number | null;
155
+ memoryPercent: number | null;
156
+ }, {
157
+ cpuCoreCount?: number | null | undefined;
158
+ memoryGBytes?: number | null | undefined;
159
+ cpuCorePercent?: number | null | undefined;
160
+ memoryPercent?: number | null | undefined;
161
+ }>>>, {
162
+ cpuCoreCount: number | null;
163
+ memoryGBytes: number | null;
164
+ cpuCorePercent: number | null;
165
+ memoryPercent: number | null;
166
+ }, {
167
+ cpuCoreCount?: number | null | undefined;
168
+ memoryGBytes?: number | null | undefined;
169
+ cpuCorePercent?: number | null | undefined;
170
+ memoryPercent?: number | null | undefined;
171
+ } | null | undefined>;
172
+ startCpuCoreCount: z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodNumber>>, number | null, number | null | undefined>;
173
+ swapEnabled: z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodBoolean>>, boolean | null, boolean | null | undefined>;
174
+ }, "strip", z.ZodTypeAny, {
175
+ cpuMode: "DEDICATED" | "SHARED" | null;
176
+ minResource: {
177
+ cpuCoreCount: number | null;
178
+ memoryGBytes: number | null;
179
+ diskGBytes: number | null;
180
+ };
181
+ maxResource: {
182
+ cpuCoreCount: number | null;
183
+ memoryGBytes: number | null;
184
+ diskGBytes: number | null;
185
+ };
186
+ minFreeResource: {
187
+ cpuCoreCount: number | null;
188
+ memoryGBytes: number | null;
189
+ cpuCorePercent: number | null;
190
+ memoryPercent: number | null;
191
+ };
192
+ startCpuCoreCount: number | null;
193
+ swapEnabled: boolean | null;
194
+ }, {
195
+ cpuMode?: "DEDICATED" | "SHARED" | null | undefined;
196
+ minResource?: {
197
+ cpuCoreCount?: number | null | undefined;
198
+ memoryGBytes?: number | null | undefined;
199
+ diskGBytes?: number | null | undefined;
200
+ } | null | undefined;
201
+ maxResource?: {
202
+ cpuCoreCount?: number | null | undefined;
203
+ memoryGBytes?: number | null | undefined;
204
+ diskGBytes?: number | null | undefined;
205
+ } | null | undefined;
206
+ minFreeResource?: {
207
+ cpuCoreCount?: number | null | undefined;
208
+ memoryGBytes?: number | null | undefined;
209
+ cpuCorePercent?: number | null | undefined;
210
+ memoryPercent?: number | null | undefined;
211
+ } | null | undefined;
212
+ startCpuCoreCount?: number | null | undefined;
213
+ swapEnabled?: boolean | null | undefined;
214
+ }>>>, {
215
+ cpuMode: "DEDICATED" | "SHARED" | null;
216
+ minResource: {
217
+ cpuCoreCount: number | null;
218
+ memoryGBytes: number | null;
219
+ diskGBytes: number | null;
220
+ };
221
+ maxResource: {
222
+ cpuCoreCount: number | null;
223
+ memoryGBytes: number | null;
224
+ diskGBytes: number | null;
225
+ };
226
+ minFreeResource: {
227
+ cpuCoreCount: number | null;
228
+ memoryGBytes: number | null;
229
+ cpuCorePercent: number | null;
230
+ memoryPercent: number | null;
231
+ };
232
+ startCpuCoreCount: number | null;
233
+ swapEnabled: boolean | null;
234
+ }, {
235
+ cpuMode?: "DEDICATED" | "SHARED" | null | undefined;
236
+ minResource?: {
237
+ cpuCoreCount?: number | null | undefined;
238
+ memoryGBytes?: number | null | undefined;
239
+ diskGBytes?: number | null | undefined;
240
+ } | null | undefined;
241
+ maxResource?: {
242
+ cpuCoreCount?: number | null | undefined;
243
+ memoryGBytes?: number | null | undefined;
244
+ diskGBytes?: number | null | undefined;
245
+ } | null | undefined;
246
+ minFreeResource?: {
247
+ cpuCoreCount?: number | null | undefined;
248
+ memoryGBytes?: number | null | undefined;
249
+ cpuCorePercent?: number | null | undefined;
250
+ memoryPercent?: number | null | undefined;
251
+ } | null | undefined;
252
+ startCpuCoreCount?: number | null | undefined;
253
+ swapEnabled?: boolean | null | undefined;
254
+ } | null | undefined>;
255
+ horizontalAutoscaling: z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodObject<{
256
+ minContainerCount: z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodNumber>>, number | null, number | null | undefined>;
257
+ maxContainerCount: z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodNumber>>, number | null, number | null | undefined>;
258
+ }, "strip", z.ZodTypeAny, {
259
+ minContainerCount: number | null;
260
+ maxContainerCount: number | null;
261
+ }, {
262
+ minContainerCount?: number | null | undefined;
263
+ maxContainerCount?: number | null | undefined;
264
+ }>>>, {
265
+ minContainerCount: number | null;
266
+ maxContainerCount: number | null;
267
+ }, {
268
+ minContainerCount?: number | null | undefined;
269
+ maxContainerCount?: number | null | undefined;
270
+ } | null | undefined>;
271
+ }, "strip", z.ZodTypeAny, {
272
+ verticalAutoscaling: {
273
+ cpuMode: "DEDICATED" | "SHARED" | null;
274
+ minResource: {
275
+ cpuCoreCount: number | null;
276
+ memoryGBytes: number | null;
277
+ diskGBytes: number | null;
278
+ };
279
+ maxResource: {
280
+ cpuCoreCount: number | null;
281
+ memoryGBytes: number | null;
282
+ diskGBytes: number | null;
283
+ };
284
+ minFreeResource: {
285
+ cpuCoreCount: number | null;
286
+ memoryGBytes: number | null;
287
+ cpuCorePercent: number | null;
288
+ memoryPercent: number | null;
289
+ };
290
+ startCpuCoreCount: number | null;
291
+ swapEnabled: boolean | null;
292
+ };
293
+ horizontalAutoscaling: {
294
+ minContainerCount: number | null;
295
+ maxContainerCount: number | null;
296
+ };
297
+ }, {
298
+ verticalAutoscaling?: {
299
+ cpuMode?: "DEDICATED" | "SHARED" | null | undefined;
300
+ minResource?: {
301
+ cpuCoreCount?: number | null | undefined;
302
+ memoryGBytes?: number | null | undefined;
303
+ diskGBytes?: number | null | undefined;
304
+ } | null | undefined;
305
+ maxResource?: {
306
+ cpuCoreCount?: number | null | undefined;
307
+ memoryGBytes?: number | null | undefined;
308
+ diskGBytes?: number | null | undefined;
309
+ } | null | undefined;
310
+ minFreeResource?: {
311
+ cpuCoreCount?: number | null | undefined;
312
+ memoryGBytes?: number | null | undefined;
313
+ cpuCorePercent?: number | null | undefined;
314
+ memoryPercent?: number | null | undefined;
315
+ } | null | undefined;
316
+ startCpuCoreCount?: number | null | undefined;
317
+ swapEnabled?: boolean | null | undefined;
318
+ } | null | undefined;
319
+ horizontalAutoscaling?: {
320
+ minContainerCount?: number | null | undefined;
321
+ maxContainerCount?: number | null | undefined;
322
+ } | null | undefined;
323
+ }>, ZeropsServiceAutoscaling, {
324
+ verticalAutoscaling?: {
325
+ cpuMode?: "DEDICATED" | "SHARED" | null | undefined;
326
+ minResource?: {
327
+ cpuCoreCount?: number | null | undefined;
328
+ memoryGBytes?: number | null | undefined;
329
+ diskGBytes?: number | null | undefined;
330
+ } | null | undefined;
331
+ maxResource?: {
332
+ cpuCoreCount?: number | null | undefined;
333
+ memoryGBytes?: number | null | undefined;
334
+ diskGBytes?: number | null | undefined;
335
+ } | null | undefined;
336
+ minFreeResource?: {
337
+ cpuCoreCount?: number | null | undefined;
338
+ memoryGBytes?: number | null | undefined;
339
+ cpuCorePercent?: number | null | undefined;
340
+ memoryPercent?: number | null | undefined;
341
+ } | null | undefined;
342
+ startCpuCoreCount?: number | null | undefined;
343
+ swapEnabled?: boolean | null | undefined;
344
+ } | null | undefined;
345
+ horizontalAutoscaling?: {
346
+ minContainerCount?: number | null | undefined;
347
+ maxContainerCount?: number | null | undefined;
348
+ } | null | undefined;
349
+ }>>>;
350
+ currentAutoscaling: z.ZodCatch<z.ZodOptional<z.ZodEffects<z.ZodObject<{
351
+ verticalAutoscaling: z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodObject<{
352
+ cpuMode: z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodEnum<["DEDICATED", "SHARED"]>>>, "DEDICATED" | "SHARED" | null, "DEDICATED" | "SHARED" | null | undefined>;
353
+ minResource: z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodObject<{
354
+ cpuCoreCount: z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodNumber>>, number | null, number | null | undefined>;
355
+ memoryGBytes: z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodNumber>>, number | null, number | null | undefined>;
356
+ diskGBytes: z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodNumber>>, number | null, number | null | undefined>;
357
+ }, "strip", z.ZodTypeAny, {
358
+ cpuCoreCount: number | null;
359
+ memoryGBytes: number | null;
360
+ diskGBytes: number | null;
361
+ }, {
362
+ cpuCoreCount?: number | null | undefined;
363
+ memoryGBytes?: number | null | undefined;
364
+ diskGBytes?: number | null | undefined;
365
+ }>>>, {
366
+ cpuCoreCount: number | null;
367
+ memoryGBytes: number | null;
368
+ diskGBytes: number | null;
369
+ }, {
370
+ cpuCoreCount?: number | null | undefined;
371
+ memoryGBytes?: number | null | undefined;
372
+ diskGBytes?: number | null | undefined;
373
+ } | null | undefined>;
374
+ maxResource: z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodObject<{
375
+ cpuCoreCount: z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodNumber>>, number | null, number | null | undefined>;
376
+ memoryGBytes: z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodNumber>>, number | null, number | null | undefined>;
377
+ diskGBytes: z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodNumber>>, number | null, number | null | undefined>;
378
+ }, "strip", z.ZodTypeAny, {
379
+ cpuCoreCount: number | null;
380
+ memoryGBytes: number | null;
381
+ diskGBytes: number | null;
382
+ }, {
383
+ cpuCoreCount?: number | null | undefined;
384
+ memoryGBytes?: number | null | undefined;
385
+ diskGBytes?: number | null | undefined;
386
+ }>>>, {
387
+ cpuCoreCount: number | null;
388
+ memoryGBytes: number | null;
389
+ diskGBytes: number | null;
390
+ }, {
391
+ cpuCoreCount?: number | null | undefined;
392
+ memoryGBytes?: number | null | undefined;
393
+ diskGBytes?: number | null | undefined;
394
+ } | null | undefined>;
395
+ minFreeResource: z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodObject<{
396
+ cpuCoreCount: z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodNumber>>, number | null, number | null | undefined>;
397
+ cpuCorePercent: z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodNumber>>, number | null, number | null | undefined>;
398
+ memoryGBytes: z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodNumber>>, number | null, number | null | undefined>;
399
+ memoryPercent: z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodNumber>>, number | null, number | null | undefined>;
400
+ }, "strip", z.ZodTypeAny, {
401
+ cpuCoreCount: number | null;
402
+ memoryGBytes: number | null;
403
+ cpuCorePercent: number | null;
404
+ memoryPercent: number | null;
405
+ }, {
406
+ cpuCoreCount?: number | null | undefined;
407
+ memoryGBytes?: number | null | undefined;
408
+ cpuCorePercent?: number | null | undefined;
409
+ memoryPercent?: number | null | undefined;
410
+ }>>>, {
411
+ cpuCoreCount: number | null;
412
+ memoryGBytes: number | null;
413
+ cpuCorePercent: number | null;
414
+ memoryPercent: number | null;
415
+ }, {
416
+ cpuCoreCount?: number | null | undefined;
417
+ memoryGBytes?: number | null | undefined;
418
+ cpuCorePercent?: number | null | undefined;
419
+ memoryPercent?: number | null | undefined;
420
+ } | null | undefined>;
421
+ startCpuCoreCount: z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodNumber>>, number | null, number | null | undefined>;
422
+ swapEnabled: z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodBoolean>>, boolean | null, boolean | null | undefined>;
423
+ }, "strip", z.ZodTypeAny, {
424
+ cpuMode: "DEDICATED" | "SHARED" | null;
425
+ minResource: {
426
+ cpuCoreCount: number | null;
427
+ memoryGBytes: number | null;
428
+ diskGBytes: number | null;
429
+ };
430
+ maxResource: {
431
+ cpuCoreCount: number | null;
432
+ memoryGBytes: number | null;
433
+ diskGBytes: number | null;
434
+ };
435
+ minFreeResource: {
436
+ cpuCoreCount: number | null;
437
+ memoryGBytes: number | null;
438
+ cpuCorePercent: number | null;
439
+ memoryPercent: number | null;
440
+ };
441
+ startCpuCoreCount: number | null;
442
+ swapEnabled: boolean | null;
443
+ }, {
444
+ cpuMode?: "DEDICATED" | "SHARED" | null | undefined;
445
+ minResource?: {
446
+ cpuCoreCount?: number | null | undefined;
447
+ memoryGBytes?: number | null | undefined;
448
+ diskGBytes?: number | null | undefined;
449
+ } | null | undefined;
450
+ maxResource?: {
451
+ cpuCoreCount?: number | null | undefined;
452
+ memoryGBytes?: number | null | undefined;
453
+ diskGBytes?: number | null | undefined;
454
+ } | null | undefined;
455
+ minFreeResource?: {
456
+ cpuCoreCount?: number | null | undefined;
457
+ memoryGBytes?: number | null | undefined;
458
+ cpuCorePercent?: number | null | undefined;
459
+ memoryPercent?: number | null | undefined;
460
+ } | null | undefined;
461
+ startCpuCoreCount?: number | null | undefined;
462
+ swapEnabled?: boolean | null | undefined;
463
+ }>>>, {
464
+ cpuMode: "DEDICATED" | "SHARED" | null;
465
+ minResource: {
466
+ cpuCoreCount: number | null;
467
+ memoryGBytes: number | null;
468
+ diskGBytes: number | null;
469
+ };
470
+ maxResource: {
471
+ cpuCoreCount: number | null;
472
+ memoryGBytes: number | null;
473
+ diskGBytes: number | null;
474
+ };
475
+ minFreeResource: {
476
+ cpuCoreCount: number | null;
477
+ memoryGBytes: number | null;
478
+ cpuCorePercent: number | null;
479
+ memoryPercent: number | null;
480
+ };
481
+ startCpuCoreCount: number | null;
482
+ swapEnabled: boolean | null;
483
+ }, {
484
+ cpuMode?: "DEDICATED" | "SHARED" | null | undefined;
485
+ minResource?: {
486
+ cpuCoreCount?: number | null | undefined;
487
+ memoryGBytes?: number | null | undefined;
488
+ diskGBytes?: number | null | undefined;
489
+ } | null | undefined;
490
+ maxResource?: {
491
+ cpuCoreCount?: number | null | undefined;
492
+ memoryGBytes?: number | null | undefined;
493
+ diskGBytes?: number | null | undefined;
494
+ } | null | undefined;
495
+ minFreeResource?: {
496
+ cpuCoreCount?: number | null | undefined;
497
+ memoryGBytes?: number | null | undefined;
498
+ cpuCorePercent?: number | null | undefined;
499
+ memoryPercent?: number | null | undefined;
500
+ } | null | undefined;
501
+ startCpuCoreCount?: number | null | undefined;
502
+ swapEnabled?: boolean | null | undefined;
503
+ } | null | undefined>;
504
+ horizontalAutoscaling: z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodObject<{
505
+ minContainerCount: z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodNumber>>, number | null, number | null | undefined>;
506
+ maxContainerCount: z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodNumber>>, number | null, number | null | undefined>;
507
+ }, "strip", z.ZodTypeAny, {
508
+ minContainerCount: number | null;
509
+ maxContainerCount: number | null;
510
+ }, {
511
+ minContainerCount?: number | null | undefined;
512
+ maxContainerCount?: number | null | undefined;
513
+ }>>>, {
514
+ minContainerCount: number | null;
515
+ maxContainerCount: number | null;
516
+ }, {
517
+ minContainerCount?: number | null | undefined;
518
+ maxContainerCount?: number | null | undefined;
519
+ } | null | undefined>;
520
+ }, "strip", z.ZodTypeAny, {
521
+ verticalAutoscaling: {
522
+ cpuMode: "DEDICATED" | "SHARED" | null;
523
+ minResource: {
524
+ cpuCoreCount: number | null;
525
+ memoryGBytes: number | null;
526
+ diskGBytes: number | null;
527
+ };
528
+ maxResource: {
529
+ cpuCoreCount: number | null;
530
+ memoryGBytes: number | null;
531
+ diskGBytes: number | null;
532
+ };
533
+ minFreeResource: {
534
+ cpuCoreCount: number | null;
535
+ memoryGBytes: number | null;
536
+ cpuCorePercent: number | null;
537
+ memoryPercent: number | null;
538
+ };
539
+ startCpuCoreCount: number | null;
540
+ swapEnabled: boolean | null;
541
+ };
542
+ horizontalAutoscaling: {
543
+ minContainerCount: number | null;
544
+ maxContainerCount: number | null;
545
+ };
546
+ }, {
547
+ verticalAutoscaling?: {
548
+ cpuMode?: "DEDICATED" | "SHARED" | null | undefined;
549
+ minResource?: {
550
+ cpuCoreCount?: number | null | undefined;
551
+ memoryGBytes?: number | null | undefined;
552
+ diskGBytes?: number | null | undefined;
553
+ } | null | undefined;
554
+ maxResource?: {
555
+ cpuCoreCount?: number | null | undefined;
556
+ memoryGBytes?: number | null | undefined;
557
+ diskGBytes?: number | null | undefined;
558
+ } | null | undefined;
559
+ minFreeResource?: {
560
+ cpuCoreCount?: number | null | undefined;
561
+ memoryGBytes?: number | null | undefined;
562
+ cpuCorePercent?: number | null | undefined;
563
+ memoryPercent?: number | null | undefined;
564
+ } | null | undefined;
565
+ startCpuCoreCount?: number | null | undefined;
566
+ swapEnabled?: boolean | null | undefined;
567
+ } | null | undefined;
568
+ horizontalAutoscaling?: {
569
+ minContainerCount?: number | null | undefined;
570
+ maxContainerCount?: number | null | undefined;
571
+ } | null | undefined;
572
+ }>, ZeropsServiceAutoscaling, {
573
+ verticalAutoscaling?: {
574
+ cpuMode?: "DEDICATED" | "SHARED" | null | undefined;
575
+ minResource?: {
576
+ cpuCoreCount?: number | null | undefined;
577
+ memoryGBytes?: number | null | undefined;
578
+ diskGBytes?: number | null | undefined;
579
+ } | null | undefined;
580
+ maxResource?: {
581
+ cpuCoreCount?: number | null | undefined;
582
+ memoryGBytes?: number | null | undefined;
583
+ diskGBytes?: number | null | undefined;
584
+ } | null | undefined;
585
+ minFreeResource?: {
586
+ cpuCoreCount?: number | null | undefined;
587
+ memoryGBytes?: number | null | undefined;
588
+ cpuCorePercent?: number | null | undefined;
589
+ memoryPercent?: number | null | undefined;
590
+ } | null | undefined;
591
+ startCpuCoreCount?: number | null | undefined;
592
+ swapEnabled?: boolean | null | undefined;
593
+ } | null | undefined;
594
+ horizontalAutoscaling?: {
595
+ minContainerCount?: number | null | undefined;
596
+ maxContainerCount?: number | null | undefined;
597
+ } | null | undefined;
598
+ }>>>;
599
+ }, "strip", z.ZodTypeAny, {
600
+ name: string;
601
+ id: string;
602
+ status?: "ACTIVE" | "FAILED" | "NEW" | "CREATING" | "DELETING" | "STOPPING" | "STOPPED" | "STARTING" | "RESTARTING" | "RELOADING" | "DELETED" | "ACTION_FAILED" | "UPGRADING" | "READY_TO_DEPLOY" | "SERVICE_CREATING" | "SERVICE_ACTIVE" | "SERVICE_STOPPING" | "SERVICE_STOPPED" | "SERVICE_STARTING" | "SERVICE_RESTARTING" | "SERVICE_RELOADING" | "SERVICE_DELETING" | "SERVICE_DELETED" | "SERVICE_FAILED" | "SERVICE_ACTION_FAILED" | "SERVICE_REPAIRING" | "SERVICE_CONTAINER_FAILED" | "SERVICE_MOVING_CONTAINER" | "SERVICE_UPGRADING" | "SERVICE_SCALING" | "SERVICE_REPAIR_FAILED" | "REPAIRING" | "CONTAINER_FAILED" | "MOVING_CONTAINER" | "SCALING" | "REPAIR_FAILED" | undefined;
603
+ base?: string | undefined;
604
+ projectId?: string | undefined;
605
+ activeAppVersion?: {
606
+ id: string;
607
+ } | null | undefined;
608
+ subdomainAccess?: boolean | undefined;
609
+ autoscalingProfileId?: string | undefined;
610
+ customAutoscaling?: ZeropsServiceAutoscaling | undefined;
611
+ currentAutoscaling?: ZeropsServiceAutoscaling | undefined;
612
+ }, {
613
+ name: string;
614
+ id: string;
615
+ status?: unknown;
616
+ base?: unknown;
617
+ projectId?: unknown;
618
+ activeAppVersion?: {
619
+ id: string;
620
+ } | null | undefined;
621
+ subdomainAccess?: unknown;
622
+ autoscalingProfileId?: unknown;
623
+ customAutoscaling?: unknown;
624
+ currentAutoscaling?: unknown;
625
+ }>, ZeropsService, {
626
+ name: string;
627
+ id: string;
628
+ status?: unknown;
629
+ base?: unknown;
630
+ projectId?: unknown;
631
+ activeAppVersion?: {
632
+ id: string;
633
+ } | null | undefined;
634
+ subdomainAccess?: unknown;
635
+ autoscalingProfileId?: unknown;
636
+ customAutoscaling?: unknown;
637
+ currentAutoscaling?: unknown;
638
+ }>;
639
+ /** A service's own retention that does not parse fails the whole read: reading it as absent would send the default over it. */
640
+ export declare const backupConfigSchema: z.ZodEffects<z.ZodObject<{
641
+ backupPeriod: z.ZodString;
642
+ defaultRetentionPolicy: z.ZodObject<{
643
+ maxTotalFiles: z.ZodNumber;
644
+ maxTotalGiB: z.ZodNumber;
645
+ protectedTags: z.ZodEffects<z.ZodNullable<z.ZodArray<z.ZodString, "many">>, string[], string[] | null>;
646
+ minDaily: z.ZodNumber;
647
+ maxDaily: z.ZodNumber;
648
+ minWeekly: z.ZodNumber;
649
+ maxWeekly: z.ZodNumber;
650
+ minMonthly: z.ZodNumber;
651
+ maxMonthly: z.ZodNumber;
652
+ }, "strip", z.ZodTypeAny, {
653
+ maxTotalFiles: number;
654
+ maxTotalGiB: number;
655
+ protectedTags: string[];
656
+ minDaily: number;
657
+ maxDaily: number;
658
+ minWeekly: number;
659
+ maxWeekly: number;
660
+ minMonthly: number;
661
+ maxMonthly: number;
662
+ }, {
663
+ maxTotalFiles: number;
664
+ maxTotalGiB: number;
665
+ protectedTags: string[] | null;
666
+ minDaily: number;
667
+ maxDaily: number;
668
+ minWeekly: number;
669
+ maxWeekly: number;
670
+ minMonthly: number;
671
+ maxMonthly: number;
672
+ }>;
673
+ retentionPolicy: z.ZodOptional<z.ZodNullable<z.ZodObject<{
674
+ maxTotalFiles: z.ZodNumber;
675
+ maxTotalGiB: z.ZodNumber;
676
+ protectedTags: z.ZodEffects<z.ZodNullable<z.ZodArray<z.ZodString, "many">>, string[], string[] | null>;
677
+ minDaily: z.ZodNumber;
678
+ maxDaily: z.ZodNumber;
679
+ minWeekly: z.ZodNumber;
680
+ maxWeekly: z.ZodNumber;
681
+ minMonthly: z.ZodNumber;
682
+ maxMonthly: z.ZodNumber;
683
+ }, "strip", z.ZodTypeAny, {
684
+ maxTotalFiles: number;
685
+ maxTotalGiB: number;
686
+ protectedTags: string[];
687
+ minDaily: number;
688
+ maxDaily: number;
689
+ minWeekly: number;
690
+ maxWeekly: number;
691
+ minMonthly: number;
692
+ maxMonthly: number;
693
+ }, {
694
+ maxTotalFiles: number;
695
+ maxTotalGiB: number;
696
+ protectedTags: string[] | null;
697
+ minDaily: number;
698
+ maxDaily: number;
699
+ minWeekly: number;
700
+ maxWeekly: number;
701
+ minMonthly: number;
702
+ maxMonthly: number;
703
+ }>>>;
704
+ }, "strip", z.ZodTypeAny, {
705
+ backupPeriod: string;
706
+ defaultRetentionPolicy: {
707
+ maxTotalFiles: number;
708
+ maxTotalGiB: number;
709
+ protectedTags: string[];
710
+ minDaily: number;
711
+ maxDaily: number;
712
+ minWeekly: number;
713
+ maxWeekly: number;
714
+ minMonthly: number;
715
+ maxMonthly: number;
716
+ };
717
+ retentionPolicy?: {
718
+ maxTotalFiles: number;
719
+ maxTotalGiB: number;
720
+ protectedTags: string[];
721
+ minDaily: number;
722
+ maxDaily: number;
723
+ minWeekly: number;
724
+ maxWeekly: number;
725
+ minMonthly: number;
726
+ maxMonthly: number;
727
+ } | null | undefined;
728
+ }, {
729
+ backupPeriod: string;
730
+ defaultRetentionPolicy: {
731
+ maxTotalFiles: number;
732
+ maxTotalGiB: number;
733
+ protectedTags: string[] | null;
734
+ minDaily: number;
735
+ maxDaily: number;
736
+ minWeekly: number;
737
+ maxWeekly: number;
738
+ minMonthly: number;
739
+ maxMonthly: number;
740
+ };
741
+ retentionPolicy?: {
742
+ maxTotalFiles: number;
743
+ maxTotalGiB: number;
744
+ protectedTags: string[] | null;
745
+ minDaily: number;
746
+ maxDaily: number;
747
+ minWeekly: number;
748
+ maxWeekly: number;
749
+ minMonthly: number;
750
+ maxMonthly: number;
751
+ } | null | undefined;
752
+ }>, ZeropsBackupConfig, {
753
+ backupPeriod: string;
754
+ defaultRetentionPolicy: {
755
+ maxTotalFiles: number;
756
+ maxTotalGiB: number;
757
+ protectedTags: string[] | null;
758
+ minDaily: number;
759
+ maxDaily: number;
760
+ minWeekly: number;
761
+ maxWeekly: number;
762
+ minMonthly: number;
763
+ maxMonthly: number;
764
+ };
765
+ retentionPolicy?: {
766
+ maxTotalFiles: number;
767
+ maxTotalGiB: number;
768
+ protectedTags: string[] | null;
769
+ minDaily: number;
770
+ maxDaily: number;
771
+ minWeekly: number;
772
+ maxWeekly: number;
773
+ minMonthly: number;
774
+ maxMonthly: number;
775
+ } | null | undefined;
776
+ }>;
777
+ export declare const projectSchema: z.ZodObject<{
778
+ id: z.ZodEffects<z.ZodString, string, string>;
779
+ name: z.ZodString;
780
+ status: z.ZodCatch<z.ZodOptional<z.ZodEnum<["NEW", "CREATING", "ACTIVE", "DELETING", "FAILED", "STOPPING", "STOPPED", "STARTING"]>>>;
781
+ mode: z.ZodCatch<z.ZodOptional<z.ZodEnum<["LIGHT", "SERIOUS"]>>>;
782
+ description: z.ZodCatch<z.ZodOptional<z.ZodString>>;
783
+ tagList: z.ZodCatch<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
784
+ }, "strip", z.ZodTypeAny, {
785
+ name: string;
786
+ id: string;
787
+ status?: "ACTIVE" | "FAILED" | "NEW" | "CREATING" | "DELETING" | "STOPPING" | "STOPPED" | "STARTING" | undefined;
788
+ mode?: "LIGHT" | "SERIOUS" | undefined;
789
+ description?: string | undefined;
790
+ tagList?: string[] | undefined;
791
+ }, {
792
+ name: string;
793
+ id: string;
794
+ status?: unknown;
795
+ mode?: unknown;
796
+ description?: unknown;
797
+ tagList?: unknown;
798
+ }>;
799
+ export declare const integrationTokenSchema: z.ZodObject<{
800
+ id: z.ZodEffects<z.ZodString, string, string>;
801
+ name: z.ZodString;
802
+ token: z.ZodEffects<z.ZodString, string, string>;
803
+ projects: z.ZodArray<z.ZodObject<{
804
+ projectId: z.ZodEffects<z.ZodString, string, string>;
805
+ roleCode: z.ZodCatch<z.ZodOptional<z.ZodEnum<["OWNER", "ADMIN", "BASIC_USER", "READ_ONLY", "NO_ACCESS"]>>>;
806
+ }, "strip", z.ZodTypeAny, {
807
+ projectId: string;
808
+ roleCode?: "OWNER" | "ADMIN" | "BASIC_USER" | "READ_ONLY" | "NO_ACCESS" | undefined;
809
+ }, {
810
+ projectId: string;
811
+ roleCode?: unknown;
812
+ }>, "many">;
813
+ roleCode: z.ZodCatch<z.ZodOptional<z.ZodEnum<["OWNER", "ADMIN", "BASIC_USER", "READ_ONLY", "NO_ACCESS"]>>>;
814
+ }, "strip", z.ZodTypeAny, {
815
+ name: string;
816
+ token: string;
817
+ id: string;
818
+ projects: {
819
+ projectId: string;
820
+ roleCode?: "OWNER" | "ADMIN" | "BASIC_USER" | "READ_ONLY" | "NO_ACCESS" | undefined;
821
+ }[];
822
+ roleCode?: "OWNER" | "ADMIN" | "BASIC_USER" | "READ_ONLY" | "NO_ACCESS" | undefined;
823
+ }, {
824
+ name: string;
825
+ token: string;
826
+ id: string;
827
+ projects: {
828
+ projectId: string;
829
+ roleCode?: unknown;
830
+ }[];
831
+ roleCode?: unknown;
832
+ }>;
833
+ export declare const userInfoSchema: z.ZodObject<{
834
+ id: z.ZodEffects<z.ZodString, string, string>;
835
+ email: z.ZodString;
836
+ }, "strip", z.ZodTypeAny, {
837
+ email: string;
838
+ id: string;
839
+ }, {
840
+ email: string;
841
+ id: string;
842
+ }>;
843
+ export declare const serviceEnvSchema: z.ZodEffects<z.ZodObject<{
844
+ id: z.ZodEffects<z.ZodString, string, string>;
845
+ key: z.ZodEffects<z.ZodString, string, string>;
846
+ content: z.ZodString;
847
+ serviceStackId: z.ZodCatch<z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>>;
848
+ type: z.ZodCatch<z.ZodOptional<z.ZodString>>;
849
+ sensitive: z.ZodBoolean;
850
+ }, "strip", z.ZodTypeAny, {
851
+ sensitive: boolean;
852
+ key: string;
853
+ id: string;
854
+ content: string;
855
+ type?: string | undefined;
856
+ serviceStackId?: string | undefined;
857
+ }, {
858
+ sensitive: boolean;
859
+ key: string;
860
+ id: string;
861
+ content: string;
862
+ type?: unknown;
863
+ serviceStackId?: unknown;
864
+ }>, (import("./types").ZeropsServiceEnvRecord & {
865
+ sensitive: false;
866
+ content: string;
867
+ }) | (import("./types").ZeropsServiceEnvRecord & {
868
+ sensitive: true;
869
+ }), {
870
+ sensitive: boolean;
871
+ key: string;
872
+ id: string;
873
+ content: string;
874
+ type?: unknown;
875
+ serviceStackId?: unknown;
876
+ }>;
877
+ export declare const importResultSchema: z.ZodEffects<z.ZodObject<{
878
+ projectId: z.ZodEffects<z.ZodString, string, string>;
879
+ projectName: z.ZodCatch<z.ZodOptional<z.ZodString>>;
880
+ serviceStacks: z.ZodArray<z.ZodObject<{
881
+ id: z.ZodEffects<z.ZodString, string, string>;
882
+ name: z.ZodString;
883
+ processes: z.ZodArray<z.ZodEffects<z.ZodObject<{
884
+ id: z.ZodEffects<z.ZodString, string, string>;
885
+ status: z.ZodCatch<z.ZodOptional<z.ZodString>>;
886
+ actionName: z.ZodCatch<z.ZodOptional<z.ZodString>>;
887
+ serviceStackId: z.ZodCatch<z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>>;
888
+ appVersion: z.ZodOptional<z.ZodNullable<z.ZodObject<{
889
+ id: z.ZodEffects<z.ZodString, string, string>;
890
+ }, "strip", z.ZodTypeAny, {
891
+ id: string;
892
+ }, {
893
+ id: string;
894
+ }>>>;
895
+ }, "strip", z.ZodTypeAny, {
896
+ id: string;
897
+ status?: string | undefined;
898
+ serviceStackId?: string | undefined;
899
+ actionName?: string | undefined;
900
+ appVersion?: {
901
+ id: string;
902
+ } | null | undefined;
903
+ }, {
904
+ id: string;
905
+ status?: unknown;
906
+ serviceStackId?: unknown;
907
+ actionName?: unknown;
908
+ appVersion?: {
909
+ id: string;
910
+ } | null | undefined;
911
+ }>, ZeropsProcess, {
912
+ id: string;
913
+ status?: unknown;
914
+ serviceStackId?: unknown;
915
+ actionName?: unknown;
916
+ appVersion?: {
917
+ id: string;
918
+ } | null | undefined;
919
+ }>, "many">;
920
+ }, "strip", z.ZodTypeAny, {
921
+ name: string;
922
+ id: string;
923
+ processes: ZeropsProcess[];
924
+ }, {
925
+ name: string;
926
+ id: string;
927
+ processes: {
928
+ id: string;
929
+ status?: unknown;
930
+ serviceStackId?: unknown;
931
+ actionName?: unknown;
932
+ appVersion?: {
933
+ id: string;
934
+ } | null | undefined;
935
+ }[];
936
+ }>, "many">;
937
+ }, "strip", z.ZodTypeAny, {
938
+ projectId: string;
939
+ serviceStacks: {
940
+ name: string;
941
+ id: string;
942
+ processes: ZeropsProcess[];
943
+ }[];
944
+ projectName?: string | undefined;
945
+ }, {
946
+ projectId: string;
947
+ serviceStacks: {
948
+ name: string;
949
+ id: string;
950
+ processes: {
951
+ id: string;
952
+ status?: unknown;
953
+ serviceStackId?: unknown;
954
+ actionName?: unknown;
955
+ appVersion?: {
956
+ id: string;
957
+ } | null | undefined;
958
+ }[];
959
+ }[];
960
+ projectName?: unknown;
961
+ }>, ZeropsImportResult, {
962
+ projectId: string;
963
+ serviceStacks: {
964
+ name: string;
965
+ id: string;
966
+ processes: {
967
+ id: string;
968
+ status?: unknown;
969
+ serviceStackId?: unknown;
970
+ actionName?: unknown;
971
+ appVersion?: {
972
+ id: string;
973
+ } | null | undefined;
974
+ }[];
975
+ }[];
976
+ projectName?: unknown;
977
+ }>;
978
+ export declare const logAccessSchema: z.ZodObject<{
979
+ url: z.ZodString;
980
+ urlPlain: z.ZodString;
981
+ urlInfo: z.ZodString;
982
+ urlUi: z.ZodString;
983
+ accessToken: z.ZodString;
984
+ expiration: z.ZodString;
985
+ }, "strip", z.ZodTypeAny, {
986
+ url: string;
987
+ urlPlain: string;
988
+ urlInfo: string;
989
+ urlUi: string;
990
+ accessToken: string;
991
+ expiration: string;
992
+ }, {
993
+ url: string;
994
+ urlPlain: string;
995
+ urlInfo: string;
996
+ urlUi: string;
997
+ accessToken: string;
998
+ expiration: string;
999
+ }>;
1000
+ /** Parse a response, never echoing it: an issue can quote the value it rejected, and these carry credentials. */
1001
+ export declare const readResponse: <Output>(label: string, schema: z.ZodType<Output, z.ZodTypeDef, unknown>, value: unknown) => Output;
1002
+ export declare const appVersionListSchema: z.ZodObject<{
1003
+ list: z.ZodArray<z.ZodObject<{
1004
+ id: z.ZodEffects<z.ZodString, string, string>;
1005
+ status: z.ZodCatch<z.ZodOptional<z.ZodEnum<["UPLOADING", "WAITING_TO_BUILD", "BUILDING", "BUILD_FAILED", "BUILD_VALIDATION_FAILED", "WAITING_TO_DEPLOY", "DEPLOYING", "DEPLOY_FAILED", "PREPARING_RUNTIME", "PREPARING_RUNTIME_FAILED", "ACTIVE", "BACKUP", "CANCELLED"]>>>;
1006
+ serviceStackId: z.ZodCatch<z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>>;
1007
+ projectId: z.ZodCatch<z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>>;
1008
+ sequence: z.ZodCatch<z.ZodOptional<z.ZodNumber>>;
1009
+ build: z.ZodCatch<z.ZodOptional<z.ZodObject<{
1010
+ startDate: z.ZodCatch<z.ZodOptional<z.ZodString>>;
1011
+ endDate: z.ZodCatch<z.ZodOptional<z.ZodString>>;
1012
+ pipelineStart: z.ZodCatch<z.ZodOptional<z.ZodString>>;
1013
+ pipelineFinish: z.ZodCatch<z.ZodOptional<z.ZodString>>;
1014
+ pipelineFailed: z.ZodCatch<z.ZodOptional<z.ZodString>>;
1015
+ }, "strip", z.ZodTypeAny, {
1016
+ startDate?: string | undefined;
1017
+ endDate?: string | undefined;
1018
+ pipelineStart?: string | undefined;
1019
+ pipelineFinish?: string | undefined;
1020
+ pipelineFailed?: string | undefined;
1021
+ }, {
1022
+ startDate?: unknown;
1023
+ endDate?: unknown;
1024
+ pipelineStart?: unknown;
1025
+ pipelineFinish?: unknown;
1026
+ pipelineFailed?: unknown;
1027
+ }>>>;
1028
+ }, "strip", z.ZodTypeAny, {
1029
+ id: string;
1030
+ status?: "UPLOADING" | "WAITING_TO_BUILD" | "BUILDING" | "BUILD_FAILED" | "BUILD_VALIDATION_FAILED" | "WAITING_TO_DEPLOY" | "DEPLOYING" | "DEPLOY_FAILED" | "PREPARING_RUNTIME" | "PREPARING_RUNTIME_FAILED" | "ACTIVE" | "BACKUP" | "CANCELLED" | undefined;
1031
+ build?: {
1032
+ startDate?: string | undefined;
1033
+ endDate?: string | undefined;
1034
+ pipelineStart?: string | undefined;
1035
+ pipelineFinish?: string | undefined;
1036
+ pipelineFailed?: string | undefined;
1037
+ } | undefined;
1038
+ serviceStackId?: string | undefined;
1039
+ projectId?: string | undefined;
1040
+ sequence?: number | undefined;
1041
+ }, {
1042
+ id: string;
1043
+ status?: unknown;
1044
+ build?: unknown;
1045
+ serviceStackId?: unknown;
1046
+ projectId?: unknown;
1047
+ sequence?: unknown;
1048
+ }>, "many">;
1049
+ }, "strip", z.ZodTypeAny, {
1050
+ list: {
1051
+ id: string;
1052
+ status?: "UPLOADING" | "WAITING_TO_BUILD" | "BUILDING" | "BUILD_FAILED" | "BUILD_VALIDATION_FAILED" | "WAITING_TO_DEPLOY" | "DEPLOYING" | "DEPLOY_FAILED" | "PREPARING_RUNTIME" | "PREPARING_RUNTIME_FAILED" | "ACTIVE" | "BACKUP" | "CANCELLED" | undefined;
1053
+ build?: {
1054
+ startDate?: string | undefined;
1055
+ endDate?: string | undefined;
1056
+ pipelineStart?: string | undefined;
1057
+ pipelineFinish?: string | undefined;
1058
+ pipelineFailed?: string | undefined;
1059
+ } | undefined;
1060
+ serviceStackId?: string | undefined;
1061
+ projectId?: string | undefined;
1062
+ sequence?: number | undefined;
1063
+ }[];
1064
+ }, {
1065
+ list: {
1066
+ id: string;
1067
+ status?: unknown;
1068
+ build?: unknown;
1069
+ serviceStackId?: unknown;
1070
+ projectId?: unknown;
1071
+ sequence?: unknown;
1072
+ }[];
1073
+ }>;
1074
+ export declare const projectMatchesSchema: z.ZodObject<{
1075
+ projects: z.ZodArray<z.ZodObject<{
1076
+ id: z.ZodEffects<z.ZodString, string, string>;
1077
+ name: z.ZodString;
1078
+ status: z.ZodCatch<z.ZodOptional<z.ZodEnum<["NEW", "CREATING", "ACTIVE", "DELETING", "FAILED", "STOPPING", "STOPPED", "STARTING"]>>>;
1079
+ mode: z.ZodCatch<z.ZodOptional<z.ZodEnum<["LIGHT", "SERIOUS"]>>>;
1080
+ description: z.ZodCatch<z.ZodOptional<z.ZodString>>;
1081
+ tagList: z.ZodCatch<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
1082
+ }, "strip", z.ZodTypeAny, {
1083
+ name: string;
1084
+ id: string;
1085
+ status?: "ACTIVE" | "FAILED" | "NEW" | "CREATING" | "DELETING" | "STOPPING" | "STOPPED" | "STARTING" | undefined;
1086
+ mode?: "LIGHT" | "SERIOUS" | undefined;
1087
+ description?: string | undefined;
1088
+ tagList?: string[] | undefined;
1089
+ }, {
1090
+ name: string;
1091
+ id: string;
1092
+ status?: unknown;
1093
+ mode?: unknown;
1094
+ description?: unknown;
1095
+ tagList?: unknown;
1096
+ }>, "many">;
1097
+ }, "strip", z.ZodTypeAny, {
1098
+ projects: {
1099
+ name: string;
1100
+ id: string;
1101
+ status?: "ACTIVE" | "FAILED" | "NEW" | "CREATING" | "DELETING" | "STOPPING" | "STOPPED" | "STARTING" | undefined;
1102
+ mode?: "LIGHT" | "SERIOUS" | undefined;
1103
+ description?: string | undefined;
1104
+ tagList?: string[] | undefined;
1105
+ }[];
1106
+ }, {
1107
+ projects: {
1108
+ name: string;
1109
+ id: string;
1110
+ status?: unknown;
1111
+ mode?: unknown;
1112
+ description?: unknown;
1113
+ tagList?: unknown;
1114
+ }[];
1115
+ }>;