@mgrzmil-org/api-types 0.0.0 → 0.0.2

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 (3) hide show
  1. package/openapi.json +702 -574
  2. package/package.json +5 -1
  3. package/src/api.ts +61 -15
package/package.json CHANGED
@@ -1,12 +1,16 @@
1
1
  {
2
2
  "name": "@mgrzmil-org/api-types",
3
- "version": "0.0.0",
3
+ "version": "0.0.2",
4
4
  "description": "Generated TypeScript types + OpenAPI spec for dog-api",
5
5
  "files": [
6
6
  "src/api.ts",
7
7
  "openapi.json"
8
8
  ],
9
9
  "types": "src/api.ts",
10
+ "repository": {
11
+ "type": "git",
12
+ "url": "https://github.com/g-marcin/dog-api"
13
+ },
10
14
  "publishConfig": {
11
15
  "access": "public"
12
16
  }
package/src/api.ts CHANGED
@@ -248,19 +248,65 @@ export interface paths {
248
248
  export type webhooks = Record<string, never>;
249
249
  export interface components {
250
250
  schemas: {
251
- /** APIResponse */
252
- APIResponse: {
251
+ /** APIResponse[DescriptionMessage] */
252
+ APIResponse_DescriptionMessage_: {
253
+ status: components["schemas"]["Status"];
254
+ message: components["schemas"]["DescriptionMessage"];
255
+ };
256
+ /** APIResponse[Dict[str, List[str]]] */
257
+ APIResponse_Dict_str__List_str___: {
253
258
  status: components["schemas"]["Status"];
254
259
  /** Message */
255
260
  message: {
256
- [key: string]: unknown;
257
- } | string[] | string;
261
+ [key: string]: string[];
262
+ };
263
+ };
264
+ /** APIResponse[List[str]] */
265
+ APIResponse_List_str__: {
266
+ status: components["schemas"]["Status"];
267
+ /** Message */
268
+ message: string[];
269
+ };
270
+ /** APIResponse[PerformanceMessage] */
271
+ APIResponse_PerformanceMessage_: {
272
+ status: components["schemas"]["Status"];
273
+ message: components["schemas"]["PerformanceMessage"];
274
+ };
275
+ /** APIResponse[str] */
276
+ APIResponse_str_: {
277
+ status: components["schemas"]["Status"];
278
+ /** Message */
279
+ message: string;
280
+ };
281
+ /** DescriptionMessage */
282
+ DescriptionMessage: {
283
+ /** Breed */
284
+ breed: string;
285
+ /** Variant */
286
+ variant?: string | null;
287
+ /** Description En */
288
+ description_en: string;
289
+ /** Description Pl */
290
+ description_pl: string;
258
291
  };
259
292
  /** HTTPValidationError */
260
293
  HTTPValidationError: {
261
294
  /** Detail */
262
295
  detail?: components["schemas"]["ValidationError"][];
263
296
  };
297
+ /** PerformanceMessage */
298
+ PerformanceMessage: {
299
+ /** Cpu Usage */
300
+ cpu_usage: string;
301
+ /** Memory Usage */
302
+ memory_usage: string;
303
+ /** Disk Usage */
304
+ disk_usage: string;
305
+ /** Thread Count */
306
+ thread_count: number;
307
+ /** Uptime Seconds */
308
+ uptime_seconds: number;
309
+ };
264
310
  /**
265
311
  * Status
266
312
  * @enum {string}
@@ -299,7 +345,7 @@ export interface operations {
299
345
  [name: string]: unknown;
300
346
  };
301
347
  content: {
302
- "application/json": components["schemas"]["APIResponse"];
348
+ "application/json": components["schemas"]["APIResponse_Dict_str__List_str___"];
303
349
  };
304
350
  };
305
351
  };
@@ -321,7 +367,7 @@ export interface operations {
321
367
  [name: string]: unknown;
322
368
  };
323
369
  content: {
324
- "application/json": components["schemas"]["APIResponse"];
370
+ "application/json": components["schemas"]["APIResponse_List_str__"];
325
371
  };
326
372
  };
327
373
  /** @description Validation Error */
@@ -350,7 +396,7 @@ export interface operations {
350
396
  [name: string]: unknown;
351
397
  };
352
398
  content: {
353
- "application/json": components["schemas"]["APIResponse"];
399
+ "application/json": components["schemas"]["APIResponse_str_"];
354
400
  };
355
401
  };
356
402
  };
@@ -372,7 +418,7 @@ export interface operations {
372
418
  [name: string]: unknown;
373
419
  };
374
420
  content: {
375
- "application/json": components["schemas"]["APIResponse"];
421
+ "application/json": components["schemas"]["APIResponse_List_str__"];
376
422
  };
377
423
  };
378
424
  /** @description Validation Error */
@@ -403,7 +449,7 @@ export interface operations {
403
449
  [name: string]: unknown;
404
450
  };
405
451
  content: {
406
- "application/json": components["schemas"]["APIResponse"];
452
+ "application/json": components["schemas"]["APIResponse_str_"];
407
453
  };
408
454
  };
409
455
  /** @description Validation Error */
@@ -435,7 +481,7 @@ export interface operations {
435
481
  [name: string]: unknown;
436
482
  };
437
483
  content: {
438
- "application/json": components["schemas"]["APIResponse"];
484
+ "application/json": components["schemas"]["APIResponse_List_str__"];
439
485
  };
440
486
  };
441
487
  /** @description Validation Error */
@@ -467,7 +513,7 @@ export interface operations {
467
513
  [name: string]: unknown;
468
514
  };
469
515
  content: {
470
- "application/json": components["schemas"]["APIResponse"];
516
+ "application/json": components["schemas"]["APIResponse_str_"];
471
517
  };
472
518
  };
473
519
  /** @description Validation Error */
@@ -527,7 +573,7 @@ export interface operations {
527
573
  [name: string]: unknown;
528
574
  };
529
575
  content: {
530
- "application/json": components["schemas"]["APIResponse"];
576
+ "application/json": components["schemas"]["APIResponse_PerformanceMessage_"];
531
577
  };
532
578
  };
533
579
  };
@@ -547,7 +593,7 @@ export interface operations {
547
593
  [name: string]: unknown;
548
594
  };
549
595
  content: {
550
- "application/json": components["schemas"]["APIResponse"];
596
+ "application/json": components["schemas"]["APIResponse_str_"];
551
597
  };
552
598
  };
553
599
  };
@@ -569,7 +615,7 @@ export interface operations {
569
615
  [name: string]: unknown;
570
616
  };
571
617
  content: {
572
- "application/json": components["schemas"]["APIResponse"];
618
+ "application/json": components["schemas"]["APIResponse_DescriptionMessage_"];
573
619
  };
574
620
  };
575
621
  /** @description Validation Error */
@@ -601,7 +647,7 @@ export interface operations {
601
647
  [name: string]: unknown;
602
648
  };
603
649
  content: {
604
- "application/json": components["schemas"]["APIResponse"];
650
+ "application/json": components["schemas"]["APIResponse_DescriptionMessage_"];
605
651
  };
606
652
  };
607
653
  /** @description Validation Error */