@phala/cloud 0.2.8 → 0.2.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.
Files changed (39) hide show
  1. package/dist/actions/apps/check_app_cvms_is_allowed.d.ts +315 -5
  2. package/dist/actions/apps/check_app_is_allowed.d.ts +2 -2
  3. package/dist/actions/apps/create_app_instance.d.ts +205 -0
  4. package/dist/actions/apps/get_app_attestation.d.ts +50 -0
  5. package/dist/actions/apps/get_app_device_allowlist.d.ts +274 -5
  6. package/dist/actions/apps/get_app_filter_options.d.ts +2 -2
  7. package/dist/actions/cvms/check_cvm_is_allowed.d.ts +133 -3
  8. package/dist/actions/cvms/commit_cvm_provision.d.ts +425 -148
  9. package/dist/actions/cvms/get_cvm_compose_file.d.ts +328 -0
  10. package/dist/actions/cvms/get_prelaunch_script_upgrade_status.d.ts +93 -0
  11. package/dist/actions/cvms/provision_cvm.d.ts +243 -225
  12. package/dist/actions/cvms/provision_cvm_compose_file_update.d.ts +216 -0
  13. package/dist/actions/cvms/refresh_cvm_instance_id.d.ts +123 -5
  14. package/dist/actions/cvms/refresh_cvm_instance_ids.d.ts +236 -7
  15. package/dist/actions/cvms/replicate_cvm.d.ts +4 -4
  16. package/dist/actions/cvms/restart_cvm.d.ts +4 -4
  17. package/dist/actions/cvms/shutdown_cvm.d.ts +4 -4
  18. package/dist/actions/cvms/start_cvm.d.ts +4 -4
  19. package/dist/actions/cvms/stop_cvm.d.ts +4 -4
  20. package/dist/actions/cvms/update_cvm_visibility.d.ts +2 -2
  21. package/dist/actions/cvms/upgrade_prelaunch_script.d.ts +319 -0
  22. package/dist/actions/get_cvm_create_resources.d.ts +2412 -0
  23. package/dist/actions/index.d.ts +4 -0
  24. package/dist/actions/workspaces/get_workspace.d.ts +2 -0
  25. package/dist/actions/workspaces/list_workspaces.d.ts +18 -0
  26. package/dist/client.d.ts +5 -2
  27. package/dist/create-client.d.ts +48 -0
  28. package/dist/index.js +1648 -1208
  29. package/dist/index.mjs +1613 -1206
  30. package/dist/types/app_compose.d.ts +125 -0
  31. package/dist/types/app_info_v20251028.d.ts +8 -131
  32. package/dist/types/app_info_v20260121.d.ts +4500 -168
  33. package/dist/types/client.d.ts +2 -2
  34. package/dist/types/cvm_info.d.ts +533 -7
  35. package/dist/types/cvm_info_v20251028.d.ts +18 -18
  36. package/dist/types/cvm_info_v20260121.d.ts +1640 -89
  37. package/dist/types/version-mappings.d.ts +8 -8
  38. package/dist/utils/errors.d.ts +8 -1
  39. package/package.json +2 -2
@@ -1,6 +1,11 @@
1
1
  import { z } from "zod";
2
- export declare const AppCvmsBatchIsAllowedResponseSchema: z.ZodObject<{
2
+ export declare const AppCvmsBatchIsAllowedResponseV20260121Schema: z.ZodObject<{
3
3
  is_onchain: z.ZodBoolean;
4
+ total: z.ZodDefault<z.ZodNumber>;
5
+ allowed_count: z.ZodDefault<z.ZodNumber>;
6
+ denied_count: z.ZodDefault<z.ZodNumber>;
7
+ error_count: z.ZodDefault<z.ZodNumber>;
8
+ } & {
4
9
  results: z.ZodDefault<z.ZodArray<z.ZodObject<{
5
10
  app_contract_address: z.ZodString;
6
11
  compose_hash: z.ZodString;
@@ -33,10 +38,162 @@ export declare const AppCvmsBatchIsAllowedResponseSchema: z.ZodObject<{
33
38
  error?: string | null | undefined;
34
39
  device_id_allowed?: boolean | null | undefined;
35
40
  }>, "many">>;
41
+ skipped_cvm_ids: z.ZodDefault<z.ZodArray<z.ZodNumber, "many">>;
42
+ }, "strip", z.ZodTypeAny, {
43
+ total: number;
44
+ is_onchain: boolean;
45
+ results: {
46
+ device_id: string;
47
+ compose_hash: string;
48
+ compose_hash_allowed: boolean;
49
+ is_allowed: boolean;
50
+ cvm_id: number;
51
+ app_contract_address: string;
52
+ allow_any_device: boolean;
53
+ error?: string | null | undefined;
54
+ device_id_allowed?: boolean | null | undefined;
55
+ }[];
56
+ allowed_count: number;
57
+ denied_count: number;
58
+ error_count: number;
59
+ skipped_cvm_ids: number[];
60
+ }, {
61
+ is_onchain: boolean;
62
+ total?: number | undefined;
63
+ results?: {
64
+ device_id: string;
65
+ compose_hash: string;
66
+ compose_hash_allowed: boolean;
67
+ is_allowed: boolean;
68
+ cvm_id: number;
69
+ app_contract_address: string;
70
+ allow_any_device: boolean;
71
+ error?: string | null | undefined;
72
+ device_id_allowed?: boolean | null | undefined;
73
+ }[] | undefined;
74
+ allowed_count?: number | undefined;
75
+ denied_count?: number | undefined;
76
+ error_count?: number | undefined;
77
+ skipped_cvm_ids?: number[] | undefined;
78
+ }>;
79
+ export type AppCvmsBatchIsAllowedResponseV20260121 = z.infer<typeof AppCvmsBatchIsAllowedResponseV20260121Schema>;
80
+ export declare const AppCvmsBatchIsAllowedResponseV20260522Schema: z.ZodObject<{
81
+ is_onchain: z.ZodBoolean;
82
+ total: z.ZodDefault<z.ZodNumber>;
83
+ allowed_count: z.ZodDefault<z.ZodNumber>;
84
+ denied_count: z.ZodDefault<z.ZodNumber>;
85
+ error_count: z.ZodDefault<z.ZodNumber>;
86
+ } & {
87
+ results: z.ZodDefault<z.ZodArray<z.ZodObject<{
88
+ app_contract_address: z.ZodString;
89
+ compose_hash: z.ZodString;
90
+ device_id: z.ZodString;
91
+ compose_hash_allowed: z.ZodBoolean;
92
+ allow_any_device: z.ZodBoolean;
93
+ device_id_allowed: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
94
+ is_allowed: z.ZodBoolean;
95
+ error: z.ZodOptional<z.ZodNullable<z.ZodString>>;
96
+ } & {
97
+ cvm_id: z.ZodString;
98
+ }, "strip", z.ZodTypeAny, {
99
+ device_id: string;
100
+ compose_hash: string;
101
+ compose_hash_allowed: boolean;
102
+ is_allowed: boolean;
103
+ cvm_id: string;
104
+ app_contract_address: string;
105
+ allow_any_device: boolean;
106
+ error?: string | null | undefined;
107
+ device_id_allowed?: boolean | null | undefined;
108
+ }, {
109
+ device_id: string;
110
+ compose_hash: string;
111
+ compose_hash_allowed: boolean;
112
+ is_allowed: boolean;
113
+ cvm_id: string;
114
+ app_contract_address: string;
115
+ allow_any_device: boolean;
116
+ error?: string | null | undefined;
117
+ device_id_allowed?: boolean | null | undefined;
118
+ }>, "many">>;
119
+ skipped_cvm_ids: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
120
+ }, "strip", z.ZodTypeAny, {
121
+ total: number;
122
+ is_onchain: boolean;
123
+ results: {
124
+ device_id: string;
125
+ compose_hash: string;
126
+ compose_hash_allowed: boolean;
127
+ is_allowed: boolean;
128
+ cvm_id: string;
129
+ app_contract_address: string;
130
+ allow_any_device: boolean;
131
+ error?: string | null | undefined;
132
+ device_id_allowed?: boolean | null | undefined;
133
+ }[];
134
+ allowed_count: number;
135
+ denied_count: number;
136
+ error_count: number;
137
+ skipped_cvm_ids: string[];
138
+ }, {
139
+ is_onchain: boolean;
140
+ total?: number | undefined;
141
+ results?: {
142
+ device_id: string;
143
+ compose_hash: string;
144
+ compose_hash_allowed: boolean;
145
+ is_allowed: boolean;
146
+ cvm_id: string;
147
+ app_contract_address: string;
148
+ allow_any_device: boolean;
149
+ error?: string | null | undefined;
150
+ device_id_allowed?: boolean | null | undefined;
151
+ }[] | undefined;
152
+ allowed_count?: number | undefined;
153
+ denied_count?: number | undefined;
154
+ error_count?: number | undefined;
155
+ skipped_cvm_ids?: string[] | undefined;
156
+ }>;
157
+ export type AppCvmsBatchIsAllowedResponseV20260522 = z.infer<typeof AppCvmsBatchIsAllowedResponseV20260522Schema>;
158
+ export declare const AppCvmsBatchIsAllowedResponseAnySchema: z.ZodUnion<[z.ZodObject<{
159
+ is_onchain: z.ZodBoolean;
36
160
  total: z.ZodDefault<z.ZodNumber>;
37
161
  allowed_count: z.ZodDefault<z.ZodNumber>;
38
162
  denied_count: z.ZodDefault<z.ZodNumber>;
39
163
  error_count: z.ZodDefault<z.ZodNumber>;
164
+ } & {
165
+ results: z.ZodDefault<z.ZodArray<z.ZodObject<{
166
+ app_contract_address: z.ZodString;
167
+ compose_hash: z.ZodString;
168
+ device_id: z.ZodString;
169
+ compose_hash_allowed: z.ZodBoolean;
170
+ allow_any_device: z.ZodBoolean;
171
+ device_id_allowed: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
172
+ is_allowed: z.ZodBoolean;
173
+ error: z.ZodOptional<z.ZodNullable<z.ZodString>>;
174
+ } & {
175
+ cvm_id: z.ZodNumber;
176
+ }, "strip", z.ZodTypeAny, {
177
+ device_id: string;
178
+ compose_hash: string;
179
+ compose_hash_allowed: boolean;
180
+ is_allowed: boolean;
181
+ cvm_id: number;
182
+ app_contract_address: string;
183
+ allow_any_device: boolean;
184
+ error?: string | null | undefined;
185
+ device_id_allowed?: boolean | null | undefined;
186
+ }, {
187
+ device_id: string;
188
+ compose_hash: string;
189
+ compose_hash_allowed: boolean;
190
+ is_allowed: boolean;
191
+ cvm_id: number;
192
+ app_contract_address: string;
193
+ allow_any_device: boolean;
194
+ error?: string | null | undefined;
195
+ device_id_allowed?: boolean | null | undefined;
196
+ }>, "many">>;
40
197
  skipped_cvm_ids: z.ZodDefault<z.ZodArray<z.ZodNumber, "many">>;
41
198
  }, "strip", z.ZodTypeAny, {
42
199
  total: number;
@@ -74,6 +231,159 @@ export declare const AppCvmsBatchIsAllowedResponseSchema: z.ZodObject<{
74
231
  denied_count?: number | undefined;
75
232
  error_count?: number | undefined;
76
233
  skipped_cvm_ids?: number[] | undefined;
234
+ }>, z.ZodObject<{
235
+ is_onchain: z.ZodBoolean;
236
+ total: z.ZodDefault<z.ZodNumber>;
237
+ allowed_count: z.ZodDefault<z.ZodNumber>;
238
+ denied_count: z.ZodDefault<z.ZodNumber>;
239
+ error_count: z.ZodDefault<z.ZodNumber>;
240
+ } & {
241
+ results: z.ZodDefault<z.ZodArray<z.ZodObject<{
242
+ app_contract_address: z.ZodString;
243
+ compose_hash: z.ZodString;
244
+ device_id: z.ZodString;
245
+ compose_hash_allowed: z.ZodBoolean;
246
+ allow_any_device: z.ZodBoolean;
247
+ device_id_allowed: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
248
+ is_allowed: z.ZodBoolean;
249
+ error: z.ZodOptional<z.ZodNullable<z.ZodString>>;
250
+ } & {
251
+ cvm_id: z.ZodString;
252
+ }, "strip", z.ZodTypeAny, {
253
+ device_id: string;
254
+ compose_hash: string;
255
+ compose_hash_allowed: boolean;
256
+ is_allowed: boolean;
257
+ cvm_id: string;
258
+ app_contract_address: string;
259
+ allow_any_device: boolean;
260
+ error?: string | null | undefined;
261
+ device_id_allowed?: boolean | null | undefined;
262
+ }, {
263
+ device_id: string;
264
+ compose_hash: string;
265
+ compose_hash_allowed: boolean;
266
+ is_allowed: boolean;
267
+ cvm_id: string;
268
+ app_contract_address: string;
269
+ allow_any_device: boolean;
270
+ error?: string | null | undefined;
271
+ device_id_allowed?: boolean | null | undefined;
272
+ }>, "many">>;
273
+ skipped_cvm_ids: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
274
+ }, "strip", z.ZodTypeAny, {
275
+ total: number;
276
+ is_onchain: boolean;
277
+ results: {
278
+ device_id: string;
279
+ compose_hash: string;
280
+ compose_hash_allowed: boolean;
281
+ is_allowed: boolean;
282
+ cvm_id: string;
283
+ app_contract_address: string;
284
+ allow_any_device: boolean;
285
+ error?: string | null | undefined;
286
+ device_id_allowed?: boolean | null | undefined;
287
+ }[];
288
+ allowed_count: number;
289
+ denied_count: number;
290
+ error_count: number;
291
+ skipped_cvm_ids: string[];
292
+ }, {
293
+ is_onchain: boolean;
294
+ total?: number | undefined;
295
+ results?: {
296
+ device_id: string;
297
+ compose_hash: string;
298
+ compose_hash_allowed: boolean;
299
+ is_allowed: boolean;
300
+ cvm_id: string;
301
+ app_contract_address: string;
302
+ allow_any_device: boolean;
303
+ error?: string | null | undefined;
304
+ device_id_allowed?: boolean | null | undefined;
305
+ }[] | undefined;
306
+ allowed_count?: number | undefined;
307
+ denied_count?: number | undefined;
308
+ error_count?: number | undefined;
309
+ skipped_cvm_ids?: string[] | undefined;
310
+ }>]>;
311
+ export declare const AppCvmsBatchIsAllowedResponseSchema: z.ZodObject<{
312
+ is_onchain: z.ZodBoolean;
313
+ total: z.ZodDefault<z.ZodNumber>;
314
+ allowed_count: z.ZodDefault<z.ZodNumber>;
315
+ denied_count: z.ZodDefault<z.ZodNumber>;
316
+ error_count: z.ZodDefault<z.ZodNumber>;
317
+ } & {
318
+ results: z.ZodDefault<z.ZodArray<z.ZodObject<{
319
+ app_contract_address: z.ZodString;
320
+ compose_hash: z.ZodString;
321
+ device_id: z.ZodString;
322
+ compose_hash_allowed: z.ZodBoolean;
323
+ allow_any_device: z.ZodBoolean;
324
+ device_id_allowed: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
325
+ is_allowed: z.ZodBoolean;
326
+ error: z.ZodOptional<z.ZodNullable<z.ZodString>>;
327
+ } & {
328
+ cvm_id: z.ZodString;
329
+ }, "strip", z.ZodTypeAny, {
330
+ device_id: string;
331
+ compose_hash: string;
332
+ compose_hash_allowed: boolean;
333
+ is_allowed: boolean;
334
+ cvm_id: string;
335
+ app_contract_address: string;
336
+ allow_any_device: boolean;
337
+ error?: string | null | undefined;
338
+ device_id_allowed?: boolean | null | undefined;
339
+ }, {
340
+ device_id: string;
341
+ compose_hash: string;
342
+ compose_hash_allowed: boolean;
343
+ is_allowed: boolean;
344
+ cvm_id: string;
345
+ app_contract_address: string;
346
+ allow_any_device: boolean;
347
+ error?: string | null | undefined;
348
+ device_id_allowed?: boolean | null | undefined;
349
+ }>, "many">>;
350
+ skipped_cvm_ids: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
351
+ }, "strip", z.ZodTypeAny, {
352
+ total: number;
353
+ is_onchain: boolean;
354
+ results: {
355
+ device_id: string;
356
+ compose_hash: string;
357
+ compose_hash_allowed: boolean;
358
+ is_allowed: boolean;
359
+ cvm_id: string;
360
+ app_contract_address: string;
361
+ allow_any_device: boolean;
362
+ error?: string | null | undefined;
363
+ device_id_allowed?: boolean | null | undefined;
364
+ }[];
365
+ allowed_count: number;
366
+ denied_count: number;
367
+ error_count: number;
368
+ skipped_cvm_ids: string[];
369
+ }, {
370
+ is_onchain: boolean;
371
+ total?: number | undefined;
372
+ results?: {
373
+ device_id: string;
374
+ compose_hash: string;
375
+ compose_hash_allowed: boolean;
376
+ is_allowed: boolean;
377
+ cvm_id: string;
378
+ app_contract_address: string;
379
+ allow_any_device: boolean;
380
+ error?: string | null | undefined;
381
+ device_id_allowed?: boolean | null | undefined;
382
+ }[] | undefined;
383
+ allowed_count?: number | undefined;
384
+ denied_count?: number | undefined;
385
+ error_count?: number | undefined;
386
+ skipped_cvm_ids?: string[] | undefined;
77
387
  }>;
78
388
  export type AppCvmsBatchIsAllowedResponse = z.infer<typeof AppCvmsBatchIsAllowedResponseSchema>;
79
389
  export declare const CheckAppCvmsIsAllowedRequestSchema: z.ZodObject<{
@@ -107,7 +417,7 @@ declare const checkAppCvmsIsAllowed: {
107
417
  compose_hash: string;
108
418
  compose_hash_allowed: boolean;
109
419
  is_allowed: boolean;
110
- cvm_id: number;
420
+ cvm_id: string;
111
421
  app_contract_address: string;
112
422
  allow_any_device: boolean;
113
423
  error?: string | null | undefined;
@@ -116,7 +426,7 @@ declare const checkAppCvmsIsAllowed: {
116
426
  allowed_count: number;
117
427
  denied_count: number;
118
428
  error_count: number;
119
- skipped_cvm_ids: number[];
429
+ skipped_cvm_ids: string[];
120
430
  }>;
121
431
  <T extends z.ZodTypeAny>(client: import("../..").BaseClient<import("../..").ApiVersion>, params: {
122
432
  appId: string;
@@ -139,7 +449,7 @@ declare const checkAppCvmsIsAllowed: {
139
449
  compose_hash: string;
140
450
  compose_hash_allowed: boolean;
141
451
  is_allowed: boolean;
142
- cvm_id: number;
452
+ cvm_id: string;
143
453
  app_contract_address: string;
144
454
  allow_any_device: boolean;
145
455
  error?: string | null | undefined;
@@ -148,7 +458,7 @@ declare const checkAppCvmsIsAllowed: {
148
458
  allowed_count: number;
149
459
  denied_count: number;
150
460
  error_count: number;
151
- skipped_cvm_ids: number[];
461
+ skipped_cvm_ids: string[];
152
462
  }>>;
153
463
  <T extends z.ZodTypeAny>(client: import("../..").BaseClient<import("../..").ApiVersion>, params: {
154
464
  appId: string;
@@ -49,7 +49,7 @@ declare const checkAppIsAllowed: {
49
49
  allow_any_device: boolean;
50
50
  error?: string | null | undefined;
51
51
  device_id_allowed?: boolean | null | undefined;
52
- cvm_id?: number | undefined;
52
+ cvm_id?: string | undefined;
53
53
  }>;
54
54
  <T extends z.ZodTypeAny>(client: import("../..").BaseClient<import("../..").ApiVersion>, params: {
55
55
  compose_hash: string;
@@ -85,7 +85,7 @@ declare const checkAppIsAllowed: {
85
85
  allow_any_device: boolean;
86
86
  error?: string | null | undefined;
87
87
  device_id_allowed?: boolean | null | undefined;
88
- cvm_id?: number | undefined;
88
+ cvm_id?: string | undefined;
89
89
  }>>;
90
90
  <T extends z.ZodTypeAny>(client: import("../..").BaseClient<import("../..").ApiVersion>, params: {
91
91
  compose_hash: string;
@@ -0,0 +1,205 @@
1
+ import { z } from "zod";
2
+ /**
3
+ * Create a new instance under an existing app
4
+ *
5
+ * Deploy a new CVM instance under an existing app, optionally with a new
6
+ * Docker Compose file. For on-chain KMS apps, this uses a two-phase flow:
7
+ * the first request returns HTTP 465 with a commit token; after registering
8
+ * the compose hash on-chain, the second request commits with the token and
9
+ * transaction hash.
10
+ *
11
+ * @example
12
+ * ```typescript
13
+ * import { createClient, createAppInstance } from '@phala/cloud'
14
+ *
15
+ * const client = createClient();
16
+ *
17
+ * // Create instance with existing compose
18
+ * const instance = await createAppInstance(client, {
19
+ * appId: '50b0e827cc6c53f4010b57e588a18c5ef9388cc1',
20
+ * node_id: 5,
21
+ * });
22
+ *
23
+ * // Create instance with new Docker Compose
24
+ * const instance2 = await createAppInstance(client, {
25
+ * appId: '50b0e827cc6c53f4010b57e588a18c5ef9388cc1',
26
+ * docker_compose_file: 'services:\n app:\n image: nginx',
27
+ * node_id: 5,
28
+ * });
29
+ * ```
30
+ *
31
+ * ## Safe Version
32
+ *
33
+ * Use `safeCreateAppInstance` for error handling without exceptions:
34
+ *
35
+ * ```typescript
36
+ * const result = await safeCreateAppInstance(client, { appId: 'my-app-id' });
37
+ * if (result.success) {
38
+ * console.log('Instance created:', result.data.vm_uuid);
39
+ * } else {
40
+ * console.error('Failed:', result.error.message);
41
+ * }
42
+ * ```
43
+ */
44
+ export declare const CreateAppInstanceRequestSchema: z.ZodObject<{
45
+ appId: z.ZodString;
46
+ name: z.ZodOptional<z.ZodString>;
47
+ node_id: z.ZodOptional<z.ZodNumber>;
48
+ docker_compose_file: z.ZodOptional<z.ZodString>;
49
+ pre_launch_script: z.ZodOptional<z.ZodString>;
50
+ encrypted_env: z.ZodOptional<z.ZodString>;
51
+ compose_hash: z.ZodOptional<z.ZodString>;
52
+ token: z.ZodOptional<z.ZodString>;
53
+ transaction_hash: z.ZodOptional<z.ZodString>;
54
+ }, "strict", z.ZodTypeAny, {
55
+ appId: string;
56
+ name?: string | undefined;
57
+ compose_hash?: string | undefined;
58
+ node_id?: number | undefined;
59
+ docker_compose_file?: string | undefined;
60
+ pre_launch_script?: string | undefined;
61
+ encrypted_env?: string | undefined;
62
+ transaction_hash?: string | undefined;
63
+ token?: string | undefined;
64
+ }, {
65
+ appId: string;
66
+ name?: string | undefined;
67
+ compose_hash?: string | undefined;
68
+ node_id?: number | undefined;
69
+ docker_compose_file?: string | undefined;
70
+ pre_launch_script?: string | undefined;
71
+ encrypted_env?: string | undefined;
72
+ transaction_hash?: string | undefined;
73
+ token?: string | undefined;
74
+ }>;
75
+ export type CreateAppInstanceRequest = z.infer<typeof CreateAppInstanceRequestSchema>;
76
+ declare const createAppInstance: {
77
+ (client: import("../..").BaseClient<import("../..").ApiVersion>, params: {
78
+ appId: string;
79
+ name?: string | undefined;
80
+ compose_hash?: string | undefined;
81
+ node_id?: number | undefined;
82
+ docker_compose_file?: string | undefined;
83
+ pre_launch_script?: string | undefined;
84
+ encrypted_env?: string | undefined;
85
+ transaction_hash?: string | undefined;
86
+ token?: string | undefined;
87
+ }): Promise<{
88
+ status: string;
89
+ name: string;
90
+ id: string;
91
+ app_id: string;
92
+ instance_id: string | null;
93
+ vcpu: number;
94
+ memory: number;
95
+ disk_size: number;
96
+ teepod_id: number;
97
+ vm_uuid: string | null;
98
+ encrypted_env_pubkey: string | null;
99
+ created_at: string;
100
+ version?: string | null | undefined;
101
+ app_url?: string | null | undefined;
102
+ teepod?: {
103
+ name: string;
104
+ id: number;
105
+ region_identifier?: string | null | undefined;
106
+ } | null | undefined;
107
+ base_image?: string | null | undefined;
108
+ user_id?: string | null | undefined;
109
+ docker_compose_file?: string | null | undefined;
110
+ features?: string[] | null | undefined;
111
+ manifest_version?: number | null | undefined;
112
+ runner?: string | null | undefined;
113
+ }>;
114
+ <T extends z.ZodTypeAny>(client: import("../..").BaseClient<import("../..").ApiVersion>, params: {
115
+ appId: string;
116
+ name?: string | undefined;
117
+ compose_hash?: string | undefined;
118
+ node_id?: number | undefined;
119
+ docker_compose_file?: string | undefined;
120
+ pre_launch_script?: string | undefined;
121
+ encrypted_env?: string | undefined;
122
+ transaction_hash?: string | undefined;
123
+ token?: string | undefined;
124
+ }, parameters: {
125
+ schema: T;
126
+ }): Promise<z.TypeOf<T>>;
127
+ (client: import("../..").BaseClient<import("../..").ApiVersion>, params: {
128
+ appId: string;
129
+ name?: string | undefined;
130
+ compose_hash?: string | undefined;
131
+ node_id?: number | undefined;
132
+ docker_compose_file?: string | undefined;
133
+ pre_launch_script?: string | undefined;
134
+ encrypted_env?: string | undefined;
135
+ transaction_hash?: string | undefined;
136
+ token?: string | undefined;
137
+ }, parameters: {
138
+ schema: false;
139
+ }): Promise<unknown>;
140
+ }, safeCreateAppInstance: {
141
+ (client: import("../..").BaseClient<import("../..").ApiVersion>, params: {
142
+ appId: string;
143
+ name?: string | undefined;
144
+ compose_hash?: string | undefined;
145
+ node_id?: number | undefined;
146
+ docker_compose_file?: string | undefined;
147
+ pre_launch_script?: string | undefined;
148
+ encrypted_env?: string | undefined;
149
+ transaction_hash?: string | undefined;
150
+ token?: string | undefined;
151
+ }): Promise<import("../..").SafeResult<{
152
+ status: string;
153
+ name: string;
154
+ id: string;
155
+ app_id: string;
156
+ instance_id: string | null;
157
+ vcpu: number;
158
+ memory: number;
159
+ disk_size: number;
160
+ teepod_id: number;
161
+ vm_uuid: string | null;
162
+ encrypted_env_pubkey: string | null;
163
+ created_at: string;
164
+ version?: string | null | undefined;
165
+ app_url?: string | null | undefined;
166
+ teepod?: {
167
+ name: string;
168
+ id: number;
169
+ region_identifier?: string | null | undefined;
170
+ } | null | undefined;
171
+ base_image?: string | null | undefined;
172
+ user_id?: string | null | undefined;
173
+ docker_compose_file?: string | null | undefined;
174
+ features?: string[] | null | undefined;
175
+ manifest_version?: number | null | undefined;
176
+ runner?: string | null | undefined;
177
+ }>>;
178
+ <T extends z.ZodTypeAny>(client: import("../..").BaseClient<import("../..").ApiVersion>, params: {
179
+ appId: string;
180
+ name?: string | undefined;
181
+ compose_hash?: string | undefined;
182
+ node_id?: number | undefined;
183
+ docker_compose_file?: string | undefined;
184
+ pre_launch_script?: string | undefined;
185
+ encrypted_env?: string | undefined;
186
+ transaction_hash?: string | undefined;
187
+ token?: string | undefined;
188
+ }, parameters: {
189
+ schema: T;
190
+ }): Promise<import("../..").SafeResult<z.TypeOf<T>>>;
191
+ (client: import("../..").BaseClient<import("../..").ApiVersion>, params: {
192
+ appId: string;
193
+ name?: string | undefined;
194
+ compose_hash?: string | undefined;
195
+ node_id?: number | undefined;
196
+ docker_compose_file?: string | undefined;
197
+ pre_launch_script?: string | undefined;
198
+ encrypted_env?: string | undefined;
199
+ transaction_hash?: string | undefined;
200
+ token?: string | undefined;
201
+ }, parameters: {
202
+ schema: false;
203
+ }): Promise<import("../..").SafeResult<unknown>>;
204
+ };
205
+ export { createAppInstance, safeCreateAppInstance };