@rasadov/lumoar-sdk 1.0.5 → 1.0.6

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
@@ -36,6 +36,9 @@ docs/HTTPValidationError.md
36
36
  docs/HealthApi.md
37
37
  docs/InviteToCompany.md
38
38
  docs/LoginSchema.md
39
+ docs/PaginationResponseAuditLogSchema.md
40
+ docs/PaginationResponseCompanyInDBBase.md
41
+ docs/PaginationResponsePolicyRead.md
39
42
  docs/PaymentsApi.md
40
43
  docs/PermissionType.md
41
44
  docs/PoliciesApi.md
package/api.ts CHANGED
@@ -61,49 +61,49 @@ 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
94
+ * @memberof AuditLogSchema
95
95
  */
96
96
  'entity_name': string;
97
97
  /**
98
98
  *
99
99
  * @type {string}
100
- * @memberof AuditLogResponse
100
+ * @memberof AuditLogSchema
101
101
  */
102
102
  'timestamp': string;
103
103
  /**
104
104
  *
105
105
  * @type {{ [key: string]: any; }}
106
- * @memberof AuditLogResponse
106
+ * @memberof AuditLogSchema
107
107
  */
108
108
  'details': { [key: string]: any; } | null;
109
109
  }
@@ -1089,6 +1089,63 @@ export interface LoginSchema {
1089
1089
  */
1090
1090
  'turnstile_token': string;
1091
1091
  }
1092
+ /**
1093
+ *
1094
+ * @export
1095
+ * @interface PaginationResponseAuditLogSchema
1096
+ */
1097
+ export interface PaginationResponseAuditLogSchema {
1098
+ /**
1099
+ *
1100
+ * @type {Array<AuditLogSchema>}
1101
+ * @memberof PaginationResponseAuditLogSchema
1102
+ */
1103
+ 'items': Array<AuditLogSchema>;
1104
+ /**
1105
+ *
1106
+ * @type {number}
1107
+ * @memberof PaginationResponseAuditLogSchema
1108
+ */
1109
+ 'total': number;
1110
+ }
1111
+ /**
1112
+ *
1113
+ * @export
1114
+ * @interface PaginationResponseCompanyInDBBase
1115
+ */
1116
+ export interface PaginationResponseCompanyInDBBase {
1117
+ /**
1118
+ *
1119
+ * @type {Array<CompanyInDBBase>}
1120
+ * @memberof PaginationResponseCompanyInDBBase
1121
+ */
1122
+ 'items': Array<CompanyInDBBase>;
1123
+ /**
1124
+ *
1125
+ * @type {number}
1126
+ * @memberof PaginationResponseCompanyInDBBase
1127
+ */
1128
+ 'total': number;
1129
+ }
1130
+ /**
1131
+ *
1132
+ * @export
1133
+ * @interface PaginationResponsePolicyRead
1134
+ */
1135
+ export interface PaginationResponsePolicyRead {
1136
+ /**
1137
+ *
1138
+ * @type {Array<PolicyRead>}
1139
+ * @memberof PaginationResponsePolicyRead
1140
+ */
1141
+ 'items': Array<PolicyRead>;
1142
+ /**
1143
+ *
1144
+ * @type {number}
1145
+ * @memberof PaginationResponsePolicyRead
1146
+ */
1147
+ 'total': number;
1148
+ }
1092
1149
  /**
1093
1150
  *
1094
1151
  * @export
@@ -1561,8 +1618,8 @@ export const AuditLogsApiAxiosParamCreator = function (configuration?: Configura
1561
1618
  *
1562
1619
  * @summary List Audit Logs
1563
1620
  * @param {string} companyId
1564
- * @param {number} page
1565
- * @param {number} elements
1621
+ * @param {number} [page]
1622
+ * @param {number} [elements]
1566
1623
  * @param {AuditLogEntity | null} [entityType]
1567
1624
  * @param {AuditLogAction | null} [action]
1568
1625
  * @param {string | null} [startDate]
@@ -1572,13 +1629,9 @@ export const AuditLogsApiAxiosParamCreator = function (configuration?: Configura
1572
1629
  * @param {*} [options] Override http request option.
1573
1630
  * @throws {RequiredError}
1574
1631
  */
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> => {
1632
+ 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
1633
  // verify required parameter 'companyId' is not null or undefined
1577
1634
  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
1635
  const localVarPath = `/v1/audit-logs/list`;
1583
1636
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
1584
1637
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -1651,8 +1704,8 @@ export const AuditLogsApiFp = function(configuration?: Configuration) {
1651
1704
  *
1652
1705
  * @summary List Audit Logs
1653
1706
  * @param {string} companyId
1654
- * @param {number} page
1655
- * @param {number} elements
1707
+ * @param {number} [page]
1708
+ * @param {number} [elements]
1656
1709
  * @param {AuditLogEntity | null} [entityType]
1657
1710
  * @param {AuditLogAction | null} [action]
1658
1711
  * @param {string | null} [startDate]
@@ -1662,7 +1715,7 @@ export const AuditLogsApiFp = function(configuration?: Configuration) {
1662
1715
  * @param {*} [options] Override http request option.
1663
1716
  * @throws {RequiredError}
1664
1717
  */
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>>> {
1718
+ 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
1719
  const localVarAxiosArgs = await localVarAxiosParamCreator.listAuditLogsV1AuditLogsListGet(companyId, page, elements, entityType, action, startDate, endDate, authorization, sessionId, options);
1667
1720
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1668
1721
  const localVarOperationServerBasePath = operationServerMap['AuditLogsApi.listAuditLogsV1AuditLogsListGet']?.[localVarOperationServerIndex]?.url;
@@ -1682,8 +1735,8 @@ export const AuditLogsApiFactory = function (configuration?: Configuration, base
1682
1735
  *
1683
1736
  * @summary List Audit Logs
1684
1737
  * @param {string} companyId
1685
- * @param {number} page
1686
- * @param {number} elements
1738
+ * @param {number} [page]
1739
+ * @param {number} [elements]
1687
1740
  * @param {AuditLogEntity | null} [entityType]
1688
1741
  * @param {AuditLogAction | null} [action]
1689
1742
  * @param {string | null} [startDate]
@@ -1693,7 +1746,7 @@ export const AuditLogsApiFactory = function (configuration?: Configuration, base
1693
1746
  * @param {*} [options] Override http request option.
1694
1747
  * @throws {RequiredError}
1695
1748
  */
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>> {
1749
+ 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
1750
  return localVarFp.listAuditLogsV1AuditLogsListGet(companyId, page, elements, entityType, action, startDate, endDate, authorization, sessionId, options).then((request) => request(axios, basePath));
1698
1751
  },
1699
1752
  };
@@ -1710,8 +1763,8 @@ export class AuditLogsApi extends BaseAPI {
1710
1763
  *
1711
1764
  * @summary List Audit Logs
1712
1765
  * @param {string} companyId
1713
- * @param {number} page
1714
- * @param {number} elements
1766
+ * @param {number} [page]
1767
+ * @param {number} [elements]
1715
1768
  * @param {AuditLogEntity | null} [entityType]
1716
1769
  * @param {AuditLogAction | null} [action]
1717
1770
  * @param {string | null} [startDate]
@@ -1722,7 +1775,7 @@ export class AuditLogsApi extends BaseAPI {
1722
1775
  * @throws {RequiredError}
1723
1776
  * @memberof AuditLogsApi
1724
1777
  */
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) {
1778
+ 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
1779
  return AuditLogsApiFp(this.configuration).listAuditLogsV1AuditLogsListGet(companyId, page, elements, entityType, action, startDate, endDate, authorization, sessionId, options).then((request) => request(this.axios, this.basePath));
1727
1780
  }
1728
1781
  }
@@ -2663,16 +2716,16 @@ export const CompanyApiAxiosParamCreator = function (configuration?: Configurati
2663
2716
  },
2664
2717
  /**
2665
2718
  *
2666
- * @summary Get Controls
2719
+ * @summary Get Company With Controls
2667
2720
  * @param {string} companyId
2668
2721
  * @param {string} [authorization]
2669
2722
  * @param {string} [sessionId]
2670
2723
  * @param {*} [options] Override http request option.
2671
2724
  * @throws {RequiredError}
2672
2725
  */
2673
- getControlsV1CompanyControlsCompanyIdGet: async (companyId: string, authorization?: string, sessionId?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
2726
+ getCompanyWithControlsV1CompanyControlsCompanyIdGet: async (companyId: string, authorization?: string, sessionId?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
2674
2727
  // verify required parameter 'companyId' is not null or undefined
2675
- assertParamExists('getControlsV1CompanyControlsCompanyIdGet', 'companyId', companyId)
2728
+ assertParamExists('getCompanyWithControlsV1CompanyControlsCompanyIdGet', 'companyId', companyId)
2676
2729
  const localVarPath = `/v1/company/controls/{company_id}`
2677
2730
  .replace(`{${"company_id"}}`, encodeURIComponent(String(companyId)));
2678
2731
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
@@ -2688,51 +2741,6 @@ export const CompanyApiAxiosParamCreator = function (configuration?: Configurati
2688
2741
 
2689
2742
 
2690
2743
 
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
2744
  if (authorization != null) {
2737
2745
  localVarHeaderParameter['Authorization'] = String(authorization);
2738
2746
  }
@@ -2821,7 +2829,7 @@ export const CompanyApiFp = function(configuration?: Configuration) {
2821
2829
  * @param {*} [options] Override http request option.
2822
2830
  * @throws {RequiredError}
2823
2831
  */
2824
- async getCompaniesV1CompanyListGet(page?: number, elements?: number, authorization?: string, sessionId?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<CompanyInDBBase>>> {
2832
+ async getCompaniesV1CompanyListGet(page?: number, elements?: number, authorization?: string, sessionId?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PaginationResponseCompanyInDBBase>> {
2825
2833
  const localVarAxiosArgs = await localVarAxiosParamCreator.getCompaniesV1CompanyListGet(page, elements, authorization, sessionId, options);
2826
2834
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
2827
2835
  const localVarOperationServerBasePath = operationServerMap['CompanyApi.getCompaniesV1CompanyListGet']?.[localVarOperationServerIndex]?.url;
@@ -2844,33 +2852,17 @@ export const CompanyApiFp = function(configuration?: Configuration) {
2844
2852
  },
2845
2853
  /**
2846
2854
  *
2847
- * @summary Get Controls
2855
+ * @summary Get Company With Controls
2848
2856
  * @param {string} companyId
2849
2857
  * @param {string} [authorization]
2850
2858
  * @param {string} [sessionId]
2851
2859
  * @param {*} [options] Override http request option.
2852
2860
  * @throws {RequiredError}
2853
2861
  */
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);
2862
+ async getCompanyWithControlsV1CompanyControlsCompanyIdGet(companyId: string, authorization?: string, sessionId?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CompanyWithControls>> {
2863
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getCompanyWithControlsV1CompanyControlsCompanyIdGet(companyId, authorization, sessionId, options);
2872
2864
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
2873
- const localVarOperationServerBasePath = operationServerMap['CompanyApi.getPoliciesV1CompanyPoliciesGet']?.[localVarOperationServerIndex]?.url;
2865
+ const localVarOperationServerBasePath = operationServerMap['CompanyApi.getCompanyWithControlsV1CompanyControlsCompanyIdGet']?.[localVarOperationServerIndex]?.url;
2874
2866
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2875
2867
  },
2876
2868
  /**
@@ -2920,7 +2912,7 @@ export const CompanyApiFactory = function (configuration?: Configuration, basePa
2920
2912
  * @param {*} [options] Override http request option.
2921
2913
  * @throws {RequiredError}
2922
2914
  */
2923
- getCompaniesV1CompanyListGet(page?: number, elements?: number, authorization?: string, sessionId?: string, options?: RawAxiosRequestConfig): AxiosPromise<Array<CompanyInDBBase>> {
2915
+ getCompaniesV1CompanyListGet(page?: number, elements?: number, authorization?: string, sessionId?: string, options?: RawAxiosRequestConfig): AxiosPromise<PaginationResponseCompanyInDBBase> {
2924
2916
  return localVarFp.getCompaniesV1CompanyListGet(page, elements, authorization, sessionId, options).then((request) => request(axios, basePath));
2925
2917
  },
2926
2918
  /**
@@ -2937,28 +2929,15 @@ export const CompanyApiFactory = function (configuration?: Configuration, basePa
2937
2929
  },
2938
2930
  /**
2939
2931
  *
2940
- * @summary Get Controls
2932
+ * @summary Get Company With Controls
2941
2933
  * @param {string} companyId
2942
2934
  * @param {string} [authorization]
2943
2935
  * @param {string} [sessionId]
2944
2936
  * @param {*} [options] Override http request option.
2945
2937
  * @throws {RequiredError}
2946
2938
  */
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));
2939
+ getCompanyWithControlsV1CompanyControlsCompanyIdGet(companyId: string, authorization?: string, sessionId?: string, options?: RawAxiosRequestConfig): AxiosPromise<CompanyWithControls> {
2940
+ return localVarFp.getCompanyWithControlsV1CompanyControlsCompanyIdGet(companyId, authorization, sessionId, options).then((request) => request(axios, basePath));
2962
2941
  },
2963
2942
  /**
2964
2943
  *
@@ -3027,7 +3006,7 @@ export class CompanyApi extends BaseAPI {
3027
3006
 
3028
3007
  /**
3029
3008
  *
3030
- * @summary Get Controls
3009
+ * @summary Get Company With Controls
3031
3010
  * @param {string} companyId
3032
3011
  * @param {string} [authorization]
3033
3012
  * @param {string} [sessionId]
@@ -3035,23 +3014,8 @@ export class CompanyApi extends BaseAPI {
3035
3014
  * @throws {RequiredError}
3036
3015
  * @memberof CompanyApi
3037
3016
  */
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));
3017
+ public getCompanyWithControlsV1CompanyControlsCompanyIdGet(companyId: string, authorization?: string, sessionId?: string, options?: RawAxiosRequestConfig) {
3018
+ return CompanyApiFp(this.configuration).getCompanyWithControlsV1CompanyControlsCompanyIdGet(companyId, authorization, sessionId, options).then((request) => request(this.axios, this.basePath));
3055
3019
  }
3056
3020
 
3057
3021
  /**
@@ -4653,7 +4617,7 @@ export const PoliciesApiFp = function(configuration?: Configuration) {
4653
4617
  * @param {*} [options] Override http request option.
4654
4618
  * @throws {RequiredError}
4655
4619
  */
4656
- async getCompanyPoliciesV1PoliciesCompanyCompanyIdGet(companyId: string, page?: number, elements?: number, authorization?: string, sessionId?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<PolicyRead>>> {
4620
+ async getCompanyPoliciesV1PoliciesCompanyCompanyIdGet(companyId: string, page?: number, elements?: number, authorization?: string, sessionId?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PaginationResponsePolicyRead>> {
4657
4621
  const localVarAxiosArgs = await localVarAxiosParamCreator.getCompanyPoliciesV1PoliciesCompanyCompanyIdGet(companyId, page, elements, authorization, sessionId, options);
4658
4622
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
4659
4623
  const localVarOperationServerBasePath = operationServerMap['PoliciesApi.getCompanyPoliciesV1PoliciesCompanyCompanyIdGet']?.[localVarOperationServerIndex]?.url;
@@ -4733,7 +4697,7 @@ export const PoliciesApiFactory = function (configuration?: Configuration, baseP
4733
4697
  * @param {*} [options] Override http request option.
4734
4698
  * @throws {RequiredError}
4735
4699
  */
4736
- getCompanyPoliciesV1PoliciesCompanyCompanyIdGet(companyId: string, page?: number, elements?: number, authorization?: string, sessionId?: string, options?: RawAxiosRequestConfig): AxiosPromise<Array<PolicyRead>> {
4700
+ getCompanyPoliciesV1PoliciesCompanyCompanyIdGet(companyId: string, page?: number, elements?: number, authorization?: string, sessionId?: string, options?: RawAxiosRequestConfig): AxiosPromise<PaginationResponsePolicyRead> {
4737
4701
  return localVarFp.getCompanyPoliciesV1PoliciesCompanyCompanyIdGet(companyId, page, elements, authorization, sessionId, options).then((request) => request(axios, basePath));
4738
4702
  },
4739
4703
  /**
package/dist/api.d.ts CHANGED
@@ -43,49 +43,49 @@ export type AuditLogEntity = typeof AuditLogEntity[keyof typeof AuditLogEntity];
43
43
  /**
44
44
  *
45
45
  * @export
46
- * @interface AuditLogResponse
46
+ * @interface AuditLogSchema
47
47
  */
48
- export interface AuditLogResponse {
48
+ export interface AuditLogSchema {
49
49
  /**
50
50
  *
51
51
  * @type {string}
52
- * @memberof AuditLogResponse
52
+ * @memberof AuditLogSchema
53
53
  */
54
54
  'company_id': string;
55
55
  /**
56
56
  *
57
57
  * @type {AuditLogAction}
58
- * @memberof AuditLogResponse
58
+ * @memberof AuditLogSchema
59
59
  */
60
60
  'action': AuditLogAction;
61
61
  /**
62
62
  *
63
63
  * @type {AuditLogEntity}
64
- * @memberof AuditLogResponse
64
+ * @memberof AuditLogSchema
65
65
  */
66
66
  'entity_type': AuditLogEntity;
67
67
  /**
68
68
  *
69
69
  * @type {string}
70
- * @memberof AuditLogResponse
70
+ * @memberof AuditLogSchema
71
71
  */
72
72
  'entity_id': string;
73
73
  /**
74
74
  *
75
75
  * @type {string}
76
- * @memberof AuditLogResponse
76
+ * @memberof AuditLogSchema
77
77
  */
78
78
  'entity_name': string;
79
79
  /**
80
80
  *
81
81
  * @type {string}
82
- * @memberof AuditLogResponse
82
+ * @memberof AuditLogSchema
83
83
  */
84
84
  'timestamp': string;
85
85
  /**
86
86
  *
87
87
  * @type {{ [key: string]: any; }}
88
- * @memberof AuditLogResponse
88
+ * @memberof AuditLogSchema
89
89
  */
90
90
  'details': {
91
91
  [key: string]: any;
@@ -1061,6 +1061,63 @@ export interface LoginSchema {
1061
1061
  */
1062
1062
  'turnstile_token': string;
1063
1063
  }
1064
+ /**
1065
+ *
1066
+ * @export
1067
+ * @interface PaginationResponseAuditLogSchema
1068
+ */
1069
+ export interface PaginationResponseAuditLogSchema {
1070
+ /**
1071
+ *
1072
+ * @type {Array<AuditLogSchema>}
1073
+ * @memberof PaginationResponseAuditLogSchema
1074
+ */
1075
+ 'items': Array<AuditLogSchema>;
1076
+ /**
1077
+ *
1078
+ * @type {number}
1079
+ * @memberof PaginationResponseAuditLogSchema
1080
+ */
1081
+ 'total': number;
1082
+ }
1083
+ /**
1084
+ *
1085
+ * @export
1086
+ * @interface PaginationResponseCompanyInDBBase
1087
+ */
1088
+ export interface PaginationResponseCompanyInDBBase {
1089
+ /**
1090
+ *
1091
+ * @type {Array<CompanyInDBBase>}
1092
+ * @memberof PaginationResponseCompanyInDBBase
1093
+ */
1094
+ 'items': Array<CompanyInDBBase>;
1095
+ /**
1096
+ *
1097
+ * @type {number}
1098
+ * @memberof PaginationResponseCompanyInDBBase
1099
+ */
1100
+ 'total': number;
1101
+ }
1102
+ /**
1103
+ *
1104
+ * @export
1105
+ * @interface PaginationResponsePolicyRead
1106
+ */
1107
+ export interface PaginationResponsePolicyRead {
1108
+ /**
1109
+ *
1110
+ * @type {Array<PolicyRead>}
1111
+ * @memberof PaginationResponsePolicyRead
1112
+ */
1113
+ 'items': Array<PolicyRead>;
1114
+ /**
1115
+ *
1116
+ * @type {number}
1117
+ * @memberof PaginationResponsePolicyRead
1118
+ */
1119
+ 'total': number;
1120
+ }
1064
1121
  /**
1065
1122
  *
1066
1123
  * @export
@@ -1531,8 +1588,8 @@ export declare const AuditLogsApiAxiosParamCreator: (configuration?: Configurati
1531
1588
  *
1532
1589
  * @summary List Audit Logs
1533
1590
  * @param {string} companyId
1534
- * @param {number} page
1535
- * @param {number} elements
1591
+ * @param {number} [page]
1592
+ * @param {number} [elements]
1536
1593
  * @param {AuditLogEntity | null} [entityType]
1537
1594
  * @param {AuditLogAction | null} [action]
1538
1595
  * @param {string | null} [startDate]
@@ -1542,7 +1599,7 @@ export declare const AuditLogsApiAxiosParamCreator: (configuration?: Configurati
1542
1599
  * @param {*} [options] Override http request option.
1543
1600
  * @throws {RequiredError}
1544
1601
  */
1545
- 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<RequestArgs>;
1602
+ 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<RequestArgs>;
1546
1603
  };
1547
1604
  /**
1548
1605
  * AuditLogsApi - functional programming interface
@@ -1553,8 +1610,8 @@ export declare const AuditLogsApiFp: (configuration?: Configuration) => {
1553
1610
  *
1554
1611
  * @summary List Audit Logs
1555
1612
  * @param {string} companyId
1556
- * @param {number} page
1557
- * @param {number} elements
1613
+ * @param {number} [page]
1614
+ * @param {number} [elements]
1558
1615
  * @param {AuditLogEntity | null} [entityType]
1559
1616
  * @param {AuditLogAction | null} [action]
1560
1617
  * @param {string | null} [startDate]
@@ -1564,7 +1621,7 @@ export declare const AuditLogsApiFp: (configuration?: Configuration) => {
1564
1621
  * @param {*} [options] Override http request option.
1565
1622
  * @throws {RequiredError}
1566
1623
  */
1567
- 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>>>;
1624
+ 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>>;
1568
1625
  };
1569
1626
  /**
1570
1627
  * AuditLogsApi - factory interface
@@ -1575,8 +1632,8 @@ export declare const AuditLogsApiFactory: (configuration?: Configuration, basePa
1575
1632
  *
1576
1633
  * @summary List Audit Logs
1577
1634
  * @param {string} companyId
1578
- * @param {number} page
1579
- * @param {number} elements
1635
+ * @param {number} [page]
1636
+ * @param {number} [elements]
1580
1637
  * @param {AuditLogEntity | null} [entityType]
1581
1638
  * @param {AuditLogAction | null} [action]
1582
1639
  * @param {string | null} [startDate]
@@ -1586,7 +1643,7 @@ export declare const AuditLogsApiFactory: (configuration?: Configuration, basePa
1586
1643
  * @param {*} [options] Override http request option.
1587
1644
  * @throws {RequiredError}
1588
1645
  */
1589
- 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>>;
1646
+ 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>;
1590
1647
  };
1591
1648
  /**
1592
1649
  * AuditLogsApi - object-oriented interface
@@ -1599,8 +1656,8 @@ export declare class AuditLogsApi extends BaseAPI {
1599
1656
  *
1600
1657
  * @summary List Audit Logs
1601
1658
  * @param {string} companyId
1602
- * @param {number} page
1603
- * @param {number} elements
1659
+ * @param {number} [page]
1660
+ * @param {number} [elements]
1604
1661
  * @param {AuditLogEntity | null} [entityType]
1605
1662
  * @param {AuditLogAction | null} [action]
1606
1663
  * @param {string | null} [startDate]
@@ -1611,7 +1668,7 @@ export declare class AuditLogsApi extends BaseAPI {
1611
1668
  * @throws {RequiredError}
1612
1669
  * @memberof AuditLogsApi
1613
1670
  */
1614
- 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<import("axios").AxiosResponse<AuditLogResponse[], any, {}>>;
1671
+ 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<import("axios").AxiosResponse<PaginationResponseAuditLogSchema, any, {}>>;
1615
1672
  }
1616
1673
  /**
1617
1674
  * AuthApi - axios parameter creator
@@ -2057,25 +2114,14 @@ export declare const CompanyApiAxiosParamCreator: (configuration?: Configuration
2057
2114
  getCompanyV1CompanyGetCompanyIdGet: (companyId: string, authorization?: string, sessionId?: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
2058
2115
  /**
2059
2116
  *
2060
- * @summary Get Controls
2117
+ * @summary Get Company With Controls
2061
2118
  * @param {string} companyId
2062
2119
  * @param {string} [authorization]
2063
2120
  * @param {string} [sessionId]
2064
2121
  * @param {*} [options] Override http request option.
2065
2122
  * @throws {RequiredError}
2066
2123
  */
2067
- getControlsV1CompanyControlsCompanyIdGet: (companyId: string, authorization?: string, sessionId?: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
2068
- /**
2069
- *
2070
- * @summary Get Policies
2071
- * @param {number} [page]
2072
- * @param {number} [elements]
2073
- * @param {string} [authorization]
2074
- * @param {string} [sessionId]
2075
- * @param {*} [options] Override http request option.
2076
- * @throws {RequiredError}
2077
- */
2078
- getPoliciesV1CompanyPoliciesGet: (page?: number, elements?: number, authorization?: string, sessionId?: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
2124
+ getCompanyWithControlsV1CompanyControlsCompanyIdGet: (companyId: string, authorization?: string, sessionId?: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
2079
2125
  /**
2080
2126
  *
2081
2127
  * @summary Update Company
@@ -2112,7 +2158,7 @@ export declare const CompanyApiFp: (configuration?: Configuration) => {
2112
2158
  * @param {*} [options] Override http request option.
2113
2159
  * @throws {RequiredError}
2114
2160
  */
2115
- getCompaniesV1CompanyListGet(page?: number, elements?: number, authorization?: string, sessionId?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<CompanyInDBBase>>>;
2161
+ getCompaniesV1CompanyListGet(page?: number, elements?: number, authorization?: string, sessionId?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PaginationResponseCompanyInDBBase>>;
2116
2162
  /**
2117
2163
  *
2118
2164
  * @summary Get Company
@@ -2125,25 +2171,14 @@ export declare const CompanyApiFp: (configuration?: Configuration) => {
2125
2171
  getCompanyV1CompanyGetCompanyIdGet(companyId: string, authorization?: string, sessionId?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CompanyWithRoles>>;
2126
2172
  /**
2127
2173
  *
2128
- * @summary Get Controls
2174
+ * @summary Get Company With Controls
2129
2175
  * @param {string} companyId
2130
2176
  * @param {string} [authorization]
2131
2177
  * @param {string} [sessionId]
2132
2178
  * @param {*} [options] Override http request option.
2133
2179
  * @throws {RequiredError}
2134
2180
  */
2135
- getControlsV1CompanyControlsCompanyIdGet(companyId: string, authorization?: string, sessionId?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CompanyWithControls>>;
2136
- /**
2137
- *
2138
- * @summary Get Policies
2139
- * @param {number} [page]
2140
- * @param {number} [elements]
2141
- * @param {string} [authorization]
2142
- * @param {string} [sessionId]
2143
- * @param {*} [options] Override http request option.
2144
- * @throws {RequiredError}
2145
- */
2146
- getPoliciesV1CompanyPoliciesGet(page?: number, elements?: number, authorization?: string, sessionId?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<PolicyRead>>>;
2181
+ getCompanyWithControlsV1CompanyControlsCompanyIdGet(companyId: string, authorization?: string, sessionId?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CompanyWithControls>>;
2147
2182
  /**
2148
2183
  *
2149
2184
  * @summary Update Company
@@ -2180,7 +2215,7 @@ export declare const CompanyApiFactory: (configuration?: Configuration, basePath
2180
2215
  * @param {*} [options] Override http request option.
2181
2216
  * @throws {RequiredError}
2182
2217
  */
2183
- getCompaniesV1CompanyListGet(page?: number, elements?: number, authorization?: string, sessionId?: string, options?: RawAxiosRequestConfig): AxiosPromise<Array<CompanyInDBBase>>;
2218
+ getCompaniesV1CompanyListGet(page?: number, elements?: number, authorization?: string, sessionId?: string, options?: RawAxiosRequestConfig): AxiosPromise<PaginationResponseCompanyInDBBase>;
2184
2219
  /**
2185
2220
  *
2186
2221
  * @summary Get Company
@@ -2193,25 +2228,14 @@ export declare const CompanyApiFactory: (configuration?: Configuration, basePath
2193
2228
  getCompanyV1CompanyGetCompanyIdGet(companyId: string, authorization?: string, sessionId?: string, options?: RawAxiosRequestConfig): AxiosPromise<CompanyWithRoles>;
2194
2229
  /**
2195
2230
  *
2196
- * @summary Get Controls
2231
+ * @summary Get Company With Controls
2197
2232
  * @param {string} companyId
2198
2233
  * @param {string} [authorization]
2199
2234
  * @param {string} [sessionId]
2200
2235
  * @param {*} [options] Override http request option.
2201
2236
  * @throws {RequiredError}
2202
2237
  */
2203
- getControlsV1CompanyControlsCompanyIdGet(companyId: string, authorization?: string, sessionId?: string, options?: RawAxiosRequestConfig): AxiosPromise<CompanyWithControls>;
2204
- /**
2205
- *
2206
- * @summary Get Policies
2207
- * @param {number} [page]
2208
- * @param {number} [elements]
2209
- * @param {string} [authorization]
2210
- * @param {string} [sessionId]
2211
- * @param {*} [options] Override http request option.
2212
- * @throws {RequiredError}
2213
- */
2214
- getPoliciesV1CompanyPoliciesGet(page?: number, elements?: number, authorization?: string, sessionId?: string, options?: RawAxiosRequestConfig): AxiosPromise<Array<PolicyRead>>;
2238
+ getCompanyWithControlsV1CompanyControlsCompanyIdGet(companyId: string, authorization?: string, sessionId?: string, options?: RawAxiosRequestConfig): AxiosPromise<CompanyWithControls>;
2215
2239
  /**
2216
2240
  *
2217
2241
  * @summary Update Company
@@ -2252,7 +2276,7 @@ export declare class CompanyApi extends BaseAPI {
2252
2276
  * @throws {RequiredError}
2253
2277
  * @memberof CompanyApi
2254
2278
  */
2255
- getCompaniesV1CompanyListGet(page?: number, elements?: number, authorization?: string, sessionId?: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<CompanyInDBBase[], any, {}>>;
2279
+ getCompaniesV1CompanyListGet(page?: number, elements?: number, authorization?: string, sessionId?: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<PaginationResponseCompanyInDBBase, any, {}>>;
2256
2280
  /**
2257
2281
  *
2258
2282
  * @summary Get Company
@@ -2266,7 +2290,7 @@ export declare class CompanyApi extends BaseAPI {
2266
2290
  getCompanyV1CompanyGetCompanyIdGet(companyId: string, authorization?: string, sessionId?: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<CompanyWithRoles, any, {}>>;
2267
2291
  /**
2268
2292
  *
2269
- * @summary Get Controls
2293
+ * @summary Get Company With Controls
2270
2294
  * @param {string} companyId
2271
2295
  * @param {string} [authorization]
2272
2296
  * @param {string} [sessionId]
@@ -2274,19 +2298,7 @@ export declare class CompanyApi extends BaseAPI {
2274
2298
  * @throws {RequiredError}
2275
2299
  * @memberof CompanyApi
2276
2300
  */
2277
- getControlsV1CompanyControlsCompanyIdGet(companyId: string, authorization?: string, sessionId?: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<CompanyWithControls, any, {}>>;
2278
- /**
2279
- *
2280
- * @summary Get Policies
2281
- * @param {number} [page]
2282
- * @param {number} [elements]
2283
- * @param {string} [authorization]
2284
- * @param {string} [sessionId]
2285
- * @param {*} [options] Override http request option.
2286
- * @throws {RequiredError}
2287
- * @memberof CompanyApi
2288
- */
2289
- getPoliciesV1CompanyPoliciesGet(page?: number, elements?: number, authorization?: string, sessionId?: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<PolicyRead[], any, {}>>;
2301
+ getCompanyWithControlsV1CompanyControlsCompanyIdGet(companyId: string, authorization?: string, sessionId?: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<CompanyWithControls, any, {}>>;
2290
2302
  /**
2291
2303
  *
2292
2304
  * @summary Update Company
@@ -3055,7 +3067,7 @@ export declare const PoliciesApiFp: (configuration?: Configuration) => {
3055
3067
  * @param {*} [options] Override http request option.
3056
3068
  * @throws {RequiredError}
3057
3069
  */
3058
- getCompanyPoliciesV1PoliciesCompanyCompanyIdGet(companyId: string, page?: number, elements?: number, authorization?: string, sessionId?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<PolicyRead>>>;
3070
+ getCompanyPoliciesV1PoliciesCompanyCompanyIdGet(companyId: string, page?: number, elements?: number, authorization?: string, sessionId?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PaginationResponsePolicyRead>>;
3059
3071
  /**
3060
3072
  *
3061
3073
  * @summary Get Policy
@@ -3112,7 +3124,7 @@ export declare const PoliciesApiFactory: (configuration?: Configuration, basePat
3112
3124
  * @param {*} [options] Override http request option.
3113
3125
  * @throws {RequiredError}
3114
3126
  */
3115
- getCompanyPoliciesV1PoliciesCompanyCompanyIdGet(companyId: string, page?: number, elements?: number, authorization?: string, sessionId?: string, options?: RawAxiosRequestConfig): AxiosPromise<Array<PolicyRead>>;
3127
+ getCompanyPoliciesV1PoliciesCompanyCompanyIdGet(companyId: string, page?: number, elements?: number, authorization?: string, sessionId?: string, options?: RawAxiosRequestConfig): AxiosPromise<PaginationResponsePolicyRead>;
3116
3128
  /**
3117
3129
  *
3118
3130
  * @summary Get Policy
@@ -3174,7 +3186,7 @@ export declare class PoliciesApi extends BaseAPI {
3174
3186
  * @throws {RequiredError}
3175
3187
  * @memberof PoliciesApi
3176
3188
  */
3177
- getCompanyPoliciesV1PoliciesCompanyCompanyIdGet(companyId: string, page?: number, elements?: number, authorization?: string, sessionId?: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<PolicyRead[], any, {}>>;
3189
+ getCompanyPoliciesV1PoliciesCompanyCompanyIdGet(companyId: string, page?: number, elements?: number, authorization?: string, sessionId?: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<PaginationResponsePolicyRead, any, {}>>;
3178
3190
  /**
3179
3191
  *
3180
3192
  * @summary Get Policy
package/dist/api.js CHANGED
@@ -93,8 +93,8 @@ export const AuditLogsApiAxiosParamCreator = function (configuration) {
93
93
  *
94
94
  * @summary List Audit Logs
95
95
  * @param {string} companyId
96
- * @param {number} page
97
- * @param {number} elements
96
+ * @param {number} [page]
97
+ * @param {number} [elements]
98
98
  * @param {AuditLogEntity | null} [entityType]
99
99
  * @param {AuditLogAction | null} [action]
100
100
  * @param {string | null} [startDate]
@@ -107,10 +107,6 @@ export const AuditLogsApiAxiosParamCreator = function (configuration) {
107
107
  listAuditLogsV1AuditLogsListGet: (companyId_1, page_1, elements_1, entityType_1, action_1, startDate_1, endDate_1, authorization_1, sessionId_1, ...args_1) => __awaiter(this, [companyId_1, page_1, elements_1, entityType_1, action_1, startDate_1, endDate_1, authorization_1, sessionId_1, ...args_1], void 0, function* (companyId, page, elements, entityType, action, startDate, endDate, authorization, sessionId, options = {}) {
108
108
  // verify required parameter 'companyId' is not null or undefined
109
109
  assertParamExists('listAuditLogsV1AuditLogsListGet', 'companyId', companyId);
110
- // verify required parameter 'page' is not null or undefined
111
- assertParamExists('listAuditLogsV1AuditLogsListGet', 'page', page);
112
- // verify required parameter 'elements' is not null or undefined
113
- assertParamExists('listAuditLogsV1AuditLogsListGet', 'elements', elements);
114
110
  const localVarPath = `/v1/audit-logs/list`;
115
111
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
116
112
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -170,8 +166,8 @@ export const AuditLogsApiFp = function (configuration) {
170
166
  *
171
167
  * @summary List Audit Logs
172
168
  * @param {string} companyId
173
- * @param {number} page
174
- * @param {number} elements
169
+ * @param {number} [page]
170
+ * @param {number} [elements]
175
171
  * @param {AuditLogEntity | null} [entityType]
176
172
  * @param {AuditLogAction | null} [action]
177
173
  * @param {string | null} [startDate]
@@ -203,8 +199,8 @@ export const AuditLogsApiFactory = function (configuration, basePath, axios) {
203
199
  *
204
200
  * @summary List Audit Logs
205
201
  * @param {string} companyId
206
- * @param {number} page
207
- * @param {number} elements
202
+ * @param {number} [page]
203
+ * @param {number} [elements]
208
204
  * @param {AuditLogEntity | null} [entityType]
209
205
  * @param {AuditLogAction | null} [action]
210
206
  * @param {string | null} [startDate]
@@ -230,8 +226,8 @@ export class AuditLogsApi extends BaseAPI {
230
226
  *
231
227
  * @summary List Audit Logs
232
228
  * @param {string} companyId
233
- * @param {number} page
234
- * @param {number} elements
229
+ * @param {number} [page]
230
+ * @param {number} [elements]
235
231
  * @param {AuditLogEntity | null} [entityType]
236
232
  * @param {AuditLogAction | null} [action]
237
233
  * @param {string | null} [startDate]
@@ -1123,16 +1119,16 @@ export const CompanyApiAxiosParamCreator = function (configuration) {
1123
1119
  }),
1124
1120
  /**
1125
1121
  *
1126
- * @summary Get Controls
1122
+ * @summary Get Company With Controls
1127
1123
  * @param {string} companyId
1128
1124
  * @param {string} [authorization]
1129
1125
  * @param {string} [sessionId]
1130
1126
  * @param {*} [options] Override http request option.
1131
1127
  * @throws {RequiredError}
1132
1128
  */
1133
- getControlsV1CompanyControlsCompanyIdGet: (companyId_1, authorization_1, sessionId_1, ...args_1) => __awaiter(this, [companyId_1, authorization_1, sessionId_1, ...args_1], void 0, function* (companyId, authorization, sessionId, options = {}) {
1129
+ getCompanyWithControlsV1CompanyControlsCompanyIdGet: (companyId_1, authorization_1, sessionId_1, ...args_1) => __awaiter(this, [companyId_1, authorization_1, sessionId_1, ...args_1], void 0, function* (companyId, authorization, sessionId, options = {}) {
1134
1130
  // verify required parameter 'companyId' is not null or undefined
1135
- assertParamExists('getControlsV1CompanyControlsCompanyIdGet', 'companyId', companyId);
1131
+ assertParamExists('getCompanyWithControlsV1CompanyControlsCompanyIdGet', 'companyId', companyId);
1136
1132
  const localVarPath = `/v1/company/controls/{company_id}`
1137
1133
  .replace(`{${"company_id"}}`, encodeURIComponent(String(companyId)));
1138
1134
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
@@ -1155,44 +1151,6 @@ export const CompanyApiAxiosParamCreator = function (configuration) {
1155
1151
  options: localVarRequestOptions,
1156
1152
  };
1157
1153
  }),
1158
- /**
1159
- *
1160
- * @summary Get Policies
1161
- * @param {number} [page]
1162
- * @param {number} [elements]
1163
- * @param {string} [authorization]
1164
- * @param {string} [sessionId]
1165
- * @param {*} [options] Override http request option.
1166
- * @throws {RequiredError}
1167
- */
1168
- getPoliciesV1CompanyPoliciesGet: (page_1, elements_1, authorization_1, sessionId_1, ...args_1) => __awaiter(this, [page_1, elements_1, authorization_1, sessionId_1, ...args_1], void 0, function* (page, elements, authorization, sessionId, options = {}) {
1169
- const localVarPath = `/v1/company/policies`;
1170
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
1171
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1172
- let baseOptions;
1173
- if (configuration) {
1174
- baseOptions = configuration.baseOptions;
1175
- }
1176
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
1177
- const localVarHeaderParameter = {};
1178
- const localVarQueryParameter = {};
1179
- if (page !== undefined) {
1180
- localVarQueryParameter['page'] = page;
1181
- }
1182
- if (elements !== undefined) {
1183
- localVarQueryParameter['elements'] = elements;
1184
- }
1185
- if (authorization != null) {
1186
- localVarHeaderParameter['Authorization'] = String(authorization);
1187
- }
1188
- setSearchParams(localVarUrlObj, localVarQueryParameter);
1189
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1190
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1191
- return {
1192
- url: toPathString(localVarUrlObj),
1193
- options: localVarRequestOptions,
1194
- };
1195
- }),
1196
1154
  /**
1197
1155
  *
1198
1156
  * @summary Update Company
@@ -1294,38 +1252,19 @@ export const CompanyApiFp = function (configuration) {
1294
1252
  },
1295
1253
  /**
1296
1254
  *
1297
- * @summary Get Controls
1255
+ * @summary Get Company With Controls
1298
1256
  * @param {string} companyId
1299
1257
  * @param {string} [authorization]
1300
1258
  * @param {string} [sessionId]
1301
1259
  * @param {*} [options] Override http request option.
1302
1260
  * @throws {RequiredError}
1303
1261
  */
1304
- getControlsV1CompanyControlsCompanyIdGet(companyId, authorization, sessionId, options) {
1305
- return __awaiter(this, void 0, void 0, function* () {
1306
- var _a, _b, _c;
1307
- const localVarAxiosArgs = yield localVarAxiosParamCreator.getControlsV1CompanyControlsCompanyIdGet(companyId, authorization, sessionId, options);
1308
- const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1309
- const localVarOperationServerBasePath = (_c = (_b = operationServerMap['CompanyApi.getControlsV1CompanyControlsCompanyIdGet']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1310
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1311
- });
1312
- },
1313
- /**
1314
- *
1315
- * @summary Get Policies
1316
- * @param {number} [page]
1317
- * @param {number} [elements]
1318
- * @param {string} [authorization]
1319
- * @param {string} [sessionId]
1320
- * @param {*} [options] Override http request option.
1321
- * @throws {RequiredError}
1322
- */
1323
- getPoliciesV1CompanyPoliciesGet(page, elements, authorization, sessionId, options) {
1262
+ getCompanyWithControlsV1CompanyControlsCompanyIdGet(companyId, authorization, sessionId, options) {
1324
1263
  return __awaiter(this, void 0, void 0, function* () {
1325
1264
  var _a, _b, _c;
1326
- const localVarAxiosArgs = yield localVarAxiosParamCreator.getPoliciesV1CompanyPoliciesGet(page, elements, authorization, sessionId, options);
1265
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getCompanyWithControlsV1CompanyControlsCompanyIdGet(companyId, authorization, sessionId, options);
1327
1266
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1328
- const localVarOperationServerBasePath = (_c = (_b = operationServerMap['CompanyApi.getPoliciesV1CompanyPoliciesGet']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1267
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['CompanyApi.getCompanyWithControlsV1CompanyControlsCompanyIdGet']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1329
1268
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1330
1269
  });
1331
1270
  },
@@ -1395,28 +1334,15 @@ export const CompanyApiFactory = function (configuration, basePath, axios) {
1395
1334
  },
1396
1335
  /**
1397
1336
  *
1398
- * @summary Get Controls
1337
+ * @summary Get Company With Controls
1399
1338
  * @param {string} companyId
1400
1339
  * @param {string} [authorization]
1401
1340
  * @param {string} [sessionId]
1402
1341
  * @param {*} [options] Override http request option.
1403
1342
  * @throws {RequiredError}
1404
1343
  */
1405
- getControlsV1CompanyControlsCompanyIdGet(companyId, authorization, sessionId, options) {
1406
- return localVarFp.getControlsV1CompanyControlsCompanyIdGet(companyId, authorization, sessionId, options).then((request) => request(axios, basePath));
1407
- },
1408
- /**
1409
- *
1410
- * @summary Get Policies
1411
- * @param {number} [page]
1412
- * @param {number} [elements]
1413
- * @param {string} [authorization]
1414
- * @param {string} [sessionId]
1415
- * @param {*} [options] Override http request option.
1416
- * @throws {RequiredError}
1417
- */
1418
- getPoliciesV1CompanyPoliciesGet(page, elements, authorization, sessionId, options) {
1419
- return localVarFp.getPoliciesV1CompanyPoliciesGet(page, elements, authorization, sessionId, options).then((request) => request(axios, basePath));
1344
+ getCompanyWithControlsV1CompanyControlsCompanyIdGet(companyId, authorization, sessionId, options) {
1345
+ return localVarFp.getCompanyWithControlsV1CompanyControlsCompanyIdGet(companyId, authorization, sessionId, options).then((request) => request(axios, basePath));
1420
1346
  },
1421
1347
  /**
1422
1348
  *
@@ -1481,7 +1407,7 @@ export class CompanyApi extends BaseAPI {
1481
1407
  }
1482
1408
  /**
1483
1409
  *
1484
- * @summary Get Controls
1410
+ * @summary Get Company With Controls
1485
1411
  * @param {string} companyId
1486
1412
  * @param {string} [authorization]
1487
1413
  * @param {string} [sessionId]
@@ -1489,22 +1415,8 @@ export class CompanyApi extends BaseAPI {
1489
1415
  * @throws {RequiredError}
1490
1416
  * @memberof CompanyApi
1491
1417
  */
1492
- getControlsV1CompanyControlsCompanyIdGet(companyId, authorization, sessionId, options) {
1493
- return CompanyApiFp(this.configuration).getControlsV1CompanyControlsCompanyIdGet(companyId, authorization, sessionId, options).then((request) => request(this.axios, this.basePath));
1494
- }
1495
- /**
1496
- *
1497
- * @summary Get Policies
1498
- * @param {number} [page]
1499
- * @param {number} [elements]
1500
- * @param {string} [authorization]
1501
- * @param {string} [sessionId]
1502
- * @param {*} [options] Override http request option.
1503
- * @throws {RequiredError}
1504
- * @memberof CompanyApi
1505
- */
1506
- getPoliciesV1CompanyPoliciesGet(page, elements, authorization, sessionId, options) {
1507
- return CompanyApiFp(this.configuration).getPoliciesV1CompanyPoliciesGet(page, elements, authorization, sessionId, options).then((request) => request(this.axios, this.basePath));
1418
+ getCompanyWithControlsV1CompanyControlsCompanyIdGet(companyId, authorization, sessionId, options) {
1419
+ return CompanyApiFp(this.configuration).getCompanyWithControlsV1CompanyControlsCompanyIdGet(companyId, authorization, sessionId, options).then((request) => request(this.axios, this.basePath));
1508
1420
  }
1509
1421
  /**
1510
1422
  *
@@ -0,0 +1,32 @@
1
+ # AuditLogSchema
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **company_id** | **string** | | [default to undefined]
9
+ **action** | [**AuditLogAction**](AuditLogAction.md) | | [default to undefined]
10
+ **entity_type** | [**AuditLogEntity**](AuditLogEntity.md) | | [default to undefined]
11
+ **entity_id** | **string** | | [default to undefined]
12
+ **entity_name** | **string** | | [default to undefined]
13
+ **timestamp** | **string** | | [default to undefined]
14
+ **details** | **{ [key: string]: any; }** | | [default to undefined]
15
+
16
+ ## Example
17
+
18
+ ```typescript
19
+ import { AuditLogSchema } from './api';
20
+
21
+ const instance: AuditLogSchema = {
22
+ company_id,
23
+ action,
24
+ entity_type,
25
+ entity_id,
26
+ entity_name,
27
+ timestamp,
28
+ details,
29
+ };
30
+ ```
31
+
32
+ [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
@@ -7,7 +7,7 @@ All URIs are relative to *http://localhost*
7
7
  |[**listAuditLogsV1AuditLogsListGet**](#listauditlogsv1auditlogslistget) | **GET** /v1/audit-logs/list | List Audit Logs|
8
8
 
9
9
  # **listAuditLogsV1AuditLogsListGet**
10
- > Array<AuditLogResponse> listAuditLogsV1AuditLogsListGet()
10
+ > PaginationResponseAuditLogSchema listAuditLogsV1AuditLogsListGet()
11
11
 
12
12
 
13
13
  ### Example
@@ -22,8 +22,8 @@ const configuration = new Configuration();
22
22
  const apiInstance = new AuditLogsApi(configuration);
23
23
 
24
24
  let companyId: string; // (default to undefined)
25
- let page: number; // (default to undefined)
26
- let elements: number; // (default to undefined)
25
+ let page: number; // (optional) (default to 1)
26
+ let elements: number; // (optional) (default to 10)
27
27
  let entityType: AuditLogEntity; // (optional) (default to undefined)
28
28
  let action: AuditLogAction; // (optional) (default to undefined)
29
29
  let startDate: string; // (optional) (default to undefined)
@@ -49,8 +49,8 @@ const { status, data } = await apiInstance.listAuditLogsV1AuditLogsListGet(
49
49
  |Name | Type | Description | Notes|
50
50
  |------------- | ------------- | ------------- | -------------|
51
51
  | **companyId** | [**string**] | | defaults to undefined|
52
- | **page** | [**number**] | | defaults to undefined|
53
- | **elements** | [**number**] | | defaults to undefined|
52
+ | **page** | [**number**] | | (optional) defaults to 1|
53
+ | **elements** | [**number**] | | (optional) defaults to 10|
54
54
  | **entityType** | **AuditLogEntity** | | (optional) defaults to undefined|
55
55
  | **action** | **AuditLogAction** | | (optional) defaults to undefined|
56
56
  | **startDate** | [**string**] | | (optional) defaults to undefined|
@@ -61,7 +61,7 @@ const { status, data } = await apiInstance.listAuditLogsV1AuditLogsListGet(
61
61
 
62
62
  ### Return type
63
63
 
64
- **Array<AuditLogResponse>**
64
+ **PaginationResponseAuditLogSchema**
65
65
 
66
66
  ### Authorization
67
67
 
@@ -7,8 +7,7 @@ All URIs are relative to *http://localhost*
7
7
  |[**createCompanyV1CompanyCreatePost**](#createcompanyv1companycreatepost) | **POST** /v1/company/create | Create Company|
8
8
  |[**getCompaniesV1CompanyListGet**](#getcompaniesv1companylistget) | **GET** /v1/company/list | Get Companies|
9
9
  |[**getCompanyV1CompanyGetCompanyIdGet**](#getcompanyv1companygetcompanyidget) | **GET** /v1/company/get/{company_id} | Get Company|
10
- |[**getControlsV1CompanyControlsCompanyIdGet**](#getcontrolsv1companycontrolscompanyidget) | **GET** /v1/company/controls/{company_id} | Get Controls|
11
- |[**getPoliciesV1CompanyPoliciesGet**](#getpoliciesv1companypoliciesget) | **GET** /v1/company/policies | Get Policies|
10
+ |[**getCompanyWithControlsV1CompanyControlsCompanyIdGet**](#getcompanywithcontrolsv1companycontrolscompanyidget) | **GET** /v1/company/controls/{company_id} | Get Company With Controls|
12
11
  |[**updateCompanyV1CompanyUpdatePatch**](#updatecompanyv1companyupdatepatch) | **PATCH** /v1/company/update | Update Company|
13
12
 
14
13
  # **createCompanyV1CompanyCreatePost**
@@ -70,7 +69,7 @@ No authorization required
70
69
  [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
71
70
 
72
71
  # **getCompaniesV1CompanyListGet**
73
- > Array<CompanyInDBBase> getCompaniesV1CompanyListGet()
72
+ > PaginationResponseCompanyInDBBase getCompaniesV1CompanyListGet()
74
73
 
75
74
 
76
75
  ### Example
@@ -109,7 +108,7 @@ const { status, data } = await apiInstance.getCompaniesV1CompanyListGet(
109
108
 
110
109
  ### Return type
111
110
 
112
- **Array<CompanyInDBBase>**
111
+ **PaginationResponseCompanyInDBBase**
113
112
 
114
113
  ### Authorization
115
114
 
@@ -186,8 +185,8 @@ No authorization required
186
185
 
187
186
  [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
188
187
 
189
- # **getControlsV1CompanyControlsCompanyIdGet**
190
- > CompanyWithControls getControlsV1CompanyControlsCompanyIdGet()
188
+ # **getCompanyWithControlsV1CompanyControlsCompanyIdGet**
189
+ > CompanyWithControls getCompanyWithControlsV1CompanyControlsCompanyIdGet()
191
190
 
192
191
 
193
192
  ### Example
@@ -205,7 +204,7 @@ let companyId: string; // (default to undefined)
205
204
  let authorization: string; // (optional) (default to undefined)
206
205
  let sessionId: string; // (optional) (default to undefined)
207
206
 
208
- const { status, data } = await apiInstance.getControlsV1CompanyControlsCompanyIdGet(
207
+ const { status, data } = await apiInstance.getCompanyWithControlsV1CompanyControlsCompanyIdGet(
209
208
  companyId,
210
209
  authorization,
211
210
  sessionId
@@ -235,66 +234,6 @@ No authorization required
235
234
  - **Accept**: application/json
236
235
 
237
236
 
238
- ### HTTP response details
239
- | Status code | Description | Response headers |
240
- |-------------|-------------|------------------|
241
- |**200** | Successful Response | - |
242
- |**422** | Validation Error | - |
243
-
244
- [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
245
-
246
- # **getPoliciesV1CompanyPoliciesGet**
247
- > Array<PolicyRead> getPoliciesV1CompanyPoliciesGet()
248
-
249
-
250
- ### Example
251
-
252
- ```typescript
253
- import {
254
- CompanyApi,
255
- Configuration
256
- } from './api';
257
-
258
- const configuration = new Configuration();
259
- const apiInstance = new CompanyApi(configuration);
260
-
261
- let page: number; // (optional) (default to 1)
262
- let elements: number; // (optional) (default to 10)
263
- let authorization: string; // (optional) (default to undefined)
264
- let sessionId: string; // (optional) (default to undefined)
265
-
266
- const { status, data } = await apiInstance.getPoliciesV1CompanyPoliciesGet(
267
- page,
268
- elements,
269
- authorization,
270
- sessionId
271
- );
272
- ```
273
-
274
- ### Parameters
275
-
276
- |Name | Type | Description | Notes|
277
- |------------- | ------------- | ------------- | -------------|
278
- | **page** | [**number**] | | (optional) defaults to 1|
279
- | **elements** | [**number**] | | (optional) defaults to 10|
280
- | **authorization** | [**string**] | | (optional) defaults to undefined|
281
- | **sessionId** | [**string**] | | (optional) defaults to undefined|
282
-
283
-
284
- ### Return type
285
-
286
- **Array<PolicyRead>**
287
-
288
- ### Authorization
289
-
290
- No authorization required
291
-
292
- ### HTTP request headers
293
-
294
- - **Content-Type**: Not defined
295
- - **Accept**: application/json
296
-
297
-
298
237
  ### HTTP response details
299
238
  | Status code | Description | Response headers |
300
239
  |-------------|-------------|------------------|
@@ -0,0 +1,22 @@
1
+ # PaginationResponseAuditLogSchema
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **items** | [**Array&lt;AuditLogSchema&gt;**](AuditLogSchema.md) | | [default to undefined]
9
+ **total** | **number** | | [default to undefined]
10
+
11
+ ## Example
12
+
13
+ ```typescript
14
+ import { PaginationResponseAuditLogSchema } from './api';
15
+
16
+ const instance: PaginationResponseAuditLogSchema = {
17
+ items,
18
+ total,
19
+ };
20
+ ```
21
+
22
+ [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
@@ -0,0 +1,22 @@
1
+ # PaginationResponseCompanyInDBBase
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **items** | [**Array&lt;CompanyInDBBase&gt;**](CompanyInDBBase.md) | | [default to undefined]
9
+ **total** | **number** | | [default to undefined]
10
+
11
+ ## Example
12
+
13
+ ```typescript
14
+ import { PaginationResponseCompanyInDBBase } from './api';
15
+
16
+ const instance: PaginationResponseCompanyInDBBase = {
17
+ items,
18
+ total,
19
+ };
20
+ ```
21
+
22
+ [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
@@ -0,0 +1,22 @@
1
+ # PaginationResponsePolicyRead
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **items** | [**Array&lt;PolicyRead&gt;**](PolicyRead.md) | | [default to undefined]
9
+ **total** | **number** | | [default to undefined]
10
+
11
+ ## Example
12
+
13
+ ```typescript
14
+ import { PaginationResponsePolicyRead } from './api';
15
+
16
+ const instance: PaginationResponsePolicyRead = {
17
+ items,
18
+ total,
19
+ };
20
+ ```
21
+
22
+ [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
@@ -126,7 +126,7 @@ No authorization required
126
126
  [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
127
127
 
128
128
  # **getCompanyPoliciesV1PoliciesCompanyCompanyIdGet**
129
- > Array<PolicyRead> getCompanyPoliciesV1PoliciesCompanyCompanyIdGet()
129
+ > PaginationResponsePolicyRead getCompanyPoliciesV1PoliciesCompanyCompanyIdGet()
130
130
 
131
131
 
132
132
  ### Example
@@ -168,7 +168,7 @@ const { status, data } = await apiInstance.getCompanyPoliciesV1PoliciesCompanyCo
168
168
 
169
169
  ### Return type
170
170
 
171
- **Array<PolicyRead>**
171
+ **PaginationResponsePolicyRead**
172
172
 
173
173
  ### Authorization
174
174
 
package/package.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "openapi-generator-cli": "^1.0.0"
5
5
  },
6
6
  "name": "@rasadov/lumoar-sdk",
7
- "version": "1.0.5",
7
+ "version": "1.0.6",
8
8
  "description": "Lumoar API SDK",
9
9
  "main": "dist/index.js",
10
10
  "directories": {