@rasadov/lumoar-sdk 1.2.6 → 1.3.0

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
@@ -1427,6 +1427,30 @@ export interface ReportBase {
1427
1427
  * @memberof ReportBase
1428
1428
  */
1429
1429
  'share_expiration'?: string | null;
1430
+ /**
1431
+ *
1432
+ * @type {number}
1433
+ * @memberof ReportBase
1434
+ */
1435
+ 'file_size'?: number | null;
1436
+ /**
1437
+ *
1438
+ * @type {string}
1439
+ * @memberof ReportBase
1440
+ */
1441
+ 'file_type'?: string | null;
1442
+ /**
1443
+ *
1444
+ * @type {string}
1445
+ * @memberof ReportBase
1446
+ */
1447
+ 'checksum'?: string | null;
1448
+ /**
1449
+ *
1450
+ * @type {ReportType}
1451
+ * @memberof ReportBase
1452
+ */
1453
+ 'report_type': ReportType;
1430
1454
  /**
1431
1455
  *
1432
1456
  * @type {string}
@@ -1440,6 +1464,8 @@ export interface ReportBase {
1440
1464
  */
1441
1465
  'created_at': string;
1442
1466
  }
1467
+
1468
+
1443
1469
  /**
1444
1470
  *
1445
1471
  * @export
@@ -1452,6 +1478,12 @@ export interface ReportGenerate {
1452
1478
  * @memberof ReportGenerate
1453
1479
  */
1454
1480
  'report_id': string;
1481
+ /**
1482
+ *
1483
+ * @type {string}
1484
+ * @memberof ReportGenerate
1485
+ */
1486
+ 'task_id'?: string | null;
1455
1487
  }
1456
1488
  /**
1457
1489
  *
@@ -1610,6 +1642,25 @@ export interface SchedulerRequest {
1610
1642
  */
1611
1643
  'user_ids_to_assign'?: Array<string>;
1612
1644
  }
1645
+ /**
1646
+ * Response schema for task scheduler request
1647
+ * @export
1648
+ * @interface SchedulerResponse
1649
+ */
1650
+ export interface SchedulerResponse {
1651
+ /**
1652
+ *
1653
+ * @type {string}
1654
+ * @memberof SchedulerResponse
1655
+ */
1656
+ 'task_id': string;
1657
+ /**
1658
+ *
1659
+ * @type {string}
1660
+ * @memberof SchedulerResponse
1661
+ */
1662
+ 'details'?: string;
1663
+ }
1613
1664
  /**
1614
1665
  *
1615
1666
  * @export
@@ -1752,6 +1803,43 @@ export const TaskStatus = {
1752
1803
  export type TaskStatus = typeof TaskStatus[keyof typeof TaskStatus];
1753
1804
 
1754
1805
 
1806
+ /**
1807
+ * Response schema for checking Celery task status
1808
+ * @export
1809
+ * @interface TaskStatusResponse
1810
+ */
1811
+ export interface TaskStatusResponse {
1812
+ /**
1813
+ *
1814
+ * @type {string}
1815
+ * @memberof TaskStatusResponse
1816
+ */
1817
+ 'task_id': string;
1818
+ /**
1819
+ *
1820
+ * @type {string}
1821
+ * @memberof TaskStatusResponse
1822
+ */
1823
+ 'status': string;
1824
+ /**
1825
+ *
1826
+ * @type {{ [key: string]: any; }}
1827
+ * @memberof TaskStatusResponse
1828
+ */
1829
+ 'result'?: { [key: string]: any; } | null;
1830
+ /**
1831
+ *
1832
+ * @type {string}
1833
+ * @memberof TaskStatusResponse
1834
+ */
1835
+ 'error'?: string | null;
1836
+ /**
1837
+ *
1838
+ * @type {{ [key: string]: any; }}
1839
+ * @memberof TaskStatusResponse
1840
+ */
1841
+ 'progress'?: { [key: string]: any; } | null;
1842
+ }
1755
1843
  /**
1756
1844
  *
1757
1845
  * @export
@@ -3271,13 +3359,13 @@ export const CompanyApiAxiosParamCreator = function (configuration?: Configurati
3271
3359
  /**
3272
3360
  *
3273
3361
  * @summary Get Company
3274
- * @param {string} companyId
3362
+ * @param {string | null} companyId
3275
3363
  * @param {string} [authorization]
3276
3364
  * @param {string} [sessionId]
3277
3365
  * @param {*} [options] Override http request option.
3278
3366
  * @throws {RequiredError}
3279
3367
  */
3280
- getCompanyV1CompanyGetCompanyIdGet: async (companyId: string, authorization?: string, sessionId?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
3368
+ getCompanyV1CompanyGetCompanyIdGet: async (companyId: string | null, authorization?: string, sessionId?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
3281
3369
  // verify required parameter 'companyId' is not null or undefined
3282
3370
  assertParamExists('getCompanyV1CompanyGetCompanyIdGet', 'companyId', companyId)
3283
3371
  const localVarPath = `/v1/company/get/{company_id}`
@@ -3310,13 +3398,13 @@ export const CompanyApiAxiosParamCreator = function (configuration?: Configurati
3310
3398
  /**
3311
3399
  *
3312
3400
  * @summary Get Company With Controls
3313
- * @param {string} companyId
3401
+ * @param {string | null} companyId
3314
3402
  * @param {string} [authorization]
3315
3403
  * @param {string} [sessionId]
3316
3404
  * @param {*} [options] Override http request option.
3317
3405
  * @throws {RequiredError}
3318
3406
  */
3319
- getCompanyWithControlsV1CompanyControlsCompanyIdGet: async (companyId: string, authorization?: string, sessionId?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
3407
+ getCompanyWithControlsV1CompanyControlsCompanyIdGet: async (companyId: string | null, authorization?: string, sessionId?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
3320
3408
  // verify required parameter 'companyId' is not null or undefined
3321
3409
  assertParamExists('getCompanyWithControlsV1CompanyControlsCompanyIdGet', 'companyId', companyId)
3322
3410
  const localVarPath = `/v1/company/controls/{company_id}`
@@ -3431,13 +3519,13 @@ export const CompanyApiFp = function(configuration?: Configuration) {
3431
3519
  /**
3432
3520
  *
3433
3521
  * @summary Get Company
3434
- * @param {string} companyId
3522
+ * @param {string | null} companyId
3435
3523
  * @param {string} [authorization]
3436
3524
  * @param {string} [sessionId]
3437
3525
  * @param {*} [options] Override http request option.
3438
3526
  * @throws {RequiredError}
3439
3527
  */
3440
- async getCompanyV1CompanyGetCompanyIdGet(companyId: string, authorization?: string, sessionId?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CompanyWithRoles>> {
3528
+ async getCompanyV1CompanyGetCompanyIdGet(companyId: string | null, authorization?: string, sessionId?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CompanyWithRoles>> {
3441
3529
  const localVarAxiosArgs = await localVarAxiosParamCreator.getCompanyV1CompanyGetCompanyIdGet(companyId, authorization, sessionId, options);
3442
3530
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
3443
3531
  const localVarOperationServerBasePath = operationServerMap['CompanyApi.getCompanyV1CompanyGetCompanyIdGet']?.[localVarOperationServerIndex]?.url;
@@ -3446,13 +3534,13 @@ export const CompanyApiFp = function(configuration?: Configuration) {
3446
3534
  /**
3447
3535
  *
3448
3536
  * @summary Get Company With Controls
3449
- * @param {string} companyId
3537
+ * @param {string | null} companyId
3450
3538
  * @param {string} [authorization]
3451
3539
  * @param {string} [sessionId]
3452
3540
  * @param {*} [options] Override http request option.
3453
3541
  * @throws {RequiredError}
3454
3542
  */
3455
- async getCompanyWithControlsV1CompanyControlsCompanyIdGet(companyId: string, authorization?: string, sessionId?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CompanyWithControls>> {
3543
+ async getCompanyWithControlsV1CompanyControlsCompanyIdGet(companyId: string | null, authorization?: string, sessionId?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CompanyWithControls>> {
3456
3544
  const localVarAxiosArgs = await localVarAxiosParamCreator.getCompanyWithControlsV1CompanyControlsCompanyIdGet(companyId, authorization, sessionId, options);
3457
3545
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
3458
3546
  const localVarOperationServerBasePath = operationServerMap['CompanyApi.getCompanyWithControlsV1CompanyControlsCompanyIdGet']?.[localVarOperationServerIndex]?.url;
@@ -3511,25 +3599,25 @@ export const CompanyApiFactory = function (configuration?: Configuration, basePa
3511
3599
  /**
3512
3600
  *
3513
3601
  * @summary Get Company
3514
- * @param {string} companyId
3602
+ * @param {string | null} companyId
3515
3603
  * @param {string} [authorization]
3516
3604
  * @param {string} [sessionId]
3517
3605
  * @param {*} [options] Override http request option.
3518
3606
  * @throws {RequiredError}
3519
3607
  */
3520
- getCompanyV1CompanyGetCompanyIdGet(companyId: string, authorization?: string, sessionId?: string, options?: RawAxiosRequestConfig): AxiosPromise<CompanyWithRoles> {
3608
+ getCompanyV1CompanyGetCompanyIdGet(companyId: string | null, authorization?: string, sessionId?: string, options?: RawAxiosRequestConfig): AxiosPromise<CompanyWithRoles> {
3521
3609
  return localVarFp.getCompanyV1CompanyGetCompanyIdGet(companyId, authorization, sessionId, options).then((request) => request(axios, basePath));
3522
3610
  },
3523
3611
  /**
3524
3612
  *
3525
3613
  * @summary Get Company With Controls
3526
- * @param {string} companyId
3614
+ * @param {string | null} companyId
3527
3615
  * @param {string} [authorization]
3528
3616
  * @param {string} [sessionId]
3529
3617
  * @param {*} [options] Override http request option.
3530
3618
  * @throws {RequiredError}
3531
3619
  */
3532
- getCompanyWithControlsV1CompanyControlsCompanyIdGet(companyId: string, authorization?: string, sessionId?: string, options?: RawAxiosRequestConfig): AxiosPromise<CompanyWithControls> {
3620
+ getCompanyWithControlsV1CompanyControlsCompanyIdGet(companyId: string | null, authorization?: string, sessionId?: string, options?: RawAxiosRequestConfig): AxiosPromise<CompanyWithControls> {
3533
3621
  return localVarFp.getCompanyWithControlsV1CompanyControlsCompanyIdGet(companyId, authorization, sessionId, options).then((request) => request(axios, basePath));
3534
3622
  },
3535
3623
  /**
@@ -3586,28 +3674,28 @@ export class CompanyApi extends BaseAPI {
3586
3674
  /**
3587
3675
  *
3588
3676
  * @summary Get Company
3589
- * @param {string} companyId
3677
+ * @param {string | null} companyId
3590
3678
  * @param {string} [authorization]
3591
3679
  * @param {string} [sessionId]
3592
3680
  * @param {*} [options] Override http request option.
3593
3681
  * @throws {RequiredError}
3594
3682
  * @memberof CompanyApi
3595
3683
  */
3596
- public getCompanyV1CompanyGetCompanyIdGet(companyId: string, authorization?: string, sessionId?: string, options?: RawAxiosRequestConfig) {
3684
+ public getCompanyV1CompanyGetCompanyIdGet(companyId: string | null, authorization?: string, sessionId?: string, options?: RawAxiosRequestConfig) {
3597
3685
  return CompanyApiFp(this.configuration).getCompanyV1CompanyGetCompanyIdGet(companyId, authorization, sessionId, options).then((request) => request(this.axios, this.basePath));
3598
3686
  }
3599
3687
 
3600
3688
  /**
3601
3689
  *
3602
3690
  * @summary Get Company With Controls
3603
- * @param {string} companyId
3691
+ * @param {string | null} companyId
3604
3692
  * @param {string} [authorization]
3605
3693
  * @param {string} [sessionId]
3606
3694
  * @param {*} [options] Override http request option.
3607
3695
  * @throws {RequiredError}
3608
3696
  * @memberof CompanyApi
3609
3697
  */
3610
- public getCompanyWithControlsV1CompanyControlsCompanyIdGet(companyId: string, authorization?: string, sessionId?: string, options?: RawAxiosRequestConfig) {
3698
+ public getCompanyWithControlsV1CompanyControlsCompanyIdGet(companyId: string | null, authorization?: string, sessionId?: string, options?: RawAxiosRequestConfig) {
3611
3699
  return CompanyApiFp(this.configuration).getCompanyWithControlsV1CompanyControlsCompanyIdGet(companyId, authorization, sessionId, options).then((request) => request(this.axios, this.basePath));
3612
3700
  }
3613
3701
 
@@ -3961,13 +4049,13 @@ export const EvidenceApiAxiosParamCreator = function (configuration?: Configurat
3961
4049
  /**
3962
4050
  *
3963
4051
  * @summary List Company Evidence
3964
- * @param {string} companyId
4052
+ * @param {string | null} companyId
3965
4053
  * @param {string} [authorization]
3966
4054
  * @param {string} [sessionId]
3967
4055
  * @param {*} [options] Override http request option.
3968
4056
  * @throws {RequiredError}
3969
4057
  */
3970
- listCompanyEvidenceV1EvidenceCompanyCompanyIdGet: async (companyId: string, authorization?: string, sessionId?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
4058
+ listCompanyEvidenceV1EvidenceCompanyCompanyIdGet: async (companyId: string | null, authorization?: string, sessionId?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
3971
4059
  // verify required parameter 'companyId' is not null or undefined
3972
4060
  assertParamExists('listCompanyEvidenceV1EvidenceCompanyCompanyIdGet', 'companyId', companyId)
3973
4061
  const localVarPath = `/v1/evidence/company/{company_id}`
@@ -4177,13 +4265,13 @@ export const EvidenceApiFp = function(configuration?: Configuration) {
4177
4265
  /**
4178
4266
  *
4179
4267
  * @summary List Company Evidence
4180
- * @param {string} companyId
4268
+ * @param {string | null} companyId
4181
4269
  * @param {string} [authorization]
4182
4270
  * @param {string} [sessionId]
4183
4271
  * @param {*} [options] Override http request option.
4184
4272
  * @throws {RequiredError}
4185
4273
  */
4186
- async listCompanyEvidenceV1EvidenceCompanyCompanyIdGet(companyId: string, authorization?: string, sessionId?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<EvidenceBase>>> {
4274
+ async listCompanyEvidenceV1EvidenceCompanyCompanyIdGet(companyId: string | null, authorization?: string, sessionId?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<EvidenceBase>>> {
4187
4275
  const localVarAxiosArgs = await localVarAxiosParamCreator.listCompanyEvidenceV1EvidenceCompanyCompanyIdGet(companyId, authorization, sessionId, options);
4188
4276
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
4189
4277
  const localVarOperationServerBasePath = operationServerMap['EvidenceApi.listCompanyEvidenceV1EvidenceCompanyCompanyIdGet']?.[localVarOperationServerIndex]?.url;
@@ -4272,13 +4360,13 @@ export const EvidenceApiFactory = function (configuration?: Configuration, baseP
4272
4360
  /**
4273
4361
  *
4274
4362
  * @summary List Company Evidence
4275
- * @param {string} companyId
4363
+ * @param {string | null} companyId
4276
4364
  * @param {string} [authorization]
4277
4365
  * @param {string} [sessionId]
4278
4366
  * @param {*} [options] Override http request option.
4279
4367
  * @throws {RequiredError}
4280
4368
  */
4281
- listCompanyEvidenceV1EvidenceCompanyCompanyIdGet(companyId: string, authorization?: string, sessionId?: string, options?: RawAxiosRequestConfig): AxiosPromise<Array<EvidenceBase>> {
4369
+ listCompanyEvidenceV1EvidenceCompanyCompanyIdGet(companyId: string | null, authorization?: string, sessionId?: string, options?: RawAxiosRequestConfig): AxiosPromise<Array<EvidenceBase>> {
4282
4370
  return localVarFp.listCompanyEvidenceV1EvidenceCompanyCompanyIdGet(companyId, authorization, sessionId, options).then((request) => request(axios, basePath));
4283
4371
  },
4284
4372
  /**
@@ -4364,14 +4452,14 @@ export class EvidenceApi extends BaseAPI {
4364
4452
  /**
4365
4453
  *
4366
4454
  * @summary List Company Evidence
4367
- * @param {string} companyId
4455
+ * @param {string | null} companyId
4368
4456
  * @param {string} [authorization]
4369
4457
  * @param {string} [sessionId]
4370
4458
  * @param {*} [options] Override http request option.
4371
4459
  * @throws {RequiredError}
4372
4460
  * @memberof EvidenceApi
4373
4461
  */
4374
- public listCompanyEvidenceV1EvidenceCompanyCompanyIdGet(companyId: string, authorization?: string, sessionId?: string, options?: RawAxiosRequestConfig) {
4462
+ public listCompanyEvidenceV1EvidenceCompanyCompanyIdGet(companyId: string | null, authorization?: string, sessionId?: string, options?: RawAxiosRequestConfig) {
4375
4463
  return EvidenceApiFp(this.configuration).listCompanyEvidenceV1EvidenceCompanyCompanyIdGet(companyId, authorization, sessionId, options).then((request) => request(this.axios, this.basePath));
4376
4464
  }
4377
4465
 
@@ -5159,12 +5247,13 @@ export const ReportsApiAxiosParamCreator = function (configuration?: Configurati
5159
5247
  * @summary Generate Report
5160
5248
  * @param {string} companyId
5161
5249
  * @param {ReportType} reportType
5250
+ * @param {string | null} [title]
5162
5251
  * @param {string} [authorization]
5163
5252
  * @param {string} [sessionId]
5164
5253
  * @param {*} [options] Override http request option.
5165
5254
  * @throws {RequiredError}
5166
5255
  */
5167
- generateReportV1ReportsGeneratePost: async (companyId: string, reportType: ReportType, authorization?: string, sessionId?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
5256
+ generateReportV1ReportsGeneratePost: async (companyId: string, reportType: ReportType, title?: string | null, authorization?: string, sessionId?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
5168
5257
  // verify required parameter 'companyId' is not null or undefined
5169
5258
  assertParamExists('generateReportV1ReportsGeneratePost', 'companyId', companyId)
5170
5259
  // verify required parameter 'reportType' is not null or undefined
@@ -5189,6 +5278,10 @@ export const ReportsApiAxiosParamCreator = function (configuration?: Configurati
5189
5278
  localVarQueryParameter['report_type'] = reportType;
5190
5279
  }
5191
5280
 
5281
+ if (title !== undefined) {
5282
+ localVarQueryParameter['title'] = title;
5283
+ }
5284
+
5192
5285
 
5193
5286
 
5194
5287
  if (authorization != null) {
@@ -5234,6 +5327,45 @@ export const ReportsApiAxiosParamCreator = function (configuration?: Configurati
5234
5327
 
5235
5328
 
5236
5329
 
5330
+ if (authorization != null) {
5331
+ localVarHeaderParameter['Authorization'] = String(authorization);
5332
+ }
5333
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
5334
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
5335
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
5336
+
5337
+ return {
5338
+ url: toPathString(localVarUrlObj),
5339
+ options: localVarRequestOptions,
5340
+ };
5341
+ },
5342
+ /**
5343
+ * Check the status of a report generation background job
5344
+ * @summary Get Report Generation Status
5345
+ * @param {string} taskId
5346
+ * @param {string} [authorization]
5347
+ * @param {string} [sessionId]
5348
+ * @param {*} [options] Override http request option.
5349
+ * @throws {RequiredError}
5350
+ */
5351
+ getReportGenerationStatusV1ReportsGenerateTaskIdStatusGet: async (taskId: string, authorization?: string, sessionId?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
5352
+ // verify required parameter 'taskId' is not null or undefined
5353
+ assertParamExists('getReportGenerationStatusV1ReportsGenerateTaskIdStatusGet', 'taskId', taskId)
5354
+ const localVarPath = `/v1/reports/generate/{task_id}/status`
5355
+ .replace(`{${"task_id"}}`, encodeURIComponent(String(taskId)));
5356
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
5357
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
5358
+ let baseOptions;
5359
+ if (configuration) {
5360
+ baseOptions = configuration.baseOptions;
5361
+ }
5362
+
5363
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
5364
+ const localVarHeaderParameter = {} as any;
5365
+ const localVarQueryParameter = {} as any;
5366
+
5367
+
5368
+
5237
5369
  if (authorization != null) {
5238
5370
  localVarHeaderParameter['Authorization'] = String(authorization);
5239
5371
  }
@@ -5249,7 +5381,7 @@ export const ReportsApiAxiosParamCreator = function (configuration?: Configurati
5249
5381
  /**
5250
5382
  *
5251
5383
  * @summary List Reports
5252
- * @param {string} companyId
5384
+ * @param {string | null} companyId
5253
5385
  * @param {number} [page]
5254
5386
  * @param {number} [elements]
5255
5387
  * @param {string} [authorization]
@@ -5257,7 +5389,7 @@ export const ReportsApiAxiosParamCreator = function (configuration?: Configurati
5257
5389
  * @param {*} [options] Override http request option.
5258
5390
  * @throws {RequiredError}
5259
5391
  */
5260
- listReportsV1ReportsListCompanyIdGet: async (companyId: string, page?: number, elements?: number, authorization?: string, sessionId?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
5392
+ listReportsV1ReportsListCompanyIdGet: async (companyId: string | null, page?: number, elements?: number, authorization?: string, sessionId?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
5261
5393
  // verify required parameter 'companyId' is not null or undefined
5262
5394
  assertParamExists('listReportsV1ReportsListCompanyIdGet', 'companyId', companyId)
5263
5395
  const localVarPath = `/v1/reports/list/{company_id}`
@@ -5325,13 +5457,14 @@ export const ReportsApiFp = function(configuration?: Configuration) {
5325
5457
  * @summary Generate Report
5326
5458
  * @param {string} companyId
5327
5459
  * @param {ReportType} reportType
5460
+ * @param {string | null} [title]
5328
5461
  * @param {string} [authorization]
5329
5462
  * @param {string} [sessionId]
5330
5463
  * @param {*} [options] Override http request option.
5331
5464
  * @throws {RequiredError}
5332
5465
  */
5333
- async generateReportV1ReportsGeneratePost(companyId: string, reportType: ReportType, authorization?: string, sessionId?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ReportGenerate>> {
5334
- const localVarAxiosArgs = await localVarAxiosParamCreator.generateReportV1ReportsGeneratePost(companyId, reportType, authorization, sessionId, options);
5466
+ async generateReportV1ReportsGeneratePost(companyId: string, reportType: ReportType, title?: string | null, authorization?: string, sessionId?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ReportGenerate>> {
5467
+ const localVarAxiosArgs = await localVarAxiosParamCreator.generateReportV1ReportsGeneratePost(companyId, reportType, title, authorization, sessionId, options);
5335
5468
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
5336
5469
  const localVarOperationServerBasePath = operationServerMap['ReportsApi.generateReportV1ReportsGeneratePost']?.[localVarOperationServerIndex]?.url;
5337
5470
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
@@ -5352,10 +5485,25 @@ export const ReportsApiFp = function(configuration?: Configuration) {
5352
5485
  const localVarOperationServerBasePath = operationServerMap['ReportsApi.getEvidenceV1ReportsEvidenceReportIdEvidenceIdGet']?.[localVarOperationServerIndex]?.url;
5353
5486
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
5354
5487
  },
5488
+ /**
5489
+ * Check the status of a report generation background job
5490
+ * @summary Get Report Generation Status
5491
+ * @param {string} taskId
5492
+ * @param {string} [authorization]
5493
+ * @param {string} [sessionId]
5494
+ * @param {*} [options] Override http request option.
5495
+ * @throws {RequiredError}
5496
+ */
5497
+ async getReportGenerationStatusV1ReportsGenerateTaskIdStatusGet(taskId: string, authorization?: string, sessionId?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<TaskStatusResponse>> {
5498
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getReportGenerationStatusV1ReportsGenerateTaskIdStatusGet(taskId, authorization, sessionId, options);
5499
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
5500
+ const localVarOperationServerBasePath = operationServerMap['ReportsApi.getReportGenerationStatusV1ReportsGenerateTaskIdStatusGet']?.[localVarOperationServerIndex]?.url;
5501
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
5502
+ },
5355
5503
  /**
5356
5504
  *
5357
5505
  * @summary List Reports
5358
- * @param {string} companyId
5506
+ * @param {string | null} companyId
5359
5507
  * @param {number} [page]
5360
5508
  * @param {number} [elements]
5361
5509
  * @param {string} [authorization]
@@ -5363,7 +5511,7 @@ export const ReportsApiFp = function(configuration?: Configuration) {
5363
5511
  * @param {*} [options] Override http request option.
5364
5512
  * @throws {RequiredError}
5365
5513
  */
5366
- async listReportsV1ReportsListCompanyIdGet(companyId: string, page?: number, elements?: number, authorization?: string, sessionId?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PaginationResponseReportBase>> {
5514
+ async listReportsV1ReportsListCompanyIdGet(companyId: string | null, page?: number, elements?: number, authorization?: string, sessionId?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PaginationResponseReportBase>> {
5367
5515
  const localVarAxiosArgs = await localVarAxiosParamCreator.listReportsV1ReportsListCompanyIdGet(companyId, page, elements, authorization, sessionId, options);
5368
5516
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
5369
5517
  const localVarOperationServerBasePath = operationServerMap['ReportsApi.listReportsV1ReportsListCompanyIdGet']?.[localVarOperationServerIndex]?.url;
@@ -5396,13 +5544,14 @@ export const ReportsApiFactory = function (configuration?: Configuration, basePa
5396
5544
  * @summary Generate Report
5397
5545
  * @param {string} companyId
5398
5546
  * @param {ReportType} reportType
5547
+ * @param {string | null} [title]
5399
5548
  * @param {string} [authorization]
5400
5549
  * @param {string} [sessionId]
5401
5550
  * @param {*} [options] Override http request option.
5402
5551
  * @throws {RequiredError}
5403
5552
  */
5404
- generateReportV1ReportsGeneratePost(companyId: string, reportType: ReportType, authorization?: string, sessionId?: string, options?: RawAxiosRequestConfig): AxiosPromise<ReportGenerate> {
5405
- return localVarFp.generateReportV1ReportsGeneratePost(companyId, reportType, authorization, sessionId, options).then((request) => request(axios, basePath));
5553
+ generateReportV1ReportsGeneratePost(companyId: string, reportType: ReportType, title?: string | null, authorization?: string, sessionId?: string, options?: RawAxiosRequestConfig): AxiosPromise<ReportGenerate> {
5554
+ return localVarFp.generateReportV1ReportsGeneratePost(companyId, reportType, title, authorization, sessionId, options).then((request) => request(axios, basePath));
5406
5555
  },
5407
5556
  /**
5408
5557
  *
@@ -5417,10 +5566,22 @@ export const ReportsApiFactory = function (configuration?: Configuration, basePa
5417
5566
  getEvidenceV1ReportsEvidenceReportIdEvidenceIdGet(reportId: string, evidenceId: string, authorization?: string, sessionId?: string, options?: RawAxiosRequestConfig): AxiosPromise<Array<FileDownload>> {
5418
5567
  return localVarFp.getEvidenceV1ReportsEvidenceReportIdEvidenceIdGet(reportId, evidenceId, authorization, sessionId, options).then((request) => request(axios, basePath));
5419
5568
  },
5569
+ /**
5570
+ * Check the status of a report generation background job
5571
+ * @summary Get Report Generation Status
5572
+ * @param {string} taskId
5573
+ * @param {string} [authorization]
5574
+ * @param {string} [sessionId]
5575
+ * @param {*} [options] Override http request option.
5576
+ * @throws {RequiredError}
5577
+ */
5578
+ getReportGenerationStatusV1ReportsGenerateTaskIdStatusGet(taskId: string, authorization?: string, sessionId?: string, options?: RawAxiosRequestConfig): AxiosPromise<TaskStatusResponse> {
5579
+ return localVarFp.getReportGenerationStatusV1ReportsGenerateTaskIdStatusGet(taskId, authorization, sessionId, options).then((request) => request(axios, basePath));
5580
+ },
5420
5581
  /**
5421
5582
  *
5422
5583
  * @summary List Reports
5423
- * @param {string} companyId
5584
+ * @param {string | null} companyId
5424
5585
  * @param {number} [page]
5425
5586
  * @param {number} [elements]
5426
5587
  * @param {string} [authorization]
@@ -5428,7 +5589,7 @@ export const ReportsApiFactory = function (configuration?: Configuration, basePa
5428
5589
  * @param {*} [options] Override http request option.
5429
5590
  * @throws {RequiredError}
5430
5591
  */
5431
- listReportsV1ReportsListCompanyIdGet(companyId: string, page?: number, elements?: number, authorization?: string, sessionId?: string, options?: RawAxiosRequestConfig): AxiosPromise<PaginationResponseReportBase> {
5592
+ listReportsV1ReportsListCompanyIdGet(companyId: string | null, page?: number, elements?: number, authorization?: string, sessionId?: string, options?: RawAxiosRequestConfig): AxiosPromise<PaginationResponseReportBase> {
5432
5593
  return localVarFp.listReportsV1ReportsListCompanyIdGet(companyId, page, elements, authorization, sessionId, options).then((request) => request(axios, basePath));
5433
5594
  },
5434
5595
  };
@@ -5460,14 +5621,15 @@ export class ReportsApi extends BaseAPI {
5460
5621
  * @summary Generate Report
5461
5622
  * @param {string} companyId
5462
5623
  * @param {ReportType} reportType
5624
+ * @param {string | null} [title]
5463
5625
  * @param {string} [authorization]
5464
5626
  * @param {string} [sessionId]
5465
5627
  * @param {*} [options] Override http request option.
5466
5628
  * @throws {RequiredError}
5467
5629
  * @memberof ReportsApi
5468
5630
  */
5469
- public generateReportV1ReportsGeneratePost(companyId: string, reportType: ReportType, authorization?: string, sessionId?: string, options?: RawAxiosRequestConfig) {
5470
- return ReportsApiFp(this.configuration).generateReportV1ReportsGeneratePost(companyId, reportType, authorization, sessionId, options).then((request) => request(this.axios, this.basePath));
5631
+ public generateReportV1ReportsGeneratePost(companyId: string, reportType: ReportType, title?: string | null, authorization?: string, sessionId?: string, options?: RawAxiosRequestConfig) {
5632
+ return ReportsApiFp(this.configuration).generateReportV1ReportsGeneratePost(companyId, reportType, title, authorization, sessionId, options).then((request) => request(this.axios, this.basePath));
5471
5633
  }
5472
5634
 
5473
5635
  /**
@@ -5485,10 +5647,24 @@ export class ReportsApi extends BaseAPI {
5485
5647
  return ReportsApiFp(this.configuration).getEvidenceV1ReportsEvidenceReportIdEvidenceIdGet(reportId, evidenceId, authorization, sessionId, options).then((request) => request(this.axios, this.basePath));
5486
5648
  }
5487
5649
 
5650
+ /**
5651
+ * Check the status of a report generation background job
5652
+ * @summary Get Report Generation Status
5653
+ * @param {string} taskId
5654
+ * @param {string} [authorization]
5655
+ * @param {string} [sessionId]
5656
+ * @param {*} [options] Override http request option.
5657
+ * @throws {RequiredError}
5658
+ * @memberof ReportsApi
5659
+ */
5660
+ public getReportGenerationStatusV1ReportsGenerateTaskIdStatusGet(taskId: string, authorization?: string, sessionId?: string, options?: RawAxiosRequestConfig) {
5661
+ return ReportsApiFp(this.configuration).getReportGenerationStatusV1ReportsGenerateTaskIdStatusGet(taskId, authorization, sessionId, options).then((request) => request(this.axios, this.basePath));
5662
+ }
5663
+
5488
5664
  /**
5489
5665
  *
5490
5666
  * @summary List Reports
5491
- * @param {string} companyId
5667
+ * @param {string | null} companyId
5492
5668
  * @param {number} [page]
5493
5669
  * @param {number} [elements]
5494
5670
  * @param {string} [authorization]
@@ -5497,7 +5673,7 @@ export class ReportsApi extends BaseAPI {
5497
5673
  * @throws {RequiredError}
5498
5674
  * @memberof ReportsApi
5499
5675
  */
5500
- public listReportsV1ReportsListCompanyIdGet(companyId: string, page?: number, elements?: number, authorization?: string, sessionId?: string, options?: RawAxiosRequestConfig) {
5676
+ public listReportsV1ReportsListCompanyIdGet(companyId: string | null, page?: number, elements?: number, authorization?: string, sessionId?: string, options?: RawAxiosRequestConfig) {
5501
5677
  return ReportsApiFp(this.configuration).listReportsV1ReportsListCompanyIdGet(companyId, page, elements, authorization, sessionId, options).then((request) => request(this.axios, this.basePath));
5502
5678
  }
5503
5679
  }
@@ -5513,13 +5689,13 @@ export const RolesApiAxiosParamCreator = function (configuration?: Configuration
5513
5689
  /**
5514
5690
  *
5515
5691
  * @summary Get User Permissions
5516
- * @param {string} companyId
5692
+ * @param {string | null} companyId
5517
5693
  * @param {string} [authorization]
5518
5694
  * @param {string} [sessionId]
5519
5695
  * @param {*} [options] Override http request option.
5520
5696
  * @throws {RequiredError}
5521
5697
  */
5522
- getUserPermissionsV1RolesCompanyIdMeGet: async (companyId: string, authorization?: string, sessionId?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
5698
+ getUserPermissionsV1RolesCompanyIdMeGet: async (companyId: string | null, authorization?: string, sessionId?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
5523
5699
  // verify required parameter 'companyId' is not null or undefined
5524
5700
  assertParamExists('getUserPermissionsV1RolesCompanyIdMeGet', 'companyId', companyId)
5525
5701
  const localVarPath = `/v1/roles/{company_id}/me`
@@ -5552,13 +5728,13 @@ export const RolesApiAxiosParamCreator = function (configuration?: Configuration
5552
5728
  /**
5553
5729
  *
5554
5730
  * @summary Get Users
5555
- * @param {string} companyId
5731
+ * @param {string | null} companyId
5556
5732
  * @param {string} [authorization]
5557
5733
  * @param {string} [sessionId]
5558
5734
  * @param {*} [options] Override http request option.
5559
5735
  * @throws {RequiredError}
5560
5736
  */
5561
- getUsersV1RolesCompanyIdUsersGet: async (companyId: string, authorization?: string, sessionId?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
5737
+ getUsersV1RolesCompanyIdUsersGet: async (companyId: string | null, authorization?: string, sessionId?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
5562
5738
  // verify required parameter 'companyId' is not null or undefined
5563
5739
  assertParamExists('getUsersV1RolesCompanyIdUsersGet', 'companyId', companyId)
5564
5740
  const localVarPath = `/v1/roles/{company_id}/users`
@@ -5592,12 +5768,13 @@ export const RolesApiAxiosParamCreator = function (configuration?: Configuration
5592
5768
  *
5593
5769
  * @summary Invite
5594
5770
  * @param {InviteToCompany} inviteToCompany
5771
+ * @param {string | null} [companyId]
5595
5772
  * @param {string} [authorization]
5596
5773
  * @param {string} [sessionId]
5597
5774
  * @param {*} [options] Override http request option.
5598
5775
  * @throws {RequiredError}
5599
5776
  */
5600
- inviteV1RolesInvitesPost: async (inviteToCompany: InviteToCompany, authorization?: string, sessionId?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
5777
+ inviteV1RolesInvitesPost: async (inviteToCompany: InviteToCompany, companyId?: string | null, authorization?: string, sessionId?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
5601
5778
  // verify required parameter 'inviteToCompany' is not null or undefined
5602
5779
  assertParamExists('inviteV1RolesInvitesPost', 'inviteToCompany', inviteToCompany)
5603
5780
  const localVarPath = `/v1/roles/invites`;
@@ -5612,6 +5789,10 @@ export const RolesApiAxiosParamCreator = function (configuration?: Configuration
5612
5789
  const localVarHeaderParameter = {} as any;
5613
5790
  const localVarQueryParameter = {} as any;
5614
5791
 
5792
+ if (companyId !== undefined) {
5793
+ localVarQueryParameter['company_id'] = companyId;
5794
+ }
5795
+
5615
5796
 
5616
5797
 
5617
5798
  localVarHeaderParameter['Content-Type'] = 'application/json';
@@ -5633,12 +5814,13 @@ export const RolesApiAxiosParamCreator = function (configuration?: Configuration
5633
5814
  *
5634
5815
  * @summary Remove People
5635
5816
  * @param {RemoveFromCompany} removeFromCompany
5817
+ * @param {string | null} [companyId]
5636
5818
  * @param {string} [authorization]
5637
5819
  * @param {string} [sessionId]
5638
5820
  * @param {*} [options] Override http request option.
5639
5821
  * @throws {RequiredError}
5640
5822
  */
5641
- removePeopleV1RolesInvitesDelete: async (removeFromCompany: RemoveFromCompany, authorization?: string, sessionId?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
5823
+ removePeopleV1RolesInvitesDelete: async (removeFromCompany: RemoveFromCompany, companyId?: string | null, authorization?: string, sessionId?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
5642
5824
  // verify required parameter 'removeFromCompany' is not null or undefined
5643
5825
  assertParamExists('removePeopleV1RolesInvitesDelete', 'removeFromCompany', removeFromCompany)
5644
5826
  const localVarPath = `/v1/roles/invites`;
@@ -5653,6 +5835,10 @@ export const RolesApiAxiosParamCreator = function (configuration?: Configuration
5653
5835
  const localVarHeaderParameter = {} as any;
5654
5836
  const localVarQueryParameter = {} as any;
5655
5837
 
5838
+ if (companyId !== undefined) {
5839
+ localVarQueryParameter['company_id'] = companyId;
5840
+ }
5841
+
5656
5842
 
5657
5843
 
5658
5844
  localVarHeaderParameter['Content-Type'] = 'application/json';
@@ -5683,13 +5869,13 @@ export const RolesApiFp = function(configuration?: Configuration) {
5683
5869
  /**
5684
5870
  *
5685
5871
  * @summary Get User Permissions
5686
- * @param {string} companyId
5872
+ * @param {string | null} companyId
5687
5873
  * @param {string} [authorization]
5688
5874
  * @param {string} [sessionId]
5689
5875
  * @param {*} [options] Override http request option.
5690
5876
  * @throws {RequiredError}
5691
5877
  */
5692
- async getUserPermissionsV1RolesCompanyIdMeGet(companyId: string, authorization?: string, sessionId?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PermissionResponse>> {
5878
+ async getUserPermissionsV1RolesCompanyIdMeGet(companyId: string | null, authorization?: string, sessionId?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PermissionResponse>> {
5693
5879
  const localVarAxiosArgs = await localVarAxiosParamCreator.getUserPermissionsV1RolesCompanyIdMeGet(companyId, authorization, sessionId, options);
5694
5880
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
5695
5881
  const localVarOperationServerBasePath = operationServerMap['RolesApi.getUserPermissionsV1RolesCompanyIdMeGet']?.[localVarOperationServerIndex]?.url;
@@ -5698,13 +5884,13 @@ export const RolesApiFp = function(configuration?: Configuration) {
5698
5884
  /**
5699
5885
  *
5700
5886
  * @summary Get Users
5701
- * @param {string} companyId
5887
+ * @param {string | null} companyId
5702
5888
  * @param {string} [authorization]
5703
5889
  * @param {string} [sessionId]
5704
5890
  * @param {*} [options] Override http request option.
5705
5891
  * @throws {RequiredError}
5706
5892
  */
5707
- async getUsersV1RolesCompanyIdUsersGet(companyId: string, authorization?: string, sessionId?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<UserWithId>>> {
5893
+ async getUsersV1RolesCompanyIdUsersGet(companyId: string | null, authorization?: string, sessionId?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<UserWithId>>> {
5708
5894
  const localVarAxiosArgs = await localVarAxiosParamCreator.getUsersV1RolesCompanyIdUsersGet(companyId, authorization, sessionId, options);
5709
5895
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
5710
5896
  const localVarOperationServerBasePath = operationServerMap['RolesApi.getUsersV1RolesCompanyIdUsersGet']?.[localVarOperationServerIndex]?.url;
@@ -5714,13 +5900,14 @@ export const RolesApiFp = function(configuration?: Configuration) {
5714
5900
  *
5715
5901
  * @summary Invite
5716
5902
  * @param {InviteToCompany} inviteToCompany
5903
+ * @param {string | null} [companyId]
5717
5904
  * @param {string} [authorization]
5718
5905
  * @param {string} [sessionId]
5719
5906
  * @param {*} [options] Override http request option.
5720
5907
  * @throws {RequiredError}
5721
5908
  */
5722
- async inviteV1RolesInvitesPost(inviteToCompany: InviteToCompany, authorization?: string, sessionId?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Details>> {
5723
- const localVarAxiosArgs = await localVarAxiosParamCreator.inviteV1RolesInvitesPost(inviteToCompany, authorization, sessionId, options);
5909
+ async inviteV1RolesInvitesPost(inviteToCompany: InviteToCompany, companyId?: string | null, authorization?: string, sessionId?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Details>> {
5910
+ const localVarAxiosArgs = await localVarAxiosParamCreator.inviteV1RolesInvitesPost(inviteToCompany, companyId, authorization, sessionId, options);
5724
5911
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
5725
5912
  const localVarOperationServerBasePath = operationServerMap['RolesApi.inviteV1RolesInvitesPost']?.[localVarOperationServerIndex]?.url;
5726
5913
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
@@ -5729,13 +5916,14 @@ export const RolesApiFp = function(configuration?: Configuration) {
5729
5916
  *
5730
5917
  * @summary Remove People
5731
5918
  * @param {RemoveFromCompany} removeFromCompany
5919
+ * @param {string | null} [companyId]
5732
5920
  * @param {string} [authorization]
5733
5921
  * @param {string} [sessionId]
5734
5922
  * @param {*} [options] Override http request option.
5735
5923
  * @throws {RequiredError}
5736
5924
  */
5737
- async removePeopleV1RolesInvitesDelete(removeFromCompany: RemoveFromCompany, authorization?: string, sessionId?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Details>> {
5738
- const localVarAxiosArgs = await localVarAxiosParamCreator.removePeopleV1RolesInvitesDelete(removeFromCompany, authorization, sessionId, options);
5925
+ async removePeopleV1RolesInvitesDelete(removeFromCompany: RemoveFromCompany, companyId?: string | null, authorization?: string, sessionId?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Details>> {
5926
+ const localVarAxiosArgs = await localVarAxiosParamCreator.removePeopleV1RolesInvitesDelete(removeFromCompany, companyId, authorization, sessionId, options);
5739
5927
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
5740
5928
  const localVarOperationServerBasePath = operationServerMap['RolesApi.removePeopleV1RolesInvitesDelete']?.[localVarOperationServerIndex]?.url;
5741
5929
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
@@ -5753,50 +5941,52 @@ export const RolesApiFactory = function (configuration?: Configuration, basePath
5753
5941
  /**
5754
5942
  *
5755
5943
  * @summary Get User Permissions
5756
- * @param {string} companyId
5944
+ * @param {string | null} companyId
5757
5945
  * @param {string} [authorization]
5758
5946
  * @param {string} [sessionId]
5759
5947
  * @param {*} [options] Override http request option.
5760
5948
  * @throws {RequiredError}
5761
5949
  */
5762
- getUserPermissionsV1RolesCompanyIdMeGet(companyId: string, authorization?: string, sessionId?: string, options?: RawAxiosRequestConfig): AxiosPromise<PermissionResponse> {
5950
+ getUserPermissionsV1RolesCompanyIdMeGet(companyId: string | null, authorization?: string, sessionId?: string, options?: RawAxiosRequestConfig): AxiosPromise<PermissionResponse> {
5763
5951
  return localVarFp.getUserPermissionsV1RolesCompanyIdMeGet(companyId, authorization, sessionId, options).then((request) => request(axios, basePath));
5764
5952
  },
5765
5953
  /**
5766
5954
  *
5767
5955
  * @summary Get Users
5768
- * @param {string} companyId
5956
+ * @param {string | null} companyId
5769
5957
  * @param {string} [authorization]
5770
5958
  * @param {string} [sessionId]
5771
5959
  * @param {*} [options] Override http request option.
5772
5960
  * @throws {RequiredError}
5773
5961
  */
5774
- getUsersV1RolesCompanyIdUsersGet(companyId: string, authorization?: string, sessionId?: string, options?: RawAxiosRequestConfig): AxiosPromise<Array<UserWithId>> {
5962
+ getUsersV1RolesCompanyIdUsersGet(companyId: string | null, authorization?: string, sessionId?: string, options?: RawAxiosRequestConfig): AxiosPromise<Array<UserWithId>> {
5775
5963
  return localVarFp.getUsersV1RolesCompanyIdUsersGet(companyId, authorization, sessionId, options).then((request) => request(axios, basePath));
5776
5964
  },
5777
5965
  /**
5778
5966
  *
5779
5967
  * @summary Invite
5780
5968
  * @param {InviteToCompany} inviteToCompany
5969
+ * @param {string | null} [companyId]
5781
5970
  * @param {string} [authorization]
5782
5971
  * @param {string} [sessionId]
5783
5972
  * @param {*} [options] Override http request option.
5784
5973
  * @throws {RequiredError}
5785
5974
  */
5786
- inviteV1RolesInvitesPost(inviteToCompany: InviteToCompany, authorization?: string, sessionId?: string, options?: RawAxiosRequestConfig): AxiosPromise<Details> {
5787
- return localVarFp.inviteV1RolesInvitesPost(inviteToCompany, authorization, sessionId, options).then((request) => request(axios, basePath));
5975
+ inviteV1RolesInvitesPost(inviteToCompany: InviteToCompany, companyId?: string | null, authorization?: string, sessionId?: string, options?: RawAxiosRequestConfig): AxiosPromise<Details> {
5976
+ return localVarFp.inviteV1RolesInvitesPost(inviteToCompany, companyId, authorization, sessionId, options).then((request) => request(axios, basePath));
5788
5977
  },
5789
5978
  /**
5790
5979
  *
5791
5980
  * @summary Remove People
5792
5981
  * @param {RemoveFromCompany} removeFromCompany
5982
+ * @param {string | null} [companyId]
5793
5983
  * @param {string} [authorization]
5794
5984
  * @param {string} [sessionId]
5795
5985
  * @param {*} [options] Override http request option.
5796
5986
  * @throws {RequiredError}
5797
5987
  */
5798
- removePeopleV1RolesInvitesDelete(removeFromCompany: RemoveFromCompany, authorization?: string, sessionId?: string, options?: RawAxiosRequestConfig): AxiosPromise<Details> {
5799
- return localVarFp.removePeopleV1RolesInvitesDelete(removeFromCompany, authorization, sessionId, options).then((request) => request(axios, basePath));
5988
+ removePeopleV1RolesInvitesDelete(removeFromCompany: RemoveFromCompany, companyId?: string | null, authorization?: string, sessionId?: string, options?: RawAxiosRequestConfig): AxiosPromise<Details> {
5989
+ return localVarFp.removePeopleV1RolesInvitesDelete(removeFromCompany, companyId, authorization, sessionId, options).then((request) => request(axios, basePath));
5800
5990
  },
5801
5991
  };
5802
5992
  };
@@ -5811,28 +6001,28 @@ export class RolesApi extends BaseAPI {
5811
6001
  /**
5812
6002
  *
5813
6003
  * @summary Get User Permissions
5814
- * @param {string} companyId
6004
+ * @param {string | null} companyId
5815
6005
  * @param {string} [authorization]
5816
6006
  * @param {string} [sessionId]
5817
6007
  * @param {*} [options] Override http request option.
5818
6008
  * @throws {RequiredError}
5819
6009
  * @memberof RolesApi
5820
6010
  */
5821
- public getUserPermissionsV1RolesCompanyIdMeGet(companyId: string, authorization?: string, sessionId?: string, options?: RawAxiosRequestConfig) {
6011
+ public getUserPermissionsV1RolesCompanyIdMeGet(companyId: string | null, authorization?: string, sessionId?: string, options?: RawAxiosRequestConfig) {
5822
6012
  return RolesApiFp(this.configuration).getUserPermissionsV1RolesCompanyIdMeGet(companyId, authorization, sessionId, options).then((request) => request(this.axios, this.basePath));
5823
6013
  }
5824
6014
 
5825
6015
  /**
5826
6016
  *
5827
6017
  * @summary Get Users
5828
- * @param {string} companyId
6018
+ * @param {string | null} companyId
5829
6019
  * @param {string} [authorization]
5830
6020
  * @param {string} [sessionId]
5831
6021
  * @param {*} [options] Override http request option.
5832
6022
  * @throws {RequiredError}
5833
6023
  * @memberof RolesApi
5834
6024
  */
5835
- public getUsersV1RolesCompanyIdUsersGet(companyId: string, authorization?: string, sessionId?: string, options?: RawAxiosRequestConfig) {
6025
+ public getUsersV1RolesCompanyIdUsersGet(companyId: string | null, authorization?: string, sessionId?: string, options?: RawAxiosRequestConfig) {
5836
6026
  return RolesApiFp(this.configuration).getUsersV1RolesCompanyIdUsersGet(companyId, authorization, sessionId, options).then((request) => request(this.axios, this.basePath));
5837
6027
  }
5838
6028
 
@@ -5840,28 +6030,30 @@ export class RolesApi extends BaseAPI {
5840
6030
  *
5841
6031
  * @summary Invite
5842
6032
  * @param {InviteToCompany} inviteToCompany
6033
+ * @param {string | null} [companyId]
5843
6034
  * @param {string} [authorization]
5844
6035
  * @param {string} [sessionId]
5845
6036
  * @param {*} [options] Override http request option.
5846
6037
  * @throws {RequiredError}
5847
6038
  * @memberof RolesApi
5848
6039
  */
5849
- public inviteV1RolesInvitesPost(inviteToCompany: InviteToCompany, authorization?: string, sessionId?: string, options?: RawAxiosRequestConfig) {
5850
- return RolesApiFp(this.configuration).inviteV1RolesInvitesPost(inviteToCompany, authorization, sessionId, options).then((request) => request(this.axios, this.basePath));
6040
+ public inviteV1RolesInvitesPost(inviteToCompany: InviteToCompany, companyId?: string | null, authorization?: string, sessionId?: string, options?: RawAxiosRequestConfig) {
6041
+ return RolesApiFp(this.configuration).inviteV1RolesInvitesPost(inviteToCompany, companyId, authorization, sessionId, options).then((request) => request(this.axios, this.basePath));
5851
6042
  }
5852
6043
 
5853
6044
  /**
5854
6045
  *
5855
6046
  * @summary Remove People
5856
6047
  * @param {RemoveFromCompany} removeFromCompany
6048
+ * @param {string | null} [companyId]
5857
6049
  * @param {string} [authorization]
5858
6050
  * @param {string} [sessionId]
5859
6051
  * @param {*} [options] Override http request option.
5860
6052
  * @throws {RequiredError}
5861
6053
  * @memberof RolesApi
5862
6054
  */
5863
- public removePeopleV1RolesInvitesDelete(removeFromCompany: RemoveFromCompany, authorization?: string, sessionId?: string, options?: RawAxiosRequestConfig) {
5864
- return RolesApiFp(this.configuration).removePeopleV1RolesInvitesDelete(removeFromCompany, authorization, sessionId, options).then((request) => request(this.axios, this.basePath));
6055
+ public removePeopleV1RolesInvitesDelete(removeFromCompany: RemoveFromCompany, companyId?: string | null, authorization?: string, sessionId?: string, options?: RawAxiosRequestConfig) {
6056
+ return RolesApiFp(this.configuration).removePeopleV1RolesInvitesDelete(removeFromCompany, companyId, authorization, sessionId, options).then((request) => request(this.axios, this.basePath));
5865
6057
  }
5866
6058
  }
5867
6059
 
@@ -5955,6 +6147,45 @@ export const TasksApiAxiosParamCreator = function (configuration?: Configuration
5955
6147
  options: localVarRequestOptions,
5956
6148
  };
5957
6149
  },
6150
+ /**
6151
+ * Check the status of a task scheduler background job
6152
+ * @summary Get Task Scheduler Status
6153
+ * @param {string} taskId
6154
+ * @param {string} [authorization]
6155
+ * @param {string} [sessionId]
6156
+ * @param {*} [options] Override http request option.
6157
+ * @throws {RequiredError}
6158
+ */
6159
+ getTaskSchedulerStatusV1TasksScheduleTaskIdStatusGet: async (taskId: string, authorization?: string, sessionId?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
6160
+ // verify required parameter 'taskId' is not null or undefined
6161
+ assertParamExists('getTaskSchedulerStatusV1TasksScheduleTaskIdStatusGet', 'taskId', taskId)
6162
+ const localVarPath = `/v1/tasks/schedule/{task_id}/status`
6163
+ .replace(`{${"task_id"}}`, encodeURIComponent(String(taskId)));
6164
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
6165
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
6166
+ let baseOptions;
6167
+ if (configuration) {
6168
+ baseOptions = configuration.baseOptions;
6169
+ }
6170
+
6171
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
6172
+ const localVarHeaderParameter = {} as any;
6173
+ const localVarQueryParameter = {} as any;
6174
+
6175
+
6176
+
6177
+ if (authorization != null) {
6178
+ localVarHeaderParameter['Authorization'] = String(authorization);
6179
+ }
6180
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
6181
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
6182
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
6183
+
6184
+ return {
6185
+ url: toPathString(localVarUrlObj),
6186
+ options: localVarRequestOptions,
6187
+ };
6188
+ },
5958
6189
  /**
5959
6190
  *
5960
6191
  * @summary Get Task
@@ -6329,6 +6560,21 @@ export const TasksApiFp = function(configuration?: Configuration) {
6329
6560
  const localVarOperationServerBasePath = operationServerMap['TasksApi.deleteTaskV1TasksDelete']?.[localVarOperationServerIndex]?.url;
6330
6561
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
6331
6562
  },
6563
+ /**
6564
+ * Check the status of a task scheduler background job
6565
+ * @summary Get Task Scheduler Status
6566
+ * @param {string} taskId
6567
+ * @param {string} [authorization]
6568
+ * @param {string} [sessionId]
6569
+ * @param {*} [options] Override http request option.
6570
+ * @throws {RequiredError}
6571
+ */
6572
+ async getTaskSchedulerStatusV1TasksScheduleTaskIdStatusGet(taskId: string, authorization?: string, sessionId?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<TaskStatusResponse>> {
6573
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getTaskSchedulerStatusV1TasksScheduleTaskIdStatusGet(taskId, authorization, sessionId, options);
6574
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
6575
+ const localVarOperationServerBasePath = operationServerMap['TasksApi.getTaskSchedulerStatusV1TasksScheduleTaskIdStatusGet']?.[localVarOperationServerIndex]?.url;
6576
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
6577
+ },
6332
6578
  /**
6333
6579
  *
6334
6580
  * @summary Get Task
@@ -6399,7 +6645,7 @@ export const TasksApiFp = function(configuration?: Configuration) {
6399
6645
  * @param {*} [options] Override http request option.
6400
6646
  * @throws {RequiredError}
6401
6647
  */
6402
- async requestTaskSchedulingV1TasksSchedulePost(schedulerRequest: SchedulerRequest, authorization?: string, sessionId?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Details>> {
6648
+ async requestTaskSchedulingV1TasksSchedulePost(schedulerRequest: SchedulerRequest, authorization?: string, sessionId?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<SchedulerResponse>> {
6403
6649
  const localVarAxiosArgs = await localVarAxiosParamCreator.requestTaskSchedulingV1TasksSchedulePost(schedulerRequest, authorization, sessionId, options);
6404
6650
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
6405
6651
  const localVarOperationServerBasePath = operationServerMap['TasksApi.requestTaskSchedulingV1TasksSchedulePost']?.[localVarOperationServerIndex]?.url;
@@ -6469,6 +6715,18 @@ export const TasksApiFactory = function (configuration?: Configuration, basePath
6469
6715
  deleteTaskV1TasksDelete(deleteTaskSchema: DeleteTaskSchema, authorization?: string, sessionId?: string, options?: RawAxiosRequestConfig): AxiosPromise<Details> {
6470
6716
  return localVarFp.deleteTaskV1TasksDelete(deleteTaskSchema, authorization, sessionId, options).then((request) => request(axios, basePath));
6471
6717
  },
6718
+ /**
6719
+ * Check the status of a task scheduler background job
6720
+ * @summary Get Task Scheduler Status
6721
+ * @param {string} taskId
6722
+ * @param {string} [authorization]
6723
+ * @param {string} [sessionId]
6724
+ * @param {*} [options] Override http request option.
6725
+ * @throws {RequiredError}
6726
+ */
6727
+ getTaskSchedulerStatusV1TasksScheduleTaskIdStatusGet(taskId: string, authorization?: string, sessionId?: string, options?: RawAxiosRequestConfig): AxiosPromise<TaskStatusResponse> {
6728
+ return localVarFp.getTaskSchedulerStatusV1TasksScheduleTaskIdStatusGet(taskId, authorization, sessionId, options).then((request) => request(axios, basePath));
6729
+ },
6472
6730
  /**
6473
6731
  *
6474
6732
  * @summary Get Task
@@ -6530,7 +6788,7 @@ export const TasksApiFactory = function (configuration?: Configuration, basePath
6530
6788
  * @param {*} [options] Override http request option.
6531
6789
  * @throws {RequiredError}
6532
6790
  */
6533
- requestTaskSchedulingV1TasksSchedulePost(schedulerRequest: SchedulerRequest, authorization?: string, sessionId?: string, options?: RawAxiosRequestConfig): AxiosPromise<Details> {
6791
+ requestTaskSchedulingV1TasksSchedulePost(schedulerRequest: SchedulerRequest, authorization?: string, sessionId?: string, options?: RawAxiosRequestConfig): AxiosPromise<SchedulerResponse> {
6534
6792
  return localVarFp.requestTaskSchedulingV1TasksSchedulePost(schedulerRequest, authorization, sessionId, options).then((request) => request(axios, basePath));
6535
6793
  },
6536
6794
  /**
@@ -6595,6 +6853,20 @@ export class TasksApi extends BaseAPI {
6595
6853
  return TasksApiFp(this.configuration).deleteTaskV1TasksDelete(deleteTaskSchema, authorization, sessionId, options).then((request) => request(this.axios, this.basePath));
6596
6854
  }
6597
6855
 
6856
+ /**
6857
+ * Check the status of a task scheduler background job
6858
+ * @summary Get Task Scheduler Status
6859
+ * @param {string} taskId
6860
+ * @param {string} [authorization]
6861
+ * @param {string} [sessionId]
6862
+ * @param {*} [options] Override http request option.
6863
+ * @throws {RequiredError}
6864
+ * @memberof TasksApi
6865
+ */
6866
+ public getTaskSchedulerStatusV1TasksScheduleTaskIdStatusGet(taskId: string, authorization?: string, sessionId?: string, options?: RawAxiosRequestConfig) {
6867
+ return TasksApiFp(this.configuration).getTaskSchedulerStatusV1TasksScheduleTaskIdStatusGet(taskId, authorization, sessionId, options).then((request) => request(this.axios, this.basePath));
6868
+ }
6869
+
6598
6870
  /**
6599
6871
  *
6600
6872
  * @summary Get Task