@ndla/types-backend 1.0.44 → 1.0.45

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.
@@ -279,6 +279,78 @@ export type paths = {
279
279
  patch?: never;
280
280
  trace?: never;
281
281
  };
282
+ "/myndla-api/v1/robots": {
283
+ parameters: {
284
+ query?: never;
285
+ header?: never;
286
+ path?: never;
287
+ cookie?: never;
288
+ };
289
+ /**
290
+ * List out all of your own robot definitions
291
+ * @description List out all of your own robot definitions
292
+ */
293
+ get: operations["getMyndla-apiV1Robots"];
294
+ put?: never;
295
+ /**
296
+ * Create a new robot definition
297
+ * @description Create a new robot definition
298
+ */
299
+ post: operations["postMyndla-apiV1Robots"];
300
+ delete?: never;
301
+ options?: never;
302
+ head?: never;
303
+ patch?: never;
304
+ trace?: never;
305
+ };
306
+ "/myndla-api/v1/robots/{robot-id}": {
307
+ parameters: {
308
+ query?: never;
309
+ header?: never;
310
+ path?: never;
311
+ cookie?: never;
312
+ };
313
+ /**
314
+ * Get single robot definition
315
+ * @description Get single robot definition
316
+ */
317
+ get: operations["getMyndla-apiV1RobotsRobot-id"];
318
+ /**
319
+ * Update a robot definition
320
+ * @description Update a robot definition
321
+ */
322
+ put: operations["putMyndla-apiV1RobotsRobot-id"];
323
+ post?: never;
324
+ /**
325
+ * Delete a robot definition
326
+ * @description Update a robot definition
327
+ */
328
+ delete: operations["deleteMyndla-apiV1RobotsRobot-id"];
329
+ options?: never;
330
+ head?: never;
331
+ patch?: never;
332
+ trace?: never;
333
+ };
334
+ "/myndla-api/v1/robots/{robot-id}/{robot-status}": {
335
+ parameters: {
336
+ query?: never;
337
+ header?: never;
338
+ path?: never;
339
+ cookie?: never;
340
+ };
341
+ get?: never;
342
+ /**
343
+ * Update a robot definition
344
+ * @description Update a robot definition
345
+ */
346
+ put: operations["putMyndla-apiV1RobotsRobot-idRobot-status"];
347
+ post?: never;
348
+ delete?: never;
349
+ options?: never;
350
+ head?: never;
351
+ patch?: never;
352
+ trace?: never;
353
+ };
282
354
  "/myndla-api/v1/users": {
283
355
  parameters: {
284
356
  query?: never;
@@ -494,6 +566,15 @@ export type components = {
494
566
  /** @description Value to set configuration param to. */
495
567
  value: string[] | boolean;
496
568
  };
569
+ /**
570
+ * CreateRobotDefinitionDTO
571
+ * @description DTO for creating a new robot definition
572
+ */
573
+ CreateRobotDefinitionDTO: {
574
+ status: components["schemas"]["RobotStatus"];
575
+ /** @description DTO for robot configuration */
576
+ configuration: components["schemas"]["RobotConfigurationDTO"];
577
+ };
497
578
  /**
498
579
  * ErrorBody
499
580
  * @description Information about an error
@@ -561,6 +642,13 @@ export type components = {
561
642
  * @enum {string}
562
643
  */
563
644
  FolderStatus: "private" | "shared";
645
+ /**
646
+ * ListOfRobotDefinitionsDTO
647
+ * @description DTO for listing all robot definitions
648
+ */
649
+ ListOfRobotDefinitionsDTO: {
650
+ robots: components["schemas"]["RobotDefinitionDTO"][];
651
+ };
564
652
  /** Map_Long */
565
653
  Map_Long: {
566
654
  [key: string]: number;
@@ -693,6 +781,46 @@ export type components = {
693
781
  * @enum {string}
694
782
  */
695
783
  ResourceType: "article" | "audio" | "concept" | "image" | "learningpath" | "multidisciplinary" | "topic" | "video";
784
+ /** RobotConfigurationDTO */
785
+ RobotConfigurationDTO: {
786
+ title: string;
787
+ version: string;
788
+ settings: components["schemas"]["RobotSettingsDTO"];
789
+ };
790
+ /**
791
+ * RobotDefinitionDTO
792
+ * @description DTO for creating a new robot definition
793
+ */
794
+ RobotDefinitionDTO: {
795
+ /** @description The unique identifier of the robot */
796
+ id: string;
797
+ /** @description The status of the robot */
798
+ status: components["schemas"]["RobotStatus"];
799
+ /** @description The configuration details of the robot */
800
+ configuration: components["schemas"]["RobotConfigurationDTO"];
801
+ /** @description The date when the robot was created */
802
+ created: string;
803
+ /** @description The date when the robot was last updated */
804
+ updated: string;
805
+ /** @description The date when the robot was shared, if applicable */
806
+ shared?: string;
807
+ };
808
+ /**
809
+ * RobotSettingsDTO
810
+ * @description DTO for robot settings
811
+ */
812
+ RobotSettingsDTO: {
813
+ name: string;
814
+ systemprompt?: string;
815
+ question?: string;
816
+ temperature: string;
817
+ model: string;
818
+ };
819
+ /**
820
+ * RobotStatus
821
+ * @enum {string}
822
+ */
823
+ RobotStatus: "PRIVATE" | "SHARED";
696
824
  /**
697
825
  * SingleResourceStatsDTO
698
826
  * @description Stats for single resource
@@ -2133,6 +2261,393 @@ export interface operations {
2133
2261
  };
2134
2262
  };
2135
2263
  };
2264
+ "getMyndla-apiV1Robots": {
2265
+ parameters: {
2266
+ query?: never;
2267
+ header?: {
2268
+ /** @description Header containing FEIDE access token. */
2269
+ FeideAuthorization?: string;
2270
+ };
2271
+ path?: never;
2272
+ cookie?: never;
2273
+ };
2274
+ requestBody?: never;
2275
+ responses: {
2276
+ 200: {
2277
+ headers: {
2278
+ [name: string]: unknown;
2279
+ };
2280
+ content: {
2281
+ "application/json": components["schemas"]["ListOfRobotDefinitionsDTO"];
2282
+ };
2283
+ };
2284
+ 400: {
2285
+ headers: {
2286
+ [name: string]: unknown;
2287
+ };
2288
+ content: {
2289
+ "application/json": components["schemas"]["AllErrors"];
2290
+ };
2291
+ };
2292
+ 401: {
2293
+ headers: {
2294
+ [name: string]: unknown;
2295
+ };
2296
+ content: {
2297
+ "application/json": components["schemas"]["AllErrors"];
2298
+ };
2299
+ };
2300
+ 403: {
2301
+ headers: {
2302
+ [name: string]: unknown;
2303
+ };
2304
+ content: {
2305
+ "application/json": components["schemas"]["AllErrors"];
2306
+ };
2307
+ };
2308
+ 404: {
2309
+ headers: {
2310
+ [name: string]: unknown;
2311
+ };
2312
+ content: {
2313
+ "application/json": components["schemas"]["AllErrors"];
2314
+ };
2315
+ };
2316
+ 500: {
2317
+ headers: {
2318
+ [name: string]: unknown;
2319
+ };
2320
+ content: {
2321
+ "application/json": components["schemas"]["ErrorBody"];
2322
+ };
2323
+ };
2324
+ };
2325
+ };
2326
+ "postMyndla-apiV1Robots": {
2327
+ parameters: {
2328
+ query?: never;
2329
+ header?: {
2330
+ /** @description Header containing FEIDE access token. */
2331
+ FeideAuthorization?: string;
2332
+ };
2333
+ path?: never;
2334
+ cookie?: never;
2335
+ };
2336
+ requestBody: {
2337
+ content: {
2338
+ "application/json": components["schemas"]["CreateRobotDefinitionDTO"];
2339
+ };
2340
+ };
2341
+ responses: {
2342
+ 200: {
2343
+ headers: {
2344
+ [name: string]: unknown;
2345
+ };
2346
+ content: {
2347
+ "application/json": components["schemas"]["RobotDefinitionDTO"];
2348
+ };
2349
+ };
2350
+ 400: {
2351
+ headers: {
2352
+ [name: string]: unknown;
2353
+ };
2354
+ content: {
2355
+ "application/json": components["schemas"]["AllErrors"];
2356
+ };
2357
+ };
2358
+ 401: {
2359
+ headers: {
2360
+ [name: string]: unknown;
2361
+ };
2362
+ content: {
2363
+ "application/json": components["schemas"]["AllErrors"];
2364
+ };
2365
+ };
2366
+ 403: {
2367
+ headers: {
2368
+ [name: string]: unknown;
2369
+ };
2370
+ content: {
2371
+ "application/json": components["schemas"]["AllErrors"];
2372
+ };
2373
+ };
2374
+ 404: {
2375
+ headers: {
2376
+ [name: string]: unknown;
2377
+ };
2378
+ content: {
2379
+ "application/json": components["schemas"]["AllErrors"];
2380
+ };
2381
+ };
2382
+ 500: {
2383
+ headers: {
2384
+ [name: string]: unknown;
2385
+ };
2386
+ content: {
2387
+ "application/json": components["schemas"]["ErrorBody"];
2388
+ };
2389
+ };
2390
+ };
2391
+ };
2392
+ "getMyndla-apiV1RobotsRobot-id": {
2393
+ parameters: {
2394
+ query?: never;
2395
+ header?: {
2396
+ /** @description Header containing FEIDE access token. */
2397
+ FeideAuthorization?: string;
2398
+ };
2399
+ path: {
2400
+ "robot-id": string;
2401
+ };
2402
+ cookie?: never;
2403
+ };
2404
+ requestBody?: never;
2405
+ responses: {
2406
+ 200: {
2407
+ headers: {
2408
+ [name: string]: unknown;
2409
+ };
2410
+ content: {
2411
+ "application/json": components["schemas"]["RobotDefinitionDTO"];
2412
+ };
2413
+ };
2414
+ 400: {
2415
+ headers: {
2416
+ [name: string]: unknown;
2417
+ };
2418
+ content: {
2419
+ "application/json": components["schemas"]["AllErrors"];
2420
+ };
2421
+ };
2422
+ 401: {
2423
+ headers: {
2424
+ [name: string]: unknown;
2425
+ };
2426
+ content: {
2427
+ "application/json": components["schemas"]["AllErrors"];
2428
+ };
2429
+ };
2430
+ 403: {
2431
+ headers: {
2432
+ [name: string]: unknown;
2433
+ };
2434
+ content: {
2435
+ "application/json": components["schemas"]["AllErrors"];
2436
+ };
2437
+ };
2438
+ 404: {
2439
+ headers: {
2440
+ [name: string]: unknown;
2441
+ };
2442
+ content: {
2443
+ "application/json": components["schemas"]["AllErrors"];
2444
+ };
2445
+ };
2446
+ 500: {
2447
+ headers: {
2448
+ [name: string]: unknown;
2449
+ };
2450
+ content: {
2451
+ "application/json": components["schemas"]["ErrorBody"];
2452
+ };
2453
+ };
2454
+ };
2455
+ };
2456
+ "putMyndla-apiV1RobotsRobot-id": {
2457
+ parameters: {
2458
+ query?: never;
2459
+ header?: {
2460
+ /** @description Header containing FEIDE access token. */
2461
+ FeideAuthorization?: string;
2462
+ };
2463
+ path: {
2464
+ "robot-id": string;
2465
+ };
2466
+ cookie?: never;
2467
+ };
2468
+ requestBody: {
2469
+ content: {
2470
+ "application/json": components["schemas"]["CreateRobotDefinitionDTO"];
2471
+ };
2472
+ };
2473
+ responses: {
2474
+ 200: {
2475
+ headers: {
2476
+ [name: string]: unknown;
2477
+ };
2478
+ content: {
2479
+ "application/json": components["schemas"]["RobotDefinitionDTO"];
2480
+ };
2481
+ };
2482
+ 400: {
2483
+ headers: {
2484
+ [name: string]: unknown;
2485
+ };
2486
+ content: {
2487
+ "application/json": components["schemas"]["AllErrors"];
2488
+ };
2489
+ };
2490
+ 401: {
2491
+ headers: {
2492
+ [name: string]: unknown;
2493
+ };
2494
+ content: {
2495
+ "application/json": components["schemas"]["AllErrors"];
2496
+ };
2497
+ };
2498
+ 403: {
2499
+ headers: {
2500
+ [name: string]: unknown;
2501
+ };
2502
+ content: {
2503
+ "application/json": components["schemas"]["AllErrors"];
2504
+ };
2505
+ };
2506
+ 404: {
2507
+ headers: {
2508
+ [name: string]: unknown;
2509
+ };
2510
+ content: {
2511
+ "application/json": components["schemas"]["AllErrors"];
2512
+ };
2513
+ };
2514
+ 500: {
2515
+ headers: {
2516
+ [name: string]: unknown;
2517
+ };
2518
+ content: {
2519
+ "application/json": components["schemas"]["ErrorBody"];
2520
+ };
2521
+ };
2522
+ };
2523
+ };
2524
+ "deleteMyndla-apiV1RobotsRobot-id": {
2525
+ parameters: {
2526
+ query?: never;
2527
+ header?: {
2528
+ /** @description Header containing FEIDE access token. */
2529
+ FeideAuthorization?: string;
2530
+ };
2531
+ path: {
2532
+ "robot-id": string;
2533
+ };
2534
+ cookie?: never;
2535
+ };
2536
+ requestBody?: never;
2537
+ responses: {
2538
+ 204: {
2539
+ headers: {
2540
+ [name: string]: unknown;
2541
+ };
2542
+ content?: never;
2543
+ };
2544
+ 400: {
2545
+ headers: {
2546
+ [name: string]: unknown;
2547
+ };
2548
+ content: {
2549
+ "application/json": components["schemas"]["AllErrors"];
2550
+ };
2551
+ };
2552
+ 401: {
2553
+ headers: {
2554
+ [name: string]: unknown;
2555
+ };
2556
+ content: {
2557
+ "application/json": components["schemas"]["AllErrors"];
2558
+ };
2559
+ };
2560
+ 403: {
2561
+ headers: {
2562
+ [name: string]: unknown;
2563
+ };
2564
+ content: {
2565
+ "application/json": components["schemas"]["AllErrors"];
2566
+ };
2567
+ };
2568
+ 404: {
2569
+ headers: {
2570
+ [name: string]: unknown;
2571
+ };
2572
+ content: {
2573
+ "application/json": components["schemas"]["AllErrors"];
2574
+ };
2575
+ };
2576
+ 500: {
2577
+ headers: {
2578
+ [name: string]: unknown;
2579
+ };
2580
+ content: {
2581
+ "application/json": components["schemas"]["ErrorBody"];
2582
+ };
2583
+ };
2584
+ };
2585
+ };
2586
+ "putMyndla-apiV1RobotsRobot-idRobot-status": {
2587
+ parameters: {
2588
+ query?: never;
2589
+ header?: {
2590
+ /** @description Header containing FEIDE access token. */
2591
+ FeideAuthorization?: string;
2592
+ };
2593
+ path: {
2594
+ "robot-id": string;
2595
+ "robot-status": components["schemas"]["RobotStatus"];
2596
+ };
2597
+ cookie?: never;
2598
+ };
2599
+ requestBody?: never;
2600
+ responses: {
2601
+ 200: {
2602
+ headers: {
2603
+ [name: string]: unknown;
2604
+ };
2605
+ content: {
2606
+ "application/json": components["schemas"]["RobotDefinitionDTO"];
2607
+ };
2608
+ };
2609
+ 400: {
2610
+ headers: {
2611
+ [name: string]: unknown;
2612
+ };
2613
+ content: {
2614
+ "application/json": components["schemas"]["AllErrors"];
2615
+ };
2616
+ };
2617
+ 401: {
2618
+ headers: {
2619
+ [name: string]: unknown;
2620
+ };
2621
+ content: {
2622
+ "application/json": components["schemas"]["AllErrors"];
2623
+ };
2624
+ };
2625
+ 403: {
2626
+ headers: {
2627
+ [name: string]: unknown;
2628
+ };
2629
+ content: {
2630
+ "application/json": components["schemas"]["AllErrors"];
2631
+ };
2632
+ };
2633
+ 404: {
2634
+ headers: {
2635
+ [name: string]: unknown;
2636
+ };
2637
+ content: {
2638
+ "application/json": components["schemas"]["AllErrors"];
2639
+ };
2640
+ };
2641
+ 500: {
2642
+ headers: {
2643
+ [name: string]: unknown;
2644
+ };
2645
+ content: {
2646
+ "application/json": components["schemas"]["ErrorBody"];
2647
+ };
2648
+ };
2649
+ };
2650
+ };
2136
2651
  "getMyndla-apiV1Users": {
2137
2652
  parameters: {
2138
2653
  query?: never;
@@ -13,6 +13,8 @@ export type ConfigMetaRestrictedDTO = schemas["ConfigMetaRestrictedDTO"];
13
13
  export type IConfigMetaRestrictedDTO = schemas["ConfigMetaRestrictedDTO"];
14
14
  export type ConfigMetaValueDTO = schemas["ConfigMetaValueDTO"];
15
15
  export type IConfigMetaValueDTO = schemas["ConfigMetaValueDTO"];
16
+ export type CreateRobotDefinitionDTO = schemas["CreateRobotDefinitionDTO"];
17
+ export type ICreateRobotDefinitionDTO = schemas["CreateRobotDefinitionDTO"];
16
18
  export type ErrorBody = schemas["ErrorBody"];
17
19
  export type IErrorBody = schemas["ErrorBody"];
18
20
  export type ExportedUserDataDTO = schemas["ExportedUserDataDTO"];
@@ -25,6 +27,8 @@ export type FolderSortRequestDTO = schemas["FolderSortRequestDTO"];
25
27
  export type IFolderSortRequestDTO = schemas["FolderSortRequestDTO"];
26
28
  export type FolderStatus = schemas["FolderStatus"];
27
29
  export type IFolderStatus = schemas["FolderStatus"];
30
+ export type ListOfRobotDefinitionsDTO = schemas["ListOfRobotDefinitionsDTO"];
31
+ export type IListOfRobotDefinitionsDTO = schemas["ListOfRobotDefinitionsDTO"];
28
32
  export type Map_Long = schemas["Map_Long"];
29
33
  export type IMap_Long = schemas["Map_Long"];
30
34
  export type Map_Map_String_Long = schemas["Map_Map_String_Long"];
@@ -47,6 +51,14 @@ export type ResourceStatsDTO = schemas["ResourceStatsDTO"];
47
51
  export type IResourceStatsDTO = schemas["ResourceStatsDTO"];
48
52
  export type ResourceType = schemas["ResourceType"];
49
53
  export type IResourceType = schemas["ResourceType"];
54
+ export type RobotConfigurationDTO = schemas["RobotConfigurationDTO"];
55
+ export type IRobotConfigurationDTO = schemas["RobotConfigurationDTO"];
56
+ export type RobotDefinitionDTO = schemas["RobotDefinitionDTO"];
57
+ export type IRobotDefinitionDTO = schemas["RobotDefinitionDTO"];
58
+ export type RobotSettingsDTO = schemas["RobotSettingsDTO"];
59
+ export type IRobotSettingsDTO = schemas["RobotSettingsDTO"];
60
+ export type RobotStatus = schemas["RobotStatus"];
61
+ export type IRobotStatus = schemas["RobotStatus"];
50
62
  export type SingleResourceStatsDTO = schemas["SingleResourceStatsDTO"];
51
63
  export type ISingleResourceStatsDTO = schemas["SingleResourceStatsDTO"];
52
64
  export type StatsDTO = schemas["StatsDTO"];
package/package.json CHANGED
@@ -32,6 +32,6 @@
32
32
  "tsx": "^4.19.3",
33
33
  "typescript": "^5.3.3"
34
34
  },
35
- "version": "1.0.44",
35
+ "version": "1.0.45",
36
36
  "packageManager": "yarn@1.22.22+sha512.a6b2f7906b721bba3d67d4aff083df04dad64c399707841b7acf00f6b133b7ac24255f2652fa22ae3534329dc6180534e98d17432037ff6fd140556e2bb3137e"
37
37
  }