@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.
- package/.openapi-generator/FILES +10 -0
- package/.openapi-generator/VERSION +1 -1
- package/CHANGELOG.md +62 -0
- package/README.md +24 -215
- package/api.ts +11413 -26360
- package/dist/api.d.ts +799 -6912
- package/dist/api.js +10802 -25003
- package/dist/esm/api.d.ts +799 -6912
- package/dist/esm/api.js +11170 -25375
- package/dist/esm/pidginhost.d.ts +7 -1
- package/dist/esm/pidginhost.js +7 -1
- package/dist/pidginhost.d.ts +7 -1
- package/dist/pidginhost.js +6 -0
- package/docs/AccountApi.md +142 -1138
- package/docs/AuthApi.md +104 -0
- package/docs/BillingApi.md +134 -1073
- package/docs/CLISessionCreateResponse.md +26 -0
- package/docs/CLISessionPollResponse.md +26 -0
- package/docs/CLISessionPollResponseStatusEnum.md +15 -0
- package/docs/CloudApi.md +906 -4971
- package/docs/ClusterAdd.md +2 -0
- package/docs/ClusterDetail.md +8 -0
- package/docs/DedicatedApi.md +0 -272
- package/docs/DomainApi.md +144 -1164
- package/docs/EligibleVM.md +22 -0
- package/docs/EligibleVMsResponse.md +20 -0
- package/docs/FreednsApi.md +0 -324
- package/docs/HardwareGeneration.md +34 -0
- package/docs/HostingApi.md +0 -160
- package/docs/KubeVersionEnum.md +4 -4
- package/docs/KubernetesApi.md +565 -3562
- package/docs/PatchedClusterDetail.md +8 -0
- package/docs/PatchedResourcePool.md +2 -0
- package/docs/PatchedServerDetail.md +52 -0
- package/docs/ResourcePool.md +2 -0
- package/docs/ResourcePoolAdd.md +2 -0
- package/docs/SchemaApi.md +0 -55
- package/docs/Server.md +5 -3
- package/docs/ServerAdd.md +2 -0
- package/docs/ServerDetail.md +52 -0
- package/docs/SupportApi.md +0 -417
- package/docs/ToggleCloudVMAccessResponse.md +22 -0
- package/package.json +1 -1
- package/pidginhost.ts +13 -1
package/docs/AuthApi.md
ADDED
|
@@ -0,0 +1,104 @@
|
|
|
1
|
+
# AuthApi
|
|
2
|
+
|
|
3
|
+
All URIs are relative to *https://www.pidginhost.com*
|
|
4
|
+
|
|
5
|
+
|Method | HTTP request | Description|
|
|
6
|
+
|------------- | ------------- | -------------|
|
|
7
|
+
|[**authCliSessionCreate**](#authclisessioncreate) | **POST** /api/auth/cli-session/ | |
|
|
8
|
+
|[**authCliSessionRetrieve**](#authclisessionretrieve) | **GET** /api/auth/cli-session/{session_id}/ | |
|
|
9
|
+
|
|
10
|
+
# **authCliSessionCreate**
|
|
11
|
+
> CLISessionCreateResponse authCliSessionCreate()
|
|
12
|
+
|
|
13
|
+
Create a CLI authentication session for browser-based approval
|
|
14
|
+
|
|
15
|
+
### Example
|
|
16
|
+
|
|
17
|
+
```typescript
|
|
18
|
+
import {
|
|
19
|
+
AuthApi,
|
|
20
|
+
Configuration
|
|
21
|
+
} from '@pidginhost/sdk';
|
|
22
|
+
|
|
23
|
+
const configuration = new Configuration();
|
|
24
|
+
const apiInstance = new AuthApi(configuration);
|
|
25
|
+
|
|
26
|
+
const { status, data } = await apiInstance.authCliSessionCreate();
|
|
27
|
+
```
|
|
28
|
+
|
|
29
|
+
### Parameters
|
|
30
|
+
This endpoint does not have any parameters.
|
|
31
|
+
|
|
32
|
+
|
|
33
|
+
### Return type
|
|
34
|
+
|
|
35
|
+
**CLISessionCreateResponse**
|
|
36
|
+
|
|
37
|
+
### Authorization
|
|
38
|
+
|
|
39
|
+
No authorization required
|
|
40
|
+
|
|
41
|
+
### HTTP request headers
|
|
42
|
+
|
|
43
|
+
- **Content-Type**: Not defined
|
|
44
|
+
- **Accept**: application/json
|
|
45
|
+
|
|
46
|
+
|
|
47
|
+
### HTTP response details
|
|
48
|
+
| Status code | Description | Response headers |
|
|
49
|
+
|-------------|-------------|------------------|
|
|
50
|
+
|**201** | | - |
|
|
51
|
+
|
|
52
|
+
[[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)
|
|
53
|
+
|
|
54
|
+
# **authCliSessionRetrieve**
|
|
55
|
+
> CLISessionPollResponse authCliSessionRetrieve()
|
|
56
|
+
|
|
57
|
+
Poll a CLI authentication session. Returns token when approved.
|
|
58
|
+
|
|
59
|
+
### Example
|
|
60
|
+
|
|
61
|
+
```typescript
|
|
62
|
+
import {
|
|
63
|
+
AuthApi,
|
|
64
|
+
Configuration
|
|
65
|
+
} from '@pidginhost/sdk';
|
|
66
|
+
|
|
67
|
+
const configuration = new Configuration();
|
|
68
|
+
const apiInstance = new AuthApi(configuration);
|
|
69
|
+
|
|
70
|
+
let sessionId: string; // (default to undefined)
|
|
71
|
+
|
|
72
|
+
const { status, data } = await apiInstance.authCliSessionRetrieve(
|
|
73
|
+
sessionId
|
|
74
|
+
);
|
|
75
|
+
```
|
|
76
|
+
|
|
77
|
+
### Parameters
|
|
78
|
+
|
|
79
|
+
|Name | Type | Description | Notes|
|
|
80
|
+
|------------- | ------------- | ------------- | -------------|
|
|
81
|
+
| **sessionId** | [**string**] | | defaults to undefined|
|
|
82
|
+
|
|
83
|
+
|
|
84
|
+
### Return type
|
|
85
|
+
|
|
86
|
+
**CLISessionPollResponse**
|
|
87
|
+
|
|
88
|
+
### Authorization
|
|
89
|
+
|
|
90
|
+
No authorization required
|
|
91
|
+
|
|
92
|
+
### HTTP request headers
|
|
93
|
+
|
|
94
|
+
- **Content-Type**: Not defined
|
|
95
|
+
- **Accept**: application/json
|
|
96
|
+
|
|
97
|
+
|
|
98
|
+
### HTTP response details
|
|
99
|
+
| Status code | Description | Response headers |
|
|
100
|
+
|-------------|-------------|------------------|
|
|
101
|
+
|**200** | | - |
|
|
102
|
+
|
|
103
|
+
[[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)
|
|
104
|
+
|