@orangefox-recovery/foxclient 5.3.3 → 5.4.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 (141) hide show
  1. package/.openapi-generator/FILES +2 -2
  2. package/.openapi-generator/VERSION +1 -1
  3. package/README.md +5 -5
  4. package/dist/apis/DeviceApi.d.ts +66 -9
  5. package/dist/apis/DeviceApi.js +60 -23
  6. package/dist/apis/PasteApi.d.ts +23 -1
  7. package/dist/apis/PasteApi.js +29 -11
  8. package/dist/apis/ReleaseApi.d.ts +76 -5
  9. package/dist/apis/ReleaseApi.js +60 -22
  10. package/dist/apis/StatsApi.d.ts +11 -1
  11. package/dist/apis/StatsApi.js +15 -6
  12. package/dist/esm/apis/DeviceApi.d.ts +66 -9
  13. package/dist/esm/apis/DeviceApi.js +60 -23
  14. package/dist/esm/apis/PasteApi.d.ts +23 -1
  15. package/dist/esm/apis/PasteApi.js +29 -11
  16. package/dist/esm/apis/ReleaseApi.d.ts +76 -5
  17. package/dist/esm/apis/ReleaseApi.js +60 -22
  18. package/dist/esm/apis/StatsApi.d.ts +11 -1
  19. package/dist/esm/apis/StatsApi.js +15 -6
  20. package/dist/esm/models/DeviceResponse.d.ts +1 -1
  21. package/dist/esm/models/DeviceResponse.js +1 -1
  22. package/dist/esm/models/GlobalStatsAggregationModel.d.ts +1 -1
  23. package/dist/esm/models/GlobalStatsAggregationModel.js +1 -1
  24. package/dist/esm/models/HTTPValidationError.d.ts +1 -1
  25. package/dist/esm/models/HTTPValidationError.js +1 -1
  26. package/dist/esm/models/ListResponseReleaseResponse.d.ts +1 -1
  27. package/dist/esm/models/ListResponseReleaseResponse.js +1 -1
  28. package/dist/esm/models/ListResponseShortDeviceResponse.d.ts +1 -1
  29. package/dist/esm/models/ListResponseShortDeviceResponse.js +1 -1
  30. package/dist/esm/models/ListResponseShortReleaseResponse.d.ts +1 -1
  31. package/dist/esm/models/ListResponseShortReleaseResponse.js +1 -1
  32. package/dist/esm/models/ListResponseStr.d.ts +1 -1
  33. package/dist/esm/models/ListResponseStr.js +1 -1
  34. package/dist/esm/models/LocationInner.d.ts +26 -0
  35. package/dist/esm/models/{ValidationErrorLocInner.js → LocationInner.js} +9 -9
  36. package/dist/esm/models/MaintainerShortModel.d.ts +1 -1
  37. package/dist/esm/models/MaintainerShortModel.js +1 -1
  38. package/dist/esm/models/PasteInput.d.ts +1 -1
  39. package/dist/esm/models/PasteInput.js +1 -1
  40. package/dist/esm/models/PasteOutput.d.ts +1 -1
  41. package/dist/esm/models/PasteOutput.js +1 -1
  42. package/dist/esm/models/RecoveryImgResponse.d.ts +1 -1
  43. package/dist/esm/models/RecoveryImgResponse.js +1 -1
  44. package/dist/esm/models/ReleaseGroupsResponse.d.ts +1 -1
  45. package/dist/esm/models/ReleaseGroupsResponse.js +1 -1
  46. package/dist/esm/models/ReleaseResponse.d.ts +1 -1
  47. package/dist/esm/models/ReleaseResponse.js +1 -1
  48. package/dist/esm/models/ReleaseType.d.ts +1 -1
  49. package/dist/esm/models/ReleaseType.js +1 -1
  50. package/dist/esm/models/ReleasesSort.d.ts +1 -1
  51. package/dist/esm/models/ReleasesSort.js +1 -1
  52. package/dist/esm/models/ResponseGetReleases.d.ts +1 -1
  53. package/dist/esm/models/ResponseGetReleases.js +1 -1
  54. package/dist/esm/models/ShortDeviceResponse.d.ts +1 -1
  55. package/dist/esm/models/ShortDeviceResponse.js +1 -1
  56. package/dist/esm/models/ShortReleaseResponse.d.ts +1 -1
  57. package/dist/esm/models/ShortReleaseResponse.js +1 -1
  58. package/dist/esm/models/ValidationError.d.ts +16 -4
  59. package/dist/esm/models/ValidationError.js +8 -4
  60. package/dist/esm/models/index.d.ts +1 -1
  61. package/dist/esm/models/index.js +1 -1
  62. package/dist/esm/runtime.d.ts +1 -1
  63. package/dist/esm/runtime.js +16 -1
  64. package/dist/models/DeviceResponse.d.ts +1 -1
  65. package/dist/models/DeviceResponse.js +1 -1
  66. package/dist/models/GlobalStatsAggregationModel.d.ts +1 -1
  67. package/dist/models/GlobalStatsAggregationModel.js +1 -1
  68. package/dist/models/HTTPValidationError.d.ts +1 -1
  69. package/dist/models/HTTPValidationError.js +1 -1
  70. package/dist/models/ListResponseReleaseResponse.d.ts +1 -1
  71. package/dist/models/ListResponseReleaseResponse.js +1 -1
  72. package/dist/models/ListResponseShortDeviceResponse.d.ts +1 -1
  73. package/dist/models/ListResponseShortDeviceResponse.js +1 -1
  74. package/dist/models/ListResponseShortReleaseResponse.d.ts +1 -1
  75. package/dist/models/ListResponseShortReleaseResponse.js +1 -1
  76. package/dist/models/ListResponseStr.d.ts +1 -1
  77. package/dist/models/ListResponseStr.js +1 -1
  78. package/dist/models/LocationInner.d.ts +26 -0
  79. package/dist/models/LocationInner.js +38 -0
  80. package/dist/models/MaintainerShortModel.d.ts +1 -1
  81. package/dist/models/MaintainerShortModel.js +1 -1
  82. package/dist/models/PasteInput.d.ts +1 -1
  83. package/dist/models/PasteInput.js +1 -1
  84. package/dist/models/PasteOutput.d.ts +1 -1
  85. package/dist/models/PasteOutput.js +1 -1
  86. package/dist/models/RecoveryImgResponse.d.ts +1 -1
  87. package/dist/models/RecoveryImgResponse.js +1 -1
  88. package/dist/models/ReleaseGroupsResponse.d.ts +1 -1
  89. package/dist/models/ReleaseGroupsResponse.js +1 -1
  90. package/dist/models/ReleaseResponse.d.ts +1 -1
  91. package/dist/models/ReleaseResponse.js +1 -1
  92. package/dist/models/ReleaseType.d.ts +1 -1
  93. package/dist/models/ReleaseType.js +1 -1
  94. package/dist/models/ReleasesSort.d.ts +1 -1
  95. package/dist/models/ReleasesSort.js +1 -1
  96. package/dist/models/ResponseGetReleases.d.ts +1 -1
  97. package/dist/models/ResponseGetReleases.js +1 -1
  98. package/dist/models/ShortDeviceResponse.d.ts +1 -1
  99. package/dist/models/ShortDeviceResponse.js +1 -1
  100. package/dist/models/ShortReleaseResponse.d.ts +1 -1
  101. package/dist/models/ShortReleaseResponse.js +1 -1
  102. package/dist/models/ValidationError.d.ts +16 -4
  103. package/dist/models/ValidationError.js +8 -4
  104. package/dist/models/index.d.ts +1 -1
  105. package/dist/models/index.js +1 -1
  106. package/dist/runtime.d.ts +1 -1
  107. package/dist/runtime.js +16 -1
  108. package/docs/DeviceApi.md +2 -2
  109. package/docs/{ValidationErrorLocInner.md → LocationInner.md} +4 -4
  110. package/docs/ReleaseApi.md +1 -1
  111. package/docs/ValidationError.md +5 -1
  112. package/package.json +1 -2
  113. package/src/apis/DeviceApi.ts +104 -27
  114. package/src/apis/PasteApi.ts +43 -11
  115. package/src/apis/ReleaseApi.ts +115 -24
  116. package/src/apis/StatsApi.ts +21 -6
  117. package/src/models/DeviceResponse.ts +1 -1
  118. package/src/models/GlobalStatsAggregationModel.ts +1 -1
  119. package/src/models/HTTPValidationError.ts +1 -1
  120. package/src/models/ListResponseReleaseResponse.ts +1 -1
  121. package/src/models/ListResponseShortDeviceResponse.ts +1 -1
  122. package/src/models/ListResponseShortReleaseResponse.ts +1 -1
  123. package/src/models/ListResponseStr.ts +1 -1
  124. package/src/models/{ValidationErrorLocInner.ts → LocationInner.ts} +11 -11
  125. package/src/models/MaintainerShortModel.ts +1 -1
  126. package/src/models/PasteInput.ts +1 -1
  127. package/src/models/PasteOutput.ts +1 -1
  128. package/src/models/RecoveryImgResponse.ts +1 -1
  129. package/src/models/ReleaseGroupsResponse.ts +1 -1
  130. package/src/models/ReleaseResponse.ts +1 -1
  131. package/src/models/ReleaseType.ts +1 -1
  132. package/src/models/ReleasesSort.ts +1 -1
  133. package/src/models/ResponseGetReleases.ts +1 -1
  134. package/src/models/ShortDeviceResponse.ts +1 -1
  135. package/src/models/ShortReleaseResponse.ts +1 -1
  136. package/src/models/ValidationError.ts +27 -11
  137. package/src/models/index.ts +1 -1
  138. package/src/runtime.ts +19 -1
  139. package/dist/esm/models/ValidationErrorLocInner.d.ts +0 -26
  140. package/dist/models/ValidationErrorLocInner.d.ts +0 -26
  141. package/dist/models/ValidationErrorLocInner.js +0 -38
@@ -10,6 +10,7 @@ docs/ListResponseReleaseResponse.md
10
10
  docs/ListResponseShortDeviceResponse.md
11
11
  docs/ListResponseShortReleaseResponse.md
12
12
  docs/ListResponseStr.md
13
+ docs/LocationInner.md
13
14
  docs/MaintainerShortModel.md
14
15
  docs/PasteApi.md
15
16
  docs/PasteInput.md
@@ -25,7 +26,6 @@ docs/ShortDeviceResponse.md
25
26
  docs/ShortReleaseResponse.md
26
27
  docs/StatsApi.md
27
28
  docs/ValidationError.md
28
- docs/ValidationErrorLocInner.md
29
29
  package.json
30
30
  src/apis/DeviceApi.ts
31
31
  src/apis/PasteApi.ts
@@ -40,6 +40,7 @@ src/models/ListResponseReleaseResponse.ts
40
40
  src/models/ListResponseShortDeviceResponse.ts
41
41
  src/models/ListResponseShortReleaseResponse.ts
42
42
  src/models/ListResponseStr.ts
43
+ src/models/LocationInner.ts
43
44
  src/models/MaintainerShortModel.ts
44
45
  src/models/PasteInput.ts
45
46
  src/models/PasteOutput.ts
@@ -52,7 +53,6 @@ src/models/ResponseGetReleases.ts
52
53
  src/models/ShortDeviceResponse.ts
53
54
  src/models/ShortReleaseResponse.ts
54
55
  src/models/ValidationError.ts
55
- src/models/ValidationErrorLocInner.ts
56
56
  src/models/index.ts
57
57
  src/runtime.ts
58
58
  tsconfig.esm.json
@@ -1 +1 @@
1
- 7.17.0
1
+ 7.21.0
package/README.md CHANGED
@@ -1,4 +1,4 @@
1
- # @orangefox-recovery/foxclient@5.3.3
1
+ # @orangefox-recovery/foxclient@5.4.0
2
2
 
3
3
  A TypeScript SDK client for the api.orangefox.download API.
4
4
 
@@ -76,6 +76,7 @@ All URIs are relative to *https://api.orangefox.download*
76
76
  - [ListResponseShortDeviceResponse](docs/ListResponseShortDeviceResponse.md)
77
77
  - [ListResponseShortReleaseResponse](docs/ListResponseShortReleaseResponse.md)
78
78
  - [ListResponseStr](docs/ListResponseStr.md)
79
+ - [LocationInner](docs/LocationInner.md)
79
80
  - [MaintainerShortModel](docs/MaintainerShortModel.md)
80
81
  - [PasteInput](docs/PasteInput.md)
81
82
  - [PasteOutput](docs/PasteOutput.md)
@@ -88,7 +89,6 @@ All URIs are relative to *https://api.orangefox.download*
88
89
  - [ShortDeviceResponse](docs/ShortDeviceResponse.md)
89
90
  - [ShortReleaseResponse](docs/ShortReleaseResponse.md)
90
91
  - [ValidationError](docs/ValidationError.md)
91
- - [ValidationErrorLocInner](docs/ValidationErrorLocInner.md)
92
92
 
93
93
  ### Authorization
94
94
 
@@ -114,9 +114,9 @@ This TypeScript SDK client supports the [Fetch API](https://fetch.spec.whatwg.or
114
114
  and is automatically generated by the
115
115
  [OpenAPI Generator](https://openapi-generator.tech) project:
116
116
 
117
- - API version: `5.3.3`
118
- - Package version: `5.3.3`
119
- - Generator version: `7.17.0`
117
+ - API version: `5.4.0`
118
+ - Package version: `5.4.0`
119
+ - Generator version: `7.21.0`
120
120
  - Build package: `org.openapitools.codegen.languages.TypeScriptFetchClientCodegen`
121
121
 
122
122
  The generated npm module supports the following:
@@ -2,7 +2,7 @@
2
2
  * Fox API
3
3
  * Warning: Please add a custom user agent header to your requests. This would help us fighting against DDoS attacks in future, while keeping your application\'s access to the API. In future, this may be a mandatory requirement. To reduce the system load, the API endpoints are rate limited. The default limit is 30 requests per minute. Contact admin@orangefox.tech if you need a higher limit. The requests may be logged for analytics and development purposes.
4
4
  *
5
- * The version of the OpenAPI document: 5.3.3
5
+ * The version of the OpenAPI document: 5.4.0
6
6
  * Contact: admin@orangefox.tech
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -40,7 +40,16 @@ export interface GetDevicesRequest {
40
40
  */
41
41
  export interface DeviceApiInterface {
42
42
  /**
43
- * Extended get device method, including the ability to get a device using device codename instead of the ID. /device/get?codename=lavender Due to the reasons mentioned in the /device route, identification devices using their codenames are considered unrecommended.
43
+ * Creates request options for getDevice without sending the request
44
+ * @param {string} [deviceId]
45
+ * @param {string} [id] Filter by Device ID (deprecated)
46
+ * @param {string} [codename] Not recommended to use when you can
47
+ * @throws {RequiredError}
48
+ * @memberof DeviceApiInterface
49
+ */
50
+ getDeviceRequestOpts(requestParameters: GetDeviceRequest): Promise<runtime.RequestOpts>;
51
+ /**
52
+ * Extended get device method, including the ability to get a device using device codename instead of the ID. /device/get?codename=lavender Due to the reasons mentioned in the /device route, identification devices using their codenames are considered unrecommended.
44
53
  * @summary Get Device
45
54
  * @param {string} [deviceId]
46
55
  * @param {string} [id] Filter by Device ID (deprecated)
@@ -51,10 +60,18 @@ export interface DeviceApiInterface {
51
60
  */
52
61
  getDeviceRaw(requestParameters: GetDeviceRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<DeviceResponse>>;
53
62
  /**
54
- * Extended get device method, including the ability to get a device using device codename instead of the ID. /device/get?codename=lavender Due to the reasons mentioned in the /device route, identification devices using their codenames are considered unrecommended.
63
+ * Extended get device method, including the ability to get a device using device codename instead of the ID. /device/get?codename=lavender Due to the reasons mentioned in the /device route, identification devices using their codenames are considered unrecommended.
55
64
  * Get Device
56
65
  */
57
66
  getDevice(requestParameters: GetDeviceRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<DeviceResponse>;
67
+ /**
68
+ * Creates request options for getDeviceDeprecated without sending the request
69
+ * @param {string} deviceId
70
+ * @deprecated
71
+ * @throws {RequiredError}
72
+ * @memberof DeviceApiInterface
73
+ */
74
+ getDeviceDeprecatedRequestOpts(requestParameters: GetDeviceDeprecatedRequest): Promise<runtime.RequestOpts>;
58
75
  /**
59
76
  * Gets device info using device ID.
60
77
  * @summary Get Device Short
@@ -72,7 +89,24 @@ export interface DeviceApiInterface {
72
89
  */
73
90
  getDeviceDeprecated(requestParameters: GetDeviceDeprecatedRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<DeviceResponse>;
74
91
  /**
75
- * Get a device list. Device ID is the internal OrangeFox device identifier (https://www.mongodb.com/docs/manual/reference/method/ObjectId/). Please only use it for identification instead of codename or model_name if it\'s possible. You would find two Device ID query parameters here, the _id one is left deprecated due to historical reasons, please use id instead. Please note that using model_name is unrecommended and considered deprecated as it\'s very inconsistent around some OEMs that play with the names around. As of the current moment, the API won\'t support unified model names at all! In short, do not use model_name as device\'s identification. Be careful using codenames, there are a lot of problems and pain about those. Some OEMs keep releasing new phones with the same hardware as the old ones and may or may not update or change the codename for those. Currently, API doesn\'t support unified devices; they would have only one codename. Our OEMs database would not include subbrands, they instead would be added to the model name. Like oem_name: \"Xiaomi\" model_name: \"Poco F5 Pro\". The exclusions are merged ones, like OnePlus, as calling those BBK OnePlus is really weird in the respective communities. Note: You will get only a shortened device object with this method, if you want to get a full one, use \"/device/<device_id>\" or \"/device/get\" method instead.
92
+ * Creates request options for getDevices without sending the request
93
+ * @param {Array<string>} [id] Filter by Device IDs
94
+ * @param {Array<string>} [id2] Filter by Device IDs (deprecated)
95
+ * @param {Array<string>} [oemName] Filter by OEM names
96
+ * @param {Array<string>} [codename] Filter by device codenames
97
+ * @param {Array<string>} [modelName] Filter by model names
98
+ * @param {boolean} [supported] Supported status
99
+ * @param {Array<string>} [maintainer] Filter by maintainer ID
100
+ * @param {boolean} [freezed] Filter by Freezed status
101
+ * @param {boolean} [hasReleases] Filter by has releases status
102
+ * @param {number} [skip] Skip query results
103
+ * @param {number} [limit] Limit query results (0 means unlimited)
104
+ * @throws {RequiredError}
105
+ * @memberof DeviceApiInterface
106
+ */
107
+ getDevicesRequestOpts(requestParameters: GetDevicesRequest): Promise<runtime.RequestOpts>;
108
+ /**
109
+ * Get a device list. Device ID is the internal OrangeFox device identifier (https://www.mongodb.com/docs/manual/reference/method/ObjectId/). Please only use it for identification instead of codename or model_name if it\'s possible. You would find two Device ID query parameters here, the _id one is left deprecated due to historical reasons, please use id instead. Please note that using model_name is unrecommended and considered deprecated as it\'s very inconsistent around some OEMs that play with the names around. As of the current moment, the API won\'t support unified model names at all! In short, do not use model_name as device\'s identification. Be careful using codenames, there are a lot of problems and pain about those. Some OEMs keep releasing new phones with the same hardware as the old ones and may or may not update or change the codename for those. Currently, API doesn\'t support unified devices; they would have only one codename. Our OEMs database would not include subbrands, they instead would be added to the model name. Like oem_name: \"Xiaomi\" model_name: \"Poco F5 Pro\". The exclusions are merged ones, like OnePlus, as calling those BBK OnePlus is really weird in the respective communities. Note: You will get only a shortened device object with this method, if you want to get a full one, use \"/device/<device_id>\" or \"/device/get\" method instead.
76
110
  * @summary Get Devices
77
111
  * @param {Array<string>} [id] Filter by Device IDs
78
112
  * @param {Array<string>} [id2] Filter by Device IDs (deprecated)
@@ -91,10 +125,16 @@ export interface DeviceApiInterface {
91
125
  */
92
126
  getDevicesRaw(requestParameters: GetDevicesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ListResponseShortDeviceResponse>>;
93
127
  /**
94
- * Get a device list. Device ID is the internal OrangeFox device identifier (https://www.mongodb.com/docs/manual/reference/method/ObjectId/). Please only use it for identification instead of codename or model_name if it\'s possible. You would find two Device ID query parameters here, the _id one is left deprecated due to historical reasons, please use id instead. Please note that using model_name is unrecommended and considered deprecated as it\'s very inconsistent around some OEMs that play with the names around. As of the current moment, the API won\'t support unified model names at all! In short, do not use model_name as device\'s identification. Be careful using codenames, there are a lot of problems and pain about those. Some OEMs keep releasing new phones with the same hardware as the old ones and may or may not update or change the codename for those. Currently, API doesn\'t support unified devices; they would have only one codename. Our OEMs database would not include subbrands, they instead would be added to the model name. Like oem_name: \"Xiaomi\" model_name: \"Poco F5 Pro\". The exclusions are merged ones, like OnePlus, as calling those BBK OnePlus is really weird in the respective communities. Note: You will get only a shortened device object with this method, if you want to get a full one, use \"/device/<device_id>\" or \"/device/get\" method instead.
128
+ * Get a device list. Device ID is the internal OrangeFox device identifier (https://www.mongodb.com/docs/manual/reference/method/ObjectId/). Please only use it for identification instead of codename or model_name if it\'s possible. You would find two Device ID query parameters here, the _id one is left deprecated due to historical reasons, please use id instead. Please note that using model_name is unrecommended and considered deprecated as it\'s very inconsistent around some OEMs that play with the names around. As of the current moment, the API won\'t support unified model names at all! In short, do not use model_name as device\'s identification. Be careful using codenames, there are a lot of problems and pain about those. Some OEMs keep releasing new phones with the same hardware as the old ones and may or may not update or change the codename for those. Currently, API doesn\'t support unified devices; they would have only one codename. Our OEMs database would not include subbrands, they instead would be added to the model name. Like oem_name: \"Xiaomi\" model_name: \"Poco F5 Pro\". The exclusions are merged ones, like OnePlus, as calling those BBK OnePlus is really weird in the respective communities. Note: You will get only a shortened device object with this method, if you want to get a full one, use \"/device/<device_id>\" or \"/device/get\" method instead.
95
129
  * Get Devices
96
130
  */
97
131
  getDevices(requestParameters: GetDevicesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ListResponseShortDeviceResponse>;
132
+ /**
133
+ * Creates request options for getOems without sending the request
134
+ * @throws {RequiredError}
135
+ * @memberof DeviceApiInterface
136
+ */
137
+ getOemsRequestOpts(): Promise<runtime.RequestOpts>;
98
138
  /**
99
139
  * Lists all OEM names
100
140
  * @summary Get Oems
@@ -114,15 +154,24 @@ export interface DeviceApiInterface {
114
154
  */
115
155
  export declare class DeviceApi extends runtime.BaseAPI implements DeviceApiInterface {
116
156
  /**
117
- * Extended get device method, including the ability to get a device using device codename instead of the ID. /device/get?codename=lavender Due to the reasons mentioned in the /device route, identification devices using their codenames are considered unrecommended.
157
+ * Creates request options for getDevice without sending the request
158
+ */
159
+ getDeviceRequestOpts(requestParameters: GetDeviceRequest): Promise<runtime.RequestOpts>;
160
+ /**
161
+ * Extended get device method, including the ability to get a device using device codename instead of the ID. /device/get?codename=lavender Due to the reasons mentioned in the /device route, identification devices using their codenames are considered unrecommended.
118
162
  * Get Device
119
163
  */
120
164
  getDeviceRaw(requestParameters: GetDeviceRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<DeviceResponse>>;
121
165
  /**
122
- * Extended get device method, including the ability to get a device using device codename instead of the ID. /device/get?codename=lavender Due to the reasons mentioned in the /device route, identification devices using their codenames are considered unrecommended.
166
+ * Extended get device method, including the ability to get a device using device codename instead of the ID. /device/get?codename=lavender Due to the reasons mentioned in the /device route, identification devices using their codenames are considered unrecommended.
123
167
  * Get Device
124
168
  */
125
169
  getDevice(requestParameters?: GetDeviceRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<DeviceResponse>;
170
+ /**
171
+ * Creates request options for getDeviceDeprecated without sending the request
172
+ * @deprecated
173
+ */
174
+ getDeviceDeprecatedRequestOpts(requestParameters: GetDeviceDeprecatedRequest): Promise<runtime.RequestOpts>;
126
175
  /**
127
176
  * Gets device info using device ID.
128
177
  * Get Device Short
@@ -136,15 +185,23 @@ export declare class DeviceApi extends runtime.BaseAPI implements DeviceApiInter
136
185
  */
137
186
  getDeviceDeprecated(requestParameters: GetDeviceDeprecatedRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<DeviceResponse>;
138
187
  /**
139
- * Get a device list. Device ID is the internal OrangeFox device identifier (https://www.mongodb.com/docs/manual/reference/method/ObjectId/). Please only use it for identification instead of codename or model_name if it\'s possible. You would find two Device ID query parameters here, the _id one is left deprecated due to historical reasons, please use id instead. Please note that using model_name is unrecommended and considered deprecated as it\'s very inconsistent around some OEMs that play with the names around. As of the current moment, the API won\'t support unified model names at all! In short, do not use model_name as device\'s identification. Be careful using codenames, there are a lot of problems and pain about those. Some OEMs keep releasing new phones with the same hardware as the old ones and may or may not update or change the codename for those. Currently, API doesn\'t support unified devices; they would have only one codename. Our OEMs database would not include subbrands, they instead would be added to the model name. Like oem_name: \"Xiaomi\" model_name: \"Poco F5 Pro\". The exclusions are merged ones, like OnePlus, as calling those BBK OnePlus is really weird in the respective communities. Note: You will get only a shortened device object with this method, if you want to get a full one, use \"/device/<device_id>\" or \"/device/get\" method instead.
188
+ * Creates request options for getDevices without sending the request
189
+ */
190
+ getDevicesRequestOpts(requestParameters: GetDevicesRequest): Promise<runtime.RequestOpts>;
191
+ /**
192
+ * Get a device list. Device ID is the internal OrangeFox device identifier (https://www.mongodb.com/docs/manual/reference/method/ObjectId/). Please only use it for identification instead of codename or model_name if it\'s possible. You would find two Device ID query parameters here, the _id one is left deprecated due to historical reasons, please use id instead. Please note that using model_name is unrecommended and considered deprecated as it\'s very inconsistent around some OEMs that play with the names around. As of the current moment, the API won\'t support unified model names at all! In short, do not use model_name as device\'s identification. Be careful using codenames, there are a lot of problems and pain about those. Some OEMs keep releasing new phones with the same hardware as the old ones and may or may not update or change the codename for those. Currently, API doesn\'t support unified devices; they would have only one codename. Our OEMs database would not include subbrands, they instead would be added to the model name. Like oem_name: \"Xiaomi\" model_name: \"Poco F5 Pro\". The exclusions are merged ones, like OnePlus, as calling those BBK OnePlus is really weird in the respective communities. Note: You will get only a shortened device object with this method, if you want to get a full one, use \"/device/<device_id>\" or \"/device/get\" method instead.
140
193
  * Get Devices
141
194
  */
142
195
  getDevicesRaw(requestParameters: GetDevicesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ListResponseShortDeviceResponse>>;
143
196
  /**
144
- * Get a device list. Device ID is the internal OrangeFox device identifier (https://www.mongodb.com/docs/manual/reference/method/ObjectId/). Please only use it for identification instead of codename or model_name if it\'s possible. You would find two Device ID query parameters here, the _id one is left deprecated due to historical reasons, please use id instead. Please note that using model_name is unrecommended and considered deprecated as it\'s very inconsistent around some OEMs that play with the names around. As of the current moment, the API won\'t support unified model names at all! In short, do not use model_name as device\'s identification. Be careful using codenames, there are a lot of problems and pain about those. Some OEMs keep releasing new phones with the same hardware as the old ones and may or may not update or change the codename for those. Currently, API doesn\'t support unified devices; they would have only one codename. Our OEMs database would not include subbrands, they instead would be added to the model name. Like oem_name: \"Xiaomi\" model_name: \"Poco F5 Pro\". The exclusions are merged ones, like OnePlus, as calling those BBK OnePlus is really weird in the respective communities. Note: You will get only a shortened device object with this method, if you want to get a full one, use \"/device/<device_id>\" or \"/device/get\" method instead.
197
+ * Get a device list. Device ID is the internal OrangeFox device identifier (https://www.mongodb.com/docs/manual/reference/method/ObjectId/). Please only use it for identification instead of codename or model_name if it\'s possible. You would find two Device ID query parameters here, the _id one is left deprecated due to historical reasons, please use id instead. Please note that using model_name is unrecommended and considered deprecated as it\'s very inconsistent around some OEMs that play with the names around. As of the current moment, the API won\'t support unified model names at all! In short, do not use model_name as device\'s identification. Be careful using codenames, there are a lot of problems and pain about those. Some OEMs keep releasing new phones with the same hardware as the old ones and may or may not update or change the codename for those. Currently, API doesn\'t support unified devices; they would have only one codename. Our OEMs database would not include subbrands, they instead would be added to the model name. Like oem_name: \"Xiaomi\" model_name: \"Poco F5 Pro\". The exclusions are merged ones, like OnePlus, as calling those BBK OnePlus is really weird in the respective communities. Note: You will get only a shortened device object with this method, if you want to get a full one, use \"/device/<device_id>\" or \"/device/get\" method instead.
145
198
  * Get Devices
146
199
  */
147
200
  getDevices(requestParameters?: GetDevicesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ListResponseShortDeviceResponse>;
201
+ /**
202
+ * Creates request options for getOems without sending the request
203
+ */
204
+ getOemsRequestOpts(): Promise<runtime.RequestOpts>;
148
205
  /**
149
206
  * Lists all OEM names
150
207
  * Get Oems
@@ -5,7 +5,7 @@
5
5
  * Fox API
6
6
  * Warning: Please add a custom user agent header to your requests. This would help us fighting against DDoS attacks in future, while keeping your application\'s access to the API. In future, this may be a mandatory requirement. To reduce the system load, the API endpoints are rate limited. The default limit is 30 requests per minute. Contact admin@orangefox.tech if you need a higher limit. The requests may be logged for analytics and development purposes.
7
7
  *
8
- * The version of the OpenAPI document: 5.3.3
8
+ * The version of the OpenAPI document: 5.4.0
9
9
  * Contact: admin@orangefox.tech
10
10
  *
11
11
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -30,10 +30,9 @@ const index_1 = require("../models/index");
30
30
  */
31
31
  class DeviceApi extends runtime.BaseAPI {
32
32
  /**
33
- * Extended get device method, including the ability to get a device using device codename instead of the ID. /device/get?codename=lavender Due to the reasons mentioned in the /device route, identification devices using their codenames are considered unrecommended.
34
- * Get Device
33
+ * Creates request options for getDevice without sending the request
35
34
  */
36
- getDeviceRaw(requestParameters, initOverrides) {
35
+ getDeviceRequestOpts(requestParameters) {
37
36
  return __awaiter(this, void 0, void 0, function* () {
38
37
  const queryParameters = {};
39
38
  if (requestParameters['deviceId'] != null) {
@@ -47,17 +46,27 @@ class DeviceApi extends runtime.BaseAPI {
47
46
  }
48
47
  const headerParameters = {};
49
48
  let urlPath = `/devices/get`;
50
- const response = yield this.request({
49
+ return {
51
50
  path: urlPath,
52
51
  method: 'GET',
53
52
  headers: headerParameters,
54
53
  query: queryParameters,
55
- }, initOverrides);
54
+ };
55
+ });
56
+ }
57
+ /**
58
+ * Extended get device method, including the ability to get a device using device codename instead of the ID. /device/get?codename=lavender Due to the reasons mentioned in the /device route, identification devices using their codenames are considered unrecommended.
59
+ * Get Device
60
+ */
61
+ getDeviceRaw(requestParameters, initOverrides) {
62
+ return __awaiter(this, void 0, void 0, function* () {
63
+ const requestOptions = yield this.getDeviceRequestOpts(requestParameters);
64
+ const response = yield this.request(requestOptions, initOverrides);
56
65
  return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.DeviceResponseFromJSON)(jsonValue));
57
66
  });
58
67
  }
59
68
  /**
60
- * Extended get device method, including the ability to get a device using device codename instead of the ID. /device/get?codename=lavender Due to the reasons mentioned in the /device route, identification devices using their codenames are considered unrecommended.
69
+ * Extended get device method, including the ability to get a device using device codename instead of the ID. /device/get?codename=lavender Due to the reasons mentioned in the /device route, identification devices using their codenames are considered unrecommended.
61
70
  * Get Device
62
71
  */
63
72
  getDevice() {
@@ -67,11 +76,10 @@ class DeviceApi extends runtime.BaseAPI {
67
76
  });
68
77
  }
69
78
  /**
70
- * Gets device info using device ID.
71
- * Get Device Short
79
+ * Creates request options for getDeviceDeprecated without sending the request
72
80
  * @deprecated
73
81
  */
74
- getDeviceDeprecatedRaw(requestParameters, initOverrides) {
82
+ getDeviceDeprecatedRequestOpts(requestParameters) {
75
83
  return __awaiter(this, void 0, void 0, function* () {
76
84
  if (requestParameters['deviceId'] == null) {
77
85
  throw new runtime.RequiredError('deviceId', 'Required parameter "deviceId" was null or undefined when calling getDeviceDeprecated().');
@@ -80,12 +88,23 @@ class DeviceApi extends runtime.BaseAPI {
80
88
  const headerParameters = {};
81
89
  let urlPath = `/devices/{device_id}`;
82
90
  urlPath = urlPath.replace(`{${"device_id"}}`, encodeURIComponent(String(requestParameters['deviceId'])));
83
- const response = yield this.request({
91
+ return {
84
92
  path: urlPath,
85
93
  method: 'GET',
86
94
  headers: headerParameters,
87
95
  query: queryParameters,
88
- }, initOverrides);
96
+ };
97
+ });
98
+ }
99
+ /**
100
+ * Gets device info using device ID.
101
+ * Get Device Short
102
+ * @deprecated
103
+ */
104
+ getDeviceDeprecatedRaw(requestParameters, initOverrides) {
105
+ return __awaiter(this, void 0, void 0, function* () {
106
+ const requestOptions = yield this.getDeviceDeprecatedRequestOpts(requestParameters);
107
+ const response = yield this.request(requestOptions, initOverrides);
89
108
  return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.DeviceResponseFromJSON)(jsonValue));
90
109
  });
91
110
  }
@@ -101,10 +120,9 @@ class DeviceApi extends runtime.BaseAPI {
101
120
  });
102
121
  }
103
122
  /**
104
- * Get a device list. Device ID is the internal OrangeFox device identifier (https://www.mongodb.com/docs/manual/reference/method/ObjectId/). Please only use it for identification instead of codename or model_name if it\'s possible. You would find two Device ID query parameters here, the _id one is left deprecated due to historical reasons, please use id instead. Please note that using model_name is unrecommended and considered deprecated as it\'s very inconsistent around some OEMs that play with the names around. As of the current moment, the API won\'t support unified model names at all! In short, do not use model_name as device\'s identification. Be careful using codenames, there are a lot of problems and pain about those. Some OEMs keep releasing new phones with the same hardware as the old ones and may or may not update or change the codename for those. Currently, API doesn\'t support unified devices; they would have only one codename. Our OEMs database would not include subbrands, they instead would be added to the model name. Like oem_name: \"Xiaomi\" model_name: \"Poco F5 Pro\". The exclusions are merged ones, like OnePlus, as calling those BBK OnePlus is really weird in the respective communities. Note: You will get only a shortened device object with this method, if you want to get a full one, use \"/device/<device_id>\" or \"/device/get\" method instead.
105
- * Get Devices
123
+ * Creates request options for getDevices without sending the request
106
124
  */
107
- getDevicesRaw(requestParameters, initOverrides) {
125
+ getDevicesRequestOpts(requestParameters) {
108
126
  return __awaiter(this, void 0, void 0, function* () {
109
127
  const queryParameters = {};
110
128
  if (requestParameters['id'] != null) {
@@ -142,17 +160,27 @@ class DeviceApi extends runtime.BaseAPI {
142
160
  }
143
161
  const headerParameters = {};
144
162
  let urlPath = `/devices/`;
145
- const response = yield this.request({
163
+ return {
146
164
  path: urlPath,
147
165
  method: 'GET',
148
166
  headers: headerParameters,
149
167
  query: queryParameters,
150
- }, initOverrides);
168
+ };
169
+ });
170
+ }
171
+ /**
172
+ * Get a device list. Device ID is the internal OrangeFox device identifier (https://www.mongodb.com/docs/manual/reference/method/ObjectId/). Please only use it for identification instead of codename or model_name if it\'s possible. You would find two Device ID query parameters here, the _id one is left deprecated due to historical reasons, please use id instead. Please note that using model_name is unrecommended and considered deprecated as it\'s very inconsistent around some OEMs that play with the names around. As of the current moment, the API won\'t support unified model names at all! In short, do not use model_name as device\'s identification. Be careful using codenames, there are a lot of problems and pain about those. Some OEMs keep releasing new phones with the same hardware as the old ones and may or may not update or change the codename for those. Currently, API doesn\'t support unified devices; they would have only one codename. Our OEMs database would not include subbrands, they instead would be added to the model name. Like oem_name: \"Xiaomi\" model_name: \"Poco F5 Pro\". The exclusions are merged ones, like OnePlus, as calling those BBK OnePlus is really weird in the respective communities. Note: You will get only a shortened device object with this method, if you want to get a full one, use \"/device/<device_id>\" or \"/device/get\" method instead.
173
+ * Get Devices
174
+ */
175
+ getDevicesRaw(requestParameters, initOverrides) {
176
+ return __awaiter(this, void 0, void 0, function* () {
177
+ const requestOptions = yield this.getDevicesRequestOpts(requestParameters);
178
+ const response = yield this.request(requestOptions, initOverrides);
151
179
  return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.ListResponseShortDeviceResponseFromJSON)(jsonValue));
152
180
  });
153
181
  }
154
182
  /**
155
- * Get a device list. Device ID is the internal OrangeFox device identifier (https://www.mongodb.com/docs/manual/reference/method/ObjectId/). Please only use it for identification instead of codename or model_name if it\'s possible. You would find two Device ID query parameters here, the _id one is left deprecated due to historical reasons, please use id instead. Please note that using model_name is unrecommended and considered deprecated as it\'s very inconsistent around some OEMs that play with the names around. As of the current moment, the API won\'t support unified model names at all! In short, do not use model_name as device\'s identification. Be careful using codenames, there are a lot of problems and pain about those. Some OEMs keep releasing new phones with the same hardware as the old ones and may or may not update or change the codename for those. Currently, API doesn\'t support unified devices; they would have only one codename. Our OEMs database would not include subbrands, they instead would be added to the model name. Like oem_name: \"Xiaomi\" model_name: \"Poco F5 Pro\". The exclusions are merged ones, like OnePlus, as calling those BBK OnePlus is really weird in the respective communities. Note: You will get only a shortened device object with this method, if you want to get a full one, use \"/device/<device_id>\" or \"/device/get\" method instead.
183
+ * Get a device list. Device ID is the internal OrangeFox device identifier (https://www.mongodb.com/docs/manual/reference/method/ObjectId/). Please only use it for identification instead of codename or model_name if it\'s possible. You would find two Device ID query parameters here, the _id one is left deprecated due to historical reasons, please use id instead. Please note that using model_name is unrecommended and considered deprecated as it\'s very inconsistent around some OEMs that play with the names around. As of the current moment, the API won\'t support unified model names at all! In short, do not use model_name as device\'s identification. Be careful using codenames, there are a lot of problems and pain about those. Some OEMs keep releasing new phones with the same hardware as the old ones and may or may not update or change the codename for those. Currently, API doesn\'t support unified devices; they would have only one codename. Our OEMs database would not include subbrands, they instead would be added to the model name. Like oem_name: \"Xiaomi\" model_name: \"Poco F5 Pro\". The exclusions are merged ones, like OnePlus, as calling those BBK OnePlus is really weird in the respective communities. Note: You will get only a shortened device object with this method, if you want to get a full one, use \"/device/<device_id>\" or \"/device/get\" method instead.
156
184
  * Get Devices
157
185
  */
158
186
  getDevices() {
@@ -162,20 +190,29 @@ class DeviceApi extends runtime.BaseAPI {
162
190
  });
163
191
  }
164
192
  /**
165
- * Lists all OEM names
166
- * Get Oems
193
+ * Creates request options for getOems without sending the request
167
194
  */
168
- getOemsRaw(initOverrides) {
195
+ getOemsRequestOpts() {
169
196
  return __awaiter(this, void 0, void 0, function* () {
170
197
  const queryParameters = {};
171
198
  const headerParameters = {};
172
199
  let urlPath = `/oems/`;
173
- const response = yield this.request({
200
+ return {
174
201
  path: urlPath,
175
202
  method: 'GET',
176
203
  headers: headerParameters,
177
204
  query: queryParameters,
178
- }, initOverrides);
205
+ };
206
+ });
207
+ }
208
+ /**
209
+ * Lists all OEM names
210
+ * Get Oems
211
+ */
212
+ getOemsRaw(initOverrides) {
213
+ return __awaiter(this, void 0, void 0, function* () {
214
+ const requestOptions = yield this.getOemsRequestOpts();
215
+ const response = yield this.request(requestOptions, initOverrides);
179
216
  return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.ListResponseStrFromJSON)(jsonValue));
180
217
  });
181
218
  }
@@ -2,7 +2,7 @@
2
2
  * Fox API
3
3
  * Warning: Please add a custom user agent header to your requests. This would help us fighting against DDoS attacks in future, while keeping your application\'s access to the API. In future, this may be a mandatory requirement. To reduce the system load, the API endpoints are rate limited. The default limit is 30 requests per minute. Contact admin@orangefox.tech if you need a higher limit. The requests may be logged for analytics and development purposes.
4
4
  *
5
- * The version of the OpenAPI document: 5.3.3
5
+ * The version of the OpenAPI document: 5.4.0
6
6
  * Contact: admin@orangefox.tech
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -24,6 +24,13 @@ export interface GetPastePastePasteIdGetRequest {
24
24
  * @interface PasteApiInterface
25
25
  */
26
26
  export interface PasteApiInterface {
27
+ /**
28
+ * Creates request options for createPastePastePost without sending the request
29
+ * @param {PasteInput} pasteInput
30
+ * @throws {RequiredError}
31
+ * @memberof PasteApiInterface
32
+ */
33
+ createPastePastePostRequestOpts(requestParameters: CreatePastePastePostRequest): Promise<runtime.RequestOpts>;
27
34
  /**
28
35
  * Create a new paste.
29
36
  * @summary Create Paste
@@ -38,6 +45,13 @@ export interface PasteApiInterface {
38
45
  * Create Paste
39
46
  */
40
47
  createPastePastePost(requestParameters: CreatePastePastePostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PasteOutput>;
48
+ /**
49
+ * Creates request options for getPastePastePasteIdGet without sending the request
50
+ * @param {string} pasteId
51
+ * @throws {RequiredError}
52
+ * @memberof PasteApiInterface
53
+ */
54
+ getPastePastePasteIdGetRequestOpts(requestParameters: GetPastePastePasteIdGetRequest): Promise<runtime.RequestOpts>;
41
55
  /**
42
56
  * Get a paste by ID.
43
57
  * @summary Get Paste
@@ -57,6 +71,10 @@ export interface PasteApiInterface {
57
71
  *
58
72
  */
59
73
  export declare class PasteApi extends runtime.BaseAPI implements PasteApiInterface {
74
+ /**
75
+ * Creates request options for createPastePastePost without sending the request
76
+ */
77
+ createPastePastePostRequestOpts(requestParameters: CreatePastePastePostRequest): Promise<runtime.RequestOpts>;
60
78
  /**
61
79
  * Create a new paste.
62
80
  * Create Paste
@@ -67,6 +85,10 @@ export declare class PasteApi extends runtime.BaseAPI implements PasteApiInterfa
67
85
  * Create Paste
68
86
  */
69
87
  createPastePastePost(requestParameters: CreatePastePastePostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PasteOutput>;
88
+ /**
89
+ * Creates request options for getPastePastePasteIdGet without sending the request
90
+ */
91
+ getPastePastePasteIdGetRequestOpts(requestParameters: GetPastePastePasteIdGetRequest): Promise<runtime.RequestOpts>;
70
92
  /**
71
93
  * Get a paste by ID.
72
94
  * Get Paste
@@ -5,7 +5,7 @@
5
5
  * Fox API
6
6
  * Warning: Please add a custom user agent header to your requests. This would help us fighting against DDoS attacks in future, while keeping your application\'s access to the API. In future, this may be a mandatory requirement. To reduce the system load, the API endpoints are rate limited. The default limit is 30 requests per minute. Contact admin@orangefox.tech if you need a higher limit. The requests may be logged for analytics and development purposes.
7
7
  *
8
- * The version of the OpenAPI document: 5.3.3
8
+ * The version of the OpenAPI document: 5.4.0
9
9
  * Contact: admin@orangefox.tech
10
10
  *
11
11
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -30,10 +30,9 @@ const index_1 = require("../models/index");
30
30
  */
31
31
  class PasteApi extends runtime.BaseAPI {
32
32
  /**
33
- * Create a new paste.
34
- * Create Paste
33
+ * Creates request options for createPastePastePost without sending the request
35
34
  */
36
- createPastePastePostRaw(requestParameters, initOverrides) {
35
+ createPastePastePostRequestOpts(requestParameters) {
37
36
  return __awaiter(this, void 0, void 0, function* () {
38
37
  if (requestParameters['pasteInput'] == null) {
39
38
  throw new runtime.RequiredError('pasteInput', 'Required parameter "pasteInput" was null or undefined when calling createPastePastePost().');
@@ -42,13 +41,23 @@ class PasteApi extends runtime.BaseAPI {
42
41
  const headerParameters = {};
43
42
  headerParameters['Content-Type'] = 'application/json';
44
43
  let urlPath = `/paste/`;
45
- const response = yield this.request({
44
+ return {
46
45
  path: urlPath,
47
46
  method: 'POST',
48
47
  headers: headerParameters,
49
48
  query: queryParameters,
50
49
  body: (0, index_1.PasteInputToJSON)(requestParameters['pasteInput']),
51
- }, initOverrides);
50
+ };
51
+ });
52
+ }
53
+ /**
54
+ * Create a new paste.
55
+ * Create Paste
56
+ */
57
+ createPastePastePostRaw(requestParameters, initOverrides) {
58
+ return __awaiter(this, void 0, void 0, function* () {
59
+ const requestOptions = yield this.createPastePastePostRequestOpts(requestParameters);
60
+ const response = yield this.request(requestOptions, initOverrides);
52
61
  return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.PasteOutputFromJSON)(jsonValue));
53
62
  });
54
63
  }
@@ -63,10 +72,9 @@ class PasteApi extends runtime.BaseAPI {
63
72
  });
64
73
  }
65
74
  /**
66
- * Get a paste by ID.
67
- * Get Paste
75
+ * Creates request options for getPastePastePasteIdGet without sending the request
68
76
  */
69
- getPastePastePasteIdGetRaw(requestParameters, initOverrides) {
77
+ getPastePastePasteIdGetRequestOpts(requestParameters) {
70
78
  return __awaiter(this, void 0, void 0, function* () {
71
79
  if (requestParameters['pasteId'] == null) {
72
80
  throw new runtime.RequiredError('pasteId', 'Required parameter "pasteId" was null or undefined when calling getPastePastePasteIdGet().');
@@ -75,12 +83,22 @@ class PasteApi extends runtime.BaseAPI {
75
83
  const headerParameters = {};
76
84
  let urlPath = `/paste/{paste_id}`;
77
85
  urlPath = urlPath.replace(`{${"paste_id"}}`, encodeURIComponent(String(requestParameters['pasteId'])));
78
- const response = yield this.request({
86
+ return {
79
87
  path: urlPath,
80
88
  method: 'GET',
81
89
  headers: headerParameters,
82
90
  query: queryParameters,
83
- }, initOverrides);
91
+ };
92
+ });
93
+ }
94
+ /**
95
+ * Get a paste by ID.
96
+ * Get Paste
97
+ */
98
+ getPastePastePasteIdGetRaw(requestParameters, initOverrides) {
99
+ return __awaiter(this, void 0, void 0, function* () {
100
+ const requestOptions = yield this.getPastePastePasteIdGetRequestOpts(requestParameters);
101
+ const response = yield this.request(requestOptions, initOverrides);
84
102
  return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.PasteOutputFromJSON)(jsonValue));
85
103
  });
86
104
  }