@rasadov/lumoar-sdk 1.2.4 → 1.2.8

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/api.ts CHANGED
@@ -48,7 +48,6 @@ export type AuditLogAction = typeof AuditLogAction[keyof typeof AuditLogAction];
48
48
  export const AuditLogEntity = {
49
49
  CompanyControls: 'company_controls',
50
50
  Evidences: 'evidences',
51
- Policies: 'policies',
52
51
  Reports: 'reports',
53
52
  Companies: 'companies',
54
53
  Users: 'users',
@@ -1242,25 +1241,6 @@ export interface PaginationResponseCompanyInDBBase {
1242
1241
  */
1243
1242
  'total': number;
1244
1243
  }
1245
- /**
1246
- *
1247
- * @export
1248
- * @interface PaginationResponsePolicyRead
1249
- */
1250
- export interface PaginationResponsePolicyRead {
1251
- /**
1252
- *
1253
- * @type {Array<PolicyRead>}
1254
- * @memberof PaginationResponsePolicyRead
1255
- */
1256
- 'items': Array<PolicyRead>;
1257
- /**
1258
- *
1259
- * @type {number}
1260
- * @memberof PaginationResponsePolicyRead
1261
- */
1262
- 'total': number;
1263
- }
1264
1244
  /**
1265
1245
  *
1266
1246
  * @export
@@ -1355,111 +1335,6 @@ export const PermissionType = {
1355
1335
  export type PermissionType = typeof PermissionType[keyof typeof PermissionType];
1356
1336
 
1357
1337
 
1358
- /**
1359
- *
1360
- * @export
1361
- * @interface PolicyCreate
1362
- */
1363
- export interface PolicyCreate {
1364
- /**
1365
- * Name of the policy
1366
- * @type {string}
1367
- * @memberof PolicyCreate
1368
- */
1369
- 'name': string;
1370
- /**
1371
- * Type of policy (e.g., \'security\', \'privacy\')
1372
- * @type {string}
1373
- * @memberof PolicyCreate
1374
- */
1375
- 'type': string;
1376
- /**
1377
- * Policy content as a JSON object
1378
- * @type {{ [key: string]: any; }}
1379
- * @memberof PolicyCreate
1380
- */
1381
- 'content': { [key: string]: any; };
1382
- /**
1383
- * UUID of the company this policy belongs to
1384
- * @type {string}
1385
- * @memberof PolicyCreate
1386
- */
1387
- 'company_id': string;
1388
- }
1389
- /**
1390
- *
1391
- * @export
1392
- * @interface PolicyRead
1393
- */
1394
- export interface PolicyRead {
1395
- /**
1396
- * Unique identifier for the policy
1397
- * @type {string}
1398
- * @memberof PolicyRead
1399
- */
1400
- 'id': string;
1401
- /**
1402
- * Name of the policy
1403
- * @type {string}
1404
- * @memberof PolicyRead
1405
- */
1406
- 'name': string;
1407
- /**
1408
- * Type of policy
1409
- * @type {string}
1410
- * @memberof PolicyRead
1411
- */
1412
- 'type': string;
1413
- /**
1414
- * Policy content
1415
- * @type {{ [key: string]: any; }}
1416
- * @memberof PolicyRead
1417
- */
1418
- 'content': { [key: string]: any; };
1419
- /**
1420
- * UUID of the associated company
1421
- * @type {string}
1422
- * @memberof PolicyRead
1423
- */
1424
- 'company_id': string;
1425
- /**
1426
- * UUID of the user who created the policy
1427
- * @type {string}
1428
- * @memberof PolicyRead
1429
- */
1430
- 'created_by': string;
1431
- /**
1432
- * Timestamp when the policy was created
1433
- * @type {string}
1434
- * @memberof PolicyRead
1435
- */
1436
- 'created_at': string;
1437
- }
1438
- /**
1439
- *
1440
- * @export
1441
- * @interface PolicyUpdate
1442
- */
1443
- export interface PolicyUpdate {
1444
- /**
1445
- *
1446
- * @type {string}
1447
- * @memberof PolicyUpdate
1448
- */
1449
- 'name'?: string | null;
1450
- /**
1451
- *
1452
- * @type {string}
1453
- * @memberof PolicyUpdate
1454
- */
1455
- 'type'?: string | null;
1456
- /**
1457
- *
1458
- * @type {{ [key: string]: any; }}
1459
- * @memberof PolicyUpdate
1460
- */
1461
- 'content'?: { [key: string]: any; } | null;
1462
- }
1463
1338
  /**
1464
1339
  * Register schema for user registration. Attributes: - email: EmailStr - password: SecretStr - password_repeat: SecretStr - name: str | None - phone: str | None - turnstile_token: str
1465
1340
  * @export
@@ -1564,12 +1439,6 @@ export interface ReportBase {
1564
1439
  * @memberof ReportBase
1565
1440
  */
1566
1441
  'created_at': string;
1567
- /**
1568
- *
1569
- * @type {string}
1570
- * @memberof ReportBase
1571
- */
1572
- 'updated_at': string;
1573
1442
  }
1574
1443
  /**
1575
1444
  *
@@ -1584,6 +1453,20 @@ export interface ReportGenerate {
1584
1453
  */
1585
1454
  'report_id': string;
1586
1455
  }
1456
+ /**
1457
+ *
1458
+ * @export
1459
+ * @enum {string}
1460
+ */
1461
+
1462
+ export const ReportType = {
1463
+ AuditReady: 'audit_ready',
1464
+ GapAnalysis: 'gap_analysis'
1465
+ } as const;
1466
+
1467
+ export type ReportType = typeof ReportType[keyof typeof ReportType];
1468
+
1469
+
1587
1470
  /**
1588
1471
  * Schema for password reset
1589
1472
  * @export
@@ -5226,461 +5109,6 @@ export class PaymentsApi extends BaseAPI {
5226
5109
 
5227
5110
 
5228
5111
 
5229
- /**
5230
- * PoliciesApi - axios parameter creator
5231
- * @export
5232
- */
5233
- export const PoliciesApiAxiosParamCreator = function (configuration?: Configuration) {
5234
- return {
5235
- /**
5236
- *
5237
- * @summary Create Policy
5238
- * @param {PolicyCreate} policyCreate
5239
- * @param {string} [authorization]
5240
- * @param {string} [sessionId]
5241
- * @param {*} [options] Override http request option.
5242
- * @throws {RequiredError}
5243
- */
5244
- createPolicyV1PoliciesCreatePost: async (policyCreate: PolicyCreate, authorization?: string, sessionId?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
5245
- // verify required parameter 'policyCreate' is not null or undefined
5246
- assertParamExists('createPolicyV1PoliciesCreatePost', 'policyCreate', policyCreate)
5247
- const localVarPath = `/v1/policies/create`;
5248
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
5249
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
5250
- let baseOptions;
5251
- if (configuration) {
5252
- baseOptions = configuration.baseOptions;
5253
- }
5254
-
5255
- const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
5256
- const localVarHeaderParameter = {} as any;
5257
- const localVarQueryParameter = {} as any;
5258
-
5259
-
5260
-
5261
- localVarHeaderParameter['Content-Type'] = 'application/json';
5262
-
5263
- if (authorization != null) {
5264
- localVarHeaderParameter['Authorization'] = String(authorization);
5265
- }
5266
- setSearchParams(localVarUrlObj, localVarQueryParameter);
5267
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
5268
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
5269
- localVarRequestOptions.data = serializeDataIfNeeded(policyCreate, localVarRequestOptions, configuration)
5270
-
5271
- return {
5272
- url: toPathString(localVarUrlObj),
5273
- options: localVarRequestOptions,
5274
- };
5275
- },
5276
- /**
5277
- *
5278
- * @summary Delete Policy
5279
- * @param {string} policyId
5280
- * @param {string} [authorization]
5281
- * @param {string} [sessionId]
5282
- * @param {*} [options] Override http request option.
5283
- * @throws {RequiredError}
5284
- */
5285
- deletePolicyV1PoliciesPolicyIdDelete: async (policyId: string, authorization?: string, sessionId?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
5286
- // verify required parameter 'policyId' is not null or undefined
5287
- assertParamExists('deletePolicyV1PoliciesPolicyIdDelete', 'policyId', policyId)
5288
- const localVarPath = `/v1/policies/{policy_id}`
5289
- .replace(`{${"policy_id"}}`, encodeURIComponent(String(policyId)));
5290
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
5291
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
5292
- let baseOptions;
5293
- if (configuration) {
5294
- baseOptions = configuration.baseOptions;
5295
- }
5296
-
5297
- const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
5298
- const localVarHeaderParameter = {} as any;
5299
- const localVarQueryParameter = {} as any;
5300
-
5301
-
5302
-
5303
- if (authorization != null) {
5304
- localVarHeaderParameter['Authorization'] = String(authorization);
5305
- }
5306
- setSearchParams(localVarUrlObj, localVarQueryParameter);
5307
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
5308
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
5309
-
5310
- return {
5311
- url: toPathString(localVarUrlObj),
5312
- options: localVarRequestOptions,
5313
- };
5314
- },
5315
- /**
5316
- *
5317
- * @summary Get Company Policies
5318
- * @param {string} companyId
5319
- * @param {number} [page]
5320
- * @param {number} [elements]
5321
- * @param {string} [authorization]
5322
- * @param {string} [sessionId]
5323
- * @param {*} [options] Override http request option.
5324
- * @throws {RequiredError}
5325
- */
5326
- getCompanyPoliciesV1PoliciesCompanyCompanyIdGet: async (companyId: string, page?: number, elements?: number, authorization?: string, sessionId?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
5327
- // verify required parameter 'companyId' is not null or undefined
5328
- assertParamExists('getCompanyPoliciesV1PoliciesCompanyCompanyIdGet', 'companyId', companyId)
5329
- const localVarPath = `/v1/policies/company/{company_id}`
5330
- .replace(`{${"company_id"}}`, encodeURIComponent(String(companyId)));
5331
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
5332
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
5333
- let baseOptions;
5334
- if (configuration) {
5335
- baseOptions = configuration.baseOptions;
5336
- }
5337
-
5338
- const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
5339
- const localVarHeaderParameter = {} as any;
5340
- const localVarQueryParameter = {} as any;
5341
-
5342
- if (page !== undefined) {
5343
- localVarQueryParameter['page'] = page;
5344
- }
5345
-
5346
- if (elements !== undefined) {
5347
- localVarQueryParameter['elements'] = elements;
5348
- }
5349
-
5350
-
5351
-
5352
- if (authorization != null) {
5353
- localVarHeaderParameter['Authorization'] = String(authorization);
5354
- }
5355
- setSearchParams(localVarUrlObj, localVarQueryParameter);
5356
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
5357
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
5358
-
5359
- return {
5360
- url: toPathString(localVarUrlObj),
5361
- options: localVarRequestOptions,
5362
- };
5363
- },
5364
- /**
5365
- *
5366
- * @summary Get Policy
5367
- * @param {string} policyId
5368
- * @param {*} [options] Override http request option.
5369
- * @throws {RequiredError}
5370
- */
5371
- getPolicyV1PoliciesPolicyIdGet: async (policyId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
5372
- // verify required parameter 'policyId' is not null or undefined
5373
- assertParamExists('getPolicyV1PoliciesPolicyIdGet', 'policyId', policyId)
5374
- const localVarPath = `/v1/policies/{policy_id}`
5375
- .replace(`{${"policy_id"}}`, encodeURIComponent(String(policyId)));
5376
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
5377
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
5378
- let baseOptions;
5379
- if (configuration) {
5380
- baseOptions = configuration.baseOptions;
5381
- }
5382
-
5383
- const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
5384
- const localVarHeaderParameter = {} as any;
5385
- const localVarQueryParameter = {} as any;
5386
-
5387
-
5388
-
5389
- setSearchParams(localVarUrlObj, localVarQueryParameter);
5390
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
5391
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
5392
-
5393
- return {
5394
- url: toPathString(localVarUrlObj),
5395
- options: localVarRequestOptions,
5396
- };
5397
- },
5398
- /**
5399
- *
5400
- * @summary Update Policy
5401
- * @param {string} policyId
5402
- * @param {PolicyUpdate} policyUpdate
5403
- * @param {string} [authorization]
5404
- * @param {string} [sessionId]
5405
- * @param {*} [options] Override http request option.
5406
- * @throws {RequiredError}
5407
- */
5408
- updatePolicyV1PoliciesPolicyIdPut: async (policyId: string, policyUpdate: PolicyUpdate, authorization?: string, sessionId?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
5409
- // verify required parameter 'policyId' is not null or undefined
5410
- assertParamExists('updatePolicyV1PoliciesPolicyIdPut', 'policyId', policyId)
5411
- // verify required parameter 'policyUpdate' is not null or undefined
5412
- assertParamExists('updatePolicyV1PoliciesPolicyIdPut', 'policyUpdate', policyUpdate)
5413
- const localVarPath = `/v1/policies/{policy_id}`
5414
- .replace(`{${"policy_id"}}`, encodeURIComponent(String(policyId)));
5415
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
5416
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
5417
- let baseOptions;
5418
- if (configuration) {
5419
- baseOptions = configuration.baseOptions;
5420
- }
5421
-
5422
- const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
5423
- const localVarHeaderParameter = {} as any;
5424
- const localVarQueryParameter = {} as any;
5425
-
5426
-
5427
-
5428
- localVarHeaderParameter['Content-Type'] = 'application/json';
5429
-
5430
- if (authorization != null) {
5431
- localVarHeaderParameter['Authorization'] = String(authorization);
5432
- }
5433
- setSearchParams(localVarUrlObj, localVarQueryParameter);
5434
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
5435
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
5436
- localVarRequestOptions.data = serializeDataIfNeeded(policyUpdate, localVarRequestOptions, configuration)
5437
-
5438
- return {
5439
- url: toPathString(localVarUrlObj),
5440
- options: localVarRequestOptions,
5441
- };
5442
- },
5443
- }
5444
- };
5445
-
5446
- /**
5447
- * PoliciesApi - functional programming interface
5448
- * @export
5449
- */
5450
- export const PoliciesApiFp = function(configuration?: Configuration) {
5451
- const localVarAxiosParamCreator = PoliciesApiAxiosParamCreator(configuration)
5452
- return {
5453
- /**
5454
- *
5455
- * @summary Create Policy
5456
- * @param {PolicyCreate} policyCreate
5457
- * @param {string} [authorization]
5458
- * @param {string} [sessionId]
5459
- * @param {*} [options] Override http request option.
5460
- * @throws {RequiredError}
5461
- */
5462
- async createPolicyV1PoliciesCreatePost(policyCreate: PolicyCreate, authorization?: string, sessionId?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PolicyRead>> {
5463
- const localVarAxiosArgs = await localVarAxiosParamCreator.createPolicyV1PoliciesCreatePost(policyCreate, authorization, sessionId, options);
5464
- const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
5465
- const localVarOperationServerBasePath = operationServerMap['PoliciesApi.createPolicyV1PoliciesCreatePost']?.[localVarOperationServerIndex]?.url;
5466
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
5467
- },
5468
- /**
5469
- *
5470
- * @summary Delete Policy
5471
- * @param {string} policyId
5472
- * @param {string} [authorization]
5473
- * @param {string} [sessionId]
5474
- * @param {*} [options] Override http request option.
5475
- * @throws {RequiredError}
5476
- */
5477
- async deletePolicyV1PoliciesPolicyIdDelete(policyId: string, authorization?: string, sessionId?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
5478
- const localVarAxiosArgs = await localVarAxiosParamCreator.deletePolicyV1PoliciesPolicyIdDelete(policyId, authorization, sessionId, options);
5479
- const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
5480
- const localVarOperationServerBasePath = operationServerMap['PoliciesApi.deletePolicyV1PoliciesPolicyIdDelete']?.[localVarOperationServerIndex]?.url;
5481
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
5482
- },
5483
- /**
5484
- *
5485
- * @summary Get Company Policies
5486
- * @param {string} companyId
5487
- * @param {number} [page]
5488
- * @param {number} [elements]
5489
- * @param {string} [authorization]
5490
- * @param {string} [sessionId]
5491
- * @param {*} [options] Override http request option.
5492
- * @throws {RequiredError}
5493
- */
5494
- async getCompanyPoliciesV1PoliciesCompanyCompanyIdGet(companyId: string, page?: number, elements?: number, authorization?: string, sessionId?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PaginationResponsePolicyRead>> {
5495
- const localVarAxiosArgs = await localVarAxiosParamCreator.getCompanyPoliciesV1PoliciesCompanyCompanyIdGet(companyId, page, elements, authorization, sessionId, options);
5496
- const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
5497
- const localVarOperationServerBasePath = operationServerMap['PoliciesApi.getCompanyPoliciesV1PoliciesCompanyCompanyIdGet']?.[localVarOperationServerIndex]?.url;
5498
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
5499
- },
5500
- /**
5501
- *
5502
- * @summary Get Policy
5503
- * @param {string} policyId
5504
- * @param {*} [options] Override http request option.
5505
- * @throws {RequiredError}
5506
- */
5507
- async getPolicyV1PoliciesPolicyIdGet(policyId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PolicyRead>> {
5508
- const localVarAxiosArgs = await localVarAxiosParamCreator.getPolicyV1PoliciesPolicyIdGet(policyId, options);
5509
- const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
5510
- const localVarOperationServerBasePath = operationServerMap['PoliciesApi.getPolicyV1PoliciesPolicyIdGet']?.[localVarOperationServerIndex]?.url;
5511
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
5512
- },
5513
- /**
5514
- *
5515
- * @summary Update Policy
5516
- * @param {string} policyId
5517
- * @param {PolicyUpdate} policyUpdate
5518
- * @param {string} [authorization]
5519
- * @param {string} [sessionId]
5520
- * @param {*} [options] Override http request option.
5521
- * @throws {RequiredError}
5522
- */
5523
- async updatePolicyV1PoliciesPolicyIdPut(policyId: string, policyUpdate: PolicyUpdate, authorization?: string, sessionId?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PolicyRead>> {
5524
- const localVarAxiosArgs = await localVarAxiosParamCreator.updatePolicyV1PoliciesPolicyIdPut(policyId, policyUpdate, authorization, sessionId, options);
5525
- const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
5526
- const localVarOperationServerBasePath = operationServerMap['PoliciesApi.updatePolicyV1PoliciesPolicyIdPut']?.[localVarOperationServerIndex]?.url;
5527
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
5528
- },
5529
- }
5530
- };
5531
-
5532
- /**
5533
- * PoliciesApi - factory interface
5534
- * @export
5535
- */
5536
- export const PoliciesApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
5537
- const localVarFp = PoliciesApiFp(configuration)
5538
- return {
5539
- /**
5540
- *
5541
- * @summary Create Policy
5542
- * @param {PolicyCreate} policyCreate
5543
- * @param {string} [authorization]
5544
- * @param {string} [sessionId]
5545
- * @param {*} [options] Override http request option.
5546
- * @throws {RequiredError}
5547
- */
5548
- createPolicyV1PoliciesCreatePost(policyCreate: PolicyCreate, authorization?: string, sessionId?: string, options?: RawAxiosRequestConfig): AxiosPromise<PolicyRead> {
5549
- return localVarFp.createPolicyV1PoliciesCreatePost(policyCreate, authorization, sessionId, options).then((request) => request(axios, basePath));
5550
- },
5551
- /**
5552
- *
5553
- * @summary Delete Policy
5554
- * @param {string} policyId
5555
- * @param {string} [authorization]
5556
- * @param {string} [sessionId]
5557
- * @param {*} [options] Override http request option.
5558
- * @throws {RequiredError}
5559
- */
5560
- deletePolicyV1PoliciesPolicyIdDelete(policyId: string, authorization?: string, sessionId?: string, options?: RawAxiosRequestConfig): AxiosPromise<void> {
5561
- return localVarFp.deletePolicyV1PoliciesPolicyIdDelete(policyId, authorization, sessionId, options).then((request) => request(axios, basePath));
5562
- },
5563
- /**
5564
- *
5565
- * @summary Get Company Policies
5566
- * @param {string} companyId
5567
- * @param {number} [page]
5568
- * @param {number} [elements]
5569
- * @param {string} [authorization]
5570
- * @param {string} [sessionId]
5571
- * @param {*} [options] Override http request option.
5572
- * @throws {RequiredError}
5573
- */
5574
- getCompanyPoliciesV1PoliciesCompanyCompanyIdGet(companyId: string, page?: number, elements?: number, authorization?: string, sessionId?: string, options?: RawAxiosRequestConfig): AxiosPromise<PaginationResponsePolicyRead> {
5575
- return localVarFp.getCompanyPoliciesV1PoliciesCompanyCompanyIdGet(companyId, page, elements, authorization, sessionId, options).then((request) => request(axios, basePath));
5576
- },
5577
- /**
5578
- *
5579
- * @summary Get Policy
5580
- * @param {string} policyId
5581
- * @param {*} [options] Override http request option.
5582
- * @throws {RequiredError}
5583
- */
5584
- getPolicyV1PoliciesPolicyIdGet(policyId: string, options?: RawAxiosRequestConfig): AxiosPromise<PolicyRead> {
5585
- return localVarFp.getPolicyV1PoliciesPolicyIdGet(policyId, options).then((request) => request(axios, basePath));
5586
- },
5587
- /**
5588
- *
5589
- * @summary Update Policy
5590
- * @param {string} policyId
5591
- * @param {PolicyUpdate} policyUpdate
5592
- * @param {string} [authorization]
5593
- * @param {string} [sessionId]
5594
- * @param {*} [options] Override http request option.
5595
- * @throws {RequiredError}
5596
- */
5597
- updatePolicyV1PoliciesPolicyIdPut(policyId: string, policyUpdate: PolicyUpdate, authorization?: string, sessionId?: string, options?: RawAxiosRequestConfig): AxiosPromise<PolicyRead> {
5598
- return localVarFp.updatePolicyV1PoliciesPolicyIdPut(policyId, policyUpdate, authorization, sessionId, options).then((request) => request(axios, basePath));
5599
- },
5600
- };
5601
- };
5602
-
5603
- /**
5604
- * PoliciesApi - object-oriented interface
5605
- * @export
5606
- * @class PoliciesApi
5607
- * @extends {BaseAPI}
5608
- */
5609
- export class PoliciesApi extends BaseAPI {
5610
- /**
5611
- *
5612
- * @summary Create Policy
5613
- * @param {PolicyCreate} policyCreate
5614
- * @param {string} [authorization]
5615
- * @param {string} [sessionId]
5616
- * @param {*} [options] Override http request option.
5617
- * @throws {RequiredError}
5618
- * @memberof PoliciesApi
5619
- */
5620
- public createPolicyV1PoliciesCreatePost(policyCreate: PolicyCreate, authorization?: string, sessionId?: string, options?: RawAxiosRequestConfig) {
5621
- return PoliciesApiFp(this.configuration).createPolicyV1PoliciesCreatePost(policyCreate, authorization, sessionId, options).then((request) => request(this.axios, this.basePath));
5622
- }
5623
-
5624
- /**
5625
- *
5626
- * @summary Delete Policy
5627
- * @param {string} policyId
5628
- * @param {string} [authorization]
5629
- * @param {string} [sessionId]
5630
- * @param {*} [options] Override http request option.
5631
- * @throws {RequiredError}
5632
- * @memberof PoliciesApi
5633
- */
5634
- public deletePolicyV1PoliciesPolicyIdDelete(policyId: string, authorization?: string, sessionId?: string, options?: RawAxiosRequestConfig) {
5635
- return PoliciesApiFp(this.configuration).deletePolicyV1PoliciesPolicyIdDelete(policyId, authorization, sessionId, options).then((request) => request(this.axios, this.basePath));
5636
- }
5637
-
5638
- /**
5639
- *
5640
- * @summary Get Company Policies
5641
- * @param {string} companyId
5642
- * @param {number} [page]
5643
- * @param {number} [elements]
5644
- * @param {string} [authorization]
5645
- * @param {string} [sessionId]
5646
- * @param {*} [options] Override http request option.
5647
- * @throws {RequiredError}
5648
- * @memberof PoliciesApi
5649
- */
5650
- public getCompanyPoliciesV1PoliciesCompanyCompanyIdGet(companyId: string, page?: number, elements?: number, authorization?: string, sessionId?: string, options?: RawAxiosRequestConfig) {
5651
- return PoliciesApiFp(this.configuration).getCompanyPoliciesV1PoliciesCompanyCompanyIdGet(companyId, page, elements, authorization, sessionId, options).then((request) => request(this.axios, this.basePath));
5652
- }
5653
-
5654
- /**
5655
- *
5656
- * @summary Get Policy
5657
- * @param {string} policyId
5658
- * @param {*} [options] Override http request option.
5659
- * @throws {RequiredError}
5660
- * @memberof PoliciesApi
5661
- */
5662
- public getPolicyV1PoliciesPolicyIdGet(policyId: string, options?: RawAxiosRequestConfig) {
5663
- return PoliciesApiFp(this.configuration).getPolicyV1PoliciesPolicyIdGet(policyId, options).then((request) => request(this.axios, this.basePath));
5664
- }
5665
-
5666
- /**
5667
- *
5668
- * @summary Update Policy
5669
- * @param {string} policyId
5670
- * @param {PolicyUpdate} policyUpdate
5671
- * @param {string} [authorization]
5672
- * @param {string} [sessionId]
5673
- * @param {*} [options] Override http request option.
5674
- * @throws {RequiredError}
5675
- * @memberof PoliciesApi
5676
- */
5677
- public updatePolicyV1PoliciesPolicyIdPut(policyId: string, policyUpdate: PolicyUpdate, authorization?: string, sessionId?: string, options?: RawAxiosRequestConfig) {
5678
- return PoliciesApiFp(this.configuration).updatePolicyV1PoliciesPolicyIdPut(policyId, policyUpdate, authorization, sessionId, options).then((request) => request(this.axios, this.basePath));
5679
- }
5680
- }
5681
-
5682
-
5683
-
5684
5112
  /**
5685
5113
  * ReportsApi - axios parameter creator
5686
5114
  * @export
@@ -5730,20 +5158,18 @@ export const ReportsApiAxiosParamCreator = function (configuration?: Configurati
5730
5158
  *
5731
5159
  * @summary Generate Report
5732
5160
  * @param {string} companyId
5733
- * @param {string} reportType
5734
- * @param {{ [key: string]: any; }} requestBody
5161
+ * @param {ReportType} reportType
5162
+ * @param {string | null} [title]
5735
5163
  * @param {string} [authorization]
5736
5164
  * @param {string} [sessionId]
5737
5165
  * @param {*} [options] Override http request option.
5738
5166
  * @throws {RequiredError}
5739
5167
  */
5740
- generateReportV1ReportsGeneratePost: async (companyId: string, reportType: string, requestBody: { [key: string]: any; }, authorization?: string, sessionId?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
5168
+ generateReportV1ReportsGeneratePost: async (companyId: string, reportType: ReportType, title?: string | null, authorization?: string, sessionId?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
5741
5169
  // verify required parameter 'companyId' is not null or undefined
5742
5170
  assertParamExists('generateReportV1ReportsGeneratePost', 'companyId', companyId)
5743
5171
  // verify required parameter 'reportType' is not null or undefined
5744
5172
  assertParamExists('generateReportV1ReportsGeneratePost', 'reportType', reportType)
5745
- // verify required parameter 'requestBody' is not null or undefined
5746
- assertParamExists('generateReportV1ReportsGeneratePost', 'requestBody', requestBody)
5747
5173
  const localVarPath = `/v1/reports/generate`;
5748
5174
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
5749
5175
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -5764,17 +5190,18 @@ export const ReportsApiAxiosParamCreator = function (configuration?: Configurati
5764
5190
  localVarQueryParameter['report_type'] = reportType;
5765
5191
  }
5766
5192
 
5193
+ if (title !== undefined) {
5194
+ localVarQueryParameter['title'] = title;
5195
+ }
5196
+
5767
5197
 
5768
5198
 
5769
- localVarHeaderParameter['Content-Type'] = 'application/json';
5770
-
5771
5199
  if (authorization != null) {
5772
5200
  localVarHeaderParameter['Authorization'] = String(authorization);
5773
5201
  }
5774
5202
  setSearchParams(localVarUrlObj, localVarQueryParameter);
5775
5203
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
5776
5204
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
5777
- localVarRequestOptions.data = serializeDataIfNeeded(requestBody, localVarRequestOptions, configuration)
5778
5205
 
5779
5206
  return {
5780
5207
  url: toPathString(localVarUrlObj),
@@ -5902,15 +5329,15 @@ export const ReportsApiFp = function(configuration?: Configuration) {
5902
5329
  *
5903
5330
  * @summary Generate Report
5904
5331
  * @param {string} companyId
5905
- * @param {string} reportType
5906
- * @param {{ [key: string]: any; }} requestBody
5332
+ * @param {ReportType} reportType
5333
+ * @param {string | null} [title]
5907
5334
  * @param {string} [authorization]
5908
5335
  * @param {string} [sessionId]
5909
5336
  * @param {*} [options] Override http request option.
5910
5337
  * @throws {RequiredError}
5911
5338
  */
5912
- async generateReportV1ReportsGeneratePost(companyId: string, reportType: string, requestBody: { [key: string]: any; }, authorization?: string, sessionId?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ReportGenerate>> {
5913
- const localVarAxiosArgs = await localVarAxiosParamCreator.generateReportV1ReportsGeneratePost(companyId, reportType, requestBody, authorization, sessionId, options);
5339
+ async generateReportV1ReportsGeneratePost(companyId: string, reportType: ReportType, title?: string | null, authorization?: string, sessionId?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ReportGenerate>> {
5340
+ const localVarAxiosArgs = await localVarAxiosParamCreator.generateReportV1ReportsGeneratePost(companyId, reportType, title, authorization, sessionId, options);
5914
5341
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
5915
5342
  const localVarOperationServerBasePath = operationServerMap['ReportsApi.generateReportV1ReportsGeneratePost']?.[localVarOperationServerIndex]?.url;
5916
5343
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
@@ -5974,15 +5401,15 @@ export const ReportsApiFactory = function (configuration?: Configuration, basePa
5974
5401
  *
5975
5402
  * @summary Generate Report
5976
5403
  * @param {string} companyId
5977
- * @param {string} reportType
5978
- * @param {{ [key: string]: any; }} requestBody
5404
+ * @param {ReportType} reportType
5405
+ * @param {string | null} [title]
5979
5406
  * @param {string} [authorization]
5980
5407
  * @param {string} [sessionId]
5981
5408
  * @param {*} [options] Override http request option.
5982
5409
  * @throws {RequiredError}
5983
5410
  */
5984
- generateReportV1ReportsGeneratePost(companyId: string, reportType: string, requestBody: { [key: string]: any; }, authorization?: string, sessionId?: string, options?: RawAxiosRequestConfig): AxiosPromise<ReportGenerate> {
5985
- return localVarFp.generateReportV1ReportsGeneratePost(companyId, reportType, requestBody, authorization, sessionId, options).then((request) => request(axios, basePath));
5411
+ generateReportV1ReportsGeneratePost(companyId: string, reportType: ReportType, title?: string | null, authorization?: string, sessionId?: string, options?: RawAxiosRequestConfig): AxiosPromise<ReportGenerate> {
5412
+ return localVarFp.generateReportV1ReportsGeneratePost(companyId, reportType, title, authorization, sessionId, options).then((request) => request(axios, basePath));
5986
5413
  },
5987
5414
  /**
5988
5415
  *
@@ -6039,16 +5466,16 @@ export class ReportsApi extends BaseAPI {
6039
5466
  *
6040
5467
  * @summary Generate Report
6041
5468
  * @param {string} companyId
6042
- * @param {string} reportType
6043
- * @param {{ [key: string]: any; }} requestBody
5469
+ * @param {ReportType} reportType
5470
+ * @param {string | null} [title]
6044
5471
  * @param {string} [authorization]
6045
5472
  * @param {string} [sessionId]
6046
5473
  * @param {*} [options] Override http request option.
6047
5474
  * @throws {RequiredError}
6048
5475
  * @memberof ReportsApi
6049
5476
  */
6050
- public generateReportV1ReportsGeneratePost(companyId: string, reportType: string, requestBody: { [key: string]: any; }, authorization?: string, sessionId?: string, options?: RawAxiosRequestConfig) {
6051
- return ReportsApiFp(this.configuration).generateReportV1ReportsGeneratePost(companyId, reportType, requestBody, authorization, sessionId, options).then((request) => request(this.axios, this.basePath));
5477
+ public generateReportV1ReportsGeneratePost(companyId: string, reportType: ReportType, title?: string | null, authorization?: string, sessionId?: string, options?: RawAxiosRequestConfig) {
5478
+ return ReportsApiFp(this.configuration).generateReportV1ReportsGeneratePost(companyId, reportType, title, authorization, sessionId, options).then((request) => request(this.axios, this.basePath));
6052
5479
  }
6053
5480
 
6054
5481
  /**