edge-impulse-linux 1.4.8 → 1.5.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/build/cli/init-cli-app.js +4 -1
- package/build/cli/init-cli-app.js.map +1 -1
- package/build/cli/linux/runner.js +145 -2
- package/build/cli/linux/runner.js.map +1 -1
- package/build/cli/linux/webserver/escape-html-template-tag/escape.d.ts +12 -0
- package/build/cli/linux/webserver/escape-html-template-tag/escape.js +59 -0
- package/build/cli/linux/webserver/escape-html-template-tag/escape.js.map +1 -0
- package/build/cli/linux/webserver/escape-html-template-tag/index.d.ts +7 -0
- package/build/cli/linux/webserver/escape-html-template-tag/index.js +24 -0
- package/build/cli/linux/webserver/escape-html-template-tag/index.js.map +1 -0
- package/build/cli/linux/webserver/middleware/asyncMiddleware.d.ts +2 -0
- package/build/cli/linux/webserver/middleware/asyncMiddleware.js +10 -0
- package/build/cli/linux/webserver/middleware/asyncMiddleware.js.map +1 -0
- package/build/cli/linux/webserver/public/inference-server.d.ts +0 -0
- package/build/cli/linux/webserver/public/inference-server.js +96 -0
- package/build/cli/linux/webserver/public/inference-server.js.map +1 -0
- package/build/cli/linux/webserver/views/escape-html-template-tag/escape.d.ts +12 -0
- package/build/cli/linux/webserver/views/escape-html-template-tag/escape.js +59 -0
- package/build/cli/linux/webserver/views/escape-html-template-tag/escape.js.map +1 -0
- package/build/cli/linux/webserver/views/escape-html-template-tag/index.d.ts +7 -0
- package/build/cli/linux/webserver/views/escape-html-template-tag/index.js +24 -0
- package/build/cli/linux/webserver/views/escape-html-template-tag/index.js.map +1 -0
- package/build/cli/linux/webserver/views/inference-server-view.d.ts +10 -0
- package/build/cli/linux/webserver/views/inference-server-view.js +138 -0
- package/build/cli/linux/webserver/views/inference-server-view.js.map +1 -0
- package/build/cli/make-image.d.ts +2 -7
- package/build/cli/make-image.js +15 -0
- package/build/cli/make-image.js.map +1 -1
- package/build/library/classifier/image-classifier.d.ts +6 -2
- package/build/library/classifier/image-classifier.js +3 -3
- package/build/library/classifier/image-classifier.js.map +1 -1
- package/build/sdk/studio/sdk/api/adminApi.d.ts +129 -5
- package/build/sdk/studio/sdk/api/adminApi.js +956 -236
- package/build/sdk/studio/sdk/api/adminApi.js.map +1 -1
- package/build/sdk/studio/sdk/api/apis.d.ts +1 -21
- package/build/sdk/studio/sdk/api/apis.js +1 -21
- package/build/sdk/studio/sdk/api/apis.js.map +1 -1
- package/build/sdk/studio/sdk/api/jobsApi.d.ts +2 -3
- package/build/sdk/studio/sdk/api/jobsApi.js +2 -8
- package/build/sdk/studio/sdk/api/jobsApi.js.map +1 -1
- package/build/sdk/studio/sdk/api/optimizationApi.d.ts +36 -7
- package/build/sdk/studio/sdk/api/optimizationApi.js +237 -8
- package/build/sdk/studio/sdk/api/optimizationApi.js.map +1 -1
- package/build/sdk/studio/sdk/api/organizationDataApi.d.ts +2 -2
- package/build/sdk/studio/sdk/api/organizationDataApi.js +2 -2
- package/build/sdk/studio/sdk/api/organizationRequiresAdminApi.d.ts +3 -588
- package/build/sdk/studio/sdk/api/organizationRequiresAdminApi.js +11 -3567
- package/build/sdk/studio/sdk/api/organizationRequiresAdminApi.js.map +1 -1
- package/build/sdk/studio/sdk/api/organizationRequiresWhitelabelAdminApi.d.ts +3 -419
- package/build/sdk/studio/sdk/api/organizationRequiresWhitelabelAdminApi.js +7 -2453
- package/build/sdk/studio/sdk/api/organizationRequiresWhitelabelAdminApi.js.map +1 -1
- package/build/sdk/studio/sdk/api/organizationsApi.d.ts +177 -6
- package/build/sdk/studio/sdk/api/organizationsApi.js +1197 -170
- package/build/sdk/studio/sdk/api/organizationsApi.js.map +1 -1
- package/build/sdk/studio/sdk/api/projectsApi.d.ts +26 -3
- package/build/sdk/studio/sdk/api/projectsApi.js +158 -6
- package/build/sdk/studio/sdk/api/projectsApi.js.map +1 -1
- package/build/sdk/studio/sdk/api/rawDataApi.d.ts +37 -3
- package/build/sdk/studio/sdk/api/rawDataApi.js +234 -3
- package/build/sdk/studio/sdk/api/rawDataApi.js.map +1 -1
- package/build/sdk/studio/sdk/api/uploadPortalApi.d.ts +1 -1
- package/build/sdk/studio/sdk/api/uploadPortalApi.js +1 -1
- package/build/sdk/studio/sdk/model/addApiKeyRequest.d.ts +0 -7
- package/build/sdk/studio/sdk/model/addApiKeyRequest.js +1 -12
- package/build/sdk/studio/sdk/model/addApiKeyRequest.js.map +1 -1
- package/build/sdk/studio/sdk/model/addOrganizationApiKeyRequest.js.map +1 -1
- package/build/sdk/studio/sdk/model/addOrganizationApiKeyRequestAllOf.d.ts +27 -0
- package/build/sdk/studio/sdk/model/addOrganizationApiKeyRequestAllOf.js +33 -0
- package/build/sdk/studio/sdk/model/addOrganizationApiKeyRequestAllOf.js.map +1 -0
- package/build/sdk/studio/sdk/model/addOrganizationTransferLearningBlockRequest.d.ts +4 -0
- package/build/sdk/studio/sdk/model/addOrganizationTransferLearningBlockRequest.js +5 -0
- package/build/sdk/studio/sdk/model/addOrganizationTransferLearningBlockRequest.js.map +1 -1
- package/build/sdk/studio/sdk/model/addOrganizationTransformationBlockRequest.d.ts +4 -0
- package/build/sdk/studio/sdk/model/addOrganizationTransformationBlockRequest.js +5 -0
- package/build/sdk/studio/sdk/model/addOrganizationTransformationBlockRequest.js.map +1 -1
- package/build/sdk/studio/sdk/model/addProjectApiKeyRequest.d.ts +39 -0
- package/build/sdk/studio/sdk/model/addProjectApiKeyRequest.js +48 -0
- package/build/sdk/studio/sdk/model/addProjectApiKeyRequest.js.map +1 -0
- package/build/sdk/studio/sdk/model/addProjectApiKeyRequestAllOf.d.ts +31 -0
- package/build/sdk/studio/sdk/model/addProjectApiKeyRequestAllOf.js +38 -0
- package/build/sdk/studio/sdk/model/addProjectApiKeyRequestAllOf.js.map +1 -0
- package/build/sdk/studio/sdk/model/adminAddOrganizationApiKeyRequest.d.ts +39 -0
- package/build/sdk/studio/sdk/model/adminAddOrganizationApiKeyRequest.js +48 -0
- package/build/sdk/studio/sdk/model/adminAddOrganizationApiKeyRequest.js.map +1 -0
- package/build/sdk/studio/sdk/model/{getUserResponseAllOfOrganizations.d.ts → adminAddProjectApiKeyRequest.d.ts} +8 -8
- package/build/sdk/studio/sdk/model/adminAddProjectApiKeyRequest.js +42 -0
- package/build/sdk/studio/sdk/model/adminAddProjectApiKeyRequest.js.map +1 -0
- package/build/sdk/studio/sdk/model/adminAddProjectApiKeyRequestAllOf.d.ts +28 -0
- package/build/sdk/studio/sdk/model/adminAddProjectApiKeyRequestAllOf.js +32 -0
- package/build/sdk/studio/sdk/model/adminAddProjectApiKeyRequestAllOf.js.map +1 -0
- package/build/sdk/studio/sdk/model/adminApiOrganization.d.ts +4 -0
- package/build/sdk/studio/sdk/model/adminApiOrganization.js +5 -0
- package/build/sdk/studio/sdk/model/adminApiOrganization.js.map +1 -1
- package/build/sdk/studio/sdk/model/{whitelabelAdminCreateProjectRequest.d.ts → adminCreateProjectRequest.d.ts} +5 -3
- package/build/sdk/studio/sdk/model/{whitelabelAdminCreateProjectRequest.js → adminCreateProjectRequest.js} +14 -9
- package/build/sdk/studio/sdk/model/adminCreateProjectRequest.js.map +1 -0
- package/build/sdk/studio/sdk/model/{getAutoSegmenterResponse.d.ts → adminGetOrganizationComputeTimeUsageResponse.d.ts} +13 -7
- package/build/sdk/studio/sdk/model/adminGetOrganizationComputeTimeUsageResponse.js +52 -0
- package/build/sdk/studio/sdk/model/adminGetOrganizationComputeTimeUsageResponse.js.map +1 -0
- package/build/sdk/studio/sdk/model/adminGetOrganizationUsageReportResponse.d.ts +34 -0
- package/build/sdk/studio/sdk/model/{saveAutoSegmenterClustersResponse.js → adminGetOrganizationUsageReportResponse.js} +12 -12
- package/build/sdk/studio/sdk/model/adminGetOrganizationUsageReportResponse.js.map +1 -0
- package/build/sdk/studio/sdk/model/adminGetOrganizationUsageReportResponseAllOf.d.ts +26 -0
- package/build/sdk/studio/sdk/model/adminGetOrganizationUsageReportResponseAllOf.js +32 -0
- package/build/sdk/studio/sdk/model/adminGetOrganizationUsageReportResponseAllOf.js.map +1 -0
- package/build/sdk/studio/sdk/model/{adminGetFeatureFlagsResponse.d.ts → adminGetOrganizationUsageReportsResponse.d.ts} +4 -3
- package/build/sdk/studio/sdk/model/adminGetOrganizationUsageReportsResponse.js +47 -0
- package/build/sdk/studio/sdk/model/adminGetOrganizationUsageReportsResponse.js.map +1 -0
- package/build/sdk/studio/sdk/model/{adminGetFeatureFlagsResponseAllOf.d.ts → adminGetOrganizationUsageReportsResponseAllOf.d.ts} +4 -3
- package/build/sdk/studio/sdk/model/adminGetOrganizationUsageReportsResponseAllOf.js +37 -0
- package/build/sdk/studio/sdk/model/adminGetOrganizationUsageReportsResponseAllOf.js.map +1 -0
- package/build/sdk/studio/sdk/model/adminOrganizationInfoResponse.d.ts +8 -20
- package/build/sdk/studio/sdk/model/adminOrganizationInfoResponse.js +11 -41
- package/build/sdk/studio/sdk/model/adminOrganizationInfoResponse.js.map +1 -1
- package/build/sdk/studio/sdk/model/adminOrganizationInfoResponseAllOf.d.ts +0 -8
- package/build/sdk/studio/sdk/model/adminOrganizationInfoResponseAllOf.js +0 -10
- package/build/sdk/studio/sdk/model/adminOrganizationInfoResponseAllOf.js.map +1 -1
- package/build/sdk/studio/sdk/model/adminUpdateUserRequest.d.ts +4 -0
- package/build/sdk/studio/sdk/model/adminUpdateUserRequest.js +5 -0
- package/build/sdk/studio/sdk/model/adminUpdateUserRequest.js.map +1 -1
- package/build/sdk/studio/sdk/model/anomalyResult.d.ts +5 -0
- package/build/sdk/studio/sdk/model/anomalyResult.js +5 -0
- package/build/sdk/studio/sdk/model/anomalyResult.js.map +1 -1
- package/build/sdk/studio/sdk/model/applicationBudget.d.ts +32 -0
- package/build/sdk/studio/sdk/model/applicationBudget.js +45 -0
- package/build/sdk/studio/sdk/model/applicationBudget.js.map +1 -0
- package/build/sdk/studio/sdk/model/classifySampleResponseClassification.d.ts +5 -0
- package/build/sdk/studio/sdk/model/classifySampleResponseClassification.js +5 -0
- package/build/sdk/studio/sdk/model/classifySampleResponseClassification.js.map +1 -1
- package/build/sdk/studio/sdk/model/cosineSimilarityData.d.ts +36 -0
- package/build/sdk/studio/sdk/model/cosineSimilarityData.js +40 -0
- package/build/sdk/studio/sdk/model/cosineSimilarityData.js.map +1 -0
- package/build/sdk/studio/sdk/model/cosineSimilarityIssue.d.ts +42 -0
- package/build/sdk/studio/sdk/model/cosineSimilarityIssue.js +50 -0
- package/build/sdk/studio/sdk/model/cosineSimilarityIssue.js.map +1 -0
- package/build/sdk/studio/sdk/model/cosineSimilarityIssueIssues.d.ts +39 -0
- package/build/sdk/studio/sdk/model/cosineSimilarityIssueIssues.js +47 -0
- package/build/sdk/studio/sdk/model/cosineSimilarityIssueIssues.js.map +1 -0
- package/build/sdk/studio/sdk/model/{getJWTTokenResponseAllOf.d.ts → cosineSimilarityIssueWindows.d.ts} +9 -5
- package/build/sdk/studio/sdk/model/cosineSimilarityIssueWindows.js +42 -0
- package/build/sdk/studio/sdk/model/cosineSimilarityIssueWindows.js.map +1 -0
- package/build/sdk/studio/sdk/model/createEnterpriseTrialUserRequest.d.ts +4 -0
- package/build/sdk/studio/sdk/model/createEnterpriseTrialUserRequest.js +5 -0
- package/build/sdk/studio/sdk/model/createEnterpriseTrialUserRequest.js.map +1 -1
- package/build/sdk/studio/sdk/model/createEnterpriseTrialUserRequestAllOf.d.ts +4 -0
- package/build/sdk/studio/sdk/model/createEnterpriseTrialUserRequestAllOf.js +5 -0
- package/build/sdk/studio/sdk/model/createEnterpriseTrialUserRequestAllOf.js.map +1 -1
- package/build/sdk/studio/sdk/model/{getAutoSegmenterResponseAllOfItems.d.ts → createOrganizationUsageReportBody.d.ts} +3 -2
- package/build/sdk/studio/sdk/model/createOrganizationUsageReportBody.js +37 -0
- package/build/sdk/studio/sdk/model/createOrganizationUsageReportBody.js.map +1 -0
- package/build/sdk/studio/sdk/model/createProjectRequest.d.ts +2 -0
- package/build/sdk/studio/sdk/model/createProjectRequest.js +5 -0
- package/build/sdk/studio/sdk/model/createProjectRequest.js.map +1 -1
- package/build/sdk/studio/sdk/model/createUserRequest.d.ts +4 -0
- package/build/sdk/studio/sdk/model/createUserRequest.js +5 -0
- package/build/sdk/studio/sdk/model/createUserRequest.js.map +1 -1
- package/build/sdk/studio/sdk/model/{organizationCreateProjectCreatedByUser.d.ts → createdUpdatedByUser.d.ts} +1 -1
- package/build/sdk/studio/sdk/model/{organizationCreateProjectCreatedByUser.js → createdUpdatedByUser.js} +9 -9
- package/build/sdk/studio/sdk/model/createdUpdatedByUser.js.map +1 -0
- package/build/sdk/studio/sdk/model/{addNoteRequest.d.ts → crossValidationData.d.ts} +6 -9
- package/build/sdk/studio/sdk/model/crossValidationData.js +35 -0
- package/build/sdk/studio/sdk/model/crossValidationData.js.map +1 -0
- package/build/sdk/studio/sdk/model/crossValidationDataScores.d.ts +50 -0
- package/build/sdk/studio/sdk/model/crossValidationDataScores.js +62 -0
- package/build/sdk/studio/sdk/model/crossValidationDataScores.js.map +1 -0
- package/build/sdk/studio/sdk/model/dSPGroupItem.d.ts +6 -0
- package/build/sdk/studio/sdk/model/dSPGroupItem.js +7 -1
- package/build/sdk/studio/sdk/model/dSPGroupItem.js.map +1 -1
- package/build/sdk/studio/sdk/model/dSPInfoFeatures.d.ts +4 -0
- package/build/sdk/studio/sdk/model/dSPInfoFeatures.js +5 -0
- package/build/sdk/studio/sdk/model/dSPInfoFeatures.js.map +1 -1
- package/build/sdk/studio/sdk/model/deployPretrainedModelRequest.d.ts +1 -1
- package/build/sdk/studio/sdk/model/deployPretrainedModelRequest.js +1 -1
- package/build/sdk/studio/sdk/model/deployPretrainedModelRequest.js.map +1 -1
- package/build/sdk/studio/sdk/model/dspRunResponseWithSample.d.ts +4 -0
- package/build/sdk/studio/sdk/model/dspRunResponseWithSample.js +5 -0
- package/build/sdk/studio/sdk/model/dspRunResponseWithSample.js.map +1 -1
- package/build/sdk/studio/sdk/model/dspRunResponseWithSampleAllOf.d.ts +4 -0
- package/build/sdk/studio/sdk/model/dspRunResponseWithSampleAllOf.js +5 -0
- package/build/sdk/studio/sdk/model/dspRunResponseWithSampleAllOf.js.map +1 -1
- package/build/sdk/studio/sdk/model/entitlementLimits.d.ts +16 -0
- package/build/sdk/studio/sdk/model/entitlementLimits.js +5 -0
- package/build/sdk/studio/sdk/model/entitlementLimits.js.map +1 -1
- package/build/sdk/studio/sdk/model/feature.d.ts +1 -1
- package/build/sdk/studio/sdk/model/feature.js +1 -1
- package/build/sdk/studio/sdk/model/feature.js.map +1 -1
- package/build/sdk/studio/sdk/model/getDiversityDataResponseAllOfClusterInfos.d.ts +1 -1
- package/build/sdk/studio/sdk/model/getLabelNoiseDataResponse.d.ts +34 -0
- package/build/sdk/studio/sdk/model/{getJWTTokenResponse.js → getLabelNoiseDataResponse.js} +12 -17
- package/build/sdk/studio/sdk/model/getLabelNoiseDataResponse.js.map +1 -0
- package/build/sdk/studio/sdk/model/getLabelNoiseDataResponseAllOf.d.ts +26 -0
- package/build/sdk/studio/sdk/model/getLabelNoiseDataResponseAllOf.js +32 -0
- package/build/sdk/studio/sdk/model/getLabelNoiseDataResponseAllOf.js.map +1 -0
- package/build/sdk/studio/sdk/model/getLabelNoiseDataResponseAllOfData.d.ts +30 -0
- package/build/sdk/studio/sdk/model/getLabelNoiseDataResponseAllOfData.js +42 -0
- package/build/sdk/studio/sdk/model/getLabelNoiseDataResponseAllOfData.js.map +1 -0
- package/build/sdk/studio/sdk/model/getLastDeploymentBuildResponse.d.ts +2 -0
- package/build/sdk/studio/sdk/model/getLastDeploymentBuildResponse.js +5 -0
- package/build/sdk/studio/sdk/model/getLastDeploymentBuildResponse.js.map +1 -1
- package/build/sdk/studio/sdk/model/getLastDeploymentBuildResponseAllOf.d.ts +2 -0
- package/build/sdk/studio/sdk/model/getLastDeploymentBuildResponseAllOf.js +5 -0
- package/build/sdk/studio/sdk/model/getLastDeploymentBuildResponseAllOf.js.map +1 -1
- package/build/sdk/studio/sdk/model/{createNoteResponse.d.ts → getOrganizationUsageReportResponse.d.ts} +3 -5
- package/build/sdk/studio/sdk/model/{listOrganizationProjectsResponse.js → getOrganizationUsageReportResponse.js} +12 -12
- package/build/sdk/studio/sdk/model/getOrganizationUsageReportResponse.js.map +1 -0
- package/build/sdk/studio/sdk/model/{listOrganizationProjectsResponse.d.ts → getTargetConstraintsResponse.d.ts} +3 -3
- package/build/sdk/studio/sdk/model/{adminGetFeatureFlagsResponse.js → getTargetConstraintsResponse.js} +12 -12
- package/build/sdk/studio/sdk/model/getTargetConstraintsResponse.js.map +1 -0
- package/build/sdk/studio/sdk/model/getTargetConstraintsResponseAllOf.d.ts +26 -0
- package/build/sdk/studio/sdk/model/getTargetConstraintsResponseAllOf.js +32 -0
- package/build/sdk/studio/sdk/model/getTargetConstraintsResponseAllOf.js.map +1 -0
- package/build/sdk/studio/sdk/model/job.d.ts +2 -0
- package/build/sdk/studio/sdk/model/job.js +5 -0
- package/build/sdk/studio/sdk/model/job.js.map +1 -1
- package/build/sdk/studio/sdk/model/{developmentBoard.d.ts → jobCreatedByUser.d.ts} +4 -3
- package/build/sdk/studio/sdk/model/{developmentBoard.js → jobCreatedByUser.js} +18 -13
- package/build/sdk/studio/sdk/model/jobCreatedByUser.js.map +1 -0
- package/build/sdk/studio/sdk/model/jobDetails.d.ts +2 -0
- package/build/sdk/studio/sdk/model/jobDetails.js +5 -0
- package/build/sdk/studio/sdk/model/jobDetails.js.map +1 -1
- package/build/sdk/studio/sdk/model/jobParentTypeEnum.d.ts +1 -1
- package/build/sdk/studio/sdk/model/jobParentTypeEnum.js +1 -1
- package/build/sdk/studio/sdk/model/jobParentTypeEnum.js.map +1 -1
- package/build/sdk/studio/sdk/model/jobStatus.d.ts +13 -0
- package/build/sdk/studio/sdk/model/jobStatus.js +16 -0
- package/build/sdk/studio/sdk/model/jobStatus.js.map +1 -0
- package/build/sdk/studio/sdk/model/kerasModelMetadata.d.ts +5 -1
- package/build/sdk/studio/sdk/model/kerasModelMetadata.js +6 -1
- package/build/sdk/studio/sdk/model/kerasModelMetadata.js.map +1 -1
- package/build/sdk/studio/sdk/model/kerasModelMetadataAllOf.d.ts +5 -1
- package/build/sdk/studio/sdk/model/kerasModelMetadataAllOf.js +6 -1
- package/build/sdk/studio/sdk/model/kerasModelMetadataAllOf.js.map +1 -1
- package/build/sdk/studio/sdk/model/kerasResponse.d.ts +6 -0
- package/build/sdk/studio/sdk/model/kerasResponse.js +10 -0
- package/build/sdk/studio/sdk/model/kerasResponse.js.map +1 -1
- package/build/sdk/studio/sdk/model/kerasResponseAllOf.d.ts +6 -0
- package/build/sdk/studio/sdk/model/kerasResponseAllOf.js +10 -0
- package/build/sdk/studio/sdk/model/kerasResponseAllOf.js.map +1 -1
- package/build/sdk/studio/sdk/model/learnBlock.d.ts +4 -0
- package/build/sdk/studio/sdk/model/learnBlock.js +5 -0
- package/build/sdk/studio/sdk/model/learnBlock.js.map +1 -1
- package/build/sdk/studio/sdk/model/listApiKeysResponseAllOfApiKeys.d.ts +1 -1
- package/build/sdk/studio/sdk/model/listApiKeysResponseAllOfApiKeys.js +1 -1
- package/build/sdk/studio/sdk/model/listApiKeysResponseAllOfApiKeys.js.map +1 -1
- package/build/sdk/studio/sdk/model/listOrganizationSecretsResponseAllOfSecrets.d.ts +2 -0
- package/build/sdk/studio/sdk/model/listOrganizationSecretsResponseAllOfSecrets.js +5 -0
- package/build/sdk/studio/sdk/model/listOrganizationSecretsResponseAllOfSecrets.js.map +1 -1
- package/build/sdk/studio/sdk/model/{getJWTTokenResponse.d.ts → listOrganizationUsageReportsResponse.d.ts} +5 -7
- package/build/sdk/studio/sdk/model/listOrganizationUsageReportsResponse.js +47 -0
- package/build/sdk/studio/sdk/model/listOrganizationUsageReportsResponse.js.map +1 -0
- package/build/sdk/studio/sdk/model/{saveAutoSegmenterClustersResponse.d.ts → listTunerRunsResponse.d.ts} +3 -2
- package/build/sdk/studio/sdk/model/{createNoteResponse.js → listTunerRunsResponse.js} +12 -12
- package/build/sdk/studio/sdk/model/listTunerRunsResponse.js.map +1 -0
- package/build/sdk/studio/sdk/model/{createNoteResponseAllOf.d.ts → listTunerRunsResponseAllOf.d.ts} +3 -5
- package/build/sdk/studio/sdk/model/listTunerRunsResponseAllOf.js +32 -0
- package/build/sdk/studio/sdk/model/listTunerRunsResponseAllOf.js.map +1 -0
- package/build/sdk/studio/sdk/model/{adminGetFeatureFlagsResponseAllOfFlags.d.ts → memorySpec.d.ts} +7 -7
- package/build/sdk/studio/sdk/model/memorySpec.js +40 -0
- package/build/sdk/studio/sdk/model/memorySpec.js.map +1 -0
- package/build/sdk/studio/sdk/model/modelPrediction.d.ts +1 -0
- package/build/sdk/studio/sdk/model/modelPrediction.js +5 -0
- package/build/sdk/studio/sdk/model/modelPrediction.js.map +1 -1
- package/build/sdk/studio/sdk/model/models.d.ts +49 -4
- package/build/sdk/studio/sdk/model/models.js +154 -13
- package/build/sdk/studio/sdk/model/models.js.map +1 -1
- package/build/sdk/studio/sdk/model/{anomalyModelMetadataClusters.d.ts → neighborsData.d.ts} +9 -5
- package/build/sdk/studio/sdk/model/neighborsData.js +40 -0
- package/build/sdk/studio/sdk/model/neighborsData.js.map +1 -0
- package/build/sdk/studio/sdk/model/neighborsScore.d.ts +50 -0
- package/build/sdk/studio/sdk/model/neighborsScore.js +60 -0
- package/build/sdk/studio/sdk/model/neighborsScore.js.map +1 -0
- package/build/sdk/studio/sdk/model/{classifyJobResponseAllOfResult.d.ts → neighborsScoreNeighborWindows.d.ts} +14 -5
- package/build/sdk/studio/sdk/model/neighborsScoreNeighborWindows.js +47 -0
- package/build/sdk/studio/sdk/model/neighborsScoreNeighborWindows.js.map +1 -0
- package/build/sdk/studio/sdk/model/objectDetectionLastLayer.d.ts +1 -1
- package/build/sdk/studio/sdk/model/objectDetectionLastLayer.js +1 -1
- package/build/sdk/studio/sdk/model/objectDetectionLastLayer.js.map +1 -1
- package/build/sdk/studio/sdk/model/optimizeConfig.d.ts +9 -6
- package/build/sdk/studio/sdk/model/optimizeConfig.js +7 -2
- package/build/sdk/studio/sdk/model/optimizeConfig.js.map +1 -1
- package/build/sdk/studio/sdk/model/optimizeConfigResponse.d.ts +9 -6
- package/build/sdk/studio/sdk/model/optimizeConfigResponse.js +7 -2
- package/build/sdk/studio/sdk/model/optimizeConfigResponse.js.map +1 -1
- package/build/sdk/studio/sdk/model/optimizeConfigTargetDevice.d.ts +1 -1
- package/build/sdk/studio/sdk/model/optimizeStateResponse.d.ts +14 -2
- package/build/sdk/studio/sdk/model/optimizeStateResponse.js +17 -2
- package/build/sdk/studio/sdk/model/optimizeStateResponse.js.map +1 -1
- package/build/sdk/studio/sdk/model/optimizeStateResponseAllOf.d.ts +14 -2
- package/build/sdk/studio/sdk/model/optimizeStateResponseAllOf.js +17 -2
- package/build/sdk/studio/sdk/model/optimizeStateResponseAllOf.js.map +1 -1
- package/build/sdk/studio/sdk/model/optimizeStateResponseAllOfStatus.d.ts +9 -9
- package/build/sdk/studio/sdk/model/optimizeStateResponseAllOfStatus.js +1 -1
- package/build/sdk/studio/sdk/model/optimizeStateResponseAllOfStatus.js.map +1 -1
- package/build/sdk/studio/sdk/model/optimizeStateResponseAllOfWorkers.d.ts +2 -2
- package/build/sdk/studio/sdk/model/optimizeTransferLearningModelsResponse.d.ts +1 -1
- package/build/sdk/studio/sdk/model/optimizeTransferLearningModelsResponseAllOf.d.ts +1 -1
- package/build/sdk/studio/sdk/model/organization.d.ts +4 -0
- package/build/sdk/studio/sdk/model/organization.js +5 -0
- package/build/sdk/studio/sdk/model/organization.js.map +1 -1
- package/build/sdk/studio/sdk/model/organizationComputeTimeUsage.d.ts +36 -0
- package/build/sdk/studio/sdk/model/organizationComputeTimeUsage.js +42 -0
- package/build/sdk/studio/sdk/model/organizationComputeTimeUsage.js.map +1 -0
- package/build/sdk/studio/sdk/model/organizationCreateProject.d.ts +2 -2
- package/build/sdk/studio/sdk/model/organizationCreateProject.js +1 -1
- package/build/sdk/studio/sdk/model/organizationCreateProject.js.map +1 -1
- package/build/sdk/studio/sdk/model/organizationCreateProjectRequest.d.ts +2 -0
- package/build/sdk/studio/sdk/model/organizationCreateProjectRequest.js +5 -0
- package/build/sdk/studio/sdk/model/organizationCreateProjectRequest.js.map +1 -1
- package/build/sdk/studio/sdk/model/organizationCreateProjectWithFiles.d.ts +2 -2
- package/build/sdk/studio/sdk/model/organizationCreateProjectWithFiles.js +1 -1
- package/build/sdk/studio/sdk/model/organizationCreateProjectWithFiles.js.map +1 -1
- package/build/sdk/studio/sdk/model/organizationDeployBlock.d.ts +4 -0
- package/build/sdk/studio/sdk/model/organizationDeployBlock.js +15 -0
- package/build/sdk/studio/sdk/model/organizationDeployBlock.js.map +1 -1
- package/build/sdk/studio/sdk/model/organizationDspBlock.d.ts +4 -0
- package/build/sdk/studio/sdk/model/organizationDspBlock.js +15 -0
- package/build/sdk/studio/sdk/model/organizationDspBlock.js.map +1 -1
- package/build/sdk/studio/sdk/model/organizationGetCreateProjectsResponseAllOfJobs.d.ts +2 -2
- package/build/sdk/studio/sdk/model/organizationGetCreateProjectsResponseAllOfJobs.js +1 -1
- package/build/sdk/studio/sdk/model/organizationGetCreateProjectsResponseAllOfJobs.js.map +1 -1
- package/build/sdk/studio/sdk/model/organizationMetricsResponseAllOfMetrics.d.ts +2 -2
- package/build/sdk/studio/sdk/model/organizationTransferLearningBlock.d.ts +12 -0
- package/build/sdk/studio/sdk/model/organizationTransferLearningBlock.js +25 -0
- package/build/sdk/studio/sdk/model/organizationTransferLearningBlock.js.map +1 -1
- package/build/sdk/studio/sdk/model/organizationTransformationBlock.d.ts +8 -0
- package/build/sdk/studio/sdk/model/organizationTransformationBlock.js +20 -0
- package/build/sdk/studio/sdk/model/organizationTransformationBlock.js.map +1 -1
- package/build/sdk/studio/sdk/model/organizationUsageReport.d.ts +34 -0
- package/build/sdk/studio/sdk/model/organizationUsageReport.js +72 -0
- package/build/sdk/studio/sdk/model/organizationUsageReport.js.map +1 -0
- package/build/sdk/studio/sdk/model/project.d.ts +13 -0
- package/build/sdk/studio/sdk/model/project.js +20 -0
- package/build/sdk/studio/sdk/model/project.js.map +1 -1
- package/build/sdk/studio/sdk/model/projectInfoResponse.d.ts +6 -0
- package/build/sdk/studio/sdk/model/projectInfoResponse.js +10 -0
- package/build/sdk/studio/sdk/model/projectInfoResponse.js.map +1 -1
- package/build/sdk/studio/sdk/model/projectInfoResponseAllOf.d.ts +6 -0
- package/build/sdk/studio/sdk/model/projectInfoResponseAllOf.js +10 -0
- package/build/sdk/studio/sdk/model/projectInfoResponseAllOf.js.map +1 -1
- package/build/sdk/studio/sdk/model/projectVisibility.d.ts +16 -0
- package/build/sdk/studio/sdk/model/projectVisibility.js +16 -0
- package/build/sdk/studio/sdk/model/projectVisibility.js.map +1 -0
- package/build/sdk/studio/sdk/model/resourceRange.d.ts +29 -0
- package/build/sdk/studio/sdk/model/resourceRange.js +40 -0
- package/build/sdk/studio/sdk/model/resourceRange.js.map +1 -0
- package/build/sdk/studio/sdk/model/sample.d.ts +7 -0
- package/build/sdk/studio/sdk/model/sample.js +15 -0
- package/build/sdk/studio/sdk/model/sample.js.map +1 -1
- package/build/sdk/studio/sdk/model/setKerasParameterRequest.d.ts +6 -0
- package/build/sdk/studio/sdk/model/setKerasParameterRequest.js +10 -0
- package/build/sdk/studio/sdk/model/setKerasParameterRequest.js.map +1 -1
- package/build/sdk/studio/sdk/model/setSampleStructuredLabelsRequest.d.ts +26 -0
- package/build/sdk/studio/sdk/model/setSampleStructuredLabelsRequest.js +32 -0
- package/build/sdk/studio/sdk/model/setSampleStructuredLabelsRequest.js.map +1 -0
- package/build/sdk/studio/sdk/model/structuredClassifyResult.d.ts +6 -6
- package/build/sdk/studio/sdk/model/{adminCreateUserTrialRequest.d.ts → structuredLabel.d.ts} +10 -7
- package/build/sdk/studio/sdk/model/structuredLabel.js +45 -0
- package/build/sdk/studio/sdk/model/structuredLabel.js.map +1 -0
- package/build/sdk/studio/sdk/model/targetConstraints.d.ts +40 -0
- package/build/sdk/studio/sdk/model/targetConstraints.js +43 -0
- package/build/sdk/studio/sdk/model/targetConstraints.js.map +1 -0
- package/build/sdk/studio/sdk/model/{getJWTTokenRequest.d.ts → targetConstraintsDevice.d.ts} +14 -12
- package/build/sdk/studio/sdk/model/targetConstraintsDevice.js +52 -0
- package/build/sdk/studio/sdk/model/targetConstraintsDevice.js.map +1 -0
- package/build/sdk/studio/sdk/model/targetMemory.d.ts +30 -0
- package/build/sdk/studio/sdk/model/{profileTfLiteResponseAllOfMemoryTflite.js → targetMemory.js} +14 -11
- package/build/sdk/studio/sdk/model/targetMemory.js.map +1 -0
- package/build/sdk/studio/sdk/model/targetProcessor.d.ts +48 -0
- package/build/sdk/studio/sdk/model/targetProcessor.js +62 -0
- package/build/sdk/studio/sdk/model/targetProcessor.js.map +1 -0
- package/build/sdk/studio/sdk/model/{saveAutoSegmenterClustersRequestClusters.d.ts → tunerRun.d.ts} +7 -2
- package/build/sdk/studio/sdk/model/tunerRun.js +57 -0
- package/build/sdk/studio/sdk/model/tunerRun.js.map +1 -0
- package/build/sdk/studio/sdk/model/tunerTrial.d.ts +6 -3
- package/build/sdk/studio/sdk/model/tunerTrial.js +4 -3
- package/build/sdk/studio/sdk/model/tunerTrial.js.map +1 -1
- package/build/sdk/studio/sdk/model/tunerTrialBlocks.d.ts +8 -4
- package/build/sdk/studio/sdk/model/tunerTrialBlocks.js +5 -3
- package/build/sdk/studio/sdk/model/tunerTrialBlocks.js.map +1 -1
- package/build/sdk/studio/sdk/model/{activateUserRequest.d.ts → tunerTrialImpulse.d.ts} +4 -5
- package/build/sdk/studio/sdk/model/tunerTrialImpulse.js +42 -0
- package/build/sdk/studio/sdk/model/tunerTrialImpulse.js.map +1 -0
- package/build/sdk/studio/sdk/model/updateOrganizationCreateEmptyProjectRequest.d.ts +2 -0
- package/build/sdk/studio/sdk/model/updateOrganizationCreateEmptyProjectRequest.js +5 -0
- package/build/sdk/studio/sdk/model/updateOrganizationCreateEmptyProjectRequest.js.map +1 -1
- package/build/sdk/studio/sdk/model/updateOrganizationTransferLearningBlockRequest.d.ts +4 -0
- package/build/sdk/studio/sdk/model/updateOrganizationTransferLearningBlockRequest.js +5 -0
- package/build/sdk/studio/sdk/model/updateOrganizationTransferLearningBlockRequest.js.map +1 -1
- package/build/sdk/studio/sdk/model/updateOrganizationTransformationBlockRequest.d.ts +4 -0
- package/build/sdk/studio/sdk/model/updateOrganizationTransformationBlockRequest.js +5 -0
- package/build/sdk/studio/sdk/model/updateOrganizationTransformationBlockRequest.js.map +1 -1
- package/build/sdk/studio/sdk/model/updateProjectRequest.d.ts +14 -0
- package/build/sdk/studio/sdk/model/updateProjectRequest.js +20 -0
- package/build/sdk/studio/sdk/model/updateProjectRequest.js.map +1 -1
- package/build/sdk/studio/sdk/model/{adminGetUserMetricsResponseAllOf.d.ts → updateTunerRunRequest.d.ts} +2 -2
- package/build/sdk/studio/sdk/model/{activateUserRequest.js → updateTunerRunRequest.js} +11 -11
- package/build/sdk/studio/sdk/model/updateTunerRunRequest.js.map +1 -0
- package/build/sdk/studio/sdk/model/userOrganization.d.ts +2 -0
- package/build/sdk/studio/sdk/model/userOrganization.js +5 -0
- package/build/sdk/studio/sdk/model/userOrganization.js.map +1 -1
- package/build/shared/bounding-box-file-types.d.ts +50 -9
- package/build/shared/bounding-box-file-types.js +105 -4
- package/build/shared/bounding-box-file-types.js.map +1 -1
- package/build/shared/viewmodels/init.d.ts +2 -2
- package/build/shared/viewmodels/init.js +1 -0
- package/build/shared/viewmodels/init.js.map +1 -1
- package/cli/linux/runner.ts +175 -2
- package/cli/linux/webserver/middleware/asyncMiddleware.ts +7 -0
- package/cli/linux/webserver/public/assets/mobileclient.css +16 -0
- package/cli/linux/webserver/public/inference-server.js +104 -0
- package/cli/linux/webserver/views/escape-html-template-tag/escape.ts +64 -0
- package/cli/linux/webserver/views/escape-html-template-tag/index.ts +2 -0
- package/cli/linux/webserver/views/inference-server-view.ts +142 -0
- package/package.json +5 -3
- package/build/sdk/studio/sdk/api/allowsReadOnlyApi.d.ts +0 -726
- package/build/sdk/studio/sdk/api/allowsReadOnlyApi.js +0 -3986
- package/build/sdk/studio/sdk/api/allowsReadOnlyApi.js.map +0 -1
- package/build/sdk/studio/sdk/api/contentDispositionInlineApi.d.ts +0 -89
- package/build/sdk/studio/sdk/api/contentDispositionInlineApi.js +0 -335
- package/build/sdk/studio/sdk/api/contentDispositionInlineApi.js.map +0 -1
- package/build/sdk/studio/sdk/api/organizationAllowDeveloperProfileApi.d.ts +0 -693
- package/build/sdk/studio/sdk/api/organizationAllowDeveloperProfileApi.js +0 -3799
- package/build/sdk/studio/sdk/api/organizationAllowDeveloperProfileApi.js.map +0 -1
- package/build/sdk/studio/sdk/api/organizationAllowGuestAccessApi.d.ts +0 -180
- package/build/sdk/studio/sdk/api/organizationAllowGuestAccessApi.js +0 -847
- package/build/sdk/studio/sdk/api/organizationAllowGuestAccessApi.js.map +0 -1
- package/build/sdk/studio/sdk/api/projectRequiresAdminApi.d.ts +0 -65
- package/build/sdk/studio/sdk/api/projectRequiresAdminApi.js +0 -231
- package/build/sdk/studio/sdk/api/projectRequiresAdminApi.js.map +0 -1
- package/build/sdk/studio/sdk/api/requiresSudoApi.d.ts +0 -87
- package/build/sdk/studio/sdk/api/requiresSudoApi.js +0 -371
- package/build/sdk/studio/sdk/api/requiresSudoApi.js.map +0 -1
- package/build/sdk/studio/sdk/api/requiresThirdPartyAuthApiKeyApi.d.ts +0 -56
- package/build/sdk/studio/sdk/api/requiresThirdPartyAuthApiKeyApi.js +0 -158
- package/build/sdk/studio/sdk/api/requiresThirdPartyAuthApiKeyApi.js.map +0 -1
- package/build/sdk/studio/sdk/api/supportsRangeApi.d.ts +0 -74
- package/build/sdk/studio/sdk/api/supportsRangeApi.js +0 -248
- package/build/sdk/studio/sdk/api/supportsRangeApi.js.map +0 -1
- package/build/sdk/studio/sdk/model/activateUserRequest.js.map +0 -1
- package/build/sdk/studio/sdk/model/addNoteRequest.js +0 -37
- package/build/sdk/studio/sdk/model/addNoteRequest.js.map +0 -1
- package/build/sdk/studio/sdk/model/adminCreateUserTrialRequest.js +0 -42
- package/build/sdk/studio/sdk/model/adminCreateUserTrialRequest.js.map +0 -1
- package/build/sdk/studio/sdk/model/adminGetFeatureFlagsResponse.js.map +0 -1
- package/build/sdk/studio/sdk/model/adminGetFeatureFlagsResponseAllOf.js +0 -32
- package/build/sdk/studio/sdk/model/adminGetFeatureFlagsResponseAllOf.js.map +0 -1
- package/build/sdk/studio/sdk/model/adminGetFeatureFlagsResponseAllOfFlags.js +0 -37
- package/build/sdk/studio/sdk/model/adminGetFeatureFlagsResponseAllOfFlags.js.map +0 -1
- package/build/sdk/studio/sdk/model/adminGetUserMetricsResponseAllOf.js +0 -32
- package/build/sdk/studio/sdk/model/adminGetUserMetricsResponseAllOf.js.map +0 -1
- package/build/sdk/studio/sdk/model/anomalyModelMetadataClusters.js +0 -37
- package/build/sdk/studio/sdk/model/anomalyModelMetadataClusters.js.map +0 -1
- package/build/sdk/studio/sdk/model/anomalyModelMetadataResponse.d.ts +0 -57
- package/build/sdk/studio/sdk/model/anomalyModelMetadataResponse.js +0 -67
- package/build/sdk/studio/sdk/model/anomalyModelMetadataResponse.js.map +0 -1
- package/build/sdk/studio/sdk/model/classifyJobResponseAllOfResult.js +0 -42
- package/build/sdk/studio/sdk/model/classifyJobResponseAllOfResult.js.map +0 -1
- package/build/sdk/studio/sdk/model/createNoteResponse.js.map +0 -1
- package/build/sdk/studio/sdk/model/createNoteResponseAllOf.js +0 -32
- package/build/sdk/studio/sdk/model/createNoteResponseAllOf.js.map +0 -1
- package/build/sdk/studio/sdk/model/deployPretrainedModelInputNone.d.ts +0 -27
- package/build/sdk/studio/sdk/model/deployPretrainedModelInputNone.js +0 -33
- package/build/sdk/studio/sdk/model/deployPretrainedModelInputNone.js.map +0 -1
- package/build/sdk/studio/sdk/model/developmentBoard.js.map +0 -1
- package/build/sdk/studio/sdk/model/getAutoSegmenterResponse.js +0 -62
- package/build/sdk/studio/sdk/model/getAutoSegmenterResponse.js.map +0 -1
- package/build/sdk/studio/sdk/model/getAutoSegmenterResponseAllOf.d.ts +0 -30
- package/build/sdk/studio/sdk/model/getAutoSegmenterResponseAllOf.js +0 -52
- package/build/sdk/studio/sdk/model/getAutoSegmenterResponseAllOf.js.map +0 -1
- package/build/sdk/studio/sdk/model/getAutoSegmenterResponseAllOfClusters.d.ts +0 -27
- package/build/sdk/studio/sdk/model/getAutoSegmenterResponseAllOfClusters.js +0 -37
- package/build/sdk/studio/sdk/model/getAutoSegmenterResponseAllOfClusters.js.map +0 -1
- package/build/sdk/studio/sdk/model/getAutoSegmenterResponseAllOfItems.js +0 -32
- package/build/sdk/studio/sdk/model/getAutoSegmenterResponseAllOfItems.js.map +0 -1
- package/build/sdk/studio/sdk/model/getJWTTokenRequest.js +0 -53
- package/build/sdk/studio/sdk/model/getJWTTokenRequest.js.map +0 -1
- package/build/sdk/studio/sdk/model/getJWTTokenResponse.js.map +0 -1
- package/build/sdk/studio/sdk/model/getJWTTokenResponseAllOf.js +0 -37
- package/build/sdk/studio/sdk/model/getJWTTokenResponseAllOf.js.map +0 -1
- package/build/sdk/studio/sdk/model/getOrganizationProjectsDataCountResponseAllOf.d.ts +0 -25
- package/build/sdk/studio/sdk/model/getOrganizationProjectsDataCountResponseAllOf.js +0 -32
- package/build/sdk/studio/sdk/model/getOrganizationProjectsDataCountResponseAllOf.js.map +0 -1
- package/build/sdk/studio/sdk/model/getUserResponseAllOfOrganizations.js +0 -57
- package/build/sdk/studio/sdk/model/getUserResponseAllOfOrganizations.js.map +0 -1
- package/build/sdk/studio/sdk/model/listOrganizationProjectsResponse.js.map +0 -1
- package/build/sdk/studio/sdk/model/listOrganizationProjectsResponseAllOf.d.ts +0 -26
- package/build/sdk/studio/sdk/model/listOrganizationProjectsResponseAllOf.js +0 -32
- package/build/sdk/studio/sdk/model/listOrganizationProjectsResponseAllOf.js.map +0 -1
- package/build/sdk/studio/sdk/model/organizationCreateProjectCreatedByUser.js.map +0 -1
- package/build/sdk/studio/sdk/model/organizationCreateProjectFiles.d.ts +0 -32
- package/build/sdk/studio/sdk/model/organizationCreateProjectFiles.js +0 -58
- package/build/sdk/studio/sdk/model/organizationCreateProjectFiles.js.map +0 -1
- package/build/sdk/studio/sdk/model/organizationInfoResponseAllOfEntitlementLimits.d.ts +0 -28
- package/build/sdk/studio/sdk/model/organizationInfoResponseAllOfEntitlementLimits.js +0 -47
- package/build/sdk/studio/sdk/model/organizationInfoResponseAllOfEntitlementLimits.js.map +0 -1
- package/build/sdk/studio/sdk/model/profileTfLiteResponseAllOf.d.ts +0 -27
- package/build/sdk/studio/sdk/model/profileTfLiteResponseAllOf.js +0 -37
- package/build/sdk/studio/sdk/model/profileTfLiteResponseAllOf.js.map +0 -1
- package/build/sdk/studio/sdk/model/profileTfLiteResponseAllOfMemory.d.ts +0 -27
- package/build/sdk/studio/sdk/model/profileTfLiteResponseAllOfMemory.js +0 -37
- package/build/sdk/studio/sdk/model/profileTfLiteResponseAllOfMemory.js.map +0 -1
- package/build/sdk/studio/sdk/model/profileTfLiteResponseAllOfMemoryTflite.d.ts +0 -26
- package/build/sdk/studio/sdk/model/profileTfLiteResponseAllOfMemoryTflite.js.map +0 -1
- package/build/sdk/studio/sdk/model/projectInfoResponseAllOfLatencyDevices.d.ts +0 -32
- package/build/sdk/studio/sdk/model/projectInfoResponseAllOfLatencyDevices.js +0 -67
- package/build/sdk/studio/sdk/model/projectInfoResponseAllOfLatencyDevices.js.map +0 -1
- package/build/sdk/studio/sdk/model/runAutoSegmenterRequest.d.ts +0 -27
- package/build/sdk/studio/sdk/model/runAutoSegmenterRequest.js +0 -42
- package/build/sdk/studio/sdk/model/runAutoSegmenterRequest.js.map +0 -1
- package/build/sdk/studio/sdk/model/saveAutoSegmenterClustersRequest.d.ts +0 -26
- package/build/sdk/studio/sdk/model/saveAutoSegmenterClustersRequest.js +0 -32
- package/build/sdk/studio/sdk/model/saveAutoSegmenterClustersRequest.js.map +0 -1
- package/build/sdk/studio/sdk/model/saveAutoSegmenterClustersRequestClusters.js +0 -37
- package/build/sdk/studio/sdk/model/saveAutoSegmenterClustersRequestClusters.js.map +0 -1
- package/build/sdk/studio/sdk/model/saveAutoSegmenterClustersResponse.js.map +0 -1
- package/build/sdk/studio/sdk/model/saveAutoSegmenterClustersResponseAllOf.d.ts +0 -25
- package/build/sdk/studio/sdk/model/saveAutoSegmenterClustersResponseAllOf.js +0 -32
- package/build/sdk/studio/sdk/model/saveAutoSegmenterClustersResponseAllOf.js.map +0 -1
- package/build/sdk/studio/sdk/model/updateNoteRequest.d.ts +0 -32
- package/build/sdk/studio/sdk/model/updateNoteRequest.js +0 -37
- package/build/sdk/studio/sdk/model/updateNoteRequest.js.map +0 -1
- package/build/sdk/studio/sdk/model/updateNoteResponse.d.ts +0 -25
- package/build/sdk/studio/sdk/model/updateNoteResponse.js +0 -27
- package/build/sdk/studio/sdk/model/updateNoteResponse.js.map +0 -1
- package/build/sdk/studio/sdk/model/whitelabelAdminCreateProjectRequest.js.map +0 -1
|
@@ -522,6 +522,247 @@ class AdminApi {
|
|
|
522
522
|
});
|
|
523
523
|
});
|
|
524
524
|
}
|
|
525
|
+
/**
|
|
526
|
+
* Admin-only API to create a new project for an organization.
|
|
527
|
+
* @summary Create a new organization project
|
|
528
|
+
* @param organizationId Organization ID
|
|
529
|
+
* @param adminCreateProjectRequest
|
|
530
|
+
*/
|
|
531
|
+
async adminCreateOrganizationProject(organizationId, adminCreateProjectRequest, options = { headers: {} }) {
|
|
532
|
+
const localVarPath = this.basePath + '/api/admin/organizations/{organizationId}/projects'
|
|
533
|
+
.replace('{' + 'organizationId' + '}', encodeURIComponent(String(organizationId)));
|
|
534
|
+
let localVarQueryParameters = {};
|
|
535
|
+
let localVarHeaderParams = Object.assign({
|
|
536
|
+
'User-Agent': 'edgeimpulse-api nodejs'
|
|
537
|
+
}, this.defaultHeaders);
|
|
538
|
+
const produces = ['application/json'];
|
|
539
|
+
// give precedence to 'application/json'
|
|
540
|
+
if (produces.indexOf('application/json') >= 0) {
|
|
541
|
+
localVarHeaderParams.Accept = 'application/json';
|
|
542
|
+
}
|
|
543
|
+
else {
|
|
544
|
+
localVarHeaderParams.Accept = produces.join(',');
|
|
545
|
+
}
|
|
546
|
+
let localVarFormParams = {};
|
|
547
|
+
// verify required parameter 'organizationId' is not null or undefined
|
|
548
|
+
if (organizationId === null || organizationId === undefined) {
|
|
549
|
+
throw new Error('Required parameter organizationId was null or undefined when calling adminCreateOrganizationProject.');
|
|
550
|
+
}
|
|
551
|
+
// verify required parameter 'adminCreateProjectRequest' is not null or undefined
|
|
552
|
+
if (adminCreateProjectRequest === null || adminCreateProjectRequest === undefined) {
|
|
553
|
+
throw new Error('Required parameter adminCreateProjectRequest was null or undefined when calling adminCreateOrganizationProject.');
|
|
554
|
+
}
|
|
555
|
+
Object.assign(localVarHeaderParams, options.headers);
|
|
556
|
+
Object.assign(localVarHeaderParams, this.opts.extraHeaders);
|
|
557
|
+
let localVarUseFormData = false;
|
|
558
|
+
let localVarRequestOptions = {
|
|
559
|
+
method: 'POST',
|
|
560
|
+
qs: localVarQueryParameters,
|
|
561
|
+
headers: localVarHeaderParams,
|
|
562
|
+
uri: localVarPath,
|
|
563
|
+
useQuerystring: this._useQuerystring,
|
|
564
|
+
agentOptions: { keepAlive: false },
|
|
565
|
+
json: true,
|
|
566
|
+
body: models_1.ObjectSerializer.serialize(adminCreateProjectRequest, "AdminCreateProjectRequest")
|
|
567
|
+
};
|
|
568
|
+
let authenticationPromise = Promise.resolve();
|
|
569
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.ApiKeyAuthentication.applyToRequest(localVarRequestOptions));
|
|
570
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.JWTAuthentication.applyToRequest(localVarRequestOptions));
|
|
571
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.JWTHttpHeaderAuthentication.applyToRequest(localVarRequestOptions));
|
|
572
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
|
|
573
|
+
return authenticationPromise.then(() => {
|
|
574
|
+
if (Object.keys(localVarFormParams).length) {
|
|
575
|
+
if (localVarUseFormData) {
|
|
576
|
+
localVarRequestOptions.formData = localVarFormParams;
|
|
577
|
+
}
|
|
578
|
+
else {
|
|
579
|
+
localVarRequestOptions.form = localVarFormParams;
|
|
580
|
+
}
|
|
581
|
+
}
|
|
582
|
+
return new Promise((resolve, reject) => {
|
|
583
|
+
localVarRequest(localVarRequestOptions, (error, response, body) => {
|
|
584
|
+
if (error) {
|
|
585
|
+
reject(error);
|
|
586
|
+
}
|
|
587
|
+
else {
|
|
588
|
+
body = models_1.ObjectSerializer.deserialize(body, "CreateProjectResponse");
|
|
589
|
+
const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
|
|
590
|
+
if (typeof body.success === 'boolean' && !body.success) {
|
|
591
|
+
reject(new Error(body.error || errString));
|
|
592
|
+
}
|
|
593
|
+
else if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
594
|
+
resolve(body);
|
|
595
|
+
}
|
|
596
|
+
else {
|
|
597
|
+
reject(errString);
|
|
598
|
+
}
|
|
599
|
+
}
|
|
600
|
+
});
|
|
601
|
+
});
|
|
602
|
+
});
|
|
603
|
+
}
|
|
604
|
+
/**
|
|
605
|
+
* Admin-only API to create a new usage report for an organization. A job is created to process the report request and the job details are returned in the response.
|
|
606
|
+
* @summary Creates a new usage report
|
|
607
|
+
* @param organizationId Organization ID
|
|
608
|
+
* @param startDate Start date
|
|
609
|
+
* @param endDate End date
|
|
610
|
+
*/
|
|
611
|
+
async adminCreateOrganizationUsageReport(organizationId, queryParams, options = { headers: {} }) {
|
|
612
|
+
const localVarPath = this.basePath + '/api/admin/organizations/{organizationId}/usage/reports'
|
|
613
|
+
.replace('{' + 'organizationId' + '}', encodeURIComponent(String(organizationId)));
|
|
614
|
+
let localVarQueryParameters = {};
|
|
615
|
+
let localVarHeaderParams = Object.assign({
|
|
616
|
+
'User-Agent': 'edgeimpulse-api nodejs'
|
|
617
|
+
}, this.defaultHeaders);
|
|
618
|
+
const produces = ['application/json'];
|
|
619
|
+
// give precedence to 'application/json'
|
|
620
|
+
if (produces.indexOf('application/json') >= 0) {
|
|
621
|
+
localVarHeaderParams.Accept = 'application/json';
|
|
622
|
+
}
|
|
623
|
+
else {
|
|
624
|
+
localVarHeaderParams.Accept = produces.join(',');
|
|
625
|
+
}
|
|
626
|
+
let localVarFormParams = {};
|
|
627
|
+
// verify required parameter 'organizationId' is not null or undefined
|
|
628
|
+
if (organizationId === null || organizationId === undefined) {
|
|
629
|
+
throw new Error('Required parameter organizationId was null or undefined when calling adminCreateOrganizationUsageReport.');
|
|
630
|
+
}
|
|
631
|
+
// verify required parameter 'startDate' is not null or undefined
|
|
632
|
+
if (queryParams.startDate === null || queryParams.startDate === undefined) {
|
|
633
|
+
throw new Error('Required parameter queryParams.startDate was null or undefined when calling adminCreateOrganizationUsageReport.');
|
|
634
|
+
}
|
|
635
|
+
// verify required parameter 'endDate' is not null or undefined
|
|
636
|
+
if (queryParams.endDate === null || queryParams.endDate === undefined) {
|
|
637
|
+
throw new Error('Required parameter queryParams.endDate was null or undefined when calling adminCreateOrganizationUsageReport.');
|
|
638
|
+
}
|
|
639
|
+
if (queryParams.startDate !== undefined) {
|
|
640
|
+
localVarQueryParameters['startDate'] = models_1.ObjectSerializer.serialize(queryParams.startDate, "Date");
|
|
641
|
+
}
|
|
642
|
+
if (queryParams.endDate !== undefined) {
|
|
643
|
+
localVarQueryParameters['endDate'] = models_1.ObjectSerializer.serialize(queryParams.endDate, "Date");
|
|
644
|
+
}
|
|
645
|
+
Object.assign(localVarHeaderParams, options.headers);
|
|
646
|
+
Object.assign(localVarHeaderParams, this.opts.extraHeaders);
|
|
647
|
+
let localVarUseFormData = false;
|
|
648
|
+
let localVarRequestOptions = {
|
|
649
|
+
method: 'POST',
|
|
650
|
+
qs: localVarQueryParameters,
|
|
651
|
+
headers: localVarHeaderParams,
|
|
652
|
+
uri: localVarPath,
|
|
653
|
+
useQuerystring: this._useQuerystring,
|
|
654
|
+
agentOptions: { keepAlive: false },
|
|
655
|
+
json: true,
|
|
656
|
+
};
|
|
657
|
+
let authenticationPromise = Promise.resolve();
|
|
658
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.ApiKeyAuthentication.applyToRequest(localVarRequestOptions));
|
|
659
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.JWTAuthentication.applyToRequest(localVarRequestOptions));
|
|
660
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.JWTHttpHeaderAuthentication.applyToRequest(localVarRequestOptions));
|
|
661
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
|
|
662
|
+
return authenticationPromise.then(() => {
|
|
663
|
+
if (Object.keys(localVarFormParams).length) {
|
|
664
|
+
if (localVarUseFormData) {
|
|
665
|
+
localVarRequestOptions.formData = localVarFormParams;
|
|
666
|
+
}
|
|
667
|
+
else {
|
|
668
|
+
localVarRequestOptions.form = localVarFormParams;
|
|
669
|
+
}
|
|
670
|
+
}
|
|
671
|
+
return new Promise((resolve, reject) => {
|
|
672
|
+
localVarRequest(localVarRequestOptions, (error, response, body) => {
|
|
673
|
+
if (error) {
|
|
674
|
+
reject(error);
|
|
675
|
+
}
|
|
676
|
+
else {
|
|
677
|
+
body = models_1.ObjectSerializer.deserialize(body, "StartJobResponse");
|
|
678
|
+
const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
|
|
679
|
+
if (typeof body.success === 'boolean' && !body.success) {
|
|
680
|
+
reject(new Error(body.error || errString));
|
|
681
|
+
}
|
|
682
|
+
else if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
683
|
+
resolve(body);
|
|
684
|
+
}
|
|
685
|
+
else {
|
|
686
|
+
reject(errString);
|
|
687
|
+
}
|
|
688
|
+
}
|
|
689
|
+
});
|
|
690
|
+
});
|
|
691
|
+
});
|
|
692
|
+
}
|
|
693
|
+
/**
|
|
694
|
+
* Admin-only API to create a new free tier project.
|
|
695
|
+
* @summary Create a new project
|
|
696
|
+
* @param adminCreateProjectRequest
|
|
697
|
+
*/
|
|
698
|
+
async adminCreateProject(adminCreateProjectRequest, options = { headers: {} }) {
|
|
699
|
+
const localVarPath = this.basePath + '/api/admin/projects';
|
|
700
|
+
let localVarQueryParameters = {};
|
|
701
|
+
let localVarHeaderParams = Object.assign({
|
|
702
|
+
'User-Agent': 'edgeimpulse-api nodejs'
|
|
703
|
+
}, this.defaultHeaders);
|
|
704
|
+
const produces = ['application/json'];
|
|
705
|
+
// give precedence to 'application/json'
|
|
706
|
+
if (produces.indexOf('application/json') >= 0) {
|
|
707
|
+
localVarHeaderParams.Accept = 'application/json';
|
|
708
|
+
}
|
|
709
|
+
else {
|
|
710
|
+
localVarHeaderParams.Accept = produces.join(',');
|
|
711
|
+
}
|
|
712
|
+
let localVarFormParams = {};
|
|
713
|
+
// verify required parameter 'adminCreateProjectRequest' is not null or undefined
|
|
714
|
+
if (adminCreateProjectRequest === null || adminCreateProjectRequest === undefined) {
|
|
715
|
+
throw new Error('Required parameter adminCreateProjectRequest was null or undefined when calling adminCreateProject.');
|
|
716
|
+
}
|
|
717
|
+
Object.assign(localVarHeaderParams, options.headers);
|
|
718
|
+
Object.assign(localVarHeaderParams, this.opts.extraHeaders);
|
|
719
|
+
let localVarUseFormData = false;
|
|
720
|
+
let localVarRequestOptions = {
|
|
721
|
+
method: 'POST',
|
|
722
|
+
qs: localVarQueryParameters,
|
|
723
|
+
headers: localVarHeaderParams,
|
|
724
|
+
uri: localVarPath,
|
|
725
|
+
useQuerystring: this._useQuerystring,
|
|
726
|
+
agentOptions: { keepAlive: false },
|
|
727
|
+
json: true,
|
|
728
|
+
body: models_1.ObjectSerializer.serialize(adminCreateProjectRequest, "AdminCreateProjectRequest")
|
|
729
|
+
};
|
|
730
|
+
let authenticationPromise = Promise.resolve();
|
|
731
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.ApiKeyAuthentication.applyToRequest(localVarRequestOptions));
|
|
732
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.JWTAuthentication.applyToRequest(localVarRequestOptions));
|
|
733
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.JWTHttpHeaderAuthentication.applyToRequest(localVarRequestOptions));
|
|
734
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
|
|
735
|
+
return authenticationPromise.then(() => {
|
|
736
|
+
if (Object.keys(localVarFormParams).length) {
|
|
737
|
+
if (localVarUseFormData) {
|
|
738
|
+
localVarRequestOptions.formData = localVarFormParams;
|
|
739
|
+
}
|
|
740
|
+
else {
|
|
741
|
+
localVarRequestOptions.form = localVarFormParams;
|
|
742
|
+
}
|
|
743
|
+
}
|
|
744
|
+
return new Promise((resolve, reject) => {
|
|
745
|
+
localVarRequest(localVarRequestOptions, (error, response, body) => {
|
|
746
|
+
if (error) {
|
|
747
|
+
reject(error);
|
|
748
|
+
}
|
|
749
|
+
else {
|
|
750
|
+
body = models_1.ObjectSerializer.deserialize(body, "CreateProjectResponse");
|
|
751
|
+
const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
|
|
752
|
+
if (typeof body.success === 'boolean' && !body.success) {
|
|
753
|
+
reject(new Error(body.error || errString));
|
|
754
|
+
}
|
|
755
|
+
else if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
756
|
+
resolve(body);
|
|
757
|
+
}
|
|
758
|
+
else {
|
|
759
|
+
reject(errString);
|
|
760
|
+
}
|
|
761
|
+
}
|
|
762
|
+
});
|
|
763
|
+
});
|
|
764
|
+
});
|
|
765
|
+
}
|
|
525
766
|
/**
|
|
526
767
|
* Admin-only API to create an enterprise trial for a user.
|
|
527
768
|
* @summary Create user enterprise trial
|
|
@@ -658,7 +899,386 @@ class AdminApi {
|
|
|
658
899
|
reject(error);
|
|
659
900
|
}
|
|
660
901
|
else {
|
|
661
|
-
body = models_1.ObjectSerializer.deserialize(body, "GenericApiResponse");
|
|
902
|
+
body = models_1.ObjectSerializer.deserialize(body, "GenericApiResponse");
|
|
903
|
+
const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
|
|
904
|
+
if (typeof body.success === 'boolean' && !body.success) {
|
|
905
|
+
reject(new Error(body.error || errString));
|
|
906
|
+
}
|
|
907
|
+
else if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
908
|
+
resolve(body);
|
|
909
|
+
}
|
|
910
|
+
else {
|
|
911
|
+
reject(errString);
|
|
912
|
+
}
|
|
913
|
+
}
|
|
914
|
+
});
|
|
915
|
+
});
|
|
916
|
+
});
|
|
917
|
+
}
|
|
918
|
+
/**
|
|
919
|
+
* Admin-only API to delete an organization. If `fullDeletion` is set, it deletes the organization\'s identifiable information and files. Otherwise, it soft deletes the organization by setting its `delete_date` value.
|
|
920
|
+
* @summary Delete an organization
|
|
921
|
+
* @param organizationId Organization ID
|
|
922
|
+
* @param fullDeletion Set to true for full deletion
|
|
923
|
+
*/
|
|
924
|
+
async adminDeleteOrganization(organizationId, queryParams, options = { headers: {} }) {
|
|
925
|
+
const localVarPath = this.basePath + '/api/admin/organizations/{organizationId}'
|
|
926
|
+
.replace('{' + 'organizationId' + '}', encodeURIComponent(String(organizationId)));
|
|
927
|
+
let localVarQueryParameters = {};
|
|
928
|
+
let localVarHeaderParams = Object.assign({
|
|
929
|
+
'User-Agent': 'edgeimpulse-api nodejs'
|
|
930
|
+
}, this.defaultHeaders);
|
|
931
|
+
const produces = ['application/json'];
|
|
932
|
+
// give precedence to 'application/json'
|
|
933
|
+
if (produces.indexOf('application/json') >= 0) {
|
|
934
|
+
localVarHeaderParams.Accept = 'application/json';
|
|
935
|
+
}
|
|
936
|
+
else {
|
|
937
|
+
localVarHeaderParams.Accept = produces.join(',');
|
|
938
|
+
}
|
|
939
|
+
let localVarFormParams = {};
|
|
940
|
+
// verify required parameter 'organizationId' is not null or undefined
|
|
941
|
+
if (organizationId === null || organizationId === undefined) {
|
|
942
|
+
throw new Error('Required parameter organizationId was null or undefined when calling adminDeleteOrganization.');
|
|
943
|
+
}
|
|
944
|
+
if (queryParams.fullDeletion !== undefined) {
|
|
945
|
+
localVarQueryParameters['fullDeletion'] = models_1.ObjectSerializer.serialize(queryParams.fullDeletion, "boolean");
|
|
946
|
+
}
|
|
947
|
+
Object.assign(localVarHeaderParams, options.headers);
|
|
948
|
+
Object.assign(localVarHeaderParams, this.opts.extraHeaders);
|
|
949
|
+
let localVarUseFormData = false;
|
|
950
|
+
let localVarRequestOptions = {
|
|
951
|
+
method: 'DELETE',
|
|
952
|
+
qs: localVarQueryParameters,
|
|
953
|
+
headers: localVarHeaderParams,
|
|
954
|
+
uri: localVarPath,
|
|
955
|
+
useQuerystring: this._useQuerystring,
|
|
956
|
+
agentOptions: { keepAlive: false },
|
|
957
|
+
json: true,
|
|
958
|
+
};
|
|
959
|
+
let authenticationPromise = Promise.resolve();
|
|
960
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.ApiKeyAuthentication.applyToRequest(localVarRequestOptions));
|
|
961
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.JWTAuthentication.applyToRequest(localVarRequestOptions));
|
|
962
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.JWTHttpHeaderAuthentication.applyToRequest(localVarRequestOptions));
|
|
963
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
|
|
964
|
+
return authenticationPromise.then(() => {
|
|
965
|
+
if (Object.keys(localVarFormParams).length) {
|
|
966
|
+
if (localVarUseFormData) {
|
|
967
|
+
localVarRequestOptions.formData = localVarFormParams;
|
|
968
|
+
}
|
|
969
|
+
else {
|
|
970
|
+
localVarRequestOptions.form = localVarFormParams;
|
|
971
|
+
}
|
|
972
|
+
}
|
|
973
|
+
return new Promise((resolve, reject) => {
|
|
974
|
+
localVarRequest(localVarRequestOptions, (error, response, body) => {
|
|
975
|
+
if (error) {
|
|
976
|
+
reject(error);
|
|
977
|
+
}
|
|
978
|
+
else {
|
|
979
|
+
body = models_1.ObjectSerializer.deserialize(body, "GenericApiResponse");
|
|
980
|
+
const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
|
|
981
|
+
if (typeof body.success === 'boolean' && !body.success) {
|
|
982
|
+
reject(new Error(body.error || errString));
|
|
983
|
+
}
|
|
984
|
+
else if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
985
|
+
resolve(body);
|
|
986
|
+
}
|
|
987
|
+
else {
|
|
988
|
+
reject(errString);
|
|
989
|
+
}
|
|
990
|
+
}
|
|
991
|
+
});
|
|
992
|
+
});
|
|
993
|
+
});
|
|
994
|
+
}
|
|
995
|
+
/**
|
|
996
|
+
* Admin-only API to delete a usage report for an organization.
|
|
997
|
+
* @summary Delete usage report
|
|
998
|
+
* @param organizationId Organization ID
|
|
999
|
+
* @param usageReportId Usage report ID
|
|
1000
|
+
*/
|
|
1001
|
+
async adminDeleteOrganizationUsageReport(organizationId, usageReportId, options = { headers: {} }) {
|
|
1002
|
+
const localVarPath = this.basePath + '/api/admin/organizations/{organizationId}/usage/reports/{usageReportId}'
|
|
1003
|
+
.replace('{' + 'organizationId' + '}', encodeURIComponent(String(organizationId)))
|
|
1004
|
+
.replace('{' + 'usageReportId' + '}', encodeURIComponent(String(usageReportId)));
|
|
1005
|
+
let localVarQueryParameters = {};
|
|
1006
|
+
let localVarHeaderParams = Object.assign({
|
|
1007
|
+
'User-Agent': 'edgeimpulse-api nodejs'
|
|
1008
|
+
}, this.defaultHeaders);
|
|
1009
|
+
const produces = ['application/json'];
|
|
1010
|
+
// give precedence to 'application/json'
|
|
1011
|
+
if (produces.indexOf('application/json') >= 0) {
|
|
1012
|
+
localVarHeaderParams.Accept = 'application/json';
|
|
1013
|
+
}
|
|
1014
|
+
else {
|
|
1015
|
+
localVarHeaderParams.Accept = produces.join(',');
|
|
1016
|
+
}
|
|
1017
|
+
let localVarFormParams = {};
|
|
1018
|
+
// verify required parameter 'organizationId' is not null or undefined
|
|
1019
|
+
if (organizationId === null || organizationId === undefined) {
|
|
1020
|
+
throw new Error('Required parameter organizationId was null or undefined when calling adminDeleteOrganizationUsageReport.');
|
|
1021
|
+
}
|
|
1022
|
+
// verify required parameter 'usageReportId' is not null or undefined
|
|
1023
|
+
if (usageReportId === null || usageReportId === undefined) {
|
|
1024
|
+
throw new Error('Required parameter usageReportId was null or undefined when calling adminDeleteOrganizationUsageReport.');
|
|
1025
|
+
}
|
|
1026
|
+
Object.assign(localVarHeaderParams, options.headers);
|
|
1027
|
+
Object.assign(localVarHeaderParams, this.opts.extraHeaders);
|
|
1028
|
+
let localVarUseFormData = false;
|
|
1029
|
+
let localVarRequestOptions = {
|
|
1030
|
+
method: 'DELETE',
|
|
1031
|
+
qs: localVarQueryParameters,
|
|
1032
|
+
headers: localVarHeaderParams,
|
|
1033
|
+
uri: localVarPath,
|
|
1034
|
+
useQuerystring: this._useQuerystring,
|
|
1035
|
+
agentOptions: { keepAlive: false },
|
|
1036
|
+
json: true,
|
|
1037
|
+
};
|
|
1038
|
+
let authenticationPromise = Promise.resolve();
|
|
1039
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.ApiKeyAuthentication.applyToRequest(localVarRequestOptions));
|
|
1040
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.JWTAuthentication.applyToRequest(localVarRequestOptions));
|
|
1041
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.JWTHttpHeaderAuthentication.applyToRequest(localVarRequestOptions));
|
|
1042
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
|
|
1043
|
+
return authenticationPromise.then(() => {
|
|
1044
|
+
if (Object.keys(localVarFormParams).length) {
|
|
1045
|
+
if (localVarUseFormData) {
|
|
1046
|
+
localVarRequestOptions.formData = localVarFormParams;
|
|
1047
|
+
}
|
|
1048
|
+
else {
|
|
1049
|
+
localVarRequestOptions.form = localVarFormParams;
|
|
1050
|
+
}
|
|
1051
|
+
}
|
|
1052
|
+
return new Promise((resolve, reject) => {
|
|
1053
|
+
localVarRequest(localVarRequestOptions, (error, response, body) => {
|
|
1054
|
+
if (error) {
|
|
1055
|
+
reject(error);
|
|
1056
|
+
}
|
|
1057
|
+
else {
|
|
1058
|
+
body = models_1.ObjectSerializer.deserialize(body, "GenericApiResponse");
|
|
1059
|
+
const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
|
|
1060
|
+
if (typeof body.success === 'boolean' && !body.success) {
|
|
1061
|
+
reject(new Error(body.error || errString));
|
|
1062
|
+
}
|
|
1063
|
+
else if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
1064
|
+
resolve(body);
|
|
1065
|
+
}
|
|
1066
|
+
else {
|
|
1067
|
+
reject(errString);
|
|
1068
|
+
}
|
|
1069
|
+
}
|
|
1070
|
+
});
|
|
1071
|
+
});
|
|
1072
|
+
});
|
|
1073
|
+
}
|
|
1074
|
+
/**
|
|
1075
|
+
* Admin-only API to delete a project.
|
|
1076
|
+
* @summary Delete a project
|
|
1077
|
+
* @param projectId Project ID
|
|
1078
|
+
*/
|
|
1079
|
+
async adminDeleteProject(projectId, options = { headers: {} }) {
|
|
1080
|
+
const localVarPath = this.basePath + '/api/admin/projects/{projectId}'
|
|
1081
|
+
.replace('{' + 'projectId' + '}', encodeURIComponent(String(projectId)));
|
|
1082
|
+
let localVarQueryParameters = {};
|
|
1083
|
+
let localVarHeaderParams = Object.assign({
|
|
1084
|
+
'User-Agent': 'edgeimpulse-api nodejs'
|
|
1085
|
+
}, this.defaultHeaders);
|
|
1086
|
+
const produces = ['application/json'];
|
|
1087
|
+
// give precedence to 'application/json'
|
|
1088
|
+
if (produces.indexOf('application/json') >= 0) {
|
|
1089
|
+
localVarHeaderParams.Accept = 'application/json';
|
|
1090
|
+
}
|
|
1091
|
+
else {
|
|
1092
|
+
localVarHeaderParams.Accept = produces.join(',');
|
|
1093
|
+
}
|
|
1094
|
+
let localVarFormParams = {};
|
|
1095
|
+
// verify required parameter 'projectId' is not null or undefined
|
|
1096
|
+
if (projectId === null || projectId === undefined) {
|
|
1097
|
+
throw new Error('Required parameter projectId was null or undefined when calling adminDeleteProject.');
|
|
1098
|
+
}
|
|
1099
|
+
Object.assign(localVarHeaderParams, options.headers);
|
|
1100
|
+
Object.assign(localVarHeaderParams, this.opts.extraHeaders);
|
|
1101
|
+
let localVarUseFormData = false;
|
|
1102
|
+
let localVarRequestOptions = {
|
|
1103
|
+
method: 'DELETE',
|
|
1104
|
+
qs: localVarQueryParameters,
|
|
1105
|
+
headers: localVarHeaderParams,
|
|
1106
|
+
uri: localVarPath,
|
|
1107
|
+
useQuerystring: this._useQuerystring,
|
|
1108
|
+
agentOptions: { keepAlive: false },
|
|
1109
|
+
json: true,
|
|
1110
|
+
};
|
|
1111
|
+
let authenticationPromise = Promise.resolve();
|
|
1112
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.ApiKeyAuthentication.applyToRequest(localVarRequestOptions));
|
|
1113
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.JWTAuthentication.applyToRequest(localVarRequestOptions));
|
|
1114
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.JWTHttpHeaderAuthentication.applyToRequest(localVarRequestOptions));
|
|
1115
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
|
|
1116
|
+
return authenticationPromise.then(() => {
|
|
1117
|
+
if (Object.keys(localVarFormParams).length) {
|
|
1118
|
+
if (localVarUseFormData) {
|
|
1119
|
+
localVarRequestOptions.formData = localVarFormParams;
|
|
1120
|
+
}
|
|
1121
|
+
else {
|
|
1122
|
+
localVarRequestOptions.form = localVarFormParams;
|
|
1123
|
+
}
|
|
1124
|
+
}
|
|
1125
|
+
return new Promise((resolve, reject) => {
|
|
1126
|
+
localVarRequest(localVarRequestOptions, (error, response, body) => {
|
|
1127
|
+
if (error) {
|
|
1128
|
+
reject(error);
|
|
1129
|
+
}
|
|
1130
|
+
else {
|
|
1131
|
+
body = models_1.ObjectSerializer.deserialize(body, "GenericApiResponse");
|
|
1132
|
+
const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
|
|
1133
|
+
if (typeof body.success === 'boolean' && !body.success) {
|
|
1134
|
+
reject(new Error(body.error || errString));
|
|
1135
|
+
}
|
|
1136
|
+
else if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
1137
|
+
resolve(body);
|
|
1138
|
+
}
|
|
1139
|
+
else {
|
|
1140
|
+
reject(errString);
|
|
1141
|
+
}
|
|
1142
|
+
}
|
|
1143
|
+
});
|
|
1144
|
+
});
|
|
1145
|
+
});
|
|
1146
|
+
}
|
|
1147
|
+
/**
|
|
1148
|
+
* Admin-only API to delete the list of identity providers for a given domain.
|
|
1149
|
+
* @summary Delete SSO settings for a domain
|
|
1150
|
+
* @param domainName Email domain name
|
|
1151
|
+
*/
|
|
1152
|
+
async adminDeleteSSODomainIdPs(domainName, options = { headers: {} }) {
|
|
1153
|
+
const localVarPath = this.basePath + '/api/admin/sso/{domainName}'
|
|
1154
|
+
.replace('{' + 'domainName' + '}', encodeURIComponent(String(domainName)));
|
|
1155
|
+
let localVarQueryParameters = {};
|
|
1156
|
+
let localVarHeaderParams = Object.assign({
|
|
1157
|
+
'User-Agent': 'edgeimpulse-api nodejs'
|
|
1158
|
+
}, this.defaultHeaders);
|
|
1159
|
+
const produces = ['application/json'];
|
|
1160
|
+
// give precedence to 'application/json'
|
|
1161
|
+
if (produces.indexOf('application/json') >= 0) {
|
|
1162
|
+
localVarHeaderParams.Accept = 'application/json';
|
|
1163
|
+
}
|
|
1164
|
+
else {
|
|
1165
|
+
localVarHeaderParams.Accept = produces.join(',');
|
|
1166
|
+
}
|
|
1167
|
+
let localVarFormParams = {};
|
|
1168
|
+
// verify required parameter 'domainName' is not null or undefined
|
|
1169
|
+
if (domainName === null || domainName === undefined) {
|
|
1170
|
+
throw new Error('Required parameter domainName was null or undefined when calling adminDeleteSSODomainIdPs.');
|
|
1171
|
+
}
|
|
1172
|
+
Object.assign(localVarHeaderParams, options.headers);
|
|
1173
|
+
Object.assign(localVarHeaderParams, this.opts.extraHeaders);
|
|
1174
|
+
let localVarUseFormData = false;
|
|
1175
|
+
let localVarRequestOptions = {
|
|
1176
|
+
method: 'DELETE',
|
|
1177
|
+
qs: localVarQueryParameters,
|
|
1178
|
+
headers: localVarHeaderParams,
|
|
1179
|
+
uri: localVarPath,
|
|
1180
|
+
useQuerystring: this._useQuerystring,
|
|
1181
|
+
agentOptions: { keepAlive: false },
|
|
1182
|
+
json: true,
|
|
1183
|
+
};
|
|
1184
|
+
let authenticationPromise = Promise.resolve();
|
|
1185
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.ApiKeyAuthentication.applyToRequest(localVarRequestOptions));
|
|
1186
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.JWTAuthentication.applyToRequest(localVarRequestOptions));
|
|
1187
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.JWTHttpHeaderAuthentication.applyToRequest(localVarRequestOptions));
|
|
1188
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
|
|
1189
|
+
return authenticationPromise.then(() => {
|
|
1190
|
+
if (Object.keys(localVarFormParams).length) {
|
|
1191
|
+
if (localVarUseFormData) {
|
|
1192
|
+
localVarRequestOptions.formData = localVarFormParams;
|
|
1193
|
+
}
|
|
1194
|
+
else {
|
|
1195
|
+
localVarRequestOptions.form = localVarFormParams;
|
|
1196
|
+
}
|
|
1197
|
+
}
|
|
1198
|
+
return new Promise((resolve, reject) => {
|
|
1199
|
+
localVarRequest(localVarRequestOptions, (error, response, body) => {
|
|
1200
|
+
if (error) {
|
|
1201
|
+
reject(error);
|
|
1202
|
+
}
|
|
1203
|
+
else {
|
|
1204
|
+
body = models_1.ObjectSerializer.deserialize(body, "GenericApiResponse");
|
|
1205
|
+
const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
|
|
1206
|
+
if (typeof body.success === 'boolean' && !body.success) {
|
|
1207
|
+
reject(new Error(body.error || errString));
|
|
1208
|
+
}
|
|
1209
|
+
else if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
1210
|
+
resolve(body);
|
|
1211
|
+
}
|
|
1212
|
+
else {
|
|
1213
|
+
reject(errString);
|
|
1214
|
+
}
|
|
1215
|
+
}
|
|
1216
|
+
});
|
|
1217
|
+
});
|
|
1218
|
+
});
|
|
1219
|
+
}
|
|
1220
|
+
/**
|
|
1221
|
+
* Admin-only API to delete a user. If `fullDeletion` is set, it deletes the user\'s identifiable information and files. Otherwise, it soft deletes the user by setting it\'s `delete_date` value.
|
|
1222
|
+
* @summary Delete a user
|
|
1223
|
+
* @param userId User ID
|
|
1224
|
+
* @param fullDeletion Set to true for full deletion
|
|
1225
|
+
*/
|
|
1226
|
+
async adminDeleteUser(userId, queryParams, options = { headers: {} }) {
|
|
1227
|
+
const localVarPath = this.basePath + '/api/admin/users/{userId}'
|
|
1228
|
+
.replace('{' + 'userId' + '}', encodeURIComponent(String(userId)));
|
|
1229
|
+
let localVarQueryParameters = {};
|
|
1230
|
+
let localVarHeaderParams = Object.assign({
|
|
1231
|
+
'User-Agent': 'edgeimpulse-api nodejs'
|
|
1232
|
+
}, this.defaultHeaders);
|
|
1233
|
+
const produces = ['application/json'];
|
|
1234
|
+
// give precedence to 'application/json'
|
|
1235
|
+
if (produces.indexOf('application/json') >= 0) {
|
|
1236
|
+
localVarHeaderParams.Accept = 'application/json';
|
|
1237
|
+
}
|
|
1238
|
+
else {
|
|
1239
|
+
localVarHeaderParams.Accept = produces.join(',');
|
|
1240
|
+
}
|
|
1241
|
+
let localVarFormParams = {};
|
|
1242
|
+
// verify required parameter 'userId' is not null or undefined
|
|
1243
|
+
if (userId === null || userId === undefined) {
|
|
1244
|
+
throw new Error('Required parameter userId was null or undefined when calling adminDeleteUser.');
|
|
1245
|
+
}
|
|
1246
|
+
if (queryParams.fullDeletion !== undefined) {
|
|
1247
|
+
localVarQueryParameters['fullDeletion'] = models_1.ObjectSerializer.serialize(queryParams.fullDeletion, "boolean");
|
|
1248
|
+
}
|
|
1249
|
+
Object.assign(localVarHeaderParams, options.headers);
|
|
1250
|
+
Object.assign(localVarHeaderParams, this.opts.extraHeaders);
|
|
1251
|
+
let localVarUseFormData = false;
|
|
1252
|
+
let localVarRequestOptions = {
|
|
1253
|
+
method: 'DELETE',
|
|
1254
|
+
qs: localVarQueryParameters,
|
|
1255
|
+
headers: localVarHeaderParams,
|
|
1256
|
+
uri: localVarPath,
|
|
1257
|
+
useQuerystring: this._useQuerystring,
|
|
1258
|
+
agentOptions: { keepAlive: false },
|
|
1259
|
+
json: true,
|
|
1260
|
+
};
|
|
1261
|
+
let authenticationPromise = Promise.resolve();
|
|
1262
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.ApiKeyAuthentication.applyToRequest(localVarRequestOptions));
|
|
1263
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.JWTAuthentication.applyToRequest(localVarRequestOptions));
|
|
1264
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.JWTHttpHeaderAuthentication.applyToRequest(localVarRequestOptions));
|
|
1265
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
|
|
1266
|
+
return authenticationPromise.then(() => {
|
|
1267
|
+
if (Object.keys(localVarFormParams).length) {
|
|
1268
|
+
if (localVarUseFormData) {
|
|
1269
|
+
localVarRequestOptions.formData = localVarFormParams;
|
|
1270
|
+
}
|
|
1271
|
+
else {
|
|
1272
|
+
localVarRequestOptions.form = localVarFormParams;
|
|
1273
|
+
}
|
|
1274
|
+
}
|
|
1275
|
+
return new Promise((resolve, reject) => {
|
|
1276
|
+
localVarRequest(localVarRequestOptions, (error, response, body) => {
|
|
1277
|
+
if (error) {
|
|
1278
|
+
reject(error);
|
|
1279
|
+
}
|
|
1280
|
+
else {
|
|
1281
|
+
body = models_1.ObjectSerializer.deserialize(body, "StartJobResponse");
|
|
662
1282
|
const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
|
|
663
1283
|
if (typeof body.success === 'boolean' && !body.success) {
|
|
664
1284
|
reject(new Error(body.error || errString));
|
|
@@ -675,14 +1295,15 @@ class AdminApi {
|
|
|
675
1295
|
});
|
|
676
1296
|
}
|
|
677
1297
|
/**
|
|
678
|
-
* Admin-only API to delete an
|
|
679
|
-
* @summary Delete
|
|
680
|
-
* @param
|
|
681
|
-
* @param
|
|
1298
|
+
* Admin-only API to delete an enterprise trial for a user.
|
|
1299
|
+
* @summary Delete user enterprise trial
|
|
1300
|
+
* @param userId User ID
|
|
1301
|
+
* @param enterpriseTrialId Enterprise trial ID
|
|
682
1302
|
*/
|
|
683
|
-
async
|
|
684
|
-
const localVarPath = this.basePath + '/api/admin/
|
|
685
|
-
.replace('{' + '
|
|
1303
|
+
async adminDeleteUserTrial(userId, enterpriseTrialId, options = { headers: {} }) {
|
|
1304
|
+
const localVarPath = this.basePath + '/api/admin/users/{userId}/trials/{enterpriseTrialId}'
|
|
1305
|
+
.replace('{' + 'userId' + '}', encodeURIComponent(String(userId)))
|
|
1306
|
+
.replace('{' + 'enterpriseTrialId' + '}', encodeURIComponent(String(enterpriseTrialId)));
|
|
686
1307
|
let localVarQueryParameters = {};
|
|
687
1308
|
let localVarHeaderParams = Object.assign({
|
|
688
1309
|
'User-Agent': 'edgeimpulse-api nodejs'
|
|
@@ -696,12 +1317,13 @@ class AdminApi {
|
|
|
696
1317
|
localVarHeaderParams.Accept = produces.join(',');
|
|
697
1318
|
}
|
|
698
1319
|
let localVarFormParams = {};
|
|
699
|
-
// verify required parameter '
|
|
700
|
-
if (
|
|
701
|
-
throw new Error('Required parameter
|
|
1320
|
+
// verify required parameter 'userId' is not null or undefined
|
|
1321
|
+
if (userId === null || userId === undefined) {
|
|
1322
|
+
throw new Error('Required parameter userId was null or undefined when calling adminDeleteUserTrial.');
|
|
702
1323
|
}
|
|
703
|
-
|
|
704
|
-
|
|
1324
|
+
// verify required parameter 'enterpriseTrialId' is not null or undefined
|
|
1325
|
+
if (enterpriseTrialId === null || enterpriseTrialId === undefined) {
|
|
1326
|
+
throw new Error('Required parameter enterpriseTrialId was null or undefined when calling adminDeleteUserTrial.');
|
|
705
1327
|
}
|
|
706
1328
|
Object.assign(localVarHeaderParams, options.headers);
|
|
707
1329
|
Object.assign(localVarHeaderParams, this.opts.extraHeaders);
|
|
@@ -752,13 +1374,13 @@ class AdminApi {
|
|
|
752
1374
|
});
|
|
753
1375
|
}
|
|
754
1376
|
/**
|
|
755
|
-
* Admin-only API to delete a
|
|
756
|
-
* @summary
|
|
757
|
-
* @param
|
|
1377
|
+
* Admin-only API to delete a feature flag. Deleting a feature flag essentially disables the feature for all users.
|
|
1378
|
+
* @summary Set a feature flag OFF
|
|
1379
|
+
* @param featureId Feature ID.
|
|
758
1380
|
*/
|
|
759
|
-
async
|
|
760
|
-
const localVarPath = this.basePath + '/api/admin/
|
|
761
|
-
.replace('{' + '
|
|
1381
|
+
async adminDisableFeature(featureId, options = { headers: {} }) {
|
|
1382
|
+
const localVarPath = this.basePath + '/api/admin/infra/featureFlags/{featureId}'
|
|
1383
|
+
.replace('{' + 'featureId' + '}', encodeURIComponent(String(featureId)));
|
|
762
1384
|
let localVarQueryParameters = {};
|
|
763
1385
|
let localVarHeaderParams = Object.assign({
|
|
764
1386
|
'User-Agent': 'edgeimpulse-api nodejs'
|
|
@@ -772,9 +1394,9 @@ class AdminApi {
|
|
|
772
1394
|
localVarHeaderParams.Accept = produces.join(',');
|
|
773
1395
|
}
|
|
774
1396
|
let localVarFormParams = {};
|
|
775
|
-
// verify required parameter '
|
|
776
|
-
if (
|
|
777
|
-
throw new Error('Required parameter
|
|
1397
|
+
// verify required parameter 'featureId' is not null or undefined
|
|
1398
|
+
if (featureId === null || featureId === undefined) {
|
|
1399
|
+
throw new Error('Required parameter featureId was null or undefined when calling adminDisableFeature.');
|
|
778
1400
|
}
|
|
779
1401
|
Object.assign(localVarHeaderParams, options.headers);
|
|
780
1402
|
Object.assign(localVarHeaderParams, this.opts.extraHeaders);
|
|
@@ -825,35 +1447,33 @@ class AdminApi {
|
|
|
825
1447
|
});
|
|
826
1448
|
}
|
|
827
1449
|
/**
|
|
828
|
-
* Admin-only API to
|
|
829
|
-
* @summary
|
|
830
|
-
* @param
|
|
1450
|
+
* Admin-only API to download a usage report for an organization.
|
|
1451
|
+
* @summary Download usage report
|
|
1452
|
+
* @param organizationId Organization ID
|
|
1453
|
+
* @param usageReportId Usage report ID
|
|
831
1454
|
*/
|
|
832
|
-
async
|
|
833
|
-
const localVarPath = this.basePath + '/api/admin/
|
|
834
|
-
.replace('{' + '
|
|
1455
|
+
async adminDownloadOrganizationUsageReport(organizationId, usageReportId, options = { headers: {} }) {
|
|
1456
|
+
const localVarPath = this.basePath + '/api/admin/organizations/{organizationId}/usage/reports/{usageReportId}/download'
|
|
1457
|
+
.replace('{' + 'organizationId' + '}', encodeURIComponent(String(organizationId)))
|
|
1458
|
+
.replace('{' + 'usageReportId' + '}', encodeURIComponent(String(usageReportId)));
|
|
835
1459
|
let localVarQueryParameters = {};
|
|
836
1460
|
let localVarHeaderParams = Object.assign({
|
|
837
1461
|
'User-Agent': 'edgeimpulse-api nodejs'
|
|
838
1462
|
}, this.defaultHeaders);
|
|
839
|
-
const produces = ['application/json'];
|
|
840
|
-
// give precedence to 'application/json'
|
|
841
|
-
if (produces.indexOf('application/json') >= 0) {
|
|
842
|
-
localVarHeaderParams.Accept = 'application/json';
|
|
843
|
-
}
|
|
844
|
-
else {
|
|
845
|
-
localVarHeaderParams.Accept = produces.join(',');
|
|
846
|
-
}
|
|
847
1463
|
let localVarFormParams = {};
|
|
848
|
-
// verify required parameter '
|
|
849
|
-
if (
|
|
850
|
-
throw new Error('Required parameter
|
|
1464
|
+
// verify required parameter 'organizationId' is not null or undefined
|
|
1465
|
+
if (organizationId === null || organizationId === undefined) {
|
|
1466
|
+
throw new Error('Required parameter organizationId was null or undefined when calling adminDownloadOrganizationUsageReport.');
|
|
1467
|
+
}
|
|
1468
|
+
// verify required parameter 'usageReportId' is not null or undefined
|
|
1469
|
+
if (usageReportId === null || usageReportId === undefined) {
|
|
1470
|
+
throw new Error('Required parameter usageReportId was null or undefined when calling adminDownloadOrganizationUsageReport.');
|
|
851
1471
|
}
|
|
852
1472
|
Object.assign(localVarHeaderParams, options.headers);
|
|
853
1473
|
Object.assign(localVarHeaderParams, this.opts.extraHeaders);
|
|
854
1474
|
let localVarUseFormData = false;
|
|
855
1475
|
let localVarRequestOptions = {
|
|
856
|
-
method: '
|
|
1476
|
+
method: 'GET',
|
|
857
1477
|
qs: localVarQueryParameters,
|
|
858
1478
|
headers: localVarHeaderParams,
|
|
859
1479
|
uri: localVarPath,
|
|
@@ -881,7 +1501,6 @@ class AdminApi {
|
|
|
881
1501
|
reject(error);
|
|
882
1502
|
}
|
|
883
1503
|
else {
|
|
884
|
-
body = models_1.ObjectSerializer.deserialize(body, "GenericApiResponse");
|
|
885
1504
|
const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
|
|
886
1505
|
if (typeof body.success === 'boolean' && !body.success) {
|
|
887
1506
|
reject(new Error(body.error || errString));
|
|
@@ -898,14 +1517,13 @@ class AdminApi {
|
|
|
898
1517
|
});
|
|
899
1518
|
}
|
|
900
1519
|
/**
|
|
901
|
-
* Admin-only API to
|
|
902
|
-
* @summary
|
|
903
|
-
* @param
|
|
904
|
-
* @param fullDeletion Set to true for full deletion
|
|
1520
|
+
* Admin-only API to set a feature flag ON. Setting a feature flag ON essentially enables the feature for all users.
|
|
1521
|
+
* @summary Set a feature flag ON
|
|
1522
|
+
* @param featureId Feature ID.
|
|
905
1523
|
*/
|
|
906
|
-
async
|
|
907
|
-
const localVarPath = this.basePath + '/api/admin/
|
|
908
|
-
.replace('{' + '
|
|
1524
|
+
async adminEnableFeature(featureId, options = { headers: {} }) {
|
|
1525
|
+
const localVarPath = this.basePath + '/api/admin/infra/featureFlags/{featureId}'
|
|
1526
|
+
.replace('{' + 'featureId' + '}', encodeURIComponent(String(featureId)));
|
|
909
1527
|
let localVarQueryParameters = {};
|
|
910
1528
|
let localVarHeaderParams = Object.assign({
|
|
911
1529
|
'User-Agent': 'edgeimpulse-api nodejs'
|
|
@@ -919,18 +1537,15 @@ class AdminApi {
|
|
|
919
1537
|
localVarHeaderParams.Accept = produces.join(',');
|
|
920
1538
|
}
|
|
921
1539
|
let localVarFormParams = {};
|
|
922
|
-
// verify required parameter '
|
|
923
|
-
if (
|
|
924
|
-
throw new Error('Required parameter
|
|
925
|
-
}
|
|
926
|
-
if (queryParams.fullDeletion !== undefined) {
|
|
927
|
-
localVarQueryParameters['fullDeletion'] = models_1.ObjectSerializer.serialize(queryParams.fullDeletion, "boolean");
|
|
1540
|
+
// verify required parameter 'featureId' is not null or undefined
|
|
1541
|
+
if (featureId === null || featureId === undefined) {
|
|
1542
|
+
throw new Error('Required parameter featureId was null or undefined when calling adminEnableFeature.');
|
|
928
1543
|
}
|
|
929
1544
|
Object.assign(localVarHeaderParams, options.headers);
|
|
930
1545
|
Object.assign(localVarHeaderParams, this.opts.extraHeaders);
|
|
931
1546
|
let localVarUseFormData = false;
|
|
932
1547
|
let localVarRequestOptions = {
|
|
933
|
-
method: '
|
|
1548
|
+
method: 'PUT',
|
|
934
1549
|
qs: localVarQueryParameters,
|
|
935
1550
|
headers: localVarHeaderParams,
|
|
936
1551
|
uri: localVarPath,
|
|
@@ -975,15 +1590,12 @@ class AdminApi {
|
|
|
975
1590
|
});
|
|
976
1591
|
}
|
|
977
1592
|
/**
|
|
978
|
-
* Admin-only API to
|
|
979
|
-
* @summary
|
|
980
|
-
* @param
|
|
981
|
-
* @param enterpriseTrialId Enterprise trial ID
|
|
1593
|
+
* DEPRECATED. Admin-only API to find a user by username or email address.
|
|
1594
|
+
* @summary Find a user
|
|
1595
|
+
* @param query Part of e-mail address or username
|
|
982
1596
|
*/
|
|
983
|
-
async
|
|
984
|
-
const localVarPath = this.basePath + '/api/admin/
|
|
985
|
-
.replace('{' + 'userId' + '}', encodeURIComponent(String(userId)))
|
|
986
|
-
.replace('{' + 'enterpriseTrialId' + '}', encodeURIComponent(String(enterpriseTrialId)));
|
|
1597
|
+
async adminFindUser(queryParams, options = { headers: {} }) {
|
|
1598
|
+
const localVarPath = this.basePath + '/api/admin/find-user';
|
|
987
1599
|
let localVarQueryParameters = {};
|
|
988
1600
|
let localVarHeaderParams = Object.assign({
|
|
989
1601
|
'User-Agent': 'edgeimpulse-api nodejs'
|
|
@@ -997,19 +1609,18 @@ class AdminApi {
|
|
|
997
1609
|
localVarHeaderParams.Accept = produces.join(',');
|
|
998
1610
|
}
|
|
999
1611
|
let localVarFormParams = {};
|
|
1000
|
-
// verify required parameter '
|
|
1001
|
-
if (
|
|
1002
|
-
throw new Error('Required parameter
|
|
1612
|
+
// verify required parameter 'query' is not null or undefined
|
|
1613
|
+
if (queryParams.query === null || queryParams.query === undefined) {
|
|
1614
|
+
throw new Error('Required parameter queryParams.query was null or undefined when calling adminFindUser.');
|
|
1003
1615
|
}
|
|
1004
|
-
|
|
1005
|
-
|
|
1006
|
-
throw new Error('Required parameter enterpriseTrialId was null or undefined when calling adminDeleteUserTrial.');
|
|
1616
|
+
if (queryParams.query !== undefined) {
|
|
1617
|
+
localVarQueryParameters['query'] = models_1.ObjectSerializer.serialize(queryParams.query, "string");
|
|
1007
1618
|
}
|
|
1008
1619
|
Object.assign(localVarHeaderParams, options.headers);
|
|
1009
1620
|
Object.assign(localVarHeaderParams, this.opts.extraHeaders);
|
|
1010
1621
|
let localVarUseFormData = false;
|
|
1011
1622
|
let localVarRequestOptions = {
|
|
1012
|
-
method: '
|
|
1623
|
+
method: 'GET',
|
|
1013
1624
|
qs: localVarQueryParameters,
|
|
1014
1625
|
headers: localVarHeaderParams,
|
|
1015
1626
|
uri: localVarPath,
|
|
@@ -1037,7 +1648,7 @@ class AdminApi {
|
|
|
1037
1648
|
reject(error);
|
|
1038
1649
|
}
|
|
1039
1650
|
else {
|
|
1040
|
-
body = models_1.ObjectSerializer.deserialize(body, "
|
|
1651
|
+
body = models_1.ObjectSerializer.deserialize(body, "FindUserResponse");
|
|
1041
1652
|
const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
|
|
1042
1653
|
if (typeof body.success === 'boolean' && !body.success) {
|
|
1043
1654
|
reject(new Error(body.error || errString));
|
|
@@ -1054,13 +1665,11 @@ class AdminApi {
|
|
|
1054
1665
|
});
|
|
1055
1666
|
}
|
|
1056
1667
|
/**
|
|
1057
|
-
* Admin-only API to
|
|
1058
|
-
* @summary
|
|
1059
|
-
* @param featureId Feature ID.
|
|
1668
|
+
* DEPRECATED. Admin-only API to get list of all users that have been active in the past 30 days.
|
|
1669
|
+
* @summary Get all user IDs (active last 30 days)
|
|
1060
1670
|
*/
|
|
1061
|
-
async
|
|
1062
|
-
const localVarPath = this.basePath + '/api/admin/
|
|
1063
|
-
.replace('{' + 'featureId' + '}', encodeURIComponent(String(featureId)));
|
|
1671
|
+
async adminGetAllActiveUserIds(options = { headers: {} }) {
|
|
1672
|
+
const localVarPath = this.basePath + '/api/admin/users-ids/active';
|
|
1064
1673
|
let localVarQueryParameters = {};
|
|
1065
1674
|
let localVarHeaderParams = Object.assign({
|
|
1066
1675
|
'User-Agent': 'edgeimpulse-api nodejs'
|
|
@@ -1074,15 +1683,11 @@ class AdminApi {
|
|
|
1074
1683
|
localVarHeaderParams.Accept = produces.join(',');
|
|
1075
1684
|
}
|
|
1076
1685
|
let localVarFormParams = {};
|
|
1077
|
-
// verify required parameter 'featureId' is not null or undefined
|
|
1078
|
-
if (featureId === null || featureId === undefined) {
|
|
1079
|
-
throw new Error('Required parameter featureId was null or undefined when calling adminDisableFeature.');
|
|
1080
|
-
}
|
|
1081
1686
|
Object.assign(localVarHeaderParams, options.headers);
|
|
1082
1687
|
Object.assign(localVarHeaderParams, this.opts.extraHeaders);
|
|
1083
1688
|
let localVarUseFormData = false;
|
|
1084
1689
|
let localVarRequestOptions = {
|
|
1085
|
-
method: '
|
|
1690
|
+
method: 'GET',
|
|
1086
1691
|
qs: localVarQueryParameters,
|
|
1087
1692
|
headers: localVarHeaderParams,
|
|
1088
1693
|
uri: localVarPath,
|
|
@@ -1110,7 +1715,7 @@ class AdminApi {
|
|
|
1110
1715
|
reject(error);
|
|
1111
1716
|
}
|
|
1112
1717
|
else {
|
|
1113
|
-
body = models_1.ObjectSerializer.deserialize(body, "
|
|
1718
|
+
body = models_1.ObjectSerializer.deserialize(body, "AdminGetUserIdsResponse");
|
|
1114
1719
|
const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
|
|
1115
1720
|
if (typeof body.success === 'boolean' && !body.success) {
|
|
1116
1721
|
reject(new Error(body.error || errString));
|
|
@@ -1127,13 +1732,11 @@ class AdminApi {
|
|
|
1127
1732
|
});
|
|
1128
1733
|
}
|
|
1129
1734
|
/**
|
|
1130
|
-
* Admin-only API to
|
|
1131
|
-
* @summary
|
|
1132
|
-
* @param featureId Feature ID.
|
|
1735
|
+
* DEPRECATED. Admin-only API to get list of all users.
|
|
1736
|
+
* @summary Get all user IDs
|
|
1133
1737
|
*/
|
|
1134
|
-
async
|
|
1135
|
-
const localVarPath = this.basePath + '/api/admin/
|
|
1136
|
-
.replace('{' + 'featureId' + '}', encodeURIComponent(String(featureId)));
|
|
1738
|
+
async adminGetAllUserIds(options = { headers: {} }) {
|
|
1739
|
+
const localVarPath = this.basePath + '/api/admin/users-ids';
|
|
1137
1740
|
let localVarQueryParameters = {};
|
|
1138
1741
|
let localVarHeaderParams = Object.assign({
|
|
1139
1742
|
'User-Agent': 'edgeimpulse-api nodejs'
|
|
@@ -1147,15 +1750,11 @@ class AdminApi {
|
|
|
1147
1750
|
localVarHeaderParams.Accept = produces.join(',');
|
|
1148
1751
|
}
|
|
1149
1752
|
let localVarFormParams = {};
|
|
1150
|
-
// verify required parameter 'featureId' is not null or undefined
|
|
1151
|
-
if (featureId === null || featureId === undefined) {
|
|
1152
|
-
throw new Error('Required parameter featureId was null or undefined when calling adminEnableFeature.');
|
|
1153
|
-
}
|
|
1154
1753
|
Object.assign(localVarHeaderParams, options.headers);
|
|
1155
1754
|
Object.assign(localVarHeaderParams, this.opts.extraHeaders);
|
|
1156
1755
|
let localVarUseFormData = false;
|
|
1157
1756
|
let localVarRequestOptions = {
|
|
1158
|
-
method: '
|
|
1757
|
+
method: 'GET',
|
|
1159
1758
|
qs: localVarQueryParameters,
|
|
1160
1759
|
headers: localVarHeaderParams,
|
|
1161
1760
|
uri: localVarPath,
|
|
@@ -1183,7 +1782,7 @@ class AdminApi {
|
|
|
1183
1782
|
reject(error);
|
|
1184
1783
|
}
|
|
1185
1784
|
else {
|
|
1186
|
-
body = models_1.ObjectSerializer.deserialize(body, "
|
|
1785
|
+
body = models_1.ObjectSerializer.deserialize(body, "AdminGetUserIdsResponse");
|
|
1187
1786
|
const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
|
|
1188
1787
|
if (typeof body.success === 'boolean' && !body.success) {
|
|
1189
1788
|
reject(new Error(body.error || errString));
|
|
@@ -1200,12 +1799,13 @@ class AdminApi {
|
|
|
1200
1799
|
});
|
|
1201
1800
|
}
|
|
1202
1801
|
/**
|
|
1203
|
-
*
|
|
1204
|
-
* @summary
|
|
1205
|
-
* @param
|
|
1802
|
+
* Admin-only API to get a data migration.
|
|
1803
|
+
* @summary Get data migration
|
|
1804
|
+
* @param migrationId Data migration ID
|
|
1206
1805
|
*/
|
|
1207
|
-
async
|
|
1208
|
-
const localVarPath = this.basePath + '/api/admin/
|
|
1806
|
+
async adminGetDataMigration(migrationId, options = { headers: {} }) {
|
|
1807
|
+
const localVarPath = this.basePath + '/api/admin/infra/migrations/{migrationId}'
|
|
1808
|
+
.replace('{' + 'migrationId' + '}', encodeURIComponent(String(migrationId)));
|
|
1209
1809
|
let localVarQueryParameters = {};
|
|
1210
1810
|
let localVarHeaderParams = Object.assign({
|
|
1211
1811
|
'User-Agent': 'edgeimpulse-api nodejs'
|
|
@@ -1219,12 +1819,9 @@ class AdminApi {
|
|
|
1219
1819
|
localVarHeaderParams.Accept = produces.join(',');
|
|
1220
1820
|
}
|
|
1221
1821
|
let localVarFormParams = {};
|
|
1222
|
-
// verify required parameter '
|
|
1223
|
-
if (
|
|
1224
|
-
throw new Error('Required parameter
|
|
1225
|
-
}
|
|
1226
|
-
if (queryParams.query !== undefined) {
|
|
1227
|
-
localVarQueryParameters['query'] = models_1.ObjectSerializer.serialize(queryParams.query, "string");
|
|
1822
|
+
// verify required parameter 'migrationId' is not null or undefined
|
|
1823
|
+
if (migrationId === null || migrationId === undefined) {
|
|
1824
|
+
throw new Error('Required parameter migrationId was null or undefined when calling adminGetDataMigration.');
|
|
1228
1825
|
}
|
|
1229
1826
|
Object.assign(localVarHeaderParams, options.headers);
|
|
1230
1827
|
Object.assign(localVarHeaderParams, this.opts.extraHeaders);
|
|
@@ -1258,7 +1855,7 @@ class AdminApi {
|
|
|
1258
1855
|
reject(error);
|
|
1259
1856
|
}
|
|
1260
1857
|
else {
|
|
1261
|
-
body = models_1.ObjectSerializer.deserialize(body, "
|
|
1858
|
+
body = models_1.ObjectSerializer.deserialize(body, "AdminGetDataMigrationResponse");
|
|
1262
1859
|
const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
|
|
1263
1860
|
if (typeof body.success === 'boolean' && !body.success) {
|
|
1264
1861
|
reject(new Error(body.error || errString));
|
|
@@ -1275,11 +1872,11 @@ class AdminApi {
|
|
|
1275
1872
|
});
|
|
1276
1873
|
}
|
|
1277
1874
|
/**
|
|
1278
|
-
*
|
|
1279
|
-
* @summary Get
|
|
1875
|
+
* Admin-only API to get data migrations.
|
|
1876
|
+
* @summary Get data migrations
|
|
1280
1877
|
*/
|
|
1281
|
-
async
|
|
1282
|
-
const localVarPath = this.basePath + '/api/admin/
|
|
1878
|
+
async adminGetDataMigrations(options = { headers: {} }) {
|
|
1879
|
+
const localVarPath = this.basePath + '/api/admin/infra/migrations';
|
|
1283
1880
|
let localVarQueryParameters = {};
|
|
1284
1881
|
let localVarHeaderParams = Object.assign({
|
|
1285
1882
|
'User-Agent': 'edgeimpulse-api nodejs'
|
|
@@ -1325,7 +1922,7 @@ class AdminApi {
|
|
|
1325
1922
|
reject(error);
|
|
1326
1923
|
}
|
|
1327
1924
|
else {
|
|
1328
|
-
body = models_1.ObjectSerializer.deserialize(body, "
|
|
1925
|
+
body = models_1.ObjectSerializer.deserialize(body, "AdminGetDataMigrationsResponse");
|
|
1329
1926
|
const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
|
|
1330
1927
|
if (typeof body.success === 'boolean' && !body.success) {
|
|
1331
1928
|
reject(new Error(body.error || errString));
|
|
@@ -1342,11 +1939,11 @@ class AdminApi {
|
|
|
1342
1939
|
});
|
|
1343
1940
|
}
|
|
1344
1941
|
/**
|
|
1345
|
-
*
|
|
1346
|
-
* @summary Get
|
|
1942
|
+
* Admin-only API to get the list of disallowed email domains.
|
|
1943
|
+
* @summary Get the list of disallowed email domains
|
|
1347
1944
|
*/
|
|
1348
|
-
async
|
|
1349
|
-
const localVarPath = this.basePath + '/api/admin/
|
|
1945
|
+
async adminGetDisallowedEmailDomains(options = { headers: {} }) {
|
|
1946
|
+
const localVarPath = this.basePath + '/api/admin/infra/disallowedEmailDomains';
|
|
1350
1947
|
let localVarQueryParameters = {};
|
|
1351
1948
|
let localVarHeaderParams = Object.assign({
|
|
1352
1949
|
'User-Agent': 'edgeimpulse-api nodejs'
|
|
@@ -1392,7 +1989,7 @@ class AdminApi {
|
|
|
1392
1989
|
reject(error);
|
|
1393
1990
|
}
|
|
1394
1991
|
else {
|
|
1395
|
-
body = models_1.ObjectSerializer.deserialize(body, "
|
|
1992
|
+
body = models_1.ObjectSerializer.deserialize(body, "AdminGetDisallowedEmailDomainsResponse");
|
|
1396
1993
|
const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
|
|
1397
1994
|
if (typeof body.success === 'boolean' && !body.success) {
|
|
1398
1995
|
reject(new Error(body.error || errString));
|
|
@@ -1409,13 +2006,13 @@ class AdminApi {
|
|
|
1409
2006
|
});
|
|
1410
2007
|
}
|
|
1411
2008
|
/**
|
|
1412
|
-
*
|
|
1413
|
-
* @summary Get
|
|
1414
|
-
* @param
|
|
2009
|
+
* Get the enterprise trial verification code of the specified email.
|
|
2010
|
+
* @summary Get enterprise trial email verification code
|
|
2011
|
+
* @param email Email address
|
|
1415
2012
|
*/
|
|
1416
|
-
async
|
|
1417
|
-
const localVarPath = this.basePath + '/api/admin/
|
|
1418
|
-
.replace('{' + '
|
|
2013
|
+
async adminGetEmailVerificationCode(email, options = { headers: {} }) {
|
|
2014
|
+
const localVarPath = this.basePath + '/api/admin/emails/{email}/verification-code'
|
|
2015
|
+
.replace('{' + 'email' + '}', encodeURIComponent(String(email)));
|
|
1419
2016
|
let localVarQueryParameters = {};
|
|
1420
2017
|
let localVarHeaderParams = Object.assign({
|
|
1421
2018
|
'User-Agent': 'edgeimpulse-api nodejs'
|
|
@@ -1429,9 +2026,9 @@ class AdminApi {
|
|
|
1429
2026
|
localVarHeaderParams.Accept = produces.join(',');
|
|
1430
2027
|
}
|
|
1431
2028
|
let localVarFormParams = {};
|
|
1432
|
-
// verify required parameter '
|
|
1433
|
-
if (
|
|
1434
|
-
throw new Error('Required parameter
|
|
2029
|
+
// verify required parameter 'email' is not null or undefined
|
|
2030
|
+
if (email === null || email === undefined) {
|
|
2031
|
+
throw new Error('Required parameter email was null or undefined when calling adminGetEmailVerificationCode.');
|
|
1435
2032
|
}
|
|
1436
2033
|
Object.assign(localVarHeaderParams, options.headers);
|
|
1437
2034
|
Object.assign(localVarHeaderParams, this.opts.extraHeaders);
|
|
@@ -1465,7 +2062,7 @@ class AdminApi {
|
|
|
1465
2062
|
reject(error);
|
|
1466
2063
|
}
|
|
1467
2064
|
else {
|
|
1468
|
-
body = models_1.ObjectSerializer.deserialize(body, "
|
|
2065
|
+
body = models_1.ObjectSerializer.deserialize(body, "GetEmailVerificationCodeResponse");
|
|
1469
2066
|
const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
|
|
1470
2067
|
if (typeof body.success === 'boolean' && !body.success) {
|
|
1471
2068
|
reject(new Error(body.error || errString));
|
|
@@ -1482,11 +2079,11 @@ class AdminApi {
|
|
|
1482
2079
|
});
|
|
1483
2080
|
}
|
|
1484
2081
|
/**
|
|
1485
|
-
* Admin-only API to get
|
|
1486
|
-
* @summary Get
|
|
2082
|
+
* Admin-only API to get all feature flags.
|
|
2083
|
+
* @summary Get all feature flags
|
|
1487
2084
|
*/
|
|
1488
|
-
async
|
|
1489
|
-
const localVarPath = this.basePath + '/api/admin/infra/
|
|
2085
|
+
async adminGetFeatureFlags(options = { headers: {} }) {
|
|
2086
|
+
const localVarPath = this.basePath + '/api/admin/infra/featureFlags';
|
|
1490
2087
|
let localVarQueryParameters = {};
|
|
1491
2088
|
let localVarHeaderParams = Object.assign({
|
|
1492
2089
|
'User-Agent': 'edgeimpulse-api nodejs'
|
|
@@ -1532,7 +2129,7 @@ class AdminApi {
|
|
|
1532
2129
|
reject(error);
|
|
1533
2130
|
}
|
|
1534
2131
|
else {
|
|
1535
|
-
body = models_1.ObjectSerializer.deserialize(body, "
|
|
2132
|
+
body = models_1.ObjectSerializer.deserialize(body, "GetFeatureFlagsResponse");
|
|
1536
2133
|
const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
|
|
1537
2134
|
if (typeof body.success === 'boolean' && !body.success) {
|
|
1538
2135
|
reject(new Error(body.error || errString));
|
|
@@ -1549,11 +2146,15 @@ class AdminApi {
|
|
|
1549
2146
|
});
|
|
1550
2147
|
}
|
|
1551
2148
|
/**
|
|
1552
|
-
*
|
|
1553
|
-
* @summary Get
|
|
2149
|
+
* Get the job execution details including inner jobs
|
|
2150
|
+
* @summary Get job execution details
|
|
2151
|
+
* @param jobId Job ID
|
|
2152
|
+
* @param parentType Job parent type (project, organization, or standalone)
|
|
2153
|
+
* @param includeChildrenJobs Include the details of each of the children jobs (recursively)
|
|
1554
2154
|
*/
|
|
1555
|
-
async
|
|
1556
|
-
const localVarPath = this.basePath + '/api/admin/
|
|
2155
|
+
async adminGetJobDetails(jobId, queryParams, options = { headers: {} }) {
|
|
2156
|
+
const localVarPath = this.basePath + '/api/admin/jobs/{jobId}/details'
|
|
2157
|
+
.replace('{' + 'jobId' + '}', encodeURIComponent(String(jobId)));
|
|
1557
2158
|
let localVarQueryParameters = {};
|
|
1558
2159
|
let localVarHeaderParams = Object.assign({
|
|
1559
2160
|
'User-Agent': 'edgeimpulse-api nodejs'
|
|
@@ -1563,10 +2164,24 @@ class AdminApi {
|
|
|
1563
2164
|
if (produces.indexOf('application/json') >= 0) {
|
|
1564
2165
|
localVarHeaderParams.Accept = 'application/json';
|
|
1565
2166
|
}
|
|
1566
|
-
else {
|
|
1567
|
-
localVarHeaderParams.Accept = produces.join(',');
|
|
2167
|
+
else {
|
|
2168
|
+
localVarHeaderParams.Accept = produces.join(',');
|
|
2169
|
+
}
|
|
2170
|
+
let localVarFormParams = {};
|
|
2171
|
+
// verify required parameter 'jobId' is not null or undefined
|
|
2172
|
+
if (jobId === null || jobId === undefined) {
|
|
2173
|
+
throw new Error('Required parameter jobId was null or undefined when calling adminGetJobDetails.');
|
|
2174
|
+
}
|
|
2175
|
+
// verify required parameter 'parentType' is not null or undefined
|
|
2176
|
+
if (queryParams.parentType === null || queryParams.parentType === undefined) {
|
|
2177
|
+
throw new Error('Required parameter queryParams.parentType was null or undefined when calling adminGetJobDetails.');
|
|
2178
|
+
}
|
|
2179
|
+
if (queryParams.parentType !== undefined) {
|
|
2180
|
+
localVarQueryParameters['parentType'] = models_1.ObjectSerializer.serialize(queryParams.parentType, "JobParentTypeEnum");
|
|
2181
|
+
}
|
|
2182
|
+
if (queryParams.includeChildrenJobs !== undefined) {
|
|
2183
|
+
localVarQueryParameters['includeChildrenJobs'] = models_1.ObjectSerializer.serialize(queryParams.includeChildrenJobs, "boolean");
|
|
1568
2184
|
}
|
|
1569
|
-
let localVarFormParams = {};
|
|
1570
2185
|
Object.assign(localVarHeaderParams, options.headers);
|
|
1571
2186
|
Object.assign(localVarHeaderParams, this.opts.extraHeaders);
|
|
1572
2187
|
let localVarUseFormData = false;
|
|
@@ -1599,7 +2214,7 @@ class AdminApi {
|
|
|
1599
2214
|
reject(error);
|
|
1600
2215
|
}
|
|
1601
2216
|
else {
|
|
1602
|
-
body = models_1.ObjectSerializer.deserialize(body, "
|
|
2217
|
+
body = models_1.ObjectSerializer.deserialize(body, "JobDetailsResponse");
|
|
1603
2218
|
const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
|
|
1604
2219
|
if (typeof body.success === 'boolean' && !body.success) {
|
|
1605
2220
|
reject(new Error(body.error || errString));
|
|
@@ -1616,13 +2231,16 @@ class AdminApi {
|
|
|
1616
2231
|
});
|
|
1617
2232
|
}
|
|
1618
2233
|
/**
|
|
1619
|
-
* Get the
|
|
1620
|
-
* @summary Get
|
|
1621
|
-
* @param
|
|
2234
|
+
* Get the logs for a job.
|
|
2235
|
+
* @summary Get job logs
|
|
2236
|
+
* @param jobId Job ID
|
|
2237
|
+
* @param parentType Job parent type (project, organization, or standalone)
|
|
2238
|
+
* @param limit Maximum number of logs
|
|
2239
|
+
* @param offset Start fetching logs from this offset
|
|
1622
2240
|
*/
|
|
1623
|
-
async
|
|
1624
|
-
const localVarPath = this.basePath + '/api/admin/
|
|
1625
|
-
.replace('{' + '
|
|
2241
|
+
async adminGetJobsLogs(jobId, queryParams, options = { headers: {} }) {
|
|
2242
|
+
const localVarPath = this.basePath + '/api/admin/jobs/{jobId}/logs'
|
|
2243
|
+
.replace('{' + 'jobId' + '}', encodeURIComponent(String(jobId)));
|
|
1626
2244
|
let localVarQueryParameters = {};
|
|
1627
2245
|
let localVarHeaderParams = Object.assign({
|
|
1628
2246
|
'User-Agent': 'edgeimpulse-api nodejs'
|
|
@@ -1636,9 +2254,30 @@ class AdminApi {
|
|
|
1636
2254
|
localVarHeaderParams.Accept = produces.join(',');
|
|
1637
2255
|
}
|
|
1638
2256
|
let localVarFormParams = {};
|
|
1639
|
-
// verify required parameter '
|
|
1640
|
-
if (
|
|
1641
|
-
throw new Error('Required parameter
|
|
2257
|
+
// verify required parameter 'jobId' is not null or undefined
|
|
2258
|
+
if (jobId === null || jobId === undefined) {
|
|
2259
|
+
throw new Error('Required parameter jobId was null or undefined when calling adminGetJobsLogs.');
|
|
2260
|
+
}
|
|
2261
|
+
// verify required parameter 'parentType' is not null or undefined
|
|
2262
|
+
if (queryParams.parentType === null || queryParams.parentType === undefined) {
|
|
2263
|
+
throw new Error('Required parameter queryParams.parentType was null or undefined when calling adminGetJobsLogs.');
|
|
2264
|
+
}
|
|
2265
|
+
// verify required parameter 'limit' is not null or undefined
|
|
2266
|
+
if (queryParams.limit === null || queryParams.limit === undefined) {
|
|
2267
|
+
throw new Error('Required parameter queryParams.limit was null or undefined when calling adminGetJobsLogs.');
|
|
2268
|
+
}
|
|
2269
|
+
// verify required parameter 'offset' is not null or undefined
|
|
2270
|
+
if (queryParams.offset === null || queryParams.offset === undefined) {
|
|
2271
|
+
throw new Error('Required parameter queryParams.offset was null or undefined when calling adminGetJobsLogs.');
|
|
2272
|
+
}
|
|
2273
|
+
if (queryParams.parentType !== undefined) {
|
|
2274
|
+
localVarQueryParameters['parentType'] = models_1.ObjectSerializer.serialize(queryParams.parentType, "JobParentTypeEnum");
|
|
2275
|
+
}
|
|
2276
|
+
if (queryParams.limit !== undefined) {
|
|
2277
|
+
localVarQueryParameters['limit'] = models_1.ObjectSerializer.serialize(queryParams.limit, "number");
|
|
2278
|
+
}
|
|
2279
|
+
if (queryParams.offset !== undefined) {
|
|
2280
|
+
localVarQueryParameters['offset'] = models_1.ObjectSerializer.serialize(queryParams.offset, "number");
|
|
1642
2281
|
}
|
|
1643
2282
|
Object.assign(localVarHeaderParams, options.headers);
|
|
1644
2283
|
Object.assign(localVarHeaderParams, this.opts.extraHeaders);
|
|
@@ -1672,7 +2311,7 @@ class AdminApi {
|
|
|
1672
2311
|
reject(error);
|
|
1673
2312
|
}
|
|
1674
2313
|
else {
|
|
1675
|
-
body = models_1.ObjectSerializer.deserialize(body, "
|
|
2314
|
+
body = models_1.ObjectSerializer.deserialize(body, "JobLogsResponse");
|
|
1676
2315
|
const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
|
|
1677
2316
|
if (typeof body.success === 'boolean' && !body.success) {
|
|
1678
2317
|
reject(new Error(body.error || errString));
|
|
@@ -1689,11 +2328,14 @@ class AdminApi {
|
|
|
1689
2328
|
});
|
|
1690
2329
|
}
|
|
1691
2330
|
/**
|
|
1692
|
-
*
|
|
1693
|
-
* @summary Get
|
|
2331
|
+
* Get cpu/memory usage metrics, if the job is a Kubernetes job
|
|
2332
|
+
* @summary Get job usage metrics
|
|
2333
|
+
* @param jobId Job ID
|
|
2334
|
+
* @param parentType Job parent type (project, organization, or standalone)
|
|
1694
2335
|
*/
|
|
1695
|
-
async
|
|
1696
|
-
const localVarPath = this.basePath + '/api/admin/
|
|
2336
|
+
async adminGetJobsMetrics(jobId, queryParams, options = { headers: {} }) {
|
|
2337
|
+
const localVarPath = this.basePath + '/api/admin/jobs/{jobId}/metrics'
|
|
2338
|
+
.replace('{' + 'jobId' + '}', encodeURIComponent(String(jobId)));
|
|
1697
2339
|
let localVarQueryParameters = {};
|
|
1698
2340
|
let localVarHeaderParams = Object.assign({
|
|
1699
2341
|
'User-Agent': 'edgeimpulse-api nodejs'
|
|
@@ -1707,6 +2349,17 @@ class AdminApi {
|
|
|
1707
2349
|
localVarHeaderParams.Accept = produces.join(',');
|
|
1708
2350
|
}
|
|
1709
2351
|
let localVarFormParams = {};
|
|
2352
|
+
// verify required parameter 'jobId' is not null or undefined
|
|
2353
|
+
if (jobId === null || jobId === undefined) {
|
|
2354
|
+
throw new Error('Required parameter jobId was null or undefined when calling adminGetJobsMetrics.');
|
|
2355
|
+
}
|
|
2356
|
+
// verify required parameter 'parentType' is not null or undefined
|
|
2357
|
+
if (queryParams.parentType === null || queryParams.parentType === undefined) {
|
|
2358
|
+
throw new Error('Required parameter queryParams.parentType was null or undefined when calling adminGetJobsMetrics.');
|
|
2359
|
+
}
|
|
2360
|
+
if (queryParams.parentType !== undefined) {
|
|
2361
|
+
localVarQueryParameters['parentType'] = models_1.ObjectSerializer.serialize(queryParams.parentType, "JobParentTypeEnum");
|
|
2362
|
+
}
|
|
1710
2363
|
Object.assign(localVarHeaderParams, options.headers);
|
|
1711
2364
|
Object.assign(localVarHeaderParams, this.opts.extraHeaders);
|
|
1712
2365
|
let localVarUseFormData = false;
|
|
@@ -1739,7 +2392,7 @@ class AdminApi {
|
|
|
1739
2392
|
reject(error);
|
|
1740
2393
|
}
|
|
1741
2394
|
else {
|
|
1742
|
-
body = models_1.ObjectSerializer.deserialize(body, "
|
|
2395
|
+
body = models_1.ObjectSerializer.deserialize(body, "JobMetricsResponse");
|
|
1743
2396
|
const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
|
|
1744
2397
|
if (typeof body.success === 'boolean' && !body.success) {
|
|
1745
2398
|
reject(new Error(body.error || errString));
|
|
@@ -1756,15 +2409,11 @@ class AdminApi {
|
|
|
1756
2409
|
});
|
|
1757
2410
|
}
|
|
1758
2411
|
/**
|
|
1759
|
-
*
|
|
1760
|
-
* @summary Get
|
|
1761
|
-
* @param jobId Job ID
|
|
1762
|
-
* @param parentType Job parent type (project or organization)
|
|
1763
|
-
* @param includeChildrenJobs Include the details of each of the children jobs (recursively)
|
|
2412
|
+
* Admin-only API to get global metrics.
|
|
2413
|
+
* @summary Get global metrics
|
|
1764
2414
|
*/
|
|
1765
|
-
async
|
|
1766
|
-
const localVarPath = this.basePath + '/api/admin/
|
|
1767
|
-
.replace('{' + 'jobId' + '}', encodeURIComponent(String(jobId)));
|
|
2415
|
+
async adminGetMetrics(options = { headers: {} }) {
|
|
2416
|
+
const localVarPath = this.basePath + '/api/admin/metrics';
|
|
1768
2417
|
let localVarQueryParameters = {};
|
|
1769
2418
|
let localVarHeaderParams = Object.assign({
|
|
1770
2419
|
'User-Agent': 'edgeimpulse-api nodejs'
|
|
@@ -1778,20 +2427,6 @@ class AdminApi {
|
|
|
1778
2427
|
localVarHeaderParams.Accept = produces.join(',');
|
|
1779
2428
|
}
|
|
1780
2429
|
let localVarFormParams = {};
|
|
1781
|
-
// verify required parameter 'jobId' is not null or undefined
|
|
1782
|
-
if (jobId === null || jobId === undefined) {
|
|
1783
|
-
throw new Error('Required parameter jobId was null or undefined when calling adminGetJobDetails.');
|
|
1784
|
-
}
|
|
1785
|
-
// verify required parameter 'parentType' is not null or undefined
|
|
1786
|
-
if (queryParams.parentType === null || queryParams.parentType === undefined) {
|
|
1787
|
-
throw new Error('Required parameter queryParams.parentType was null or undefined when calling adminGetJobDetails.');
|
|
1788
|
-
}
|
|
1789
|
-
if (queryParams.parentType !== undefined) {
|
|
1790
|
-
localVarQueryParameters['parentType'] = models_1.ObjectSerializer.serialize(queryParams.parentType, "JobParentTypeEnum");
|
|
1791
|
-
}
|
|
1792
|
-
if (queryParams.includeChildrenJobs !== undefined) {
|
|
1793
|
-
localVarQueryParameters['includeChildrenJobs'] = models_1.ObjectSerializer.serialize(queryParams.includeChildrenJobs, "boolean");
|
|
1794
|
-
}
|
|
1795
2430
|
Object.assign(localVarHeaderParams, options.headers);
|
|
1796
2431
|
Object.assign(localVarHeaderParams, this.opts.extraHeaders);
|
|
1797
2432
|
let localVarUseFormData = false;
|
|
@@ -1824,7 +2459,7 @@ class AdminApi {
|
|
|
1824
2459
|
reject(error);
|
|
1825
2460
|
}
|
|
1826
2461
|
else {
|
|
1827
|
-
body = models_1.ObjectSerializer.deserialize(body, "
|
|
2462
|
+
body = models_1.ObjectSerializer.deserialize(body, "AdminGetMetricsResponse");
|
|
1828
2463
|
const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
|
|
1829
2464
|
if (typeof body.success === 'boolean' && !body.success) {
|
|
1830
2465
|
reject(new Error(body.error || errString));
|
|
@@ -1841,16 +2476,15 @@ class AdminApi {
|
|
|
1841
2476
|
});
|
|
1842
2477
|
}
|
|
1843
2478
|
/**
|
|
1844
|
-
*
|
|
1845
|
-
* @summary Get
|
|
1846
|
-
* @param
|
|
1847
|
-
* @param
|
|
1848
|
-
* @param
|
|
1849
|
-
* @param offset Start fetching logs from this offset
|
|
2479
|
+
* Admin-only API to get compute time usage for an organization over a period of time.
|
|
2480
|
+
* @summary Get organization compute time usage
|
|
2481
|
+
* @param organizationId Organization ID
|
|
2482
|
+
* @param startDate Start date
|
|
2483
|
+
* @param endDate End date
|
|
1850
2484
|
*/
|
|
1851
|
-
async
|
|
1852
|
-
const localVarPath = this.basePath + '/api/admin/
|
|
1853
|
-
.replace('{' + '
|
|
2485
|
+
async adminGetOrganizationComputeTimeUsage(organizationId, queryParams, options = { headers: {} }) {
|
|
2486
|
+
const localVarPath = this.basePath + '/api/admin/organizations/{organizationId}/usage/computeTime'
|
|
2487
|
+
.replace('{' + 'organizationId' + '}', encodeURIComponent(String(organizationId)));
|
|
1854
2488
|
let localVarQueryParameters = {};
|
|
1855
2489
|
let localVarHeaderParams = Object.assign({
|
|
1856
2490
|
'User-Agent': 'edgeimpulse-api nodejs'
|
|
@@ -1864,30 +2498,23 @@ class AdminApi {
|
|
|
1864
2498
|
localVarHeaderParams.Accept = produces.join(',');
|
|
1865
2499
|
}
|
|
1866
2500
|
let localVarFormParams = {};
|
|
1867
|
-
// verify required parameter '
|
|
1868
|
-
if (
|
|
1869
|
-
throw new Error('Required parameter
|
|
1870
|
-
}
|
|
1871
|
-
// verify required parameter 'parentType' is not null or undefined
|
|
1872
|
-
if (queryParams.parentType === null || queryParams.parentType === undefined) {
|
|
1873
|
-
throw new Error('Required parameter queryParams.parentType was null or undefined when calling adminGetJobsLogs.');
|
|
1874
|
-
}
|
|
1875
|
-
// verify required parameter 'limit' is not null or undefined
|
|
1876
|
-
if (queryParams.limit === null || queryParams.limit === undefined) {
|
|
1877
|
-
throw new Error('Required parameter queryParams.limit was null or undefined when calling adminGetJobsLogs.');
|
|
2501
|
+
// verify required parameter 'organizationId' is not null or undefined
|
|
2502
|
+
if (organizationId === null || organizationId === undefined) {
|
|
2503
|
+
throw new Error('Required parameter organizationId was null or undefined when calling adminGetOrganizationComputeTimeUsage.');
|
|
1878
2504
|
}
|
|
1879
|
-
// verify required parameter '
|
|
1880
|
-
if (queryParams.
|
|
1881
|
-
throw new Error('Required parameter queryParams.
|
|
2505
|
+
// verify required parameter 'startDate' is not null or undefined
|
|
2506
|
+
if (queryParams.startDate === null || queryParams.startDate === undefined) {
|
|
2507
|
+
throw new Error('Required parameter queryParams.startDate was null or undefined when calling adminGetOrganizationComputeTimeUsage.');
|
|
1882
2508
|
}
|
|
1883
|
-
|
|
1884
|
-
|
|
2509
|
+
// verify required parameter 'endDate' is not null or undefined
|
|
2510
|
+
if (queryParams.endDate === null || queryParams.endDate === undefined) {
|
|
2511
|
+
throw new Error('Required parameter queryParams.endDate was null or undefined when calling adminGetOrganizationComputeTimeUsage.');
|
|
1885
2512
|
}
|
|
1886
|
-
if (queryParams.
|
|
1887
|
-
localVarQueryParameters['
|
|
2513
|
+
if (queryParams.startDate !== undefined) {
|
|
2514
|
+
localVarQueryParameters['startDate'] = models_1.ObjectSerializer.serialize(queryParams.startDate, "Date");
|
|
1888
2515
|
}
|
|
1889
|
-
if (queryParams.
|
|
1890
|
-
localVarQueryParameters['
|
|
2516
|
+
if (queryParams.endDate !== undefined) {
|
|
2517
|
+
localVarQueryParameters['endDate'] = models_1.ObjectSerializer.serialize(queryParams.endDate, "Date");
|
|
1891
2518
|
}
|
|
1892
2519
|
Object.assign(localVarHeaderParams, options.headers);
|
|
1893
2520
|
Object.assign(localVarHeaderParams, this.opts.extraHeaders);
|
|
@@ -1921,7 +2548,7 @@ class AdminApi {
|
|
|
1921
2548
|
reject(error);
|
|
1922
2549
|
}
|
|
1923
2550
|
else {
|
|
1924
|
-
body = models_1.ObjectSerializer.deserialize(body, "
|
|
2551
|
+
body = models_1.ObjectSerializer.deserialize(body, "AdminGetOrganizationComputeTimeUsageResponse");
|
|
1925
2552
|
const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
|
|
1926
2553
|
if (typeof body.success === 'boolean' && !body.success) {
|
|
1927
2554
|
reject(new Error(body.error || errString));
|
|
@@ -1938,14 +2565,14 @@ class AdminApi {
|
|
|
1938
2565
|
});
|
|
1939
2566
|
}
|
|
1940
2567
|
/**
|
|
1941
|
-
*
|
|
1942
|
-
* @summary
|
|
1943
|
-
* @param
|
|
1944
|
-
* @param
|
|
2568
|
+
* Admin-only API to list all information about this organization.
|
|
2569
|
+
* @summary Organization information
|
|
2570
|
+
* @param organizationId Organization ID
|
|
2571
|
+
* @param includeDeleted Whether to include deleted entities (users, projects, orgs)
|
|
1945
2572
|
*/
|
|
1946
|
-
async
|
|
1947
|
-
const localVarPath = this.basePath + '/api/admin/
|
|
1948
|
-
.replace('{' + '
|
|
2573
|
+
async adminGetOrganizationInfo(organizationId, queryParams, options = { headers: {} }) {
|
|
2574
|
+
const localVarPath = this.basePath + '/api/admin/organizations/{organizationId}'
|
|
2575
|
+
.replace('{' + 'organizationId' + '}', encodeURIComponent(String(organizationId)));
|
|
1949
2576
|
let localVarQueryParameters = {};
|
|
1950
2577
|
let localVarHeaderParams = Object.assign({
|
|
1951
2578
|
'User-Agent': 'edgeimpulse-api nodejs'
|
|
@@ -1959,16 +2586,12 @@ class AdminApi {
|
|
|
1959
2586
|
localVarHeaderParams.Accept = produces.join(',');
|
|
1960
2587
|
}
|
|
1961
2588
|
let localVarFormParams = {};
|
|
1962
|
-
// verify required parameter '
|
|
1963
|
-
if (
|
|
1964
|
-
throw new Error('Required parameter
|
|
1965
|
-
}
|
|
1966
|
-
// verify required parameter 'parentType' is not null or undefined
|
|
1967
|
-
if (queryParams.parentType === null || queryParams.parentType === undefined) {
|
|
1968
|
-
throw new Error('Required parameter queryParams.parentType was null or undefined when calling adminGetJobsMetrics.');
|
|
2589
|
+
// verify required parameter 'organizationId' is not null or undefined
|
|
2590
|
+
if (organizationId === null || organizationId === undefined) {
|
|
2591
|
+
throw new Error('Required parameter organizationId was null or undefined when calling adminGetOrganizationInfo.');
|
|
1969
2592
|
}
|
|
1970
|
-
if (queryParams.
|
|
1971
|
-
localVarQueryParameters['
|
|
2593
|
+
if (queryParams.includeDeleted !== undefined) {
|
|
2594
|
+
localVarQueryParameters['includeDeleted'] = models_1.ObjectSerializer.serialize(queryParams.includeDeleted, "boolean");
|
|
1972
2595
|
}
|
|
1973
2596
|
Object.assign(localVarHeaderParams, options.headers);
|
|
1974
2597
|
Object.assign(localVarHeaderParams, this.opts.extraHeaders);
|
|
@@ -2002,7 +2625,7 @@ class AdminApi {
|
|
|
2002
2625
|
reject(error);
|
|
2003
2626
|
}
|
|
2004
2627
|
else {
|
|
2005
|
-
body = models_1.ObjectSerializer.deserialize(body, "
|
|
2628
|
+
body = models_1.ObjectSerializer.deserialize(body, "AdminOrganizationInfoResponse");
|
|
2006
2629
|
const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
|
|
2007
2630
|
if (typeof body.success === 'boolean' && !body.success) {
|
|
2008
2631
|
reject(new Error(body.error || errString));
|
|
@@ -2019,11 +2642,15 @@ class AdminApi {
|
|
|
2019
2642
|
});
|
|
2020
2643
|
}
|
|
2021
2644
|
/**
|
|
2022
|
-
* Admin-only API to get
|
|
2023
|
-
* @summary Get
|
|
2645
|
+
* Admin-only API to get a usage report for an organization.
|
|
2646
|
+
* @summary Get usage report
|
|
2647
|
+
* @param organizationId Organization ID
|
|
2648
|
+
* @param usageReportId Usage report ID
|
|
2024
2649
|
*/
|
|
2025
|
-
async
|
|
2026
|
-
const localVarPath = this.basePath + '/api/admin/
|
|
2650
|
+
async adminGetOrganizationUsageReport(organizationId, usageReportId, options = { headers: {} }) {
|
|
2651
|
+
const localVarPath = this.basePath + '/api/admin/organizations/{organizationId}/usage/reports/{usageReportId}'
|
|
2652
|
+
.replace('{' + 'organizationId' + '}', encodeURIComponent(String(organizationId)))
|
|
2653
|
+
.replace('{' + 'usageReportId' + '}', encodeURIComponent(String(usageReportId)));
|
|
2027
2654
|
let localVarQueryParameters = {};
|
|
2028
2655
|
let localVarHeaderParams = Object.assign({
|
|
2029
2656
|
'User-Agent': 'edgeimpulse-api nodejs'
|
|
@@ -2037,6 +2664,14 @@ class AdminApi {
|
|
|
2037
2664
|
localVarHeaderParams.Accept = produces.join(',');
|
|
2038
2665
|
}
|
|
2039
2666
|
let localVarFormParams = {};
|
|
2667
|
+
// verify required parameter 'organizationId' is not null or undefined
|
|
2668
|
+
if (organizationId === null || organizationId === undefined) {
|
|
2669
|
+
throw new Error('Required parameter organizationId was null or undefined when calling adminGetOrganizationUsageReport.');
|
|
2670
|
+
}
|
|
2671
|
+
// verify required parameter 'usageReportId' is not null or undefined
|
|
2672
|
+
if (usageReportId === null || usageReportId === undefined) {
|
|
2673
|
+
throw new Error('Required parameter usageReportId was null or undefined when calling adminGetOrganizationUsageReport.');
|
|
2674
|
+
}
|
|
2040
2675
|
Object.assign(localVarHeaderParams, options.headers);
|
|
2041
2676
|
Object.assign(localVarHeaderParams, this.opts.extraHeaders);
|
|
2042
2677
|
let localVarUseFormData = false;
|
|
@@ -2069,7 +2704,7 @@ class AdminApi {
|
|
|
2069
2704
|
reject(error);
|
|
2070
2705
|
}
|
|
2071
2706
|
else {
|
|
2072
|
-
body = models_1.ObjectSerializer.deserialize(body, "
|
|
2707
|
+
body = models_1.ObjectSerializer.deserialize(body, "AdminGetOrganizationUsageReportResponse");
|
|
2073
2708
|
const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
|
|
2074
2709
|
if (typeof body.success === 'boolean' && !body.success) {
|
|
2075
2710
|
reject(new Error(body.error || errString));
|
|
@@ -2086,12 +2721,14 @@ class AdminApi {
|
|
|
2086
2721
|
});
|
|
2087
2722
|
}
|
|
2088
2723
|
/**
|
|
2089
|
-
* Admin-only API to
|
|
2090
|
-
* @summary
|
|
2724
|
+
* Admin-only API to get all usage reports for an organization.
|
|
2725
|
+
* @summary Get all usage reports
|
|
2091
2726
|
* @param organizationId Organization ID
|
|
2727
|
+
* @param limit Maximum number of results
|
|
2728
|
+
* @param offset Offset in results, can be used in conjunction with LimitResultsParameter to implement paging.
|
|
2092
2729
|
*/
|
|
2093
|
-
async
|
|
2094
|
-
const localVarPath = this.basePath + '/api/admin/organizations/{organizationId}'
|
|
2730
|
+
async adminGetOrganizationUsageReports(organizationId, queryParams, options = { headers: {} }) {
|
|
2731
|
+
const localVarPath = this.basePath + '/api/admin/organizations/{organizationId}/usage/reports'
|
|
2095
2732
|
.replace('{' + 'organizationId' + '}', encodeURIComponent(String(organizationId)));
|
|
2096
2733
|
let localVarQueryParameters = {};
|
|
2097
2734
|
let localVarHeaderParams = Object.assign({
|
|
@@ -2108,7 +2745,13 @@ class AdminApi {
|
|
|
2108
2745
|
let localVarFormParams = {};
|
|
2109
2746
|
// verify required parameter 'organizationId' is not null or undefined
|
|
2110
2747
|
if (organizationId === null || organizationId === undefined) {
|
|
2111
|
-
throw new Error('Required parameter organizationId was null or undefined when calling
|
|
2748
|
+
throw new Error('Required parameter organizationId was null or undefined when calling adminGetOrganizationUsageReports.');
|
|
2749
|
+
}
|
|
2750
|
+
if (queryParams.limit !== undefined) {
|
|
2751
|
+
localVarQueryParameters['limit'] = models_1.ObjectSerializer.serialize(queryParams.limit, "number");
|
|
2752
|
+
}
|
|
2753
|
+
if (queryParams.offset !== undefined) {
|
|
2754
|
+
localVarQueryParameters['offset'] = models_1.ObjectSerializer.serialize(queryParams.offset, "number");
|
|
2112
2755
|
}
|
|
2113
2756
|
Object.assign(localVarHeaderParams, options.headers);
|
|
2114
2757
|
Object.assign(localVarHeaderParams, this.opts.extraHeaders);
|
|
@@ -2142,7 +2785,7 @@ class AdminApi {
|
|
|
2142
2785
|
reject(error);
|
|
2143
2786
|
}
|
|
2144
2787
|
else {
|
|
2145
|
-
body = models_1.ObjectSerializer.deserialize(body, "
|
|
2788
|
+
body = models_1.ObjectSerializer.deserialize(body, "AdminGetOrganizationUsageReportsResponse");
|
|
2146
2789
|
const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
|
|
2147
2790
|
if (typeof body.success === 'boolean' && !body.success) {
|
|
2148
2791
|
reject(new Error(body.error || errString));
|
|
@@ -2162,6 +2805,7 @@ class AdminApi {
|
|
|
2162
2805
|
* Admin-only API to get the list of all organizations.
|
|
2163
2806
|
* @summary Get all organizations
|
|
2164
2807
|
* @param active Whether to search for entities (users, orgs) active in the last X days
|
|
2808
|
+
* @param includeDeleted Whether to include deleted entities (users, projects, orgs)
|
|
2165
2809
|
* @param sort Fields and order to sort query by
|
|
2166
2810
|
* @param limit Maximum number of results
|
|
2167
2811
|
* @param offset Offset in results, can be used in conjunction with LimitResultsParameter to implement paging.
|
|
@@ -2185,6 +2829,9 @@ class AdminApi {
|
|
|
2185
2829
|
if (queryParams.active !== undefined) {
|
|
2186
2830
|
localVarQueryParameters['active'] = models_1.ObjectSerializer.serialize(queryParams.active, "number");
|
|
2187
2831
|
}
|
|
2832
|
+
if (queryParams.includeDeleted !== undefined) {
|
|
2833
|
+
localVarQueryParameters['includeDeleted'] = models_1.ObjectSerializer.serialize(queryParams.includeDeleted, "boolean");
|
|
2834
|
+
}
|
|
2188
2835
|
if (queryParams.sort !== undefined) {
|
|
2189
2836
|
localVarQueryParameters['sort'] = models_1.ObjectSerializer.serialize(queryParams.sort, "string");
|
|
2190
2837
|
}
|
|
@@ -3096,6 +3743,79 @@ class AdminApi {
|
|
|
3096
3743
|
});
|
|
3097
3744
|
});
|
|
3098
3745
|
}
|
|
3746
|
+
/**
|
|
3747
|
+
* Admin-only API to restore a soft deleted organization. All organization projects sharing the same deletion date as that of the organization will also be restored. If this is a trial organization that was never upgraded to a paid plan then the organization will be restored to its original trial state.
|
|
3748
|
+
* @summary Restore an organization
|
|
3749
|
+
* @param organizationId Organization ID
|
|
3750
|
+
*/
|
|
3751
|
+
async adminRestoreOrganization(organizationId, options = { headers: {} }) {
|
|
3752
|
+
const localVarPath = this.basePath + '/api/admin/organizations/{organizationId}/restore'
|
|
3753
|
+
.replace('{' + 'organizationId' + '}', encodeURIComponent(String(organizationId)));
|
|
3754
|
+
let localVarQueryParameters = {};
|
|
3755
|
+
let localVarHeaderParams = Object.assign({
|
|
3756
|
+
'User-Agent': 'edgeimpulse-api nodejs'
|
|
3757
|
+
}, this.defaultHeaders);
|
|
3758
|
+
const produces = ['application/json'];
|
|
3759
|
+
// give precedence to 'application/json'
|
|
3760
|
+
if (produces.indexOf('application/json') >= 0) {
|
|
3761
|
+
localVarHeaderParams.Accept = 'application/json';
|
|
3762
|
+
}
|
|
3763
|
+
else {
|
|
3764
|
+
localVarHeaderParams.Accept = produces.join(',');
|
|
3765
|
+
}
|
|
3766
|
+
let localVarFormParams = {};
|
|
3767
|
+
// verify required parameter 'organizationId' is not null or undefined
|
|
3768
|
+
if (organizationId === null || organizationId === undefined) {
|
|
3769
|
+
throw new Error('Required parameter organizationId was null or undefined when calling adminRestoreOrganization.');
|
|
3770
|
+
}
|
|
3771
|
+
Object.assign(localVarHeaderParams, options.headers);
|
|
3772
|
+
Object.assign(localVarHeaderParams, this.opts.extraHeaders);
|
|
3773
|
+
let localVarUseFormData = false;
|
|
3774
|
+
let localVarRequestOptions = {
|
|
3775
|
+
method: 'POST',
|
|
3776
|
+
qs: localVarQueryParameters,
|
|
3777
|
+
headers: localVarHeaderParams,
|
|
3778
|
+
uri: localVarPath,
|
|
3779
|
+
useQuerystring: this._useQuerystring,
|
|
3780
|
+
agentOptions: { keepAlive: false },
|
|
3781
|
+
json: true,
|
|
3782
|
+
};
|
|
3783
|
+
let authenticationPromise = Promise.resolve();
|
|
3784
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.ApiKeyAuthentication.applyToRequest(localVarRequestOptions));
|
|
3785
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.JWTAuthentication.applyToRequest(localVarRequestOptions));
|
|
3786
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.JWTHttpHeaderAuthentication.applyToRequest(localVarRequestOptions));
|
|
3787
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
|
|
3788
|
+
return authenticationPromise.then(() => {
|
|
3789
|
+
if (Object.keys(localVarFormParams).length) {
|
|
3790
|
+
if (localVarUseFormData) {
|
|
3791
|
+
localVarRequestOptions.formData = localVarFormParams;
|
|
3792
|
+
}
|
|
3793
|
+
else {
|
|
3794
|
+
localVarRequestOptions.form = localVarFormParams;
|
|
3795
|
+
}
|
|
3796
|
+
}
|
|
3797
|
+
return new Promise((resolve, reject) => {
|
|
3798
|
+
localVarRequest(localVarRequestOptions, (error, response, body) => {
|
|
3799
|
+
if (error) {
|
|
3800
|
+
reject(error);
|
|
3801
|
+
}
|
|
3802
|
+
else {
|
|
3803
|
+
body = models_1.ObjectSerializer.deserialize(body, "GenericApiResponse");
|
|
3804
|
+
const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
|
|
3805
|
+
if (typeof body.success === 'boolean' && !body.success) {
|
|
3806
|
+
reject(new Error(body.error || errString));
|
|
3807
|
+
}
|
|
3808
|
+
else if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
3809
|
+
resolve(body);
|
|
3810
|
+
}
|
|
3811
|
+
else {
|
|
3812
|
+
reject(errString);
|
|
3813
|
+
}
|
|
3814
|
+
}
|
|
3815
|
+
});
|
|
3816
|
+
});
|
|
3817
|
+
});
|
|
3818
|
+
}
|
|
3099
3819
|
/**
|
|
3100
3820
|
* Admin-only API to run or pause a data migration.
|
|
3101
3821
|
* @summary Run or pause a data migration
|