tuix-subscription-service-client 0.0.1 → 0.0.3
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 +22 -0
- package/apis/ClientApi.js +262 -0
- package/apis/ClientApi.js.map +1 -1
- package/apis/ClientApi.ts +431 -0
- package/docs/APIKeyDTO.md +40 -0
- package/docs/AccountDTO.md +34 -0
- package/docs/ApplicationDTO.md +42 -0
- package/docs/ApplicationWithApplicationCountDTO.md +44 -0
- package/docs/ClientApi.md +655 -0
- package/docs/CreateAPIKeyRequestDTO.md +34 -0
- package/docs/CreateAPIKeyResponseDTO.md +42 -0
- package/docs/CreateAccountDTO.md +36 -0
- package/docs/CreateApplicationDTO.md +36 -0
- package/docs/GetAPIKeysResponseDTO.md +42 -0
- package/docs/PaginatedApplicationsDTO.md +42 -0
- package/docs/UpdateApplicationDTO.md +36 -0
- package/models/APIKeyDTO.js +55 -0
- package/models/APIKeyDTO.js.map +1 -0
- package/models/APIKeyDTO.ts +89 -0
- package/models/AccountDTO.js +49 -0
- package/models/AccountDTO.js.map +1 -0
- package/models/AccountDTO.ts +65 -0
- package/models/ApplicationDTO.js +57 -0
- package/models/ApplicationDTO.js.map +1 -0
- package/models/ApplicationDTO.ts +97 -0
- package/models/ApplicationWithApplicationCountDTO.js +59 -0
- package/models/ApplicationWithApplicationCountDTO.js.map +1 -0
- package/models/ApplicationWithApplicationCountDTO.ts +105 -0
- package/models/CreateAPIKeyRequestDTO.js +51 -0
- package/models/CreateAPIKeyRequestDTO.js.map +1 -0
- package/models/CreateAPIKeyRequestDTO.ts +66 -0
- package/models/CreateAPIKeyResponseDTO.js +57 -0
- package/models/CreateAPIKeyResponseDTO.js.map +1 -0
- package/models/CreateAPIKeyResponseDTO.ts +97 -0
- package/models/CreateAccountDTO.js +55 -0
- package/models/CreateAccountDTO.js.map +1 -0
- package/models/CreateAccountDTO.ts +75 -0
- package/models/CreateApplicationDTO.js +55 -0
- package/models/CreateApplicationDTO.js.map +1 -0
- package/models/CreateApplicationDTO.ts +75 -0
- package/models/GetAPIKeysResponseDTO.js +58 -0
- package/models/GetAPIKeysResponseDTO.js.map +1 -0
- package/models/GetAPIKeysResponseDTO.ts +105 -0
- package/models/PaginatedApplicationsDTO.js +68 -0
- package/models/PaginatedApplicationsDTO.js.map +1 -0
- package/models/PaginatedApplicationsDTO.ts +110 -0
- package/models/UpdateApplicationDTO.js +51 -0
- package/models/UpdateApplicationDTO.js.map +1 -0
- package/models/UpdateApplicationDTO.ts +73 -0
- package/models/index.js +11 -0
- package/models/index.js.map +1 -1
- package/models/index.ts +11 -0
- package/package.json +1 -1
- package/tsconfig.build.tsbuildinfo +1 -1
package/docs/ClientApi.md
CHANGED
|
@@ -4,13 +4,377 @@ All URIs are relative to *http://0.0.0.0:3000/local*
|
|
|
4
4
|
|
|
5
5
|
| Method | HTTP request | Description |
|
|
6
6
|
|------------- | ------------- | -------------|
|
|
7
|
+
| [**apiKeysGet**](ClientApi.md#apikeysget) | **GET** /api-keys | Get all API keys for the authenticated user |
|
|
8
|
+
| [**apiKeysIdDelete**](ClientApi.md#apikeysiddelete) | **DELETE** /api-keys/{id} | Delete an API key |
|
|
9
|
+
| [**apiKeysPost**](ClientApi.md#apikeyspost) | **POST** /api-keys | Create a new API key |
|
|
10
|
+
| [**createAccount**](ClientApi.md#createaccount) | **POST** /accounts | Creates a new account |
|
|
11
|
+
| [**createApplication**](ClientApi.md#createapplication) | **POST** /applications | Create a new application |
|
|
7
12
|
| [**createSubscription**](ClientApi.md#createsubscription) | **POST** /subscriptions | Create a new subscription |
|
|
13
|
+
| [**deleteApplication**](ClientApi.md#deleteapplication) | **DELETE** /applications/{applicationId} | Delete an application |
|
|
8
14
|
| [**deleteSubscription**](ClientApi.md#deletesubscription) | **DELETE** /subscriptions/{id} | Delete a subscription |
|
|
15
|
+
| [**getApplicationByID**](ClientApi.md#getapplicationbyid) | **GET** /applications/{applicationId} | Get an application by applicationId |
|
|
16
|
+
| [**getApplications**](ClientApi.md#getapplications) | **GET** /applications | Get all applications for the account |
|
|
9
17
|
| [**getSubscriptions**](ClientApi.md#getsubscriptions) | **GET** /subscriptions | Get all subscriptions |
|
|
10
18
|
| [**sendNewsletter**](ClientApi.md#sendnewsletter) | **POST** /subscriptions/newsletter | Send newsletter to all subscribers |
|
|
19
|
+
| [**updateApplication**](ClientApi.md#updateapplication) | **PATCH** /applications/{applicationId} | Update an application |
|
|
11
20
|
|
|
12
21
|
|
|
13
22
|
|
|
23
|
+
## apiKeysGet
|
|
24
|
+
|
|
25
|
+
> GetAPIKeysResponseDTO apiKeysGet(page, pageSize)
|
|
26
|
+
|
|
27
|
+
Get all API keys for the authenticated user
|
|
28
|
+
|
|
29
|
+
Retrieve all API keys associated with the authenticated user\'s account with pagination.
|
|
30
|
+
|
|
31
|
+
### Example
|
|
32
|
+
|
|
33
|
+
```ts
|
|
34
|
+
import {
|
|
35
|
+
Configuration,
|
|
36
|
+
ClientApi,
|
|
37
|
+
} from '';
|
|
38
|
+
import type { ApiKeysGetRequest } from '';
|
|
39
|
+
|
|
40
|
+
async function example() {
|
|
41
|
+
console.log("🚀 Testing SDK...");
|
|
42
|
+
const api = new ClientApi();
|
|
43
|
+
|
|
44
|
+
const body = {
|
|
45
|
+
// number | Page number for pagination(default: 1) (optional)
|
|
46
|
+
page: 56,
|
|
47
|
+
// number | Limit number of items per page (default: 10) (optional)
|
|
48
|
+
pageSize: 56,
|
|
49
|
+
} satisfies ApiKeysGetRequest;
|
|
50
|
+
|
|
51
|
+
try {
|
|
52
|
+
const data = await api.apiKeysGet(body);
|
|
53
|
+
console.log(data);
|
|
54
|
+
} catch (error) {
|
|
55
|
+
console.error(error);
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
// Run the test
|
|
60
|
+
example().catch(console.error);
|
|
61
|
+
```
|
|
62
|
+
|
|
63
|
+
### Parameters
|
|
64
|
+
|
|
65
|
+
|
|
66
|
+
| Name | Type | Description | Notes |
|
|
67
|
+
|------------- | ------------- | ------------- | -------------|
|
|
68
|
+
| **page** | `number` | Page number for pagination(default: 1) | [Optional] [Defaults to `1`] |
|
|
69
|
+
| **pageSize** | `number` | Limit number of items per page (default: 10) | [Optional] [Defaults to `10`] |
|
|
70
|
+
|
|
71
|
+
### Return type
|
|
72
|
+
|
|
73
|
+
[**GetAPIKeysResponseDTO**](GetAPIKeysResponseDTO.md)
|
|
74
|
+
|
|
75
|
+
### Authorization
|
|
76
|
+
|
|
77
|
+
No authorization required
|
|
78
|
+
|
|
79
|
+
### HTTP request headers
|
|
80
|
+
|
|
81
|
+
- **Content-Type**: Not defined
|
|
82
|
+
- **Accept**: `application/json`
|
|
83
|
+
|
|
84
|
+
|
|
85
|
+
### HTTP response details
|
|
86
|
+
| Status code | Description | Response headers |
|
|
87
|
+
|-------------|-------------|------------------|
|
|
88
|
+
| **200** | Returns a paginated list of API keys | - |
|
|
89
|
+
| **401** | Unauthorized | - |
|
|
90
|
+
| **500** | Internal server error: Failed to retrieve API keys | - |
|
|
91
|
+
|
|
92
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
93
|
+
|
|
94
|
+
|
|
95
|
+
## apiKeysIdDelete
|
|
96
|
+
|
|
97
|
+
> apiKeysIdDelete(id)
|
|
98
|
+
|
|
99
|
+
Delete an API key
|
|
100
|
+
|
|
101
|
+
Delete a specific API key belonging to the authenticated user.
|
|
102
|
+
|
|
103
|
+
### Example
|
|
104
|
+
|
|
105
|
+
```ts
|
|
106
|
+
import {
|
|
107
|
+
Configuration,
|
|
108
|
+
ClientApi,
|
|
109
|
+
} from '';
|
|
110
|
+
import type { ApiKeysIdDeleteRequest } from '';
|
|
111
|
+
|
|
112
|
+
async function example() {
|
|
113
|
+
console.log("🚀 Testing SDK...");
|
|
114
|
+
const api = new ClientApi();
|
|
115
|
+
|
|
116
|
+
const body = {
|
|
117
|
+
// string | API Key ID
|
|
118
|
+
id: id_example,
|
|
119
|
+
} satisfies ApiKeysIdDeleteRequest;
|
|
120
|
+
|
|
121
|
+
try {
|
|
122
|
+
const data = await api.apiKeysIdDelete(body);
|
|
123
|
+
console.log(data);
|
|
124
|
+
} catch (error) {
|
|
125
|
+
console.error(error);
|
|
126
|
+
}
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
// Run the test
|
|
130
|
+
example().catch(console.error);
|
|
131
|
+
```
|
|
132
|
+
|
|
133
|
+
### Parameters
|
|
134
|
+
|
|
135
|
+
|
|
136
|
+
| Name | Type | Description | Notes |
|
|
137
|
+
|------------- | ------------- | ------------- | -------------|
|
|
138
|
+
| **id** | `string` | API Key ID | [Defaults to `undefined`] |
|
|
139
|
+
|
|
140
|
+
### Return type
|
|
141
|
+
|
|
142
|
+
`void` (Empty response body)
|
|
143
|
+
|
|
144
|
+
### Authorization
|
|
145
|
+
|
|
146
|
+
No authorization required
|
|
147
|
+
|
|
148
|
+
### HTTP request headers
|
|
149
|
+
|
|
150
|
+
- **Content-Type**: Not defined
|
|
151
|
+
- **Accept**: `application/json`
|
|
152
|
+
|
|
153
|
+
|
|
154
|
+
### HTTP response details
|
|
155
|
+
| Status code | Description | Response headers |
|
|
156
|
+
|-------------|-------------|------------------|
|
|
157
|
+
| **204** | API key deleted successfully | - |
|
|
158
|
+
| **400** | Invalid key ID format | - |
|
|
159
|
+
| **401** | Unauthorized | - |
|
|
160
|
+
| **404** | API key not found | - |
|
|
161
|
+
| **500** | Internal server error: Failed to delete API key | - |
|
|
162
|
+
|
|
163
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
164
|
+
|
|
165
|
+
|
|
166
|
+
## apiKeysPost
|
|
167
|
+
|
|
168
|
+
> CreateAPIKeyResponseDTO apiKeysPost(createAPIKeyRequestDTO)
|
|
169
|
+
|
|
170
|
+
Create a new API key
|
|
171
|
+
|
|
172
|
+
Create a new API key for accessing the RAG service.
|
|
173
|
+
|
|
174
|
+
### Example
|
|
175
|
+
|
|
176
|
+
```ts
|
|
177
|
+
import {
|
|
178
|
+
Configuration,
|
|
179
|
+
ClientApi,
|
|
180
|
+
} from '';
|
|
181
|
+
import type { ApiKeysPostRequest } from '';
|
|
182
|
+
|
|
183
|
+
async function example() {
|
|
184
|
+
console.log("🚀 Testing SDK...");
|
|
185
|
+
const api = new ClientApi();
|
|
186
|
+
|
|
187
|
+
const body = {
|
|
188
|
+
// CreateAPIKeyRequestDTO | Create API Key request
|
|
189
|
+
createAPIKeyRequestDTO: ...,
|
|
190
|
+
} satisfies ApiKeysPostRequest;
|
|
191
|
+
|
|
192
|
+
try {
|
|
193
|
+
const data = await api.apiKeysPost(body);
|
|
194
|
+
console.log(data);
|
|
195
|
+
} catch (error) {
|
|
196
|
+
console.error(error);
|
|
197
|
+
}
|
|
198
|
+
}
|
|
199
|
+
|
|
200
|
+
// Run the test
|
|
201
|
+
example().catch(console.error);
|
|
202
|
+
```
|
|
203
|
+
|
|
204
|
+
### Parameters
|
|
205
|
+
|
|
206
|
+
|
|
207
|
+
| Name | Type | Description | Notes |
|
|
208
|
+
|------------- | ------------- | ------------- | -------------|
|
|
209
|
+
| **createAPIKeyRequestDTO** | [CreateAPIKeyRequestDTO](CreateAPIKeyRequestDTO.md) | Create API Key request | |
|
|
210
|
+
|
|
211
|
+
### Return type
|
|
212
|
+
|
|
213
|
+
[**CreateAPIKeyResponseDTO**](CreateAPIKeyResponseDTO.md)
|
|
214
|
+
|
|
215
|
+
### Authorization
|
|
216
|
+
|
|
217
|
+
No authorization required
|
|
218
|
+
|
|
219
|
+
### HTTP request headers
|
|
220
|
+
|
|
221
|
+
- **Content-Type**: `application/json`
|
|
222
|
+
- **Accept**: `application/json`
|
|
223
|
+
|
|
224
|
+
|
|
225
|
+
### HTTP response details
|
|
226
|
+
| Status code | Description | Response headers |
|
|
227
|
+
|-------------|-------------|------------------|
|
|
228
|
+
| **201** | Create an API key and returns the created key | - |
|
|
229
|
+
| **400** | Invalid request format | - |
|
|
230
|
+
| **401** | Unauthorized | - |
|
|
231
|
+
| **500** | Server Error: Failed to create API key | - |
|
|
232
|
+
|
|
233
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
234
|
+
|
|
235
|
+
|
|
236
|
+
## createAccount
|
|
237
|
+
|
|
238
|
+
> AccountDTO createAccount(createAccountDTO)
|
|
239
|
+
|
|
240
|
+
Creates a new account
|
|
241
|
+
|
|
242
|
+
Create an account
|
|
243
|
+
|
|
244
|
+
### Example
|
|
245
|
+
|
|
246
|
+
```ts
|
|
247
|
+
import {
|
|
248
|
+
Configuration,
|
|
249
|
+
ClientApi,
|
|
250
|
+
} from '';
|
|
251
|
+
import type { CreateAccountRequest } from '';
|
|
252
|
+
|
|
253
|
+
async function example() {
|
|
254
|
+
console.log("🚀 Testing SDK...");
|
|
255
|
+
const api = new ClientApi();
|
|
256
|
+
|
|
257
|
+
const body = {
|
|
258
|
+
// CreateAccountDTO | Account creation data
|
|
259
|
+
createAccountDTO: ...,
|
|
260
|
+
} satisfies CreateAccountRequest;
|
|
261
|
+
|
|
262
|
+
try {
|
|
263
|
+
const data = await api.createAccount(body);
|
|
264
|
+
console.log(data);
|
|
265
|
+
} catch (error) {
|
|
266
|
+
console.error(error);
|
|
267
|
+
}
|
|
268
|
+
}
|
|
269
|
+
|
|
270
|
+
// Run the test
|
|
271
|
+
example().catch(console.error);
|
|
272
|
+
```
|
|
273
|
+
|
|
274
|
+
### Parameters
|
|
275
|
+
|
|
276
|
+
|
|
277
|
+
| Name | Type | Description | Notes |
|
|
278
|
+
|------------- | ------------- | ------------- | -------------|
|
|
279
|
+
| **createAccountDTO** | [CreateAccountDTO](CreateAccountDTO.md) | Account creation data | |
|
|
280
|
+
|
|
281
|
+
### Return type
|
|
282
|
+
|
|
283
|
+
[**AccountDTO**](AccountDTO.md)
|
|
284
|
+
|
|
285
|
+
### Authorization
|
|
286
|
+
|
|
287
|
+
No authorization required
|
|
288
|
+
|
|
289
|
+
### HTTP request headers
|
|
290
|
+
|
|
291
|
+
- **Content-Type**: `application/json`
|
|
292
|
+
- **Accept**: `application/json`
|
|
293
|
+
|
|
294
|
+
|
|
295
|
+
### HTTP response details
|
|
296
|
+
| Status code | Description | Response headers |
|
|
297
|
+
|-------------|-------------|------------------|
|
|
298
|
+
| **201** | Create an account and returns the created account | - |
|
|
299
|
+
| **400** | Return an error if there is a missing or invalid field | - |
|
|
300
|
+
| **401** | Return an error if the user is not authenticated | - |
|
|
301
|
+
| **403** | Return an error if the user does not have the required permissions | - |
|
|
302
|
+
| **500** | Return an error if the server finds an error | - |
|
|
303
|
+
|
|
304
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
305
|
+
|
|
306
|
+
|
|
307
|
+
## createApplication
|
|
308
|
+
|
|
309
|
+
> ApplicationDTO createApplication(createApplicationDTO)
|
|
310
|
+
|
|
311
|
+
Create a new application
|
|
312
|
+
|
|
313
|
+
Create a new application for the authenticated account
|
|
314
|
+
|
|
315
|
+
### Example
|
|
316
|
+
|
|
317
|
+
```ts
|
|
318
|
+
import {
|
|
319
|
+
Configuration,
|
|
320
|
+
ClientApi,
|
|
321
|
+
} from '';
|
|
322
|
+
import type { CreateApplicationRequest } from '';
|
|
323
|
+
|
|
324
|
+
async function example() {
|
|
325
|
+
console.log("🚀 Testing SDK...");
|
|
326
|
+
const api = new ClientApi();
|
|
327
|
+
|
|
328
|
+
const body = {
|
|
329
|
+
// CreateApplicationDTO | Application creation data
|
|
330
|
+
createApplicationDTO: ...,
|
|
331
|
+
} satisfies CreateApplicationRequest;
|
|
332
|
+
|
|
333
|
+
try {
|
|
334
|
+
const data = await api.createApplication(body);
|
|
335
|
+
console.log(data);
|
|
336
|
+
} catch (error) {
|
|
337
|
+
console.error(error);
|
|
338
|
+
}
|
|
339
|
+
}
|
|
340
|
+
|
|
341
|
+
// Run the test
|
|
342
|
+
example().catch(console.error);
|
|
343
|
+
```
|
|
344
|
+
|
|
345
|
+
### Parameters
|
|
346
|
+
|
|
347
|
+
|
|
348
|
+
| Name | Type | Description | Notes |
|
|
349
|
+
|------------- | ------------- | ------------- | -------------|
|
|
350
|
+
| **createApplicationDTO** | [CreateApplicationDTO](CreateApplicationDTO.md) | Application creation data | |
|
|
351
|
+
|
|
352
|
+
### Return type
|
|
353
|
+
|
|
354
|
+
[**ApplicationDTO**](ApplicationDTO.md)
|
|
355
|
+
|
|
356
|
+
### Authorization
|
|
357
|
+
|
|
358
|
+
No authorization required
|
|
359
|
+
|
|
360
|
+
### HTTP request headers
|
|
361
|
+
|
|
362
|
+
- **Content-Type**: `application/json`
|
|
363
|
+
- **Accept**: `application/json`
|
|
364
|
+
|
|
365
|
+
|
|
366
|
+
### HTTP response details
|
|
367
|
+
| Status code | Description | Response headers |
|
|
368
|
+
|-------------|-------------|------------------|
|
|
369
|
+
| **201** | Create a application and returns the created application | - |
|
|
370
|
+
| **400** | Return an error if there is a missing or invalid field | - |
|
|
371
|
+
| **401** | Return an error if the user is not authenticated | - |
|
|
372
|
+
| **403** | Return an error if the user does not have the required permissions | - |
|
|
373
|
+
| **500** | Return an error if the server founds an error | - |
|
|
374
|
+
|
|
375
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
376
|
+
|
|
377
|
+
|
|
14
378
|
## createSubscription
|
|
15
379
|
|
|
16
380
|
> SubscriptionDTO createSubscription(createSubscriptionDTO)
|
|
@@ -82,6 +446,77 @@ No authorization required
|
|
|
82
446
|
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
83
447
|
|
|
84
448
|
|
|
449
|
+
## deleteApplication
|
|
450
|
+
|
|
451
|
+
> deleteApplication(applicationId)
|
|
452
|
+
|
|
453
|
+
Delete an application
|
|
454
|
+
|
|
455
|
+
Delete an application belonging to the authenticated account
|
|
456
|
+
|
|
457
|
+
### Example
|
|
458
|
+
|
|
459
|
+
```ts
|
|
460
|
+
import {
|
|
461
|
+
Configuration,
|
|
462
|
+
ClientApi,
|
|
463
|
+
} from '';
|
|
464
|
+
import type { DeleteApplicationRequest } from '';
|
|
465
|
+
|
|
466
|
+
async function example() {
|
|
467
|
+
console.log("🚀 Testing SDK...");
|
|
468
|
+
const api = new ClientApi();
|
|
469
|
+
|
|
470
|
+
const body = {
|
|
471
|
+
// string | Application ID
|
|
472
|
+
applicationId: 38400000-8cf0-11bd-b23e-10b96e4ef00d,
|
|
473
|
+
} satisfies DeleteApplicationRequest;
|
|
474
|
+
|
|
475
|
+
try {
|
|
476
|
+
const data = await api.deleteApplication(body);
|
|
477
|
+
console.log(data);
|
|
478
|
+
} catch (error) {
|
|
479
|
+
console.error(error);
|
|
480
|
+
}
|
|
481
|
+
}
|
|
482
|
+
|
|
483
|
+
// Run the test
|
|
484
|
+
example().catch(console.error);
|
|
485
|
+
```
|
|
486
|
+
|
|
487
|
+
### Parameters
|
|
488
|
+
|
|
489
|
+
|
|
490
|
+
| Name | Type | Description | Notes |
|
|
491
|
+
|------------- | ------------- | ------------- | -------------|
|
|
492
|
+
| **applicationId** | `string` | Application ID | [Defaults to `undefined`] |
|
|
493
|
+
|
|
494
|
+
### Return type
|
|
495
|
+
|
|
496
|
+
`void` (Empty response body)
|
|
497
|
+
|
|
498
|
+
### Authorization
|
|
499
|
+
|
|
500
|
+
No authorization required
|
|
501
|
+
|
|
502
|
+
### HTTP request headers
|
|
503
|
+
|
|
504
|
+
- **Content-Type**: Not defined
|
|
505
|
+
- **Accept**: `application/json`
|
|
506
|
+
|
|
507
|
+
|
|
508
|
+
### HTTP response details
|
|
509
|
+
| Status code | Description | Response headers |
|
|
510
|
+
|-------------|-------------|------------------|
|
|
511
|
+
| **204** | Application deleted | - |
|
|
512
|
+
| **400** | Return an error if provided ID is not a valid UUID | - |
|
|
513
|
+
| **401** | Return an error if the user is not authenticated | - |
|
|
514
|
+
| **403** | Return an error if the user does not have the required permissions | - |
|
|
515
|
+
| **500** | Return an error if the server founds an error | - |
|
|
516
|
+
|
|
517
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
518
|
+
|
|
519
|
+
|
|
85
520
|
## deleteSubscription
|
|
86
521
|
|
|
87
522
|
> deleteSubscription(id)
|
|
@@ -153,6 +588,151 @@ No authorization required
|
|
|
153
588
|
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
154
589
|
|
|
155
590
|
|
|
591
|
+
## getApplicationByID
|
|
592
|
+
|
|
593
|
+
> ApplicationDTO getApplicationByID(applicationId)
|
|
594
|
+
|
|
595
|
+
Get an application by applicationId
|
|
596
|
+
|
|
597
|
+
Get a specific application belonging to the authenticated account
|
|
598
|
+
|
|
599
|
+
### Example
|
|
600
|
+
|
|
601
|
+
```ts
|
|
602
|
+
import {
|
|
603
|
+
Configuration,
|
|
604
|
+
ClientApi,
|
|
605
|
+
} from '';
|
|
606
|
+
import type { GetApplicationByIDRequest } from '';
|
|
607
|
+
|
|
608
|
+
async function example() {
|
|
609
|
+
console.log("🚀 Testing SDK...");
|
|
610
|
+
const api = new ClientApi();
|
|
611
|
+
|
|
612
|
+
const body = {
|
|
613
|
+
// string | Application ID
|
|
614
|
+
applicationId: 38400000-8cf0-11bd-b23e-10b96e4ef00d,
|
|
615
|
+
} satisfies GetApplicationByIDRequest;
|
|
616
|
+
|
|
617
|
+
try {
|
|
618
|
+
const data = await api.getApplicationByID(body);
|
|
619
|
+
console.log(data);
|
|
620
|
+
} catch (error) {
|
|
621
|
+
console.error(error);
|
|
622
|
+
}
|
|
623
|
+
}
|
|
624
|
+
|
|
625
|
+
// Run the test
|
|
626
|
+
example().catch(console.error);
|
|
627
|
+
```
|
|
628
|
+
|
|
629
|
+
### Parameters
|
|
630
|
+
|
|
631
|
+
|
|
632
|
+
| Name | Type | Description | Notes |
|
|
633
|
+
|------------- | ------------- | ------------- | -------------|
|
|
634
|
+
| **applicationId** | `string` | Application ID | [Defaults to `undefined`] |
|
|
635
|
+
|
|
636
|
+
### Return type
|
|
637
|
+
|
|
638
|
+
[**ApplicationDTO**](ApplicationDTO.md)
|
|
639
|
+
|
|
640
|
+
### Authorization
|
|
641
|
+
|
|
642
|
+
No authorization required
|
|
643
|
+
|
|
644
|
+
### HTTP request headers
|
|
645
|
+
|
|
646
|
+
- **Content-Type**: Not defined
|
|
647
|
+
- **Accept**: `application/json`
|
|
648
|
+
|
|
649
|
+
|
|
650
|
+
### HTTP response details
|
|
651
|
+
| Status code | Description | Response headers |
|
|
652
|
+
|-------------|-------------|------------------|
|
|
653
|
+
| **200** | Return an application | - |
|
|
654
|
+
| **400** | Return an error if provided ID is not a valid UUID | - |
|
|
655
|
+
| **401** | Return an error if the user is not authenticated | - |
|
|
656
|
+
| **403** | Return an error if the user does not have the required permissions | - |
|
|
657
|
+
| **404** | Return an error if the application is not found | - |
|
|
658
|
+
| **500** | Return an error if the server founds an error | - |
|
|
659
|
+
|
|
660
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
661
|
+
|
|
662
|
+
|
|
663
|
+
## getApplications
|
|
664
|
+
|
|
665
|
+
> PaginatedApplicationsDTO getApplications(page, pageSize)
|
|
666
|
+
|
|
667
|
+
Get all applications for the account
|
|
668
|
+
|
|
669
|
+
Get all applications belonging to the authenticated account
|
|
670
|
+
|
|
671
|
+
### Example
|
|
672
|
+
|
|
673
|
+
```ts
|
|
674
|
+
import {
|
|
675
|
+
Configuration,
|
|
676
|
+
ClientApi,
|
|
677
|
+
} from '';
|
|
678
|
+
import type { GetApplicationsRequest } from '';
|
|
679
|
+
|
|
680
|
+
async function example() {
|
|
681
|
+
console.log("🚀 Testing SDK...");
|
|
682
|
+
const api = new ClientApi();
|
|
683
|
+
|
|
684
|
+
const body = {
|
|
685
|
+
// number | Page number for pagination (optional)
|
|
686
|
+
page: 56,
|
|
687
|
+
// number | Limit number of items per page (optional)
|
|
688
|
+
pageSize: 56,
|
|
689
|
+
} satisfies GetApplicationsRequest;
|
|
690
|
+
|
|
691
|
+
try {
|
|
692
|
+
const data = await api.getApplications(body);
|
|
693
|
+
console.log(data);
|
|
694
|
+
} catch (error) {
|
|
695
|
+
console.error(error);
|
|
696
|
+
}
|
|
697
|
+
}
|
|
698
|
+
|
|
699
|
+
// Run the test
|
|
700
|
+
example().catch(console.error);
|
|
701
|
+
```
|
|
702
|
+
|
|
703
|
+
### Parameters
|
|
704
|
+
|
|
705
|
+
|
|
706
|
+
| Name | Type | Description | Notes |
|
|
707
|
+
|------------- | ------------- | ------------- | -------------|
|
|
708
|
+
| **page** | `number` | Page number for pagination | [Optional] [Defaults to `1`] |
|
|
709
|
+
| **pageSize** | `number` | Limit number of items per page | [Optional] [Defaults to `10`] |
|
|
710
|
+
|
|
711
|
+
### Return type
|
|
712
|
+
|
|
713
|
+
[**PaginatedApplicationsDTO**](PaginatedApplicationsDTO.md)
|
|
714
|
+
|
|
715
|
+
### Authorization
|
|
716
|
+
|
|
717
|
+
No authorization required
|
|
718
|
+
|
|
719
|
+
### HTTP request headers
|
|
720
|
+
|
|
721
|
+
- **Content-Type**: Not defined
|
|
722
|
+
- **Accept**: `application/json`
|
|
723
|
+
|
|
724
|
+
|
|
725
|
+
### HTTP response details
|
|
726
|
+
| Status code | Description | Response headers |
|
|
727
|
+
|-------------|-------------|------------------|
|
|
728
|
+
| **200** | Return a list of applications | - |
|
|
729
|
+
| **401** | Return an error if the user is not authenticated | - |
|
|
730
|
+
| **403** | Return an error if the user does not have the required permissions | - |
|
|
731
|
+
| **500** | Return an error if the server founds an error | - |
|
|
732
|
+
|
|
733
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
734
|
+
|
|
735
|
+
|
|
156
736
|
## getSubscriptions
|
|
157
737
|
|
|
158
738
|
> Array<SubscriptionDTO> getSubscriptions()
|
|
@@ -284,3 +864,78 @@ No authorization required
|
|
|
284
864
|
|
|
285
865
|
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
286
866
|
|
|
867
|
+
|
|
868
|
+
## updateApplication
|
|
869
|
+
|
|
870
|
+
> ApplicationDTO updateApplication(applicationId, updateApplicationDTO)
|
|
871
|
+
|
|
872
|
+
Update an application
|
|
873
|
+
|
|
874
|
+
Update an application belonging to the authenticated account
|
|
875
|
+
|
|
876
|
+
### Example
|
|
877
|
+
|
|
878
|
+
```ts
|
|
879
|
+
import {
|
|
880
|
+
Configuration,
|
|
881
|
+
ClientApi,
|
|
882
|
+
} from '';
|
|
883
|
+
import type { UpdateApplicationRequest } from '';
|
|
884
|
+
|
|
885
|
+
async function example() {
|
|
886
|
+
console.log("🚀 Testing SDK...");
|
|
887
|
+
const api = new ClientApi();
|
|
888
|
+
|
|
889
|
+
const body = {
|
|
890
|
+
// string | Application ID
|
|
891
|
+
applicationId: 38400000-8cf0-11bd-b23e-10b96e4ef00d,
|
|
892
|
+
// UpdateApplicationDTO | Application update data
|
|
893
|
+
updateApplicationDTO: ...,
|
|
894
|
+
} satisfies UpdateApplicationRequest;
|
|
895
|
+
|
|
896
|
+
try {
|
|
897
|
+
const data = await api.updateApplication(body);
|
|
898
|
+
console.log(data);
|
|
899
|
+
} catch (error) {
|
|
900
|
+
console.error(error);
|
|
901
|
+
}
|
|
902
|
+
}
|
|
903
|
+
|
|
904
|
+
// Run the test
|
|
905
|
+
example().catch(console.error);
|
|
906
|
+
```
|
|
907
|
+
|
|
908
|
+
### Parameters
|
|
909
|
+
|
|
910
|
+
|
|
911
|
+
| Name | Type | Description | Notes |
|
|
912
|
+
|------------- | ------------- | ------------- | -------------|
|
|
913
|
+
| **applicationId** | `string` | Application ID | [Defaults to `undefined`] |
|
|
914
|
+
| **updateApplicationDTO** | [UpdateApplicationDTO](UpdateApplicationDTO.md) | Application update data | |
|
|
915
|
+
|
|
916
|
+
### Return type
|
|
917
|
+
|
|
918
|
+
[**ApplicationDTO**](ApplicationDTO.md)
|
|
919
|
+
|
|
920
|
+
### Authorization
|
|
921
|
+
|
|
922
|
+
No authorization required
|
|
923
|
+
|
|
924
|
+
### HTTP request headers
|
|
925
|
+
|
|
926
|
+
- **Content-Type**: `application/json`
|
|
927
|
+
- **Accept**: `application/json`
|
|
928
|
+
|
|
929
|
+
|
|
930
|
+
### HTTP response details
|
|
931
|
+
| Status code | Description | Response headers |
|
|
932
|
+
|-------------|-------------|------------------|
|
|
933
|
+
| **200** | Updates an application and return an updated application if the ID exists | - |
|
|
934
|
+
| **400** | Return an error if provided ID is not a valid UUID | - |
|
|
935
|
+
| **401** | Return an error if the user is not authenticated | - |
|
|
936
|
+
| **403** | Return an error if the user does not have the required permissions | - |
|
|
937
|
+
| **404** | Return an error if the application is not found | - |
|
|
938
|
+
| **500** | Return an error if the server founds an error | - |
|
|
939
|
+
|
|
940
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
941
|
+
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
|
|
2
|
+
# CreateAPIKeyRequestDTO
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type
|
|
8
|
+
------------ | -------------
|
|
9
|
+
`name` | string
|
|
10
|
+
|
|
11
|
+
## Example
|
|
12
|
+
|
|
13
|
+
```typescript
|
|
14
|
+
import type { CreateAPIKeyRequestDTO } from ''
|
|
15
|
+
|
|
16
|
+
// TODO: Update the object below with actual values
|
|
17
|
+
const example = {
|
|
18
|
+
"name": null,
|
|
19
|
+
} satisfies CreateAPIKeyRequestDTO
|
|
20
|
+
|
|
21
|
+
console.log(example)
|
|
22
|
+
|
|
23
|
+
// Convert the instance to a JSON string
|
|
24
|
+
const exampleJSON: string = JSON.stringify(example)
|
|
25
|
+
console.log(exampleJSON)
|
|
26
|
+
|
|
27
|
+
// Parse the JSON string back to an object
|
|
28
|
+
const exampleParsed = JSON.parse(exampleJSON) as CreateAPIKeyRequestDTO
|
|
29
|
+
console.log(exampleParsed)
|
|
30
|
+
```
|
|
31
|
+
|
|
32
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
33
|
+
|
|
34
|
+
|