edge-impulse-linux 1.4.8 → 1.5.1
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/README.md +10 -0
- package/build/cli/init-cli-app.js +4 -1
- package/build/cli/init-cli-app.js.map +1 -1
- package/build/cli/linux/camera-debug.js +0 -0
- package/build/cli/linux/linux.js +0 -0
- package/build/cli/linux/runner.js +194 -2
- package/build/cli/linux/runner.js.map +1 -1
- 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 +168 -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 +19 -0
- package/build/cli/linux/webserver/views/inference-server-view.js +164 -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 +10 -2
- package/build/library/classifier/image-classifier.js +21 -6
- 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/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 +236 -2
- package/cli/linux/webserver/middleware/asyncMiddleware.ts +7 -0
- package/cli/linux/webserver/public/assets/mobileclient.css +20 -0
- package/cli/linux/webserver/public/inference-server.js +185 -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 +179 -0
- package/package.json +8 -4
- 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/organizationRequiresAdminApi.d.ts +0 -640
- package/build/sdk/studio/sdk/api/organizationRequiresAdminApi.js +0 -3714
- package/build/sdk/studio/sdk/api/organizationRequiresAdminApi.js.map +0 -1
- package/build/sdk/studio/sdk/api/organizationRequiresWhitelabelAdminApi.d.ts +0 -471
- package/build/sdk/studio/sdk/api/organizationRequiresWhitelabelAdminApi.js +0 -2604
- package/build/sdk/studio/sdk/api/organizationRequiresWhitelabelAdminApi.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
|
@@ -456,6 +456,7 @@ class OrganizationsApi {
|
|
|
456
456
|
* @summary Organization metrics
|
|
457
457
|
* @param organizationId Organization ID
|
|
458
458
|
* @param excludeEdgeImpulseUsers Whether to exclude Edge Impulse users when counting enterprise entitlements usage
|
|
459
|
+
* @param projectVisibility What project visibility type to include when counting enterprise entitlements usage
|
|
459
460
|
*/
|
|
460
461
|
async getOrganizationMetrics(organizationId, queryParams, options = { headers: {} }) {
|
|
461
462
|
const localVarPath = this.basePath + '/api/organizations/{organizationId}/metrics'
|
|
@@ -480,6 +481,9 @@ class OrganizationsApi {
|
|
|
480
481
|
if (queryParams.excludeEdgeImpulseUsers !== undefined) {
|
|
481
482
|
localVarQueryParameters['excludeEdgeImpulseUsers'] = models_1.ObjectSerializer.serialize(queryParams.excludeEdgeImpulseUsers, "boolean");
|
|
482
483
|
}
|
|
484
|
+
if (queryParams.projectVisibility !== undefined) {
|
|
485
|
+
localVarQueryParameters['projectVisibility'] = models_1.ObjectSerializer.serialize(queryParams.projectVisibility, "ProjectVisibility");
|
|
486
|
+
}
|
|
483
487
|
Object.assign(localVarHeaderParams, options.headers);
|
|
484
488
|
Object.assign(localVarHeaderParams, this.opts.extraHeaders);
|
|
485
489
|
let localVarUseFormData = false;
|
|
@@ -737,7 +741,7 @@ class OrganizationsApi {
|
|
|
737
741
|
reject(error);
|
|
738
742
|
}
|
|
739
743
|
else {
|
|
740
|
-
body = models_1.ObjectSerializer.deserialize(body, "
|
|
744
|
+
body = models_1.ObjectSerializer.deserialize(body, "ListProjectsResponse");
|
|
741
745
|
const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
|
|
742
746
|
if (typeof body.success === 'boolean' && !body.success) {
|
|
743
747
|
reject(new Error(body.error || errString));
|
|
@@ -1772,14 +1776,14 @@ class OrganizationsApi {
|
|
|
1772
1776
|
});
|
|
1773
1777
|
}
|
|
1774
1778
|
/**
|
|
1775
|
-
* White label admin only API to add
|
|
1776
|
-
* @summary Add
|
|
1779
|
+
* White label admin only API to add an API key to an organization. Add a temporary API key that can be used to make Organizations API (/api/organizations/{organizationId}/) requests on behalf of the organization. These API keys are not visible to the organization itself and have a customizable TTL defaulting to 1 minute.
|
|
1780
|
+
* @summary Add organization API key
|
|
1777
1781
|
* @param organizationId Organization ID
|
|
1778
1782
|
* @param innerOrganizationId Organization ID within the context of a white label
|
|
1779
|
-
* @param
|
|
1783
|
+
* @param adminAddOrganizationApiKeyRequest
|
|
1780
1784
|
*/
|
|
1781
|
-
async
|
|
1782
|
-
const localVarPath = this.basePath + '/api/organizations/{organizationId}/whitelabel/organizations/{innerOrganizationId}/
|
|
1785
|
+
async whitelabelAdminAddOrganizationApiKey(organizationId, innerOrganizationId, adminAddOrganizationApiKeyRequest, options = { headers: {} }) {
|
|
1786
|
+
const localVarPath = this.basePath + '/api/organizations/{organizationId}/whitelabel/organizations/{innerOrganizationId}/apiKeys'
|
|
1783
1787
|
.replace('{' + 'organizationId' + '}', encodeURIComponent(String(organizationId)))
|
|
1784
1788
|
.replace('{' + 'innerOrganizationId' + '}', encodeURIComponent(String(innerOrganizationId)));
|
|
1785
1789
|
let localVarQueryParameters = {};
|
|
@@ -1797,11 +1801,15 @@ class OrganizationsApi {
|
|
|
1797
1801
|
let localVarFormParams = {};
|
|
1798
1802
|
// verify required parameter 'organizationId' is not null or undefined
|
|
1799
1803
|
if (organizationId === null || organizationId === undefined) {
|
|
1800
|
-
throw new Error('Required parameter organizationId was null or undefined when calling
|
|
1804
|
+
throw new Error('Required parameter organizationId was null or undefined when calling whitelabelAdminAddOrganizationApiKey.');
|
|
1801
1805
|
}
|
|
1802
1806
|
// verify required parameter 'innerOrganizationId' is not null or undefined
|
|
1803
1807
|
if (innerOrganizationId === null || innerOrganizationId === undefined) {
|
|
1804
|
-
throw new Error('Required parameter innerOrganizationId was null or undefined when calling
|
|
1808
|
+
throw new Error('Required parameter innerOrganizationId was null or undefined when calling whitelabelAdminAddOrganizationApiKey.');
|
|
1809
|
+
}
|
|
1810
|
+
// verify required parameter 'adminAddOrganizationApiKeyRequest' is not null or undefined
|
|
1811
|
+
if (adminAddOrganizationApiKeyRequest === null || adminAddOrganizationApiKeyRequest === undefined) {
|
|
1812
|
+
throw new Error('Required parameter adminAddOrganizationApiKeyRequest was null or undefined when calling whitelabelAdminAddOrganizationApiKey.');
|
|
1805
1813
|
}
|
|
1806
1814
|
Object.assign(localVarHeaderParams, options.headers);
|
|
1807
1815
|
Object.assign(localVarHeaderParams, this.opts.extraHeaders);
|
|
@@ -1814,7 +1822,7 @@ class OrganizationsApi {
|
|
|
1814
1822
|
useQuerystring: this._useQuerystring,
|
|
1815
1823
|
agentOptions: { keepAlive: false },
|
|
1816
1824
|
json: true,
|
|
1817
|
-
body: models_1.ObjectSerializer.serialize(
|
|
1825
|
+
body: models_1.ObjectSerializer.serialize(adminAddOrganizationApiKeyRequest, "AdminAddOrganizationApiKeyRequest")
|
|
1818
1826
|
};
|
|
1819
1827
|
let authenticationPromise = Promise.resolve();
|
|
1820
1828
|
authenticationPromise = authenticationPromise.then(() => this.authentications.ApiKeyAuthentication.applyToRequest(localVarRequestOptions));
|
|
@@ -1853,14 +1861,14 @@ class OrganizationsApi {
|
|
|
1853
1861
|
});
|
|
1854
1862
|
}
|
|
1855
1863
|
/**
|
|
1856
|
-
* White label admin only API to add
|
|
1857
|
-
* @summary Add
|
|
1864
|
+
* White label admin only API to add an API key to a project. Add a temporary API key that can be used to make Projects API (/api/projects/{projectId}/) requests on behalf of the project admin. These API keys are not visible to the project itself and have a customizable TTL defaulting to 1 minute.
|
|
1865
|
+
* @summary Add Project API key
|
|
1858
1866
|
* @param organizationId Organization ID
|
|
1859
1867
|
* @param projectId Project ID
|
|
1860
|
-
* @param
|
|
1868
|
+
* @param adminAddProjectApiKeyRequest
|
|
1861
1869
|
*/
|
|
1862
|
-
async
|
|
1863
|
-
const localVarPath = this.basePath + '/api/organizations/{organizationId}/whitelabel/projects/{projectId}/
|
|
1870
|
+
async whitelabelAdminAddProjectApiKey(organizationId, projectId, adminAddProjectApiKeyRequest, options = { headers: {} }) {
|
|
1871
|
+
const localVarPath = this.basePath + '/api/organizations/{organizationId}/whitelabel/projects/{projectId}/apiKeys'
|
|
1864
1872
|
.replace('{' + 'organizationId' + '}', encodeURIComponent(String(organizationId)))
|
|
1865
1873
|
.replace('{' + 'projectId' + '}', encodeURIComponent(String(projectId)));
|
|
1866
1874
|
let localVarQueryParameters = {};
|
|
@@ -1878,11 +1886,15 @@ class OrganizationsApi {
|
|
|
1878
1886
|
let localVarFormParams = {};
|
|
1879
1887
|
// verify required parameter 'organizationId' is not null or undefined
|
|
1880
1888
|
if (organizationId === null || organizationId === undefined) {
|
|
1881
|
-
throw new Error('Required parameter organizationId was null or undefined when calling
|
|
1889
|
+
throw new Error('Required parameter organizationId was null or undefined when calling whitelabelAdminAddProjectApiKey.');
|
|
1882
1890
|
}
|
|
1883
1891
|
// verify required parameter 'projectId' is not null or undefined
|
|
1884
1892
|
if (projectId === null || projectId === undefined) {
|
|
1885
|
-
throw new Error('Required parameter projectId was null or undefined when calling
|
|
1893
|
+
throw new Error('Required parameter projectId was null or undefined when calling whitelabelAdminAddProjectApiKey.');
|
|
1894
|
+
}
|
|
1895
|
+
// verify required parameter 'adminAddProjectApiKeyRequest' is not null or undefined
|
|
1896
|
+
if (adminAddProjectApiKeyRequest === null || adminAddProjectApiKeyRequest === undefined) {
|
|
1897
|
+
throw new Error('Required parameter adminAddProjectApiKeyRequest was null or undefined when calling whitelabelAdminAddProjectApiKey.');
|
|
1886
1898
|
}
|
|
1887
1899
|
Object.assign(localVarHeaderParams, options.headers);
|
|
1888
1900
|
Object.assign(localVarHeaderParams, this.opts.extraHeaders);
|
|
@@ -1895,7 +1907,7 @@ class OrganizationsApi {
|
|
|
1895
1907
|
useQuerystring: this._useQuerystring,
|
|
1896
1908
|
agentOptions: { keepAlive: false },
|
|
1897
1909
|
json: true,
|
|
1898
|
-
body: models_1.ObjectSerializer.serialize(
|
|
1910
|
+
body: models_1.ObjectSerializer.serialize(adminAddProjectApiKeyRequest, "AdminAddProjectApiKeyRequest")
|
|
1899
1911
|
};
|
|
1900
1912
|
let authenticationPromise = Promise.resolve();
|
|
1901
1913
|
authenticationPromise = authenticationPromise.then(() => this.authentications.ApiKeyAuthentication.applyToRequest(localVarRequestOptions));
|
|
@@ -1934,14 +1946,16 @@ class OrganizationsApi {
|
|
|
1934
1946
|
});
|
|
1935
1947
|
}
|
|
1936
1948
|
/**
|
|
1937
|
-
*
|
|
1938
|
-
* @summary
|
|
1949
|
+
* White label admin only API to add a user to an organization. If no user is provided, the current user is used.
|
|
1950
|
+
* @summary Add user to an organization
|
|
1939
1951
|
* @param organizationId Organization ID
|
|
1940
|
-
* @param
|
|
1952
|
+
* @param innerOrganizationId Organization ID within the context of a white label
|
|
1953
|
+
* @param adminAddOrganizationUserRequest
|
|
1941
1954
|
*/
|
|
1942
|
-
async
|
|
1943
|
-
const localVarPath = this.basePath + '/api/organizations/{organizationId}/whitelabel/organizations'
|
|
1944
|
-
.replace('{' + 'organizationId' + '}', encodeURIComponent(String(organizationId)))
|
|
1955
|
+
async whitelabelAdminAddUserToOrganization(organizationId, innerOrganizationId, adminAddOrganizationUserRequest, options = { headers: {} }) {
|
|
1956
|
+
const localVarPath = this.basePath + '/api/organizations/{organizationId}/whitelabel/organizations/{innerOrganizationId}/members'
|
|
1957
|
+
.replace('{' + 'organizationId' + '}', encodeURIComponent(String(organizationId)))
|
|
1958
|
+
.replace('{' + 'innerOrganizationId' + '}', encodeURIComponent(String(innerOrganizationId)));
|
|
1945
1959
|
let localVarQueryParameters = {};
|
|
1946
1960
|
let localVarHeaderParams = Object.assign({
|
|
1947
1961
|
'User-Agent': 'edgeimpulse-api nodejs'
|
|
@@ -1957,11 +1971,11 @@ class OrganizationsApi {
|
|
|
1957
1971
|
let localVarFormParams = {};
|
|
1958
1972
|
// verify required parameter 'organizationId' is not null or undefined
|
|
1959
1973
|
if (organizationId === null || organizationId === undefined) {
|
|
1960
|
-
throw new Error('Required parameter organizationId was null or undefined when calling
|
|
1974
|
+
throw new Error('Required parameter organizationId was null or undefined when calling whitelabelAdminAddUserToOrganization.');
|
|
1961
1975
|
}
|
|
1962
|
-
// verify required parameter '
|
|
1963
|
-
if (
|
|
1964
|
-
throw new Error('Required parameter
|
|
1976
|
+
// verify required parameter 'innerOrganizationId' is not null or undefined
|
|
1977
|
+
if (innerOrganizationId === null || innerOrganizationId === undefined) {
|
|
1978
|
+
throw new Error('Required parameter innerOrganizationId was null or undefined when calling whitelabelAdminAddUserToOrganization.');
|
|
1965
1979
|
}
|
|
1966
1980
|
Object.assign(localVarHeaderParams, options.headers);
|
|
1967
1981
|
Object.assign(localVarHeaderParams, this.opts.extraHeaders);
|
|
@@ -1974,7 +1988,7 @@ class OrganizationsApi {
|
|
|
1974
1988
|
useQuerystring: this._useQuerystring,
|
|
1975
1989
|
agentOptions: { keepAlive: false },
|
|
1976
1990
|
json: true,
|
|
1977
|
-
body: models_1.ObjectSerializer.serialize(
|
|
1991
|
+
body: models_1.ObjectSerializer.serialize(adminAddOrganizationUserRequest, "AdminAddOrganizationUserRequest")
|
|
1978
1992
|
};
|
|
1979
1993
|
let authenticationPromise = Promise.resolve();
|
|
1980
1994
|
authenticationPromise = authenticationPromise.then(() => this.authentications.ApiKeyAuthentication.applyToRequest(localVarRequestOptions));
|
|
@@ -1996,7 +2010,7 @@ class OrganizationsApi {
|
|
|
1996
2010
|
reject(error);
|
|
1997
2011
|
}
|
|
1998
2012
|
else {
|
|
1999
|
-
body = models_1.ObjectSerializer.deserialize(body, "
|
|
2013
|
+
body = models_1.ObjectSerializer.deserialize(body, "GenericApiResponse");
|
|
2000
2014
|
const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
|
|
2001
2015
|
if (typeof body.success === 'boolean' && !body.success) {
|
|
2002
2016
|
reject(new Error(body.error || errString));
|
|
@@ -2013,14 +2027,16 @@ class OrganizationsApi {
|
|
|
2013
2027
|
});
|
|
2014
2028
|
}
|
|
2015
2029
|
/**
|
|
2016
|
-
*
|
|
2017
|
-
* @summary
|
|
2030
|
+
* White label admin only API to add a user to a project. If no user is provided, the current user is used.
|
|
2031
|
+
* @summary Add user to a project
|
|
2018
2032
|
* @param organizationId Organization ID
|
|
2019
|
-
* @param
|
|
2033
|
+
* @param projectId Project ID
|
|
2034
|
+
* @param adminAddProjectUserRequest
|
|
2020
2035
|
*/
|
|
2021
|
-
async
|
|
2022
|
-
const localVarPath = this.basePath + '/api/organizations/{organizationId}/whitelabel/projects'
|
|
2023
|
-
.replace('{' + 'organizationId' + '}', encodeURIComponent(String(organizationId)))
|
|
2036
|
+
async whitelabelAdminAddUserToProject(organizationId, projectId, adminAddProjectUserRequest, options = { headers: {} }) {
|
|
2037
|
+
const localVarPath = this.basePath + '/api/organizations/{organizationId}/whitelabel/projects/{projectId}/members'
|
|
2038
|
+
.replace('{' + 'organizationId' + '}', encodeURIComponent(String(organizationId)))
|
|
2039
|
+
.replace('{' + 'projectId' + '}', encodeURIComponent(String(projectId)));
|
|
2024
2040
|
let localVarQueryParameters = {};
|
|
2025
2041
|
let localVarHeaderParams = Object.assign({
|
|
2026
2042
|
'User-Agent': 'edgeimpulse-api nodejs'
|
|
@@ -2036,11 +2052,11 @@ class OrganizationsApi {
|
|
|
2036
2052
|
let localVarFormParams = {};
|
|
2037
2053
|
// verify required parameter 'organizationId' is not null or undefined
|
|
2038
2054
|
if (organizationId === null || organizationId === undefined) {
|
|
2039
|
-
throw new Error('Required parameter organizationId was null or undefined when calling
|
|
2055
|
+
throw new Error('Required parameter organizationId was null or undefined when calling whitelabelAdminAddUserToProject.');
|
|
2040
2056
|
}
|
|
2041
|
-
// verify required parameter '
|
|
2042
|
-
if (
|
|
2043
|
-
throw new Error('Required parameter
|
|
2057
|
+
// verify required parameter 'projectId' is not null or undefined
|
|
2058
|
+
if (projectId === null || projectId === undefined) {
|
|
2059
|
+
throw new Error('Required parameter projectId was null or undefined when calling whitelabelAdminAddUserToProject.');
|
|
2044
2060
|
}
|
|
2045
2061
|
Object.assign(localVarHeaderParams, options.headers);
|
|
2046
2062
|
Object.assign(localVarHeaderParams, this.opts.extraHeaders);
|
|
@@ -2053,7 +2069,7 @@ class OrganizationsApi {
|
|
|
2053
2069
|
useQuerystring: this._useQuerystring,
|
|
2054
2070
|
agentOptions: { keepAlive: false },
|
|
2055
2071
|
json: true,
|
|
2056
|
-
body: models_1.ObjectSerializer.serialize(
|
|
2072
|
+
body: models_1.ObjectSerializer.serialize(adminAddProjectUserRequest, "AdminAddProjectUserRequest")
|
|
2057
2073
|
};
|
|
2058
2074
|
let authenticationPromise = Promise.resolve();
|
|
2059
2075
|
authenticationPromise = authenticationPromise.then(() => this.authentications.ApiKeyAuthentication.applyToRequest(localVarRequestOptions));
|
|
@@ -2075,7 +2091,7 @@ class OrganizationsApi {
|
|
|
2075
2091
|
reject(error);
|
|
2076
2092
|
}
|
|
2077
2093
|
else {
|
|
2078
|
-
body = models_1.ObjectSerializer.deserialize(body, "
|
|
2094
|
+
body = models_1.ObjectSerializer.deserialize(body, "GenericApiResponse");
|
|
2079
2095
|
const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
|
|
2080
2096
|
if (typeof body.success === 'boolean' && !body.success) {
|
|
2081
2097
|
reject(new Error(body.error || errString));
|
|
@@ -2092,12 +2108,13 @@ class OrganizationsApi {
|
|
|
2092
2108
|
});
|
|
2093
2109
|
}
|
|
2094
2110
|
/**
|
|
2095
|
-
*
|
|
2096
|
-
* @summary
|
|
2111
|
+
* Create a new organization. This is an internal API only available to white label admins
|
|
2112
|
+
* @summary Create new organization within white label context
|
|
2097
2113
|
* @param organizationId Organization ID
|
|
2114
|
+
* @param whitelabelAdminCreateOrganizationRequest
|
|
2098
2115
|
*/
|
|
2099
|
-
async
|
|
2100
|
-
const localVarPath = this.basePath + '/api/organizations/{organizationId}/whitelabel'
|
|
2116
|
+
async whitelabelAdminCreateOrganization(organizationId, whitelabelAdminCreateOrganizationRequest, options = { headers: {} }) {
|
|
2117
|
+
const localVarPath = this.basePath + '/api/organizations/{organizationId}/whitelabel/organizations'
|
|
2101
2118
|
.replace('{' + 'organizationId' + '}', encodeURIComponent(String(organizationId)));
|
|
2102
2119
|
let localVarQueryParameters = {};
|
|
2103
2120
|
let localVarHeaderParams = Object.assign({
|
|
@@ -2114,19 +2131,24 @@ class OrganizationsApi {
|
|
|
2114
2131
|
let localVarFormParams = {};
|
|
2115
2132
|
// verify required parameter 'organizationId' is not null or undefined
|
|
2116
2133
|
if (organizationId === null || organizationId === undefined) {
|
|
2117
|
-
throw new Error('Required parameter organizationId was null or undefined when calling
|
|
2134
|
+
throw new Error('Required parameter organizationId was null or undefined when calling whitelabelAdminCreateOrganization.');
|
|
2135
|
+
}
|
|
2136
|
+
// verify required parameter 'whitelabelAdminCreateOrganizationRequest' is not null or undefined
|
|
2137
|
+
if (whitelabelAdminCreateOrganizationRequest === null || whitelabelAdminCreateOrganizationRequest === undefined) {
|
|
2138
|
+
throw new Error('Required parameter whitelabelAdminCreateOrganizationRequest was null or undefined when calling whitelabelAdminCreateOrganization.');
|
|
2118
2139
|
}
|
|
2119
2140
|
Object.assign(localVarHeaderParams, options.headers);
|
|
2120
2141
|
Object.assign(localVarHeaderParams, this.opts.extraHeaders);
|
|
2121
2142
|
let localVarUseFormData = false;
|
|
2122
2143
|
let localVarRequestOptions = {
|
|
2123
|
-
method: '
|
|
2144
|
+
method: 'POST',
|
|
2124
2145
|
qs: localVarQueryParameters,
|
|
2125
2146
|
headers: localVarHeaderParams,
|
|
2126
2147
|
uri: localVarPath,
|
|
2127
2148
|
useQuerystring: this._useQuerystring,
|
|
2128
2149
|
agentOptions: { keepAlive: false },
|
|
2129
2150
|
json: true,
|
|
2151
|
+
body: models_1.ObjectSerializer.serialize(whitelabelAdminCreateOrganizationRequest, "WhitelabelAdminCreateOrganizationRequest")
|
|
2130
2152
|
};
|
|
2131
2153
|
let authenticationPromise = Promise.resolve();
|
|
2132
2154
|
authenticationPromise = authenticationPromise.then(() => this.authentications.ApiKeyAuthentication.applyToRequest(localVarRequestOptions));
|
|
@@ -2148,7 +2170,7 @@ class OrganizationsApi {
|
|
|
2148
2170
|
reject(error);
|
|
2149
2171
|
}
|
|
2150
2172
|
else {
|
|
2151
|
-
body = models_1.ObjectSerializer.deserialize(body, "
|
|
2173
|
+
body = models_1.ObjectSerializer.deserialize(body, "CreateOrganizationResponse");
|
|
2152
2174
|
const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
|
|
2153
2175
|
if (typeof body.success === 'boolean' && !body.success) {
|
|
2154
2176
|
reject(new Error(body.error || errString));
|
|
@@ -2165,13 +2187,16 @@ class OrganizationsApi {
|
|
|
2165
2187
|
});
|
|
2166
2188
|
}
|
|
2167
2189
|
/**
|
|
2168
|
-
* White label admin only API to
|
|
2169
|
-
* @summary
|
|
2190
|
+
* White label admin only API to create a new project for an organization.
|
|
2191
|
+
* @summary Create a new organization project
|
|
2170
2192
|
* @param organizationId Organization ID
|
|
2193
|
+
* @param innerOrganizationId Organization ID within the context of a white label
|
|
2194
|
+
* @param adminCreateProjectRequest
|
|
2171
2195
|
*/
|
|
2172
|
-
async
|
|
2173
|
-
const localVarPath = this.basePath + '/api/organizations/{organizationId}/whitelabel/
|
|
2174
|
-
.replace('{' + 'organizationId' + '}', encodeURIComponent(String(organizationId)))
|
|
2196
|
+
async whitelabelAdminCreateOrganizationProject(organizationId, innerOrganizationId, adminCreateProjectRequest, options = { headers: {} }) {
|
|
2197
|
+
const localVarPath = this.basePath + '/api/organizations/{organizationId}/whitelabel/organizations/{innerOrganizationId}/projects'
|
|
2198
|
+
.replace('{' + 'organizationId' + '}', encodeURIComponent(String(organizationId)))
|
|
2199
|
+
.replace('{' + 'innerOrganizationId' + '}', encodeURIComponent(String(innerOrganizationId)));
|
|
2175
2200
|
let localVarQueryParameters = {};
|
|
2176
2201
|
let localVarHeaderParams = Object.assign({
|
|
2177
2202
|
'User-Agent': 'edgeimpulse-api nodejs'
|
|
@@ -2187,19 +2212,28 @@ class OrganizationsApi {
|
|
|
2187
2212
|
let localVarFormParams = {};
|
|
2188
2213
|
// verify required parameter 'organizationId' is not null or undefined
|
|
2189
2214
|
if (organizationId === null || organizationId === undefined) {
|
|
2190
|
-
throw new Error('Required parameter organizationId was null or undefined when calling
|
|
2215
|
+
throw new Error('Required parameter organizationId was null or undefined when calling whitelabelAdminCreateOrganizationProject.');
|
|
2216
|
+
}
|
|
2217
|
+
// verify required parameter 'innerOrganizationId' is not null or undefined
|
|
2218
|
+
if (innerOrganizationId === null || innerOrganizationId === undefined) {
|
|
2219
|
+
throw new Error('Required parameter innerOrganizationId was null or undefined when calling whitelabelAdminCreateOrganizationProject.');
|
|
2220
|
+
}
|
|
2221
|
+
// verify required parameter 'adminCreateProjectRequest' is not null or undefined
|
|
2222
|
+
if (adminCreateProjectRequest === null || adminCreateProjectRequest === undefined) {
|
|
2223
|
+
throw new Error('Required parameter adminCreateProjectRequest was null or undefined when calling whitelabelAdminCreateOrganizationProject.');
|
|
2191
2224
|
}
|
|
2192
2225
|
Object.assign(localVarHeaderParams, options.headers);
|
|
2193
2226
|
Object.assign(localVarHeaderParams, this.opts.extraHeaders);
|
|
2194
2227
|
let localVarUseFormData = false;
|
|
2195
2228
|
let localVarRequestOptions = {
|
|
2196
|
-
method: '
|
|
2229
|
+
method: 'POST',
|
|
2197
2230
|
qs: localVarQueryParameters,
|
|
2198
2231
|
headers: localVarHeaderParams,
|
|
2199
2232
|
uri: localVarPath,
|
|
2200
2233
|
useQuerystring: this._useQuerystring,
|
|
2201
2234
|
agentOptions: { keepAlive: false },
|
|
2202
2235
|
json: true,
|
|
2236
|
+
body: models_1.ObjectSerializer.serialize(adminCreateProjectRequest, "AdminCreateProjectRequest")
|
|
2203
2237
|
};
|
|
2204
2238
|
let authenticationPromise = Promise.resolve();
|
|
2205
2239
|
authenticationPromise = authenticationPromise.then(() => this.authentications.ApiKeyAuthentication.applyToRequest(localVarRequestOptions));
|
|
@@ -2221,7 +2255,7 @@ class OrganizationsApi {
|
|
|
2221
2255
|
reject(error);
|
|
2222
2256
|
}
|
|
2223
2257
|
else {
|
|
2224
|
-
body = models_1.ObjectSerializer.deserialize(body, "
|
|
2258
|
+
body = models_1.ObjectSerializer.deserialize(body, "CreateProjectResponse");
|
|
2225
2259
|
const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
|
|
2226
2260
|
if (typeof body.success === 'boolean' && !body.success) {
|
|
2227
2261
|
reject(new Error(body.error || errString));
|
|
@@ -2238,13 +2272,15 @@ class OrganizationsApi {
|
|
|
2238
2272
|
});
|
|
2239
2273
|
}
|
|
2240
2274
|
/**
|
|
2241
|
-
*
|
|
2242
|
-
* @summary
|
|
2275
|
+
* 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. This is an internal API only available to white label admins.
|
|
2276
|
+
* @summary Creates a new usage report
|
|
2243
2277
|
* @param organizationId Organization ID
|
|
2244
2278
|
* @param innerOrganizationId Organization ID within the context of a white label
|
|
2279
|
+
* @param startDate Start date
|
|
2280
|
+
* @param endDate End date
|
|
2245
2281
|
*/
|
|
2246
|
-
async
|
|
2247
|
-
const localVarPath = this.basePath + '/api/organizations/{organizationId}/whitelabel/organizations/{innerOrganizationId}'
|
|
2282
|
+
async whitelabelAdminCreateOrganizationUsageReport(organizationId, innerOrganizationId, queryParams, options = { headers: {} }) {
|
|
2283
|
+
const localVarPath = this.basePath + '/api/organizations/{organizationId}/whitelabel/organizations/{innerOrganizationId}/usage/reports'
|
|
2248
2284
|
.replace('{' + 'organizationId' + '}', encodeURIComponent(String(organizationId)))
|
|
2249
2285
|
.replace('{' + 'innerOrganizationId' + '}', encodeURIComponent(String(innerOrganizationId)));
|
|
2250
2286
|
let localVarQueryParameters = {};
|
|
@@ -2262,17 +2298,31 @@ class OrganizationsApi {
|
|
|
2262
2298
|
let localVarFormParams = {};
|
|
2263
2299
|
// verify required parameter 'organizationId' is not null or undefined
|
|
2264
2300
|
if (organizationId === null || organizationId === undefined) {
|
|
2265
|
-
throw new Error('Required parameter organizationId was null or undefined when calling
|
|
2301
|
+
throw new Error('Required parameter organizationId was null or undefined when calling whitelabelAdminCreateOrganizationUsageReport.');
|
|
2266
2302
|
}
|
|
2267
2303
|
// verify required parameter 'innerOrganizationId' is not null or undefined
|
|
2268
2304
|
if (innerOrganizationId === null || innerOrganizationId === undefined) {
|
|
2269
|
-
throw new Error('Required parameter innerOrganizationId was null or undefined when calling
|
|
2305
|
+
throw new Error('Required parameter innerOrganizationId was null or undefined when calling whitelabelAdminCreateOrganizationUsageReport.');
|
|
2306
|
+
}
|
|
2307
|
+
// verify required parameter 'startDate' is not null or undefined
|
|
2308
|
+
if (queryParams.startDate === null || queryParams.startDate === undefined) {
|
|
2309
|
+
throw new Error('Required parameter queryParams.startDate was null or undefined when calling whitelabelAdminCreateOrganizationUsageReport.');
|
|
2310
|
+
}
|
|
2311
|
+
// verify required parameter 'endDate' is not null or undefined
|
|
2312
|
+
if (queryParams.endDate === null || queryParams.endDate === undefined) {
|
|
2313
|
+
throw new Error('Required parameter queryParams.endDate was null or undefined when calling whitelabelAdminCreateOrganizationUsageReport.');
|
|
2314
|
+
}
|
|
2315
|
+
if (queryParams.startDate !== undefined) {
|
|
2316
|
+
localVarQueryParameters['startDate'] = models_1.ObjectSerializer.serialize(queryParams.startDate, "Date");
|
|
2317
|
+
}
|
|
2318
|
+
if (queryParams.endDate !== undefined) {
|
|
2319
|
+
localVarQueryParameters['endDate'] = models_1.ObjectSerializer.serialize(queryParams.endDate, "Date");
|
|
2270
2320
|
}
|
|
2271
2321
|
Object.assign(localVarHeaderParams, options.headers);
|
|
2272
2322
|
Object.assign(localVarHeaderParams, this.opts.extraHeaders);
|
|
2273
2323
|
let localVarUseFormData = false;
|
|
2274
2324
|
let localVarRequestOptions = {
|
|
2275
|
-
method: '
|
|
2325
|
+
method: 'POST',
|
|
2276
2326
|
qs: localVarQueryParameters,
|
|
2277
2327
|
headers: localVarHeaderParams,
|
|
2278
2328
|
uri: localVarPath,
|
|
@@ -2300,7 +2350,7 @@ class OrganizationsApi {
|
|
|
2300
2350
|
reject(error);
|
|
2301
2351
|
}
|
|
2302
2352
|
else {
|
|
2303
|
-
body = models_1.ObjectSerializer.deserialize(body, "
|
|
2353
|
+
body = models_1.ObjectSerializer.deserialize(body, "StartJobResponse");
|
|
2304
2354
|
const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
|
|
2305
2355
|
if (typeof body.success === 'boolean' && !body.success) {
|
|
2306
2356
|
reject(new Error(body.error || errString));
|
|
@@ -2317,17 +2367,13 @@ class OrganizationsApi {
|
|
|
2317
2367
|
});
|
|
2318
2368
|
}
|
|
2319
2369
|
/**
|
|
2320
|
-
*
|
|
2321
|
-
* @summary
|
|
2370
|
+
* Create a new free tier project. This is an internal API only available to white label admins.
|
|
2371
|
+
* @summary Create a new project within white label context.
|
|
2322
2372
|
* @param organizationId Organization ID
|
|
2323
|
-
* @param
|
|
2324
|
-
* @param sort Fields and order to sort query by
|
|
2325
|
-
* @param limit Maximum number of results
|
|
2326
|
-
* @param offset Offset in results, can be used in conjunction with LimitResultsParameter to implement paging.
|
|
2327
|
-
* @param search Search query
|
|
2373
|
+
* @param adminCreateProjectRequest
|
|
2328
2374
|
*/
|
|
2329
|
-
async
|
|
2330
|
-
const localVarPath = this.basePath + '/api/organizations/{organizationId}/whitelabel/
|
|
2375
|
+
async whitelabelAdminCreateProject(organizationId, adminCreateProjectRequest, options = { headers: {} }) {
|
|
2376
|
+
const localVarPath = this.basePath + '/api/organizations/{organizationId}/whitelabel/projects'
|
|
2331
2377
|
.replace('{' + 'organizationId' + '}', encodeURIComponent(String(organizationId)));
|
|
2332
2378
|
let localVarQueryParameters = {};
|
|
2333
2379
|
let localVarHeaderParams = Object.assign({
|
|
@@ -2344,34 +2390,24 @@ class OrganizationsApi {
|
|
|
2344
2390
|
let localVarFormParams = {};
|
|
2345
2391
|
// verify required parameter 'organizationId' is not null or undefined
|
|
2346
2392
|
if (organizationId === null || organizationId === undefined) {
|
|
2347
|
-
throw new Error('Required parameter organizationId was null or undefined when calling
|
|
2348
|
-
}
|
|
2349
|
-
if (queryParams.active !== undefined) {
|
|
2350
|
-
localVarQueryParameters['active'] = models_1.ObjectSerializer.serialize(queryParams.active, "number");
|
|
2351
|
-
}
|
|
2352
|
-
if (queryParams.sort !== undefined) {
|
|
2353
|
-
localVarQueryParameters['sort'] = models_1.ObjectSerializer.serialize(queryParams.sort, "string");
|
|
2354
|
-
}
|
|
2355
|
-
if (queryParams.limit !== undefined) {
|
|
2356
|
-
localVarQueryParameters['limit'] = models_1.ObjectSerializer.serialize(queryParams.limit, "number");
|
|
2357
|
-
}
|
|
2358
|
-
if (queryParams.offset !== undefined) {
|
|
2359
|
-
localVarQueryParameters['offset'] = models_1.ObjectSerializer.serialize(queryParams.offset, "number");
|
|
2393
|
+
throw new Error('Required parameter organizationId was null or undefined when calling whitelabelAdminCreateProject.');
|
|
2360
2394
|
}
|
|
2361
|
-
|
|
2362
|
-
|
|
2395
|
+
// verify required parameter 'adminCreateProjectRequest' is not null or undefined
|
|
2396
|
+
if (adminCreateProjectRequest === null || adminCreateProjectRequest === undefined) {
|
|
2397
|
+
throw new Error('Required parameter adminCreateProjectRequest was null or undefined when calling whitelabelAdminCreateProject.');
|
|
2363
2398
|
}
|
|
2364
2399
|
Object.assign(localVarHeaderParams, options.headers);
|
|
2365
2400
|
Object.assign(localVarHeaderParams, this.opts.extraHeaders);
|
|
2366
2401
|
let localVarUseFormData = false;
|
|
2367
2402
|
let localVarRequestOptions = {
|
|
2368
|
-
method: '
|
|
2403
|
+
method: 'POST',
|
|
2369
2404
|
qs: localVarQueryParameters,
|
|
2370
2405
|
headers: localVarHeaderParams,
|
|
2371
2406
|
uri: localVarPath,
|
|
2372
2407
|
useQuerystring: this._useQuerystring,
|
|
2373
2408
|
agentOptions: { keepAlive: false },
|
|
2374
2409
|
json: true,
|
|
2410
|
+
body: models_1.ObjectSerializer.serialize(adminCreateProjectRequest, "AdminCreateProjectRequest")
|
|
2375
2411
|
};
|
|
2376
2412
|
let authenticationPromise = Promise.resolve();
|
|
2377
2413
|
authenticationPromise = authenticationPromise.then(() => this.authentications.ApiKeyAuthentication.applyToRequest(localVarRequestOptions));
|
|
@@ -2393,7 +2429,7 @@ class OrganizationsApi {
|
|
|
2393
2429
|
reject(error);
|
|
2394
2430
|
}
|
|
2395
2431
|
else {
|
|
2396
|
-
body = models_1.ObjectSerializer.deserialize(body, "
|
|
2432
|
+
body = models_1.ObjectSerializer.deserialize(body, "CreateProjectResponse");
|
|
2397
2433
|
const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
|
|
2398
2434
|
if (typeof body.success === 'boolean' && !body.success) {
|
|
2399
2435
|
reject(new Error(body.error || errString));
|
|
@@ -2410,15 +2446,15 @@ class OrganizationsApi {
|
|
|
2410
2446
|
});
|
|
2411
2447
|
}
|
|
2412
2448
|
/**
|
|
2413
|
-
* White label admin only API to
|
|
2414
|
-
* @summary
|
|
2449
|
+
* White label admin only API to delete an organization.
|
|
2450
|
+
* @summary Delete an organization
|
|
2415
2451
|
* @param organizationId Organization ID
|
|
2416
|
-
* @param
|
|
2452
|
+
* @param innerOrganizationId Organization ID within the context of a white label
|
|
2417
2453
|
*/
|
|
2418
|
-
async
|
|
2419
|
-
const localVarPath = this.basePath + '/api/organizations/{organizationId}/whitelabel/
|
|
2454
|
+
async whitelabelAdminDeleteOrganization(organizationId, innerOrganizationId, options = { headers: {} }) {
|
|
2455
|
+
const localVarPath = this.basePath + '/api/organizations/{organizationId}/whitelabel/organizations/{innerOrganizationId}'
|
|
2420
2456
|
.replace('{' + 'organizationId' + '}', encodeURIComponent(String(organizationId)))
|
|
2421
|
-
.replace('{' + '
|
|
2457
|
+
.replace('{' + 'innerOrganizationId' + '}', encodeURIComponent(String(innerOrganizationId)));
|
|
2422
2458
|
let localVarQueryParameters = {};
|
|
2423
2459
|
let localVarHeaderParams = Object.assign({
|
|
2424
2460
|
'User-Agent': 'edgeimpulse-api nodejs'
|
|
@@ -2434,17 +2470,17 @@ class OrganizationsApi {
|
|
|
2434
2470
|
let localVarFormParams = {};
|
|
2435
2471
|
// verify required parameter 'organizationId' is not null or undefined
|
|
2436
2472
|
if (organizationId === null || organizationId === undefined) {
|
|
2437
|
-
throw new Error('Required parameter organizationId was null or undefined when calling
|
|
2473
|
+
throw new Error('Required parameter organizationId was null or undefined when calling whitelabelAdminDeleteOrganization.');
|
|
2438
2474
|
}
|
|
2439
|
-
// verify required parameter '
|
|
2440
|
-
if (
|
|
2441
|
-
throw new Error('Required parameter
|
|
2475
|
+
// verify required parameter 'innerOrganizationId' is not null or undefined
|
|
2476
|
+
if (innerOrganizationId === null || innerOrganizationId === undefined) {
|
|
2477
|
+
throw new Error('Required parameter innerOrganizationId was null or undefined when calling whitelabelAdminDeleteOrganization.');
|
|
2442
2478
|
}
|
|
2443
2479
|
Object.assign(localVarHeaderParams, options.headers);
|
|
2444
2480
|
Object.assign(localVarHeaderParams, this.opts.extraHeaders);
|
|
2445
2481
|
let localVarUseFormData = false;
|
|
2446
2482
|
let localVarRequestOptions = {
|
|
2447
|
-
method: '
|
|
2483
|
+
method: 'DELETE',
|
|
2448
2484
|
qs: localVarQueryParameters,
|
|
2449
2485
|
headers: localVarHeaderParams,
|
|
2450
2486
|
uri: localVarPath,
|
|
@@ -2472,7 +2508,7 @@ class OrganizationsApi {
|
|
|
2472
2508
|
reject(error);
|
|
2473
2509
|
}
|
|
2474
2510
|
else {
|
|
2475
|
-
body = models_1.ObjectSerializer.deserialize(body, "
|
|
2511
|
+
body = models_1.ObjectSerializer.deserialize(body, "GenericApiResponse");
|
|
2476
2512
|
const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
|
|
2477
2513
|
if (typeof body.success === 'boolean' && !body.success) {
|
|
2478
2514
|
reject(new Error(body.error || errString));
|
|
@@ -2489,18 +2525,17 @@ class OrganizationsApi {
|
|
|
2489
2525
|
});
|
|
2490
2526
|
}
|
|
2491
2527
|
/**
|
|
2492
|
-
*
|
|
2493
|
-
* @summary
|
|
2528
|
+
* Delete a usage report for an organization. This is an internal API only available to white label admins.
|
|
2529
|
+
* @summary Delete usage report
|
|
2494
2530
|
* @param organizationId Organization ID
|
|
2495
|
-
* @param
|
|
2496
|
-
* @param
|
|
2497
|
-
* @param limit Maximum number of results
|
|
2498
|
-
* @param offset Offset in results, can be used in conjunction with LimitResultsParameter to implement paging.
|
|
2499
|
-
* @param search Search query
|
|
2531
|
+
* @param innerOrganizationId Organization ID within the context of a white label
|
|
2532
|
+
* @param usageReportId Usage report ID
|
|
2500
2533
|
*/
|
|
2501
|
-
async
|
|
2502
|
-
const localVarPath = this.basePath + '/api/organizations/{organizationId}/whitelabel/
|
|
2503
|
-
.replace('{' + 'organizationId' + '}', encodeURIComponent(String(organizationId)))
|
|
2534
|
+
async whitelabelAdminDeleteOrganizationUsageReport(organizationId, innerOrganizationId, usageReportId, options = { headers: {} }) {
|
|
2535
|
+
const localVarPath = this.basePath + '/api/organizations/{organizationId}/whitelabel/organizations/{innerOrganizationId}/usage/reports/{usageReportId}'
|
|
2536
|
+
.replace('{' + 'organizationId' + '}', encodeURIComponent(String(organizationId)))
|
|
2537
|
+
.replace('{' + 'innerOrganizationId' + '}', encodeURIComponent(String(innerOrganizationId)))
|
|
2538
|
+
.replace('{' + 'usageReportId' + '}', encodeURIComponent(String(usageReportId)));
|
|
2504
2539
|
let localVarQueryParameters = {};
|
|
2505
2540
|
let localVarHeaderParams = Object.assign({
|
|
2506
2541
|
'User-Agent': 'edgeimpulse-api nodejs'
|
|
@@ -2516,28 +2551,21 @@ class OrganizationsApi {
|
|
|
2516
2551
|
let localVarFormParams = {};
|
|
2517
2552
|
// verify required parameter 'organizationId' is not null or undefined
|
|
2518
2553
|
if (organizationId === null || organizationId === undefined) {
|
|
2519
|
-
throw new Error('Required parameter organizationId was null or undefined when calling
|
|
2520
|
-
}
|
|
2521
|
-
if (queryParams.active !== undefined) {
|
|
2522
|
-
localVarQueryParameters['active'] = models_1.ObjectSerializer.serialize(queryParams.active, "number");
|
|
2523
|
-
}
|
|
2524
|
-
if (queryParams.sort !== undefined) {
|
|
2525
|
-
localVarQueryParameters['sort'] = models_1.ObjectSerializer.serialize(queryParams.sort, "string");
|
|
2526
|
-
}
|
|
2527
|
-
if (queryParams.limit !== undefined) {
|
|
2528
|
-
localVarQueryParameters['limit'] = models_1.ObjectSerializer.serialize(queryParams.limit, "number");
|
|
2554
|
+
throw new Error('Required parameter organizationId was null or undefined when calling whitelabelAdminDeleteOrganizationUsageReport.');
|
|
2529
2555
|
}
|
|
2530
|
-
|
|
2531
|
-
|
|
2556
|
+
// verify required parameter 'innerOrganizationId' is not null or undefined
|
|
2557
|
+
if (innerOrganizationId === null || innerOrganizationId === undefined) {
|
|
2558
|
+
throw new Error('Required parameter innerOrganizationId was null or undefined when calling whitelabelAdminDeleteOrganizationUsageReport.');
|
|
2532
2559
|
}
|
|
2533
|
-
|
|
2534
|
-
|
|
2560
|
+
// verify required parameter 'usageReportId' is not null or undefined
|
|
2561
|
+
if (usageReportId === null || usageReportId === undefined) {
|
|
2562
|
+
throw new Error('Required parameter usageReportId was null or undefined when calling whitelabelAdminDeleteOrganizationUsageReport.');
|
|
2535
2563
|
}
|
|
2536
2564
|
Object.assign(localVarHeaderParams, options.headers);
|
|
2537
2565
|
Object.assign(localVarHeaderParams, this.opts.extraHeaders);
|
|
2538
2566
|
let localVarUseFormData = false;
|
|
2539
2567
|
let localVarRequestOptions = {
|
|
2540
|
-
method: '
|
|
2568
|
+
method: 'DELETE',
|
|
2541
2569
|
qs: localVarQueryParameters,
|
|
2542
2570
|
headers: localVarHeaderParams,
|
|
2543
2571
|
uri: localVarPath,
|
|
@@ -2565,7 +2593,7 @@ class OrganizationsApi {
|
|
|
2565
2593
|
reject(error);
|
|
2566
2594
|
}
|
|
2567
2595
|
else {
|
|
2568
|
-
body = models_1.ObjectSerializer.deserialize(body, "
|
|
2596
|
+
body = models_1.ObjectSerializer.deserialize(body, "GenericApiResponse");
|
|
2569
2597
|
const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
|
|
2570
2598
|
if (typeof body.success === 'boolean' && !body.success) {
|
|
2571
2599
|
reject(new Error(body.error || errString));
|
|
@@ -2582,15 +2610,15 @@ class OrganizationsApi {
|
|
|
2582
2610
|
});
|
|
2583
2611
|
}
|
|
2584
2612
|
/**
|
|
2585
|
-
* White label admin only API to
|
|
2586
|
-
* @summary
|
|
2613
|
+
* White label admin only API to delete a project.
|
|
2614
|
+
* @summary Delete a project
|
|
2587
2615
|
* @param organizationId Organization ID
|
|
2588
|
-
* @param
|
|
2616
|
+
* @param projectId Project ID
|
|
2589
2617
|
*/
|
|
2590
|
-
async
|
|
2591
|
-
const localVarPath = this.basePath + '/api/organizations/{organizationId}/whitelabel/
|
|
2618
|
+
async whitelabelAdminDeleteProject(organizationId, projectId, options = { headers: {} }) {
|
|
2619
|
+
const localVarPath = this.basePath + '/api/organizations/{organizationId}/whitelabel/projects/{projectId}'
|
|
2592
2620
|
.replace('{' + 'organizationId' + '}', encodeURIComponent(String(organizationId)))
|
|
2593
|
-
.replace('{' + '
|
|
2621
|
+
.replace('{' + 'projectId' + '}', encodeURIComponent(String(projectId)));
|
|
2594
2622
|
let localVarQueryParameters = {};
|
|
2595
2623
|
let localVarHeaderParams = Object.assign({
|
|
2596
2624
|
'User-Agent': 'edgeimpulse-api nodejs'
|
|
@@ -2606,17 +2634,17 @@ class OrganizationsApi {
|
|
|
2606
2634
|
let localVarFormParams = {};
|
|
2607
2635
|
// verify required parameter 'organizationId' is not null or undefined
|
|
2608
2636
|
if (organizationId === null || organizationId === undefined) {
|
|
2609
|
-
throw new Error('Required parameter organizationId was null or undefined when calling
|
|
2637
|
+
throw new Error('Required parameter organizationId was null or undefined when calling whitelabelAdminDeleteProject.');
|
|
2610
2638
|
}
|
|
2611
|
-
// verify required parameter '
|
|
2612
|
-
if (
|
|
2613
|
-
throw new Error('Required parameter
|
|
2639
|
+
// verify required parameter 'projectId' is not null or undefined
|
|
2640
|
+
if (projectId === null || projectId === undefined) {
|
|
2641
|
+
throw new Error('Required parameter projectId was null or undefined when calling whitelabelAdminDeleteProject.');
|
|
2614
2642
|
}
|
|
2615
2643
|
Object.assign(localVarHeaderParams, options.headers);
|
|
2616
2644
|
Object.assign(localVarHeaderParams, this.opts.extraHeaders);
|
|
2617
2645
|
let localVarUseFormData = false;
|
|
2618
2646
|
let localVarRequestOptions = {
|
|
2619
|
-
method: '
|
|
2647
|
+
method: 'DELETE',
|
|
2620
2648
|
qs: localVarQueryParameters,
|
|
2621
2649
|
headers: localVarHeaderParams,
|
|
2622
2650
|
uri: localVarPath,
|
|
@@ -2644,7 +2672,7 @@ class OrganizationsApi {
|
|
|
2644
2672
|
reject(error);
|
|
2645
2673
|
}
|
|
2646
2674
|
else {
|
|
2647
|
-
body = models_1.ObjectSerializer.deserialize(body, "
|
|
2675
|
+
body = models_1.ObjectSerializer.deserialize(body, "GenericApiResponse");
|
|
2648
2676
|
const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
|
|
2649
2677
|
if (typeof body.success === 'boolean' && !body.success) {
|
|
2650
2678
|
reject(new Error(body.error || errString));
|
|
@@ -2661,35 +2689,33 @@ class OrganizationsApi {
|
|
|
2661
2689
|
});
|
|
2662
2690
|
}
|
|
2663
2691
|
/**
|
|
2664
|
-
*
|
|
2665
|
-
* @summary
|
|
2692
|
+
* Download a usage report for an organization. This is an internal API only available to white label admins.
|
|
2693
|
+
* @summary Download usage report
|
|
2666
2694
|
* @param organizationId Organization ID
|
|
2667
|
-
* @param
|
|
2695
|
+
* @param innerOrganizationId Organization ID within the context of a white label
|
|
2696
|
+
* @param usageReportId Usage report ID
|
|
2668
2697
|
*/
|
|
2669
|
-
async
|
|
2670
|
-
const localVarPath = this.basePath + '/api/organizations/{organizationId}/whitelabel/
|
|
2698
|
+
async whitelabelAdminDownloadOrganizationUsageReport(organizationId, innerOrganizationId, usageReportId, options = { headers: {} }) {
|
|
2699
|
+
const localVarPath = this.basePath + '/api/organizations/{organizationId}/whitelabel/organizations/{innerOrganizationId}/usage/reports/{usageReportId}/download'
|
|
2671
2700
|
.replace('{' + 'organizationId' + '}', encodeURIComponent(String(organizationId)))
|
|
2672
|
-
.replace('{' + '
|
|
2701
|
+
.replace('{' + 'innerOrganizationId' + '}', encodeURIComponent(String(innerOrganizationId)))
|
|
2702
|
+
.replace('{' + 'usageReportId' + '}', encodeURIComponent(String(usageReportId)));
|
|
2673
2703
|
let localVarQueryParameters = {};
|
|
2674
2704
|
let localVarHeaderParams = Object.assign({
|
|
2675
2705
|
'User-Agent': 'edgeimpulse-api nodejs'
|
|
2676
2706
|
}, this.defaultHeaders);
|
|
2677
|
-
const produces = ['application/json'];
|
|
2678
|
-
// give precedence to 'application/json'
|
|
2679
|
-
if (produces.indexOf('application/json') >= 0) {
|
|
2680
|
-
localVarHeaderParams.Accept = 'application/json';
|
|
2681
|
-
}
|
|
2682
|
-
else {
|
|
2683
|
-
localVarHeaderParams.Accept = produces.join(',');
|
|
2684
|
-
}
|
|
2685
2707
|
let localVarFormParams = {};
|
|
2686
2708
|
// verify required parameter 'organizationId' is not null or undefined
|
|
2687
2709
|
if (organizationId === null || organizationId === undefined) {
|
|
2688
|
-
throw new Error('Required parameter organizationId was null or undefined when calling
|
|
2710
|
+
throw new Error('Required parameter organizationId was null or undefined when calling whitelabelAdminDownloadOrganizationUsageReport.');
|
|
2689
2711
|
}
|
|
2690
|
-
// verify required parameter '
|
|
2691
|
-
if (
|
|
2692
|
-
throw new Error('Required parameter
|
|
2712
|
+
// verify required parameter 'innerOrganizationId' is not null or undefined
|
|
2713
|
+
if (innerOrganizationId === null || innerOrganizationId === undefined) {
|
|
2714
|
+
throw new Error('Required parameter innerOrganizationId was null or undefined when calling whitelabelAdminDownloadOrganizationUsageReport.');
|
|
2715
|
+
}
|
|
2716
|
+
// verify required parameter 'usageReportId' is not null or undefined
|
|
2717
|
+
if (usageReportId === null || usageReportId === undefined) {
|
|
2718
|
+
throw new Error('Required parameter usageReportId was null or undefined when calling whitelabelAdminDownloadOrganizationUsageReport.');
|
|
2693
2719
|
}
|
|
2694
2720
|
Object.assign(localVarHeaderParams, options.headers);
|
|
2695
2721
|
Object.assign(localVarHeaderParams, this.opts.extraHeaders);
|
|
@@ -2723,7 +2749,6 @@ class OrganizationsApi {
|
|
|
2723
2749
|
reject(error);
|
|
2724
2750
|
}
|
|
2725
2751
|
else {
|
|
2726
|
-
body = models_1.ObjectSerializer.deserialize(body, "AdminGetUserMetricsResponse");
|
|
2727
2752
|
const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
|
|
2728
2753
|
if (typeof body.success === 'boolean' && !body.success) {
|
|
2729
2754
|
reject(new Error(body.error || errString));
|
|
@@ -2740,19 +2765,942 @@ class OrganizationsApi {
|
|
|
2740
2765
|
});
|
|
2741
2766
|
}
|
|
2742
2767
|
/**
|
|
2743
|
-
* White label admin only API to get the
|
|
2744
|
-
* @summary Get
|
|
2768
|
+
* White label admin only API to get the white label information.
|
|
2769
|
+
* @summary Get white label information
|
|
2745
2770
|
* @param organizationId Organization ID
|
|
2746
|
-
* @param active Whether to search for entities (users, orgs) active in the last X days
|
|
2747
|
-
* @param tier Whether to search for free, pro or enterprise entities (users, projects)
|
|
2748
|
-
* @param fields Comma separated list of fields to fetch in a query
|
|
2749
|
-
* @param sort Fields and order to sort query by
|
|
2750
|
-
* @param limit Maximum number of results
|
|
2751
|
-
* @param offset Offset in results, can be used in conjunction with LimitResultsParameter to implement paging.
|
|
2752
|
-
* @param search Search query
|
|
2753
2771
|
*/
|
|
2754
|
-
async
|
|
2755
|
-
const localVarPath = this.basePath + '/api/organizations/{organizationId}/whitelabel
|
|
2772
|
+
async whitelabelAdminGetInfo(organizationId, options = { headers: {} }) {
|
|
2773
|
+
const localVarPath = this.basePath + '/api/organizations/{organizationId}/whitelabel'
|
|
2774
|
+
.replace('{' + 'organizationId' + '}', encodeURIComponent(String(organizationId)));
|
|
2775
|
+
let localVarQueryParameters = {};
|
|
2776
|
+
let localVarHeaderParams = Object.assign({
|
|
2777
|
+
'User-Agent': 'edgeimpulse-api nodejs'
|
|
2778
|
+
}, this.defaultHeaders);
|
|
2779
|
+
const produces = ['application/json'];
|
|
2780
|
+
// give precedence to 'application/json'
|
|
2781
|
+
if (produces.indexOf('application/json') >= 0) {
|
|
2782
|
+
localVarHeaderParams.Accept = 'application/json';
|
|
2783
|
+
}
|
|
2784
|
+
else {
|
|
2785
|
+
localVarHeaderParams.Accept = produces.join(',');
|
|
2786
|
+
}
|
|
2787
|
+
let localVarFormParams = {};
|
|
2788
|
+
// verify required parameter 'organizationId' is not null or undefined
|
|
2789
|
+
if (organizationId === null || organizationId === undefined) {
|
|
2790
|
+
throw new Error('Required parameter organizationId was null or undefined when calling whitelabelAdminGetInfo.');
|
|
2791
|
+
}
|
|
2792
|
+
Object.assign(localVarHeaderParams, options.headers);
|
|
2793
|
+
Object.assign(localVarHeaderParams, this.opts.extraHeaders);
|
|
2794
|
+
let localVarUseFormData = false;
|
|
2795
|
+
let localVarRequestOptions = {
|
|
2796
|
+
method: 'GET',
|
|
2797
|
+
qs: localVarQueryParameters,
|
|
2798
|
+
headers: localVarHeaderParams,
|
|
2799
|
+
uri: localVarPath,
|
|
2800
|
+
useQuerystring: this._useQuerystring,
|
|
2801
|
+
agentOptions: { keepAlive: false },
|
|
2802
|
+
json: true,
|
|
2803
|
+
};
|
|
2804
|
+
let authenticationPromise = Promise.resolve();
|
|
2805
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.ApiKeyAuthentication.applyToRequest(localVarRequestOptions));
|
|
2806
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.JWTAuthentication.applyToRequest(localVarRequestOptions));
|
|
2807
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.JWTHttpHeaderAuthentication.applyToRequest(localVarRequestOptions));
|
|
2808
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
|
|
2809
|
+
return authenticationPromise.then(() => {
|
|
2810
|
+
if (Object.keys(localVarFormParams).length) {
|
|
2811
|
+
if (localVarUseFormData) {
|
|
2812
|
+
localVarRequestOptions.formData = localVarFormParams;
|
|
2813
|
+
}
|
|
2814
|
+
else {
|
|
2815
|
+
localVarRequestOptions.form = localVarFormParams;
|
|
2816
|
+
}
|
|
2817
|
+
}
|
|
2818
|
+
return new Promise((resolve, reject) => {
|
|
2819
|
+
localVarRequest(localVarRequestOptions, (error, response, body) => {
|
|
2820
|
+
if (error) {
|
|
2821
|
+
reject(error);
|
|
2822
|
+
}
|
|
2823
|
+
else {
|
|
2824
|
+
body = models_1.ObjectSerializer.deserialize(body, "GetWhitelabelResponse");
|
|
2825
|
+
const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
|
|
2826
|
+
if (typeof body.success === 'boolean' && !body.success) {
|
|
2827
|
+
reject(new Error(body.error || errString));
|
|
2828
|
+
}
|
|
2829
|
+
else if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
2830
|
+
resolve(body);
|
|
2831
|
+
}
|
|
2832
|
+
else {
|
|
2833
|
+
reject(errString);
|
|
2834
|
+
}
|
|
2835
|
+
}
|
|
2836
|
+
});
|
|
2837
|
+
});
|
|
2838
|
+
});
|
|
2839
|
+
}
|
|
2840
|
+
/**
|
|
2841
|
+
* White label admin only API to get global metrics.
|
|
2842
|
+
* @summary Get global white label metrics
|
|
2843
|
+
* @param organizationId Organization ID
|
|
2844
|
+
*/
|
|
2845
|
+
async whitelabelAdminGetMetrics(organizationId, options = { headers: {} }) {
|
|
2846
|
+
const localVarPath = this.basePath + '/api/organizations/{organizationId}/whitelabel/metrics'
|
|
2847
|
+
.replace('{' + 'organizationId' + '}', encodeURIComponent(String(organizationId)));
|
|
2848
|
+
let localVarQueryParameters = {};
|
|
2849
|
+
let localVarHeaderParams = Object.assign({
|
|
2850
|
+
'User-Agent': 'edgeimpulse-api nodejs'
|
|
2851
|
+
}, this.defaultHeaders);
|
|
2852
|
+
const produces = ['application/json'];
|
|
2853
|
+
// give precedence to 'application/json'
|
|
2854
|
+
if (produces.indexOf('application/json') >= 0) {
|
|
2855
|
+
localVarHeaderParams.Accept = 'application/json';
|
|
2856
|
+
}
|
|
2857
|
+
else {
|
|
2858
|
+
localVarHeaderParams.Accept = produces.join(',');
|
|
2859
|
+
}
|
|
2860
|
+
let localVarFormParams = {};
|
|
2861
|
+
// verify required parameter 'organizationId' is not null or undefined
|
|
2862
|
+
if (organizationId === null || organizationId === undefined) {
|
|
2863
|
+
throw new Error('Required parameter organizationId was null or undefined when calling whitelabelAdminGetMetrics.');
|
|
2864
|
+
}
|
|
2865
|
+
Object.assign(localVarHeaderParams, options.headers);
|
|
2866
|
+
Object.assign(localVarHeaderParams, this.opts.extraHeaders);
|
|
2867
|
+
let localVarUseFormData = false;
|
|
2868
|
+
let localVarRequestOptions = {
|
|
2869
|
+
method: 'GET',
|
|
2870
|
+
qs: localVarQueryParameters,
|
|
2871
|
+
headers: localVarHeaderParams,
|
|
2872
|
+
uri: localVarPath,
|
|
2873
|
+
useQuerystring: this._useQuerystring,
|
|
2874
|
+
agentOptions: { keepAlive: false },
|
|
2875
|
+
json: true,
|
|
2876
|
+
};
|
|
2877
|
+
let authenticationPromise = Promise.resolve();
|
|
2878
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.ApiKeyAuthentication.applyToRequest(localVarRequestOptions));
|
|
2879
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.JWTAuthentication.applyToRequest(localVarRequestOptions));
|
|
2880
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.JWTHttpHeaderAuthentication.applyToRequest(localVarRequestOptions));
|
|
2881
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
|
|
2882
|
+
return authenticationPromise.then(() => {
|
|
2883
|
+
if (Object.keys(localVarFormParams).length) {
|
|
2884
|
+
if (localVarUseFormData) {
|
|
2885
|
+
localVarRequestOptions.formData = localVarFormParams;
|
|
2886
|
+
}
|
|
2887
|
+
else {
|
|
2888
|
+
localVarRequestOptions.form = localVarFormParams;
|
|
2889
|
+
}
|
|
2890
|
+
}
|
|
2891
|
+
return new Promise((resolve, reject) => {
|
|
2892
|
+
localVarRequest(localVarRequestOptions, (error, response, body) => {
|
|
2893
|
+
if (error) {
|
|
2894
|
+
reject(error);
|
|
2895
|
+
}
|
|
2896
|
+
else {
|
|
2897
|
+
body = models_1.ObjectSerializer.deserialize(body, "AdminGetMetricsResponse");
|
|
2898
|
+
const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
|
|
2899
|
+
if (typeof body.success === 'boolean' && !body.success) {
|
|
2900
|
+
reject(new Error(body.error || errString));
|
|
2901
|
+
}
|
|
2902
|
+
else if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
2903
|
+
resolve(body);
|
|
2904
|
+
}
|
|
2905
|
+
else {
|
|
2906
|
+
reject(errString);
|
|
2907
|
+
}
|
|
2908
|
+
}
|
|
2909
|
+
});
|
|
2910
|
+
});
|
|
2911
|
+
});
|
|
2912
|
+
}
|
|
2913
|
+
/**
|
|
2914
|
+
* Get compute time usage for an organization over a period of time. This is an internal API only available to white label admins
|
|
2915
|
+
* @summary Get organization compute time usage
|
|
2916
|
+
* @param organizationId Organization ID
|
|
2917
|
+
* @param innerOrganizationId Organization ID within the context of a white label
|
|
2918
|
+
* @param startDate Start date
|
|
2919
|
+
* @param endDate End date
|
|
2920
|
+
*/
|
|
2921
|
+
async whitelabelAdminGetOrganizationComputeTimeUsage(organizationId, innerOrganizationId, queryParams, options = { headers: {} }) {
|
|
2922
|
+
const localVarPath = this.basePath + '/api/organizations/{organizationId}/whitelabel/organizations/{innerOrganizationId}/usage/computeTime'
|
|
2923
|
+
.replace('{' + 'organizationId' + '}', encodeURIComponent(String(organizationId)))
|
|
2924
|
+
.replace('{' + 'innerOrganizationId' + '}', encodeURIComponent(String(innerOrganizationId)));
|
|
2925
|
+
let localVarQueryParameters = {};
|
|
2926
|
+
let localVarHeaderParams = Object.assign({
|
|
2927
|
+
'User-Agent': 'edgeimpulse-api nodejs'
|
|
2928
|
+
}, this.defaultHeaders);
|
|
2929
|
+
const produces = ['application/json'];
|
|
2930
|
+
// give precedence to 'application/json'
|
|
2931
|
+
if (produces.indexOf('application/json') >= 0) {
|
|
2932
|
+
localVarHeaderParams.Accept = 'application/json';
|
|
2933
|
+
}
|
|
2934
|
+
else {
|
|
2935
|
+
localVarHeaderParams.Accept = produces.join(',');
|
|
2936
|
+
}
|
|
2937
|
+
let localVarFormParams = {};
|
|
2938
|
+
// verify required parameter 'organizationId' is not null or undefined
|
|
2939
|
+
if (organizationId === null || organizationId === undefined) {
|
|
2940
|
+
throw new Error('Required parameter organizationId was null or undefined when calling whitelabelAdminGetOrganizationComputeTimeUsage.');
|
|
2941
|
+
}
|
|
2942
|
+
// verify required parameter 'innerOrganizationId' is not null or undefined
|
|
2943
|
+
if (innerOrganizationId === null || innerOrganizationId === undefined) {
|
|
2944
|
+
throw new Error('Required parameter innerOrganizationId was null or undefined when calling whitelabelAdminGetOrganizationComputeTimeUsage.');
|
|
2945
|
+
}
|
|
2946
|
+
// verify required parameter 'startDate' is not null or undefined
|
|
2947
|
+
if (queryParams.startDate === null || queryParams.startDate === undefined) {
|
|
2948
|
+
throw new Error('Required parameter queryParams.startDate was null or undefined when calling whitelabelAdminGetOrganizationComputeTimeUsage.');
|
|
2949
|
+
}
|
|
2950
|
+
// verify required parameter 'endDate' is not null or undefined
|
|
2951
|
+
if (queryParams.endDate === null || queryParams.endDate === undefined) {
|
|
2952
|
+
throw new Error('Required parameter queryParams.endDate was null or undefined when calling whitelabelAdminGetOrganizationComputeTimeUsage.');
|
|
2953
|
+
}
|
|
2954
|
+
if (queryParams.startDate !== undefined) {
|
|
2955
|
+
localVarQueryParameters['startDate'] = models_1.ObjectSerializer.serialize(queryParams.startDate, "Date");
|
|
2956
|
+
}
|
|
2957
|
+
if (queryParams.endDate !== undefined) {
|
|
2958
|
+
localVarQueryParameters['endDate'] = models_1.ObjectSerializer.serialize(queryParams.endDate, "Date");
|
|
2959
|
+
}
|
|
2960
|
+
Object.assign(localVarHeaderParams, options.headers);
|
|
2961
|
+
Object.assign(localVarHeaderParams, this.opts.extraHeaders);
|
|
2962
|
+
let localVarUseFormData = false;
|
|
2963
|
+
let localVarRequestOptions = {
|
|
2964
|
+
method: 'GET',
|
|
2965
|
+
qs: localVarQueryParameters,
|
|
2966
|
+
headers: localVarHeaderParams,
|
|
2967
|
+
uri: localVarPath,
|
|
2968
|
+
useQuerystring: this._useQuerystring,
|
|
2969
|
+
agentOptions: { keepAlive: false },
|
|
2970
|
+
json: true,
|
|
2971
|
+
};
|
|
2972
|
+
let authenticationPromise = Promise.resolve();
|
|
2973
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.ApiKeyAuthentication.applyToRequest(localVarRequestOptions));
|
|
2974
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.JWTAuthentication.applyToRequest(localVarRequestOptions));
|
|
2975
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.JWTHttpHeaderAuthentication.applyToRequest(localVarRequestOptions));
|
|
2976
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
|
|
2977
|
+
return authenticationPromise.then(() => {
|
|
2978
|
+
if (Object.keys(localVarFormParams).length) {
|
|
2979
|
+
if (localVarUseFormData) {
|
|
2980
|
+
localVarRequestOptions.formData = localVarFormParams;
|
|
2981
|
+
}
|
|
2982
|
+
else {
|
|
2983
|
+
localVarRequestOptions.form = localVarFormParams;
|
|
2984
|
+
}
|
|
2985
|
+
}
|
|
2986
|
+
return new Promise((resolve, reject) => {
|
|
2987
|
+
localVarRequest(localVarRequestOptions, (error, response, body) => {
|
|
2988
|
+
if (error) {
|
|
2989
|
+
reject(error);
|
|
2990
|
+
}
|
|
2991
|
+
else {
|
|
2992
|
+
body = models_1.ObjectSerializer.deserialize(body, "AdminGetOrganizationComputeTimeUsageResponse");
|
|
2993
|
+
const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
|
|
2994
|
+
if (typeof body.success === 'boolean' && !body.success) {
|
|
2995
|
+
reject(new Error(body.error || errString));
|
|
2996
|
+
}
|
|
2997
|
+
else if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
2998
|
+
resolve(body);
|
|
2999
|
+
}
|
|
3000
|
+
else {
|
|
3001
|
+
reject(errString);
|
|
3002
|
+
}
|
|
3003
|
+
}
|
|
3004
|
+
});
|
|
3005
|
+
});
|
|
3006
|
+
});
|
|
3007
|
+
}
|
|
3008
|
+
/**
|
|
3009
|
+
* White label admin only API to list all information about an organization.
|
|
3010
|
+
* @summary Get organization information
|
|
3011
|
+
* @param organizationId Organization ID
|
|
3012
|
+
* @param innerOrganizationId Organization ID within the context of a white label
|
|
3013
|
+
* @param includeDeleted Whether to include deleted entities (users, projects, orgs)
|
|
3014
|
+
*/
|
|
3015
|
+
async whitelabelAdminGetOrganizationInfo(organizationId, innerOrganizationId, queryParams, options = { headers: {} }) {
|
|
3016
|
+
const localVarPath = this.basePath + '/api/organizations/{organizationId}/whitelabel/organizations/{innerOrganizationId}'
|
|
3017
|
+
.replace('{' + 'organizationId' + '}', encodeURIComponent(String(organizationId)))
|
|
3018
|
+
.replace('{' + 'innerOrganizationId' + '}', encodeURIComponent(String(innerOrganizationId)));
|
|
3019
|
+
let localVarQueryParameters = {};
|
|
3020
|
+
let localVarHeaderParams = Object.assign({
|
|
3021
|
+
'User-Agent': 'edgeimpulse-api nodejs'
|
|
3022
|
+
}, this.defaultHeaders);
|
|
3023
|
+
const produces = ['application/json'];
|
|
3024
|
+
// give precedence to 'application/json'
|
|
3025
|
+
if (produces.indexOf('application/json') >= 0) {
|
|
3026
|
+
localVarHeaderParams.Accept = 'application/json';
|
|
3027
|
+
}
|
|
3028
|
+
else {
|
|
3029
|
+
localVarHeaderParams.Accept = produces.join(',');
|
|
3030
|
+
}
|
|
3031
|
+
let localVarFormParams = {};
|
|
3032
|
+
// verify required parameter 'organizationId' is not null or undefined
|
|
3033
|
+
if (organizationId === null || organizationId === undefined) {
|
|
3034
|
+
throw new Error('Required parameter organizationId was null or undefined when calling whitelabelAdminGetOrganizationInfo.');
|
|
3035
|
+
}
|
|
3036
|
+
// verify required parameter 'innerOrganizationId' is not null or undefined
|
|
3037
|
+
if (innerOrganizationId === null || innerOrganizationId === undefined) {
|
|
3038
|
+
throw new Error('Required parameter innerOrganizationId was null or undefined when calling whitelabelAdminGetOrganizationInfo.');
|
|
3039
|
+
}
|
|
3040
|
+
if (queryParams.includeDeleted !== undefined) {
|
|
3041
|
+
localVarQueryParameters['includeDeleted'] = models_1.ObjectSerializer.serialize(queryParams.includeDeleted, "boolean");
|
|
3042
|
+
}
|
|
3043
|
+
Object.assign(localVarHeaderParams, options.headers);
|
|
3044
|
+
Object.assign(localVarHeaderParams, this.opts.extraHeaders);
|
|
3045
|
+
let localVarUseFormData = false;
|
|
3046
|
+
let localVarRequestOptions = {
|
|
3047
|
+
method: 'GET',
|
|
3048
|
+
qs: localVarQueryParameters,
|
|
3049
|
+
headers: localVarHeaderParams,
|
|
3050
|
+
uri: localVarPath,
|
|
3051
|
+
useQuerystring: this._useQuerystring,
|
|
3052
|
+
agentOptions: { keepAlive: false },
|
|
3053
|
+
json: true,
|
|
3054
|
+
};
|
|
3055
|
+
let authenticationPromise = Promise.resolve();
|
|
3056
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.ApiKeyAuthentication.applyToRequest(localVarRequestOptions));
|
|
3057
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.JWTAuthentication.applyToRequest(localVarRequestOptions));
|
|
3058
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.JWTHttpHeaderAuthentication.applyToRequest(localVarRequestOptions));
|
|
3059
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
|
|
3060
|
+
return authenticationPromise.then(() => {
|
|
3061
|
+
if (Object.keys(localVarFormParams).length) {
|
|
3062
|
+
if (localVarUseFormData) {
|
|
3063
|
+
localVarRequestOptions.formData = localVarFormParams;
|
|
3064
|
+
}
|
|
3065
|
+
else {
|
|
3066
|
+
localVarRequestOptions.form = localVarFormParams;
|
|
3067
|
+
}
|
|
3068
|
+
}
|
|
3069
|
+
return new Promise((resolve, reject) => {
|
|
3070
|
+
localVarRequest(localVarRequestOptions, (error, response, body) => {
|
|
3071
|
+
if (error) {
|
|
3072
|
+
reject(error);
|
|
3073
|
+
}
|
|
3074
|
+
else {
|
|
3075
|
+
body = models_1.ObjectSerializer.deserialize(body, "AdminOrganizationInfoResponse");
|
|
3076
|
+
const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
|
|
3077
|
+
if (typeof body.success === 'boolean' && !body.success) {
|
|
3078
|
+
reject(new Error(body.error || errString));
|
|
3079
|
+
}
|
|
3080
|
+
else if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
3081
|
+
resolve(body);
|
|
3082
|
+
}
|
|
3083
|
+
else {
|
|
3084
|
+
reject(errString);
|
|
3085
|
+
}
|
|
3086
|
+
}
|
|
3087
|
+
});
|
|
3088
|
+
});
|
|
3089
|
+
});
|
|
3090
|
+
}
|
|
3091
|
+
/**
|
|
3092
|
+
* Get a usage report for an organization. This is an internal API only available to white label admins.
|
|
3093
|
+
* @summary Get usage report
|
|
3094
|
+
* @param organizationId Organization ID
|
|
3095
|
+
* @param innerOrganizationId Organization ID within the context of a white label
|
|
3096
|
+
* @param usageReportId Usage report ID
|
|
3097
|
+
*/
|
|
3098
|
+
async whitelabelAdminGetOrganizationUsageReport(organizationId, innerOrganizationId, usageReportId, options = { headers: {} }) {
|
|
3099
|
+
const localVarPath = this.basePath + '/api/organizations/{organizationId}/whitelabel/organizations/{innerOrganizationId}/usage/reports/{usageReportId}'
|
|
3100
|
+
.replace('{' + 'organizationId' + '}', encodeURIComponent(String(organizationId)))
|
|
3101
|
+
.replace('{' + 'innerOrganizationId' + '}', encodeURIComponent(String(innerOrganizationId)))
|
|
3102
|
+
.replace('{' + 'usageReportId' + '}', encodeURIComponent(String(usageReportId)));
|
|
3103
|
+
let localVarQueryParameters = {};
|
|
3104
|
+
let localVarHeaderParams = Object.assign({
|
|
3105
|
+
'User-Agent': 'edgeimpulse-api nodejs'
|
|
3106
|
+
}, this.defaultHeaders);
|
|
3107
|
+
const produces = ['application/json'];
|
|
3108
|
+
// give precedence to 'application/json'
|
|
3109
|
+
if (produces.indexOf('application/json') >= 0) {
|
|
3110
|
+
localVarHeaderParams.Accept = 'application/json';
|
|
3111
|
+
}
|
|
3112
|
+
else {
|
|
3113
|
+
localVarHeaderParams.Accept = produces.join(',');
|
|
3114
|
+
}
|
|
3115
|
+
let localVarFormParams = {};
|
|
3116
|
+
// verify required parameter 'organizationId' is not null or undefined
|
|
3117
|
+
if (organizationId === null || organizationId === undefined) {
|
|
3118
|
+
throw new Error('Required parameter organizationId was null or undefined when calling whitelabelAdminGetOrganizationUsageReport.');
|
|
3119
|
+
}
|
|
3120
|
+
// verify required parameter 'innerOrganizationId' is not null or undefined
|
|
3121
|
+
if (innerOrganizationId === null || innerOrganizationId === undefined) {
|
|
3122
|
+
throw new Error('Required parameter innerOrganizationId was null or undefined when calling whitelabelAdminGetOrganizationUsageReport.');
|
|
3123
|
+
}
|
|
3124
|
+
// verify required parameter 'usageReportId' is not null or undefined
|
|
3125
|
+
if (usageReportId === null || usageReportId === undefined) {
|
|
3126
|
+
throw new Error('Required parameter usageReportId was null or undefined when calling whitelabelAdminGetOrganizationUsageReport.');
|
|
3127
|
+
}
|
|
3128
|
+
Object.assign(localVarHeaderParams, options.headers);
|
|
3129
|
+
Object.assign(localVarHeaderParams, this.opts.extraHeaders);
|
|
3130
|
+
let localVarUseFormData = false;
|
|
3131
|
+
let localVarRequestOptions = {
|
|
3132
|
+
method: 'GET',
|
|
3133
|
+
qs: localVarQueryParameters,
|
|
3134
|
+
headers: localVarHeaderParams,
|
|
3135
|
+
uri: localVarPath,
|
|
3136
|
+
useQuerystring: this._useQuerystring,
|
|
3137
|
+
agentOptions: { keepAlive: false },
|
|
3138
|
+
json: true,
|
|
3139
|
+
};
|
|
3140
|
+
let authenticationPromise = Promise.resolve();
|
|
3141
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.ApiKeyAuthentication.applyToRequest(localVarRequestOptions));
|
|
3142
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.JWTAuthentication.applyToRequest(localVarRequestOptions));
|
|
3143
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.JWTHttpHeaderAuthentication.applyToRequest(localVarRequestOptions));
|
|
3144
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
|
|
3145
|
+
return authenticationPromise.then(() => {
|
|
3146
|
+
if (Object.keys(localVarFormParams).length) {
|
|
3147
|
+
if (localVarUseFormData) {
|
|
3148
|
+
localVarRequestOptions.formData = localVarFormParams;
|
|
3149
|
+
}
|
|
3150
|
+
else {
|
|
3151
|
+
localVarRequestOptions.form = localVarFormParams;
|
|
3152
|
+
}
|
|
3153
|
+
}
|
|
3154
|
+
return new Promise((resolve, reject) => {
|
|
3155
|
+
localVarRequest(localVarRequestOptions, (error, response, body) => {
|
|
3156
|
+
if (error) {
|
|
3157
|
+
reject(error);
|
|
3158
|
+
}
|
|
3159
|
+
else {
|
|
3160
|
+
body = models_1.ObjectSerializer.deserialize(body, "AdminGetOrganizationUsageReportResponse");
|
|
3161
|
+
const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
|
|
3162
|
+
if (typeof body.success === 'boolean' && !body.success) {
|
|
3163
|
+
reject(new Error(body.error || errString));
|
|
3164
|
+
}
|
|
3165
|
+
else if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
3166
|
+
resolve(body);
|
|
3167
|
+
}
|
|
3168
|
+
else {
|
|
3169
|
+
reject(errString);
|
|
3170
|
+
}
|
|
3171
|
+
}
|
|
3172
|
+
});
|
|
3173
|
+
});
|
|
3174
|
+
});
|
|
3175
|
+
}
|
|
3176
|
+
/**
|
|
3177
|
+
* Get all usage reports for an organization. This is an internal API only available to white label admins.
|
|
3178
|
+
* @summary Get all usage reports
|
|
3179
|
+
* @param organizationId Organization ID
|
|
3180
|
+
* @param innerOrganizationId Organization ID within the context of a white label
|
|
3181
|
+
* @param limit Maximum number of results
|
|
3182
|
+
* @param offset Offset in results, can be used in conjunction with LimitResultsParameter to implement paging.
|
|
3183
|
+
*/
|
|
3184
|
+
async whitelabelAdminGetOrganizationUsageReports(organizationId, innerOrganizationId, queryParams, options = { headers: {} }) {
|
|
3185
|
+
const localVarPath = this.basePath + '/api/organizations/{organizationId}/whitelabel/organizations/{innerOrganizationId}/usage/reports'
|
|
3186
|
+
.replace('{' + 'organizationId' + '}', encodeURIComponent(String(organizationId)))
|
|
3187
|
+
.replace('{' + 'innerOrganizationId' + '}', encodeURIComponent(String(innerOrganizationId)));
|
|
3188
|
+
let localVarQueryParameters = {};
|
|
3189
|
+
let localVarHeaderParams = Object.assign({
|
|
3190
|
+
'User-Agent': 'edgeimpulse-api nodejs'
|
|
3191
|
+
}, this.defaultHeaders);
|
|
3192
|
+
const produces = ['application/json'];
|
|
3193
|
+
// give precedence to 'application/json'
|
|
3194
|
+
if (produces.indexOf('application/json') >= 0) {
|
|
3195
|
+
localVarHeaderParams.Accept = 'application/json';
|
|
3196
|
+
}
|
|
3197
|
+
else {
|
|
3198
|
+
localVarHeaderParams.Accept = produces.join(',');
|
|
3199
|
+
}
|
|
3200
|
+
let localVarFormParams = {};
|
|
3201
|
+
// verify required parameter 'organizationId' is not null or undefined
|
|
3202
|
+
if (organizationId === null || organizationId === undefined) {
|
|
3203
|
+
throw new Error('Required parameter organizationId was null or undefined when calling whitelabelAdminGetOrganizationUsageReports.');
|
|
3204
|
+
}
|
|
3205
|
+
// verify required parameter 'innerOrganizationId' is not null or undefined
|
|
3206
|
+
if (innerOrganizationId === null || innerOrganizationId === undefined) {
|
|
3207
|
+
throw new Error('Required parameter innerOrganizationId was null or undefined when calling whitelabelAdminGetOrganizationUsageReports.');
|
|
3208
|
+
}
|
|
3209
|
+
if (queryParams.limit !== undefined) {
|
|
3210
|
+
localVarQueryParameters['limit'] = models_1.ObjectSerializer.serialize(queryParams.limit, "number");
|
|
3211
|
+
}
|
|
3212
|
+
if (queryParams.offset !== undefined) {
|
|
3213
|
+
localVarQueryParameters['offset'] = models_1.ObjectSerializer.serialize(queryParams.offset, "number");
|
|
3214
|
+
}
|
|
3215
|
+
Object.assign(localVarHeaderParams, options.headers);
|
|
3216
|
+
Object.assign(localVarHeaderParams, this.opts.extraHeaders);
|
|
3217
|
+
let localVarUseFormData = false;
|
|
3218
|
+
let localVarRequestOptions = {
|
|
3219
|
+
method: 'GET',
|
|
3220
|
+
qs: localVarQueryParameters,
|
|
3221
|
+
headers: localVarHeaderParams,
|
|
3222
|
+
uri: localVarPath,
|
|
3223
|
+
useQuerystring: this._useQuerystring,
|
|
3224
|
+
agentOptions: { keepAlive: false },
|
|
3225
|
+
json: true,
|
|
3226
|
+
};
|
|
3227
|
+
let authenticationPromise = Promise.resolve();
|
|
3228
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.ApiKeyAuthentication.applyToRequest(localVarRequestOptions));
|
|
3229
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.JWTAuthentication.applyToRequest(localVarRequestOptions));
|
|
3230
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.JWTHttpHeaderAuthentication.applyToRequest(localVarRequestOptions));
|
|
3231
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
|
|
3232
|
+
return authenticationPromise.then(() => {
|
|
3233
|
+
if (Object.keys(localVarFormParams).length) {
|
|
3234
|
+
if (localVarUseFormData) {
|
|
3235
|
+
localVarRequestOptions.formData = localVarFormParams;
|
|
3236
|
+
}
|
|
3237
|
+
else {
|
|
3238
|
+
localVarRequestOptions.form = localVarFormParams;
|
|
3239
|
+
}
|
|
3240
|
+
}
|
|
3241
|
+
return new Promise((resolve, reject) => {
|
|
3242
|
+
localVarRequest(localVarRequestOptions, (error, response, body) => {
|
|
3243
|
+
if (error) {
|
|
3244
|
+
reject(error);
|
|
3245
|
+
}
|
|
3246
|
+
else {
|
|
3247
|
+
body = models_1.ObjectSerializer.deserialize(body, "AdminGetOrganizationUsageReportsResponse");
|
|
3248
|
+
const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
|
|
3249
|
+
if (typeof body.success === 'boolean' && !body.success) {
|
|
3250
|
+
reject(new Error(body.error || errString));
|
|
3251
|
+
}
|
|
3252
|
+
else if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
3253
|
+
resolve(body);
|
|
3254
|
+
}
|
|
3255
|
+
else {
|
|
3256
|
+
reject(errString);
|
|
3257
|
+
}
|
|
3258
|
+
}
|
|
3259
|
+
});
|
|
3260
|
+
});
|
|
3261
|
+
});
|
|
3262
|
+
}
|
|
3263
|
+
/**
|
|
3264
|
+
* White label admin only API to get the list of all organizations.
|
|
3265
|
+
* @summary Get all organizations within a white label
|
|
3266
|
+
* @param organizationId Organization ID
|
|
3267
|
+
* @param active Whether to search for entities (users, orgs) active in the last X days
|
|
3268
|
+
* @param includeDeleted Whether to include deleted entities (users, projects, orgs)
|
|
3269
|
+
* @param sort Fields and order to sort query by
|
|
3270
|
+
* @param limit Maximum number of results
|
|
3271
|
+
* @param offset Offset in results, can be used in conjunction with LimitResultsParameter to implement paging.
|
|
3272
|
+
* @param search Search query
|
|
3273
|
+
*/
|
|
3274
|
+
async whitelabelAdminGetOrganizations(organizationId, queryParams, options = { headers: {} }) {
|
|
3275
|
+
const localVarPath = this.basePath + '/api/organizations/{organizationId}/whitelabel/organizations'
|
|
3276
|
+
.replace('{' + 'organizationId' + '}', encodeURIComponent(String(organizationId)));
|
|
3277
|
+
let localVarQueryParameters = {};
|
|
3278
|
+
let localVarHeaderParams = Object.assign({
|
|
3279
|
+
'User-Agent': 'edgeimpulse-api nodejs'
|
|
3280
|
+
}, this.defaultHeaders);
|
|
3281
|
+
const produces = ['application/json'];
|
|
3282
|
+
// give precedence to 'application/json'
|
|
3283
|
+
if (produces.indexOf('application/json') >= 0) {
|
|
3284
|
+
localVarHeaderParams.Accept = 'application/json';
|
|
3285
|
+
}
|
|
3286
|
+
else {
|
|
3287
|
+
localVarHeaderParams.Accept = produces.join(',');
|
|
3288
|
+
}
|
|
3289
|
+
let localVarFormParams = {};
|
|
3290
|
+
// verify required parameter 'organizationId' is not null or undefined
|
|
3291
|
+
if (organizationId === null || organizationId === undefined) {
|
|
3292
|
+
throw new Error('Required parameter organizationId was null or undefined when calling whitelabelAdminGetOrganizations.');
|
|
3293
|
+
}
|
|
3294
|
+
if (queryParams.active !== undefined) {
|
|
3295
|
+
localVarQueryParameters['active'] = models_1.ObjectSerializer.serialize(queryParams.active, "number");
|
|
3296
|
+
}
|
|
3297
|
+
if (queryParams.includeDeleted !== undefined) {
|
|
3298
|
+
localVarQueryParameters['includeDeleted'] = models_1.ObjectSerializer.serialize(queryParams.includeDeleted, "boolean");
|
|
3299
|
+
}
|
|
3300
|
+
if (queryParams.sort !== undefined) {
|
|
3301
|
+
localVarQueryParameters['sort'] = models_1.ObjectSerializer.serialize(queryParams.sort, "string");
|
|
3302
|
+
}
|
|
3303
|
+
if (queryParams.limit !== undefined) {
|
|
3304
|
+
localVarQueryParameters['limit'] = models_1.ObjectSerializer.serialize(queryParams.limit, "number");
|
|
3305
|
+
}
|
|
3306
|
+
if (queryParams.offset !== undefined) {
|
|
3307
|
+
localVarQueryParameters['offset'] = models_1.ObjectSerializer.serialize(queryParams.offset, "number");
|
|
3308
|
+
}
|
|
3309
|
+
if (queryParams.search !== undefined) {
|
|
3310
|
+
localVarQueryParameters['search'] = models_1.ObjectSerializer.serialize(queryParams.search, "string");
|
|
3311
|
+
}
|
|
3312
|
+
Object.assign(localVarHeaderParams, options.headers);
|
|
3313
|
+
Object.assign(localVarHeaderParams, this.opts.extraHeaders);
|
|
3314
|
+
let localVarUseFormData = false;
|
|
3315
|
+
let localVarRequestOptions = {
|
|
3316
|
+
method: 'GET',
|
|
3317
|
+
qs: localVarQueryParameters,
|
|
3318
|
+
headers: localVarHeaderParams,
|
|
3319
|
+
uri: localVarPath,
|
|
3320
|
+
useQuerystring: this._useQuerystring,
|
|
3321
|
+
agentOptions: { keepAlive: false },
|
|
3322
|
+
json: true,
|
|
3323
|
+
};
|
|
3324
|
+
let authenticationPromise = Promise.resolve();
|
|
3325
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.ApiKeyAuthentication.applyToRequest(localVarRequestOptions));
|
|
3326
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.JWTAuthentication.applyToRequest(localVarRequestOptions));
|
|
3327
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.JWTHttpHeaderAuthentication.applyToRequest(localVarRequestOptions));
|
|
3328
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
|
|
3329
|
+
return authenticationPromise.then(() => {
|
|
3330
|
+
if (Object.keys(localVarFormParams).length) {
|
|
3331
|
+
if (localVarUseFormData) {
|
|
3332
|
+
localVarRequestOptions.formData = localVarFormParams;
|
|
3333
|
+
}
|
|
3334
|
+
else {
|
|
3335
|
+
localVarRequestOptions.form = localVarFormParams;
|
|
3336
|
+
}
|
|
3337
|
+
}
|
|
3338
|
+
return new Promise((resolve, reject) => {
|
|
3339
|
+
localVarRequest(localVarRequestOptions, (error, response, body) => {
|
|
3340
|
+
if (error) {
|
|
3341
|
+
reject(error);
|
|
3342
|
+
}
|
|
3343
|
+
else {
|
|
3344
|
+
body = models_1.ObjectSerializer.deserialize(body, "AdminGetOrganizationsResponse");
|
|
3345
|
+
const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
|
|
3346
|
+
if (typeof body.success === 'boolean' && !body.success) {
|
|
3347
|
+
reject(new Error(body.error || errString));
|
|
3348
|
+
}
|
|
3349
|
+
else if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
3350
|
+
resolve(body);
|
|
3351
|
+
}
|
|
3352
|
+
else {
|
|
3353
|
+
reject(errString);
|
|
3354
|
+
}
|
|
3355
|
+
}
|
|
3356
|
+
});
|
|
3357
|
+
});
|
|
3358
|
+
});
|
|
3359
|
+
}
|
|
3360
|
+
/**
|
|
3361
|
+
* White label admin only API to get project information.
|
|
3362
|
+
* @summary Get a white label project
|
|
3363
|
+
* @param organizationId Organization ID
|
|
3364
|
+
* @param projectId Project ID
|
|
3365
|
+
*/
|
|
3366
|
+
async whitelabelAdminGetProject(organizationId, projectId, options = { headers: {} }) {
|
|
3367
|
+
const localVarPath = this.basePath + '/api/organizations/{organizationId}/whitelabel/projects/{projectId}'
|
|
3368
|
+
.replace('{' + 'organizationId' + '}', encodeURIComponent(String(organizationId)))
|
|
3369
|
+
.replace('{' + 'projectId' + '}', encodeURIComponent(String(projectId)));
|
|
3370
|
+
let localVarQueryParameters = {};
|
|
3371
|
+
let localVarHeaderParams = Object.assign({
|
|
3372
|
+
'User-Agent': 'edgeimpulse-api nodejs'
|
|
3373
|
+
}, this.defaultHeaders);
|
|
3374
|
+
const produces = ['application/json'];
|
|
3375
|
+
// give precedence to 'application/json'
|
|
3376
|
+
if (produces.indexOf('application/json') >= 0) {
|
|
3377
|
+
localVarHeaderParams.Accept = 'application/json';
|
|
3378
|
+
}
|
|
3379
|
+
else {
|
|
3380
|
+
localVarHeaderParams.Accept = produces.join(',');
|
|
3381
|
+
}
|
|
3382
|
+
let localVarFormParams = {};
|
|
3383
|
+
// verify required parameter 'organizationId' is not null or undefined
|
|
3384
|
+
if (organizationId === null || organizationId === undefined) {
|
|
3385
|
+
throw new Error('Required parameter organizationId was null or undefined when calling whitelabelAdminGetProject.');
|
|
3386
|
+
}
|
|
3387
|
+
// verify required parameter 'projectId' is not null or undefined
|
|
3388
|
+
if (projectId === null || projectId === undefined) {
|
|
3389
|
+
throw new Error('Required parameter projectId was null or undefined when calling whitelabelAdminGetProject.');
|
|
3390
|
+
}
|
|
3391
|
+
Object.assign(localVarHeaderParams, options.headers);
|
|
3392
|
+
Object.assign(localVarHeaderParams, this.opts.extraHeaders);
|
|
3393
|
+
let localVarUseFormData = false;
|
|
3394
|
+
let localVarRequestOptions = {
|
|
3395
|
+
method: 'GET',
|
|
3396
|
+
qs: localVarQueryParameters,
|
|
3397
|
+
headers: localVarHeaderParams,
|
|
3398
|
+
uri: localVarPath,
|
|
3399
|
+
useQuerystring: this._useQuerystring,
|
|
3400
|
+
agentOptions: { keepAlive: false },
|
|
3401
|
+
json: true,
|
|
3402
|
+
};
|
|
3403
|
+
let authenticationPromise = Promise.resolve();
|
|
3404
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.ApiKeyAuthentication.applyToRequest(localVarRequestOptions));
|
|
3405
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.JWTAuthentication.applyToRequest(localVarRequestOptions));
|
|
3406
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.JWTHttpHeaderAuthentication.applyToRequest(localVarRequestOptions));
|
|
3407
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
|
|
3408
|
+
return authenticationPromise.then(() => {
|
|
3409
|
+
if (Object.keys(localVarFormParams).length) {
|
|
3410
|
+
if (localVarUseFormData) {
|
|
3411
|
+
localVarRequestOptions.formData = localVarFormParams;
|
|
3412
|
+
}
|
|
3413
|
+
else {
|
|
3414
|
+
localVarRequestOptions.form = localVarFormParams;
|
|
3415
|
+
}
|
|
3416
|
+
}
|
|
3417
|
+
return new Promise((resolve, reject) => {
|
|
3418
|
+
localVarRequest(localVarRequestOptions, (error, response, body) => {
|
|
3419
|
+
if (error) {
|
|
3420
|
+
reject(error);
|
|
3421
|
+
}
|
|
3422
|
+
else {
|
|
3423
|
+
body = models_1.ObjectSerializer.deserialize(body, "ProjectInfoResponse");
|
|
3424
|
+
const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
|
|
3425
|
+
if (typeof body.success === 'boolean' && !body.success) {
|
|
3426
|
+
reject(new Error(body.error || errString));
|
|
3427
|
+
}
|
|
3428
|
+
else if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
3429
|
+
resolve(body);
|
|
3430
|
+
}
|
|
3431
|
+
else {
|
|
3432
|
+
reject(errString);
|
|
3433
|
+
}
|
|
3434
|
+
}
|
|
3435
|
+
});
|
|
3436
|
+
});
|
|
3437
|
+
});
|
|
3438
|
+
}
|
|
3439
|
+
/**
|
|
3440
|
+
* White label admin only API to get the list of all projects.
|
|
3441
|
+
* @summary Get all white label projects
|
|
3442
|
+
* @param organizationId Organization ID
|
|
3443
|
+
* @param active Whether to search for entities (users, orgs) active in the last X days
|
|
3444
|
+
* @param sort Fields and order to sort query by
|
|
3445
|
+
* @param limit Maximum number of results
|
|
3446
|
+
* @param offset Offset in results, can be used in conjunction with LimitResultsParameter to implement paging.
|
|
3447
|
+
* @param search Search query
|
|
3448
|
+
*/
|
|
3449
|
+
async whitelabelAdminGetProjects(organizationId, queryParams, options = { headers: {} }) {
|
|
3450
|
+
const localVarPath = this.basePath + '/api/organizations/{organizationId}/whitelabel/projects'
|
|
3451
|
+
.replace('{' + 'organizationId' + '}', encodeURIComponent(String(organizationId)));
|
|
3452
|
+
let localVarQueryParameters = {};
|
|
3453
|
+
let localVarHeaderParams = Object.assign({
|
|
3454
|
+
'User-Agent': 'edgeimpulse-api nodejs'
|
|
3455
|
+
}, this.defaultHeaders);
|
|
3456
|
+
const produces = ['application/json'];
|
|
3457
|
+
// give precedence to 'application/json'
|
|
3458
|
+
if (produces.indexOf('application/json') >= 0) {
|
|
3459
|
+
localVarHeaderParams.Accept = 'application/json';
|
|
3460
|
+
}
|
|
3461
|
+
else {
|
|
3462
|
+
localVarHeaderParams.Accept = produces.join(',');
|
|
3463
|
+
}
|
|
3464
|
+
let localVarFormParams = {};
|
|
3465
|
+
// verify required parameter 'organizationId' is not null or undefined
|
|
3466
|
+
if (organizationId === null || organizationId === undefined) {
|
|
3467
|
+
throw new Error('Required parameter organizationId was null or undefined when calling whitelabelAdminGetProjects.');
|
|
3468
|
+
}
|
|
3469
|
+
if (queryParams.active !== undefined) {
|
|
3470
|
+
localVarQueryParameters['active'] = models_1.ObjectSerializer.serialize(queryParams.active, "number");
|
|
3471
|
+
}
|
|
3472
|
+
if (queryParams.sort !== undefined) {
|
|
3473
|
+
localVarQueryParameters['sort'] = models_1.ObjectSerializer.serialize(queryParams.sort, "string");
|
|
3474
|
+
}
|
|
3475
|
+
if (queryParams.limit !== undefined) {
|
|
3476
|
+
localVarQueryParameters['limit'] = models_1.ObjectSerializer.serialize(queryParams.limit, "number");
|
|
3477
|
+
}
|
|
3478
|
+
if (queryParams.offset !== undefined) {
|
|
3479
|
+
localVarQueryParameters['offset'] = models_1.ObjectSerializer.serialize(queryParams.offset, "number");
|
|
3480
|
+
}
|
|
3481
|
+
if (queryParams.search !== undefined) {
|
|
3482
|
+
localVarQueryParameters['search'] = models_1.ObjectSerializer.serialize(queryParams.search, "string");
|
|
3483
|
+
}
|
|
3484
|
+
Object.assign(localVarHeaderParams, options.headers);
|
|
3485
|
+
Object.assign(localVarHeaderParams, this.opts.extraHeaders);
|
|
3486
|
+
let localVarUseFormData = false;
|
|
3487
|
+
let localVarRequestOptions = {
|
|
3488
|
+
method: 'GET',
|
|
3489
|
+
qs: localVarQueryParameters,
|
|
3490
|
+
headers: localVarHeaderParams,
|
|
3491
|
+
uri: localVarPath,
|
|
3492
|
+
useQuerystring: this._useQuerystring,
|
|
3493
|
+
agentOptions: { keepAlive: false },
|
|
3494
|
+
json: true,
|
|
3495
|
+
};
|
|
3496
|
+
let authenticationPromise = Promise.resolve();
|
|
3497
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.ApiKeyAuthentication.applyToRequest(localVarRequestOptions));
|
|
3498
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.JWTAuthentication.applyToRequest(localVarRequestOptions));
|
|
3499
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.JWTHttpHeaderAuthentication.applyToRequest(localVarRequestOptions));
|
|
3500
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
|
|
3501
|
+
return authenticationPromise.then(() => {
|
|
3502
|
+
if (Object.keys(localVarFormParams).length) {
|
|
3503
|
+
if (localVarUseFormData) {
|
|
3504
|
+
localVarRequestOptions.formData = localVarFormParams;
|
|
3505
|
+
}
|
|
3506
|
+
else {
|
|
3507
|
+
localVarRequestOptions.form = localVarFormParams;
|
|
3508
|
+
}
|
|
3509
|
+
}
|
|
3510
|
+
return new Promise((resolve, reject) => {
|
|
3511
|
+
localVarRequest(localVarRequestOptions, (error, response, body) => {
|
|
3512
|
+
if (error) {
|
|
3513
|
+
reject(error);
|
|
3514
|
+
}
|
|
3515
|
+
else {
|
|
3516
|
+
body = models_1.ObjectSerializer.deserialize(body, "AdminListProjectsResponse");
|
|
3517
|
+
const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
|
|
3518
|
+
if (typeof body.success === 'boolean' && !body.success) {
|
|
3519
|
+
reject(new Error(body.error || errString));
|
|
3520
|
+
}
|
|
3521
|
+
else if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
3522
|
+
resolve(body);
|
|
3523
|
+
}
|
|
3524
|
+
else {
|
|
3525
|
+
reject(errString);
|
|
3526
|
+
}
|
|
3527
|
+
}
|
|
3528
|
+
});
|
|
3529
|
+
});
|
|
3530
|
+
});
|
|
3531
|
+
}
|
|
3532
|
+
/**
|
|
3533
|
+
* White label admin only API to get information about a user.
|
|
3534
|
+
* @summary Get a white label user
|
|
3535
|
+
* @param organizationId Organization ID
|
|
3536
|
+
* @param userId User ID
|
|
3537
|
+
*/
|
|
3538
|
+
async whitelabelAdminGetUser(organizationId, userId, options = { headers: {} }) {
|
|
3539
|
+
const localVarPath = this.basePath + '/api/organizations/{organizationId}/whitelabel/users/{userId}'
|
|
3540
|
+
.replace('{' + 'organizationId' + '}', encodeURIComponent(String(organizationId)))
|
|
3541
|
+
.replace('{' + 'userId' + '}', encodeURIComponent(String(userId)));
|
|
3542
|
+
let localVarQueryParameters = {};
|
|
3543
|
+
let localVarHeaderParams = Object.assign({
|
|
3544
|
+
'User-Agent': 'edgeimpulse-api nodejs'
|
|
3545
|
+
}, this.defaultHeaders);
|
|
3546
|
+
const produces = ['application/json'];
|
|
3547
|
+
// give precedence to 'application/json'
|
|
3548
|
+
if (produces.indexOf('application/json') >= 0) {
|
|
3549
|
+
localVarHeaderParams.Accept = 'application/json';
|
|
3550
|
+
}
|
|
3551
|
+
else {
|
|
3552
|
+
localVarHeaderParams.Accept = produces.join(',');
|
|
3553
|
+
}
|
|
3554
|
+
let localVarFormParams = {};
|
|
3555
|
+
// verify required parameter 'organizationId' is not null or undefined
|
|
3556
|
+
if (organizationId === null || organizationId === undefined) {
|
|
3557
|
+
throw new Error('Required parameter organizationId was null or undefined when calling whitelabelAdminGetUser.');
|
|
3558
|
+
}
|
|
3559
|
+
// verify required parameter 'userId' is not null or undefined
|
|
3560
|
+
if (userId === null || userId === undefined) {
|
|
3561
|
+
throw new Error('Required parameter userId was null or undefined when calling whitelabelAdminGetUser.');
|
|
3562
|
+
}
|
|
3563
|
+
Object.assign(localVarHeaderParams, options.headers);
|
|
3564
|
+
Object.assign(localVarHeaderParams, this.opts.extraHeaders);
|
|
3565
|
+
let localVarUseFormData = false;
|
|
3566
|
+
let localVarRequestOptions = {
|
|
3567
|
+
method: 'GET',
|
|
3568
|
+
qs: localVarQueryParameters,
|
|
3569
|
+
headers: localVarHeaderParams,
|
|
3570
|
+
uri: localVarPath,
|
|
3571
|
+
useQuerystring: this._useQuerystring,
|
|
3572
|
+
agentOptions: { keepAlive: false },
|
|
3573
|
+
json: true,
|
|
3574
|
+
};
|
|
3575
|
+
let authenticationPromise = Promise.resolve();
|
|
3576
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.ApiKeyAuthentication.applyToRequest(localVarRequestOptions));
|
|
3577
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.JWTAuthentication.applyToRequest(localVarRequestOptions));
|
|
3578
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.JWTHttpHeaderAuthentication.applyToRequest(localVarRequestOptions));
|
|
3579
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
|
|
3580
|
+
return authenticationPromise.then(() => {
|
|
3581
|
+
if (Object.keys(localVarFormParams).length) {
|
|
3582
|
+
if (localVarUseFormData) {
|
|
3583
|
+
localVarRequestOptions.formData = localVarFormParams;
|
|
3584
|
+
}
|
|
3585
|
+
else {
|
|
3586
|
+
localVarRequestOptions.form = localVarFormParams;
|
|
3587
|
+
}
|
|
3588
|
+
}
|
|
3589
|
+
return new Promise((resolve, reject) => {
|
|
3590
|
+
localVarRequest(localVarRequestOptions, (error, response, body) => {
|
|
3591
|
+
if (error) {
|
|
3592
|
+
reject(error);
|
|
3593
|
+
}
|
|
3594
|
+
else {
|
|
3595
|
+
body = models_1.ObjectSerializer.deserialize(body, "AdminGetUserResponse");
|
|
3596
|
+
const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
|
|
3597
|
+
if (typeof body.success === 'boolean' && !body.success) {
|
|
3598
|
+
reject(new Error(body.error || errString));
|
|
3599
|
+
}
|
|
3600
|
+
else if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
3601
|
+
resolve(body);
|
|
3602
|
+
}
|
|
3603
|
+
else {
|
|
3604
|
+
reject(errString);
|
|
3605
|
+
}
|
|
3606
|
+
}
|
|
3607
|
+
});
|
|
3608
|
+
});
|
|
3609
|
+
});
|
|
3610
|
+
}
|
|
3611
|
+
/**
|
|
3612
|
+
* White label admin only API to get marketing metrics about a user.
|
|
3613
|
+
* @summary Get white label user metrics
|
|
3614
|
+
* @param organizationId Organization ID
|
|
3615
|
+
* @param userId User ID
|
|
3616
|
+
*/
|
|
3617
|
+
async whitelabelAdminGetUserMetrics(organizationId, userId, options = { headers: {} }) {
|
|
3618
|
+
const localVarPath = this.basePath + '/api/organizations/{organizationId}/whitelabel/users/{userId}/metrics'
|
|
3619
|
+
.replace('{' + 'organizationId' + '}', encodeURIComponent(String(organizationId)))
|
|
3620
|
+
.replace('{' + 'userId' + '}', encodeURIComponent(String(userId)));
|
|
3621
|
+
let localVarQueryParameters = {};
|
|
3622
|
+
let localVarHeaderParams = Object.assign({
|
|
3623
|
+
'User-Agent': 'edgeimpulse-api nodejs'
|
|
3624
|
+
}, this.defaultHeaders);
|
|
3625
|
+
const produces = ['application/json'];
|
|
3626
|
+
// give precedence to 'application/json'
|
|
3627
|
+
if (produces.indexOf('application/json') >= 0) {
|
|
3628
|
+
localVarHeaderParams.Accept = 'application/json';
|
|
3629
|
+
}
|
|
3630
|
+
else {
|
|
3631
|
+
localVarHeaderParams.Accept = produces.join(',');
|
|
3632
|
+
}
|
|
3633
|
+
let localVarFormParams = {};
|
|
3634
|
+
// verify required parameter 'organizationId' is not null or undefined
|
|
3635
|
+
if (organizationId === null || organizationId === undefined) {
|
|
3636
|
+
throw new Error('Required parameter organizationId was null or undefined when calling whitelabelAdminGetUserMetrics.');
|
|
3637
|
+
}
|
|
3638
|
+
// verify required parameter 'userId' is not null or undefined
|
|
3639
|
+
if (userId === null || userId === undefined) {
|
|
3640
|
+
throw new Error('Required parameter userId was null or undefined when calling whitelabelAdminGetUserMetrics.');
|
|
3641
|
+
}
|
|
3642
|
+
Object.assign(localVarHeaderParams, options.headers);
|
|
3643
|
+
Object.assign(localVarHeaderParams, this.opts.extraHeaders);
|
|
3644
|
+
let localVarUseFormData = false;
|
|
3645
|
+
let localVarRequestOptions = {
|
|
3646
|
+
method: 'GET',
|
|
3647
|
+
qs: localVarQueryParameters,
|
|
3648
|
+
headers: localVarHeaderParams,
|
|
3649
|
+
uri: localVarPath,
|
|
3650
|
+
useQuerystring: this._useQuerystring,
|
|
3651
|
+
agentOptions: { keepAlive: false },
|
|
3652
|
+
json: true,
|
|
3653
|
+
};
|
|
3654
|
+
let authenticationPromise = Promise.resolve();
|
|
3655
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.ApiKeyAuthentication.applyToRequest(localVarRequestOptions));
|
|
3656
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.JWTAuthentication.applyToRequest(localVarRequestOptions));
|
|
3657
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.JWTHttpHeaderAuthentication.applyToRequest(localVarRequestOptions));
|
|
3658
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
|
|
3659
|
+
return authenticationPromise.then(() => {
|
|
3660
|
+
if (Object.keys(localVarFormParams).length) {
|
|
3661
|
+
if (localVarUseFormData) {
|
|
3662
|
+
localVarRequestOptions.formData = localVarFormParams;
|
|
3663
|
+
}
|
|
3664
|
+
else {
|
|
3665
|
+
localVarRequestOptions.form = localVarFormParams;
|
|
3666
|
+
}
|
|
3667
|
+
}
|
|
3668
|
+
return new Promise((resolve, reject) => {
|
|
3669
|
+
localVarRequest(localVarRequestOptions, (error, response, body) => {
|
|
3670
|
+
if (error) {
|
|
3671
|
+
reject(error);
|
|
3672
|
+
}
|
|
3673
|
+
else {
|
|
3674
|
+
body = models_1.ObjectSerializer.deserialize(body, "AdminGetUserMetricsResponse");
|
|
3675
|
+
const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
|
|
3676
|
+
if (typeof body.success === 'boolean' && !body.success) {
|
|
3677
|
+
reject(new Error(body.error || errString));
|
|
3678
|
+
}
|
|
3679
|
+
else if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
3680
|
+
resolve(body);
|
|
3681
|
+
}
|
|
3682
|
+
else {
|
|
3683
|
+
reject(errString);
|
|
3684
|
+
}
|
|
3685
|
+
}
|
|
3686
|
+
});
|
|
3687
|
+
});
|
|
3688
|
+
});
|
|
3689
|
+
}
|
|
3690
|
+
/**
|
|
3691
|
+
* White label admin only API to get the list of all registered users.
|
|
3692
|
+
* @summary Get all white label users
|
|
3693
|
+
* @param organizationId Organization ID
|
|
3694
|
+
* @param active Whether to search for entities (users, orgs) active in the last X days
|
|
3695
|
+
* @param tier Whether to search for free, pro or enterprise entities (users, projects)
|
|
3696
|
+
* @param fields Comma separated list of fields to fetch in a query
|
|
3697
|
+
* @param sort Fields and order to sort query by
|
|
3698
|
+
* @param limit Maximum number of results
|
|
3699
|
+
* @param offset Offset in results, can be used in conjunction with LimitResultsParameter to implement paging.
|
|
3700
|
+
* @param search Search query
|
|
3701
|
+
*/
|
|
3702
|
+
async whitelabelAdminGetUsers(organizationId, queryParams, options = { headers: {} }) {
|
|
3703
|
+
const localVarPath = this.basePath + '/api/organizations/{organizationId}/whitelabel/users'
|
|
2756
3704
|
.replace('{' + 'organizationId' + '}', encodeURIComponent(String(organizationId)));
|
|
2757
3705
|
let localVarQueryParameters = {};
|
|
2758
3706
|
let localVarHeaderParams = Object.assign({
|
|
@@ -3089,6 +4037,85 @@ class OrganizationsApi {
|
|
|
3089
4037
|
});
|
|
3090
4038
|
});
|
|
3091
4039
|
}
|
|
4040
|
+
/**
|
|
4041
|
+
* White label admin only API to restore a 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.
|
|
4042
|
+
* @summary Restore an organization
|
|
4043
|
+
* @param organizationId Organization ID
|
|
4044
|
+
* @param innerOrganizationId Organization ID within the context of a white label
|
|
4045
|
+
*/
|
|
4046
|
+
async whitelabelAdminRestoreOrganization(organizationId, innerOrganizationId, options = { headers: {} }) {
|
|
4047
|
+
const localVarPath = this.basePath + '/api/organizations/{organizationId}/whitelabel/organizations/{innerOrganizationId}/restore'
|
|
4048
|
+
.replace('{' + 'organizationId' + '}', encodeURIComponent(String(organizationId)))
|
|
4049
|
+
.replace('{' + 'innerOrganizationId' + '}', encodeURIComponent(String(innerOrganizationId)));
|
|
4050
|
+
let localVarQueryParameters = {};
|
|
4051
|
+
let localVarHeaderParams = Object.assign({
|
|
4052
|
+
'User-Agent': 'edgeimpulse-api nodejs'
|
|
4053
|
+
}, this.defaultHeaders);
|
|
4054
|
+
const produces = ['application/json'];
|
|
4055
|
+
// give precedence to 'application/json'
|
|
4056
|
+
if (produces.indexOf('application/json') >= 0) {
|
|
4057
|
+
localVarHeaderParams.Accept = 'application/json';
|
|
4058
|
+
}
|
|
4059
|
+
else {
|
|
4060
|
+
localVarHeaderParams.Accept = produces.join(',');
|
|
4061
|
+
}
|
|
4062
|
+
let localVarFormParams = {};
|
|
4063
|
+
// verify required parameter 'organizationId' is not null or undefined
|
|
4064
|
+
if (organizationId === null || organizationId === undefined) {
|
|
4065
|
+
throw new Error('Required parameter organizationId was null or undefined when calling whitelabelAdminRestoreOrganization.');
|
|
4066
|
+
}
|
|
4067
|
+
// verify required parameter 'innerOrganizationId' is not null or undefined
|
|
4068
|
+
if (innerOrganizationId === null || innerOrganizationId === undefined) {
|
|
4069
|
+
throw new Error('Required parameter innerOrganizationId was null or undefined when calling whitelabelAdminRestoreOrganization.');
|
|
4070
|
+
}
|
|
4071
|
+
Object.assign(localVarHeaderParams, options.headers);
|
|
4072
|
+
Object.assign(localVarHeaderParams, this.opts.extraHeaders);
|
|
4073
|
+
let localVarUseFormData = false;
|
|
4074
|
+
let localVarRequestOptions = {
|
|
4075
|
+
method: 'GET',
|
|
4076
|
+
qs: localVarQueryParameters,
|
|
4077
|
+
headers: localVarHeaderParams,
|
|
4078
|
+
uri: localVarPath,
|
|
4079
|
+
useQuerystring: this._useQuerystring,
|
|
4080
|
+
agentOptions: { keepAlive: false },
|
|
4081
|
+
json: true,
|
|
4082
|
+
};
|
|
4083
|
+
let authenticationPromise = Promise.resolve();
|
|
4084
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.ApiKeyAuthentication.applyToRequest(localVarRequestOptions));
|
|
4085
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.JWTAuthentication.applyToRequest(localVarRequestOptions));
|
|
4086
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.JWTHttpHeaderAuthentication.applyToRequest(localVarRequestOptions));
|
|
4087
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
|
|
4088
|
+
return authenticationPromise.then(() => {
|
|
4089
|
+
if (Object.keys(localVarFormParams).length) {
|
|
4090
|
+
if (localVarUseFormData) {
|
|
4091
|
+
localVarRequestOptions.formData = localVarFormParams;
|
|
4092
|
+
}
|
|
4093
|
+
else {
|
|
4094
|
+
localVarRequestOptions.form = localVarFormParams;
|
|
4095
|
+
}
|
|
4096
|
+
}
|
|
4097
|
+
return new Promise((resolve, reject) => {
|
|
4098
|
+
localVarRequest(localVarRequestOptions, (error, response, body) => {
|
|
4099
|
+
if (error) {
|
|
4100
|
+
reject(error);
|
|
4101
|
+
}
|
|
4102
|
+
else {
|
|
4103
|
+
body = models_1.ObjectSerializer.deserialize(body, "GenericApiResponse");
|
|
4104
|
+
const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
|
|
4105
|
+
if (typeof body.success === 'boolean' && !body.success) {
|
|
4106
|
+
reject(new Error(body.error || errString));
|
|
4107
|
+
}
|
|
4108
|
+
else if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
4109
|
+
resolve(body);
|
|
4110
|
+
}
|
|
4111
|
+
else {
|
|
4112
|
+
reject(errString);
|
|
4113
|
+
}
|
|
4114
|
+
}
|
|
4115
|
+
});
|
|
4116
|
+
});
|
|
4117
|
+
});
|
|
4118
|
+
}
|
|
3092
4119
|
/**
|
|
3093
4120
|
* White label admin only API to update the default deployment target for this white label.
|
|
3094
4121
|
* @summary Update default deployment target
|