@nestbox-ai/admin 1.0.39 → 1.0.42

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.
Files changed (86) hide show
  1. package/.openapi-generator/FILES +77 -0
  2. package/.openapi-generator/VERSION +1 -1
  3. package/README.md +144 -2
  4. package/api.ts +207 -460
  5. package/dist/api.d.ts +110 -227
  6. package/dist/api.js +194 -440
  7. package/dist/esm/api.d.ts +110 -227
  8. package/dist/esm/api.js +189 -435
  9. package/docs/AddProjectMemberData.md +22 -0
  10. package/docs/AddProjectMemberDto.md +26 -0
  11. package/docs/AddProjectMemberResponseDTO.md +20 -0
  12. package/docs/AllProjectResponse.md +30 -0
  13. package/docs/AllProjectResponseModel.md +22 -0
  14. package/docs/AuthApi.md +405 -0
  15. package/docs/BadRequestExceptionResponse.md +22 -0
  16. package/docs/BooleanResponseDTO.md +20 -0
  17. package/docs/ChunkFileRequestDTO.md +24 -0
  18. package/docs/CreateCollectionRequestDTO.md +22 -0
  19. package/docs/CreateDocumentRequestDTO.md +24 -0
  20. package/docs/CreateMachineAgentDto.md +42 -0
  21. package/docs/CreatePermissionDto.md +26 -0
  22. package/docs/CreateProjectDTO.md +22 -0
  23. package/docs/CreateProjectResponseDTO.md +20 -0
  24. package/docs/CreateProjectRoleResponseDto.md +20 -0
  25. package/docs/CreateResourceDto.md +22 -0
  26. package/docs/CreateRoleDTO.md +26 -0
  27. package/docs/CreateRoleDto.md +24 -0
  28. package/docs/CreateWebhookDto.md +22 -0
  29. package/docs/DeleteProjectDto.md +20 -0
  30. package/docs/DeleteProjectResponseDTO.md +20 -0
  31. package/docs/DeleteProjectRoleByIdResponseDto.md +20 -0
  32. package/docs/DocumentsApi.md +781 -0
  33. package/docs/EvaluationTestApi.md +299 -0
  34. package/docs/FatalErrorExceptionResponse.md +20 -0
  35. package/docs/ForbiddenExceptionResponse.md +20 -0
  36. package/docs/ForgetPasswordRequestDTO.md +20 -0
  37. package/docs/ForgetPasswordResponseDTO.md +20 -0
  38. package/docs/ForgetPasswordVerificationRequestDTO.md +20 -0
  39. package/docs/ForgetPasswordVerificationResponseDTO.md +20 -0
  40. package/docs/GetAllProjectDto.md +22 -0
  41. package/docs/GetAllProjectMemberResponse.md +22 -0
  42. package/docs/GetAllProjectMemberResponseDto.md +20 -0
  43. package/docs/GetAllProjectRoleResponseDto.md +20 -0
  44. package/docs/GetAllProjectsResponseDTO.md +20 -0
  45. package/docs/GetAllRoleDTO.md +32 -0
  46. package/docs/GetProjectByIDResponseDTO.md +20 -0
  47. package/docs/GetProjectRoleByIdResponseDto.md +20 -0
  48. package/docs/GetRoleDTO.md +26 -0
  49. package/docs/GetUserProjectRoleByRoleIdResponseDto.md +20 -0
  50. package/docs/LoginRequestDTO.md +22 -0
  51. package/docs/LoginResponseDTO.md +20 -0
  52. package/docs/MachineAgentApi.md +253 -0
  53. package/docs/MachineAgentLogsApi.md +66 -0
  54. package/docs/MachineInstancesApi.md +361 -0
  55. package/docs/MembersApi.md +204 -0
  56. package/docs/MessageResponseDTO.md +20 -0
  57. package/docs/MiscellaneousApi.md +169 -0
  58. package/docs/NotFoundExceptionResponse.md +20 -0
  59. package/docs/NotificationsApi.md +122 -0
  60. package/docs/OAuthLoginRequestDTO.md +26 -0
  61. package/docs/PermissionsDTO.md +28 -0
  62. package/docs/ProjectResponseModel.md +30 -0
  63. package/docs/ProjectsApi.md +301 -0
  64. package/docs/QueriesAndDocumentationsApi.md +125 -0
  65. package/docs/ResetPasswordRequestDTO.md +22 -0
  66. package/docs/ResourceDTO.md +24 -0
  67. package/docs/RoleDto.md +22 -0
  68. package/docs/RolesApi.md +372 -0
  69. package/docs/SignupRequestDTO.md +36 -0
  70. package/docs/SignupResponseDTO.md +20 -0
  71. package/docs/SimilaritySearchQueryDTO.md +26 -0
  72. package/docs/TeamMemberDto.md +26 -0
  73. package/docs/UnauthorizedExceptionResponse.md +20 -0
  74. package/docs/UpdateDocumentRequestDTO.md +22 -0
  75. package/docs/UpdatePermissionDto.md +28 -0
  76. package/docs/UpdateProjectByIDResponseDTO.md +20 -0
  77. package/docs/UpdateProjectByIdRequest.md +22 -0
  78. package/docs/UpdateProjectRoleResponseDto.md +20 -0
  79. package/docs/UpdateResourceDto.md +24 -0
  80. package/docs/UpdateRoleByIdDto.md +24 -0
  81. package/docs/UpdateRoleDTO.md +26 -0
  82. package/docs/UpdateTeamMemberRequestDTO.md +20 -0
  83. package/docs/UpdateTeamMemberStatusRequestDTO.md +22 -0
  84. package/docs/UserDto.md +32 -0
  85. package/docs/WebhookApi.md +243 -0
  86. package/package.json +1 -1
package/api.ts CHANGED
@@ -303,6 +303,12 @@ export interface CreateMachineAgentDto {
303
303
  * @memberof CreateMachineAgentDto
304
304
  */
305
305
  'machineManifestId': string;
306
+ /**
307
+ *
308
+ * @type {string}
309
+ * @memberof CreateMachineAgentDto
310
+ */
311
+ 'type': string;
306
312
  /**
307
313
  *
308
314
  * @type {Array<object>}
@@ -1472,6 +1478,40 @@ export interface UserDto {
1472
1478
  */
1473
1479
  export const AuthApiAxiosParamCreator = function (configuration?: Configuration) {
1474
1480
  return {
1481
+ /**
1482
+ *
1483
+ * @summary Exchange token
1484
+ * @param {string} token
1485
+ * @param {*} [options] Override http request option.
1486
+ * @throws {RequiredError}
1487
+ */
1488
+ authControllerExchangeToken: async (token: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
1489
+ // verify required parameter 'token' is not null or undefined
1490
+ assertParamExists('authControllerExchangeToken', 'token', token)
1491
+ const localVarPath = `/auth/google/{token}`
1492
+ .replace(`{${"token"}}`, encodeURIComponent(String(token)));
1493
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1494
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1495
+ let baseOptions;
1496
+ if (configuration) {
1497
+ baseOptions = configuration.baseOptions;
1498
+ }
1499
+
1500
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
1501
+ const localVarHeaderParameter = {} as any;
1502
+ const localVarQueryParameter = {} as any;
1503
+
1504
+
1505
+
1506
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
1507
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1508
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
1509
+
1510
+ return {
1511
+ url: toPathString(localVarUrlObj),
1512
+ options: localVarRequestOptions,
1513
+ };
1514
+ },
1475
1515
  /**
1476
1516
  *
1477
1517
  * @summary Forget password initiate
@@ -1698,6 +1738,19 @@ export const AuthApiAxiosParamCreator = function (configuration?: Configuration)
1698
1738
  export const AuthApiFp = function(configuration?: Configuration) {
1699
1739
  const localVarAxiosParamCreator = AuthApiAxiosParamCreator(configuration)
1700
1740
  return {
1741
+ /**
1742
+ *
1743
+ * @summary Exchange token
1744
+ * @param {string} token
1745
+ * @param {*} [options] Override http request option.
1746
+ * @throws {RequiredError}
1747
+ */
1748
+ async authControllerExchangeToken(token: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<object>> {
1749
+ const localVarAxiosArgs = await localVarAxiosParamCreator.authControllerExchangeToken(token, options);
1750
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1751
+ const localVarOperationServerBasePath = operationServerMap['AuthApi.authControllerExchangeToken']?.[localVarOperationServerIndex]?.url;
1752
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1753
+ },
1701
1754
  /**
1702
1755
  *
1703
1756
  * @summary Forget password initiate
@@ -1786,6 +1839,16 @@ export const AuthApiFp = function(configuration?: Configuration) {
1786
1839
  export const AuthApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
1787
1840
  const localVarFp = AuthApiFp(configuration)
1788
1841
  return {
1842
+ /**
1843
+ *
1844
+ * @summary Exchange token
1845
+ * @param {string} token
1846
+ * @param {*} [options] Override http request option.
1847
+ * @throws {RequiredError}
1848
+ */
1849
+ authControllerExchangeToken(token: string, options?: RawAxiosRequestConfig): AxiosPromise<object> {
1850
+ return localVarFp.authControllerExchangeToken(token, options).then((request) => request(axios, basePath));
1851
+ },
1789
1852
  /**
1790
1853
  *
1791
1854
  * @summary Forget password initiate
@@ -1856,6 +1919,18 @@ export const AuthApiFactory = function (configuration?: Configuration, basePath?
1856
1919
  * @extends {BaseAPI}
1857
1920
  */
1858
1921
  export class AuthApi extends BaseAPI {
1922
+ /**
1923
+ *
1924
+ * @summary Exchange token
1925
+ * @param {string} token
1926
+ * @param {*} [options] Override http request option.
1927
+ * @throws {RequiredError}
1928
+ * @memberof AuthApi
1929
+ */
1930
+ public authControllerExchangeToken(token: string, options?: RawAxiosRequestConfig) {
1931
+ return AuthApiFp(this.configuration).authControllerExchangeToken(token, options).then((request) => request(this.axios, this.basePath));
1932
+ }
1933
+
1859
1934
  /**
1860
1935
  *
1861
1936
  * @summary Forget password initiate
@@ -3545,16 +3620,19 @@ export const MachineAgentApiAxiosParamCreator = function (configuration?: Config
3545
3620
  * @param {string} projectId
3546
3621
  * @param {number} page
3547
3622
  * @param {number} limit
3623
+ * @param {string} type
3548
3624
  * @param {*} [options] Override http request option.
3549
3625
  * @throws {RequiredError}
3550
3626
  */
3551
- machineAgentControllerGetMachineAgentByProjectId: async (projectId: string, page: number, limit: number, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
3627
+ machineAgentControllerGetMachineAgentByProjectId: async (projectId: string, page: number, limit: number, type: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
3552
3628
  // verify required parameter 'projectId' is not null or undefined
3553
3629
  assertParamExists('machineAgentControllerGetMachineAgentByProjectId', 'projectId', projectId)
3554
3630
  // verify required parameter 'page' is not null or undefined
3555
3631
  assertParamExists('machineAgentControllerGetMachineAgentByProjectId', 'page', page)
3556
3632
  // verify required parameter 'limit' is not null or undefined
3557
3633
  assertParamExists('machineAgentControllerGetMachineAgentByProjectId', 'limit', limit)
3634
+ // verify required parameter 'type' is not null or undefined
3635
+ assertParamExists('machineAgentControllerGetMachineAgentByProjectId', 'type', type)
3558
3636
  const localVarPath = `/projects/{projectId}/agents`
3559
3637
  .replace(`{${"projectId"}}`, encodeURIComponent(String(projectId)));
3560
3638
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
@@ -3576,6 +3654,10 @@ export const MachineAgentApiAxiosParamCreator = function (configuration?: Config
3576
3654
  localVarQueryParameter['limit'] = limit;
3577
3655
  }
3578
3656
 
3657
+ if (type !== undefined) {
3658
+ localVarQueryParameter['type'] = type;
3659
+ }
3660
+
3579
3661
 
3580
3662
 
3581
3663
  setSearchParams(localVarUrlObj, localVarQueryParameter);
@@ -3670,11 +3752,12 @@ export const MachineAgentApiFp = function(configuration?: Configuration) {
3670
3752
  * @param {string} projectId
3671
3753
  * @param {number} page
3672
3754
  * @param {number} limit
3755
+ * @param {string} type
3673
3756
  * @param {*} [options] Override http request option.
3674
3757
  * @throws {RequiredError}
3675
3758
  */
3676
- async machineAgentControllerGetMachineAgentByProjectId(projectId: string, page: number, limit: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreateMachineAgentDto>> {
3677
- const localVarAxiosArgs = await localVarAxiosParamCreator.machineAgentControllerGetMachineAgentByProjectId(projectId, page, limit, options);
3759
+ async machineAgentControllerGetMachineAgentByProjectId(projectId: string, page: number, limit: number, type: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreateMachineAgentDto>> {
3760
+ const localVarAxiosArgs = await localVarAxiosParamCreator.machineAgentControllerGetMachineAgentByProjectId(projectId, page, limit, type, options);
3678
3761
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
3679
3762
  const localVarOperationServerBasePath = operationServerMap['MachineAgentApi.machineAgentControllerGetMachineAgentByProjectId']?.[localVarOperationServerIndex]?.url;
3680
3763
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
@@ -3732,11 +3815,12 @@ export const MachineAgentApiFactory = function (configuration?: Configuration, b
3732
3815
  * @param {string} projectId
3733
3816
  * @param {number} page
3734
3817
  * @param {number} limit
3818
+ * @param {string} type
3735
3819
  * @param {*} [options] Override http request option.
3736
3820
  * @throws {RequiredError}
3737
3821
  */
3738
- machineAgentControllerGetMachineAgentByProjectId(projectId: string, page: number, limit: number, options?: RawAxiosRequestConfig): AxiosPromise<CreateMachineAgentDto> {
3739
- return localVarFp.machineAgentControllerGetMachineAgentByProjectId(projectId, page, limit, options).then((request) => request(axios, basePath));
3822
+ machineAgentControllerGetMachineAgentByProjectId(projectId: string, page: number, limit: number, type: string, options?: RawAxiosRequestConfig): AxiosPromise<CreateMachineAgentDto> {
3823
+ return localVarFp.machineAgentControllerGetMachineAgentByProjectId(projectId, page, limit, type, options).then((request) => request(axios, basePath));
3740
3824
  },
3741
3825
  /**
3742
3826
  *
@@ -3792,12 +3876,13 @@ export class MachineAgentApi extends BaseAPI {
3792
3876
  * @param {string} projectId
3793
3877
  * @param {number} page
3794
3878
  * @param {number} limit
3879
+ * @param {string} type
3795
3880
  * @param {*} [options] Override http request option.
3796
3881
  * @throws {RequiredError}
3797
3882
  * @memberof MachineAgentApi
3798
3883
  */
3799
- public machineAgentControllerGetMachineAgentByProjectId(projectId: string, page: number, limit: number, options?: RawAxiosRequestConfig) {
3800
- return MachineAgentApiFp(this.configuration).machineAgentControllerGetMachineAgentByProjectId(projectId, page, limit, options).then((request) => request(this.axios, this.basePath));
3884
+ public machineAgentControllerGetMachineAgentByProjectId(projectId: string, page: number, limit: number, type: string, options?: RawAxiosRequestConfig) {
3885
+ return MachineAgentApiFp(this.configuration).machineAgentControllerGetMachineAgentByProjectId(projectId, page, limit, type, options).then((request) => request(this.axios, this.basePath));
3801
3886
  }
3802
3887
 
3803
3888
  /**
@@ -3816,6 +3901,121 @@ export class MachineAgentApi extends BaseAPI {
3816
3901
 
3817
3902
 
3818
3903
 
3904
+ /**
3905
+ * MachineAgentLogsApi - axios parameter creator
3906
+ * @export
3907
+ */
3908
+ export const MachineAgentLogsApiAxiosParamCreator = function (configuration?: Configuration) {
3909
+ return {
3910
+ /**
3911
+ *
3912
+ * @summary Fetch event logs.
3913
+ * @param {string} projectId
3914
+ * @param {string} agentId
3915
+ * @param {*} [options] Override http request option.
3916
+ * @throws {RequiredError}
3917
+ */
3918
+ logsControllerFetchEventLogs: async (projectId: string, agentId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
3919
+ // verify required parameter 'projectId' is not null or undefined
3920
+ assertParamExists('logsControllerFetchEventLogs', 'projectId', projectId)
3921
+ // verify required parameter 'agentId' is not null or undefined
3922
+ assertParamExists('logsControllerFetchEventLogs', 'agentId', agentId)
3923
+ const localVarPath = `/projects/{projectId}/fetchEventLogs/{agentId}`
3924
+ .replace(`{${"projectId"}}`, encodeURIComponent(String(projectId)))
3925
+ .replace(`{${"agentId"}}`, encodeURIComponent(String(agentId)));
3926
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
3927
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
3928
+ let baseOptions;
3929
+ if (configuration) {
3930
+ baseOptions = configuration.baseOptions;
3931
+ }
3932
+
3933
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
3934
+ const localVarHeaderParameter = {} as any;
3935
+ const localVarQueryParameter = {} as any;
3936
+
3937
+
3938
+
3939
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
3940
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3941
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
3942
+
3943
+ return {
3944
+ url: toPathString(localVarUrlObj),
3945
+ options: localVarRequestOptions,
3946
+ };
3947
+ },
3948
+ }
3949
+ };
3950
+
3951
+ /**
3952
+ * MachineAgentLogsApi - functional programming interface
3953
+ * @export
3954
+ */
3955
+ export const MachineAgentLogsApiFp = function(configuration?: Configuration) {
3956
+ const localVarAxiosParamCreator = MachineAgentLogsApiAxiosParamCreator(configuration)
3957
+ return {
3958
+ /**
3959
+ *
3960
+ * @summary Fetch event logs.
3961
+ * @param {string} projectId
3962
+ * @param {string} agentId
3963
+ * @param {*} [options] Override http request option.
3964
+ * @throws {RequiredError}
3965
+ */
3966
+ async logsControllerFetchEventLogs(projectId: string, agentId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<object>> {
3967
+ const localVarAxiosArgs = await localVarAxiosParamCreator.logsControllerFetchEventLogs(projectId, agentId, options);
3968
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
3969
+ const localVarOperationServerBasePath = operationServerMap['MachineAgentLogsApi.logsControllerFetchEventLogs']?.[localVarOperationServerIndex]?.url;
3970
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3971
+ },
3972
+ }
3973
+ };
3974
+
3975
+ /**
3976
+ * MachineAgentLogsApi - factory interface
3977
+ * @export
3978
+ */
3979
+ export const MachineAgentLogsApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
3980
+ const localVarFp = MachineAgentLogsApiFp(configuration)
3981
+ return {
3982
+ /**
3983
+ *
3984
+ * @summary Fetch event logs.
3985
+ * @param {string} projectId
3986
+ * @param {string} agentId
3987
+ * @param {*} [options] Override http request option.
3988
+ * @throws {RequiredError}
3989
+ */
3990
+ logsControllerFetchEventLogs(projectId: string, agentId: string, options?: RawAxiosRequestConfig): AxiosPromise<object> {
3991
+ return localVarFp.logsControllerFetchEventLogs(projectId, agentId, options).then((request) => request(axios, basePath));
3992
+ },
3993
+ };
3994
+ };
3995
+
3996
+ /**
3997
+ * MachineAgentLogsApi - object-oriented interface
3998
+ * @export
3999
+ * @class MachineAgentLogsApi
4000
+ * @extends {BaseAPI}
4001
+ */
4002
+ export class MachineAgentLogsApi extends BaseAPI {
4003
+ /**
4004
+ *
4005
+ * @summary Fetch event logs.
4006
+ * @param {string} projectId
4007
+ * @param {string} agentId
4008
+ * @param {*} [options] Override http request option.
4009
+ * @throws {RequiredError}
4010
+ * @memberof MachineAgentLogsApi
4011
+ */
4012
+ public logsControllerFetchEventLogs(projectId: string, agentId: string, options?: RawAxiosRequestConfig) {
4013
+ return MachineAgentLogsApiFp(this.configuration).logsControllerFetchEventLogs(projectId, agentId, options).then((request) => request(this.axios, this.basePath));
4014
+ }
4015
+ }
4016
+
4017
+
4018
+
3819
4019
  /**
3820
4020
  * MachineInstancesApi - axios parameter creator
3821
4021
  * @export
@@ -4325,373 +4525,6 @@ export class MachineInstancesApi extends BaseAPI {
4325
4525
 
4326
4526
 
4327
4527
 
4328
- /**
4329
- * MachineModelsApi - axios parameter creator
4330
- * @export
4331
- */
4332
- export const MachineModelsApiAxiosParamCreator = function (configuration?: Configuration) {
4333
- return {
4334
- /**
4335
- *
4336
- * @summary Create New Machine Model
4337
- * @param {string} projectId
4338
- * @param {object} body
4339
- * @param {*} [options] Override http request option.
4340
- * @throws {RequiredError}
4341
- */
4342
- machineModelControllerCreateMachineModel: async (projectId: string, body: object, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
4343
- // verify required parameter 'projectId' is not null or undefined
4344
- assertParamExists('machineModelControllerCreateMachineModel', 'projectId', projectId)
4345
- // verify required parameter 'body' is not null or undefined
4346
- assertParamExists('machineModelControllerCreateMachineModel', 'body', body)
4347
- const localVarPath = `/projects/{projectId}/models`
4348
- .replace(`{${"projectId"}}`, encodeURIComponent(String(projectId)));
4349
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
4350
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
4351
- let baseOptions;
4352
- if (configuration) {
4353
- baseOptions = configuration.baseOptions;
4354
- }
4355
-
4356
- const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
4357
- const localVarHeaderParameter = {} as any;
4358
- const localVarQueryParameter = {} as any;
4359
-
4360
-
4361
-
4362
- localVarHeaderParameter['Content-Type'] = 'application/json';
4363
-
4364
- setSearchParams(localVarUrlObj, localVarQueryParameter);
4365
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
4366
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
4367
- localVarRequestOptions.data = serializeDataIfNeeded(body, localVarRequestOptions, configuration)
4368
-
4369
- return {
4370
- url: toPathString(localVarUrlObj),
4371
- options: localVarRequestOptions,
4372
- };
4373
- },
4374
- /**
4375
- *
4376
- * @summary Create New Machine Model
4377
- * @param {string} projectId
4378
- * @param {string} modelId
4379
- * @param {Array<string>} requestBody
4380
- * @param {*} [options] Override http request option.
4381
- * @throws {RequiredError}
4382
- */
4383
- machineModelControllerDeleteMachineModels: async (projectId: string, modelId: string, requestBody: Array<string>, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
4384
- // verify required parameter 'projectId' is not null or undefined
4385
- assertParamExists('machineModelControllerDeleteMachineModels', 'projectId', projectId)
4386
- // verify required parameter 'modelId' is not null or undefined
4387
- assertParamExists('machineModelControllerDeleteMachineModels', 'modelId', modelId)
4388
- // verify required parameter 'requestBody' is not null or undefined
4389
- assertParamExists('machineModelControllerDeleteMachineModels', 'requestBody', requestBody)
4390
- const localVarPath = `/projects/{projectId}/models/{modelId}`
4391
- .replace(`{${"projectId"}}`, encodeURIComponent(String(projectId)))
4392
- .replace(`{${"modelId"}}`, encodeURIComponent(String(modelId)));
4393
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
4394
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
4395
- let baseOptions;
4396
- if (configuration) {
4397
- baseOptions = configuration.baseOptions;
4398
- }
4399
-
4400
- const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
4401
- const localVarHeaderParameter = {} as any;
4402
- const localVarQueryParameter = {} as any;
4403
-
4404
-
4405
-
4406
- localVarHeaderParameter['Content-Type'] = 'application/json';
4407
-
4408
- setSearchParams(localVarUrlObj, localVarQueryParameter);
4409
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
4410
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
4411
- localVarRequestOptions.data = serializeDataIfNeeded(requestBody, localVarRequestOptions, configuration)
4412
-
4413
- return {
4414
- url: toPathString(localVarUrlObj),
4415
- options: localVarRequestOptions,
4416
- };
4417
- },
4418
- /**
4419
- *
4420
- * @summary Get all machine models with count
4421
- * @param {string} projectId
4422
- * @param {number} page
4423
- * @param {number} limit
4424
- * @param {*} [options] Override http request option.
4425
- * @throws {RequiredError}
4426
- */
4427
- machineModelControllerGetMachineInstanceByProjectId: async (projectId: string, page: number, limit: number, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
4428
- // verify required parameter 'projectId' is not null or undefined
4429
- assertParamExists('machineModelControllerGetMachineInstanceByProjectId', 'projectId', projectId)
4430
- // verify required parameter 'page' is not null or undefined
4431
- assertParamExists('machineModelControllerGetMachineInstanceByProjectId', 'page', page)
4432
- // verify required parameter 'limit' is not null or undefined
4433
- assertParamExists('machineModelControllerGetMachineInstanceByProjectId', 'limit', limit)
4434
- const localVarPath = `/projects/{projectId}/models`
4435
- .replace(`{${"projectId"}}`, encodeURIComponent(String(projectId)));
4436
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
4437
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
4438
- let baseOptions;
4439
- if (configuration) {
4440
- baseOptions = configuration.baseOptions;
4441
- }
4442
-
4443
- const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
4444
- const localVarHeaderParameter = {} as any;
4445
- const localVarQueryParameter = {} as any;
4446
-
4447
- if (page !== undefined) {
4448
- localVarQueryParameter['page'] = page;
4449
- }
4450
-
4451
- if (limit !== undefined) {
4452
- localVarQueryParameter['limit'] = limit;
4453
- }
4454
-
4455
-
4456
-
4457
- setSearchParams(localVarUrlObj, localVarQueryParameter);
4458
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
4459
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
4460
-
4461
- return {
4462
- url: toPathString(localVarUrlObj),
4463
- options: localVarRequestOptions,
4464
- };
4465
- },
4466
- /**
4467
- *
4468
- * @summary Update machine model by id
4469
- * @param {string} projectId
4470
- * @param {string} modelId
4471
- * @param {*} [options] Override http request option.
4472
- * @throws {RequiredError}
4473
- */
4474
- machineModelControllerUpdateMachineModel: async (projectId: string, modelId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
4475
- // verify required parameter 'projectId' is not null or undefined
4476
- assertParamExists('machineModelControllerUpdateMachineModel', 'projectId', projectId)
4477
- // verify required parameter 'modelId' is not null or undefined
4478
- assertParamExists('machineModelControllerUpdateMachineModel', 'modelId', modelId)
4479
- const localVarPath = `/projects/{projectId}/models/{modelId}`
4480
- .replace(`{${"projectId"}}`, encodeURIComponent(String(projectId)))
4481
- .replace(`{${"modelId"}}`, encodeURIComponent(String(modelId)));
4482
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
4483
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
4484
- let baseOptions;
4485
- if (configuration) {
4486
- baseOptions = configuration.baseOptions;
4487
- }
4488
-
4489
- const localVarRequestOptions = { method: 'PATCH', ...baseOptions, ...options};
4490
- const localVarHeaderParameter = {} as any;
4491
- const localVarQueryParameter = {} as any;
4492
-
4493
-
4494
-
4495
- setSearchParams(localVarUrlObj, localVarQueryParameter);
4496
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
4497
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
4498
-
4499
- return {
4500
- url: toPathString(localVarUrlObj),
4501
- options: localVarRequestOptions,
4502
- };
4503
- },
4504
- }
4505
- };
4506
-
4507
- /**
4508
- * MachineModelsApi - functional programming interface
4509
- * @export
4510
- */
4511
- export const MachineModelsApiFp = function(configuration?: Configuration) {
4512
- const localVarAxiosParamCreator = MachineModelsApiAxiosParamCreator(configuration)
4513
- return {
4514
- /**
4515
- *
4516
- * @summary Create New Machine Model
4517
- * @param {string} projectId
4518
- * @param {object} body
4519
- * @param {*} [options] Override http request option.
4520
- * @throws {RequiredError}
4521
- */
4522
- async machineModelControllerCreateMachineModel(projectId: string, body: object, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<object>> {
4523
- const localVarAxiosArgs = await localVarAxiosParamCreator.machineModelControllerCreateMachineModel(projectId, body, options);
4524
- const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
4525
- const localVarOperationServerBasePath = operationServerMap['MachineModelsApi.machineModelControllerCreateMachineModel']?.[localVarOperationServerIndex]?.url;
4526
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
4527
- },
4528
- /**
4529
- *
4530
- * @summary Create New Machine Model
4531
- * @param {string} projectId
4532
- * @param {string} modelId
4533
- * @param {Array<string>} requestBody
4534
- * @param {*} [options] Override http request option.
4535
- * @throws {RequiredError}
4536
- */
4537
- async machineModelControllerDeleteMachineModels(projectId: string, modelId: string, requestBody: Array<string>, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<object>> {
4538
- const localVarAxiosArgs = await localVarAxiosParamCreator.machineModelControllerDeleteMachineModels(projectId, modelId, requestBody, options);
4539
- const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
4540
- const localVarOperationServerBasePath = operationServerMap['MachineModelsApi.machineModelControllerDeleteMachineModels']?.[localVarOperationServerIndex]?.url;
4541
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
4542
- },
4543
- /**
4544
- *
4545
- * @summary Get all machine models with count
4546
- * @param {string} projectId
4547
- * @param {number} page
4548
- * @param {number} limit
4549
- * @param {*} [options] Override http request option.
4550
- * @throws {RequiredError}
4551
- */
4552
- async machineModelControllerGetMachineInstanceByProjectId(projectId: string, page: number, limit: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<object>> {
4553
- const localVarAxiosArgs = await localVarAxiosParamCreator.machineModelControllerGetMachineInstanceByProjectId(projectId, page, limit, options);
4554
- const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
4555
- const localVarOperationServerBasePath = operationServerMap['MachineModelsApi.machineModelControllerGetMachineInstanceByProjectId']?.[localVarOperationServerIndex]?.url;
4556
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
4557
- },
4558
- /**
4559
- *
4560
- * @summary Update machine model by id
4561
- * @param {string} projectId
4562
- * @param {string} modelId
4563
- * @param {*} [options] Override http request option.
4564
- * @throws {RequiredError}
4565
- */
4566
- async machineModelControllerUpdateMachineModel(projectId: string, modelId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<object>> {
4567
- const localVarAxiosArgs = await localVarAxiosParamCreator.machineModelControllerUpdateMachineModel(projectId, modelId, options);
4568
- const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
4569
- const localVarOperationServerBasePath = operationServerMap['MachineModelsApi.machineModelControllerUpdateMachineModel']?.[localVarOperationServerIndex]?.url;
4570
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
4571
- },
4572
- }
4573
- };
4574
-
4575
- /**
4576
- * MachineModelsApi - factory interface
4577
- * @export
4578
- */
4579
- export const MachineModelsApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
4580
- const localVarFp = MachineModelsApiFp(configuration)
4581
- return {
4582
- /**
4583
- *
4584
- * @summary Create New Machine Model
4585
- * @param {string} projectId
4586
- * @param {object} body
4587
- * @param {*} [options] Override http request option.
4588
- * @throws {RequiredError}
4589
- */
4590
- machineModelControllerCreateMachineModel(projectId: string, body: object, options?: RawAxiosRequestConfig): AxiosPromise<object> {
4591
- return localVarFp.machineModelControllerCreateMachineModel(projectId, body, options).then((request) => request(axios, basePath));
4592
- },
4593
- /**
4594
- *
4595
- * @summary Create New Machine Model
4596
- * @param {string} projectId
4597
- * @param {string} modelId
4598
- * @param {Array<string>} requestBody
4599
- * @param {*} [options] Override http request option.
4600
- * @throws {RequiredError}
4601
- */
4602
- machineModelControllerDeleteMachineModels(projectId: string, modelId: string, requestBody: Array<string>, options?: RawAxiosRequestConfig): AxiosPromise<object> {
4603
- return localVarFp.machineModelControllerDeleteMachineModels(projectId, modelId, requestBody, options).then((request) => request(axios, basePath));
4604
- },
4605
- /**
4606
- *
4607
- * @summary Get all machine models with count
4608
- * @param {string} projectId
4609
- * @param {number} page
4610
- * @param {number} limit
4611
- * @param {*} [options] Override http request option.
4612
- * @throws {RequiredError}
4613
- */
4614
- machineModelControllerGetMachineInstanceByProjectId(projectId: string, page: number, limit: number, options?: RawAxiosRequestConfig): AxiosPromise<object> {
4615
- return localVarFp.machineModelControllerGetMachineInstanceByProjectId(projectId, page, limit, options).then((request) => request(axios, basePath));
4616
- },
4617
- /**
4618
- *
4619
- * @summary Update machine model by id
4620
- * @param {string} projectId
4621
- * @param {string} modelId
4622
- * @param {*} [options] Override http request option.
4623
- * @throws {RequiredError}
4624
- */
4625
- machineModelControllerUpdateMachineModel(projectId: string, modelId: string, options?: RawAxiosRequestConfig): AxiosPromise<object> {
4626
- return localVarFp.machineModelControllerUpdateMachineModel(projectId, modelId, options).then((request) => request(axios, basePath));
4627
- },
4628
- };
4629
- };
4630
-
4631
- /**
4632
- * MachineModelsApi - object-oriented interface
4633
- * @export
4634
- * @class MachineModelsApi
4635
- * @extends {BaseAPI}
4636
- */
4637
- export class MachineModelsApi extends BaseAPI {
4638
- /**
4639
- *
4640
- * @summary Create New Machine Model
4641
- * @param {string} projectId
4642
- * @param {object} body
4643
- * @param {*} [options] Override http request option.
4644
- * @throws {RequiredError}
4645
- * @memberof MachineModelsApi
4646
- */
4647
- public machineModelControllerCreateMachineModel(projectId: string, body: object, options?: RawAxiosRequestConfig) {
4648
- return MachineModelsApiFp(this.configuration).machineModelControllerCreateMachineModel(projectId, body, options).then((request) => request(this.axios, this.basePath));
4649
- }
4650
-
4651
- /**
4652
- *
4653
- * @summary Create New Machine Model
4654
- * @param {string} projectId
4655
- * @param {string} modelId
4656
- * @param {Array<string>} requestBody
4657
- * @param {*} [options] Override http request option.
4658
- * @throws {RequiredError}
4659
- * @memberof MachineModelsApi
4660
- */
4661
- public machineModelControllerDeleteMachineModels(projectId: string, modelId: string, requestBody: Array<string>, options?: RawAxiosRequestConfig) {
4662
- return MachineModelsApiFp(this.configuration).machineModelControllerDeleteMachineModels(projectId, modelId, requestBody, options).then((request) => request(this.axios, this.basePath));
4663
- }
4664
-
4665
- /**
4666
- *
4667
- * @summary Get all machine models with count
4668
- * @param {string} projectId
4669
- * @param {number} page
4670
- * @param {number} limit
4671
- * @param {*} [options] Override http request option.
4672
- * @throws {RequiredError}
4673
- * @memberof MachineModelsApi
4674
- */
4675
- public machineModelControllerGetMachineInstanceByProjectId(projectId: string, page: number, limit: number, options?: RawAxiosRequestConfig) {
4676
- return MachineModelsApiFp(this.configuration).machineModelControllerGetMachineInstanceByProjectId(projectId, page, limit, options).then((request) => request(this.axios, this.basePath));
4677
- }
4678
-
4679
- /**
4680
- *
4681
- * @summary Update machine model by id
4682
- * @param {string} projectId
4683
- * @param {string} modelId
4684
- * @param {*} [options] Override http request option.
4685
- * @throws {RequiredError}
4686
- * @memberof MachineModelsApi
4687
- */
4688
- public machineModelControllerUpdateMachineModel(projectId: string, modelId: string, options?: RawAxiosRequestConfig) {
4689
- return MachineModelsApiFp(this.configuration).machineModelControllerUpdateMachineModel(projectId, modelId, options).then((request) => request(this.axios, this.basePath));
4690
- }
4691
- }
4692
-
4693
-
4694
-
4695
4528
  /**
4696
4529
  * MembersApi - axios parameter creator
4697
4530
  * @export
@@ -5913,51 +5746,6 @@ export const QueriesAndDocumentationsApiAxiosParamCreator = function (configurat
5913
5746
 
5914
5747
 
5915
5748
 
5916
- setSearchParams(localVarUrlObj, localVarQueryParameter);
5917
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
5918
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
5919
-
5920
- return {
5921
- url: toPathString(localVarUrlObj),
5922
- options: localVarRequestOptions,
5923
- };
5924
- },
5925
- /**
5926
- *
5927
- * @summary Fetch Swagger JSON
5928
- * @param {string} projectId
5929
- * @param {string} modelId
5930
- * @param {string} queryId
5931
- * @param {*} [options] Override http request option.
5932
- * @throws {RequiredError}
5933
- */
5934
- queriesAndDocControllerGetEventLogsByQueryId: async (projectId: string, modelId: string, queryId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
5935
- // verify required parameter 'projectId' is not null or undefined
5936
- assertParamExists('queriesAndDocControllerGetEventLogsByQueryId', 'projectId', projectId)
5937
- // verify required parameter 'modelId' is not null or undefined
5938
- assertParamExists('queriesAndDocControllerGetEventLogsByQueryId', 'modelId', modelId)
5939
- // verify required parameter 'queryId' is not null or undefined
5940
- assertParamExists('queriesAndDocControllerGetEventLogsByQueryId', 'queryId', queryId)
5941
- const localVarPath = `/projects/{projectId}/queryData/{modelId}`
5942
- .replace(`{${"projectId"}}`, encodeURIComponent(String(projectId)))
5943
- .replace(`{${"modelId"}}`, encodeURIComponent(String(modelId)));
5944
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
5945
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
5946
- let baseOptions;
5947
- if (configuration) {
5948
- baseOptions = configuration.baseOptions;
5949
- }
5950
-
5951
- const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
5952
- const localVarHeaderParameter = {} as any;
5953
- const localVarQueryParameter = {} as any;
5954
-
5955
- if (queryId !== undefined) {
5956
- localVarQueryParameter['queryId'] = queryId;
5957
- }
5958
-
5959
-
5960
-
5961
5749
  setSearchParams(localVarUrlObj, localVarQueryParameter);
5962
5750
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
5963
5751
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
@@ -6026,21 +5814,6 @@ export const QueriesAndDocumentationsApiFp = function(configuration?: Configurat
6026
5814
  const localVarOperationServerBasePath = operationServerMap['QueriesAndDocumentationsApi.queriesAndDocControllerFetchSwaggerJSON']?.[localVarOperationServerIndex]?.url;
6027
5815
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
6028
5816
  },
6029
- /**
6030
- *
6031
- * @summary Fetch Swagger JSON
6032
- * @param {string} projectId
6033
- * @param {string} modelId
6034
- * @param {string} queryId
6035
- * @param {*} [options] Override http request option.
6036
- * @throws {RequiredError}
6037
- */
6038
- async queriesAndDocControllerGetEventLogsByQueryId(projectId: string, modelId: string, queryId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<object>> {
6039
- const localVarAxiosArgs = await localVarAxiosParamCreator.queriesAndDocControllerGetEventLogsByQueryId(projectId, modelId, queryId, options);
6040
- const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
6041
- const localVarOperationServerBasePath = operationServerMap['QueriesAndDocumentationsApi.queriesAndDocControllerGetEventLogsByQueryId']?.[localVarOperationServerIndex]?.url;
6042
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
6043
- },
6044
5817
  /**
6045
5818
  *
6046
5819
  * @summary Run Query
@@ -6076,18 +5849,6 @@ export const QueriesAndDocumentationsApiFactory = function (configuration?: Conf
6076
5849
  queriesAndDocControllerFetchSwaggerJSON(modelId: string, projectId: string, fieldName: string, options?: RawAxiosRequestConfig): AxiosPromise<object> {
6077
5850
  return localVarFp.queriesAndDocControllerFetchSwaggerJSON(modelId, projectId, fieldName, options).then((request) => request(axios, basePath));
6078
5851
  },
6079
- /**
6080
- *
6081
- * @summary Fetch Swagger JSON
6082
- * @param {string} projectId
6083
- * @param {string} modelId
6084
- * @param {string} queryId
6085
- * @param {*} [options] Override http request option.
6086
- * @throws {RequiredError}
6087
- */
6088
- queriesAndDocControllerGetEventLogsByQueryId(projectId: string, modelId: string, queryId: string, options?: RawAxiosRequestConfig): AxiosPromise<object> {
6089
- return localVarFp.queriesAndDocControllerGetEventLogsByQueryId(projectId, modelId, queryId, options).then((request) => request(axios, basePath));
6090
- },
6091
5852
  /**
6092
5853
  *
6093
5854
  * @summary Run Query
@@ -6122,20 +5883,6 @@ export class QueriesAndDocumentationsApi extends BaseAPI {
6122
5883
  return QueriesAndDocumentationsApiFp(this.configuration).queriesAndDocControllerFetchSwaggerJSON(modelId, projectId, fieldName, options).then((request) => request(this.axios, this.basePath));
6123
5884
  }
6124
5885
 
6125
- /**
6126
- *
6127
- * @summary Fetch Swagger JSON
6128
- * @param {string} projectId
6129
- * @param {string} modelId
6130
- * @param {string} queryId
6131
- * @param {*} [options] Override http request option.
6132
- * @throws {RequiredError}
6133
- * @memberof QueriesAndDocumentationsApi
6134
- */
6135
- public queriesAndDocControllerGetEventLogsByQueryId(projectId: string, modelId: string, queryId: string, options?: RawAxiosRequestConfig) {
6136
- return QueriesAndDocumentationsApiFp(this.configuration).queriesAndDocControllerGetEventLogsByQueryId(projectId, modelId, queryId, options).then((request) => request(this.axios, this.basePath));
6137
- }
6138
-
6139
5886
  /**
6140
5887
  *
6141
5888
  * @summary Run Query