@rasadov/lumoar-sdk 1.0.5 → 1.0.7

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.
@@ -6,7 +6,7 @@ common.ts
6
6
  configuration.ts
7
7
  docs/AuditLogAction.md
8
8
  docs/AuditLogEntity.md
9
- docs/AuditLogResponse.md
9
+ docs/AuditLogSchema.md
10
10
  docs/AuditLogsApi.md
11
11
  docs/AuthApi.md
12
12
  docs/AuthenticationSuccess.md
@@ -18,6 +18,7 @@ docs/CompanyUpdate.md
18
18
  docs/CompanyWithControls.md
19
19
  docs/CompanyWithRoles.md
20
20
  docs/ComplianceGoal.md
21
+ docs/ControlBase.md
21
22
  docs/ControlStatus.md
22
23
  docs/ControlWithEvidences.md
23
24
  docs/ControlWithRelationships.md
@@ -36,6 +37,9 @@ docs/HTTPValidationError.md
36
37
  docs/HealthApi.md
37
38
  docs/InviteToCompany.md
38
39
  docs/LoginSchema.md
40
+ docs/PaginationResponseAuditLogSchema.md
41
+ docs/PaginationResponseCompanyInDBBase.md
42
+ docs/PaginationResponsePolicyRead.md
39
43
  docs/PaymentsApi.md
40
44
  docs/PermissionType.md
41
45
  docs/PoliciesApi.md
package/README.md ADDED
@@ -0,0 +1,25 @@
1
+ # Lumoar SDK
2
+
3
+ ## Installation
4
+
5
+ ```bash
6
+ npm install @rasadov/lumoar-sdk
7
+ ```
8
+
9
+ ## Usage
10
+
11
+ ```typescript
12
+ import { ApiSDK } from '@rasadov/lumoar-sdk';
13
+
14
+ const api = new ApiSDK();
15
+ api.getCompaniesV1CompanyListGet();
16
+ ```
17
+
18
+ ## Generate SDK
19
+
20
+ ```bash
21
+ openapi-generator-cli generate -i http://localhost:8000/openapi.json -g typescript-axios -o .
22
+ ```
23
+
24
+ ## License
25
+ ISC
package/api.ts CHANGED
@@ -61,51 +61,51 @@ export type AuditLogEntity = typeof AuditLogEntity[keyof typeof AuditLogEntity];
61
61
  /**
62
62
  *
63
63
  * @export
64
- * @interface AuditLogResponse
64
+ * @interface AuditLogSchema
65
65
  */
66
- export interface AuditLogResponse {
66
+ export interface AuditLogSchema {
67
67
  /**
68
68
  *
69
69
  * @type {string}
70
- * @memberof AuditLogResponse
70
+ * @memberof AuditLogSchema
71
71
  */
72
72
  'company_id': string;
73
73
  /**
74
74
  *
75
75
  * @type {AuditLogAction}
76
- * @memberof AuditLogResponse
76
+ * @memberof AuditLogSchema
77
77
  */
78
78
  'action': AuditLogAction;
79
79
  /**
80
80
  *
81
81
  * @type {AuditLogEntity}
82
- * @memberof AuditLogResponse
82
+ * @memberof AuditLogSchema
83
83
  */
84
84
  'entity_type': AuditLogEntity;
85
85
  /**
86
86
  *
87
87
  * @type {string}
88
- * @memberof AuditLogResponse
88
+ * @memberof AuditLogSchema
89
89
  */
90
90
  'entity_id': string;
91
91
  /**
92
92
  *
93
93
  * @type {string}
94
- * @memberof AuditLogResponse
95
- */
96
- 'entity_name': string;
97
- /**
98
- *
99
- * @type {string}
100
- * @memberof AuditLogResponse
94
+ * @memberof AuditLogSchema
101
95
  */
102
96
  'timestamp': string;
103
97
  /**
104
98
  *
105
99
  * @type {{ [key: string]: any; }}
106
- * @memberof AuditLogResponse
100
+ * @memberof AuditLogSchema
107
101
  */
108
102
  'details': { [key: string]: any; } | null;
103
+ /**
104
+ *
105
+ * @type {UserBase}
106
+ * @memberof AuditLogSchema
107
+ */
108
+ 'user': UserBase;
109
109
  }
110
110
 
111
111
 
@@ -645,6 +645,37 @@ export const ComplianceGoal = {
645
645
  export type ComplianceGoal = typeof ComplianceGoal[keyof typeof ComplianceGoal];
646
646
 
647
647
 
648
+ /**
649
+ *
650
+ * @export
651
+ * @interface ControlBase
652
+ */
653
+ export interface ControlBase {
654
+ /**
655
+ *
656
+ * @type {string}
657
+ * @memberof ControlBase
658
+ */
659
+ 'id': string;
660
+ /**
661
+ *
662
+ * @type {string}
663
+ * @memberof ControlBase
664
+ */
665
+ 'status'?: string | null;
666
+ /**
667
+ *
668
+ * @type {string}
669
+ * @memberof ControlBase
670
+ */
671
+ 'note'?: string | null;
672
+ /**
673
+ *
674
+ * @type {string}
675
+ * @memberof ControlBase
676
+ */
677
+ 'updated_at'?: string | null;
678
+ }
648
679
  /**
649
680
  *
650
681
  * @export
@@ -675,12 +706,6 @@ export interface ControlWithEvidences {
675
706
  * @memberof ControlWithEvidences
676
707
  */
677
708
  'id': string;
678
- /**
679
- *
680
- * @type {FrameworkControlsBase}
681
- * @memberof ControlWithEvidences
682
- */
683
- 'framework_control': FrameworkControlsBase;
684
709
  /**
685
710
  *
686
711
  * @type {string}
@@ -699,6 +724,12 @@ export interface ControlWithEvidences {
699
724
  * @memberof ControlWithEvidences
700
725
  */
701
726
  'updated_at'?: string | null;
727
+ /**
728
+ *
729
+ * @type {FrameworkControlsBase}
730
+ * @memberof ControlWithEvidences
731
+ */
732
+ 'data': FrameworkControlsBase;
702
733
  /**
703
734
  *
704
735
  * @type {Array<EvidenceBase>}
@@ -718,12 +749,6 @@ export interface ControlWithRelationships {
718
749
  * @memberof ControlWithRelationships
719
750
  */
720
751
  'id': string;
721
- /**
722
- *
723
- * @type {FrameworkControlsBase}
724
- * @memberof ControlWithRelationships
725
- */
726
- 'framework_control': FrameworkControlsBase;
727
752
  /**
728
753
  *
729
754
  * @type {string}
@@ -742,6 +767,12 @@ export interface ControlWithRelationships {
742
767
  * @memberof ControlWithRelationships
743
768
  */
744
769
  'updated_at'?: string | null;
770
+ /**
771
+ *
772
+ * @type {FrameworkControlsBase}
773
+ * @memberof ControlWithRelationships
774
+ */
775
+ 'data': FrameworkControlsBase;
745
776
  /**
746
777
  *
747
778
  * @type {CompanyInDBBase}
@@ -1089,6 +1120,63 @@ export interface LoginSchema {
1089
1120
  */
1090
1121
  'turnstile_token': string;
1091
1122
  }
1123
+ /**
1124
+ *
1125
+ * @export
1126
+ * @interface PaginationResponseAuditLogSchema
1127
+ */
1128
+ export interface PaginationResponseAuditLogSchema {
1129
+ /**
1130
+ *
1131
+ * @type {Array<AuditLogSchema>}
1132
+ * @memberof PaginationResponseAuditLogSchema
1133
+ */
1134
+ 'items': Array<AuditLogSchema>;
1135
+ /**
1136
+ *
1137
+ * @type {number}
1138
+ * @memberof PaginationResponseAuditLogSchema
1139
+ */
1140
+ 'total': number;
1141
+ }
1142
+ /**
1143
+ *
1144
+ * @export
1145
+ * @interface PaginationResponseCompanyInDBBase
1146
+ */
1147
+ export interface PaginationResponseCompanyInDBBase {
1148
+ /**
1149
+ *
1150
+ * @type {Array<CompanyInDBBase>}
1151
+ * @memberof PaginationResponseCompanyInDBBase
1152
+ */
1153
+ 'items': Array<CompanyInDBBase>;
1154
+ /**
1155
+ *
1156
+ * @type {number}
1157
+ * @memberof PaginationResponseCompanyInDBBase
1158
+ */
1159
+ 'total': number;
1160
+ }
1161
+ /**
1162
+ *
1163
+ * @export
1164
+ * @interface PaginationResponsePolicyRead
1165
+ */
1166
+ export interface PaginationResponsePolicyRead {
1167
+ /**
1168
+ *
1169
+ * @type {Array<PolicyRead>}
1170
+ * @memberof PaginationResponsePolicyRead
1171
+ */
1172
+ 'items': Array<PolicyRead>;
1173
+ /**
1174
+ *
1175
+ * @type {number}
1176
+ * @memberof PaginationResponsePolicyRead
1177
+ */
1178
+ 'total': number;
1179
+ }
1092
1180
  /**
1093
1181
  *
1094
1182
  * @export
@@ -1327,7 +1415,7 @@ export interface UpdateControlSchema {
1327
1415
  * @type {ControlStatus}
1328
1416
  * @memberof UpdateControlSchema
1329
1417
  */
1330
- 'status'?: ControlStatus | null;
1418
+ 'status': ControlStatus;
1331
1419
  /**
1332
1420
  *
1333
1421
  * @type {string}
@@ -1561,8 +1649,8 @@ export const AuditLogsApiAxiosParamCreator = function (configuration?: Configura
1561
1649
  *
1562
1650
  * @summary List Audit Logs
1563
1651
  * @param {string} companyId
1564
- * @param {number} page
1565
- * @param {number} elements
1652
+ * @param {number} [page]
1653
+ * @param {number} [elements]
1566
1654
  * @param {AuditLogEntity | null} [entityType]
1567
1655
  * @param {AuditLogAction | null} [action]
1568
1656
  * @param {string | null} [startDate]
@@ -1572,13 +1660,9 @@ export const AuditLogsApiAxiosParamCreator = function (configuration?: Configura
1572
1660
  * @param {*} [options] Override http request option.
1573
1661
  * @throws {RequiredError}
1574
1662
  */
1575
- listAuditLogsV1AuditLogsListGet: async (companyId: string, page: number, elements: number, entityType?: AuditLogEntity | null, action?: AuditLogAction | null, startDate?: string | null, endDate?: string | null, authorization?: string, sessionId?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
1663
+ listAuditLogsV1AuditLogsListGet: async (companyId: string, page?: number, elements?: number, entityType?: AuditLogEntity | null, action?: AuditLogAction | null, startDate?: string | null, endDate?: string | null, authorization?: string, sessionId?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
1576
1664
  // verify required parameter 'companyId' is not null or undefined
1577
1665
  assertParamExists('listAuditLogsV1AuditLogsListGet', 'companyId', companyId)
1578
- // verify required parameter 'page' is not null or undefined
1579
- assertParamExists('listAuditLogsV1AuditLogsListGet', 'page', page)
1580
- // verify required parameter 'elements' is not null or undefined
1581
- assertParamExists('listAuditLogsV1AuditLogsListGet', 'elements', elements)
1582
1666
  const localVarPath = `/v1/audit-logs/list`;
1583
1667
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
1584
1668
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -1651,8 +1735,8 @@ export const AuditLogsApiFp = function(configuration?: Configuration) {
1651
1735
  *
1652
1736
  * @summary List Audit Logs
1653
1737
  * @param {string} companyId
1654
- * @param {number} page
1655
- * @param {number} elements
1738
+ * @param {number} [page]
1739
+ * @param {number} [elements]
1656
1740
  * @param {AuditLogEntity | null} [entityType]
1657
1741
  * @param {AuditLogAction | null} [action]
1658
1742
  * @param {string | null} [startDate]
@@ -1662,7 +1746,7 @@ export const AuditLogsApiFp = function(configuration?: Configuration) {
1662
1746
  * @param {*} [options] Override http request option.
1663
1747
  * @throws {RequiredError}
1664
1748
  */
1665
- async listAuditLogsV1AuditLogsListGet(companyId: string, page: number, elements: number, entityType?: AuditLogEntity | null, action?: AuditLogAction | null, startDate?: string | null, endDate?: string | null, authorization?: string, sessionId?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<AuditLogResponse>>> {
1749
+ async listAuditLogsV1AuditLogsListGet(companyId: string, page?: number, elements?: number, entityType?: AuditLogEntity | null, action?: AuditLogAction | null, startDate?: string | null, endDate?: string | null, authorization?: string, sessionId?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PaginationResponseAuditLogSchema>> {
1666
1750
  const localVarAxiosArgs = await localVarAxiosParamCreator.listAuditLogsV1AuditLogsListGet(companyId, page, elements, entityType, action, startDate, endDate, authorization, sessionId, options);
1667
1751
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1668
1752
  const localVarOperationServerBasePath = operationServerMap['AuditLogsApi.listAuditLogsV1AuditLogsListGet']?.[localVarOperationServerIndex]?.url;
@@ -1682,8 +1766,8 @@ export const AuditLogsApiFactory = function (configuration?: Configuration, base
1682
1766
  *
1683
1767
  * @summary List Audit Logs
1684
1768
  * @param {string} companyId
1685
- * @param {number} page
1686
- * @param {number} elements
1769
+ * @param {number} [page]
1770
+ * @param {number} [elements]
1687
1771
  * @param {AuditLogEntity | null} [entityType]
1688
1772
  * @param {AuditLogAction | null} [action]
1689
1773
  * @param {string | null} [startDate]
@@ -1693,7 +1777,7 @@ export const AuditLogsApiFactory = function (configuration?: Configuration, base
1693
1777
  * @param {*} [options] Override http request option.
1694
1778
  * @throws {RequiredError}
1695
1779
  */
1696
- listAuditLogsV1AuditLogsListGet(companyId: string, page: number, elements: number, entityType?: AuditLogEntity | null, action?: AuditLogAction | null, startDate?: string | null, endDate?: string | null, authorization?: string, sessionId?: string, options?: RawAxiosRequestConfig): AxiosPromise<Array<AuditLogResponse>> {
1780
+ listAuditLogsV1AuditLogsListGet(companyId: string, page?: number, elements?: number, entityType?: AuditLogEntity | null, action?: AuditLogAction | null, startDate?: string | null, endDate?: string | null, authorization?: string, sessionId?: string, options?: RawAxiosRequestConfig): AxiosPromise<PaginationResponseAuditLogSchema> {
1697
1781
  return localVarFp.listAuditLogsV1AuditLogsListGet(companyId, page, elements, entityType, action, startDate, endDate, authorization, sessionId, options).then((request) => request(axios, basePath));
1698
1782
  },
1699
1783
  };
@@ -1710,8 +1794,8 @@ export class AuditLogsApi extends BaseAPI {
1710
1794
  *
1711
1795
  * @summary List Audit Logs
1712
1796
  * @param {string} companyId
1713
- * @param {number} page
1714
- * @param {number} elements
1797
+ * @param {number} [page]
1798
+ * @param {number} [elements]
1715
1799
  * @param {AuditLogEntity | null} [entityType]
1716
1800
  * @param {AuditLogAction | null} [action]
1717
1801
  * @param {string | null} [startDate]
@@ -1722,7 +1806,7 @@ export class AuditLogsApi extends BaseAPI {
1722
1806
  * @throws {RequiredError}
1723
1807
  * @memberof AuditLogsApi
1724
1808
  */
1725
- public listAuditLogsV1AuditLogsListGet(companyId: string, page: number, elements: number, entityType?: AuditLogEntity | null, action?: AuditLogAction | null, startDate?: string | null, endDate?: string | null, authorization?: string, sessionId?: string, options?: RawAxiosRequestConfig) {
1809
+ public listAuditLogsV1AuditLogsListGet(companyId: string, page?: number, elements?: number, entityType?: AuditLogEntity | null, action?: AuditLogAction | null, startDate?: string | null, endDate?: string | null, authorization?: string, sessionId?: string, options?: RawAxiosRequestConfig) {
1726
1810
  return AuditLogsApiFp(this.configuration).listAuditLogsV1AuditLogsListGet(companyId, page, elements, entityType, action, startDate, endDate, authorization, sessionId, options).then((request) => request(this.axios, this.basePath));
1727
1811
  }
1728
1812
  }
@@ -2663,16 +2747,16 @@ export const CompanyApiAxiosParamCreator = function (configuration?: Configurati
2663
2747
  },
2664
2748
  /**
2665
2749
  *
2666
- * @summary Get Controls
2750
+ * @summary Get Company With Controls
2667
2751
  * @param {string} companyId
2668
2752
  * @param {string} [authorization]
2669
2753
  * @param {string} [sessionId]
2670
2754
  * @param {*} [options] Override http request option.
2671
2755
  * @throws {RequiredError}
2672
2756
  */
2673
- getControlsV1CompanyControlsCompanyIdGet: async (companyId: string, authorization?: string, sessionId?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
2757
+ getCompanyWithControlsV1CompanyControlsCompanyIdGet: async (companyId: string, authorization?: string, sessionId?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
2674
2758
  // verify required parameter 'companyId' is not null or undefined
2675
- assertParamExists('getControlsV1CompanyControlsCompanyIdGet', 'companyId', companyId)
2759
+ assertParamExists('getCompanyWithControlsV1CompanyControlsCompanyIdGet', 'companyId', companyId)
2676
2760
  const localVarPath = `/v1/company/controls/{company_id}`
2677
2761
  .replace(`{${"company_id"}}`, encodeURIComponent(String(companyId)));
2678
2762
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
@@ -2688,51 +2772,6 @@ export const CompanyApiAxiosParamCreator = function (configuration?: Configurati
2688
2772
 
2689
2773
 
2690
2774
 
2691
- if (authorization != null) {
2692
- localVarHeaderParameter['Authorization'] = String(authorization);
2693
- }
2694
- setSearchParams(localVarUrlObj, localVarQueryParameter);
2695
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2696
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
2697
-
2698
- return {
2699
- url: toPathString(localVarUrlObj),
2700
- options: localVarRequestOptions,
2701
- };
2702
- },
2703
- /**
2704
- *
2705
- * @summary Get Policies
2706
- * @param {number} [page]
2707
- * @param {number} [elements]
2708
- * @param {string} [authorization]
2709
- * @param {string} [sessionId]
2710
- * @param {*} [options] Override http request option.
2711
- * @throws {RequiredError}
2712
- */
2713
- getPoliciesV1CompanyPoliciesGet: async (page?: number, elements?: number, authorization?: string, sessionId?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
2714
- const localVarPath = `/v1/company/policies`;
2715
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
2716
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
2717
- let baseOptions;
2718
- if (configuration) {
2719
- baseOptions = configuration.baseOptions;
2720
- }
2721
-
2722
- const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
2723
- const localVarHeaderParameter = {} as any;
2724
- const localVarQueryParameter = {} as any;
2725
-
2726
- if (page !== undefined) {
2727
- localVarQueryParameter['page'] = page;
2728
- }
2729
-
2730
- if (elements !== undefined) {
2731
- localVarQueryParameter['elements'] = elements;
2732
- }
2733
-
2734
-
2735
-
2736
2775
  if (authorization != null) {
2737
2776
  localVarHeaderParameter['Authorization'] = String(authorization);
2738
2777
  }
@@ -2821,7 +2860,7 @@ export const CompanyApiFp = function(configuration?: Configuration) {
2821
2860
  * @param {*} [options] Override http request option.
2822
2861
  * @throws {RequiredError}
2823
2862
  */
2824
- async getCompaniesV1CompanyListGet(page?: number, elements?: number, authorization?: string, sessionId?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<CompanyInDBBase>>> {
2863
+ async getCompaniesV1CompanyListGet(page?: number, elements?: number, authorization?: string, sessionId?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PaginationResponseCompanyInDBBase>> {
2825
2864
  const localVarAxiosArgs = await localVarAxiosParamCreator.getCompaniesV1CompanyListGet(page, elements, authorization, sessionId, options);
2826
2865
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
2827
2866
  const localVarOperationServerBasePath = operationServerMap['CompanyApi.getCompaniesV1CompanyListGet']?.[localVarOperationServerIndex]?.url;
@@ -2844,33 +2883,17 @@ export const CompanyApiFp = function(configuration?: Configuration) {
2844
2883
  },
2845
2884
  /**
2846
2885
  *
2847
- * @summary Get Controls
2886
+ * @summary Get Company With Controls
2848
2887
  * @param {string} companyId
2849
2888
  * @param {string} [authorization]
2850
2889
  * @param {string} [sessionId]
2851
2890
  * @param {*} [options] Override http request option.
2852
2891
  * @throws {RequiredError}
2853
2892
  */
2854
- async getControlsV1CompanyControlsCompanyIdGet(companyId: string, authorization?: string, sessionId?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CompanyWithControls>> {
2855
- const localVarAxiosArgs = await localVarAxiosParamCreator.getControlsV1CompanyControlsCompanyIdGet(companyId, authorization, sessionId, options);
2856
- const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
2857
- const localVarOperationServerBasePath = operationServerMap['CompanyApi.getControlsV1CompanyControlsCompanyIdGet']?.[localVarOperationServerIndex]?.url;
2858
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2859
- },
2860
- /**
2861
- *
2862
- * @summary Get Policies
2863
- * @param {number} [page]
2864
- * @param {number} [elements]
2865
- * @param {string} [authorization]
2866
- * @param {string} [sessionId]
2867
- * @param {*} [options] Override http request option.
2868
- * @throws {RequiredError}
2869
- */
2870
- async getPoliciesV1CompanyPoliciesGet(page?: number, elements?: number, authorization?: string, sessionId?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<PolicyRead>>> {
2871
- const localVarAxiosArgs = await localVarAxiosParamCreator.getPoliciesV1CompanyPoliciesGet(page, elements, authorization, sessionId, options);
2893
+ async getCompanyWithControlsV1CompanyControlsCompanyIdGet(companyId: string, authorization?: string, sessionId?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CompanyWithControls>> {
2894
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getCompanyWithControlsV1CompanyControlsCompanyIdGet(companyId, authorization, sessionId, options);
2872
2895
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
2873
- const localVarOperationServerBasePath = operationServerMap['CompanyApi.getPoliciesV1CompanyPoliciesGet']?.[localVarOperationServerIndex]?.url;
2896
+ const localVarOperationServerBasePath = operationServerMap['CompanyApi.getCompanyWithControlsV1CompanyControlsCompanyIdGet']?.[localVarOperationServerIndex]?.url;
2874
2897
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2875
2898
  },
2876
2899
  /**
@@ -2920,7 +2943,7 @@ export const CompanyApiFactory = function (configuration?: Configuration, basePa
2920
2943
  * @param {*} [options] Override http request option.
2921
2944
  * @throws {RequiredError}
2922
2945
  */
2923
- getCompaniesV1CompanyListGet(page?: number, elements?: number, authorization?: string, sessionId?: string, options?: RawAxiosRequestConfig): AxiosPromise<Array<CompanyInDBBase>> {
2946
+ getCompaniesV1CompanyListGet(page?: number, elements?: number, authorization?: string, sessionId?: string, options?: RawAxiosRequestConfig): AxiosPromise<PaginationResponseCompanyInDBBase> {
2924
2947
  return localVarFp.getCompaniesV1CompanyListGet(page, elements, authorization, sessionId, options).then((request) => request(axios, basePath));
2925
2948
  },
2926
2949
  /**
@@ -2937,28 +2960,15 @@ export const CompanyApiFactory = function (configuration?: Configuration, basePa
2937
2960
  },
2938
2961
  /**
2939
2962
  *
2940
- * @summary Get Controls
2963
+ * @summary Get Company With Controls
2941
2964
  * @param {string} companyId
2942
2965
  * @param {string} [authorization]
2943
2966
  * @param {string} [sessionId]
2944
2967
  * @param {*} [options] Override http request option.
2945
2968
  * @throws {RequiredError}
2946
2969
  */
2947
- getControlsV1CompanyControlsCompanyIdGet(companyId: string, authorization?: string, sessionId?: string, options?: RawAxiosRequestConfig): AxiosPromise<CompanyWithControls> {
2948
- return localVarFp.getControlsV1CompanyControlsCompanyIdGet(companyId, authorization, sessionId, options).then((request) => request(axios, basePath));
2949
- },
2950
- /**
2951
- *
2952
- * @summary Get Policies
2953
- * @param {number} [page]
2954
- * @param {number} [elements]
2955
- * @param {string} [authorization]
2956
- * @param {string} [sessionId]
2957
- * @param {*} [options] Override http request option.
2958
- * @throws {RequiredError}
2959
- */
2960
- getPoliciesV1CompanyPoliciesGet(page?: number, elements?: number, authorization?: string, sessionId?: string, options?: RawAxiosRequestConfig): AxiosPromise<Array<PolicyRead>> {
2961
- return localVarFp.getPoliciesV1CompanyPoliciesGet(page, elements, authorization, sessionId, options).then((request) => request(axios, basePath));
2970
+ getCompanyWithControlsV1CompanyControlsCompanyIdGet(companyId: string, authorization?: string, sessionId?: string, options?: RawAxiosRequestConfig): AxiosPromise<CompanyWithControls> {
2971
+ return localVarFp.getCompanyWithControlsV1CompanyControlsCompanyIdGet(companyId, authorization, sessionId, options).then((request) => request(axios, basePath));
2962
2972
  },
2963
2973
  /**
2964
2974
  *
@@ -3027,7 +3037,7 @@ export class CompanyApi extends BaseAPI {
3027
3037
 
3028
3038
  /**
3029
3039
  *
3030
- * @summary Get Controls
3040
+ * @summary Get Company With Controls
3031
3041
  * @param {string} companyId
3032
3042
  * @param {string} [authorization]
3033
3043
  * @param {string} [sessionId]
@@ -3035,23 +3045,8 @@ export class CompanyApi extends BaseAPI {
3035
3045
  * @throws {RequiredError}
3036
3046
  * @memberof CompanyApi
3037
3047
  */
3038
- public getControlsV1CompanyControlsCompanyIdGet(companyId: string, authorization?: string, sessionId?: string, options?: RawAxiosRequestConfig) {
3039
- return CompanyApiFp(this.configuration).getControlsV1CompanyControlsCompanyIdGet(companyId, authorization, sessionId, options).then((request) => request(this.axios, this.basePath));
3040
- }
3041
-
3042
- /**
3043
- *
3044
- * @summary Get Policies
3045
- * @param {number} [page]
3046
- * @param {number} [elements]
3047
- * @param {string} [authorization]
3048
- * @param {string} [sessionId]
3049
- * @param {*} [options] Override http request option.
3050
- * @throws {RequiredError}
3051
- * @memberof CompanyApi
3052
- */
3053
- public getPoliciesV1CompanyPoliciesGet(page?: number, elements?: number, authorization?: string, sessionId?: string, options?: RawAxiosRequestConfig) {
3054
- return CompanyApiFp(this.configuration).getPoliciesV1CompanyPoliciesGet(page, elements, authorization, sessionId, options).then((request) => request(this.axios, this.basePath));
3048
+ public getCompanyWithControlsV1CompanyControlsCompanyIdGet(companyId: string, authorization?: string, sessionId?: string, options?: RawAxiosRequestConfig) {
3049
+ return CompanyApiFp(this.configuration).getCompanyWithControlsV1CompanyControlsCompanyIdGet(companyId, authorization, sessionId, options).then((request) => request(this.axios, this.basePath));
3055
3050
  }
3056
3051
 
3057
3052
  /**
@@ -3191,7 +3186,7 @@ export const ControlsApiFp = function(configuration?: Configuration) {
3191
3186
  * @param {*} [options] Override http request option.
3192
3187
  * @throws {RequiredError}
3193
3188
  */
3194
- async updateControlV1ControlsUpdatePatch(updateControlSchema: UpdateControlSchema, authorization?: string, sessionId?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetControl>> {
3189
+ async updateControlV1ControlsUpdatePatch(updateControlSchema: UpdateControlSchema, authorization?: string, sessionId?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ControlBase>> {
3195
3190
  const localVarAxiosArgs = await localVarAxiosParamCreator.updateControlV1ControlsUpdatePatch(updateControlSchema, authorization, sessionId, options);
3196
3191
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
3197
3192
  const localVarOperationServerBasePath = operationServerMap['ControlsApi.updateControlV1ControlsUpdatePatch']?.[localVarOperationServerIndex]?.url;
@@ -3228,7 +3223,7 @@ export const ControlsApiFactory = function (configuration?: Configuration, baseP
3228
3223
  * @param {*} [options] Override http request option.
3229
3224
  * @throws {RequiredError}
3230
3225
  */
3231
- updateControlV1ControlsUpdatePatch(updateControlSchema: UpdateControlSchema, authorization?: string, sessionId?: string, options?: RawAxiosRequestConfig): AxiosPromise<GetControl> {
3226
+ updateControlV1ControlsUpdatePatch(updateControlSchema: UpdateControlSchema, authorization?: string, sessionId?: string, options?: RawAxiosRequestConfig): AxiosPromise<ControlBase> {
3232
3227
  return localVarFp.updateControlV1ControlsUpdatePatch(updateControlSchema, authorization, sessionId, options).then((request) => request(axios, basePath));
3233
3228
  },
3234
3229
  };
@@ -4653,7 +4648,7 @@ export const PoliciesApiFp = function(configuration?: Configuration) {
4653
4648
  * @param {*} [options] Override http request option.
4654
4649
  * @throws {RequiredError}
4655
4650
  */
4656
- async getCompanyPoliciesV1PoliciesCompanyCompanyIdGet(companyId: string, page?: number, elements?: number, authorization?: string, sessionId?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<PolicyRead>>> {
4651
+ async getCompanyPoliciesV1PoliciesCompanyCompanyIdGet(companyId: string, page?: number, elements?: number, authorization?: string, sessionId?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PaginationResponsePolicyRead>> {
4657
4652
  const localVarAxiosArgs = await localVarAxiosParamCreator.getCompanyPoliciesV1PoliciesCompanyCompanyIdGet(companyId, page, elements, authorization, sessionId, options);
4658
4653
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
4659
4654
  const localVarOperationServerBasePath = operationServerMap['PoliciesApi.getCompanyPoliciesV1PoliciesCompanyCompanyIdGet']?.[localVarOperationServerIndex]?.url;
@@ -4733,7 +4728,7 @@ export const PoliciesApiFactory = function (configuration?: Configuration, baseP
4733
4728
  * @param {*} [options] Override http request option.
4734
4729
  * @throws {RequiredError}
4735
4730
  */
4736
- getCompanyPoliciesV1PoliciesCompanyCompanyIdGet(companyId: string, page?: number, elements?: number, authorization?: string, sessionId?: string, options?: RawAxiosRequestConfig): AxiosPromise<Array<PolicyRead>> {
4731
+ getCompanyPoliciesV1PoliciesCompanyCompanyIdGet(companyId: string, page?: number, elements?: number, authorization?: string, sessionId?: string, options?: RawAxiosRequestConfig): AxiosPromise<PaginationResponsePolicyRead> {
4737
4732
  return localVarFp.getCompanyPoliciesV1PoliciesCompanyCompanyIdGet(companyId, page, elements, authorization, sessionId, options).then((request) => request(axios, basePath));
4738
4733
  },
4739
4734
  /**