@orangefox-recovery/foxinternalclient 5.2.1

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 (83) hide show
  1. package/.openapi-generator/FILES +63 -0
  2. package/.openapi-generator/VERSION +1 -0
  3. package/.openapi-generator-ignore +23 -0
  4. package/README.md +155 -0
  5. package/api.ts +5275 -0
  6. package/base.ts +86 -0
  7. package/common.ts +150 -0
  8. package/configuration.ts +115 -0
  9. package/dist/api.d.ts +3508 -0
  10. package/dist/api.js +3078 -0
  11. package/dist/base.d.ts +66 -0
  12. package/dist/base.js +65 -0
  13. package/dist/common.d.ts +65 -0
  14. package/dist/common.js +161 -0
  15. package/dist/configuration.d.ts +91 -0
  16. package/dist/configuration.js +44 -0
  17. package/dist/esm/api.d.ts +3508 -0
  18. package/dist/esm/api.js +3051 -0
  19. package/dist/esm/base.d.ts +66 -0
  20. package/dist/esm/base.js +60 -0
  21. package/dist/esm/common.d.ts +65 -0
  22. package/dist/esm/common.js +149 -0
  23. package/dist/esm/configuration.d.ts +91 -0
  24. package/dist/esm/configuration.js +40 -0
  25. package/dist/esm/index.d.ts +13 -0
  26. package/dist/esm/index.js +15 -0
  27. package/dist/index.d.ts +13 -0
  28. package/dist/index.js +31 -0
  29. package/docs/BodyChangePasswordProfileChangePasswordPost.md +22 -0
  30. package/docs/BuildStatusEnum.md +18 -0
  31. package/docs/BuildTaskResponse.md +36 -0
  32. package/docs/BuildTaskShortResponse.md +32 -0
  33. package/docs/DeviceApi.md +253 -0
  34. package/docs/DeviceInternalResponse.md +48 -0
  35. package/docs/DeviceResponse.md +44 -0
  36. package/docs/DeviceStatsResponse.md +24 -0
  37. package/docs/DeviceUpdateBody.md +30 -0
  38. package/docs/FFStatusEnum.md +12 -0
  39. package/docs/FFStatusResponse.md +20 -0
  40. package/docs/FoxFactoryApi.md +375 -0
  41. package/docs/GitlabApi.md +62 -0
  42. package/docs/GlobalStatsAggregationModel.md +26 -0
  43. package/docs/HTTPValidationError.md +20 -0
  44. package/docs/InternalApi.md +961 -0
  45. package/docs/ListResponseReleaseResponse.md +22 -0
  46. package/docs/ListResponseShortDeviceResponse.md +22 -0
  47. package/docs/ListResponseShortReleaseResponse.md +22 -0
  48. package/docs/ListResponseStr.md +22 -0
  49. package/docs/ListResponseUserShortResponse.md +22 -0
  50. package/docs/LogListResponse.md +26 -0
  51. package/docs/LogResponse.md +36 -0
  52. package/docs/MaintainerShortModel.md +26 -0
  53. package/docs/NewBuildTaskBody.md +28 -0
  54. package/docs/NewDeviceBody.md +26 -0
  55. package/docs/RecoveryImgResponse.md +22 -0
  56. package/docs/ReleaseApi.md +292 -0
  57. package/docs/ReleaseGroupsResponse.md +20 -0
  58. package/docs/ReleaseInternalResponse.md +62 -0
  59. package/docs/ReleaseInternalResponsePropValue.md +18 -0
  60. package/docs/ReleaseResponse.md +56 -0
  61. package/docs/ReleaseStatsResponse.md +24 -0
  62. package/docs/ReleaseType.md +12 -0
  63. package/docs/ReleaseUpdateBody.md +26 -0
  64. package/docs/ReleasesSort.md +10 -0
  65. package/docs/ResponseGetReleases.md +22 -0
  66. package/docs/ShortDeviceResponse.md +38 -0
  67. package/docs/ShortReleaseResponse.md +44 -0
  68. package/docs/StatsApi.md +53 -0
  69. package/docs/TaskUpdateBody.md +22 -0
  70. package/docs/TokenResponse.md +22 -0
  71. package/docs/UserGitlab.md +20 -0
  72. package/docs/UserInternalResponse.md +38 -0
  73. package/docs/UserMail.md +20 -0
  74. package/docs/UserShortResponse.md +26 -0
  75. package/docs/UserTelegram.md +20 -0
  76. package/docs/UserUpdateBody.md +28 -0
  77. package/docs/ValidationError.md +24 -0
  78. package/docs/ValidationErrorLocInner.md +18 -0
  79. package/git_push.sh +57 -0
  80. package/index.ts +18 -0
  81. package/package.json +41 -0
  82. package/tsconfig.esm.json +7 -0
  83. package/tsconfig.json +18 -0
@@ -0,0 +1,375 @@
1
+ # FoxFactoryApi
2
+
3
+ All URIs are relative to *https://api.orangefox.download*
4
+
5
+ |Method | HTTP request | Description|
6
+ |------------- | ------------- | -------------|
7
+ |[**cancelTaskFactoryTaskIdCancelPost**](#canceltaskfactorytaskidcancelpost) | **POST** /factory/{task_id}/cancel | Cancel Task|
8
+ |[**deleteTaskFactoryTaskIdDelete**](#deletetaskfactorytaskiddelete) | **DELETE** /factory/{task_id} | Delete Task|
9
+ |[**factoryStatusFactoryStatusGet**](#factorystatusfactorystatusget) | **GET** /factory/status | Factory Status|
10
+ |[**getTaskFactoryTaskIdGet**](#gettaskfactorytaskidget) | **GET** /factory/{task_id} | Get Task|
11
+ |[**listTasksFactoryGet**](#listtasksfactoryget) | **GET** /factory/ | List Tasks|
12
+ |[**newTaskFactoryPost**](#newtaskfactorypost) | **POST** /factory/ | New Task|
13
+ |[**updateTaskFactoryTaskIdPatch**](#updatetaskfactorytaskidpatch) | **PATCH** /factory/{task_id} | Update Task|
14
+
15
+ # **cancelTaskFactoryTaskIdCancelPost**
16
+ > BuildTaskResponse cancelTaskFactoryTaskIdCancelPost()
17
+
18
+ Cancels a build task given its identifier. The task\'s status is updated to indicate that it is in the process of cancellation. If the task with the specified ID is not found, a 404 HTTP exception is raised.
19
+
20
+ ### Example
21
+
22
+ ```typescript
23
+ import {
24
+ FoxFactoryApi,
25
+ Configuration
26
+ } from '@orangefox-recovery/foxinternalclient';
27
+
28
+ const configuration = new Configuration();
29
+ const apiInstance = new FoxFactoryApi(configuration);
30
+
31
+ let taskId: any; // (default to undefined)
32
+
33
+ const { status, data } = await apiInstance.cancelTaskFactoryTaskIdCancelPost(
34
+ taskId
35
+ );
36
+ ```
37
+
38
+ ### Parameters
39
+
40
+ |Name | Type | Description | Notes|
41
+ |------------- | ------------- | ------------- | -------------|
42
+ | **taskId** | **any** | | defaults to undefined|
43
+
44
+
45
+ ### Return type
46
+
47
+ **BuildTaskResponse**
48
+
49
+ ### Authorization
50
+
51
+ No authorization required
52
+
53
+ ### HTTP request headers
54
+
55
+ - **Content-Type**: Not defined
56
+ - **Accept**: application/json
57
+
58
+
59
+ ### HTTP response details
60
+ | Status code | Description | Response headers |
61
+ |-------------|-------------|------------------|
62
+ |**200** | Successful Response | - |
63
+ |**422** | Validation Error | - |
64
+
65
+ [[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)
66
+
67
+ # **deleteTaskFactoryTaskIdDelete**
68
+ > boolean deleteTaskFactoryTaskIdDelete()
69
+
70
+ Deletes a build task given its identifier. If the task with the specified ID is not found, a 404 HTTP exception is raised.
71
+
72
+ ### Example
73
+
74
+ ```typescript
75
+ import {
76
+ FoxFactoryApi,
77
+ Configuration
78
+ } from '@orangefox-recovery/foxinternalclient';
79
+
80
+ const configuration = new Configuration();
81
+ const apiInstance = new FoxFactoryApi(configuration);
82
+
83
+ let taskId: any; // (default to undefined)
84
+
85
+ const { status, data } = await apiInstance.deleteTaskFactoryTaskIdDelete(
86
+ taskId
87
+ );
88
+ ```
89
+
90
+ ### Parameters
91
+
92
+ |Name | Type | Description | Notes|
93
+ |------------- | ------------- | ------------- | -------------|
94
+ | **taskId** | **any** | | defaults to undefined|
95
+
96
+
97
+ ### Return type
98
+
99
+ **boolean**
100
+
101
+ ### Authorization
102
+
103
+ No authorization required
104
+
105
+ ### HTTP request headers
106
+
107
+ - **Content-Type**: Not defined
108
+ - **Accept**: application/json
109
+
110
+
111
+ ### HTTP response details
112
+ | Status code | Description | Response headers |
113
+ |-------------|-------------|------------------|
114
+ |**200** | Successful Response | - |
115
+ |**422** | Validation Error | - |
116
+
117
+ [[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)
118
+
119
+ # **factoryStatusFactoryStatusGet**
120
+ > FFStatusResponse factoryStatusFactoryStatusGet()
121
+
122
+
123
+ ### Example
124
+
125
+ ```typescript
126
+ import {
127
+ FoxFactoryApi,
128
+ Configuration
129
+ } from '@orangefox-recovery/foxinternalclient';
130
+
131
+ const configuration = new Configuration();
132
+ const apiInstance = new FoxFactoryApi(configuration);
133
+
134
+ const { status, data } = await apiInstance.factoryStatusFactoryStatusGet();
135
+ ```
136
+
137
+ ### Parameters
138
+ This endpoint does not have any parameters.
139
+
140
+
141
+ ### Return type
142
+
143
+ **FFStatusResponse**
144
+
145
+ ### Authorization
146
+
147
+ No authorization required
148
+
149
+ ### HTTP request headers
150
+
151
+ - **Content-Type**: Not defined
152
+ - **Accept**: application/json
153
+
154
+
155
+ ### HTTP response details
156
+ | Status code | Description | Response headers |
157
+ |-------------|-------------|------------------|
158
+ |**200** | Successful Response | - |
159
+
160
+ [[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)
161
+
162
+ # **getTaskFactoryTaskIdGet**
163
+ > BuildTaskResponse getTaskFactoryTaskIdGet()
164
+
165
+ Retrieves the details of a specific build task. This endpoint allows a user to fetch detailed information about a build task by its ID. Access to this endpoint is restricted to users with the \'maintainer\' or \'foxworker\' roles. Depending on the user\'s roles, returned task details may differ. Admin users will receive all task details, while others will have some fields excluded.
166
+
167
+ ### Example
168
+
169
+ ```typescript
170
+ import {
171
+ FoxFactoryApi,
172
+ Configuration
173
+ } from '@orangefox-recovery/foxinternalclient';
174
+
175
+ const configuration = new Configuration();
176
+ const apiInstance = new FoxFactoryApi(configuration);
177
+
178
+ let taskId: any; // (default to undefined)
179
+
180
+ const { status, data } = await apiInstance.getTaskFactoryTaskIdGet(
181
+ taskId
182
+ );
183
+ ```
184
+
185
+ ### Parameters
186
+
187
+ |Name | Type | Description | Notes|
188
+ |------------- | ------------- | ------------- | -------------|
189
+ | **taskId** | **any** | | defaults to undefined|
190
+
191
+
192
+ ### Return type
193
+
194
+ **BuildTaskResponse**
195
+
196
+ ### Authorization
197
+
198
+ No authorization required
199
+
200
+ ### HTTP request headers
201
+
202
+ - **Content-Type**: Not defined
203
+ - **Accept**: application/json
204
+
205
+
206
+ ### HTTP response details
207
+ | Status code | Description | Response headers |
208
+ |-------------|-------------|------------------|
209
+ |**200** | Successful Response | - |
210
+ |**422** | Validation Error | - |
211
+
212
+ [[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)
213
+
214
+ # **listTasksFactoryGet**
215
+ > Array<BuildTaskShortResponse> listTasksFactoryGet()
216
+
217
+ Get a list of all build tasks. This endpoint retrieves all build tasks from the database and returns them as a list of abbreviated responses. Parameters: device_id (ObjectId, optional): Filter tasks by device ID
218
+
219
+ ### Example
220
+
221
+ ```typescript
222
+ import {
223
+ FoxFactoryApi,
224
+ Configuration,
225
+
226
+ } from '@orangefox-recovery/foxinternalclient';
227
+
228
+ const configuration = new Configuration();
229
+ const apiInstance = new FoxFactoryApi(configuration);
230
+
231
+ let deviceId: ; // (optional) (default to undefined)
232
+
233
+ const { status, data } = await apiInstance.listTasksFactoryGet(
234
+ deviceId
235
+ );
236
+ ```
237
+
238
+ ### Parameters
239
+
240
+ |Name | Type | Description | Notes|
241
+ |------------- | ------------- | ------------- | -------------|
242
+ | **deviceId** | **** | | (optional) defaults to undefined|
243
+
244
+
245
+ ### Return type
246
+
247
+ **Array<BuildTaskShortResponse>**
248
+
249
+ ### Authorization
250
+
251
+ No authorization required
252
+
253
+ ### HTTP request headers
254
+
255
+ - **Content-Type**: Not defined
256
+ - **Accept**: application/json
257
+
258
+
259
+ ### HTTP response details
260
+ | Status code | Description | Response headers |
261
+ |-------------|-------------|------------------|
262
+ |**200** | Successful Response | - |
263
+ |**422** | Validation Error | - |
264
+
265
+ [[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)
266
+
267
+ # **newTaskFactoryPost**
268
+ > boolean newTaskFactoryPost(newBuildTaskBody)
269
+
270
+ Handles the creation of a new build task including validations for the device existence and its connection to GitLab. It initializes a new task with a pending status and the required details, then saves it to the database before returning the task model.
271
+
272
+ ### Example
273
+
274
+ ```typescript
275
+ import {
276
+ FoxFactoryApi,
277
+ Configuration,
278
+ NewBuildTaskBody
279
+ } from '@orangefox-recovery/foxinternalclient';
280
+
281
+ const configuration = new Configuration();
282
+ const apiInstance = new FoxFactoryApi(configuration);
283
+
284
+ let newBuildTaskBody: NewBuildTaskBody; //
285
+
286
+ const { status, data } = await apiInstance.newTaskFactoryPost(
287
+ newBuildTaskBody
288
+ );
289
+ ```
290
+
291
+ ### Parameters
292
+
293
+ |Name | Type | Description | Notes|
294
+ |------------- | ------------- | ------------- | -------------|
295
+ | **newBuildTaskBody** | **NewBuildTaskBody**| | |
296
+
297
+
298
+ ### Return type
299
+
300
+ **boolean**
301
+
302
+ ### Authorization
303
+
304
+ No authorization required
305
+
306
+ ### HTTP request headers
307
+
308
+ - **Content-Type**: application/json
309
+ - **Accept**: application/json
310
+
311
+
312
+ ### HTTP response details
313
+ | Status code | Description | Response headers |
314
+ |-------------|-------------|------------------|
315
+ |**200** | Successful Response | - |
316
+ |**422** | Validation Error | - |
317
+
318
+ [[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)
319
+
320
+ # **updateTaskFactoryTaskIdPatch**
321
+ > boolean updateTaskFactoryTaskIdPatch(taskUpdateBody)
322
+
323
+ Updates an existing build task by its unique identifier. The function allows updates to the task\'s status and logs. If the task\'s status is set to a value indicating completion, the finished timestamp is also updated. Allowed only for foxworker users.
324
+
325
+ ### Example
326
+
327
+ ```typescript
328
+ import {
329
+ FoxFactoryApi,
330
+ Configuration,
331
+ TaskUpdateBody
332
+ } from '@orangefox-recovery/foxinternalclient';
333
+
334
+ const configuration = new Configuration();
335
+ const apiInstance = new FoxFactoryApi(configuration);
336
+
337
+ let taskId: any; // (default to undefined)
338
+ let taskUpdateBody: TaskUpdateBody; //
339
+
340
+ const { status, data } = await apiInstance.updateTaskFactoryTaskIdPatch(
341
+ taskId,
342
+ taskUpdateBody
343
+ );
344
+ ```
345
+
346
+ ### Parameters
347
+
348
+ |Name | Type | Description | Notes|
349
+ |------------- | ------------- | ------------- | -------------|
350
+ | **taskUpdateBody** | **TaskUpdateBody**| | |
351
+ | **taskId** | **any** | | defaults to undefined|
352
+
353
+
354
+ ### Return type
355
+
356
+ **boolean**
357
+
358
+ ### Authorization
359
+
360
+ No authorization required
361
+
362
+ ### HTTP request headers
363
+
364
+ - **Content-Type**: application/json
365
+ - **Accept**: application/json
366
+
367
+
368
+ ### HTTP response details
369
+ | Status code | Description | Response headers |
370
+ |-------------|-------------|------------------|
371
+ |**200** | Successful Response | - |
372
+ |**422** | Validation Error | - |
373
+
374
+ [[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)
375
+
@@ -0,0 +1,62 @@
1
+ # GitlabApi
2
+
3
+ All URIs are relative to *https://api.orangefox.download*
4
+
5
+ |Method | HTTP request | Description|
6
+ |------------- | ------------- | -------------|
7
+ |[**deviceAddGitlabRepoGitlabDeviceDeviceIdGitlabPost**](#deviceaddgitlabrepogitlabdevicedeviceidgitlabpost) | **POST** /gitlab/device/{device_id}/gitlab | Device Add Gitlab Repo|
8
+
9
+ # **deviceAddGitlabRepoGitlabDeviceDeviceIdGitlabPost**
10
+ > boolean deviceAddGitlabRepoGitlabDeviceDeviceIdGitlabPost()
11
+
12
+
13
+ ### Example
14
+
15
+ ```typescript
16
+ import {
17
+ GitlabApi,
18
+ Configuration
19
+ } from '@orangefox-recovery/foxinternalclient';
20
+
21
+ const configuration = new Configuration();
22
+ const apiInstance = new GitlabApi(configuration);
23
+
24
+ let deviceId: string; // (default to undefined)
25
+ let glProjectUrl: string; // (default to undefined)
26
+
27
+ const { status, data } = await apiInstance.deviceAddGitlabRepoGitlabDeviceDeviceIdGitlabPost(
28
+ deviceId,
29
+ glProjectUrl
30
+ );
31
+ ```
32
+
33
+ ### Parameters
34
+
35
+ |Name | Type | Description | Notes|
36
+ |------------- | ------------- | ------------- | -------------|
37
+ | **deviceId** | [**string**] | | defaults to undefined|
38
+ | **glProjectUrl** | [**string**] | | defaults to undefined|
39
+
40
+
41
+ ### Return type
42
+
43
+ **boolean**
44
+
45
+ ### Authorization
46
+
47
+ No authorization required
48
+
49
+ ### HTTP request headers
50
+
51
+ - **Content-Type**: Not defined
52
+ - **Accept**: application/json
53
+
54
+
55
+ ### HTTP response details
56
+ | Status code | Description | Response headers |
57
+ |-------------|-------------|------------------|
58
+ |**200** | Successful Response | - |
59
+ |**422** | Validation Error | - |
60
+
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)
62
+
@@ -0,0 +1,26 @@
1
+ # GlobalStatsAggregationModel
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **count** | **number** | | [default to undefined]
9
+ **deviceCount** | **number** | | [default to undefined]
10
+ **releaseCount** | **number** | | [default to undefined]
11
+ **days** | **{ [key: string]: number; }** | | [default to undefined]
12
+
13
+ ## Example
14
+
15
+ ```typescript
16
+ import { GlobalStatsAggregationModel } from '@orangefox-recovery/foxinternalclient';
17
+
18
+ const instance: GlobalStatsAggregationModel = {
19
+ count,
20
+ deviceCount,
21
+ releaseCount,
22
+ days,
23
+ };
24
+ ```
25
+
26
+ [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
@@ -0,0 +1,20 @@
1
+ # HTTPValidationError
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **detail** | [**Array&lt;ValidationError&gt;**](ValidationError.md) | | [optional] [default to undefined]
9
+
10
+ ## Example
11
+
12
+ ```typescript
13
+ import { HTTPValidationError } from '@orangefox-recovery/foxinternalclient';
14
+
15
+ const instance: HTTPValidationError = {
16
+ detail,
17
+ };
18
+ ```
19
+
20
+ [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)