@phala/cloud 0.0.10 → 0.0.12

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.
@@ -78,6 +78,7 @@ export declare const CommitCvmComposeFileUpdateRequestSchema: z.ZodEffects<z.Zod
78
78
  compose_hash: z.ZodString;
79
79
  encrypted_env: z.ZodOptional<z.ZodString>;
80
80
  env_keys: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
81
+ update_env_vars: z.ZodNullable<z.ZodOptional<z.ZodBoolean>>;
81
82
  }, "strip", z.ZodTypeAny, {
82
83
  compose_hash: string;
83
84
  id?: string | undefined;
@@ -86,6 +87,7 @@ export declare const CommitCvmComposeFileUpdateRequestSchema: z.ZodEffects<z.Zod
86
87
  env_keys?: string[] | undefined;
87
88
  encrypted_env?: string | undefined;
88
89
  uuid?: string | undefined;
90
+ update_env_vars?: boolean | null | undefined;
89
91
  }, {
90
92
  compose_hash: string;
91
93
  id?: string | undefined;
@@ -94,6 +96,7 @@ export declare const CommitCvmComposeFileUpdateRequestSchema: z.ZodEffects<z.Zod
94
96
  env_keys?: string[] | undefined;
95
97
  encrypted_env?: string | undefined;
96
98
  uuid?: string | undefined;
99
+ update_env_vars?: boolean | null | undefined;
97
100
  }>, {
98
101
  compose_hash: string;
99
102
  id?: string | undefined;
@@ -102,6 +105,7 @@ export declare const CommitCvmComposeFileUpdateRequestSchema: z.ZodEffects<z.Zod
102
105
  env_keys?: string[] | undefined;
103
106
  encrypted_env?: string | undefined;
104
107
  uuid?: string | undefined;
108
+ update_env_vars?: boolean | null | undefined;
105
109
  }, {
106
110
  compose_hash: string;
107
111
  id?: string | undefined;
@@ -110,11 +114,13 @@ export declare const CommitCvmComposeFileUpdateRequestSchema: z.ZodEffects<z.Zod
110
114
  env_keys?: string[] | undefined;
111
115
  encrypted_env?: string | undefined;
112
116
  uuid?: string | undefined;
117
+ update_env_vars?: boolean | null | undefined;
113
118
  }>, {
114
119
  cvmId: string | undefined;
115
120
  compose_hash: string;
116
121
  encrypted_env: string | undefined;
117
122
  env_keys: string[] | undefined;
123
+ update_env_vars: boolean;
118
124
  _raw: {
119
125
  compose_hash: string;
120
126
  id?: string | undefined;
@@ -123,6 +129,7 @@ export declare const CommitCvmComposeFileUpdateRequestSchema: z.ZodEffects<z.Zod
123
129
  env_keys?: string[] | undefined;
124
130
  encrypted_env?: string | undefined;
125
131
  uuid?: string | undefined;
132
+ update_env_vars?: boolean | null | undefined;
126
133
  };
127
134
  }, {
128
135
  compose_hash: string;
@@ -132,9 +139,16 @@ export declare const CommitCvmComposeFileUpdateRequestSchema: z.ZodEffects<z.Zod
132
139
  env_keys?: string[] | undefined;
133
140
  encrypted_env?: string | undefined;
134
141
  uuid?: string | undefined;
142
+ update_env_vars?: boolean | null | undefined;
135
143
  }>;
136
144
  export declare const CommitCvmComposeFileUpdateSchema: z.ZodEffects<z.ZodAny, undefined, any>;
137
- export type CommitCvmComposeFileUpdateRequest = z.infer<typeof CommitCvmComposeFileUpdateRequestSchema>;
145
+ export type CommitCvmComposeFileUpdateRequest = Omit<z.infer<typeof CommitCvmComposeFileUpdateRequestSchema>, "cvmId" | "_raw" | "update_env_vars"> & {
146
+ id?: string;
147
+ uuid?: string;
148
+ app_id?: string;
149
+ instance_id?: string;
150
+ update_env_vars?: boolean | null;
151
+ };
138
152
  export type CommitCvmComposeFileUpdate = undefined;
139
153
  export type CommitCvmComposeFileUpdateParameters<T = undefined> = ActionParameters<T>;
140
154
  export type CommitCvmComposeFileUpdateReturnType<T = undefined> = ActionReturnType<CommitCvmComposeFileUpdate, T>;
@@ -1 +1 @@
1
- {"version":3,"file":"commit_cvm_compose_file_update.d.ts","sourceRoot":"","sources":["../../src/actions/commit_cvm_compose_file_update.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,KAAK,MAAM,EAAE,KAAK,UAAU,EAAE,MAAM,WAAW,CAAC;AACzD,OAAO,EA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C,CAAC,CAAC,GACnD,OAAO,CAAC,oCAAoC,CAAC,CAAC,CAAC,CAAC,CAelD;AAED,wBAAsB,8BAA8B,CAClD,CAAC,SAAS,CAAC,CAAC,SAAS,GAAG,KAAK,GAAG,SAAS,GAAG,SAAS,EAErD,MAAM,EAAE,MAAM,EACd,OAAO,EAAE,iCAAiC,EAC1C,UAAU,CAAC,EAAE,oCAAoC,CAAC,CAAC,CAAC,GACnD,OAAO,CAAC,UAAU,CAAC,oCAAoC,CAAC,CAAC,CAAC,CAAC,CAAC,CAuB9D"}
@@ -1,6 +1,7 @@
1
1
  import { z } from "zod";
2
2
  import { type Client, type SafeResult } from "../client";
3
3
  import { ActionParameters, ActionReturnType } from "../types/common";
4
+ import { LooseAppComposeSchema } from "../types/app_compose";
4
5
  /**
5
6
  * Get CVM compose file configuration
6
7
  *
@@ -68,76 +69,7 @@ import { ActionParameters, ActionReturnType } from "../types/common";
68
69
  * }
69
70
  * ```
70
71
  */
71
- export declare const GetCvmComposeFileResultSchema: z.ZodObject<{
72
- allowed_envs: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
73
- docker_compose_file: z.ZodString;
74
- features: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
75
- name: z.ZodOptional<z.ZodString>;
76
- manifest_version: z.ZodOptional<z.ZodNumber>;
77
- kms_enabled: z.ZodOptional<z.ZodBoolean>;
78
- public_logs: z.ZodOptional<z.ZodBoolean>;
79
- public_sysinfo: z.ZodOptional<z.ZodBoolean>;
80
- tproxy_enabled: z.ZodOptional<z.ZodBoolean>;
81
- pre_launch_script: z.ZodOptional<z.ZodString>;
82
- }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
83
- allowed_envs: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
84
- docker_compose_file: z.ZodString;
85
- features: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
86
- name: z.ZodOptional<z.ZodString>;
87
- manifest_version: z.ZodOptional<z.ZodNumber>;
88
- kms_enabled: z.ZodOptional<z.ZodBoolean>;
89
- public_logs: z.ZodOptional<z.ZodBoolean>;
90
- public_sysinfo: z.ZodOptional<z.ZodBoolean>;
91
- tproxy_enabled: z.ZodOptional<z.ZodBoolean>;
92
- pre_launch_script: z.ZodOptional<z.ZodString>;
93
- }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
94
- allowed_envs: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
95
- docker_compose_file: z.ZodString;
96
- features: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
97
- name: z.ZodOptional<z.ZodString>;
98
- manifest_version: z.ZodOptional<z.ZodNumber>;
99
- kms_enabled: z.ZodOptional<z.ZodBoolean>;
100
- public_logs: z.ZodOptional<z.ZodBoolean>;
101
- public_sysinfo: z.ZodOptional<z.ZodBoolean>;
102
- tproxy_enabled: z.ZodOptional<z.ZodBoolean>;
103
- pre_launch_script: z.ZodOptional<z.ZodString>;
104
- }, z.ZodTypeAny, "passthrough">>;
105
- export declare const CvmComposeFileSchema: z.ZodObject<{
106
- allowed_envs: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
107
- docker_compose_file: z.ZodString;
108
- features: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
109
- name: z.ZodOptional<z.ZodString>;
110
- manifest_version: z.ZodOptional<z.ZodNumber>;
111
- kms_enabled: z.ZodOptional<z.ZodBoolean>;
112
- public_logs: z.ZodOptional<z.ZodBoolean>;
113
- public_sysinfo: z.ZodOptional<z.ZodBoolean>;
114
- tproxy_enabled: z.ZodOptional<z.ZodBoolean>;
115
- pre_launch_script: z.ZodOptional<z.ZodString>;
116
- }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
117
- allowed_envs: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
118
- docker_compose_file: z.ZodString;
119
- features: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
120
- name: z.ZodOptional<z.ZodString>;
121
- manifest_version: z.ZodOptional<z.ZodNumber>;
122
- kms_enabled: z.ZodOptional<z.ZodBoolean>;
123
- public_logs: z.ZodOptional<z.ZodBoolean>;
124
- public_sysinfo: z.ZodOptional<z.ZodBoolean>;
125
- tproxy_enabled: z.ZodOptional<z.ZodBoolean>;
126
- pre_launch_script: z.ZodOptional<z.ZodString>;
127
- }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
128
- allowed_envs: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
129
- docker_compose_file: z.ZodString;
130
- features: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
131
- name: z.ZodOptional<z.ZodString>;
132
- manifest_version: z.ZodOptional<z.ZodNumber>;
133
- kms_enabled: z.ZodOptional<z.ZodBoolean>;
134
- public_logs: z.ZodOptional<z.ZodBoolean>;
135
- public_sysinfo: z.ZodOptional<z.ZodBoolean>;
136
- tproxy_enabled: z.ZodOptional<z.ZodBoolean>;
137
- pre_launch_script: z.ZodOptional<z.ZodString>;
138
- }, z.ZodTypeAny, "passthrough">>;
139
- export type CvmComposeFile = z.infer<typeof CvmComposeFileSchema>;
140
- export type GetCvmComposeFileResult = z.infer<typeof GetCvmComposeFileResultSchema>;
72
+ export type GetCvmComposeFileResult = z.infer<typeof LooseAppComposeSchema>;
141
73
  export declare const GetCvmComposeFileRequestSchema: z.ZodEffects<z.ZodEffects<z.ZodObject<{
142
74
  id: z.ZodOptional<z.ZodString>;
143
75
  uuid: z.ZodOptional<z.ZodString>;
@@ -1 +1 @@
1
- {"version":3,"file":"get_cvm_compose_file.d.ts","sourceRoot":"","sources":["../../src/actions/get_cvm_compose_file.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,KAAK,MAAM,EAAE,KAAK,UAAU,EAAE,MAAM,WAAW,CAAC;AACzD,OAAO,EAAE,gBAAgB,EAAE,gBAAgB,EAAE,MAAM,iBAAiB,CAAC;AAErE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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jC,UAAU,CAAC,EAAE,2BAA2B,CAAC,CAAC,CAAC,GAC1C,OAAO,CAAC,2BAA2B,CAAC,CAAC,CAAC,CAAC,CAWzC;AAED,wBAAsB,qBAAqB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS,GAAG,KAAK,GAAG,SAAS,GAAG,SAAS,EAC/F,MAAM,EAAE,MAAM,EACd,OAAO,EAAE,wBAAwB,EACjC,UAAU,CAAC,EAAE,2BAA2B,CAAC,CAAC,CAAC,GAC1C,OAAO,CAAC,UAAU,CAAC,2BAA2B,CAAC,CAAC,CAAC,CAAC,CAAC,CAiBrD"}
@@ -4,7 +4,7 @@ export { provisionCvm, safeProvisionCvm, type ProvisionCvmParameters, type Provi
4
4
  export { commitCvmProvision, safeCommitCvmProvision, type CommitCvmProvisionParameters, type CommitCvmProvisionReturnType, CommitCvmProvisionSchema, type CommitCvmProvision, CommitCvmProvisionRequestSchema, type CommitCvmProvisionRequest, } from "./commit_cvm_provision";
5
5
  export { deployAppAuth, safeDeployAppAuth, type DeployAppAuthParameters, type DeployAppAuthReturnType, DeployAppAuthSchema, type DeployAppAuth, DeployAppAuthRequestSchema, type DeployAppAuthRequest, type SafeDeployAppAuthResult, } from "./deploy_app_auth";
6
6
  export { addComposeHash, safeAddComposeHash, type AddComposeHashParameters, type AddComposeHashReturnType, AddComposeHashSchema, type AddComposeHash, type AddComposeHashRequest, type SafeAddComposeHashResult, } from "./add_compose_hash";
7
- export { getCvmComposeFile, safeGetCvmComposeFile, type GetCvmComposeFileParameters, type GetCvmComposeFileReturnType, GetCvmComposeFileResultSchema, type GetCvmComposeFileResult, } from "./get_cvm_compose_file";
7
+ export { getCvmComposeFile, safeGetCvmComposeFile, type GetCvmComposeFileParameters, type GetCvmComposeFileReturnType, type GetCvmComposeFileResult, } from "./get_cvm_compose_file";
8
8
  export { provisionCvmComposeFileUpdate, safeProvisionCvmComposeFileUpdate, type ProvisionCvmComposeFileUpdateParameters, type ProvisionCvmComposeFileUpdateReturnType, ProvisionCvmComposeFileUpdateRequestSchema, type ProvisionCvmComposeFileUpdateRequest, ProvisionCvmComposeFileUpdateResultSchema, type ProvisionCvmComposeFileUpdateResult, } from "./provision_cvm_compose_file_update";
9
9
  export { commitCvmComposeFileUpdate, safeCommitCvmComposeFileUpdate, type CommitCvmComposeFileUpdateParameters, type CommitCvmComposeFileUpdateReturnType, CommitCvmComposeFileUpdateRequestSchema, type CommitCvmComposeFileUpdateRequest, CommitCvmComposeFileUpdateSchema, type CommitCvmComposeFileUpdate, } from "./commit_cvm_compose_file_update";
10
10
  export { getAppEnvEncryptPubKey, safeGetAppEnvEncryptPubKey, type GetAppEnvEncryptPubKeyParameters, type GetAppEnvEncryptPubKeyReturnType, GetAppEnvEncryptPubKeySchema, type GetAppEnvEncryptPubKeyRequest, type GetAppEnvEncryptPubKey, } from "./get_app_env_encrypt_pubkey";
@@ -12,4 +12,7 @@ export { getCvmInfo, safeGetCvmInfo, type GetCvmInfoParameters, type GetCvmInfoR
12
12
  export { getCvmList, safeGetCvmList, type GetCvmListParameters, type GetCvmListReturnType, GetCvmListSchema, } from "./get_cvm_list";
13
13
  export { getKmsInfo, safeGetKmsInfo, type GetKmsInfoParameters, type GetKmsInfoReturnType, } from "./get_kms_info";
14
14
  export { getKmsList, safeGetKmsList, type GetKmsListParameters, type GetKmsListReturnType, GetKmsListSchema, } from "./get_kms_list";
15
+ export { listWorkspaces, safeListWorkspaces, type ListWorkspacesParameters, type ListWorkspacesReturnType, WorkspaceResponseSchema, ListWorkspacesSchema, PaginationMetadataSchema, type WorkspaceResponse, type ListWorkspaces, type PaginationMetadata, } from "./workspaces/list_workspaces";
16
+ export { getWorkspace, safeGetWorkspace, type GetWorkspaceParameters, type GetWorkspaceReturnType, } from "./workspaces/get_workspace";
17
+ export { listInstanceTypes, safeListInstanceTypes, type ListInstanceTypesParameters, type ListInstanceTypesReturnType, PaginatedInstanceTypesSchema, InstanceTypeSchema, type PaginatedInstanceTypes, type InstanceType, type ListInstanceTypesRequest, } from "./list-instance-types";
15
18
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/actions/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,cAAc,EACd,kBAAkB,EAClB,KAAK,wBAAwB,EAC7B,KAAK,wBAAwB,EAC7B,iBAAiB,EACjB,KAAK,WAAW,GACjB,MAAM,oBAAoB,CAAC;AAE5B,OAAO,EACL,iBAAiB,EACjB,qBAAqB,EACrB,KAAK,2BAA2B,EAChC,KAAK,2BAA2B,EAChC,oBAAoB,EACpB,KAAK,cAAc,GACpB,MAAM,uBAAuB,CAAC;AAE/B,OAAO,EACL,YAAY,EACZ,gBAAgB,EAChB,KAAK,sBAAsB,EAC3B,KAAK,sBAAsB,EAC3B,kBAAkB,EAClB,KAAK,YAAY,EACjB,yBAAyB,EACzB,KAAK,mBAAmB,GACzB,MAAM,iBAAiB,CAAC;AAEzB,OAAO,EACL,kBAAkB,EAClB,sBAAsB,EACtB,KAAK,4BAA4B,EACjC,KAAK,4BAA4B,EACjC,wBAAwB,EACxB,KAAK,kBAAkB,EACvB,+BAA+B,EAC/B,KAAK,yBAAyB,GAC/B,MAAM,wBAAwB,CAAC;AAEhC,OAAO,EACL,aAAa,EACb,iBAAiB,EACjB,KAAK,uBAAuB,EAC5B,KAAK,uBAAuB,EAC5B,mBAAmB,EACnB,KAAK,aAAa,EAClB,0BAA0B,EAC1B,KAAK,oBAAoB,EACzB,KAAK,uBAAuB,GAC7B,MAAM,mBAAmB,CAAC;AAE3B,OAAO,EACL,cAAc,EACd,kBAAkB,EAClB,KAAK,wBAAwB,EAC7B,KAAK,wBAAwB,EAC7B,oBAAoB,EACpB,KAAK,cAAc,EACnB,KAAK,qBAAqB,EAC1B,KAAK,wBAAwB,GAC9B,MAAM,oBAAoB,CAAC;AAE5B,OAAO,EACL,iBAAiB,EACjB,qBAAqB,EACrB,KAAK,2BAA2B,EAChC,KAAK,2BAA2B,EAChC,6BAA6B,EAC7B,KAAK,uBAAuB,GAC7B,MAAM,wBAAwB,CAAC;AAEhC,OAAO,EACL,6BAA6B,EAC7B,iCAAiC,EACjC,KAAK,uCAAuC,EAC5C,KAAK,uCAAuC,EAC5C,0CAA0C,EAC1C,KAAK,oCAAoC,EACzC,yCAAyC,EACzC,KAAK,mCAAmC,GACzC,MAAM,qCAAqC,CAAC;AAE7C,OAAO,EACL,0BAA0B,EAC1B,8BAA8B,EAC9B,KAAK,oCAAoC,EACzC,KAAK,oCAAoC,EACzC,uCAAuC,EACvC,KAAK,iCAAiC,EACtC,gCAAgC,EAChC,KAAK,0BAA0B,GAChC,MAAM,kCAAkC,CAAC;AAE1C,OAAO,EACL,sBAAsB,EACtB,0BAA0B,EAC1B,KAAK,gCAAgC,EACrC,KAAK,gCAAgC,EACrC,4BAA4B,EAC5B,KAAK,6BAA6B,EAClC,KAAK,sBAAsB,GAC5B,MAAM,8BAA8B,CAAC;AAEtC,OAAO,EACL,UAAU,EACV,cAAc,EACd,KAAK,oBAAoB,EACzB,KAAK,oBAAoB,EACzB,qBAAqB,GACtB,MAAM,gBAAgB,CAAC;AAExB,OAAO,EACL,UAAU,EACV,cAAc,EACd,KAAK,oBAAoB,EACzB,KAAK,oBAAoB,EACzB,gBAAgB,GACjB,MAAM,gBAAgB,CAAC;AAExB,OAAO,EACL,UAAU,EACV,cAAc,EACd,KAAK,oBAAoB,EACzB,KAAK,oBAAoB,GAC1B,MAAM,gBAAgB,CAAC;AAExB,OAAO,EACL,UAAU,EACV,cAAc,EACd,KAAK,oBAAoB,EACzB,KAAK,oBAAoB,EACzB,gBAAgB,GACjB,MAAM,gBAAgB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/actions/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,cAAc,EACd,kBAAkB,EAClB,KAAK,wBAAwB,EAC7B,KAAK,wBAAwB,EAC7B,iBAAiB,EACjB,KAAK,WAAW,GACjB,MAAM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Y,EACjB,KAAK,wBAAwB,GAC9B,MAAM,uBAAuB,CAAC"}
@@ -0,0 +1,146 @@
1
+ import { z } from "zod";
2
+ import { type Client, type SafeResult } from "../client";
3
+ import { ActionParameters, ActionReturnType } from "../types/common";
4
+ export declare const ListInstanceTypesRequestSchema: z.ZodObject<{
5
+ page: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
6
+ page_size: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
7
+ }, "strict", z.ZodTypeAny, {
8
+ page: number;
9
+ page_size: number;
10
+ }, {
11
+ page?: number | undefined;
12
+ page_size?: number | undefined;
13
+ }>;
14
+ export declare const InstanceTypeSchema: z.ZodObject<{
15
+ id: z.ZodString;
16
+ name: z.ZodString;
17
+ description: z.ZodString;
18
+ vcpu: z.ZodNumber;
19
+ memory_mb: z.ZodNumber;
20
+ hourly_rate: z.ZodString;
21
+ requires_gpu: z.ZodBoolean;
22
+ public: z.ZodBoolean;
23
+ enabled: z.ZodBoolean;
24
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
25
+ id: z.ZodString;
26
+ name: z.ZodString;
27
+ description: z.ZodString;
28
+ vcpu: z.ZodNumber;
29
+ memory_mb: z.ZodNumber;
30
+ hourly_rate: z.ZodString;
31
+ requires_gpu: z.ZodBoolean;
32
+ public: z.ZodBoolean;
33
+ enabled: z.ZodBoolean;
34
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
35
+ id: z.ZodString;
36
+ name: z.ZodString;
37
+ description: z.ZodString;
38
+ vcpu: z.ZodNumber;
39
+ memory_mb: z.ZodNumber;
40
+ hourly_rate: z.ZodString;
41
+ requires_gpu: z.ZodBoolean;
42
+ public: z.ZodBoolean;
43
+ enabled: z.ZodBoolean;
44
+ }, z.ZodTypeAny, "passthrough">>;
45
+ export declare const PaginatedInstanceTypesSchema: z.ZodObject<{
46
+ items: z.ZodArray<z.ZodObject<{
47
+ id: z.ZodString;
48
+ name: z.ZodString;
49
+ description: z.ZodString;
50
+ vcpu: z.ZodNumber;
51
+ memory_mb: z.ZodNumber;
52
+ hourly_rate: z.ZodString;
53
+ requires_gpu: z.ZodBoolean;
54
+ public: z.ZodBoolean;
55
+ enabled: z.ZodBoolean;
56
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
57
+ id: z.ZodString;
58
+ name: z.ZodString;
59
+ description: z.ZodString;
60
+ vcpu: z.ZodNumber;
61
+ memory_mb: z.ZodNumber;
62
+ hourly_rate: z.ZodString;
63
+ requires_gpu: z.ZodBoolean;
64
+ public: z.ZodBoolean;
65
+ enabled: z.ZodBoolean;
66
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
67
+ id: z.ZodString;
68
+ name: z.ZodString;
69
+ description: z.ZodString;
70
+ vcpu: z.ZodNumber;
71
+ memory_mb: z.ZodNumber;
72
+ hourly_rate: z.ZodString;
73
+ requires_gpu: z.ZodBoolean;
74
+ public: z.ZodBoolean;
75
+ enabled: z.ZodBoolean;
76
+ }, z.ZodTypeAny, "passthrough">>, "many">;
77
+ total: z.ZodNumber;
78
+ page: z.ZodNumber;
79
+ page_size: z.ZodNumber;
80
+ pages: z.ZodNumber;
81
+ }, "strict", z.ZodTypeAny, {
82
+ page: number;
83
+ page_size: number;
84
+ items: z.objectOutputType<{
85
+ id: z.ZodString;
86
+ name: z.ZodString;
87
+ description: z.ZodString;
88
+ vcpu: z.ZodNumber;
89
+ memory_mb: z.ZodNumber;
90
+ hourly_rate: z.ZodString;
91
+ requires_gpu: z.ZodBoolean;
92
+ public: z.ZodBoolean;
93
+ enabled: z.ZodBoolean;
94
+ }, z.ZodTypeAny, "passthrough">[];
95
+ total: number;
96
+ pages: number;
97
+ }, {
98
+ page: number;
99
+ page_size: number;
100
+ items: z.objectInputType<{
101
+ id: z.ZodString;
102
+ name: z.ZodString;
103
+ description: z.ZodString;
104
+ vcpu: z.ZodNumber;
105
+ memory_mb: z.ZodNumber;
106
+ hourly_rate: z.ZodString;
107
+ requires_gpu: z.ZodBoolean;
108
+ public: z.ZodBoolean;
109
+ enabled: z.ZodBoolean;
110
+ }, z.ZodTypeAny, "passthrough">[];
111
+ total: number;
112
+ pages: number;
113
+ }>;
114
+ export type ListInstanceTypesRequest = z.infer<typeof ListInstanceTypesRequestSchema>;
115
+ export type InstanceType = z.infer<typeof InstanceTypeSchema>;
116
+ export type PaginatedInstanceTypes = z.infer<typeof PaginatedInstanceTypesSchema>;
117
+ export type ListInstanceTypesParameters<T = undefined> = ActionParameters<T>;
118
+ export type ListInstanceTypesReturnType<T = undefined> = ActionReturnType<PaginatedInstanceTypes, T>;
119
+ /**
120
+ * List available instance types with pagination
121
+ *
122
+ * @param client - The API client
123
+ * @param request - Optional request parameters for pagination
124
+ * @param request.page - Page number (1-based)
125
+ * @param request.page_size - Number of items per page
126
+ * @param parameters - Optional behavior parameters
127
+ * @returns Paginated list of instance types
128
+ *
129
+ * @example
130
+ * ```typescript
131
+ * // Get first page with default size
132
+ * const types = await listInstanceTypes(client, { page: 1 })
133
+ *
134
+ * // Get with custom page size
135
+ * const types = await listInstanceTypes(client, { page: 1, page_size: 50 })
136
+ *
137
+ * // Get all types (use large page size)
138
+ * const types = await listInstanceTypes(client, { page_size: 1000 })
139
+ * ```
140
+ */
141
+ export declare function listInstanceTypes<T extends z.ZodSchema | false | undefined = undefined>(client: Client, request?: ListInstanceTypesRequest, parameters?: ListInstanceTypesParameters<T>): Promise<ListInstanceTypesReturnType<T>>;
142
+ /**
143
+ * Safe version of listInstanceTypes that returns a Result type instead of throwing
144
+ */
145
+ export declare function safeListInstanceTypes<T extends z.ZodSchema | false | undefined = undefined>(client: Client, request?: ListInstanceTypesRequest, parameters?: ListInstanceTypesParameters<T>): Promise<SafeResult<ListInstanceTypesReturnType<T>>>;
146
+ //# sourceMappingURL=list-instance-types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"list-instance-types.d.ts","sourceRoot":"","sources":["../../src/actions/list-instance-types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC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AK,GAAG,SAAS,GAAG,SAAS,EAC/F,MAAM,EAAE,MAAM,EACd,OAAO,CAAC,EAAE,wBAAwB,EAClC,UAAU,CAAC,EAAE,2BAA2B,CAAC,CAAC,CAAC,GAC1C,OAAO,CAAC,UAAU,CAAC,2BAA2B,CAAC,CAAC,CAAC,CAAC,CAAC,CA8BrD"}
@@ -86,124 +86,176 @@ export declare const ProvisionCvmComposeFileUpdateRequestSchema: z.ZodEffects<z.
86
86
  app_compose: z.ZodObject<{
87
87
  allowed_envs: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
88
88
  docker_compose_file: z.ZodString;
89
- name: z.ZodString;
89
+ features: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
90
+ name: z.ZodOptional<z.ZodString>;
91
+ manifest_version: z.ZodOptional<z.ZodNumber>;
90
92
  kms_enabled: z.ZodOptional<z.ZodBoolean>;
91
93
  public_logs: z.ZodOptional<z.ZodBoolean>;
92
94
  public_sysinfo: z.ZodOptional<z.ZodBoolean>;
95
+ tproxy_enabled: z.ZodOptional<z.ZodBoolean>;
93
96
  pre_launch_script: z.ZodOptional<z.ZodString>;
94
- }, "strip", z.ZodTypeAny, {
95
- name: string;
96
- docker_compose_file: string;
97
- public_sysinfo?: boolean | undefined;
98
- public_logs?: boolean | undefined;
99
- pre_launch_script?: string | undefined;
100
- allowed_envs?: string[] | undefined;
101
- kms_enabled?: boolean | undefined;
102
- }, {
103
- name: string;
104
- docker_compose_file: string;
105
- public_sysinfo?: boolean | undefined;
106
- public_logs?: boolean | undefined;
107
- pre_launch_script?: string | undefined;
108
- allowed_envs?: string[] | undefined;
109
- kms_enabled?: boolean | undefined;
110
- }>;
97
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
98
+ allowed_envs: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
99
+ docker_compose_file: z.ZodString;
100
+ features: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
101
+ name: z.ZodOptional<z.ZodString>;
102
+ manifest_version: z.ZodOptional<z.ZodNumber>;
103
+ kms_enabled: z.ZodOptional<z.ZodBoolean>;
104
+ public_logs: z.ZodOptional<z.ZodBoolean>;
105
+ public_sysinfo: z.ZodOptional<z.ZodBoolean>;
106
+ tproxy_enabled: z.ZodOptional<z.ZodBoolean>;
107
+ pre_launch_script: z.ZodOptional<z.ZodString>;
108
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
109
+ allowed_envs: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
110
+ docker_compose_file: z.ZodString;
111
+ features: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
112
+ name: z.ZodOptional<z.ZodString>;
113
+ manifest_version: z.ZodOptional<z.ZodNumber>;
114
+ kms_enabled: z.ZodOptional<z.ZodBoolean>;
115
+ public_logs: z.ZodOptional<z.ZodBoolean>;
116
+ public_sysinfo: z.ZodOptional<z.ZodBoolean>;
117
+ tproxy_enabled: z.ZodOptional<z.ZodBoolean>;
118
+ pre_launch_script: z.ZodOptional<z.ZodString>;
119
+ }, z.ZodTypeAny, "passthrough">>;
120
+ update_env_vars: z.ZodNullable<z.ZodOptional<z.ZodBoolean>>;
111
121
  }, "strip", z.ZodTypeAny, {
112
122
  app_compose: {
113
- name: string;
114
123
  docker_compose_file: string;
124
+ name?: string | undefined;
115
125
  public_sysinfo?: boolean | undefined;
116
126
  public_logs?: boolean | undefined;
117
127
  pre_launch_script?: string | undefined;
118
128
  allowed_envs?: string[] | undefined;
119
129
  kms_enabled?: boolean | undefined;
130
+ tproxy_enabled?: boolean | undefined;
131
+ manifest_version?: number | undefined;
132
+ features?: string[] | undefined;
133
+ } & {
134
+ [k: string]: unknown;
120
135
  };
121
136
  id?: string | undefined;
122
137
  app_id?: string | undefined;
123
138
  instance_id?: string | undefined;
124
139
  uuid?: string | undefined;
140
+ update_env_vars?: boolean | null | undefined;
125
141
  }, {
126
142
  app_compose: {
127
- name: string;
128
143
  docker_compose_file: string;
144
+ name?: string | undefined;
129
145
  public_sysinfo?: boolean | undefined;
130
146
  public_logs?: boolean | undefined;
131
147
  pre_launch_script?: string | undefined;
132
148
  allowed_envs?: string[] | undefined;
133
149
  kms_enabled?: boolean | undefined;
150
+ tproxy_enabled?: boolean | undefined;
151
+ manifest_version?: number | undefined;
152
+ features?: string[] | undefined;
153
+ } & {
154
+ [k: string]: unknown;
134
155
  };
135
156
  id?: string | undefined;
136
157
  app_id?: string | undefined;
137
158
  instance_id?: string | undefined;
138
159
  uuid?: string | undefined;
160
+ update_env_vars?: boolean | null | undefined;
139
161
  }>, {
140
162
  app_compose: {
141
- name: string;
142
163
  docker_compose_file: string;
164
+ name?: string | undefined;
143
165
  public_sysinfo?: boolean | undefined;
144
166
  public_logs?: boolean | undefined;
145
167
  pre_launch_script?: string | undefined;
146
168
  allowed_envs?: string[] | undefined;
147
169
  kms_enabled?: boolean | undefined;
170
+ tproxy_enabled?: boolean | undefined;
171
+ manifest_version?: number | undefined;
172
+ features?: string[] | undefined;
173
+ } & {
174
+ [k: string]: unknown;
148
175
  };
149
176
  id?: string | undefined;
150
177
  app_id?: string | undefined;
151
178
  instance_id?: string | undefined;
152
179
  uuid?: string | undefined;
180
+ update_env_vars?: boolean | null | undefined;
153
181
  }, {
154
182
  app_compose: {
155
- name: string;
156
183
  docker_compose_file: string;
184
+ name?: string | undefined;
157
185
  public_sysinfo?: boolean | undefined;
158
186
  public_logs?: boolean | undefined;
159
187
  pre_launch_script?: string | undefined;
160
188
  allowed_envs?: string[] | undefined;
161
189
  kms_enabled?: boolean | undefined;
190
+ tproxy_enabled?: boolean | undefined;
191
+ manifest_version?: number | undefined;
192
+ features?: string[] | undefined;
193
+ } & {
194
+ [k: string]: unknown;
162
195
  };
163
196
  id?: string | undefined;
164
197
  app_id?: string | undefined;
165
198
  instance_id?: string | undefined;
166
199
  uuid?: string | undefined;
200
+ update_env_vars?: boolean | null | undefined;
167
201
  }>, {
168
202
  cvmId: string | undefined;
169
203
  request: {
170
- name: string;
171
204
  docker_compose_file: string;
205
+ name?: string | undefined;
172
206
  public_sysinfo?: boolean | undefined;
173
207
  public_logs?: boolean | undefined;
174
208
  pre_launch_script?: string | undefined;
175
209
  allowed_envs?: string[] | undefined;
176
210
  kms_enabled?: boolean | undefined;
211
+ tproxy_enabled?: boolean | undefined;
212
+ manifest_version?: number | undefined;
213
+ features?: string[] | undefined;
214
+ } & {
215
+ [k: string]: unknown;
177
216
  };
217
+ update_env_vars: boolean | null | undefined;
178
218
  _raw: {
179
219
  app_compose: {
180
- name: string;
181
220
  docker_compose_file: string;
221
+ name?: string | undefined;
182
222
  public_sysinfo?: boolean | undefined;
183
223
  public_logs?: boolean | undefined;
184
224
  pre_launch_script?: string | undefined;
185
225
  allowed_envs?: string[] | undefined;
186
226
  kms_enabled?: boolean | undefined;
227
+ tproxy_enabled?: boolean | undefined;
228
+ manifest_version?: number | undefined;
229
+ features?: string[] | undefined;
230
+ } & {
231
+ [k: string]: unknown;
187
232
  };
188
233
  id?: string | undefined;
189
234
  app_id?: string | undefined;
190
235
  instance_id?: string | undefined;
191
236
  uuid?: string | undefined;
237
+ update_env_vars?: boolean | null | undefined;
192
238
  };
193
239
  }, {
194
240
  app_compose: {
195
- name: string;
196
241
  docker_compose_file: string;
242
+ name?: string | undefined;
197
243
  public_sysinfo?: boolean | undefined;
198
244
  public_logs?: boolean | undefined;
199
245
  pre_launch_script?: string | undefined;
200
246
  allowed_envs?: string[] | undefined;
201
247
  kms_enabled?: boolean | undefined;
248
+ tproxy_enabled?: boolean | undefined;
249
+ manifest_version?: number | undefined;
250
+ features?: string[] | undefined;
251
+ } & {
252
+ [k: string]: unknown;
202
253
  };
203
254
  id?: string | undefined;
204
255
  app_id?: string | undefined;
205
256
  instance_id?: string | undefined;
206
257
  uuid?: string | undefined;
258
+ update_env_vars?: boolean | null | undefined;
207
259
  }>;
208
260
  export declare const ProvisionCvmComposeFileUpdateResultSchema: z.ZodObject<{
209
261
  app_id: z.ZodNullable<z.ZodString>;
@@ -1 +1 @@
1
- {"version":3,"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G,SAAS,EAErD,MAAM,EAAE,MAAM,EACd,OAAO,EAAE,oCAAoC,EAC7C,UAAU,CAAC,EAAE,uCAAuC,CAAC,CAAC,CAAC,GACtD,OAAO,CAAC,uCAAuC,CAAC,CAAC,CAAC,CAAC,CAcrD;AAED;;GAEG;AACH,wBAAsB,iCAAiC,CACrD,CAAC,SAAS,CAAC,CAAC,SAAS,GAAG,KAAK,GAAG,SAAS,GAAG,SAAS,EAErD,MAAM,EAAE,MAAM,EACd,OAAO,EAAE,oCAAoC,EAC7C,UAAU,CAAC,EAAE,uCAAuC,CAAC,CAAC,CAAC,GACtD,OAAO,CAAC,UAAU,CAAC,uCAAuC,CAAC,CAAC,CAAC,CAAC,CAAC,CAwBjE"}
1
+ {"version":3,"file":"provision_cvm_compose_file_update.d.ts","sourceRoot":"","sources":["../../src/actions/provision_cvm_compose_file_update.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,KAAK,MAAM,EAAE,KAAK,UAAU,EAAE,MAAM,WAAW,CAAC;AACzD,OAAO,EAAE,gBAAgB,EAAE,gBAAgB,EAAE,MAAM,iBAAiB,CAAC;AAIrE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4EG;AAEH,eAAO,MAAM,0CAA0C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAmClD,CAAC;AAEN,eAAO,MAAM,yCAAyC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;gCAOtC,CAAC;AAEjB,MAAM,MAAM,oCAAoC,GAAG,CAAC,CAAC,KAAK,CACxD,OAAO,0CAA0C,CAClD,CAAC;AACF,MAAM,MAAM,mCAAmC,GAAG,CAAC,CAAC,KAAK,CACvD,OAAO,yCAAyC,CACjD,CAAC;AAEF,MAAM,MAAM,uCAAuC,CAAC,CAAC,GAAG,SAAS,IAAI,gBAAgB,CAAC,CAAC,CAAC,CAAC;AACzF,MAAM,MAAM,uCAAuC,CAAC,CAAC,GAAG,SAAS,IAAI,gBAAgB,CACnF,mCAAmC,EACnC,CAAC,CACF,CAAC;AAEF;;;;;;;GAOG;AACH,wBAAsB,6BAA6B,CACjD,CAAC,SAAS,CAAC,CAAC,SAAS,GAAG,KAAK,GAAG,SAAS,GAAG,SAAS,EAErD,MAAM,EAAE,MAAM,EACd,OAAO,EAAE,oCAAoC,EAC7C,UAAU,CAAC,EAAE,uCAAuC,CAAC,CAAC,CAAC,GACtD,OAAO,CAAC,uCAAuC,CAAC,CAAC,CAAC,CAAC,CAcrD;AAED;;GAEG;AACH,wBAAsB,iCAAiC,CACrD,CAAC,SAAS,CAAC,CAAC,SAAS,GAAG,KAAK,GAAG,SAAS,GAAG,SAAS,EAErD,MAAM,EAAE,MAAM,EACd,OAAO,EAAE,oCAAoC,EAC7C,UAAU,CAAC,EAAE,uCAAuC,CAAC,CAAC,CAAC,GACtD,OAAO,CAAC,UAAU,CAAC,uCAAuC,CAAC,CAAC,CAAC,CAAC,CAAC,CAwBjE"}
@@ -0,0 +1,72 @@
1
+ import { z } from "zod";
2
+ import { type Client, type SafeResult } from "../../client";
3
+ import { ActionParameters, ActionReturnType } from "../../types/common";
4
+ import { type WorkspaceResponse } from "./list_workspaces";
5
+ /**
6
+ * Get specific workspace information by team slug
7
+ *
8
+ * Returns detailed information about a specific workspace.
9
+ *
10
+ * @example
11
+ * ```typescript
12
+ * import { createClient, getWorkspace } from '@phala/cloud'
13
+ *
14
+ * const client = createClient({ apiKey: 'your-api-key' })
15
+ * const workspace = await getWorkspace(client, 'team-slug')
16
+ * // Output: { id: '...', name: '...', slug: 'team-slug', ... }
17
+ * ```
18
+ *
19
+ * ## Returns
20
+ *
21
+ * `WorkspaceResponse | unknown`
22
+ *
23
+ * Information about the workspace. Return type depends on schema parameter.
24
+ *
25
+ * ## Parameters
26
+ *
27
+ * ### teamSlug (required)
28
+ * - **Type:** `string`
29
+ *
30
+ * The slug identifier of the workspace to retrieve.
31
+ *
32
+ * ### parameters (optional)
33
+ * - **Type:** `GetWorkspaceParameters`
34
+ *
35
+ * Optional behavior parameters for schema validation.
36
+ *
37
+ * ```typescript
38
+ * // Use default schema
39
+ * const workspace = await getWorkspace(client, 'team-slug')
40
+ *
41
+ * // Return raw data without validation
42
+ * const raw = await getWorkspace(client, 'team-slug', { schema: false })
43
+ *
44
+ * // Use custom schema
45
+ * const customSchema = z.object({ id: z.string(), name: z.string() })
46
+ * const custom = await getWorkspace(client, 'team-slug', { schema: customSchema })
47
+ * ```
48
+ *
49
+ * ## Safe Version
50
+ *
51
+ * Use `safeGetWorkspace` for error handling without exceptions:
52
+ *
53
+ * ```typescript
54
+ * import { safeGetWorkspace } from '@phala/cloud'
55
+ *
56
+ * const result = await safeGetWorkspace(client, 'team-slug')
57
+ * if (result.success) {
58
+ * console.log(result.data.name)
59
+ * } else {
60
+ * if ("isRequestError" in result.error) {
61
+ * console.error(`HTTP ${result.error.status}: ${result.error.message}`)
62
+ * } else {
63
+ * console.error(`Validation error: ${result.error.issues}`)
64
+ * }
65
+ * }
66
+ * ```
67
+ */
68
+ export type GetWorkspaceParameters<T = undefined> = ActionParameters<T>;
69
+ export type GetWorkspaceReturnType<T = undefined> = ActionReturnType<WorkspaceResponse, T>;
70
+ export declare function getWorkspace<T extends z.ZodSchema | false | undefined = undefined>(client: Client, teamSlug: string, parameters?: GetWorkspaceParameters<T>): Promise<GetWorkspaceReturnType<T>>;
71
+ export declare function safeGetWorkspace<T extends z.ZodSchema | false | undefined = undefined>(client: Client, teamSlug: string, parameters?: GetWorkspaceParameters<T>): Promise<SafeResult<GetWorkspaceReturnType<T>>>;
72
+ //# sourceMappingURL=get_workspace.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"get_workspace.d.ts","sourceRoot":"","sources":["../../../src/actions/workspaces/get_workspace.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,KAAK,MAAM,EAAE,KAAK,UAAU,EAAE,MAAM,cAAc,CAAC;AAC5D,OAAO,EAAE,gBAAgB,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AAExE,OAAO,EAA2B,KAAK,iBAAiB,EAAE,MAAM,mBAAmB,CAAC;AAEpF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8DG;AAEH,MAAM,MAAM,sBAAsB,CAAC,CAAC,GAAG,SAAS,IAAI,gBAAgB,CAAC,CAAC,CAAC,CAAC;AAExE,MAAM,MAAM,sBAAsB,CAAC,CAAC,GAAG,SAAS,IAAI,gBAAgB,CAAC,iBAAiB,EAAE,CAAC,CAAC,CAAC;AAE3F,wBAAsB,YAAY,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS,GAAG,KAAK,GAAG,SAAS,GAAG,SAAS,EACtF,MAAM,EAAE,MAAM,EACd,QAAQ,EAAE,MAAM,EAChB,UAAU,CAAC,EAAE,sBAAsB,CAAC,CAAC,CAAC,GACrC,OAAO,CAAC,sBAAsB,CAAC,CAAC,CAAC,CAAC,CAWpC;AAED,wBAAsB,gBAAgB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS,GAAG,KAAK,GAAG,SAAS,GAAG,SAAS,EAC1F,MAAM,EAAE,MAAM,EACd,QAAQ,EAAE,MAAM,EAChB,UAAU,CAAC,EAAE,sBAAsB,CAAC,CAAC,CAAC,GACrC,OAAO,CAAC,UAAU,CAAC,sBAAsB,CAAC,CAAC,CAAC,CAAC,CAAC,CAiBhD"}