@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
@@ -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
+