@nirvana-labs/nirvana 1.0.4 → 1.1.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 (254) hide show
  1. package/CHANGELOG.md +27 -0
  2. package/README.md +1 -1
  3. package/api-promise.js +2 -15
  4. package/api-promise.js.map +1 -1
  5. package/bin/cli +52 -0
  6. package/bin/migration-config.json +110 -0
  7. package/client.d.mts +4 -1
  8. package/client.d.mts.map +1 -1
  9. package/client.d.ts +4 -1
  10. package/client.d.ts.map +1 -1
  11. package/client.js +25 -42
  12. package/client.js.map +1 -1
  13. package/client.mjs +18 -12
  14. package/client.mjs.map +1 -1
  15. package/core/api-promise.d.mts +0 -1
  16. package/core/api-promise.d.mts.map +1 -1
  17. package/core/api-promise.d.ts +0 -1
  18. package/core/api-promise.d.ts.map +1 -1
  19. package/core/api-promise.js +4 -14
  20. package/core/api-promise.js.map +1 -1
  21. package/core/api-promise.mjs +1 -11
  22. package/core/api-promise.mjs.map +1 -1
  23. package/core/error.d.mts +0 -1
  24. package/core/error.d.mts.map +1 -1
  25. package/core/error.d.ts +0 -1
  26. package/core/error.d.ts.map +1 -1
  27. package/core/error.js.map +1 -1
  28. package/core/error.mjs.map +1 -1
  29. package/error.js +2 -15
  30. package/error.js.map +1 -1
  31. package/internal/builtin-types.d.mts +0 -2
  32. package/internal/builtin-types.d.mts.map +1 -1
  33. package/internal/builtin-types.d.ts +0 -2
  34. package/internal/builtin-types.d.ts.map +1 -1
  35. package/internal/detect-platform.js.map +1 -1
  36. package/internal/detect-platform.mjs.map +1 -1
  37. package/internal/errors.d.mts.map +1 -1
  38. package/internal/errors.d.ts.map +1 -1
  39. package/internal/errors.js +2 -2
  40. package/internal/errors.js.map +1 -1
  41. package/internal/errors.mjs.map +1 -1
  42. package/internal/headers.d.mts +0 -1
  43. package/internal/headers.d.mts.map +1 -1
  44. package/internal/headers.d.ts +0 -1
  45. package/internal/headers.d.ts.map +1 -1
  46. package/internal/headers.js.map +1 -1
  47. package/internal/headers.mjs.map +1 -1
  48. package/internal/parse.d.mts +0 -1
  49. package/internal/parse.d.mts.map +1 -1
  50. package/internal/parse.d.ts +0 -1
  51. package/internal/parse.d.ts.map +1 -1
  52. package/internal/parse.js +1 -2
  53. package/internal/parse.js.map +1 -1
  54. package/internal/parse.mjs.map +1 -1
  55. package/internal/request-options.d.mts +0 -1
  56. package/internal/request-options.d.mts.map +1 -1
  57. package/internal/request-options.d.ts +0 -1
  58. package/internal/request-options.d.ts.map +1 -1
  59. package/internal/shims.js +5 -6
  60. package/internal/shims.js.map +1 -1
  61. package/internal/shims.mjs.map +1 -1
  62. package/internal/to-file.d.mts +0 -1
  63. package/internal/to-file.d.mts.map +1 -1
  64. package/internal/to-file.d.ts +0 -1
  65. package/internal/to-file.d.ts.map +1 -1
  66. package/internal/to-file.js +4 -4
  67. package/internal/to-file.js.map +1 -1
  68. package/internal/to-file.mjs +3 -2
  69. package/internal/to-file.mjs.map +1 -1
  70. package/internal/tslib.js +81 -0
  71. package/internal/tslib.mjs +17 -0
  72. package/internal/types.d.mts +0 -1
  73. package/internal/types.d.mts.map +1 -1
  74. package/internal/types.d.ts +0 -1
  75. package/internal/types.d.ts.map +1 -1
  76. package/internal/uploads.d.mts +1 -3
  77. package/internal/uploads.d.mts.map +1 -1
  78. package/internal/uploads.d.ts +1 -3
  79. package/internal/uploads.d.ts.map +1 -1
  80. package/internal/uploads.js +16 -6
  81. package/internal/uploads.js.map +1 -1
  82. package/internal/uploads.mjs +12 -3
  83. package/internal/uploads.mjs.map +1 -1
  84. package/internal/utils/base64.d.mts.map +1 -1
  85. package/internal/utils/base64.d.ts.map +1 -1
  86. package/internal/utils/base64.js.map +1 -1
  87. package/internal/utils/base64.mjs.map +1 -1
  88. package/internal/utils/bytes.d.mts +1 -1
  89. package/internal/utils/bytes.d.mts.map +1 -1
  90. package/internal/utils/bytes.d.ts +1 -1
  91. package/internal/utils/bytes.d.ts.map +1 -1
  92. package/internal/utils/bytes.js +3 -4
  93. package/internal/utils/bytes.js.map +1 -1
  94. package/internal/utils/bytes.mjs.map +1 -1
  95. package/internal/utils/env.d.mts.map +1 -1
  96. package/internal/utils/env.d.ts.map +1 -1
  97. package/internal/utils/env.js.map +1 -1
  98. package/internal/utils/env.mjs.map +1 -1
  99. package/internal/utils/log.d.mts +0 -1
  100. package/internal/utils/log.d.mts.map +1 -1
  101. package/internal/utils/log.d.ts +0 -1
  102. package/internal/utils/log.d.ts.map +1 -1
  103. package/internal/utils/log.js +2 -2
  104. package/internal/utils/log.js.map +1 -1
  105. package/internal/utils/log.mjs.map +1 -1
  106. package/internal/utils/path.d.mts.map +1 -1
  107. package/internal/utils/path.d.ts.map +1 -1
  108. package/internal/utils/path.js +2 -2
  109. package/internal/utils/path.js.map +1 -1
  110. package/internal/utils/path.mjs.map +1 -1
  111. package/internal/utils/sleep.d.mts.map +1 -1
  112. package/internal/utils/sleep.d.ts.map +1 -1
  113. package/internal/utils/uuid.d.mts +1 -1
  114. package/internal/utils/uuid.d.mts.map +1 -1
  115. package/internal/utils/uuid.d.ts +1 -1
  116. package/internal/utils/uuid.d.ts.map +1 -1
  117. package/internal/utils/uuid.js +1 -2
  118. package/internal/utils/uuid.js.map +1 -1
  119. package/internal/utils/uuid.mjs +1 -2
  120. package/internal/utils/uuid.mjs.map +1 -1
  121. package/internal/utils/values.d.mts.map +1 -1
  122. package/internal/utils/values.d.ts.map +1 -1
  123. package/internal/utils/values.js +5 -5
  124. package/internal/utils/values.js.map +1 -1
  125. package/internal/utils/values.mjs.map +1 -1
  126. package/internal/utils.js +7 -20
  127. package/internal/utils.js.map +1 -1
  128. package/package.json +8 -6
  129. package/resource.js +2 -15
  130. package/resource.js.map +1 -1
  131. package/resources/api-keys.d.mts +28 -0
  132. package/resources/api-keys.d.mts.map +1 -1
  133. package/resources/api-keys.d.ts +28 -0
  134. package/resources/api-keys.d.ts.map +1 -1
  135. package/resources/api-keys.js +28 -0
  136. package/resources/api-keys.js.map +1 -1
  137. package/resources/api-keys.mjs +28 -0
  138. package/resources/api-keys.mjs.map +1 -1
  139. package/resources/compute/compute.js +3 -25
  140. package/resources/compute/compute.js.map +1 -1
  141. package/resources/compute/vms/os-images.d.mts +5 -0
  142. package/resources/compute/vms/os-images.d.mts.map +1 -1
  143. package/resources/compute/vms/os-images.d.ts +5 -0
  144. package/resources/compute/vms/os-images.d.ts.map +1 -1
  145. package/resources/compute/vms/os-images.js +5 -0
  146. package/resources/compute/vms/os-images.js.map +1 -1
  147. package/resources/compute/vms/os-images.mjs +5 -0
  148. package/resources/compute/vms/os-images.mjs.map +1 -1
  149. package/resources/compute/vms/vms.d.mts +38 -0
  150. package/resources/compute/vms/vms.d.mts.map +1 -1
  151. package/resources/compute/vms/vms.d.ts +38 -0
  152. package/resources/compute/vms/vms.d.ts.map +1 -1
  153. package/resources/compute/vms/vms.js +41 -25
  154. package/resources/compute/vms/vms.js.map +1 -1
  155. package/resources/compute/vms/vms.mjs +38 -0
  156. package/resources/compute/vms/vms.mjs.map +1 -1
  157. package/resources/compute/vms/volumes.d.mts +7 -0
  158. package/resources/compute/vms/volumes.d.mts.map +1 -1
  159. package/resources/compute/vms/volumes.d.ts +7 -0
  160. package/resources/compute/vms/volumes.d.ts.map +1 -1
  161. package/resources/compute/vms/volumes.js +7 -0
  162. package/resources/compute/vms/volumes.js.map +1 -1
  163. package/resources/compute/vms/volumes.mjs +7 -0
  164. package/resources/compute/vms/volumes.mjs.map +1 -1
  165. package/resources/compute/vms.js +2 -15
  166. package/resources/compute/vms.js.map +1 -1
  167. package/resources/compute/volumes.d.mts +35 -0
  168. package/resources/compute/volumes.d.mts.map +1 -1
  169. package/resources/compute/volumes.d.ts +35 -0
  170. package/resources/compute/volumes.d.ts.map +1 -1
  171. package/resources/compute/volumes.js +35 -0
  172. package/resources/compute/volumes.js.map +1 -1
  173. package/resources/compute/volumes.mjs +35 -0
  174. package/resources/compute/volumes.mjs.map +1 -1
  175. package/resources/compute.js +2 -15
  176. package/resources/compute.js.map +1 -1
  177. package/resources/index.js +2 -15
  178. package/resources/index.js.map +1 -1
  179. package/resources/networking/firewall-rules.d.mts +45 -0
  180. package/resources/networking/firewall-rules.d.mts.map +1 -1
  181. package/resources/networking/firewall-rules.d.ts +45 -0
  182. package/resources/networking/firewall-rules.d.ts.map +1 -1
  183. package/resources/networking/firewall-rules.js +45 -0
  184. package/resources/networking/firewall-rules.js.map +1 -1
  185. package/resources/networking/firewall-rules.mjs +45 -0
  186. package/resources/networking/firewall-rules.mjs.map +1 -1
  187. package/resources/networking/networking.js +3 -25
  188. package/resources/networking/networking.js.map +1 -1
  189. package/resources/networking/vpcs.d.mts +33 -0
  190. package/resources/networking/vpcs.d.mts.map +1 -1
  191. package/resources/networking/vpcs.d.ts +33 -0
  192. package/resources/networking/vpcs.d.ts.map +1 -1
  193. package/resources/networking/vpcs.js +33 -0
  194. package/resources/networking/vpcs.js.map +1 -1
  195. package/resources/networking/vpcs.mjs +33 -0
  196. package/resources/networking/vpcs.mjs.map +1 -1
  197. package/resources/networking.js +2 -15
  198. package/resources/networking.js.map +1 -1
  199. package/resources.js +2 -15
  200. package/resources.js.map +1 -1
  201. package/src/client.ts +17 -0
  202. package/src/internal/to-file.ts +4 -2
  203. package/src/internal/uploads.ts +16 -4
  204. package/src/internal/utils/uuid.ts +1 -3
  205. package/src/resources/api-keys.ts +28 -0
  206. package/src/resources/compute/vms/os-images.ts +5 -0
  207. package/src/resources/compute/vms/vms.ts +38 -0
  208. package/src/resources/compute/vms/volumes.ts +7 -0
  209. package/src/resources/compute/volumes.ts +35 -0
  210. package/src/resources/networking/firewall-rules.ts +45 -0
  211. package/src/resources/networking/vpcs.ts +33 -0
  212. package/src/version.ts +1 -1
  213. package/uploads.js +2 -15
  214. package/uploads.js.map +1 -1
  215. package/version.d.mts +1 -1
  216. package/version.d.ts +1 -1
  217. package/version.js +1 -1
  218. package/version.mjs +1 -1
  219. package/internal/shims/crypto.d.mts +0 -13
  220. package/internal/shims/crypto.d.mts.map +0 -1
  221. package/internal/shims/crypto.d.ts +0 -13
  222. package/internal/shims/crypto.d.ts.map +0 -1
  223. package/internal/shims/crypto.js +0 -13
  224. package/internal/shims/crypto.js.map +0 -1
  225. package/internal/shims/crypto.mjs +0 -9
  226. package/internal/shims/crypto.mjs.map +0 -1
  227. package/internal/shims/file.d.mts +0 -23
  228. package/internal/shims/file.d.mts.map +0 -1
  229. package/internal/shims/file.d.ts +0 -23
  230. package/internal/shims/file.d.ts.map +0 -1
  231. package/internal/shims/file.js +0 -16
  232. package/internal/shims/file.js.map +0 -1
  233. package/internal/shims/file.mjs +0 -12
  234. package/internal/shims/file.mjs.map +0 -1
  235. package/internal/shims/getBuiltinModule.d.mts +0 -11
  236. package/internal/shims/getBuiltinModule.d.mts.map +0 -1
  237. package/internal/shims/getBuiltinModule.d.ts +0 -11
  238. package/internal/shims/getBuiltinModule.d.ts.map +0 -1
  239. package/internal/shims/getBuiltinModule.js +0 -71
  240. package/internal/shims/getBuiltinModule.js.map +0 -1
  241. package/internal/shims/getBuiltinModule.mjs +0 -67
  242. package/internal/shims/getBuiltinModule.mjs.map +0 -1
  243. package/internal/shims/nullGetBuiltinModule.d.mts +0 -2
  244. package/internal/shims/nullGetBuiltinModule.d.mts.map +0 -1
  245. package/internal/shims/nullGetBuiltinModule.d.ts +0 -2
  246. package/internal/shims/nullGetBuiltinModule.d.ts.map +0 -1
  247. package/internal/shims/nullGetBuiltinModule.js +0 -5
  248. package/internal/shims/nullGetBuiltinModule.js.map +0 -1
  249. package/internal/shims/nullGetBuiltinModule.mjs +0 -2
  250. package/internal/shims/nullGetBuiltinModule.mjs.map +0 -1
  251. package/src/internal/shims/crypto.ts +0 -18
  252. package/src/internal/shims/file.ts +0 -32
  253. package/src/internal/shims/getBuiltinModule.ts +0 -66
  254. package/src/internal/shims/nullGetBuiltinModule.ts +0 -1
@@ -17,6 +17,24 @@ export class VMs extends APIResource {
17
17
 
18
18
  /**
19
19
  * Create a VM
20
+ *
21
+ * @example
22
+ * ```ts
23
+ * const operation = await client.compute.vms.create({
24
+ * boot_volume: { size: 100 },
25
+ * cpu_config: { vcpu: 2 },
26
+ * memory_config: { size: 2 },
27
+ * name: 'my-vm',
28
+ * os_image_name: 'ubuntu-noble-2025-04-03',
29
+ * public_ip_enabled: true,
30
+ * region: 'us-wdc-1',
31
+ * ssh_key: {
32
+ * public_key:
33
+ * 'ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAAAgQDJiJabIUkXw7VrQG+yBohvhEsyoKEYvejZc4RFzV5maybqQei1punVsoe4r6gJttMM1Gr3cNr3OfepikCQAhAchw5ww94ZWqDsDYIqMrlDFbqhGTXDNzFAjeVIKptCOlz9k+7aM69YtLXJ6gFUCq1fbK9PjY+AK28UpMfKYUcyHQ== noname',
34
+ * },
35
+ * subnet_id: '123e4567-e89b-12d3-a456-426614174000',
36
+ * });
37
+ * ```
20
38
  */
21
39
  create(body: VMCreateParams, options?: RequestOptions): APIPromise<OperationsAPI.Operation> {
22
40
  return this._client.post('/v1/compute/vms', { body, ...options });
@@ -24,6 +42,11 @@ export class VMs extends APIResource {
24
42
 
25
43
  /**
26
44
  * Update a VM
45
+ *
46
+ * @example
47
+ * ```ts
48
+ * const operation = await client.compute.vms.update('vm_id');
49
+ * ```
27
50
  */
28
51
  update(vmID: string, body: VMUpdateParams, options?: RequestOptions): APIPromise<OperationsAPI.Operation> {
29
52
  return this._client.patch(path`/v1/compute/vms/${vmID}`, { body, ...options });
@@ -31,6 +54,11 @@ export class VMs extends APIResource {
31
54
 
32
55
  /**
33
56
  * List all VMs
57
+ *
58
+ * @example
59
+ * ```ts
60
+ * const vmList = await client.compute.vms.list();
61
+ * ```
34
62
  */
35
63
  list(options?: RequestOptions): APIPromise<VMList> {
36
64
  return this._client.get('/v1/compute/vms', options);
@@ -38,6 +66,11 @@ export class VMs extends APIResource {
38
66
 
39
67
  /**
40
68
  * Delete a VM
69
+ *
70
+ * @example
71
+ * ```ts
72
+ * const operation = await client.compute.vms.delete('vm_id');
73
+ * ```
41
74
  */
42
75
  delete(vmID: string, options?: RequestOptions): APIPromise<OperationsAPI.Operation> {
43
76
  return this._client.delete(path`/v1/compute/vms/${vmID}`, options);
@@ -45,6 +78,11 @@ export class VMs extends APIResource {
45
78
 
46
79
  /**
47
80
  * Get details about a VM
81
+ *
82
+ * @example
83
+ * ```ts
84
+ * const vm = await client.compute.vms.get('vm_id');
85
+ * ```
48
86
  */
49
87
  get(vmID: string, options?: RequestOptions): APIPromise<VM> {
50
88
  return this._client.get(path`/v1/compute/vms/${vmID}`, options);
@@ -9,6 +9,13 @@ import { path } from '../../../internal/utils/path';
9
9
  export class Volumes extends APIResource {
10
10
  /**
11
11
  * List VM's Volumes
12
+ *
13
+ * @example
14
+ * ```ts
15
+ * const volumeList = await client.compute.vms.volumes.list(
16
+ * 'vm_id',
17
+ * );
18
+ * ```
12
19
  */
13
20
  list(vmID: string, options?: RequestOptions): APIPromise<VolumesAPI.VolumeList> {
14
21
  return this._client.get(path`/v1/compute/vms/${vmID}/volumes`, options);
@@ -10,6 +10,15 @@ import { path } from '../../internal/utils/path';
10
10
  export class Volumes extends APIResource {
11
11
  /**
12
12
  * Create a Volume. Only data volumes can be created.
13
+ *
14
+ * @example
15
+ * ```ts
16
+ * const operation = await client.compute.volumes.create({
17
+ * name: 'my-data-volume',
18
+ * size: 100,
19
+ * vm_id: 'vm_id',
20
+ * });
21
+ * ```
13
22
  */
14
23
  create(body: VolumeCreateParams, options?: RequestOptions): APIPromise<OperationsAPI.Operation> {
15
24
  return this._client.post('/v1/compute/volumes', { body, ...options });
@@ -17,6 +26,13 @@ export class Volumes extends APIResource {
17
26
 
18
27
  /**
19
28
  * Update a Volume. Boot or data volumes can be updated.
29
+ *
30
+ * @example
31
+ * ```ts
32
+ * const operation = await client.compute.volumes.update(
33
+ * 'volume_id',
34
+ * );
35
+ * ```
20
36
  */
21
37
  update(
22
38
  volumeID: string,
@@ -28,6 +44,11 @@ export class Volumes extends APIResource {
28
44
 
29
45
  /**
30
46
  * List all volumes
47
+ *
48
+ * @example
49
+ * ```ts
50
+ * const volumeList = await client.compute.volumes.list();
51
+ * ```
31
52
  */
32
53
  list(options?: RequestOptions): APIPromise<VolumeList> {
33
54
  return this._client.get('/v1/compute/volumes', options);
@@ -35,6 +56,13 @@ export class Volumes extends APIResource {
35
56
 
36
57
  /**
37
58
  * Delete a Volume. Boot or data volumes can be deleted.
59
+ *
60
+ * @example
61
+ * ```ts
62
+ * const operation = await client.compute.volumes.delete(
63
+ * 'volume_id',
64
+ * );
65
+ * ```
38
66
  */
39
67
  delete(volumeID: string, options?: RequestOptions): APIPromise<OperationsAPI.Operation> {
40
68
  return this._client.delete(path`/v1/compute/volumes/${volumeID}`, options);
@@ -42,6 +70,13 @@ export class Volumes extends APIResource {
42
70
 
43
71
  /**
44
72
  * Get a Volume.
73
+ *
74
+ * @example
75
+ * ```ts
76
+ * const volume = await client.compute.volumes.get(
77
+ * 'volume_id',
78
+ * );
79
+ * ```
45
80
  */
46
81
  get(volumeID: string, options?: RequestOptions): APIPromise<Volume> {
47
82
  return this._client.get(path`/v1/compute/volumes/${volumeID}`, options);
@@ -10,6 +10,18 @@ import { path } from '../../internal/utils/path';
10
10
  export class FirewallRules extends APIResource {
11
11
  /**
12
12
  * Create a firewall rule
13
+ *
14
+ * @example
15
+ * ```ts
16
+ * const operation =
17
+ * await client.networking.firewallRules.create('vpc_id', {
18
+ * destination_address: '0.0.0.0/0',
19
+ * destination_ports: ['22', '80', '443'],
20
+ * name: 'my-firewall-rule',
21
+ * protocol: 'tcp',
22
+ * source_address: '0.0.0.0/0',
23
+ * });
24
+ * ```
13
25
  */
14
26
  create(
15
27
  vpcID: string,
@@ -21,6 +33,15 @@ export class FirewallRules extends APIResource {
21
33
 
22
34
  /**
23
35
  * Update a firewall rule
36
+ *
37
+ * @example
38
+ * ```ts
39
+ * const operation =
40
+ * await client.networking.firewallRules.update(
41
+ * 'firewall_rule_id',
42
+ * { vpc_id: 'vpc_id' },
43
+ * );
44
+ * ```
24
45
  */
25
46
  update(
26
47
  firewallRuleID: string,
@@ -36,6 +57,12 @@ export class FirewallRules extends APIResource {
36
57
 
37
58
  /**
38
59
  * List all firewall rules
60
+ *
61
+ * @example
62
+ * ```ts
63
+ * const firewallRuleList =
64
+ * await client.networking.firewallRules.list('vpc_id');
65
+ * ```
39
66
  */
40
67
  list(vpcID: string, options?: RequestOptions): APIPromise<FirewallRuleList> {
41
68
  return this._client.get(path`/v1/networking/vpcs/${vpcID}/firewall_rules`, options);
@@ -43,6 +70,15 @@ export class FirewallRules extends APIResource {
43
70
 
44
71
  /**
45
72
  * Delete a firewall rule
73
+ *
74
+ * @example
75
+ * ```ts
76
+ * const operation =
77
+ * await client.networking.firewallRules.delete(
78
+ * 'firewall_rule_id',
79
+ * { vpc_id: 'vpc_id' },
80
+ * );
81
+ * ```
46
82
  */
47
83
  delete(
48
84
  firewallRuleID: string,
@@ -55,6 +91,15 @@ export class FirewallRules extends APIResource {
55
91
 
56
92
  /**
57
93
  * Get details about a firewall rule
94
+ *
95
+ * @example
96
+ * ```ts
97
+ * const firewallRule =
98
+ * await client.networking.firewallRules.get(
99
+ * 'firewall_rule_id',
100
+ * { vpc_id: 'vpc_id' },
101
+ * );
102
+ * ```
58
103
  */
59
104
  get(
60
105
  firewallRuleID: string,
@@ -10,6 +10,15 @@ import { path } from '../../internal/utils/path';
10
10
  export class VPCs extends APIResource {
11
11
  /**
12
12
  * Create a VPC
13
+ *
14
+ * @example
15
+ * ```ts
16
+ * const operation = await client.networking.vpcs.create({
17
+ * name: 'my-vpc',
18
+ * region: 'us-wdc-1',
19
+ * subnet_name: 'my-subnet',
20
+ * });
21
+ * ```
13
22
  */
14
23
  create(body: VPCCreateParams, options?: RequestOptions): APIPromise<OperationsAPI.Operation> {
15
24
  return this._client.post('/v1/networking/vpcs', { body, ...options });
@@ -17,6 +26,13 @@ export class VPCs extends APIResource {
17
26
 
18
27
  /**
19
28
  * Update a VPC
29
+ *
30
+ * @example
31
+ * ```ts
32
+ * const operation = await client.networking.vpcs.update(
33
+ * 'vpc_id',
34
+ * );
35
+ * ```
20
36
  */
21
37
  update(
22
38
  vpcID: string,
@@ -28,6 +44,11 @@ export class VPCs extends APIResource {
28
44
 
29
45
  /**
30
46
  * List all VPCs
47
+ *
48
+ * @example
49
+ * ```ts
50
+ * const vpcList = await client.networking.vpcs.list();
51
+ * ```
31
52
  */
32
53
  list(options?: RequestOptions): APIPromise<VPCList> {
33
54
  return this._client.get('/v1/networking/vpcs', options);
@@ -35,6 +56,13 @@ export class VPCs extends APIResource {
35
56
 
36
57
  /**
37
58
  * Delete a VPC
59
+ *
60
+ * @example
61
+ * ```ts
62
+ * const operation = await client.networking.vpcs.delete(
63
+ * 'vpc_id',
64
+ * );
65
+ * ```
38
66
  */
39
67
  delete(vpcID: string, options?: RequestOptions): APIPromise<OperationsAPI.Operation> {
40
68
  return this._client.delete(path`/v1/networking/vpcs/${vpcID}`, options);
@@ -42,6 +70,11 @@ export class VPCs extends APIResource {
42
70
 
43
71
  /**
44
72
  * Get details about a VPC
73
+ *
74
+ * @example
75
+ * ```ts
76
+ * const vpc = await client.networking.vpcs.get('vpc_id');
77
+ * ```
45
78
  */
46
79
  get(vpcID: string, options?: RequestOptions): APIPromise<VPC> {
47
80
  return this._client.get(path`/v1/networking/vpcs/${vpcID}`, options);
package/src/version.ts CHANGED
@@ -1 +1 @@
1
- export const VERSION = '1.0.4'; // x-release-please-version
1
+ export const VERSION = '1.1.0'; // x-release-please-version
package/uploads.js CHANGED
@@ -1,19 +1,6 @@
1
1
  "use strict";
2
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
- if (k2 === undefined) k2 = k;
4
- var desc = Object.getOwnPropertyDescriptor(m, k);
5
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
- desc = { enumerable: true, get: function() { return m[k]; } };
7
- }
8
- Object.defineProperty(o, k2, desc);
9
- }) : (function(o, m, k, k2) {
10
- if (k2 === undefined) k2 = k;
11
- o[k2] = m[k];
12
- }));
13
- var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
- for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
- };
16
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
+ const tslib_1 = require("./internal/tslib.js");
17
4
  /** @deprecated Import from ./core/uploads instead */
18
- __exportStar(require("./core/uploads.js"), exports);
5
+ tslib_1.__exportStar(require("./core/uploads.js"), exports);
19
6
  //# sourceMappingURL=uploads.js.map
package/uploads.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"uploads.js","sourceRoot":"","sources":["src/uploads.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,qDAAqD;AACrD,oDAA+B"}
1
+ {"version":3,"file":"uploads.js","sourceRoot":"","sources":["src/uploads.ts"],"names":[],"mappings":";;;AAAA,qDAAqD;AACrD,4DAA+B"}
package/version.d.mts CHANGED
@@ -1,2 +1,2 @@
1
- export declare const VERSION = "1.0.4";
1
+ export declare const VERSION = "1.1.0";
2
2
  //# sourceMappingURL=version.d.mts.map
package/version.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- export declare const VERSION = "1.0.4";
1
+ export declare const VERSION = "1.1.0";
2
2
  //# sourceMappingURL=version.d.ts.map
package/version.js CHANGED
@@ -1,5 +1,5 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.VERSION = void 0;
4
- exports.VERSION = '1.0.4'; // x-release-please-version
4
+ exports.VERSION = '1.1.0'; // x-release-please-version
5
5
  //# sourceMappingURL=version.js.map
package/version.mjs CHANGED
@@ -1,2 +1,2 @@
1
- export const VERSION = '1.0.4'; // x-release-please-version
1
+ export const VERSION = '1.1.0'; // x-release-please-version
2
2
  //# sourceMappingURL=version.mjs.map
@@ -1,13 +0,0 @@
1
- type Crypto = {
2
- /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Crypto/getRandomValues) */
3
- getRandomValues<T extends ArrayBufferView | null>(array: T): T;
4
- /**
5
- * Available only in secure contexts.
6
- *
7
- * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Crypto/randomUUID)
8
- */
9
- randomUUID?: () => string;
10
- };
11
- export declare let getCrypto: () => Crypto | undefined;
12
- export {};
13
- //# sourceMappingURL=crypto.d.mts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"crypto.d.mts","sourceRoot":"","sources":["../../src/internal/shims/crypto.ts"],"names":[],"mappings":"AAEA,KAAK,MAAM,GAAG;IACZ,yFAAyF;IACzF,eAAe,CAAC,CAAC,SAAS,eAAe,GAAG,IAAI,EAAE,KAAK,EAAE,CAAC,GAAG,CAAC,CAAC;IAC/D;;;;OAIG;IACH,UAAU,CAAC,EAAE,MAAM,MAAM,CAAC;CAC3B,CAAC;AACF,eAAO,IAAI,SAAS,EAAE,MAAM,MAAM,GAAG,SAKpC,CAAC"}
@@ -1,13 +0,0 @@
1
- type Crypto = {
2
- /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Crypto/getRandomValues) */
3
- getRandomValues<T extends ArrayBufferView | null>(array: T): T;
4
- /**
5
- * Available only in secure contexts.
6
- *
7
- * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Crypto/randomUUID)
8
- */
9
- randomUUID?: () => string;
10
- };
11
- export declare let getCrypto: () => Crypto | undefined;
12
- export {};
13
- //# sourceMappingURL=crypto.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"crypto.d.ts","sourceRoot":"","sources":["../../src/internal/shims/crypto.ts"],"names":[],"mappings":"AAEA,KAAK,MAAM,GAAG;IACZ,yFAAyF;IACzF,eAAe,CAAC,CAAC,SAAS,eAAe,GAAG,IAAI,EAAE,KAAK,EAAE,CAAC,GAAG,CAAC,CAAC;IAC/D;;;;OAIG;IACH,UAAU,CAAC,EAAE,MAAM,MAAM,CAAC;CAC3B,CAAC;AACF,eAAO,IAAI,SAAS,EAAE,MAAM,MAAM,GAAG,SAKpC,CAAC"}
@@ -1,13 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.getCrypto = void 0;
4
- const getBuiltinModule_1 = require("./getBuiltinModule.js");
5
- let getCrypto = function lazyGetCrypto() {
6
- if (exports.getCrypto !== lazyGetCrypto)
7
- return (0, exports.getCrypto)();
8
- const crypto = globalThis.crypto || (0, getBuiltinModule_1.getBuiltinModule)?.('node:crypto')?.webcrypto;
9
- exports.getCrypto = () => crypto;
10
- return crypto;
11
- };
12
- exports.getCrypto = getCrypto;
13
- //# sourceMappingURL=crypto.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"crypto.js","sourceRoot":"","sources":["../../src/internal/shims/crypto.ts"],"names":[],"mappings":";;;AAAA,4DAAsD;AAY/C,IAAI,SAAS,GAA6B,SAAS,aAAa;IACrE,IAAI,iBAAS,KAAK,aAAa;QAAE,OAAO,IAAA,iBAAS,GAAE,CAAC;IACpD,MAAM,MAAM,GAAY,UAAkB,CAAC,MAAM,IAAK,IAAA,mCAAgB,CAAA,EAAE,CAAC,aAAa,CAAS,EAAE,SAAS,CAAC;IAC3G,iBAAS,GAAG,GAAG,EAAE,CAAC,MAAM,CAAC;IACzB,OAAO,MAAM,CAAC;AAChB,CAAC,CAAC;AALS,QAAA,SAAS,aAKlB"}
@@ -1,9 +0,0 @@
1
- import { getBuiltinModule } from "./getBuiltinModule.mjs";
2
- export let getCrypto = function lazyGetCrypto() {
3
- if (getCrypto !== lazyGetCrypto)
4
- return getCrypto();
5
- const crypto = globalThis.crypto || getBuiltinModule?.('node:crypto')?.webcrypto;
6
- getCrypto = () => crypto;
7
- return crypto;
8
- };
9
- //# sourceMappingURL=crypto.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"crypto.mjs","sourceRoot":"","sources":["../../src/internal/shims/crypto.ts"],"names":[],"mappings":"OAAO,EAAE,gBAAgB,EAAE;AAY3B,MAAM,CAAC,IAAI,SAAS,GAA6B,SAAS,aAAa;IACrE,IAAI,SAAS,KAAK,aAAa;QAAE,OAAO,SAAS,EAAE,CAAC;IACpD,MAAM,MAAM,GAAY,UAAkB,CAAC,MAAM,IAAK,gBAAgB,EAAE,CAAC,aAAa,CAAS,EAAE,SAAS,CAAC;IAC3G,SAAS,GAAG,GAAG,EAAE,CAAC,MAAM,CAAC;IACzB,OAAO,MAAM,CAAC;AAChB,CAAC,CAAC"}
@@ -1,23 +0,0 @@
1
-
2
- export declare let getFile: () => FileConstructor;
3
- type FileConstructor = typeof globalThis extends {
4
- File: infer fileConstructor;
5
- } ? fileConstructor : typeof FallbackFile;
6
- export type File = InstanceType<FileConstructor>;
7
- type FallbackBlobSource = ConstructorParameters<typeof Blob>[0] extends infer T ? T : never;
8
- /**
9
- * A [`File`](https://developer.mozilla.org/en-US/docs/Web/API/File) provides information about files.
10
- */
11
- declare class FallbackFile extends Blob {
12
- constructor(sources: FallbackBlobSource, fileName: string, options?: any);
13
- /**
14
- * The name of the `File`.
15
- */
16
- readonly name: string;
17
- /**
18
- * The last modified date of the `File`.
19
- */
20
- readonly lastModified: number;
21
- }
22
- export {};
23
- //# sourceMappingURL=file.d.mts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"file.d.mts","sourceRoot":"","sources":["../../src/internal/shims/file.ts"],"names":[],"mappings":";AAEA,eAAO,IAAI,OAAO,QAA2B,eAO5C,CAAC;AAEF,KAAK,eAAe,GAClB,OAAO,UAAU,SAAS;IAAE,IAAI,EAAE,MAAM,eAAe,CAAA;CAAE,GAAG,eAAe,GAAG,OAAO,YAAY,CAAC;AACpG,MAAM,MAAM,IAAI,GAAG,YAAY,CAAC,eAAe,CAAC,CAAC;AAIjD,KAAK,kBAAkB,GAAG,qBAAqB,CAAC,OAAO,IAAI,CAAC,CAAC,CAAC,CAAC,SAAS,MAAM,CAAC,GAAG,CAAC,GAAG,KAAK,CAAC;AAC5F;;GAEG;AACH,OAAO,OAAO,YAAa,SAAQ,IAAI;gBACzB,OAAO,EAAE,kBAAkB,EAAE,QAAQ,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,GAAG;IACxE;;OAEG;IACH,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB;;OAEG;IACH,QAAQ,CAAC,YAAY,EAAE,MAAM,CAAC;CAC/B"}
@@ -1,23 +0,0 @@
1
-
2
- export declare let getFile: () => FileConstructor;
3
- type FileConstructor = typeof globalThis extends {
4
- File: infer fileConstructor;
5
- } ? fileConstructor : typeof FallbackFile;
6
- export type File = InstanceType<FileConstructor>;
7
- type FallbackBlobSource = ConstructorParameters<typeof Blob>[0] extends infer T ? T : never;
8
- /**
9
- * A [`File`](https://developer.mozilla.org/en-US/docs/Web/API/File) provides information about files.
10
- */
11
- declare class FallbackFile extends Blob {
12
- constructor(sources: FallbackBlobSource, fileName: string, options?: any);
13
- /**
14
- * The name of the `File`.
15
- */
16
- readonly name: string;
17
- /**
18
- * The last modified date of the `File`.
19
- */
20
- readonly lastModified: number;
21
- }
22
- export {};
23
- //# sourceMappingURL=file.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"file.d.ts","sourceRoot":"","sources":["../../src/internal/shims/file.ts"],"names":[],"mappings":";AAEA,eAAO,IAAI,OAAO,QAA2B,eAO5C,CAAC;AAEF,KAAK,eAAe,GAClB,OAAO,UAAU,SAAS;IAAE,IAAI,EAAE,MAAM,eAAe,CAAA;CAAE,GAAG,eAAe,GAAG,OAAO,YAAY,CAAC;AACpG,MAAM,MAAM,IAAI,GAAG,YAAY,CAAC,eAAe,CAAC,CAAC;AAIjD,KAAK,kBAAkB,GAAG,qBAAqB,CAAC,OAAO,IAAI,CAAC,CAAC,CAAC,CAAC,SAAS,MAAM,CAAC,GAAG,CAAC,GAAG,KAAK,CAAC;AAC5F;;GAEG;AACH,OAAO,OAAO,YAAa,SAAQ,IAAI;gBACzB,OAAO,EAAE,kBAAkB,EAAE,QAAQ,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,GAAG;IACxE;;OAEG;IACH,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB;;OAEG;IACH,QAAQ,CAAC,YAAY,EAAE,MAAM,CAAC;CAC/B"}
@@ -1,16 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.getFile = void 0;
4
- const getBuiltinModule_1 = require("./getBuiltinModule.js");
5
- let getFile = function lazyGetFile() {
6
- if (exports.getFile !== lazyGetFile)
7
- return (0, exports.getFile)();
8
- // We can drop getBuiltinModule once we no longer support Node < 20.0.0
9
- const File = globalThis.File ?? (0, getBuiltinModule_1.getBuiltinModule)?.('node:buffer')?.File;
10
- if (!File)
11
- throw new Error('`File` is not defined as a global, which is required for file uploads.');
12
- exports.getFile = () => File;
13
- return File;
14
- };
15
- exports.getFile = getFile;
16
- //# sourceMappingURL=file.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"file.js","sourceRoot":"","sources":["../../src/internal/shims/file.ts"],"names":[],"mappings":";;;AAAA,4DAAsD;AAE/C,IAAI,OAAO,GAAG,SAAS,WAAW;IACvC,IAAI,eAAO,KAAK,WAAW;QAAE,OAAO,IAAA,eAAO,GAAE,CAAC;IAC9C,uEAAuE;IACvE,MAAM,IAAI,GAAI,UAAkB,CAAC,IAAI,IAAK,IAAA,mCAAgB,CAAA,EAAE,CAAC,aAAa,CAAS,EAAE,IAAI,CAAC;IAC1F,IAAI,CAAC,IAAI;QAAE,MAAM,IAAI,KAAK,CAAC,wEAAwE,CAAC,CAAC;IACrG,eAAO,GAAG,GAAG,EAAE,CAAC,IAAI,CAAC;IACrB,OAAO,IAAI,CAAC;AACd,CAAC,CAAC;AAPS,QAAA,OAAO,WAOhB"}
@@ -1,12 +0,0 @@
1
- import { getBuiltinModule } from "./getBuiltinModule.mjs";
2
- export let getFile = function lazyGetFile() {
3
- if (getFile !== lazyGetFile)
4
- return getFile();
5
- // We can drop getBuiltinModule once we no longer support Node < 20.0.0
6
- const File = globalThis.File ?? getBuiltinModule?.('node:buffer')?.File;
7
- if (!File)
8
- throw new Error('`File` is not defined as a global, which is required for file uploads.');
9
- getFile = () => File;
10
- return File;
11
- };
12
- //# sourceMappingURL=file.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"file.mjs","sourceRoot":"","sources":["../../src/internal/shims/file.ts"],"names":[],"mappings":"OAAO,EAAE,gBAAgB,EAAE;AAE3B,MAAM,CAAC,IAAI,OAAO,GAAG,SAAS,WAAW;IACvC,IAAI,OAAO,KAAK,WAAW;QAAE,OAAO,OAAO,EAAE,CAAC;IAC9C,uEAAuE;IACvE,MAAM,IAAI,GAAI,UAAkB,CAAC,IAAI,IAAK,gBAAgB,EAAE,CAAC,aAAa,CAAS,EAAE,IAAI,CAAC;IAC1F,IAAI,CAAC,IAAI;QAAE,MAAM,IAAI,KAAK,CAAC,wEAAwE,CAAC,CAAC;IACrG,OAAO,GAAG,GAAG,EAAE,CAAC,IAAI,CAAC;IACrB,OAAO,IAAI,CAAC;AACd,CAAC,CAAC"}
@@ -1,11 +0,0 @@
1
- /**
2
- * Load a Node built-in module. ID may or may not be prefixed by `node:` and
3
- * will be normalized. If we used static imports then our bundle size would be bloated by
4
- * injected polyfills, and if we used dynamic require then in addition to bundlers logging warnings,
5
- * our code would not work when bundled to ESM and run in Node 18.
6
- * @param {string} id ID of the built-in to be loaded.
7
- * @returns {object|undefined} exports of the built-in. Undefined if the built-in
8
- * does not exist.
9
- */
10
- export declare let getBuiltinModule: null | ((id: string) => object | undefined);
11
- //# sourceMappingURL=getBuiltinModule.d.mts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"getBuiltinModule.d.mts","sourceRoot":"","sources":["../../src/internal/shims/getBuiltinModule.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AACH,eAAO,IAAI,gBAAgB,EAAE,IAAI,GAAG,CAAC,CAAC,EAAE,EAAE,MAAM,KAAK,MAAM,GAAG,SAAS,CAwDtE,CAAC"}
@@ -1,11 +0,0 @@
1
- /**
2
- * Load a Node built-in module. ID may or may not be prefixed by `node:` and
3
- * will be normalized. If we used static imports then our bundle size would be bloated by
4
- * injected polyfills, and if we used dynamic require then in addition to bundlers logging warnings,
5
- * our code would not work when bundled to ESM and run in Node 18.
6
- * @param {string} id ID of the built-in to be loaded.
7
- * @returns {object|undefined} exports of the built-in. Undefined if the built-in
8
- * does not exist.
9
- */
10
- export declare let getBuiltinModule: null | ((id: string) => object | undefined);
11
- //# sourceMappingURL=getBuiltinModule.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"getBuiltinModule.d.ts","sourceRoot":"","sources":["../../src/internal/shims/getBuiltinModule.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AACH,eAAO,IAAI,gBAAgB,EAAE,IAAI,GAAG,CAAC,CAAC,EAAE,EAAE,MAAM,KAAK,MAAM,GAAG,SAAS,CAwDtE,CAAC"}
@@ -1,71 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.getBuiltinModule = void 0;
4
- /**
5
- * Load a Node built-in module. ID may or may not be prefixed by `node:` and
6
- * will be normalized. If we used static imports then our bundle size would be bloated by
7
- * injected polyfills, and if we used dynamic require then in addition to bundlers logging warnings,
8
- * our code would not work when bundled to ESM and run in Node 18.
9
- * @param {string} id ID of the built-in to be loaded.
10
- * @returns {object|undefined} exports of the built-in. Undefined if the built-in
11
- * does not exist.
12
- */
13
- let getBuiltinModule = function getBuiltinModuleLazy(id) {
14
- try {
15
- if (exports.getBuiltinModule !== getBuiltinModuleLazy)
16
- return exports.getBuiltinModule(id);
17
- if (process.getBuiltinModule) {
18
- exports.getBuiltinModule = process.getBuiltinModule;
19
- }
20
- else {
21
- /* Fallback implementation for Node 18 */
22
- function createFallbackGetBuiltinModule(BuiltinModule) {
23
- return function getBuiltinModule(id) {
24
- id = BuiltinModule.normalizeRequirableId(String(id));
25
- if (!BuiltinModule.canBeRequiredByUsers(id)) {
26
- return;
27
- }
28
- const mod = BuiltinModule.map.get(id);
29
- mod.compileForPublicLoader();
30
- return mod.exports;
31
- };
32
- }
33
- const magicKey = Math.random() + '';
34
- let module;
35
- let ObjectPrototype = Blob;
36
- for (let next; (next = Reflect.getPrototypeOf(ObjectPrototype)); ObjectPrototype = next)
37
- ;
38
- try {
39
- const kClone = Object.getOwnPropertySymbols(Blob.prototype).find((e) => e.description?.includes('clone'));
40
- Object.defineProperty(ObjectPrototype, magicKey, {
41
- get() {
42
- module = this;
43
- throw null;
44
- },
45
- configurable: true,
46
- });
47
- structuredClone(new (class extends Blob {
48
- [kClone]() {
49
- return {
50
- deserializeInfo: 'internal/bootstrap/realm:' + magicKey,
51
- };
52
- }
53
- })([]));
54
- }
55
- catch { }
56
- delete ObjectPrototype[magicKey];
57
- if (module) {
58
- exports.getBuiltinModule = createFallbackGetBuiltinModule(module.BuiltinModule);
59
- }
60
- else {
61
- exports.getBuiltinModule = () => undefined;
62
- }
63
- }
64
- return exports.getBuiltinModule(id);
65
- }
66
- catch {
67
- return undefined;
68
- }
69
- };
70
- exports.getBuiltinModule = getBuiltinModule;
71
- //# sourceMappingURL=getBuiltinModule.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"getBuiltinModule.js","sourceRoot":"","sources":["../../src/internal/shims/getBuiltinModule.ts"],"names":[],"mappings":";;;AAAA;;;;;;;;GAQG;AACI,IAAI,gBAAgB,GAAgD,SAAS,oBAAoB,CACtG,EAAU;IAEV,IAAI;QACF,IAAI,wBAAgB,KAAK,oBAAoB;YAAE,OAAO,wBAAiB,CAAC,EAAE,CAAC,CAAC;QAC5E,IAAK,OAAe,CAAC,gBAAgB,EAAE;YACrC,wBAAgB,GAAI,OAAe,CAAC,gBAAgB,CAAC;SACtD;aAAM;YACL,yCAAyC;YACzC,SAAS,8BAA8B,CAAC,aAAkB;gBACxD,OAAO,SAAS,gBAAgB,CAAC,EAAU;oBACzC,EAAE,GAAG,aAAa,CAAC,qBAAqB,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC,CAAC;oBACrD,IAAI,CAAC,aAAa,CAAC,oBAAoB,CAAC,EAAE,CAAC,EAAE;wBAC3C,OAAO;qBACR;oBACD,MAAM,GAAG,GAAG,aAAa,CAAC,GAAG,CAAC,GAAG,CAAC,EAAE,CAAC,CAAC;oBACtC,GAAG,CAAC,sBAAsB,EAAE,CAAC;oBAC7B,OAAO,GAAG,CAAC,OAAO,CAAC;gBACrB,CAAC,CAAC;YACJ,CAAC;YACD,MAAM,QAAQ,GAAG,IAAI,CAAC,MAAM,EAAE,GAAG,EAAE,CAAC;YACpC,IAAI,MAA0C,CAAC;YAC/C,IAAI,eAAe,GAAO,IAAI,CAAC;YAC/B,KAAK,IAAI,IAAI,EAAE,CAAC,IAAI,GAAG,OAAO,CAAC,cAAc,CAAC,eAAe,CAAC,CAAC,EAAE,eAAe,GAAG,IAAI;gBAAC,CAAC;YACzF,IAAI;gBACF,MAAM,MAAM,GAAG,MAAM,CAAC,qBAAqB,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC,IAAI,CAC9D,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,WAAW,EAAE,QAAQ,CAAC,OAAO,CAAC,CACvC,CAAC;gBACH,MAAM,CAAC,cAAc,CAAC,eAAe,EAAE,QAAQ,EAAE;oBAC/C,GAAG;wBACD,MAAM,GAAG,IAAI,CAAC;wBACd,MAAM,IAAI,CAAC;oBACb,CAAC;oBACD,YAAY,EAAE,IAAI;iBACnB,CAAC,CAAC;gBACH,eAAe,CACb,IAAI,CAAC,KAAM,SAAQ,IAAI;oBACrB,CAAC,MAAM,CAAC;wBACN,OAAO;4BACL,eAAe,EAAE,2BAA2B,GAAG,QAAQ;yBACxD,CAAC;oBACJ,CAAC;iBACF,CAAC,CAAC,EAAE,CAAC,CACP,CAAC;aACH;YAAC,MAAM,GAAE;YACV,OAAQ,eAAuB,CAAC,QAAQ,CAAC,CAAC;YAC1C,IAAI,MAAM,EAAE;gBACV,wBAAgB,GAAG,8BAA8B,CAAC,MAAM,CAAC,aAAa,CAAC,CAAC;aACzE;iBAAM;gBACL,wBAAgB,GAAG,GAAG,EAAE,CAAC,SAAS,CAAC;aACpC;SACF;QACD,OAAO,wBAAiB,CAAC,EAAE,CAAC,CAAC;KAC9B;IAAC,MAAM;QACN,OAAO,SAAS,CAAC;KAClB;AACH,CAAC,CAAC;AAxDS,QAAA,gBAAgB,oBAwDzB"}