@phala/cloud 0.3.0 → 0.5.0

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 (112) hide show
  1. package/README.md +20 -0
  2. package/dist/actions/api_tokens/revoke_current_api_token.d.ts +47 -0
  3. package/dist/actions/apps/app_launch_token.d.ts +121 -0
  4. package/dist/actions/apps/check_app_cvms_is_allowed.d.ts +17 -311
  5. package/dist/actions/apps/check_app_is_allowed.d.ts +20 -32
  6. package/dist/actions/apps/create_app_instance.d.ts +43 -63
  7. package/dist/actions/apps/get_app_attestation.d.ts +116 -772
  8. package/dist/actions/apps/get_app_cvms.d.ts +1 -5
  9. package/dist/actions/apps/get_app_device_allowlist.d.ts +26 -272
  10. package/dist/actions/apps/get_app_filter_options.d.ts +8 -24
  11. package/dist/actions/apps/get_app_info.d.ts +1 -5
  12. package/dist/actions/apps/get_app_list.d.ts +2 -26
  13. package/dist/actions/apps/get_app_revision_detail.d.ts +1 -9
  14. package/dist/actions/apps/get_app_revisions.d.ts +1 -9
  15. package/dist/actions/blockchains/add_compose_hash.d.ts +1 -13
  16. package/dist/actions/blockchains/add_device.d.ts +1 -13
  17. package/dist/actions/blockchains/deploy_app_auth.d.ts +3 -95
  18. package/dist/actions/blockchains/get_allowed_devices.d.ts +2 -12
  19. package/dist/actions/blockchains/remove_device.d.ts +1 -13
  20. package/dist/actions/blockchains/set_allow_any_device.d.ts +1 -13
  21. package/dist/actions/cvms/check_cvm_is_allowed.d.ts +13 -138
  22. package/dist/actions/cvms/commit_cvm_compose_file_update.d.ts +9 -45
  23. package/dist/actions/cvms/commit_cvm_provision.d.ts +32 -416
  24. package/dist/actions/cvms/commit_cvm_update.d.ts +70 -41
  25. package/dist/actions/cvms/confirm_cvm_patch.d.ts +62 -35
  26. package/dist/actions/cvms/cvm_annotations.d.ts +152 -0
  27. package/dist/actions/cvms/delete_cvm.d.ts +8 -14
  28. package/dist/actions/cvms/get_available_os_images.d.ts +70 -111
  29. package/dist/actions/cvms/get_cvm_attestation.d.ts +34 -392
  30. package/dist/actions/cvms/get_cvm_compose_file.d.ts +426 -512
  31. package/dist/actions/cvms/get_cvm_containers_stats.d.ts +25 -91
  32. package/dist/actions/cvms/get_cvm_docker_compose.d.ts +8 -14
  33. package/dist/actions/cvms/get_cvm_info.d.ts +6 -12
  34. package/dist/actions/cvms/get_cvm_init_scripts.d.ts +87 -0
  35. package/dist/actions/cvms/get_cvm_list.d.ts +9 -17
  36. package/dist/actions/cvms/get_cvm_network.d.ts +18 -50
  37. package/dist/actions/cvms/get_cvm_prelaunch_script.d.ts +8 -14
  38. package/dist/actions/cvms/get_cvm_state.d.ts +11 -37
  39. package/dist/actions/cvms/get_cvm_stats.d.ts +23 -149
  40. package/dist/actions/cvms/get_cvm_status_batch.d.ts +97 -64
  41. package/dist/actions/cvms/get_cvm_user_config.d.ts +13 -24
  42. package/dist/actions/cvms/get_prelaunch_script_upgrade_status.d.ts +9 -27
  43. package/dist/actions/cvms/patch_cvm.d.ts +666 -287
  44. package/dist/actions/cvms/provision_cvm.d.ts +339 -725
  45. package/dist/actions/cvms/provision_cvm_compose_file_update.d.ts +584 -777
  46. package/dist/actions/cvms/refresh_cvm_instance_id.d.ts +74 -131
  47. package/dist/actions/cvms/refresh_cvm_instance_ids.d.ts +77 -297
  48. package/dist/actions/cvms/replicate_cvm.d.ts +7 -21
  49. package/dist/actions/cvms/restart_cvm.d.ts +3 -18
  50. package/dist/actions/cvms/shutdown_cvm.d.ts +6 -12
  51. package/dist/actions/cvms/start_cvm.d.ts +6 -12
  52. package/dist/actions/cvms/stop_cvm.d.ts +6 -12
  53. package/dist/actions/cvms/update_cvm_envs.d.ts +144 -195
  54. package/dist/actions/cvms/update_cvm_resources.d.ts +93 -37
  55. package/dist/actions/cvms/update_cvm_visibility.d.ts +90 -130
  56. package/dist/actions/cvms/update_docker_compose.d.ts +143 -187
  57. package/dist/actions/cvms/update_os_image.d.ts +55 -28
  58. package/dist/actions/cvms/update_prelaunch_script.d.ts +143 -187
  59. package/dist/actions/cvms/upgrade_prelaunch_script.d.ts +126 -185
  60. package/dist/actions/cvms/watch_cvm_state.d.ts +5 -15
  61. package/dist/actions/get_available_nodes.d.ts +201 -823
  62. package/dist/actions/get_cvm_create_resources.d.ts +150 -2150
  63. package/dist/actions/index.d.ts +14 -4
  64. package/dist/actions/kms/get_app_env_encrypt_pubkey.d.ts +11 -23
  65. package/dist/actions/kms/get_kms_contract.d.ts +57 -0
  66. package/dist/actions/kms/get_kms_info.d.ts +3 -7
  67. package/dist/actions/kms/get_kms_list.d.ts +43 -82
  68. package/dist/actions/kms/get_kms_onchain_detail.d.ts +72 -616
  69. package/dist/actions/kms/list_kms_contract_nodes.d.ts +66 -0
  70. package/dist/actions/kms/list_kms_contracts.d.ts +98 -0
  71. package/dist/actions/kms/next_app_ids.d.ts +5 -25
  72. package/dist/actions/list-instance-types.d.ts +77 -257
  73. package/dist/actions/os_images/get_os_images.d.ts +38 -152
  74. package/dist/actions/ssh_keys/create_ssh_key.d.ts +11 -17
  75. package/dist/actions/ssh_keys/delete_ssh_key.d.ts +3 -7
  76. package/dist/actions/ssh_keys/get_cvm_ssh_keys.d.ts +113 -0
  77. package/dist/actions/ssh_keys/import_github_profile.d.ts +7 -21
  78. package/dist/actions/ssh_keys/list_ssh_keys.d.ts +2 -50
  79. package/dist/actions/ssh_keys/sync_github_ssh_keys.d.ts +8 -20
  80. package/dist/actions/ssh_keys/update_cvm_ssh_keys.d.ts +140 -0
  81. package/dist/actions/workspaces/get_workspace.d.ts +32 -24
  82. package/dist/actions/workspaces/get_workspace_nodes.d.ts +56 -182
  83. package/dist/actions/workspaces/get_workspace_quotas.d.ts +107 -1021
  84. package/dist/actions/workspaces/list_workspaces.d.ts +69 -245
  85. package/dist/client.d.ts +27 -5
  86. package/dist/create-client.d.ts +1820 -1
  87. package/dist/credentials/current_user_v20251028.d.ts +1 -17
  88. package/dist/credentials/current_user_v20260121.d.ts +22 -227
  89. package/dist/index.d.ts +1 -2
  90. package/dist/index.js +5454 -4389
  91. package/dist/index.mjs +5396 -4395
  92. package/dist/types/app_compose.d.ts +116 -184
  93. package/dist/types/app_info_v20251028.d.ts +29 -1030
  94. package/dist/types/app_info_v20260121.d.ts +686 -6832
  95. package/dist/types/app_revision.d.ts +15 -371
  96. package/dist/types/client.d.ts +18 -2
  97. package/dist/types/common.d.ts +6 -0
  98. package/dist/types/cvm_id.d.ts +12 -57
  99. package/dist/types/cvm_info.d.ts +33 -460
  100. package/dist/types/cvm_info_v20251028.d.ts +102 -800
  101. package/dist/types/cvm_info_v20260121.d.ts +411 -2347
  102. package/dist/types/kms_contract.d.ts +34 -0
  103. package/dist/types/kms_info.d.ts +34 -60
  104. package/dist/types/version-mappings.d.ts +6 -6
  105. package/dist/utils/define-action.d.ts +4 -4
  106. package/dist/utils/error_codes.d.ts +1 -0
  107. package/dist/utils/errors.d.ts +34 -37
  108. package/dist/utils/get_compose_hash.d.ts +59 -4
  109. package/dist/utils/get_mr_config_id.d.ts +146 -0
  110. package/dist/utils/index.d.ts +3 -2
  111. package/dist/utils/placement-request.d.ts +3 -0
  112. package/package.json +4 -4
@@ -120,232 +120,128 @@ import { type Client } from "../../client";
120
120
  * }
121
121
  * ```
122
122
  */
123
- export declare const UpdateDockerComposeRequestSchema: z.ZodEffects<z.ZodEffects<z.ZodObject<{
123
+ export declare const UpdateDockerComposeRequestSchema: z.ZodPipe<z.ZodObject<{
124
124
  id: z.ZodOptional<z.ZodString>;
125
125
  uuid: z.ZodOptional<z.ZodString>;
126
126
  app_id: z.ZodOptional<z.ZodString>;
127
127
  instance_id: z.ZodOptional<z.ZodString>;
128
- name: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
129
- } & {
128
+ name: z.ZodOptional<z.ZodString>;
130
129
  docker_compose_file: z.ZodString;
131
130
  compose_hash: z.ZodOptional<z.ZodString>;
132
131
  transaction_hash: z.ZodOptional<z.ZodString>;
133
- }, "strip", z.ZodTypeAny, {
134
- docker_compose_file: string;
135
- name?: string | undefined;
136
- id?: string | undefined;
137
- uuid?: string | undefined;
138
- app_id?: string | undefined;
139
- instance_id?: string | undefined;
140
- compose_hash?: string | undefined;
141
- transaction_hash?: string | undefined;
132
+ }, z.core.$strip>, z.ZodTransform<{
133
+ cvmId: string;
134
+ request: {
135
+ docker_compose_file: string;
136
+ compose_hash: string | undefined;
137
+ transaction_hash: string | undefined;
138
+ };
139
+ _raw: {
140
+ docker_compose_file: string;
141
+ id?: string | undefined;
142
+ uuid?: string | undefined;
143
+ app_id?: string | undefined;
144
+ instance_id?: string | undefined;
145
+ name?: string | undefined;
146
+ compose_hash?: string | undefined;
147
+ transaction_hash?: string | undefined;
148
+ };
142
149
  }, {
143
150
  docker_compose_file: string;
144
- name?: string | undefined;
145
151
  id?: string | undefined;
146
152
  uuid?: string | undefined;
147
153
  app_id?: string | undefined;
148
154
  instance_id?: string | undefined;
155
+ name?: string | undefined;
149
156
  compose_hash?: string | undefined;
150
157
  transaction_hash?: string | undefined;
151
- }>, any, any>, {
152
- cvmId: any;
153
- request: {
154
- docker_compose_file: any;
155
- compose_hash: any;
156
- transaction_hash: any;
157
- };
158
- _raw: any;
159
- }, any>;
158
+ }>>;
160
159
  declare const UpdateDockerComposeInProgressSchema: z.ZodObject<{
161
160
  status: z.ZodLiteral<"in_progress">;
162
161
  message: z.ZodString;
163
162
  correlation_id: z.ZodString;
164
- }, "strip", z.ZodTypeAny, {
165
- status: "in_progress";
166
- message: string;
167
- correlation_id: string;
168
- }, {
169
- status: "in_progress";
170
- message: string;
171
- correlation_id: string;
172
- }>;
163
+ }, z.core.$strip>;
173
164
  declare const UpdateDockerComposePreconditionRequiredSchema: z.ZodObject<{
174
165
  status: z.ZodLiteral<"precondition_required">;
175
166
  message: z.ZodString;
176
167
  compose_hash: z.ZodString;
177
168
  app_id: z.ZodString;
178
169
  device_id: z.ZodString;
179
- kms_info: z.ZodEffects<z.ZodObject<{
180
- id: z.ZodString;
181
- slug: z.ZodNullable<z.ZodString>;
182
- url: z.ZodString;
183
- version: z.ZodString;
184
- chain_id: z.ZodNullable<z.ZodNumber>;
185
- kms_contract_address: z.ZodEffects<z.ZodNullable<z.ZodString>, `0x${string}`, string | null>;
186
- gateway_app_id: z.ZodEffects<z.ZodNullable<z.ZodString>, `0x${string}`, string | null>;
187
- }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
188
- id: z.ZodString;
189
- slug: z.ZodNullable<z.ZodString>;
190
- url: z.ZodString;
191
- version: z.ZodString;
192
- chain_id: z.ZodNullable<z.ZodNumber>;
193
- kms_contract_address: z.ZodEffects<z.ZodNullable<z.ZodString>, `0x${string}`, string | null>;
194
- gateway_app_id: z.ZodEffects<z.ZodNullable<z.ZodString>, `0x${string}`, string | null>;
195
- }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
170
+ kms_info: z.ZodPipe<z.ZodObject<{
196
171
  id: z.ZodString;
197
172
  slug: z.ZodNullable<z.ZodString>;
198
173
  url: z.ZodString;
199
174
  version: z.ZodString;
200
175
  chain_id: z.ZodNullable<z.ZodNumber>;
201
- kms_contract_address: z.ZodEffects<z.ZodNullable<z.ZodString>, `0x${string}`, string | null>;
202
- gateway_app_id: z.ZodEffects<z.ZodNullable<z.ZodString>, `0x${string}`, string | null>;
203
- }, z.ZodTypeAny, "passthrough">>, z.objectOutputType<{
204
- id: z.ZodString;
205
- slug: z.ZodNullable<z.ZodString>;
206
- url: z.ZodString;
207
- version: z.ZodString;
208
- chain_id: z.ZodNullable<z.ZodNumber>;
209
- kms_contract_address: z.ZodEffects<z.ZodNullable<z.ZodString>, `0x${string}`, string | null>;
210
- gateway_app_id: z.ZodEffects<z.ZodNullable<z.ZodString>, `0x${string}`, string | null>;
211
- }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
212
- id: z.ZodString;
213
- slug: z.ZodNullable<z.ZodString>;
214
- url: z.ZodString;
215
- version: z.ZodString;
216
- chain_id: z.ZodNullable<z.ZodNumber>;
217
- kms_contract_address: z.ZodEffects<z.ZodNullable<z.ZodString>, `0x${string}`, string | null>;
218
- gateway_app_id: z.ZodEffects<z.ZodNullable<z.ZodString>, `0x${string}`, string | null>;
219
- }, z.ZodTypeAny, "passthrough">>;
220
- }, "strip", z.ZodTypeAny, {
221
- status: "precondition_required";
222
- message: string;
223
- app_id: string;
224
- compose_hash: string;
225
- device_id: string;
226
- kms_info: {
227
- version: string;
176
+ kms_contract_address: z.ZodPipe<z.ZodNullable<z.ZodString>, z.ZodTransform<`0x${string}`, string | null>>;
177
+ gateway_app_id: z.ZodPipe<z.ZodNullable<z.ZodString>, z.ZodTransform<`0x${string}`, string | null>>;
178
+ k256_pubkey: z.ZodOptional<z.ZodNullable<z.ZodString>>;
179
+ }, z.core.$loose>, z.ZodTransform<{
180
+ [x: string]: unknown;
228
181
  id: string;
229
182
  slug: string | null;
230
- chain_id: number | null;
231
183
  url: string;
184
+ version: string;
185
+ chain_id: number | null;
232
186
  kms_contract_address: `0x${string}`;
233
187
  gateway_app_id: `0x${string}`;
234
- } & {
235
- [k: string]: unknown;
236
- };
237
- }, {
238
- status: "precondition_required";
239
- message: string;
240
- app_id: string;
241
- compose_hash: string;
242
- device_id: string;
243
- kms_info: {
244
- version: string;
188
+ k256_pubkey?: string | null | undefined;
189
+ }, {
190
+ [x: string]: unknown;
245
191
  id: string;
246
192
  slug: string | null;
247
- chain_id: number | null;
248
193
  url: string;
249
- kms_contract_address: string | null;
250
- gateway_app_id: string | null;
251
- } & {
252
- [k: string]: unknown;
253
- };
254
- }>;
255
- export declare const UpdateDockerComposeResultSchema: z.ZodUnion<[z.ZodObject<{
194
+ version: string;
195
+ chain_id: number | null;
196
+ kms_contract_address: `0x${string}`;
197
+ gateway_app_id: `0x${string}`;
198
+ k256_pubkey?: string | null | undefined;
199
+ }>>;
200
+ }, z.core.$strip>;
201
+ export declare const UpdateDockerComposeResultSchema: z.ZodUnion<readonly [z.ZodObject<{
256
202
  status: z.ZodLiteral<"in_progress">;
257
203
  message: z.ZodString;
258
204
  correlation_id: z.ZodString;
259
- }, "strip", z.ZodTypeAny, {
260
- status: "in_progress";
261
- message: string;
262
- correlation_id: string;
263
- }, {
264
- status: "in_progress";
265
- message: string;
266
- correlation_id: string;
267
- }>, z.ZodObject<{
205
+ }, z.core.$strip>, z.ZodObject<{
268
206
  status: z.ZodLiteral<"precondition_required">;
269
207
  message: z.ZodString;
270
208
  compose_hash: z.ZodString;
271
209
  app_id: z.ZodString;
272
210
  device_id: z.ZodString;
273
- kms_info: z.ZodEffects<z.ZodObject<{
211
+ kms_info: z.ZodPipe<z.ZodObject<{
274
212
  id: z.ZodString;
275
213
  slug: z.ZodNullable<z.ZodString>;
276
214
  url: z.ZodString;
277
215
  version: z.ZodString;
278
216
  chain_id: z.ZodNullable<z.ZodNumber>;
279
- kms_contract_address: z.ZodEffects<z.ZodNullable<z.ZodString>, `0x${string}`, string | null>;
280
- gateway_app_id: z.ZodEffects<z.ZodNullable<z.ZodString>, `0x${string}`, string | null>;
281
- }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
282
- id: z.ZodString;
283
- slug: z.ZodNullable<z.ZodString>;
284
- url: z.ZodString;
285
- version: z.ZodString;
286
- chain_id: z.ZodNullable<z.ZodNumber>;
287
- kms_contract_address: z.ZodEffects<z.ZodNullable<z.ZodString>, `0x${string}`, string | null>;
288
- gateway_app_id: z.ZodEffects<z.ZodNullable<z.ZodString>, `0x${string}`, string | null>;
289
- }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
290
- id: z.ZodString;
291
- slug: z.ZodNullable<z.ZodString>;
292
- url: z.ZodString;
293
- version: z.ZodString;
294
- chain_id: z.ZodNullable<z.ZodNumber>;
295
- kms_contract_address: z.ZodEffects<z.ZodNullable<z.ZodString>, `0x${string}`, string | null>;
296
- gateway_app_id: z.ZodEffects<z.ZodNullable<z.ZodString>, `0x${string}`, string | null>;
297
- }, z.ZodTypeAny, "passthrough">>, z.objectOutputType<{
298
- id: z.ZodString;
299
- slug: z.ZodNullable<z.ZodString>;
300
- url: z.ZodString;
301
- version: z.ZodString;
302
- chain_id: z.ZodNullable<z.ZodNumber>;
303
- kms_contract_address: z.ZodEffects<z.ZodNullable<z.ZodString>, `0x${string}`, string | null>;
304
- gateway_app_id: z.ZodEffects<z.ZodNullable<z.ZodString>, `0x${string}`, string | null>;
305
- }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
306
- id: z.ZodString;
307
- slug: z.ZodNullable<z.ZodString>;
308
- url: z.ZodString;
309
- version: z.ZodString;
310
- chain_id: z.ZodNullable<z.ZodNumber>;
311
- kms_contract_address: z.ZodEffects<z.ZodNullable<z.ZodString>, `0x${string}`, string | null>;
312
- gateway_app_id: z.ZodEffects<z.ZodNullable<z.ZodString>, `0x${string}`, string | null>;
313
- }, z.ZodTypeAny, "passthrough">>;
314
- }, "strip", z.ZodTypeAny, {
315
- status: "precondition_required";
316
- message: string;
317
- app_id: string;
318
- compose_hash: string;
319
- device_id: string;
320
- kms_info: {
321
- version: string;
217
+ kms_contract_address: z.ZodPipe<z.ZodNullable<z.ZodString>, z.ZodTransform<`0x${string}`, string | null>>;
218
+ gateway_app_id: z.ZodPipe<z.ZodNullable<z.ZodString>, z.ZodTransform<`0x${string}`, string | null>>;
219
+ k256_pubkey: z.ZodOptional<z.ZodNullable<z.ZodString>>;
220
+ }, z.core.$loose>, z.ZodTransform<{
221
+ [x: string]: unknown;
322
222
  id: string;
323
223
  slug: string | null;
324
- chain_id: number | null;
325
224
  url: string;
225
+ version: string;
226
+ chain_id: number | null;
326
227
  kms_contract_address: `0x${string}`;
327
228
  gateway_app_id: `0x${string}`;
328
- } & {
329
- [k: string]: unknown;
330
- };
331
- }, {
332
- status: "precondition_required";
333
- message: string;
334
- app_id: string;
335
- compose_hash: string;
336
- device_id: string;
337
- kms_info: {
338
- version: string;
229
+ k256_pubkey?: string | null | undefined;
230
+ }, {
231
+ [x: string]: unknown;
339
232
  id: string;
340
233
  slug: string | null;
341
- chain_id: number | null;
342
234
  url: string;
343
- kms_contract_address: string | null;
344
- gateway_app_id: string | null;
345
- } & {
346
- [k: string]: unknown;
347
- };
348
- }>]>;
235
+ version: string;
236
+ chain_id: number | null;
237
+ kms_contract_address: `0x${string}`;
238
+ gateway_app_id: `0x${string}`;
239
+ k256_pubkey?: string | null | undefined;
240
+ }>>;
241
+ }, z.core.$strip>, z.ZodObject<{
242
+ status: z.ZodLiteral<"no_change">;
243
+ message: z.ZodString;
244
+ }, z.core.$strip>]>;
349
245
  export type UpdateDockerComposeRequest = z.input<typeof UpdateDockerComposeRequestSchema>;
350
246
  export type UpdateDockerComposeResult = z.infer<typeof UpdateDockerComposeResultSchema>;
351
247
  export type UpdateDockerComposeInProgress = z.infer<typeof UpdateDockerComposeInProgressSchema>;
@@ -359,62 +255,122 @@ export type UpdateDockerComposePreconditionRequired = z.infer<typeof UpdateDocke
359
255
  * @returns Update result (either in_progress or precondition_required)
360
256
  */
361
257
  declare const updateDockerCompose: {
362
- (client: Client<import("../..").ApiVersion>, params?: any): Promise<{
258
+ (client: Client<import("../..").ApiVersion>, params: {
259
+ docker_compose_file: string;
260
+ id?: string | undefined;
261
+ uuid?: string | undefined;
262
+ app_id?: string | undefined;
263
+ instance_id?: string | undefined;
264
+ name?: string | undefined;
265
+ compose_hash?: string | undefined;
266
+ transaction_hash?: string | undefined;
267
+ }): Promise<{
363
268
  status: "in_progress";
364
269
  message: string;
365
270
  correlation_id: string;
366
271
  } | {
367
272
  status: "precondition_required";
368
273
  message: string;
369
- app_id: string;
370
274
  compose_hash: string;
275
+ app_id: string;
371
276
  device_id: string;
372
277
  kms_info: {
373
- version: string;
278
+ [x: string]: unknown;
374
279
  id: string;
375
280
  slug: string | null;
376
- chain_id: number | null;
377
281
  url: string;
282
+ version: string;
283
+ chain_id: number | null;
378
284
  kms_contract_address: `0x${string}`;
379
285
  gateway_app_id: `0x${string}`;
380
- } & {
381
- [k: string]: unknown;
286
+ k256_pubkey?: string | null | undefined;
382
287
  };
288
+ } | {
289
+ status: "no_change";
290
+ message: string;
383
291
  }>;
384
- <T extends z.ZodTypeAny>(client: Client<import("../..").ApiVersion>, params?: any, parameters?: {
292
+ <T extends z.ZodTypeAny>(client: Client<import("../..").ApiVersion>, params: {
293
+ docker_compose_file: string;
294
+ id?: string | undefined;
295
+ uuid?: string | undefined;
296
+ app_id?: string | undefined;
297
+ instance_id?: string | undefined;
298
+ name?: string | undefined;
299
+ compose_hash?: string | undefined;
300
+ transaction_hash?: string | undefined;
301
+ }, parameters: {
385
302
  schema: T;
386
- } | undefined): Promise<z.TypeOf<T>>;
387
- (client: Client<import("../..").ApiVersion>, params?: any, parameters?: {
303
+ }): Promise<z.core.output<T>>;
304
+ (client: Client<import("../..").ApiVersion>, params: {
305
+ docker_compose_file: string;
306
+ id?: string | undefined;
307
+ uuid?: string | undefined;
308
+ app_id?: string | undefined;
309
+ instance_id?: string | undefined;
310
+ name?: string | undefined;
311
+ compose_hash?: string | undefined;
312
+ transaction_hash?: string | undefined;
313
+ }, parameters: {
388
314
  schema: false;
389
- } | undefined): Promise<unknown>;
315
+ }): Promise<unknown>;
390
316
  }, safeUpdateDockerCompose: {
391
- (client: Client<import("../..").ApiVersion>, params?: any): Promise<import("../..").SafeResult<{
317
+ (client: Client<import("../..").ApiVersion>, params: {
318
+ docker_compose_file: string;
319
+ id?: string | undefined;
320
+ uuid?: string | undefined;
321
+ app_id?: string | undefined;
322
+ instance_id?: string | undefined;
323
+ name?: string | undefined;
324
+ compose_hash?: string | undefined;
325
+ transaction_hash?: string | undefined;
326
+ }): Promise<import("../..").SafeResult<{
392
327
  status: "in_progress";
393
328
  message: string;
394
329
  correlation_id: string;
395
330
  } | {
396
331
  status: "precondition_required";
397
332
  message: string;
398
- app_id: string;
399
333
  compose_hash: string;
334
+ app_id: string;
400
335
  device_id: string;
401
336
  kms_info: {
402
- version: string;
337
+ [x: string]: unknown;
403
338
  id: string;
404
339
  slug: string | null;
405
- chain_id: number | null;
406
340
  url: string;
341
+ version: string;
342
+ chain_id: number | null;
407
343
  kms_contract_address: `0x${string}`;
408
344
  gateway_app_id: `0x${string}`;
409
- } & {
410
- [k: string]: unknown;
345
+ k256_pubkey?: string | null | undefined;
411
346
  };
347
+ } | {
348
+ status: "no_change";
349
+ message: string;
412
350
  }>>;
413
- <T extends z.ZodTypeAny>(client: Client<import("../..").ApiVersion>, params?: any, parameters?: {
351
+ <T extends z.ZodTypeAny>(client: Client<import("../..").ApiVersion>, params: {
352
+ docker_compose_file: string;
353
+ id?: string | undefined;
354
+ uuid?: string | undefined;
355
+ app_id?: string | undefined;
356
+ instance_id?: string | undefined;
357
+ name?: string | undefined;
358
+ compose_hash?: string | undefined;
359
+ transaction_hash?: string | undefined;
360
+ }, parameters: {
414
361
  schema: T;
415
- } | undefined): Promise<import("../..").SafeResult<z.TypeOf<T>>>;
416
- (client: Client<import("../..").ApiVersion>, params?: any, parameters?: {
362
+ }): Promise<import("../..").SafeResult<z.core.output<T>>>;
363
+ (client: Client<import("../..").ApiVersion>, params: {
364
+ docker_compose_file: string;
365
+ id?: string | undefined;
366
+ uuid?: string | undefined;
367
+ app_id?: string | undefined;
368
+ instance_id?: string | undefined;
369
+ name?: string | undefined;
370
+ compose_hash?: string | undefined;
371
+ transaction_hash?: string | undefined;
372
+ }, parameters: {
417
373
  schema: false;
418
- } | undefined): Promise<import("../..").SafeResult<unknown>>;
374
+ }): Promise<import("../..").SafeResult<unknown>>;
419
375
  };
420
376
  export { updateDockerCompose, safeUpdateDockerCompose };
@@ -20,45 +20,72 @@ import { z } from "zod";
20
20
  * console.log('OS image update initiated');
21
21
  * ```
22
22
  */
23
- export declare const UpdateOsImageRequestSchema: z.ZodEffects<z.ZodObject<{
23
+ export declare const UpdateOsImageRequestSchema: z.ZodObject<{
24
24
  id: z.ZodOptional<z.ZodString>;
25
25
  uuid: z.ZodOptional<z.ZodString>;
26
26
  app_id: z.ZodOptional<z.ZodString>;
27
27
  instance_id: z.ZodOptional<z.ZodString>;
28
- name: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
29
- } & {
28
+ name: z.ZodOptional<z.ZodString>;
30
29
  os_image_name: z.ZodString;
31
- }, "strip", z.ZodTypeAny, {
32
- os_image_name: string;
33
- name?: string | undefined;
34
- id?: string | undefined;
35
- uuid?: string | undefined;
36
- app_id?: string | undefined;
37
- instance_id?: string | undefined;
38
- }, {
39
- os_image_name: string;
40
- name?: string | undefined;
41
- id?: string | undefined;
42
- uuid?: string | undefined;
43
- app_id?: string | undefined;
44
- instance_id?: string | undefined;
45
- }>, any, any>;
30
+ }, z.core.$strip>;
46
31
  export type UpdateOsImageRequest = z.infer<typeof UpdateOsImageRequestSchema>;
47
32
  declare const updateOsImage: {
48
- (client: import("../..").BaseClient<import("../..").ApiVersion>, params?: any): Promise<void>;
49
- <T extends z.ZodTypeAny>(client: import("../..").BaseClient<import("../..").ApiVersion>, params?: any, parameters?: {
33
+ (client: import("../..").BaseClient<import("../..").ApiVersion>, params: {
34
+ os_image_name: string;
35
+ id?: string | undefined;
36
+ uuid?: string | undefined;
37
+ app_id?: string | undefined;
38
+ instance_id?: string | undefined;
39
+ name?: string | undefined;
40
+ }): Promise<void>;
41
+ <T extends z.ZodTypeAny>(client: import("../..").BaseClient<import("../..").ApiVersion>, params: {
42
+ os_image_name: string;
43
+ id?: string | undefined;
44
+ uuid?: string | undefined;
45
+ app_id?: string | undefined;
46
+ instance_id?: string | undefined;
47
+ name?: string | undefined;
48
+ }, parameters: {
50
49
  schema: T;
51
- } | undefined): Promise<z.TypeOf<T>>;
52
- (client: import("../..").BaseClient<import("../..").ApiVersion>, params?: any, parameters?: {
50
+ }): Promise<z.core.output<T>>;
51
+ (client: import("../..").BaseClient<import("../..").ApiVersion>, params: {
52
+ os_image_name: string;
53
+ id?: string | undefined;
54
+ uuid?: string | undefined;
55
+ app_id?: string | undefined;
56
+ instance_id?: string | undefined;
57
+ name?: string | undefined;
58
+ }, parameters: {
53
59
  schema: false;
54
- } | undefined): Promise<unknown>;
60
+ }): Promise<unknown>;
55
61
  }, safeUpdateOsImage: {
56
- (client: import("../..").BaseClient<import("../..").ApiVersion>, params?: any): Promise<import("../..").SafeResult<void>>;
57
- <T extends z.ZodTypeAny>(client: import("../..").BaseClient<import("../..").ApiVersion>, params?: any, parameters?: {
62
+ (client: import("../..").BaseClient<import("../..").ApiVersion>, params: {
63
+ os_image_name: string;
64
+ id?: string | undefined;
65
+ uuid?: string | undefined;
66
+ app_id?: string | undefined;
67
+ instance_id?: string | undefined;
68
+ name?: string | undefined;
69
+ }): Promise<import("../..").SafeResult<void>>;
70
+ <T extends z.ZodTypeAny>(client: import("../..").BaseClient<import("../..").ApiVersion>, params: {
71
+ os_image_name: string;
72
+ id?: string | undefined;
73
+ uuid?: string | undefined;
74
+ app_id?: string | undefined;
75
+ instance_id?: string | undefined;
76
+ name?: string | undefined;
77
+ }, parameters: {
58
78
  schema: T;
59
- } | undefined): Promise<import("../..").SafeResult<z.TypeOf<T>>>;
60
- (client: import("../..").BaseClient<import("../..").ApiVersion>, params?: any, parameters?: {
79
+ }): Promise<import("../..").SafeResult<z.core.output<T>>>;
80
+ (client: import("../..").BaseClient<import("../..").ApiVersion>, params: {
81
+ os_image_name: string;
82
+ id?: string | undefined;
83
+ uuid?: string | undefined;
84
+ app_id?: string | undefined;
85
+ instance_id?: string | undefined;
86
+ name?: string | undefined;
87
+ }, parameters: {
61
88
  schema: false;
62
- } | undefined): Promise<import("../..").SafeResult<unknown>>;
89
+ }): Promise<import("../..").SafeResult<unknown>>;
63
90
  };
64
91
  export { updateOsImage, safeUpdateOsImage };