tuix-mcp-host-client 0.0.39 → 0.0.40

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/docs/ClientApi.md CHANGED
@@ -11,16 +11,20 @@ All URIs are relative to *http://localhost:3000*
11
11
  | [**createAccount**](ClientApi.md#createaccount) | **POST** /accounts | Creates a new account |
12
12
  | [**createApplication**](ClientApi.md#createapplication) | **POST** /applications | Create a new application |
13
13
  | [**createMCPServer**](ClientApi.md#createmcpserver) | **POST** /mcp-servers | Create a new MCP server |
14
+ | [**createRole**](ClientApi.md#createrole) | **POST** /applications/{applicationId}/roles | Create a new role |
14
15
  | [**deleteApplication**](ClientApi.md#deleteapplication) | **DELETE** /applications/{applicationId} | Delete an application |
15
16
  | [**deleteMCPServer**](ClientApi.md#deletemcpserver) | **DELETE** /mcp-servers/{mcpServerId} | Delete an MCP server |
17
+ | [**deleteRole**](ClientApi.md#deleterole) | **DELETE** /applications/{applicationId}/roles/{roleId} | Delete a role |
16
18
  | [**detachMCPServer**](ClientApi.md#detachmcpserver) | **DELETE** /applications/{applicationId}/mcp-servers/{mcpServerId} | Detach MCP server from application |
17
19
  | [**getApplicationByID**](ClientApi.md#getapplicationbyid) | **GET** /applications/{applicationId} | Get an application by applicationId |
18
20
  | [**getApplications**](ClientApi.md#getapplications) | **GET** /applications | Get all applications for the account |
19
21
  | [**getAvailableMCPServersByApplication**](ClientApi.md#getavailablemcpserversbyapplication) | **GET** /applications/{applicationId}/available-mcp-servers | List available MCP servers for an application |
20
22
  | [**getMCPServers**](ClientApi.md#getmcpservers) | **GET** /mcp-servers | List MCP servers for account |
21
23
  | [**getMCPServersByApplication**](ClientApi.md#getmcpserversbyapplication) | **GET** /applications/{applicationId}/mcp-servers | List MCP servers for an application |
24
+ | [**getRolesByApplicationId**](ClientApi.md#getrolesbyapplicationid) | **GET** /applications/{applicationId}/roles | Get all roles for a specific application |
22
25
  | [**updateApplication**](ClientApi.md#updateapplication) | **PATCH** /applications/{applicationId} | Update an application |
23
26
  | [**updateMCPServer**](ClientApi.md#updatemcpserver) | **PATCH** /mcp-servers/{mcpServerId} | Update an existing MCP server |
27
+ | [**updateRole**](ClientApi.md#updaterole) | **PATCH** /applications/{applicationId}/roles/{roleId} | Update a role |
24
28
 
25
29
 
26
30
 
@@ -522,6 +526,78 @@ No authorization required
522
526
  [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
523
527
 
524
528
 
529
+ ## createRole
530
+
531
+ > RoleDTO createRole(applicationId, createRoleDTO)
532
+
533
+ Create a new role
534
+
535
+ Create a new role for a specific application with empty permissions by default
536
+
537
+ ### Example
538
+
539
+ ```ts
540
+ import {
541
+ Configuration,
542
+ ClientApi,
543
+ } from '';
544
+ import type { CreateRoleRequest } from '';
545
+
546
+ async function example() {
547
+ console.log("🚀 Testing SDK...");
548
+ const api = new ClientApi();
549
+
550
+ const body = {
551
+ // string | Application ID
552
+ applicationId: applicationId_example,
553
+ // CreateRoleDTO | Role creation data
554
+ createRoleDTO: ...,
555
+ } satisfies CreateRoleRequest;
556
+
557
+ try {
558
+ const data = await api.createRole(body);
559
+ console.log(data);
560
+ } catch (error) {
561
+ console.error(error);
562
+ }
563
+ }
564
+
565
+ // Run the test
566
+ example().catch(console.error);
567
+ ```
568
+
569
+ ### Parameters
570
+
571
+
572
+ | Name | Type | Description | Notes |
573
+ |------------- | ------------- | ------------- | -------------|
574
+ | **applicationId** | `string` | Application ID | [Defaults to `undefined`] |
575
+ | **createRoleDTO** | [CreateRoleDTO](CreateRoleDTO.md) | Role creation data | |
576
+
577
+ ### Return type
578
+
579
+ [**RoleDTO**](RoleDTO.md)
580
+
581
+ ### Authorization
582
+
583
+ No authorization required
584
+
585
+ ### HTTP request headers
586
+
587
+ - **Content-Type**: `application/json`
588
+ - **Accept**: `application/json`
589
+
590
+
591
+ ### HTTP response details
592
+ | Status code | Description | Response headers |
593
+ |-------------|-------------|------------------|
594
+ | **201** | Created role | - |
595
+ | **400** | Return an error if there is a missing or invalid field | - |
596
+ | **500** | Return an error if the server finds an error | - |
597
+
598
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
599
+
600
+
525
601
  ## deleteApplication
526
602
 
527
603
  > deleteApplication(applicationId)
@@ -663,6 +739,79 @@ No authorization required
663
739
  [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
664
740
 
665
741
 
742
+ ## deleteRole
743
+
744
+ > deleteRole(applicationId, roleId)
745
+
746
+ Delete a role
747
+
748
+ Delete a specific role by ID
749
+
750
+ ### Example
751
+
752
+ ```ts
753
+ import {
754
+ Configuration,
755
+ ClientApi,
756
+ } from '';
757
+ import type { DeleteRoleRequest } from '';
758
+
759
+ async function example() {
760
+ console.log("🚀 Testing SDK...");
761
+ const api = new ClientApi();
762
+
763
+ const body = {
764
+ // string | Application ID
765
+ applicationId: applicationId_example,
766
+ // string | Role ID
767
+ roleId: roleId_example,
768
+ } satisfies DeleteRoleRequest;
769
+
770
+ try {
771
+ const data = await api.deleteRole(body);
772
+ console.log(data);
773
+ } catch (error) {
774
+ console.error(error);
775
+ }
776
+ }
777
+
778
+ // Run the test
779
+ example().catch(console.error);
780
+ ```
781
+
782
+ ### Parameters
783
+
784
+
785
+ | Name | Type | Description | Notes |
786
+ |------------- | ------------- | ------------- | -------------|
787
+ | **applicationId** | `string` | Application ID | [Defaults to `undefined`] |
788
+ | **roleId** | `string` | Role ID | [Defaults to `undefined`] |
789
+
790
+ ### Return type
791
+
792
+ `void` (Empty response body)
793
+
794
+ ### Authorization
795
+
796
+ No authorization required
797
+
798
+ ### HTTP request headers
799
+
800
+ - **Content-Type**: Not defined
801
+ - **Accept**: `application/json`
802
+
803
+
804
+ ### HTTP response details
805
+ | Status code | Description | Response headers |
806
+ |-------------|-------------|------------------|
807
+ | **204** | Role deleted successfully | - |
808
+ | **400** | Return an error if roleId is invalid | - |
809
+ | **404** | Return an error if role not found | - |
810
+ | **500** | Return an error if the server finds an error | - |
811
+
812
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
813
+
814
+
666
815
  ## detachMCPServer
667
816
 
668
817
  > detachMCPServer(applicationId, mcpServerId)
@@ -1107,6 +1256,81 @@ No authorization required
1107
1256
  [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
1108
1257
 
1109
1258
 
1259
+ ## getRolesByApplicationId
1260
+
1261
+ > PaginatedRoleDTO getRolesByApplicationId(applicationId, page, pageSize)
1262
+
1263
+ Get all roles for a specific application
1264
+
1265
+ Retrieve all roles associated with a specific application
1266
+
1267
+ ### Example
1268
+
1269
+ ```ts
1270
+ import {
1271
+ Configuration,
1272
+ ClientApi,
1273
+ } from '';
1274
+ import type { GetRolesByApplicationIdRequest } from '';
1275
+
1276
+ async function example() {
1277
+ console.log("🚀 Testing SDK...");
1278
+ const api = new ClientApi();
1279
+
1280
+ const body = {
1281
+ // string | Application ID
1282
+ applicationId: applicationId_example,
1283
+ // number | Page number (optional)
1284
+ page: 56,
1285
+ // number | Page size (optional)
1286
+ pageSize: 56,
1287
+ } satisfies GetRolesByApplicationIdRequest;
1288
+
1289
+ try {
1290
+ const data = await api.getRolesByApplicationId(body);
1291
+ console.log(data);
1292
+ } catch (error) {
1293
+ console.error(error);
1294
+ }
1295
+ }
1296
+
1297
+ // Run the test
1298
+ example().catch(console.error);
1299
+ ```
1300
+
1301
+ ### Parameters
1302
+
1303
+
1304
+ | Name | Type | Description | Notes |
1305
+ |------------- | ------------- | ------------- | -------------|
1306
+ | **applicationId** | `string` | Application ID | [Defaults to `undefined`] |
1307
+ | **page** | `number` | Page number | [Optional] [Defaults to `1`] |
1308
+ | **pageSize** | `number` | Page size | [Optional] [Defaults to `10`] |
1309
+
1310
+ ### Return type
1311
+
1312
+ [**PaginatedRoleDTO**](PaginatedRoleDTO.md)
1313
+
1314
+ ### Authorization
1315
+
1316
+ No authorization required
1317
+
1318
+ ### HTTP request headers
1319
+
1320
+ - **Content-Type**: Not defined
1321
+ - **Accept**: `application/json`
1322
+
1323
+
1324
+ ### HTTP response details
1325
+ | Status code | Description | Response headers |
1326
+ |-------------|-------------|------------------|
1327
+ | **200** | List of roles | - |
1328
+ | **400** | Return an error if applicationId is missing or invalid | - |
1329
+ | **500** | Return an error if the server finds an error | - |
1330
+
1331
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
1332
+
1333
+
1110
1334
  ## updateApplication
1111
1335
 
1112
1336
  > ApplicationDTO updateApplication(applicationId, updateApplicationDTO)
@@ -1254,3 +1478,79 @@ No authorization required
1254
1478
 
1255
1479
  [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
1256
1480
 
1481
+
1482
+ ## updateRole
1483
+
1484
+ > RoleDTO updateRole(applicationId, roleId, updateRoleDTO)
1485
+
1486
+ Update a role
1487
+
1488
+ Update a role\'s name and/or permissions
1489
+
1490
+ ### Example
1491
+
1492
+ ```ts
1493
+ import {
1494
+ Configuration,
1495
+ ClientApi,
1496
+ } from '';
1497
+ import type { UpdateRoleRequest } from '';
1498
+
1499
+ async function example() {
1500
+ console.log("🚀 Testing SDK...");
1501
+ const api = new ClientApi();
1502
+
1503
+ const body = {
1504
+ // string | Application ID
1505
+ applicationId: applicationId_example,
1506
+ // string | Role ID
1507
+ roleId: roleId_example,
1508
+ // UpdateRoleDTO | Role update data
1509
+ updateRoleDTO: ...,
1510
+ } satisfies UpdateRoleRequest;
1511
+
1512
+ try {
1513
+ const data = await api.updateRole(body);
1514
+ console.log(data);
1515
+ } catch (error) {
1516
+ console.error(error);
1517
+ }
1518
+ }
1519
+
1520
+ // Run the test
1521
+ example().catch(console.error);
1522
+ ```
1523
+
1524
+ ### Parameters
1525
+
1526
+
1527
+ | Name | Type | Description | Notes |
1528
+ |------------- | ------------- | ------------- | -------------|
1529
+ | **applicationId** | `string` | Application ID | [Defaults to `undefined`] |
1530
+ | **roleId** | `string` | Role ID | [Defaults to `undefined`] |
1531
+ | **updateRoleDTO** | [UpdateRoleDTO](UpdateRoleDTO.md) | Role update data | |
1532
+
1533
+ ### Return type
1534
+
1535
+ [**RoleDTO**](RoleDTO.md)
1536
+
1537
+ ### Authorization
1538
+
1539
+ No authorization required
1540
+
1541
+ ### HTTP request headers
1542
+
1543
+ - **Content-Type**: `application/json`
1544
+ - **Accept**: `application/json`
1545
+
1546
+
1547
+ ### HTTP response details
1548
+ | Status code | Description | Response headers |
1549
+ |-------------|-------------|------------------|
1550
+ | **200** | Updated role | - |
1551
+ | **400** | Return an error if there is a missing or invalid field | - |
1552
+ | **404** | Return an error if role not found | - |
1553
+ | **500** | Return an error if the server finds an error | - |
1554
+
1555
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
1556
+
@@ -0,0 +1,34 @@
1
+
2
+ # CreateRoleDTO
3
+
4
+
5
+ ## Properties
6
+
7
+ Name | Type
8
+ ------------ | -------------
9
+ `name` | string
10
+
11
+ ## Example
12
+
13
+ ```typescript
14
+ import type { CreateRoleDTO } from ''
15
+
16
+ // TODO: Update the object below with actual values
17
+ const example = {
18
+ "name": tuix_timesheets_employee,
19
+ } satisfies CreateRoleDTO
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 CreateRoleDTO
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
+
@@ -0,0 +1,42 @@
1
+
2
+ # PaginatedRoleDTO
3
+
4
+
5
+ ## Properties
6
+
7
+ Name | Type
8
+ ------------ | -------------
9
+ `items` | [Array<RoleDTO>](RoleDTO.md)
10
+ `page` | number
11
+ `pageSize` | number
12
+ `totalItems` | number
13
+ `totalPages` | number
14
+
15
+ ## Example
16
+
17
+ ```typescript
18
+ import type { PaginatedRoleDTO } from ''
19
+
20
+ // TODO: Update the object below with actual values
21
+ const example = {
22
+ "items": null,
23
+ "page": null,
24
+ "pageSize": null,
25
+ "totalItems": null,
26
+ "totalPages": null,
27
+ } satisfies PaginatedRoleDTO
28
+
29
+ console.log(example)
30
+
31
+ // Convert the instance to a JSON string
32
+ const exampleJSON: string = JSON.stringify(example)
33
+ console.log(exampleJSON)
34
+
35
+ // Parse the JSON string back to an object
36
+ const exampleParsed = JSON.parse(exampleJSON) as PaginatedRoleDTO
37
+ console.log(exampleParsed)
38
+ ```
39
+
40
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
41
+
42
+
@@ -0,0 +1,40 @@
1
+
2
+ # RoleDTO
3
+
4
+
5
+ ## Properties
6
+
7
+ Name | Type
8
+ ------------ | -------------
9
+ `applicationId` | string
10
+ `id` | string
11
+ `name` | string
12
+ `permissions` | Array<string>
13
+
14
+ ## Example
15
+
16
+ ```typescript
17
+ import type { RoleDTO } from ''
18
+
19
+ // TODO: Update the object below with actual values
20
+ const example = {
21
+ "applicationId": null,
22
+ "id": null,
23
+ "name": null,
24
+ "permissions": null,
25
+ } satisfies RoleDTO
26
+
27
+ console.log(example)
28
+
29
+ // Convert the instance to a JSON string
30
+ const exampleJSON: string = JSON.stringify(example)
31
+ console.log(exampleJSON)
32
+
33
+ // Parse the JSON string back to an object
34
+ const exampleParsed = JSON.parse(exampleJSON) as RoleDTO
35
+ console.log(exampleParsed)
36
+ ```
37
+
38
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
39
+
40
+
@@ -0,0 +1,36 @@
1
+
2
+ # UpdateRoleDTO
3
+
4
+
5
+ ## Properties
6
+
7
+ Name | Type
8
+ ------------ | -------------
9
+ `name` | string
10
+ `permissions` | Array<string>
11
+
12
+ ## Example
13
+
14
+ ```typescript
15
+ import type { UpdateRoleDTO } from ''
16
+
17
+ // TODO: Update the object below with actual values
18
+ const example = {
19
+ "name": tuix_timesheets_manager,
20
+ "permissions": ["get_projects","get_timesheet","update_timesheet_entry"],
21
+ } satisfies UpdateRoleDTO
22
+
23
+ console.log(example)
24
+
25
+ // Convert the instance to a JSON string
26
+ const exampleJSON: string = JSON.stringify(example)
27
+ console.log(exampleJSON)
28
+
29
+ // Parse the JSON string back to an object
30
+ const exampleParsed = JSON.parse(exampleJSON) as UpdateRoleDTO
31
+ console.log(exampleParsed)
32
+ ```
33
+
34
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
35
+
36
+
@@ -0,0 +1,51 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * Tuix MCP Host API
6
+ * Service managing MCP servers for Tuix applications.
7
+ *
8
+ * The version of the OpenAPI document: 0.0.1
9
+ *
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.instanceOfCreateRoleDTO = instanceOfCreateRoleDTO;
17
+ exports.CreateRoleDTOFromJSON = CreateRoleDTOFromJSON;
18
+ exports.CreateRoleDTOFromJSONTyped = CreateRoleDTOFromJSONTyped;
19
+ exports.CreateRoleDTOToJSON = CreateRoleDTOToJSON;
20
+ exports.CreateRoleDTOToJSONTyped = CreateRoleDTOToJSONTyped;
21
+ /**
22
+ * Check if a given object implements the CreateRoleDTO interface.
23
+ */
24
+ function instanceOfCreateRoleDTO(value) {
25
+ if (!('name' in value) || value['name'] === undefined)
26
+ return false;
27
+ return true;
28
+ }
29
+ function CreateRoleDTOFromJSON(json) {
30
+ return CreateRoleDTOFromJSONTyped(json, false);
31
+ }
32
+ function CreateRoleDTOFromJSONTyped(json, ignoreDiscriminator) {
33
+ if (json == null) {
34
+ return json;
35
+ }
36
+ return {
37
+ 'name': json['name'],
38
+ };
39
+ }
40
+ function CreateRoleDTOToJSON(json) {
41
+ return CreateRoleDTOToJSONTyped(json, false);
42
+ }
43
+ function CreateRoleDTOToJSONTyped(value, ignoreDiscriminator = false) {
44
+ if (value == null) {
45
+ return value;
46
+ }
47
+ return {
48
+ 'name': value['name'],
49
+ };
50
+ }
51
+ //# sourceMappingURL=CreateRoleDTO.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CreateRoleDTO.js","sourceRoot":"","sources":["CreateRoleDTO.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;;AAoBH,0DAGC;AAED,sDAEC;AAED,gEAQC;AAED,kDAEC;AAED,4DASC;AAnCD;;GAEG;AACH,SAAgB,uBAAuB,CAAC,KAAa;IACjD,IAAI,CAAC,CAAC,MAAM,IAAI,KAAK,CAAC,IAAI,KAAK,CAAC,MAAM,CAAC,KAAK,SAAS;QAAE,OAAO,KAAK,CAAC;IACpE,OAAO,IAAI,CAAC;AAChB,CAAC;AAED,SAAgB,qBAAqB,CAAC,IAAS;IAC3C,OAAO,0BAA0B,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AACnD,CAAC;AAED,SAAgB,0BAA0B,CAAC,IAAS,EAAE,mBAA4B;IAC9E,IAAI,IAAI,IAAI,IAAI,EAAE,CAAC;QACf,OAAO,IAAI,CAAC;IAChB,CAAC;IACD,OAAO;QAEH,MAAM,EAAE,IAAI,CAAC,MAAM,CAAC;KACvB,CAAC;AACN,CAAC;AAED,SAAgB,mBAAmB,CAAC,IAAS;IACzC,OAAO,wBAAwB,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AACjD,CAAC;AAED,SAAgB,wBAAwB,CAAC,KAA4B,EAAE,sBAA+B,KAAK;IACvG,IAAI,KAAK,IAAI,IAAI,EAAE,CAAC;QAChB,OAAO,KAAK,CAAC;IACjB,CAAC;IAED,OAAO;QAEH,MAAM,EAAE,KAAK,CAAC,MAAM,CAAC;KACxB,CAAC;AACN,CAAC"}
@@ -0,0 +1,66 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Tuix MCP Host API
5
+ * Service managing MCP servers for Tuix applications.
6
+ *
7
+ * The version of the OpenAPI document: 0.0.1
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+ import { mapValues } from '../runtime';
16
+ /**
17
+ *
18
+ * @export
19
+ * @interface CreateRoleDTO
20
+ */
21
+ export interface CreateRoleDTO {
22
+ /**
23
+ *
24
+ * @type {string}
25
+ * @memberof CreateRoleDTO
26
+ */
27
+ name: string;
28
+ }
29
+
30
+ /**
31
+ * Check if a given object implements the CreateRoleDTO interface.
32
+ */
33
+ export function instanceOfCreateRoleDTO(value: object): value is CreateRoleDTO {
34
+ if (!('name' in value) || value['name'] === undefined) return false;
35
+ return true;
36
+ }
37
+
38
+ export function CreateRoleDTOFromJSON(json: any): CreateRoleDTO {
39
+ return CreateRoleDTOFromJSONTyped(json, false);
40
+ }
41
+
42
+ export function CreateRoleDTOFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateRoleDTO {
43
+ if (json == null) {
44
+ return json;
45
+ }
46
+ return {
47
+
48
+ 'name': json['name'],
49
+ };
50
+ }
51
+
52
+ export function CreateRoleDTOToJSON(json: any): CreateRoleDTO {
53
+ return CreateRoleDTOToJSONTyped(json, false);
54
+ }
55
+
56
+ export function CreateRoleDTOToJSONTyped(value?: CreateRoleDTO | null, ignoreDiscriminator: boolean = false): any {
57
+ if (value == null) {
58
+ return value;
59
+ }
60
+
61
+ return {
62
+
63
+ 'name': value['name'],
64
+ };
65
+ }
66
+
@@ -0,0 +1,58 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * Tuix MCP Host API
6
+ * Service managing MCP servers for Tuix applications.
7
+ *
8
+ * The version of the OpenAPI document: 0.0.1
9
+ *
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.instanceOfPaginatedRoleDTO = instanceOfPaginatedRoleDTO;
17
+ exports.PaginatedRoleDTOFromJSON = PaginatedRoleDTOFromJSON;
18
+ exports.PaginatedRoleDTOFromJSONTyped = PaginatedRoleDTOFromJSONTyped;
19
+ exports.PaginatedRoleDTOToJSON = PaginatedRoleDTOToJSON;
20
+ exports.PaginatedRoleDTOToJSONTyped = PaginatedRoleDTOToJSONTyped;
21
+ const RoleDTO_1 = require("./RoleDTO");
22
+ /**
23
+ * Check if a given object implements the PaginatedRoleDTO interface.
24
+ */
25
+ function instanceOfPaginatedRoleDTO(value) {
26
+ return true;
27
+ }
28
+ function PaginatedRoleDTOFromJSON(json) {
29
+ return PaginatedRoleDTOFromJSONTyped(json, false);
30
+ }
31
+ function PaginatedRoleDTOFromJSONTyped(json, ignoreDiscriminator) {
32
+ if (json == null) {
33
+ return json;
34
+ }
35
+ return {
36
+ 'items': json['items'] == null ? undefined : (json['items'].map(RoleDTO_1.RoleDTOFromJSON)),
37
+ 'page': json['page'] == null ? undefined : json['page'],
38
+ 'pageSize': json['pageSize'] == null ? undefined : json['pageSize'],
39
+ 'totalItems': json['totalItems'] == null ? undefined : json['totalItems'],
40
+ 'totalPages': json['totalPages'] == null ? undefined : json['totalPages'],
41
+ };
42
+ }
43
+ function PaginatedRoleDTOToJSON(json) {
44
+ return PaginatedRoleDTOToJSONTyped(json, false);
45
+ }
46
+ function PaginatedRoleDTOToJSONTyped(value, ignoreDiscriminator = false) {
47
+ if (value == null) {
48
+ return value;
49
+ }
50
+ return {
51
+ 'items': value['items'] == null ? undefined : (value['items'].map(RoleDTO_1.RoleDTOToJSON)),
52
+ 'page': value['page'],
53
+ 'pageSize': value['pageSize'],
54
+ 'totalItems': value['totalItems'],
55
+ 'totalPages': value['totalPages'],
56
+ };
57
+ }
58
+ //# sourceMappingURL=PaginatedRoleDTO.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"PaginatedRoleDTO.js","sourceRoot":"","sources":["PaginatedRoleDTO.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;;AAoDH,gEAEC;AAED,4DAEC;AAED,sEAYC;AAED,wDAEC;AAED,kEAaC;AAvFD,uCAKmB;AAwCnB;;GAEG;AACH,SAAgB,0BAA0B,CAAC,KAAa;IACpD,OAAO,IAAI,CAAC;AAChB,CAAC;AAED,SAAgB,wBAAwB,CAAC,IAAS;IAC9C,OAAO,6BAA6B,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AACtD,CAAC;AAED,SAAgB,6BAA6B,CAAC,IAAS,EAAE,mBAA4B;IACjF,IAAI,IAAI,IAAI,IAAI,EAAE,CAAC;QACf,OAAO,IAAI,CAAC;IAChB,CAAC;IACD,OAAO;QAEH,OAAO,EAAE,IAAI,CAAC,OAAO,CAAC,IAAI,IAAI,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,CAAE,IAAI,CAAC,OAAO,CAAgB,CAAC,GAAG,CAAC,yBAAe,CAAC,CAAC;QACjG,MAAM,EAAE,IAAI,CAAC,MAAM,CAAC,IAAI,IAAI,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,IAAI,CAAC,MAAM,CAAC;QACvD,UAAU,EAAE,IAAI,CAAC,UAAU,CAAC,IAAI,IAAI,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,IAAI,CAAC,UAAU,CAAC;QACnE,YAAY,EAAE,IAAI,CAAC,YAAY,CAAC,IAAI,IAAI,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,IAAI,CAAC,YAAY,CAAC;QACzE,YAAY,EAAE,IAAI,CAAC,YAAY,CAAC,IAAI,IAAI,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,IAAI,CAAC,YAAY,CAAC;KAC5E,CAAC;AACN,CAAC;AAED,SAAgB,sBAAsB,CAAC,IAAS;IAC5C,OAAO,2BAA2B,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AACpD,CAAC;AAED,SAAgB,2BAA2B,CAAC,KAA+B,EAAE,sBAA+B,KAAK;IAC7G,IAAI,KAAK,IAAI,IAAI,EAAE,CAAC;QAChB,OAAO,KAAK,CAAC;IACjB,CAAC;IAED,OAAO;QAEH,OAAO,EAAE,KAAK,CAAC,OAAO,CAAC,IAAI,IAAI,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,CAAE,KAAK,CAAC,OAAO,CAAgB,CAAC,GAAG,CAAC,uBAAa,CAAC,CAAC;QACjG,MAAM,EAAE,KAAK,CAAC,MAAM,CAAC;QACrB,UAAU,EAAE,KAAK,CAAC,UAAU,CAAC;QAC7B,YAAY,EAAE,KAAK,CAAC,YAAY,CAAC;QACjC,YAAY,EAAE,KAAK,CAAC,YAAY,CAAC;KACpC,CAAC;AACN,CAAC"}