@rasadov/lumoar-sdk 1.2.3 → 1.2.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.
package/dist/api.js CHANGED
@@ -45,7 +45,6 @@ export const AuditLogAction = {
45
45
  export const AuditLogEntity = {
46
46
  CompanyControls: 'company_controls',
47
47
  Evidences: 'evidences',
48
- Policies: 'policies',
49
48
  Reports: 'reports',
50
49
  Companies: 'companies',
51
50
  Users: 'users',
@@ -95,6 +94,15 @@ export const PermissionType = {
95
94
  Member: 'member',
96
95
  Auditor: 'auditor'
97
96
  };
97
+ /**
98
+ *
99
+ * @export
100
+ * @enum {string}
101
+ */
102
+ export const ReportType = {
103
+ AuditReady: 'audit_ready',
104
+ GapAnalysis: 'gap_analysis'
105
+ };
98
106
  /**
99
107
  *
100
108
  * @export
@@ -2866,437 +2874,6 @@ export class PaymentsApi extends BaseAPI {
2866
2874
  return PaymentsApiFp(this.configuration).webhookV1PaymentsWebhookPost(options).then((request) => request(this.axios, this.basePath));
2867
2875
  }
2868
2876
  }
2869
- /**
2870
- * PoliciesApi - axios parameter creator
2871
- * @export
2872
- */
2873
- export const PoliciesApiAxiosParamCreator = function (configuration) {
2874
- return {
2875
- /**
2876
- *
2877
- * @summary Create Policy
2878
- * @param {PolicyCreate} policyCreate
2879
- * @param {string} [authorization]
2880
- * @param {string} [sessionId]
2881
- * @param {*} [options] Override http request option.
2882
- * @throws {RequiredError}
2883
- */
2884
- createPolicyV1PoliciesCreatePost: (policyCreate_1, authorization_1, sessionId_1, ...args_1) => __awaiter(this, [policyCreate_1, authorization_1, sessionId_1, ...args_1], void 0, function* (policyCreate, authorization, sessionId, options = {}) {
2885
- // verify required parameter 'policyCreate' is not null or undefined
2886
- assertParamExists('createPolicyV1PoliciesCreatePost', 'policyCreate', policyCreate);
2887
- const localVarPath = `/v1/policies/create`;
2888
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
2889
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
2890
- let baseOptions;
2891
- if (configuration) {
2892
- baseOptions = configuration.baseOptions;
2893
- }
2894
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
2895
- const localVarHeaderParameter = {};
2896
- const localVarQueryParameter = {};
2897
- localVarHeaderParameter['Content-Type'] = 'application/json';
2898
- if (authorization != null) {
2899
- localVarHeaderParameter['Authorization'] = String(authorization);
2900
- }
2901
- setSearchParams(localVarUrlObj, localVarQueryParameter);
2902
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2903
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
2904
- localVarRequestOptions.data = serializeDataIfNeeded(policyCreate, localVarRequestOptions, configuration);
2905
- return {
2906
- url: toPathString(localVarUrlObj),
2907
- options: localVarRequestOptions,
2908
- };
2909
- }),
2910
- /**
2911
- *
2912
- * @summary Delete Policy
2913
- * @param {string} policyId
2914
- * @param {string} [authorization]
2915
- * @param {string} [sessionId]
2916
- * @param {*} [options] Override http request option.
2917
- * @throws {RequiredError}
2918
- */
2919
- deletePolicyV1PoliciesPolicyIdDelete: (policyId_1, authorization_1, sessionId_1, ...args_1) => __awaiter(this, [policyId_1, authorization_1, sessionId_1, ...args_1], void 0, function* (policyId, authorization, sessionId, options = {}) {
2920
- // verify required parameter 'policyId' is not null or undefined
2921
- assertParamExists('deletePolicyV1PoliciesPolicyIdDelete', 'policyId', policyId);
2922
- const localVarPath = `/v1/policies/{policy_id}`
2923
- .replace(`{${"policy_id"}}`, encodeURIComponent(String(policyId)));
2924
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
2925
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
2926
- let baseOptions;
2927
- if (configuration) {
2928
- baseOptions = configuration.baseOptions;
2929
- }
2930
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
2931
- const localVarHeaderParameter = {};
2932
- const localVarQueryParameter = {};
2933
- if (authorization != null) {
2934
- localVarHeaderParameter['Authorization'] = String(authorization);
2935
- }
2936
- setSearchParams(localVarUrlObj, localVarQueryParameter);
2937
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2938
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
2939
- return {
2940
- url: toPathString(localVarUrlObj),
2941
- options: localVarRequestOptions,
2942
- };
2943
- }),
2944
- /**
2945
- *
2946
- * @summary Get Company Policies
2947
- * @param {string} companyId
2948
- * @param {number} [page]
2949
- * @param {number} [elements]
2950
- * @param {string} [authorization]
2951
- * @param {string} [sessionId]
2952
- * @param {*} [options] Override http request option.
2953
- * @throws {RequiredError}
2954
- */
2955
- getCompanyPoliciesV1PoliciesCompanyCompanyIdGet: (companyId_1, page_1, elements_1, authorization_1, sessionId_1, ...args_1) => __awaiter(this, [companyId_1, page_1, elements_1, authorization_1, sessionId_1, ...args_1], void 0, function* (companyId, page, elements, authorization, sessionId, options = {}) {
2956
- // verify required parameter 'companyId' is not null or undefined
2957
- assertParamExists('getCompanyPoliciesV1PoliciesCompanyCompanyIdGet', 'companyId', companyId);
2958
- const localVarPath = `/v1/policies/company/{company_id}`
2959
- .replace(`{${"company_id"}}`, encodeURIComponent(String(companyId)));
2960
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
2961
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
2962
- let baseOptions;
2963
- if (configuration) {
2964
- baseOptions = configuration.baseOptions;
2965
- }
2966
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
2967
- const localVarHeaderParameter = {};
2968
- const localVarQueryParameter = {};
2969
- if (page !== undefined) {
2970
- localVarQueryParameter['page'] = page;
2971
- }
2972
- if (elements !== undefined) {
2973
- localVarQueryParameter['elements'] = elements;
2974
- }
2975
- if (authorization != null) {
2976
- localVarHeaderParameter['Authorization'] = String(authorization);
2977
- }
2978
- setSearchParams(localVarUrlObj, localVarQueryParameter);
2979
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2980
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
2981
- return {
2982
- url: toPathString(localVarUrlObj),
2983
- options: localVarRequestOptions,
2984
- };
2985
- }),
2986
- /**
2987
- *
2988
- * @summary Get Policy
2989
- * @param {string} policyId
2990
- * @param {*} [options] Override http request option.
2991
- * @throws {RequiredError}
2992
- */
2993
- getPolicyV1PoliciesPolicyIdGet: (policyId_1, ...args_1) => __awaiter(this, [policyId_1, ...args_1], void 0, function* (policyId, options = {}) {
2994
- // verify required parameter 'policyId' is not null or undefined
2995
- assertParamExists('getPolicyV1PoliciesPolicyIdGet', 'policyId', policyId);
2996
- const localVarPath = `/v1/policies/{policy_id}`
2997
- .replace(`{${"policy_id"}}`, encodeURIComponent(String(policyId)));
2998
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
2999
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
3000
- let baseOptions;
3001
- if (configuration) {
3002
- baseOptions = configuration.baseOptions;
3003
- }
3004
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
3005
- const localVarHeaderParameter = {};
3006
- const localVarQueryParameter = {};
3007
- setSearchParams(localVarUrlObj, localVarQueryParameter);
3008
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3009
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
3010
- return {
3011
- url: toPathString(localVarUrlObj),
3012
- options: localVarRequestOptions,
3013
- };
3014
- }),
3015
- /**
3016
- *
3017
- * @summary Update Policy
3018
- * @param {string} policyId
3019
- * @param {PolicyUpdate} policyUpdate
3020
- * @param {string} [authorization]
3021
- * @param {string} [sessionId]
3022
- * @param {*} [options] Override http request option.
3023
- * @throws {RequiredError}
3024
- */
3025
- updatePolicyV1PoliciesPolicyIdPut: (policyId_1, policyUpdate_1, authorization_1, sessionId_1, ...args_1) => __awaiter(this, [policyId_1, policyUpdate_1, authorization_1, sessionId_1, ...args_1], void 0, function* (policyId, policyUpdate, authorization, sessionId, options = {}) {
3026
- // verify required parameter 'policyId' is not null or undefined
3027
- assertParamExists('updatePolicyV1PoliciesPolicyIdPut', 'policyId', policyId);
3028
- // verify required parameter 'policyUpdate' is not null or undefined
3029
- assertParamExists('updatePolicyV1PoliciesPolicyIdPut', 'policyUpdate', policyUpdate);
3030
- const localVarPath = `/v1/policies/{policy_id}`
3031
- .replace(`{${"policy_id"}}`, encodeURIComponent(String(policyId)));
3032
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
3033
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
3034
- let baseOptions;
3035
- if (configuration) {
3036
- baseOptions = configuration.baseOptions;
3037
- }
3038
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'PUT' }, baseOptions), options);
3039
- const localVarHeaderParameter = {};
3040
- const localVarQueryParameter = {};
3041
- localVarHeaderParameter['Content-Type'] = 'application/json';
3042
- if (authorization != null) {
3043
- localVarHeaderParameter['Authorization'] = String(authorization);
3044
- }
3045
- setSearchParams(localVarUrlObj, localVarQueryParameter);
3046
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3047
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
3048
- localVarRequestOptions.data = serializeDataIfNeeded(policyUpdate, localVarRequestOptions, configuration);
3049
- return {
3050
- url: toPathString(localVarUrlObj),
3051
- options: localVarRequestOptions,
3052
- };
3053
- }),
3054
- };
3055
- };
3056
- /**
3057
- * PoliciesApi - functional programming interface
3058
- * @export
3059
- */
3060
- export const PoliciesApiFp = function (configuration) {
3061
- const localVarAxiosParamCreator = PoliciesApiAxiosParamCreator(configuration);
3062
- return {
3063
- /**
3064
- *
3065
- * @summary Create Policy
3066
- * @param {PolicyCreate} policyCreate
3067
- * @param {string} [authorization]
3068
- * @param {string} [sessionId]
3069
- * @param {*} [options] Override http request option.
3070
- * @throws {RequiredError}
3071
- */
3072
- createPolicyV1PoliciesCreatePost(policyCreate, authorization, sessionId, options) {
3073
- return __awaiter(this, void 0, void 0, function* () {
3074
- var _a, _b, _c;
3075
- const localVarAxiosArgs = yield localVarAxiosParamCreator.createPolicyV1PoliciesCreatePost(policyCreate, authorization, sessionId, options);
3076
- const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
3077
- const localVarOperationServerBasePath = (_c = (_b = operationServerMap['PoliciesApi.createPolicyV1PoliciesCreatePost']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
3078
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3079
- });
3080
- },
3081
- /**
3082
- *
3083
- * @summary Delete Policy
3084
- * @param {string} policyId
3085
- * @param {string} [authorization]
3086
- * @param {string} [sessionId]
3087
- * @param {*} [options] Override http request option.
3088
- * @throws {RequiredError}
3089
- */
3090
- deletePolicyV1PoliciesPolicyIdDelete(policyId, authorization, sessionId, options) {
3091
- return __awaiter(this, void 0, void 0, function* () {
3092
- var _a, _b, _c;
3093
- const localVarAxiosArgs = yield localVarAxiosParamCreator.deletePolicyV1PoliciesPolicyIdDelete(policyId, authorization, sessionId, options);
3094
- const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
3095
- const localVarOperationServerBasePath = (_c = (_b = operationServerMap['PoliciesApi.deletePolicyV1PoliciesPolicyIdDelete']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
3096
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3097
- });
3098
- },
3099
- /**
3100
- *
3101
- * @summary Get Company Policies
3102
- * @param {string} companyId
3103
- * @param {number} [page]
3104
- * @param {number} [elements]
3105
- * @param {string} [authorization]
3106
- * @param {string} [sessionId]
3107
- * @param {*} [options] Override http request option.
3108
- * @throws {RequiredError}
3109
- */
3110
- getCompanyPoliciesV1PoliciesCompanyCompanyIdGet(companyId, page, elements, authorization, sessionId, options) {
3111
- return __awaiter(this, void 0, void 0, function* () {
3112
- var _a, _b, _c;
3113
- const localVarAxiosArgs = yield localVarAxiosParamCreator.getCompanyPoliciesV1PoliciesCompanyCompanyIdGet(companyId, page, elements, authorization, sessionId, options);
3114
- const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
3115
- const localVarOperationServerBasePath = (_c = (_b = operationServerMap['PoliciesApi.getCompanyPoliciesV1PoliciesCompanyCompanyIdGet']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
3116
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3117
- });
3118
- },
3119
- /**
3120
- *
3121
- * @summary Get Policy
3122
- * @param {string} policyId
3123
- * @param {*} [options] Override http request option.
3124
- * @throws {RequiredError}
3125
- */
3126
- getPolicyV1PoliciesPolicyIdGet(policyId, options) {
3127
- return __awaiter(this, void 0, void 0, function* () {
3128
- var _a, _b, _c;
3129
- const localVarAxiosArgs = yield localVarAxiosParamCreator.getPolicyV1PoliciesPolicyIdGet(policyId, options);
3130
- const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
3131
- const localVarOperationServerBasePath = (_c = (_b = operationServerMap['PoliciesApi.getPolicyV1PoliciesPolicyIdGet']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
3132
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3133
- });
3134
- },
3135
- /**
3136
- *
3137
- * @summary Update Policy
3138
- * @param {string} policyId
3139
- * @param {PolicyUpdate} policyUpdate
3140
- * @param {string} [authorization]
3141
- * @param {string} [sessionId]
3142
- * @param {*} [options] Override http request option.
3143
- * @throws {RequiredError}
3144
- */
3145
- updatePolicyV1PoliciesPolicyIdPut(policyId, policyUpdate, authorization, sessionId, options) {
3146
- return __awaiter(this, void 0, void 0, function* () {
3147
- var _a, _b, _c;
3148
- const localVarAxiosArgs = yield localVarAxiosParamCreator.updatePolicyV1PoliciesPolicyIdPut(policyId, policyUpdate, authorization, sessionId, options);
3149
- const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
3150
- const localVarOperationServerBasePath = (_c = (_b = operationServerMap['PoliciesApi.updatePolicyV1PoliciesPolicyIdPut']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
3151
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3152
- });
3153
- },
3154
- };
3155
- };
3156
- /**
3157
- * PoliciesApi - factory interface
3158
- * @export
3159
- */
3160
- export const PoliciesApiFactory = function (configuration, basePath, axios) {
3161
- const localVarFp = PoliciesApiFp(configuration);
3162
- return {
3163
- /**
3164
- *
3165
- * @summary Create Policy
3166
- * @param {PolicyCreate} policyCreate
3167
- * @param {string} [authorization]
3168
- * @param {string} [sessionId]
3169
- * @param {*} [options] Override http request option.
3170
- * @throws {RequiredError}
3171
- */
3172
- createPolicyV1PoliciesCreatePost(policyCreate, authorization, sessionId, options) {
3173
- return localVarFp.createPolicyV1PoliciesCreatePost(policyCreate, authorization, sessionId, options).then((request) => request(axios, basePath));
3174
- },
3175
- /**
3176
- *
3177
- * @summary Delete Policy
3178
- * @param {string} policyId
3179
- * @param {string} [authorization]
3180
- * @param {string} [sessionId]
3181
- * @param {*} [options] Override http request option.
3182
- * @throws {RequiredError}
3183
- */
3184
- deletePolicyV1PoliciesPolicyIdDelete(policyId, authorization, sessionId, options) {
3185
- return localVarFp.deletePolicyV1PoliciesPolicyIdDelete(policyId, authorization, sessionId, options).then((request) => request(axios, basePath));
3186
- },
3187
- /**
3188
- *
3189
- * @summary Get Company Policies
3190
- * @param {string} companyId
3191
- * @param {number} [page]
3192
- * @param {number} [elements]
3193
- * @param {string} [authorization]
3194
- * @param {string} [sessionId]
3195
- * @param {*} [options] Override http request option.
3196
- * @throws {RequiredError}
3197
- */
3198
- getCompanyPoliciesV1PoliciesCompanyCompanyIdGet(companyId, page, elements, authorization, sessionId, options) {
3199
- return localVarFp.getCompanyPoliciesV1PoliciesCompanyCompanyIdGet(companyId, page, elements, authorization, sessionId, options).then((request) => request(axios, basePath));
3200
- },
3201
- /**
3202
- *
3203
- * @summary Get Policy
3204
- * @param {string} policyId
3205
- * @param {*} [options] Override http request option.
3206
- * @throws {RequiredError}
3207
- */
3208
- getPolicyV1PoliciesPolicyIdGet(policyId, options) {
3209
- return localVarFp.getPolicyV1PoliciesPolicyIdGet(policyId, options).then((request) => request(axios, basePath));
3210
- },
3211
- /**
3212
- *
3213
- * @summary Update Policy
3214
- * @param {string} policyId
3215
- * @param {PolicyUpdate} policyUpdate
3216
- * @param {string} [authorization]
3217
- * @param {string} [sessionId]
3218
- * @param {*} [options] Override http request option.
3219
- * @throws {RequiredError}
3220
- */
3221
- updatePolicyV1PoliciesPolicyIdPut(policyId, policyUpdate, authorization, sessionId, options) {
3222
- return localVarFp.updatePolicyV1PoliciesPolicyIdPut(policyId, policyUpdate, authorization, sessionId, options).then((request) => request(axios, basePath));
3223
- },
3224
- };
3225
- };
3226
- /**
3227
- * PoliciesApi - object-oriented interface
3228
- * @export
3229
- * @class PoliciesApi
3230
- * @extends {BaseAPI}
3231
- */
3232
- export class PoliciesApi extends BaseAPI {
3233
- /**
3234
- *
3235
- * @summary Create Policy
3236
- * @param {PolicyCreate} policyCreate
3237
- * @param {string} [authorization]
3238
- * @param {string} [sessionId]
3239
- * @param {*} [options] Override http request option.
3240
- * @throws {RequiredError}
3241
- * @memberof PoliciesApi
3242
- */
3243
- createPolicyV1PoliciesCreatePost(policyCreate, authorization, sessionId, options) {
3244
- return PoliciesApiFp(this.configuration).createPolicyV1PoliciesCreatePost(policyCreate, authorization, sessionId, options).then((request) => request(this.axios, this.basePath));
3245
- }
3246
- /**
3247
- *
3248
- * @summary Delete Policy
3249
- * @param {string} policyId
3250
- * @param {string} [authorization]
3251
- * @param {string} [sessionId]
3252
- * @param {*} [options] Override http request option.
3253
- * @throws {RequiredError}
3254
- * @memberof PoliciesApi
3255
- */
3256
- deletePolicyV1PoliciesPolicyIdDelete(policyId, authorization, sessionId, options) {
3257
- return PoliciesApiFp(this.configuration).deletePolicyV1PoliciesPolicyIdDelete(policyId, authorization, sessionId, options).then((request) => request(this.axios, this.basePath));
3258
- }
3259
- /**
3260
- *
3261
- * @summary Get Company Policies
3262
- * @param {string} companyId
3263
- * @param {number} [page]
3264
- * @param {number} [elements]
3265
- * @param {string} [authorization]
3266
- * @param {string} [sessionId]
3267
- * @param {*} [options] Override http request option.
3268
- * @throws {RequiredError}
3269
- * @memberof PoliciesApi
3270
- */
3271
- getCompanyPoliciesV1PoliciesCompanyCompanyIdGet(companyId, page, elements, authorization, sessionId, options) {
3272
- return PoliciesApiFp(this.configuration).getCompanyPoliciesV1PoliciesCompanyCompanyIdGet(companyId, page, elements, authorization, sessionId, options).then((request) => request(this.axios, this.basePath));
3273
- }
3274
- /**
3275
- *
3276
- * @summary Get Policy
3277
- * @param {string} policyId
3278
- * @param {*} [options] Override http request option.
3279
- * @throws {RequiredError}
3280
- * @memberof PoliciesApi
3281
- */
3282
- getPolicyV1PoliciesPolicyIdGet(policyId, options) {
3283
- return PoliciesApiFp(this.configuration).getPolicyV1PoliciesPolicyIdGet(policyId, options).then((request) => request(this.axios, this.basePath));
3284
- }
3285
- /**
3286
- *
3287
- * @summary Update Policy
3288
- * @param {string} policyId
3289
- * @param {PolicyUpdate} policyUpdate
3290
- * @param {string} [authorization]
3291
- * @param {string} [sessionId]
3292
- * @param {*} [options] Override http request option.
3293
- * @throws {RequiredError}
3294
- * @memberof PoliciesApi
3295
- */
3296
- updatePolicyV1PoliciesPolicyIdPut(policyId, policyUpdate, authorization, sessionId, options) {
3297
- return PoliciesApiFp(this.configuration).updatePolicyV1PoliciesPolicyIdPut(policyId, policyUpdate, authorization, sessionId, options).then((request) => request(this.axios, this.basePath));
3298
- }
3299
- }
3300
2877
  /**
3301
2878
  * ReportsApi - axios parameter creator
3302
2879
  * @export
@@ -3341,20 +2918,17 @@ export const ReportsApiAxiosParamCreator = function (configuration) {
3341
2918
  *
3342
2919
  * @summary Generate Report
3343
2920
  * @param {string} companyId
3344
- * @param {string} reportType
3345
- * @param {{ [key: string]: any; }} requestBody
2921
+ * @param {ReportType} reportType
3346
2922
  * @param {string} [authorization]
3347
2923
  * @param {string} [sessionId]
3348
2924
  * @param {*} [options] Override http request option.
3349
2925
  * @throws {RequiredError}
3350
2926
  */
3351
- generateReportV1ReportsGeneratePost: (companyId_1, reportType_1, requestBody_1, authorization_1, sessionId_1, ...args_1) => __awaiter(this, [companyId_1, reportType_1, requestBody_1, authorization_1, sessionId_1, ...args_1], void 0, function* (companyId, reportType, requestBody, authorization, sessionId, options = {}) {
2927
+ generateReportV1ReportsGeneratePost: (companyId_1, reportType_1, authorization_1, sessionId_1, ...args_1) => __awaiter(this, [companyId_1, reportType_1, authorization_1, sessionId_1, ...args_1], void 0, function* (companyId, reportType, authorization, sessionId, options = {}) {
3352
2928
  // verify required parameter 'companyId' is not null or undefined
3353
2929
  assertParamExists('generateReportV1ReportsGeneratePost', 'companyId', companyId);
3354
2930
  // verify required parameter 'reportType' is not null or undefined
3355
2931
  assertParamExists('generateReportV1ReportsGeneratePost', 'reportType', reportType);
3356
- // verify required parameter 'requestBody' is not null or undefined
3357
- assertParamExists('generateReportV1ReportsGeneratePost', 'requestBody', requestBody);
3358
2932
  const localVarPath = `/v1/reports/generate`;
3359
2933
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
3360
2934
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -3371,14 +2945,12 @@ export const ReportsApiAxiosParamCreator = function (configuration) {
3371
2945
  if (reportType !== undefined) {
3372
2946
  localVarQueryParameter['report_type'] = reportType;
3373
2947
  }
3374
- localVarHeaderParameter['Content-Type'] = 'application/json';
3375
2948
  if (authorization != null) {
3376
2949
  localVarHeaderParameter['Authorization'] = String(authorization);
3377
2950
  }
3378
2951
  setSearchParams(localVarUrlObj, localVarQueryParameter);
3379
2952
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3380
2953
  localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
3381
- localVarRequestOptions.data = serializeDataIfNeeded(requestBody, localVarRequestOptions, configuration);
3382
2954
  return {
3383
2955
  url: toPathString(localVarUrlObj),
3384
2956
  options: localVarRequestOptions,
@@ -3495,17 +3067,16 @@ export const ReportsApiFp = function (configuration) {
3495
3067
  *
3496
3068
  * @summary Generate Report
3497
3069
  * @param {string} companyId
3498
- * @param {string} reportType
3499
- * @param {{ [key: string]: any; }} requestBody
3070
+ * @param {ReportType} reportType
3500
3071
  * @param {string} [authorization]
3501
3072
  * @param {string} [sessionId]
3502
3073
  * @param {*} [options] Override http request option.
3503
3074
  * @throws {RequiredError}
3504
3075
  */
3505
- generateReportV1ReportsGeneratePost(companyId, reportType, requestBody, authorization, sessionId, options) {
3076
+ generateReportV1ReportsGeneratePost(companyId, reportType, authorization, sessionId, options) {
3506
3077
  return __awaiter(this, void 0, void 0, function* () {
3507
3078
  var _a, _b, _c;
3508
- const localVarAxiosArgs = yield localVarAxiosParamCreator.generateReportV1ReportsGeneratePost(companyId, reportType, requestBody, authorization, sessionId, options);
3079
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.generateReportV1ReportsGeneratePost(companyId, reportType, authorization, sessionId, options);
3509
3080
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
3510
3081
  const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ReportsApi.generateReportV1ReportsGeneratePost']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
3511
3082
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
@@ -3575,15 +3146,14 @@ export const ReportsApiFactory = function (configuration, basePath, axios) {
3575
3146
  *
3576
3147
  * @summary Generate Report
3577
3148
  * @param {string} companyId
3578
- * @param {string} reportType
3579
- * @param {{ [key: string]: any; }} requestBody
3149
+ * @param {ReportType} reportType
3580
3150
  * @param {string} [authorization]
3581
3151
  * @param {string} [sessionId]
3582
3152
  * @param {*} [options] Override http request option.
3583
3153
  * @throws {RequiredError}
3584
3154
  */
3585
- generateReportV1ReportsGeneratePost(companyId, reportType, requestBody, authorization, sessionId, options) {
3586
- return localVarFp.generateReportV1ReportsGeneratePost(companyId, reportType, requestBody, authorization, sessionId, options).then((request) => request(axios, basePath));
3155
+ generateReportV1ReportsGeneratePost(companyId, reportType, authorization, sessionId, options) {
3156
+ return localVarFp.generateReportV1ReportsGeneratePost(companyId, reportType, authorization, sessionId, options).then((request) => request(axios, basePath));
3587
3157
  },
3588
3158
  /**
3589
3159
  *
@@ -3638,16 +3208,15 @@ export class ReportsApi extends BaseAPI {
3638
3208
  *
3639
3209
  * @summary Generate Report
3640
3210
  * @param {string} companyId
3641
- * @param {string} reportType
3642
- * @param {{ [key: string]: any; }} requestBody
3211
+ * @param {ReportType} reportType
3643
3212
  * @param {string} [authorization]
3644
3213
  * @param {string} [sessionId]
3645
3214
  * @param {*} [options] Override http request option.
3646
3215
  * @throws {RequiredError}
3647
3216
  * @memberof ReportsApi
3648
3217
  */
3649
- generateReportV1ReportsGeneratePost(companyId, reportType, requestBody, authorization, sessionId, options) {
3650
- return ReportsApiFp(this.configuration).generateReportV1ReportsGeneratePost(companyId, reportType, requestBody, authorization, sessionId, options).then((request) => request(this.axios, this.basePath));
3218
+ generateReportV1ReportsGeneratePost(companyId, reportType, authorization, sessionId, options) {
3219
+ return ReportsApiFp(this.configuration).generateReportV1ReportsGeneratePost(companyId, reportType, authorization, sessionId, options).then((request) => request(this.axios, this.basePath));
3651
3220
  }
3652
3221
  /**
3653
3222
  *
@@ -4964,13 +4533,12 @@ export const UserApiAxiosParamCreator = function (configuration) {
4964
4533
  /**
4965
4534
  *
4966
4535
  * @summary Resend Otp By Email
4967
- * @param {string} email
4536
+ * @param {string} [authorization]
4537
+ * @param {string} [sessionId]
4968
4538
  * @param {*} [options] Override http request option.
4969
4539
  * @throws {RequiredError}
4970
4540
  */
4971
- resendOtpByEmailV1UserResendOtpEmailPost: (email_1, ...args_1) => __awaiter(this, [email_1, ...args_1], void 0, function* (email, options = {}) {
4972
- // verify required parameter 'email' is not null or undefined
4973
- assertParamExists('resendOtpByEmailV1UserResendOtpEmailPost', 'email', email);
4541
+ resendOtpByEmailV1UserResendOtpEmailPost: (authorization_1, sessionId_1, ...args_1) => __awaiter(this, [authorization_1, sessionId_1, ...args_1], void 0, function* (authorization, sessionId, options = {}) {
4974
4542
  const localVarPath = `/v1/user/resend-otp/email`;
4975
4543
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
4976
4544
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -4981,8 +4549,8 @@ export const UserApiAxiosParamCreator = function (configuration) {
4981
4549
  const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
4982
4550
  const localVarHeaderParameter = {};
4983
4551
  const localVarQueryParameter = {};
4984
- if (email !== undefined) {
4985
- localVarQueryParameter['email'] = email;
4552
+ if (authorization != null) {
4553
+ localVarHeaderParameter['Authorization'] = String(authorization);
4986
4554
  }
4987
4555
  setSearchParams(localVarUrlObj, localVarQueryParameter);
4988
4556
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
@@ -4995,12 +4563,13 @@ export const UserApiAxiosParamCreator = function (configuration) {
4995
4563
  /**
4996
4564
  *
4997
4565
  * @summary Resend Otp
4998
- * @param {string} [authorization]
4999
- * @param {string} [sessionId]
4566
+ * @param {string} email
5000
4567
  * @param {*} [options] Override http request option.
5001
4568
  * @throws {RequiredError}
5002
4569
  */
5003
- resendOtpV1UserResendOtpPasswordPost: (authorization_1, sessionId_1, ...args_1) => __awaiter(this, [authorization_1, sessionId_1, ...args_1], void 0, function* (authorization, sessionId, options = {}) {
4570
+ resendOtpV1UserResendOtpPasswordPost: (email_1, ...args_1) => __awaiter(this, [email_1, ...args_1], void 0, function* (email, options = {}) {
4571
+ // verify required parameter 'email' is not null or undefined
4572
+ assertParamExists('resendOtpV1UserResendOtpPasswordPost', 'email', email);
5004
4573
  const localVarPath = `/v1/user/resend-otp/password`;
5005
4574
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
5006
4575
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -5011,8 +4580,8 @@ export const UserApiAxiosParamCreator = function (configuration) {
5011
4580
  const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
5012
4581
  const localVarHeaderParameter = {};
5013
4582
  const localVarQueryParameter = {};
5014
- if (authorization != null) {
5015
- localVarHeaderParameter['Authorization'] = String(authorization);
4583
+ if (email !== undefined) {
4584
+ localVarQueryParameter['email'] = email;
5016
4585
  }
5017
4586
  setSearchParams(localVarUrlObj, localVarQueryParameter);
5018
4587
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
@@ -5241,14 +4810,15 @@ export const UserApiFp = function (configuration) {
5241
4810
  /**
5242
4811
  *
5243
4812
  * @summary Resend Otp By Email
5244
- * @param {string} email
4813
+ * @param {string} [authorization]
4814
+ * @param {string} [sessionId]
5245
4815
  * @param {*} [options] Override http request option.
5246
4816
  * @throws {RequiredError}
5247
4817
  */
5248
- resendOtpByEmailV1UserResendOtpEmailPost(email, options) {
4818
+ resendOtpByEmailV1UserResendOtpEmailPost(authorization, sessionId, options) {
5249
4819
  return __awaiter(this, void 0, void 0, function* () {
5250
4820
  var _a, _b, _c;
5251
- const localVarAxiosArgs = yield localVarAxiosParamCreator.resendOtpByEmailV1UserResendOtpEmailPost(email, options);
4821
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.resendOtpByEmailV1UserResendOtpEmailPost(authorization, sessionId, options);
5252
4822
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
5253
4823
  const localVarOperationServerBasePath = (_c = (_b = operationServerMap['UserApi.resendOtpByEmailV1UserResendOtpEmailPost']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
5254
4824
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
@@ -5257,15 +4827,14 @@ export const UserApiFp = function (configuration) {
5257
4827
  /**
5258
4828
  *
5259
4829
  * @summary Resend Otp
5260
- * @param {string} [authorization]
5261
- * @param {string} [sessionId]
4830
+ * @param {string} email
5262
4831
  * @param {*} [options] Override http request option.
5263
4832
  * @throws {RequiredError}
5264
4833
  */
5265
- resendOtpV1UserResendOtpPasswordPost(authorization, sessionId, options) {
4834
+ resendOtpV1UserResendOtpPasswordPost(email, options) {
5266
4835
  return __awaiter(this, void 0, void 0, function* () {
5267
4836
  var _a, _b, _c;
5268
- const localVarAxiosArgs = yield localVarAxiosParamCreator.resendOtpV1UserResendOtpPasswordPost(authorization, sessionId, options);
4837
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.resendOtpV1UserResendOtpPasswordPost(email, options);
5269
4838
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
5270
4839
  const localVarOperationServerBasePath = (_c = (_b = operationServerMap['UserApi.resendOtpV1UserResendOtpPasswordPost']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
5271
4840
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
@@ -5402,23 +4971,23 @@ export const UserApiFactory = function (configuration, basePath, axios) {
5402
4971
  /**
5403
4972
  *
5404
4973
  * @summary Resend Otp By Email
5405
- * @param {string} email
4974
+ * @param {string} [authorization]
4975
+ * @param {string} [sessionId]
5406
4976
  * @param {*} [options] Override http request option.
5407
4977
  * @throws {RequiredError}
5408
4978
  */
5409
- resendOtpByEmailV1UserResendOtpEmailPost(email, options) {
5410
- return localVarFp.resendOtpByEmailV1UserResendOtpEmailPost(email, options).then((request) => request(axios, basePath));
4979
+ resendOtpByEmailV1UserResendOtpEmailPost(authorization, sessionId, options) {
4980
+ return localVarFp.resendOtpByEmailV1UserResendOtpEmailPost(authorization, sessionId, options).then((request) => request(axios, basePath));
5411
4981
  },
5412
4982
  /**
5413
4983
  *
5414
4984
  * @summary Resend Otp
5415
- * @param {string} [authorization]
5416
- * @param {string} [sessionId]
4985
+ * @param {string} email
5417
4986
  * @param {*} [options] Override http request option.
5418
4987
  * @throws {RequiredError}
5419
4988
  */
5420
- resendOtpV1UserResendOtpPasswordPost(authorization, sessionId, options) {
5421
- return localVarFp.resendOtpV1UserResendOtpPasswordPost(authorization, sessionId, options).then((request) => request(axios, basePath));
4989
+ resendOtpV1UserResendOtpPasswordPost(email, options) {
4990
+ return localVarFp.resendOtpV1UserResendOtpPasswordPost(email, options).then((request) => request(axios, basePath));
5422
4991
  },
5423
4992
  /**
5424
4993
  *
@@ -5532,25 +5101,25 @@ export class UserApi extends BaseAPI {
5532
5101
  /**
5533
5102
  *
5534
5103
  * @summary Resend Otp By Email
5535
- * @param {string} email
5104
+ * @param {string} [authorization]
5105
+ * @param {string} [sessionId]
5536
5106
  * @param {*} [options] Override http request option.
5537
5107
  * @throws {RequiredError}
5538
5108
  * @memberof UserApi
5539
5109
  */
5540
- resendOtpByEmailV1UserResendOtpEmailPost(email, options) {
5541
- return UserApiFp(this.configuration).resendOtpByEmailV1UserResendOtpEmailPost(email, options).then((request) => request(this.axios, this.basePath));
5110
+ resendOtpByEmailV1UserResendOtpEmailPost(authorization, sessionId, options) {
5111
+ return UserApiFp(this.configuration).resendOtpByEmailV1UserResendOtpEmailPost(authorization, sessionId, options).then((request) => request(this.axios, this.basePath));
5542
5112
  }
5543
5113
  /**
5544
5114
  *
5545
5115
  * @summary Resend Otp
5546
- * @param {string} [authorization]
5547
- * @param {string} [sessionId]
5116
+ * @param {string} email
5548
5117
  * @param {*} [options] Override http request option.
5549
5118
  * @throws {RequiredError}
5550
5119
  * @memberof UserApi
5551
5120
  */
5552
- resendOtpV1UserResendOtpPasswordPost(authorization, sessionId, options) {
5553
- return UserApiFp(this.configuration).resendOtpV1UserResendOtpPasswordPost(authorization, sessionId, options).then((request) => request(this.axios, this.basePath));
5121
+ resendOtpV1UserResendOtpPasswordPost(email, options) {
5122
+ return UserApiFp(this.configuration).resendOtpV1UserResendOtpPasswordPost(email, options).then((request) => request(this.axios, this.basePath));
5554
5123
  }
5555
5124
  /**
5556
5125
  *