@pidginhost/sdk 0.2.0 → 0.5.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (44) hide show
  1. package/.openapi-generator/FILES +10 -0
  2. package/.openapi-generator/VERSION +1 -1
  3. package/CHANGELOG.md +62 -0
  4. package/README.md +24 -215
  5. package/api.ts +11413 -26360
  6. package/dist/api.d.ts +799 -6912
  7. package/dist/api.js +10802 -25003
  8. package/dist/esm/api.d.ts +799 -6912
  9. package/dist/esm/api.js +11170 -25375
  10. package/dist/esm/pidginhost.d.ts +7 -1
  11. package/dist/esm/pidginhost.js +7 -1
  12. package/dist/pidginhost.d.ts +7 -1
  13. package/dist/pidginhost.js +6 -0
  14. package/docs/AccountApi.md +142 -1138
  15. package/docs/AuthApi.md +104 -0
  16. package/docs/BillingApi.md +134 -1073
  17. package/docs/CLISessionCreateResponse.md +26 -0
  18. package/docs/CLISessionPollResponse.md +26 -0
  19. package/docs/CLISessionPollResponseStatusEnum.md +15 -0
  20. package/docs/CloudApi.md +906 -4971
  21. package/docs/ClusterAdd.md +2 -0
  22. package/docs/ClusterDetail.md +8 -0
  23. package/docs/DedicatedApi.md +0 -272
  24. package/docs/DomainApi.md +144 -1164
  25. package/docs/EligibleVM.md +22 -0
  26. package/docs/EligibleVMsResponse.md +20 -0
  27. package/docs/FreednsApi.md +0 -324
  28. package/docs/HardwareGeneration.md +34 -0
  29. package/docs/HostingApi.md +0 -160
  30. package/docs/KubeVersionEnum.md +4 -4
  31. package/docs/KubernetesApi.md +565 -3562
  32. package/docs/PatchedClusterDetail.md +8 -0
  33. package/docs/PatchedResourcePool.md +2 -0
  34. package/docs/PatchedServerDetail.md +52 -0
  35. package/docs/ResourcePool.md +2 -0
  36. package/docs/ResourcePoolAdd.md +2 -0
  37. package/docs/SchemaApi.md +0 -55
  38. package/docs/Server.md +5 -3
  39. package/docs/ServerAdd.md +2 -0
  40. package/docs/ServerDetail.md +52 -0
  41. package/docs/SupportApi.md +0 -417
  42. package/docs/ToggleCloudVMAccessResponse.md +22 -0
  43. package/package.json +1 -1
  44. package/pidginhost.ts +13 -1
@@ -8,6 +8,7 @@ Name | Type | Description | Notes
8
8
  **id** | **number** | | [optional] [readonly] [default to undefined]
9
9
  **status** | [**StatusA57Enum**](StatusA57Enum.md) | | [optional] [readonly] [default to undefined]
10
10
  **name** | **string** | | [optional] [default to undefined]
11
+ **generation** | **string** | | [optional] [readonly] [default to undefined]
11
12
  **cluster_type** | **string** | | [optional] [readonly] [default to undefined]
12
13
  **kube_version** | **string** | | [optional] [readonly] [default to undefined]
13
14
  **price_per_month** | **string** | | [optional] [default to undefined]
@@ -20,6 +21,9 @@ Name | Type | Description | Notes
20
21
  **talos_version** | **string** | | [optional] [readonly] [default to undefined]
21
22
  **talos_upgrade_available** | **string** | | [optional] [readonly] [default to undefined]
22
23
  **talos_next_version** | **string** | | [optional] [readonly] [default to undefined]
24
+ **storage_quota_gb** | **string** | | [optional] [readonly] [default to undefined]
25
+ **last_pool_used_bytes** | **string** | | [optional] [readonly] [default to undefined]
26
+ **last_storage_sync_at** | **string** | | [optional] [readonly] [default to undefined]
23
27
 
24
28
  ## Example
25
29
 
@@ -30,6 +34,7 @@ const instance: PatchedClusterDetail = {
30
34
  id,
31
35
  status,
32
36
  name,
37
+ generation,
33
38
  cluster_type,
34
39
  kube_version,
35
40
  price_per_month,
@@ -42,6 +47,9 @@ const instance: PatchedClusterDetail = {
42
47
  talos_version,
43
48
  talos_upgrade_available,
44
49
  talos_next_version,
50
+ storage_quota_gb,
51
+ last_pool_used_bytes,
52
+ last_storage_sync_at,
45
53
  };
46
54
  ```
47
55
 
@@ -7,6 +7,7 @@ Name | Type | Description | Notes
7
7
  ------------ | ------------- | ------------- | -------------
8
8
  **id** | **number** | | [optional] [readonly] [default to undefined]
9
9
  **_package** | **string** | | [optional] [readonly] [default to undefined]
10
+ **generation** | **string** | | [optional] [readonly] [default to undefined]
10
11
  **size** | **string** | | [optional] [readonly] [default to undefined]
11
12
  **nodes** | [**Array<ResourcePoolNode>**](ResourcePoolNode.md) | | [optional] [readonly] [default to undefined]
12
13
  **new_size** | **number** | | [optional] [default to undefined]
@@ -19,6 +20,7 @@ import { PatchedResourcePool } from '@pidginhost/sdk';
19
20
  const instance: PatchedResourcePool = {
20
21
  id,
21
22
  _package,
23
+ generation,
22
24
  size,
23
25
  nodes,
24
26
  new_size,
@@ -0,0 +1,52 @@
1
+ # PatchedServerDetail
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **id** | **number** | | [optional] [readonly] [default to undefined]
9
+ **hostname** | **string** | | [optional] [readonly] [default to undefined]
10
+ **project** | **string** | | [optional] [default to undefined]
11
+ **image** | **string** | | [optional] [readonly] [default to undefined]
12
+ **_package** | **string** | | [optional] [readonly] [default to undefined]
13
+ **cpus** | **number** | | [optional] [readonly] [default to undefined]
14
+ **memory** | **number** | | [optional] [readonly] [default to undefined]
15
+ **disk_size** | **number** | | [optional] [readonly] [default to undefined]
16
+ **generation** | **string** | | [optional] [readonly] [default to undefined]
17
+ **machine** | **{ [key: string]: any; }** | | [optional] [readonly] [default to undefined]
18
+ **volumes** | [**Array<Volume>**](Volume.md) | | [optional] [readonly] [default to undefined]
19
+ **networks** | **{ [key: string]: any; }** | | [optional] [readonly] [default to undefined]
20
+ **password** | **string** | | [optional] [default to undefined]
21
+ **status** | [**StatusA57Enum**](StatusA57Enum.md) | | [optional] [readonly] [default to undefined]
22
+ **username** | **string** | | [optional] [readonly] [default to undefined]
23
+ **destroy_protection** | **boolean** | Prevents the server from being destroyed until disabled. | [optional] [readonly] [default to undefined]
24
+ **ha_enabled** | **boolean** | Enables Proxmox HA — automatic restart and migration on node failure. | [optional] [readonly] [default to undefined]
25
+
26
+ ## Example
27
+
28
+ ```typescript
29
+ import { PatchedServerDetail } from '@pidginhost/sdk';
30
+
31
+ const instance: PatchedServerDetail = {
32
+ id,
33
+ hostname,
34
+ project,
35
+ image,
36
+ _package,
37
+ cpus,
38
+ memory,
39
+ disk_size,
40
+ generation,
41
+ machine,
42
+ volumes,
43
+ networks,
44
+ password,
45
+ status,
46
+ username,
47
+ destroy_protection,
48
+ ha_enabled,
49
+ };
50
+ ```
51
+
52
+ [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
@@ -7,6 +7,7 @@ Name | Type | Description | Notes
7
7
  ------------ | ------------- | ------------- | -------------
8
8
  **id** | **number** | | [readonly] [default to undefined]
9
9
  **_package** | **string** | | [readonly] [default to undefined]
10
+ **generation** | **string** | | [readonly] [default to undefined]
10
11
  **size** | **string** | | [readonly] [default to undefined]
11
12
  **nodes** | [**Array<ResourcePoolNode>**](ResourcePoolNode.md) | | [readonly] [default to undefined]
12
13
  **new_size** | **number** | | [optional] [default to undefined]
@@ -19,6 +20,7 @@ import { ResourcePool } from '@pidginhost/sdk';
19
20
  const instance: ResourcePool = {
20
21
  id,
21
22
  _package,
23
+ generation,
22
24
  size,
23
25
  nodes,
24
26
  new_size,
@@ -7,6 +7,7 @@ Name | Type | Description | Notes
7
7
  ------------ | ------------- | ------------- | -------------
8
8
  **resource_pool_package** | **string** | ID or slug | [default to undefined]
9
9
  **resource_pool_size** | **number** | | [default to undefined]
10
+ **generation** | **string** | | [optional] [default to undefined]
10
11
 
11
12
  ## Example
12
13
 
@@ -16,6 +17,7 @@ import { ResourcePoolAdd } from '@pidginhost/sdk';
16
17
  const instance: ResourcePoolAdd = {
17
18
  resource_pool_package,
18
19
  resource_pool_size,
20
+ generation,
19
21
  };
20
22
  ```
21
23
 
package/docs/SchemaApi.md CHANGED
@@ -5,7 +5,6 @@ All URIs are relative to *https://www.pidginhost.com*
5
5
  |Method | HTTP request | Description|
6
6
  |------------- | ------------- | -------------|
7
7
  |[**schemaRetrieve**](#schemaretrieve) | **GET** /api/schema/ | |
8
- |[**schemaRetrieve2**](#schemaretrieve2) | **GET** /api/v1/schema/ | |
9
8
 
10
9
  # **schemaRetrieve**
11
10
  > { [key: string]: any; } schemaRetrieve()
@@ -61,57 +60,3 @@ const { status, data } = await apiInstance.schemaRetrieve(
61
60
 
62
61
  [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
63
62
 
64
- # **schemaRetrieve2**
65
- > { [key: string]: any; } schemaRetrieve2()
66
-
67
- OpenApi3 schema for this API. Format can be selected via content negotiation. - YAML: application/vnd.oai.openapi - JSON: application/vnd.oai.openapi+json
68
-
69
- ### Example
70
-
71
- ```typescript
72
- import {
73
- SchemaApi,
74
- Configuration
75
- } from '@pidginhost/sdk';
76
-
77
- const configuration = new Configuration();
78
- const apiInstance = new SchemaApi(configuration);
79
-
80
- let format: 'json' | 'yaml'; // (optional) (default to undefined)
81
- let lang: 'en' | 'ro'; // (optional) (default to undefined)
82
-
83
- const { status, data } = await apiInstance.schemaRetrieve2(
84
- format,
85
- lang
86
- );
87
- ```
88
-
89
- ### Parameters
90
-
91
- |Name | Type | Description | Notes|
92
- |------------- | ------------- | ------------- | -------------|
93
- | **format** | [**&#39;json&#39; | &#39;yaml&#39;**]**Array<&#39;json&#39; &#124; &#39;yaml&#39;>** | | (optional) defaults to undefined|
94
- | **lang** | [**&#39;en&#39; | &#39;ro&#39;**]**Array<&#39;en&#39; &#124; &#39;ro&#39;>** | | (optional) defaults to undefined|
95
-
96
-
97
- ### Return type
98
-
99
- **{ [key: string]: any; }**
100
-
101
- ### Authorization
102
-
103
- [cookieAuth](../README.md#cookieAuth), [tokenAuth](../README.md#tokenAuth)
104
-
105
- ### HTTP request headers
106
-
107
- - **Content-Type**: Not defined
108
- - **Accept**: application/vnd.oai.openapi, application/yaml, application/vnd.oai.openapi+json, application/json
109
-
110
-
111
- ### HTTP response details
112
- | Status code | Description | Response headers |
113
- |-------------|-------------|------------------|
114
- |**200** | | - |
115
-
116
- [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
117
-
package/docs/Server.md CHANGED
@@ -10,9 +10,10 @@ Name | Type | Description | Notes
10
10
  **project** | **string** | | [optional] [default to undefined]
11
11
  **image** | **string** | | [readonly] [default to undefined]
12
12
  **_package** | **string** | | [readonly] [default to undefined]
13
- **cpus** | **string** | | [readonly] [default to undefined]
14
- **memory** | **string** | | [readonly] [default to undefined]
15
- **disk_size** | **string** | | [readonly] [default to undefined]
13
+ **cpus** | **number** | | [readonly] [default to undefined]
14
+ **memory** | **number** | | [readonly] [default to undefined]
15
+ **disk_size** | **number** | | [readonly] [default to undefined]
16
+ **generation** | **string** | | [readonly] [default to undefined]
16
17
  **status** | [**StatusA57Enum**](StatusA57Enum.md) | | [optional] [default to undefined]
17
18
  **destroy_protection** | **boolean** | Prevents the server from being destroyed until disabled. | [readonly] [default to undefined]
18
19
  **ha_enabled** | **boolean** | Enables Proxmox HA — automatic restart and migration on node failure. | [readonly] [default to undefined]
@@ -32,6 +33,7 @@ const instance: Server = {
32
33
  cpus,
33
34
  memory,
34
35
  disk_size,
36
+ generation,
35
37
  status,
36
38
  destroy_protection,
37
39
  ha_enabled,
package/docs/ServerAdd.md CHANGED
@@ -25,6 +25,7 @@ Name | Type | Description | Notes
25
25
  **extra_volume_size** | **number** | | [optional] [default to 0]
26
26
  **no_network_acknowledged** | **boolean** | | [optional] [default to undefined]
27
27
  **enable_ha** | **boolean** | | [optional] [default to false]
28
+ **generation** | **string** | | [optional] [default to undefined]
28
29
 
29
30
  ## Example
30
31
 
@@ -52,6 +53,7 @@ const instance: ServerAdd = {
52
53
  extra_volume_size,
53
54
  no_network_acknowledged,
54
55
  enable_ha,
56
+ generation,
55
57
  };
56
58
  ```
57
59
 
@@ -0,0 +1,52 @@
1
+ # ServerDetail
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **id** | **number** | | [readonly] [default to undefined]
9
+ **hostname** | **string** | | [readonly] [default to undefined]
10
+ **project** | **string** | | [optional] [default to undefined]
11
+ **image** | **string** | | [readonly] [default to undefined]
12
+ **_package** | **string** | | [readonly] [default to undefined]
13
+ **cpus** | **number** | | [readonly] [default to undefined]
14
+ **memory** | **number** | | [readonly] [default to undefined]
15
+ **disk_size** | **number** | | [readonly] [default to undefined]
16
+ **generation** | **string** | | [readonly] [default to undefined]
17
+ **machine** | **{ [key: string]: any; }** | | [readonly] [default to undefined]
18
+ **volumes** | [**Array&lt;Volume&gt;**](Volume.md) | | [readonly] [default to undefined]
19
+ **networks** | **{ [key: string]: any; }** | | [readonly] [default to undefined]
20
+ **password** | **string** | | [optional] [default to undefined]
21
+ **status** | [**StatusA57Enum**](StatusA57Enum.md) | | [readonly] [default to undefined]
22
+ **username** | **string** | | [readonly] [default to undefined]
23
+ **destroy_protection** | **boolean** | Prevents the server from being destroyed until disabled. | [readonly] [default to undefined]
24
+ **ha_enabled** | **boolean** | Enables Proxmox HA — automatic restart and migration on node failure. | [readonly] [default to undefined]
25
+
26
+ ## Example
27
+
28
+ ```typescript
29
+ import { ServerDetail } from '@pidginhost/sdk';
30
+
31
+ const instance: ServerDetail = {
32
+ id,
33
+ hostname,
34
+ project,
35
+ image,
36
+ _package,
37
+ cpus,
38
+ memory,
39
+ disk_size,
40
+ generation,
41
+ machine,
42
+ volumes,
43
+ networks,
44
+ password,
45
+ status,
46
+ username,
47
+ destroy_protection,
48
+ ha_enabled,
49
+ };
50
+ ```
51
+
52
+ [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)