edge-impulse-linux 1.4.7 → 1.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/cli/init-cli-app.js +4 -1
- package/build/cli/init-cli-app.js.map +1 -1
- package/build/cli/linux/runner.js +145 -2
- package/build/cli/linux/runner.js.map +1 -1
- package/build/cli/linux/webserver/escape-html-template-tag/escape.d.ts +12 -0
- package/build/cli/linux/webserver/escape-html-template-tag/escape.js +59 -0
- package/build/cli/linux/webserver/escape-html-template-tag/escape.js.map +1 -0
- package/build/cli/linux/webserver/escape-html-template-tag/index.d.ts +7 -0
- package/build/cli/linux/webserver/escape-html-template-tag/index.js +24 -0
- package/build/cli/linux/webserver/escape-html-template-tag/index.js.map +1 -0
- package/build/cli/linux/webserver/middleware/asyncMiddleware.d.ts +2 -0
- package/build/cli/linux/webserver/middleware/asyncMiddleware.js +10 -0
- package/build/cli/linux/webserver/middleware/asyncMiddleware.js.map +1 -0
- package/build/cli/linux/webserver/public/inference-server.d.ts +0 -0
- package/build/cli/linux/webserver/public/inference-server.js +96 -0
- package/build/cli/linux/webserver/public/inference-server.js.map +1 -0
- package/build/cli/linux/webserver/views/escape-html-template-tag/escape.d.ts +12 -0
- package/build/cli/linux/webserver/views/escape-html-template-tag/escape.js +59 -0
- package/build/cli/linux/webserver/views/escape-html-template-tag/escape.js.map +1 -0
- package/build/cli/linux/webserver/views/escape-html-template-tag/index.d.ts +7 -0
- package/build/cli/linux/webserver/views/escape-html-template-tag/index.js +24 -0
- package/build/cli/linux/webserver/views/escape-html-template-tag/index.js.map +1 -0
- package/build/cli/linux/webserver/views/inference-server-view.d.ts +10 -0
- package/build/cli/linux/webserver/views/inference-server-view.js +138 -0
- package/build/cli/linux/webserver/views/inference-server-view.js.map +1 -0
- package/build/cli/make-image.d.ts +2 -7
- package/build/cli/make-image.js +15 -0
- package/build/cli/make-image.js.map +1 -1
- package/build/library/classifier/image-classifier.d.ts +6 -2
- package/build/library/classifier/image-classifier.js +3 -3
- package/build/library/classifier/image-classifier.js.map +1 -1
- package/build/library/index.d.ts +2 -1
- package/build/library/index.js.map +1 -1
- package/build/library/sensors/gstreamer.js +13 -3
- package/build/library/sensors/gstreamer.js.map +1 -1
- package/build/sdk/studio/sdk/api/adminApi.d.ts +153 -7
- package/build/sdk/studio/sdk/api/adminApi.js +1110 -238
- package/build/sdk/studio/sdk/api/adminApi.js.map +1 -1
- package/build/sdk/studio/sdk/api/apis.d.ts +3 -21
- package/build/sdk/studio/sdk/api/apis.js +3 -21
- package/build/sdk/studio/sdk/api/apis.js.map +1 -1
- package/build/sdk/studio/sdk/api/classifyApi.d.ts +38 -3
- package/build/sdk/studio/sdk/api/classifyApi.js +179 -3
- package/build/sdk/studio/sdk/api/classifyApi.js.map +1 -1
- package/build/sdk/studio/sdk/api/featureFlagsApi.d.ts +46 -0
- package/build/sdk/studio/sdk/api/{requiresThirdPartyAuthApiKeyApi.js → featureFlagsApi.js} +14 -36
- package/build/sdk/studio/sdk/api/featureFlagsApi.js.map +1 -0
- 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/learnApi.d.ts +12 -0
- package/build/sdk/studio/sdk/api/learnApi.js +79 -0
- package/build/sdk/studio/sdk/api/learnApi.js.map +1 -1
- package/build/sdk/studio/sdk/api/metricsApi.d.ts +11 -0
- package/build/sdk/studio/sdk/api/metricsApi.js +70 -0
- package/build/sdk/studio/sdk/api/metricsApi.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/organizationCreateProjectApi.d.ts +2 -0
- package/build/sdk/studio/sdk/api/organizationCreateProjectApi.js +4 -0
- package/build/sdk/studio/sdk/api/organizationCreateProjectApi.js.map +1 -1
- package/build/sdk/studio/sdk/api/organizationDataApi.d.ts +108 -1
- package/build/sdk/studio/sdk/api/organizationDataApi.js +700 -24
- package/build/sdk/studio/sdk/api/organizationDataApi.js.map +1 -1
- package/build/sdk/studio/sdk/api/organizationPipelinesApi.d.ts +12 -1
- package/build/sdk/studio/sdk/api/organizationPipelinesApi.js +80 -1
- package/build/sdk/studio/sdk/api/organizationPipelinesApi.js.map +1 -1
- package/build/sdk/studio/sdk/api/organizationRequiresAdminApi.d.ts +3 -524
- package/build/sdk/studio/sdk/api/organizationRequiresAdminApi.js +11 -3169
- package/build/sdk/studio/sdk/api/organizationRequiresAdminApi.js.map +1 -1
- package/build/sdk/studio/sdk/api/organizationRequiresWhitelabelAdminApi.d.ts +3 -355
- package/build/sdk/studio/sdk/api/organizationRequiresWhitelabelAdminApi.js +7 -2055
- package/build/sdk/studio/sdk/api/organizationRequiresWhitelabelAdminApi.js.map +1 -1
- package/build/sdk/studio/sdk/api/organizationsApi.d.ts +246 -7
- package/build/sdk/studio/sdk/api/organizationsApi.js +1693 -264
- 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 +69 -24
- package/build/sdk/studio/sdk/api/rawDataApi.js +346 -36
- package/build/sdk/studio/sdk/api/rawDataApi.js.map +1 -1
- package/build/sdk/studio/sdk/api/uploadPortalApi.d.ts +3 -2
- package/build/sdk/studio/sdk/api/uploadPortalApi.js +11 -2
- package/build/sdk/studio/sdk/api/uploadPortalApi.js.map +1 -1
- package/build/sdk/studio/sdk/api/userApi.d.ts +11 -0
- package/build/sdk/studio/sdk/api/userApi.js +73 -0
- package/build/sdk/studio/sdk/api/userApi.js.map +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/addOrganizationDataCampaignDashboardRequest.d.ts +1 -0
- package/build/sdk/studio/sdk/model/addOrganizationDataCampaignDashboardRequest.js +5 -0
- package/build/sdk/studio/sdk/model/addOrganizationDataCampaignDashboardRequest.js.map +1 -1
- 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 +16 -0
- package/build/sdk/studio/sdk/model/adminApiOrganization.js +20 -0
- package/build/sdk/studio/sdk/model/adminApiOrganization.js.map +1 -1
- package/build/sdk/studio/sdk/model/adminApiUser.d.ts +0 -4
- package/build/sdk/studio/sdk/model/adminApiUser.js +0 -5
- package/build/sdk/studio/sdk/model/adminApiUser.js.map +1 -1
- package/build/sdk/studio/sdk/model/adminApiUserAllOf.d.ts +0 -4
- package/build/sdk/studio/sdk/model/adminApiUserAllOf.js +0 -5
- package/build/sdk/studio/sdk/model/adminApiUserAllOf.js.map +1 -1
- package/build/sdk/studio/sdk/model/adminCreateProjectRequest.d.ts +38 -0
- 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/adminGetOrganizationComputeTimeUsageResponse.d.ts +44 -0
- 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/adminGetOrganizationUsageReportResponse.js +42 -0
- 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 +10 -22
- package/build/sdk/studio/sdk/model/adminOrganizationInfoResponse.js +13 -43
- package/build/sdk/studio/sdk/model/adminOrganizationInfoResponse.js.map +1 -1
- package/build/sdk/studio/sdk/model/adminOrganizationInfoResponseAllOf.d.ts +2 -10
- package/build/sdk/studio/sdk/model/adminOrganizationInfoResponseAllOf.js +2 -12
- package/build/sdk/studio/sdk/model/adminOrganizationInfoResponseAllOf.js.map +1 -1
- package/build/sdk/studio/sdk/model/adminUpdateOrganizationRequest.d.ts +8 -0
- package/build/sdk/studio/sdk/model/adminUpdateOrganizationRequest.js +10 -0
- package/build/sdk/studio/sdk/model/adminUpdateOrganizationRequest.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/anomalyCapacity.d.ts +16 -0
- package/build/sdk/studio/sdk/model/anomalyCapacity.js +16 -0
- package/build/sdk/studio/sdk/model/anomalyCapacity.js.map +1 -0
- package/build/sdk/studio/sdk/model/anomalyGmmMetadata.d.ts +44 -0
- package/build/sdk/studio/sdk/model/anomalyGmmMetadata.js +52 -0
- package/build/sdk/studio/sdk/model/anomalyGmmMetadata.js.map +1 -0
- package/build/sdk/studio/sdk/model/{whitelabelAdminCreateProjectRequest.d.ts → anomalyGmmMetadataAllOf.d.ts} +7 -7
- package/build/sdk/studio/sdk/model/anomalyGmmMetadataAllOf.js +42 -0
- package/build/sdk/studio/sdk/model/anomalyGmmMetadataAllOf.js.map +1 -0
- package/build/sdk/studio/sdk/model/anomalyResult.d.ts +41 -0
- package/build/sdk/studio/sdk/model/anomalyResult.js +47 -0
- package/build/sdk/studio/sdk/model/anomalyResult.js.map +1 -0
- 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/classifySampleResponse.d.ts +1 -0
- package/build/sdk/studio/sdk/model/classifySampleResponse.js +5 -0
- package/build/sdk/studio/sdk/model/classifySampleResponse.js.map +1 -1
- package/build/sdk/studio/sdk/model/classifySampleResponseAllOf.d.ts +1 -0
- package/build/sdk/studio/sdk/model/classifySampleResponseAllOf.js +5 -0
- package/build/sdk/studio/sdk/model/classifySampleResponseAllOf.js.map +1 -1
- package/build/sdk/studio/sdk/model/classifySampleResponseClassification.d.ts +10 -0
- package/build/sdk/studio/sdk/model/classifySampleResponseClassification.js +10 -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 +20 -0
- package/build/sdk/studio/sdk/model/createEnterpriseTrialUserRequest.js +25 -0
- package/build/sdk/studio/sdk/model/createEnterpriseTrialUserRequest.js.map +1 -1
- package/build/sdk/studio/sdk/model/createEnterpriseTrialUserRequestAllOf.d.ts +12 -0
- package/build/sdk/studio/sdk/model/createEnterpriseTrialUserRequestAllOf.js +15 -0
- package/build/sdk/studio/sdk/model/createEnterpriseTrialUserRequestAllOf.js.map +1 -1
- package/build/sdk/studio/sdk/model/createOrganizationUsageReportBody.d.ts +26 -0
- 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/createWhitelabelRequest.d.ts +4 -0
- package/build/sdk/studio/sdk/model/createWhitelabelRequest.js +5 -0
- package/build/sdk/studio/sdk/model/createWhitelabelRequest.js.map +1 -1
- package/build/sdk/studio/sdk/model/{activateUserRequest.d.ts → createdUpdatedByUser.d.ts} +5 -5
- package/build/sdk/studio/sdk/model/createdUpdatedByUser.js +47 -0
- package/build/sdk/studio/sdk/model/createdUpdatedByUser.js.map +1 -0
- package/build/sdk/studio/sdk/model/crossValidationData.d.ts +29 -0
- 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/dataCampaignDashboard.d.ts +1 -0
- package/build/sdk/studio/sdk/model/dataCampaignDashboard.js +5 -0
- package/build/sdk/studio/sdk/model/dataCampaignDashboard.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/{createNoteResponse.d.ts → developmentBoardCreatedResponse.d.ts} +1 -4
- package/build/sdk/studio/sdk/model/{createNoteResponse.js → developmentBoardCreatedResponse.js} +9 -9
- package/build/sdk/studio/sdk/model/developmentBoardCreatedResponse.js.map +1 -0
- package/build/sdk/studio/sdk/model/{developmentBoard.d.ts → developmentBoardRequest.d.ts} +1 -1
- package/build/sdk/studio/sdk/model/{developmentBoard.js → developmentBoardRequest.js} +9 -9
- package/build/sdk/studio/sdk/model/developmentBoardRequest.js.map +1 -0
- package/build/sdk/studio/sdk/model/developmentBoardRequestUpdate.d.ts +27 -0
- package/build/sdk/studio/sdk/model/developmentBoardRequestUpdate.js +42 -0
- package/build/sdk/studio/sdk/model/developmentBoardRequestUpdate.js.map +1 -0
- package/build/sdk/studio/sdk/model/developmentBoardResponse.d.ts +28 -0
- package/build/sdk/studio/sdk/model/developmentBoardResponse.js +47 -0
- package/build/sdk/studio/sdk/model/developmentBoardResponse.js.map +1 -0
- package/build/sdk/studio/sdk/model/developmentBoardsResponse.d.ts +2 -2
- package/build/sdk/studio/sdk/model/developmentBoardsResponse.js +1 -1
- package/build/sdk/studio/sdk/model/developmentBoardsResponse.js.map +1 -1
- package/build/sdk/studio/sdk/model/developmentBoardsResponseAllOf.d.ts +2 -2
- package/build/sdk/studio/sdk/model/developmentBoardsResponseAllOf.js +1 -1
- package/build/sdk/studio/sdk/model/developmentBoardsResponseAllOf.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/enterpriseTrial.d.ts +4 -0
- package/build/sdk/studio/sdk/model/enterpriseTrial.js +5 -0
- package/build/sdk/studio/sdk/model/enterpriseTrial.js.map +1 -1
- package/build/sdk/studio/sdk/model/enterpriseUpgradeOrTrialExtensionRequest.d.ts +4 -0
- package/build/sdk/studio/sdk/model/enterpriseUpgradeOrTrialExtensionRequest.js +5 -0
- package/build/sdk/studio/sdk/model/enterpriseUpgradeOrTrialExtensionRequest.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/findSyntiantPosteriorRequest.d.ts +1 -1
- package/build/sdk/studio/sdk/model/findSyntiantPosteriorRequest.js +1 -1
- package/build/sdk/studio/sdk/model/findSyntiantPosteriorRequest.js.map +1 -1
- package/build/sdk/studio/sdk/model/{getAutoSegmenterResponse.d.ts → getAutoLabelerResponse.d.ts} +4 -3
- package/build/sdk/studio/sdk/model/{getAutoSegmenterResponse.js → getAutoLabelerResponse.js} +15 -10
- package/build/sdk/studio/sdk/model/getAutoLabelerResponse.js.map +1 -0
- package/build/sdk/studio/sdk/model/{getAutoSegmenterResponseAllOf.d.ts → getAutoLabelerResponseAllOf.d.ts} +4 -3
- package/build/sdk/studio/sdk/model/{getAutoSegmenterResponseAllOf.js → getAutoLabelerResponseAllOf.js} +15 -10
- package/build/sdk/studio/sdk/model/getAutoLabelerResponseAllOf.js.map +1 -0
- package/build/sdk/studio/sdk/model/{getAutoSegmenterResponseAllOfClusters.d.ts → getAutoLabelerResponseAllOfClusters.d.ts} +3 -3
- package/build/sdk/studio/sdk/model/{getAutoSegmenterResponseAllOfClusters.js → getAutoLabelerResponseAllOfClusters.js} +10 -10
- package/build/sdk/studio/sdk/model/getAutoLabelerResponseAllOfClusters.js.map +1 -0
- package/build/sdk/studio/sdk/model/{getAutoSegmenterResponseAllOfItems.d.ts → getAutoLabelerResponseAllOfItems.d.ts} +1 -1
- package/build/sdk/studio/sdk/model/{getAutoSegmenterResponseAllOfItems.js → getAutoLabelerResponseAllOfItems.js} +9 -9
- package/build/sdk/studio/sdk/model/getAutoLabelerResponseAllOfItems.js.map +1 -0
- package/build/sdk/studio/sdk/model/getDiversityDataResponseAllOfClusterInfos.d.ts +1 -1
- package/build/sdk/studio/sdk/model/{getJWTTokenResponse.d.ts → getEmailVerificationCodeResponse.d.ts} +3 -7
- package/build/sdk/studio/sdk/model/{getJWTTokenResponse.js → getEmailVerificationCodeResponse.js} +11 -16
- package/build/sdk/studio/sdk/model/getEmailVerificationCodeResponse.js.map +1 -0
- package/build/sdk/studio/sdk/model/getEmailVerificationCodeResponseAllOf.d.ts +28 -0
- package/build/sdk/studio/sdk/model/getEmailVerificationCodeResponseAllOf.js +32 -0
- package/build/sdk/studio/sdk/model/getEmailVerificationCodeResponseAllOf.js.map +1 -0
- package/build/sdk/studio/sdk/model/getFeatureFlagsResponse.d.ts +37 -0
- package/build/sdk/studio/sdk/model/{adminGetFeatureFlagsResponse.js → getFeatureFlagsResponse.js} +10 -10
- package/build/sdk/studio/sdk/model/getFeatureFlagsResponse.js.map +1 -0
- package/build/sdk/studio/sdk/model/{addNoteRequest.d.ts → getFeatureFlagsResponseAllOf.d.ts} +4 -7
- package/build/sdk/studio/sdk/model/getFeatureFlagsResponseAllOf.js +32 -0
- package/build/sdk/studio/sdk/model/getFeatureFlagsResponseAllOf.js.map +1 -0
- package/build/sdk/studio/sdk/model/{adminGetFeatureFlagsResponseAllOfFlags.d.ts → getFeatureFlagsResponseAllOfFlags.d.ts} +1 -1
- package/build/sdk/studio/sdk/model/{adminGetFeatureFlagsResponseAllOfFlags.js → getFeatureFlagsResponseAllOfFlags.js} +9 -9
- package/build/sdk/studio/sdk/model/getFeatureFlagsResponseAllOfFlags.js.map +1 -0
- package/build/sdk/studio/sdk/model/getLabelNoiseDataResponse.d.ts +34 -0
- package/build/sdk/studio/sdk/model/{listOrganizationProjectsResponse.js → getLabelNoiseDataResponse.js} +12 -12
- 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/getOrganizationDataItemTransformJobsResponseAllOfTransformationJobs.d.ts +1 -0
- package/build/sdk/studio/sdk/model/getOrganizationDataItemTransformJobsResponseAllOfTransformationJobs.js +5 -0
- package/build/sdk/studio/sdk/model/getOrganizationDataItemTransformJobsResponseAllOfTransformationJobs.js.map +1 -1
- package/build/sdk/studio/sdk/model/getOrganizationUsageReportResponse.d.ts +34 -0
- package/build/sdk/studio/sdk/model/getOrganizationUsageReportResponse.js +42 -0
- package/build/sdk/studio/sdk/model/getOrganizationUsageReportResponse.js.map +1 -0
- package/build/sdk/studio/sdk/model/getTargetConstraintsResponse.d.ts +34 -0
- package/build/sdk/studio/sdk/model/getTargetConstraintsResponse.js +42 -0
- 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/getUserResponse.d.ts +4 -4
- package/build/sdk/studio/sdk/model/getUserResponse.js +5 -5
- package/build/sdk/studio/sdk/model/getUserResponse.js.map +1 -1
- package/build/sdk/studio/sdk/model/getUserResponseAllOf.d.ts +4 -4
- package/build/sdk/studio/sdk/model/getUserResponseAllOf.js +5 -5
- package/build/sdk/studio/sdk/model/getUserResponseAllOf.js.map +1 -1
- package/build/sdk/studio/sdk/model/imageInputScaling.d.ts +2 -2
- package/build/sdk/studio/sdk/model/imageInputScaling.js +1 -1
- package/build/sdk/studio/sdk/model/imageInputScaling.js.map +1 -1
- 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/{createNoteResponseAllOf.d.ts → jobCreatedByUser.d.ts} +4 -4
- package/build/sdk/studio/sdk/model/jobCreatedByUser.js +47 -0
- 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/{anomalyModelMetadataClusters.d.ts → kerasCustomMetric.d.ts} +5 -5
- package/build/sdk/studio/sdk/model/{addNoteRequest.js → kerasCustomMetric.js} +14 -14
- package/build/sdk/studio/sdk/model/{updateNoteRequest.js.map → kerasCustomMetric.js.map} +1 -1
- 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/kerasModelMetadataMetrics.d.ts +8 -0
- package/build/sdk/studio/sdk/model/kerasModelMetadataMetrics.js +10 -0
- package/build/sdk/studio/sdk/model/kerasModelMetadataMetrics.js.map +1 -1
- package/build/sdk/studio/sdk/model/kerasModelMetadataMetricsOnDevicePerformance.d.ts +5 -0
- package/build/sdk/studio/sdk/model/kerasModelMetadataMetricsOnDevicePerformance.js +5 -0
- package/build/sdk/studio/sdk/model/kerasModelMetadataMetricsOnDevicePerformance.js.map +1 -1
- package/build/sdk/studio/sdk/model/kerasModelVariantEnum.d.ts +13 -0
- package/build/sdk/studio/sdk/model/kerasModelVariantEnum.js +16 -0
- package/build/sdk/studio/sdk/model/kerasModelVariantEnum.js.map +1 -0
- package/build/sdk/studio/sdk/model/kerasResponse.d.ts +16 -0
- package/build/sdk/studio/sdk/model/kerasResponse.js +25 -0
- package/build/sdk/studio/sdk/model/kerasResponse.js.map +1 -1
- package/build/sdk/studio/sdk/model/kerasResponseAllOf.d.ts +16 -0
- package/build/sdk/studio/sdk/model/kerasResponseAllOf.js +25 -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/learnBlockType.d.ts +1 -1
- package/build/sdk/studio/sdk/model/learnBlockType.js +1 -1
- package/build/sdk/studio/sdk/model/learnBlockType.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/listOrganizationPortalsResponseAllOfPortals.d.ts +1 -0
- package/build/sdk/studio/sdk/model/listOrganizationPortalsResponseAllOfPortals.js +5 -0
- package/build/sdk/studio/sdk/model/listOrganizationPortalsResponseAllOfPortals.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/listOrganizationUsageReportsResponse.d.ts +38 -0
- 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/listPortalFilesInFolderRequest.d.ts +8 -0
- package/build/sdk/studio/sdk/model/listPortalFilesInFolderRequest.js +10 -0
- package/build/sdk/studio/sdk/model/listPortalFilesInFolderRequest.js.map +1 -1
- package/build/sdk/studio/sdk/model/listPortalFilesInFolderResponse.d.ts +2 -1
- package/build/sdk/studio/sdk/model/listPortalFilesInFolderResponse.js +5 -0
- package/build/sdk/studio/sdk/model/listPortalFilesInFolderResponse.js.map +1 -1
- package/build/sdk/studio/sdk/model/listPortalFilesInFolderResponseAllOf.d.ts +2 -1
- package/build/sdk/studio/sdk/model/listPortalFilesInFolderResponseAllOf.js +5 -0
- package/build/sdk/studio/sdk/model/listPortalFilesInFolderResponseAllOf.js.map +1 -1
- package/build/sdk/studio/sdk/model/{listOrganizationProjectsResponse.d.ts → listTunerRunsResponse.d.ts} +3 -3
- package/build/sdk/studio/sdk/model/listTunerRunsResponse.js +42 -0
- package/build/sdk/studio/sdk/model/listTunerRunsResponse.js.map +1 -0
- package/build/sdk/studio/sdk/model/listTunerRunsResponseAllOf.d.ts +26 -0
- 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/logAnalyticsEventRequest.d.ts +30 -0
- package/build/sdk/studio/sdk/model/logAnalyticsEventRequest.js +42 -0
- package/build/sdk/studio/sdk/model/logAnalyticsEventRequest.js.map +1 -0
- package/build/sdk/studio/sdk/model/memorySpec.d.ts +30 -0
- 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 +80 -16
- package/build/sdk/studio/sdk/model/models.js +251 -49
- package/build/sdk/studio/sdk/model/models.js.map +1 -1
- package/build/sdk/studio/sdk/model/neighborsData.d.ts +36 -0
- 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 +16 -0
- package/build/sdk/studio/sdk/model/organization.js +20 -0
- package/build/sdk/studio/sdk/model/organization.js.map +1 -1
- package/build/sdk/studio/sdk/model/organizationAddDataFolderRequest.d.ts +3 -0
- package/build/sdk/studio/sdk/model/organizationAddDataFolderRequest.js +7 -1
- package/build/sdk/studio/sdk/model/organizationAddDataFolderRequest.js.map +1 -1
- package/build/sdk/studio/sdk/model/organizationAddDatasetRequest.d.ts +3 -0
- package/build/sdk/studio/sdk/model/organizationAddDatasetRequest.js +7 -1
- package/build/sdk/studio/sdk/model/organizationAddDatasetRequest.js.map +1 -1
- package/build/sdk/studio/sdk/model/organizationAddDatasetRequestBucket.d.ts +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 +10 -0
- package/build/sdk/studio/sdk/model/organizationCreateProject.js +15 -0
- 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/organizationCreateProjectTransformationSummary.d.ts +4 -0
- package/build/sdk/studio/sdk/model/organizationCreateProjectTransformationSummary.js +5 -0
- package/build/sdk/studio/sdk/model/organizationCreateProjectTransformationSummary.js.map +1 -1
- package/build/sdk/studio/sdk/model/organizationCreateProjectWithFiles.d.ts +10 -0
- package/build/sdk/studio/sdk/model/organizationCreateProjectWithFiles.js +15 -0
- package/build/sdk/studio/sdk/model/organizationCreateProjectWithFiles.js.map +1 -1
- package/build/sdk/studio/sdk/model/organizationCreateProjectWithFilesAllOfFiles.d.ts +4 -0
- package/build/sdk/studio/sdk/model/organizationCreateProjectWithFilesAllOfFiles.js +5 -0
- package/build/sdk/studio/sdk/model/organizationCreateProjectWithFilesAllOfFiles.js.map +1 -1
- package/build/sdk/studio/sdk/model/organizationDataset.d.ts +3 -0
- package/build/sdk/studio/sdk/model/organizationDataset.js +7 -1
- package/build/sdk/studio/sdk/model/organizationDataset.js.map +1 -1
- package/build/sdk/studio/sdk/model/organizationDatasetBucket.d.ts +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 +13 -0
- package/build/sdk/studio/sdk/model/organizationGetCreateProjectsResponseAllOfJobs.js +22 -1
- package/build/sdk/studio/sdk/model/organizationGetCreateProjectsResponseAllOfJobs.js.map +1 -1
- package/build/sdk/studio/sdk/model/organizationMetricsResponseAllOfMetrics.d.ts +11 -3
- package/build/sdk/studio/sdk/model/organizationMetricsResponseAllOfMetrics.js +10 -0
- package/build/sdk/studio/sdk/model/organizationMetricsResponseAllOfMetrics.js.map +1 -1
- package/build/sdk/studio/sdk/model/organizationPipeline.d.ts +1 -1
- package/build/sdk/studio/sdk/model/organizationPipelineRun.d.ts +1 -1
- 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/organizationUpdatePipelineBody.d.ts +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/permission.d.ts +1 -1
- package/build/sdk/studio/sdk/model/permission.js +1 -1
- package/build/sdk/studio/sdk/model/permission.js.map +1 -1
- package/build/sdk/studio/sdk/model/portalFile.d.ts +3 -0
- package/build/sdk/studio/sdk/model/portalFile.js +7 -1
- package/build/sdk/studio/sdk/model/portalFile.js.map +1 -1
- package/build/sdk/studio/sdk/model/portalInfoResponse.d.ts +1 -0
- package/build/sdk/studio/sdk/model/portalInfoResponse.js +5 -0
- package/build/sdk/studio/sdk/model/portalInfoResponse.js.map +1 -1
- 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 +7 -0
- package/build/sdk/studio/sdk/model/projectInfoResponse.js +15 -0
- package/build/sdk/studio/sdk/model/projectInfoResponse.js.map +1 -1
- package/build/sdk/studio/sdk/model/projectInfoResponseAllOf.d.ts +7 -0
- package/build/sdk/studio/sdk/model/projectInfoResponseAllOf.js +15 -0
- package/build/sdk/studio/sdk/model/projectInfoResponseAllOf.js.map +1 -1
- package/build/sdk/studio/sdk/model/projectTrainingDataSummaryResponse.d.ts +2 -2
- package/build/sdk/studio/sdk/model/projectTrainingDataSummaryResponse.js +1 -1
- package/build/sdk/studio/sdk/model/projectTrainingDataSummaryResponse.js.map +1 -1
- package/build/sdk/studio/sdk/model/projectTrainingDataSummaryResponseAllOf.d.ts +2 -2
- package/build/sdk/studio/sdk/model/projectTrainingDataSummaryResponseAllOf.js +1 -1
- package/build/sdk/studio/sdk/model/projectTrainingDataSummaryResponseAllOf.js.map +1 -1
- package/build/sdk/studio/sdk/model/projectTrainingDataSummaryResponseAllOfDataSummary.d.ts +29 -0
- package/build/sdk/studio/sdk/model/projectTrainingDataSummaryResponseAllOfDataSummary.js +37 -0
- package/build/sdk/studio/sdk/model/projectTrainingDataSummaryResponseAllOfDataSummary.js.map +1 -0
- 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/{runAutoSegmenterRequest.d.ts → runAutoLabelerRequest.d.ts} +2 -1
- package/build/sdk/studio/sdk/model/{runAutoSegmenterRequest.js → runAutoLabelerRequest.js} +14 -9
- package/build/sdk/studio/sdk/model/runAutoLabelerRequest.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/saveAutoLabelerClustersRequest.d.ts +26 -0
- package/build/sdk/studio/sdk/model/saveAutoLabelerClustersRequest.js +32 -0
- package/build/sdk/studio/sdk/model/saveAutoLabelerClustersRequest.js.map +1 -0
- package/build/sdk/studio/sdk/model/{saveAutoSegmenterClustersRequestClusters.d.ts → saveAutoLabelerClustersRequestClusters.d.ts} +1 -1
- package/build/sdk/studio/sdk/model/{saveAutoSegmenterClustersRequestClusters.js → saveAutoLabelerClustersRequestClusters.js} +9 -9
- package/build/sdk/studio/sdk/model/saveAutoLabelerClustersRequestClusters.js.map +1 -0
- package/build/sdk/studio/sdk/model/{saveAutoSegmenterClustersResponse.d.ts → saveAutoLabelerClustersResponse.d.ts} +1 -1
- package/build/sdk/studio/sdk/model/{saveAutoSegmenterClustersResponse.js → saveAutoLabelerClustersResponse.js} +9 -9
- package/build/sdk/studio/sdk/model/saveAutoLabelerClustersResponse.js.map +1 -0
- package/build/sdk/studio/sdk/model/{saveAutoSegmenterClustersResponseAllOf.d.ts → saveAutoLabelerClustersResponseAllOf.d.ts} +1 -1
- package/build/sdk/studio/sdk/model/{saveAutoSegmenterClustersResponseAllOf.js → saveAutoLabelerClustersResponseAllOf.js} +9 -9
- package/build/sdk/studio/sdk/model/saveAutoLabelerClustersResponseAllOf.js.map +1 -0
- package/build/sdk/studio/sdk/model/setKerasParameterRequest.d.ts +12 -0
- package/build/sdk/studio/sdk/model/setKerasParameterRequest.js +20 -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/startEnterpriseTrialRequest.d.ts +16 -0
- package/build/sdk/studio/sdk/model/startEnterpriseTrialRequest.js +20 -0
- package/build/sdk/studio/sdk/model/startEnterpriseTrialRequest.js.map +1 -1
- 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/tunerRun.d.ts +31 -0
- 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/tunerTrialImpulse.d.ts +27 -0
- 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/updateOrganizationDataCampaignDashboardRequest.d.ts +1 -0
- package/build/sdk/studio/sdk/model/updateOrganizationDataCampaignDashboardRequest.js +5 -0
- package/build/sdk/studio/sdk/model/updateOrganizationDataCampaignDashboardRequest.js.map +1 -1
- package/build/sdk/studio/sdk/model/updateOrganizationDatasetRequest.d.ts +5 -2
- package/build/sdk/studio/sdk/model/updateOrganizationDatasetRequest.js +8 -2
- package/build/sdk/studio/sdk/model/updateOrganizationDatasetRequest.js.map +1 -1
- package/build/sdk/studio/sdk/model/updateOrganizationDatasetRequestBucket.d.ts +36 -0
- package/build/sdk/studio/sdk/model/updateOrganizationDatasetRequestBucket.js +42 -0
- package/build/sdk/studio/sdk/model/updateOrganizationDatasetRequestBucket.js.map +1 -0
- 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 +18 -0
- package/build/sdk/studio/sdk/model/updateProjectRequest.js +25 -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/updateUserRequest.d.ts +0 -4
- package/build/sdk/studio/sdk/model/updateUserRequest.js +0 -5
- package/build/sdk/studio/sdk/model/updateUserRequest.js.map +1 -1
- package/build/sdk/studio/sdk/model/updateWhitelabelLearningBlocksRequest.d.ts +28 -0
- package/build/sdk/studio/sdk/model/updateWhitelabelLearningBlocksRequest.js +32 -0
- package/build/sdk/studio/sdk/model/updateWhitelabelLearningBlocksRequest.js.map +1 -0
- package/build/sdk/studio/sdk/model/{getOrganizationProjectsDataCountResponseAllOf.d.ts → userDismissNotificationRequest.d.ts} +2 -2
- package/build/sdk/studio/sdk/model/userDismissNotificationRequest.js +32 -0
- package/build/sdk/studio/sdk/model/userDismissNotificationRequest.js.map +1 -0
- package/build/sdk/studio/sdk/model/userOrganization.d.ts +10 -0
- package/build/sdk/studio/sdk/model/userOrganization.js +15 -0
- package/build/sdk/studio/sdk/model/userOrganization.js.map +1 -1
- package/build/sdk/studio/sdk/model/verifyOrganizationBucketResponse.d.ts +8 -0
- package/build/sdk/studio/sdk/model/verifyOrganizationBucketResponse.js +10 -0
- package/build/sdk/studio/sdk/model/verifyOrganizationBucketResponse.js.map +1 -1
- package/build/sdk/studio/sdk/model/verifyOrganizationBucketResponseAllOf.d.ts +8 -0
- package/build/sdk/studio/sdk/model/verifyOrganizationBucketResponseAllOf.js +10 -0
- package/build/sdk/studio/sdk/model/verifyOrganizationBucketResponseAllOf.js.map +1 -1
- package/build/sdk/studio/sdk/model/verifyOrganizationExistingBucketRequest.d.ts +25 -0
- package/build/sdk/studio/sdk/model/verifyOrganizationExistingBucketRequest.js +32 -0
- package/build/sdk/studio/sdk/model/verifyOrganizationExistingBucketRequest.js.map +1 -0
- package/build/sdk/studio/sdk/model/whitelabel.d.ts +17 -1
- package/build/sdk/studio/sdk/model/whitelabel.js +25 -0
- package/build/sdk/studio/sdk/model/whitelabel.js.map +1 -1
- package/build/sdk/studio/sdk/model/whitelabelAllLearningBlocks.d.ts +32 -0
- package/build/sdk/studio/sdk/model/whitelabelAllLearningBlocks.js +37 -0
- package/build/sdk/studio/sdk/model/whitelabelAllLearningBlocks.js.map +1 -0
- 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/daemon/ei-serial-protocol.js +4 -1
- package/build/shared/daemon/ei-serial-protocol.js.map +1 -1
- package/build/shared/viewmodels/init.d.ts +4 -3
- package/build/shared/viewmodels/init.js +3 -1
- package/build/shared/viewmodels/init.js.map +1 -1
- package/cli/linux/runner.ts +175 -2
- package/cli/linux/webserver/middleware/asyncMiddleware.ts +7 -0
- package/cli/linux/webserver/public/assets/mobileclient.css +16 -0
- package/cli/linux/webserver/public/inference-server.js +104 -0
- package/cli/linux/webserver/views/escape-html-template-tag/escape.ts +64 -0
- package/cli/linux/webserver/views/escape-html-template-tag/index.ts +2 -0
- package/cli/linux/webserver/views/inference-server-view.ts +142 -0
- package/examples/js/classify-camera.js +26 -5
- package/package.json +5 -3
- package/build/sdk/studio/sdk/api/allowsReadOnlyApi.d.ts +0 -679
- package/build/sdk/studio/sdk/api/allowsReadOnlyApi.js +0 -3731
- package/build/sdk/studio/sdk/api/allowsReadOnlyApi.js.map +0 -1
- package/build/sdk/studio/sdk/api/contentDispositionInlineApi.d.ts +0 -60
- package/build/sdk/studio/sdk/api/contentDispositionInlineApi.js +0 -167
- package/build/sdk/studio/sdk/api/contentDispositionInlineApi.js.map +0 -1
- package/build/sdk/studio/sdk/api/organizationAllowDeveloperProfileApi.d.ts +0 -682
- package/build/sdk/studio/sdk/api/organizationAllowDeveloperProfileApi.js +0 -3720
- package/build/sdk/studio/sdk/api/organizationAllowDeveloperProfileApi.js.map +0 -1
- package/build/sdk/studio/sdk/api/organizationAllowGuestAccessApi.d.ts +0 -180
- package/build/sdk/studio/sdk/api/organizationAllowGuestAccessApi.js +0 -847
- package/build/sdk/studio/sdk/api/organizationAllowGuestAccessApi.js.map +0 -1
- package/build/sdk/studio/sdk/api/projectRequiresAdminApi.d.ts +0 -65
- package/build/sdk/studio/sdk/api/projectRequiresAdminApi.js +0 -231
- package/build/sdk/studio/sdk/api/projectRequiresAdminApi.js.map +0 -1
- package/build/sdk/studio/sdk/api/requiresSudoApi.d.ts +0 -87
- package/build/sdk/studio/sdk/api/requiresSudoApi.js +0 -371
- package/build/sdk/studio/sdk/api/requiresSudoApi.js.map +0 -1
- package/build/sdk/studio/sdk/api/requiresThirdPartyAuthApiKeyApi.d.ts +0 -56
- package/build/sdk/studio/sdk/api/requiresThirdPartyAuthApiKeyApi.js.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.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.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.map +0 -1
- package/build/sdk/studio/sdk/model/getAutoSegmenterResponseAllOf.js.map +0 -1
- package/build/sdk/studio/sdk/model/getAutoSegmenterResponseAllOfClusters.js.map +0 -1
- 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.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/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.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.map +0 -1
- package/build/sdk/studio/sdk/model/saveAutoSegmenterClustersResponse.js.map +0 -1
- 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/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
|
@@ -455,8 +455,10 @@ class OrganizationsApi {
|
|
|
455
455
|
* Get general metrics for this organization.
|
|
456
456
|
* @summary Organization metrics
|
|
457
457
|
* @param organizationId Organization ID
|
|
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
|
|
458
460
|
*/
|
|
459
|
-
async getOrganizationMetrics(organizationId, options = { headers: {} }) {
|
|
461
|
+
async getOrganizationMetrics(organizationId, queryParams, options = { headers: {} }) {
|
|
460
462
|
const localVarPath = this.basePath + '/api/organizations/{organizationId}/metrics'
|
|
461
463
|
.replace('{' + 'organizationId' + '}', encodeURIComponent(String(organizationId)));
|
|
462
464
|
let localVarQueryParameters = {};
|
|
@@ -476,6 +478,12 @@ class OrganizationsApi {
|
|
|
476
478
|
if (organizationId === null || organizationId === undefined) {
|
|
477
479
|
throw new Error('Required parameter organizationId was null or undefined when calling getOrganizationMetrics.');
|
|
478
480
|
}
|
|
481
|
+
if (queryParams.excludeEdgeImpulseUsers !== undefined) {
|
|
482
|
+
localVarQueryParameters['excludeEdgeImpulseUsers'] = models_1.ObjectSerializer.serialize(queryParams.excludeEdgeImpulseUsers, "boolean");
|
|
483
|
+
}
|
|
484
|
+
if (queryParams.projectVisibility !== undefined) {
|
|
485
|
+
localVarQueryParameters['projectVisibility'] = models_1.ObjectSerializer.serialize(queryParams.projectVisibility, "ProjectVisibility");
|
|
486
|
+
}
|
|
479
487
|
Object.assign(localVarHeaderParams, options.headers);
|
|
480
488
|
Object.assign(localVarHeaderParams, this.opts.extraHeaders);
|
|
481
489
|
let localVarUseFormData = false;
|
|
@@ -733,7 +741,7 @@ class OrganizationsApi {
|
|
|
733
741
|
reject(error);
|
|
734
742
|
}
|
|
735
743
|
else {
|
|
736
|
-
body = models_1.ObjectSerializer.deserialize(body, "
|
|
744
|
+
body = models_1.ObjectSerializer.deserialize(body, "ListProjectsResponse");
|
|
737
745
|
const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
|
|
738
746
|
if (typeof body.success === 'boolean' && !body.success) {
|
|
739
747
|
reject(new Error(body.error || errString));
|
|
@@ -1693,16 +1701,14 @@ class OrganizationsApi {
|
|
|
1693
1701
|
});
|
|
1694
1702
|
}
|
|
1695
1703
|
/**
|
|
1696
|
-
* White label admin only API to add a
|
|
1697
|
-
* @summary Add
|
|
1704
|
+
* White label admin only API to add a development board.
|
|
1705
|
+
* @summary Add a development board to a whitelabel
|
|
1698
1706
|
* @param organizationId Organization ID
|
|
1699
|
-
* @param
|
|
1700
|
-
* @param adminAddOrganizationUserRequest
|
|
1707
|
+
* @param developmentBoardRequest
|
|
1701
1708
|
*/
|
|
1702
|
-
async
|
|
1703
|
-
const localVarPath = this.basePath + '/api/organizations/{organizationId}/whitelabel/
|
|
1704
|
-
.replace('{' + 'organizationId' + '}', encodeURIComponent(String(organizationId)))
|
|
1705
|
-
.replace('{' + 'innerOrganizationId' + '}', encodeURIComponent(String(innerOrganizationId)));
|
|
1709
|
+
async whitelabelAdminAddDevelopmentBoard(organizationId, developmentBoardRequest, options = { headers: {} }) {
|
|
1710
|
+
const localVarPath = this.basePath + '/api/organizations/{organizationId}/whitelabel/development-boards'
|
|
1711
|
+
.replace('{' + 'organizationId' + '}', encodeURIComponent(String(organizationId)));
|
|
1706
1712
|
let localVarQueryParameters = {};
|
|
1707
1713
|
let localVarHeaderParams = Object.assign({
|
|
1708
1714
|
'User-Agent': 'edgeimpulse-api nodejs'
|
|
@@ -1718,11 +1724,7 @@ class OrganizationsApi {
|
|
|
1718
1724
|
let localVarFormParams = {};
|
|
1719
1725
|
// verify required parameter 'organizationId' is not null or undefined
|
|
1720
1726
|
if (organizationId === null || organizationId === undefined) {
|
|
1721
|
-
throw new Error('Required parameter organizationId was null or undefined when calling
|
|
1722
|
-
}
|
|
1723
|
-
// verify required parameter 'innerOrganizationId' is not null or undefined
|
|
1724
|
-
if (innerOrganizationId === null || innerOrganizationId === undefined) {
|
|
1725
|
-
throw new Error('Required parameter innerOrganizationId was null or undefined when calling whitelabelAdminAddUserToOrganization.');
|
|
1727
|
+
throw new Error('Required parameter organizationId was null or undefined when calling whitelabelAdminAddDevelopmentBoard.');
|
|
1726
1728
|
}
|
|
1727
1729
|
Object.assign(localVarHeaderParams, options.headers);
|
|
1728
1730
|
Object.assign(localVarHeaderParams, this.opts.extraHeaders);
|
|
@@ -1735,7 +1737,7 @@ class OrganizationsApi {
|
|
|
1735
1737
|
useQuerystring: this._useQuerystring,
|
|
1736
1738
|
agentOptions: { keepAlive: false },
|
|
1737
1739
|
json: true,
|
|
1738
|
-
body: models_1.ObjectSerializer.serialize(
|
|
1740
|
+
body: models_1.ObjectSerializer.serialize(developmentBoardRequest, "DevelopmentBoardRequest")
|
|
1739
1741
|
};
|
|
1740
1742
|
let authenticationPromise = Promise.resolve();
|
|
1741
1743
|
authenticationPromise = authenticationPromise.then(() => this.authentications.ApiKeyAuthentication.applyToRequest(localVarRequestOptions));
|
|
@@ -1757,7 +1759,7 @@ class OrganizationsApi {
|
|
|
1757
1759
|
reject(error);
|
|
1758
1760
|
}
|
|
1759
1761
|
else {
|
|
1760
|
-
body = models_1.ObjectSerializer.deserialize(body, "
|
|
1762
|
+
body = models_1.ObjectSerializer.deserialize(body, "DevelopmentBoardCreatedResponse");
|
|
1761
1763
|
const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
|
|
1762
1764
|
if (typeof body.success === 'boolean' && !body.success) {
|
|
1763
1765
|
reject(new Error(body.error || errString));
|
|
@@ -1774,16 +1776,16 @@ class OrganizationsApi {
|
|
|
1774
1776
|
});
|
|
1775
1777
|
}
|
|
1776
1778
|
/**
|
|
1777
|
-
* White label admin only API to add
|
|
1778
|
-
* @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
|
|
1779
1781
|
* @param organizationId Organization ID
|
|
1780
|
-
* @param
|
|
1781
|
-
* @param
|
|
1782
|
+
* @param innerOrganizationId Organization ID within the context of a white label
|
|
1783
|
+
* @param adminAddOrganizationApiKeyRequest
|
|
1782
1784
|
*/
|
|
1783
|
-
async
|
|
1784
|
-
const localVarPath = this.basePath + '/api/organizations/{organizationId}/whitelabel/
|
|
1785
|
+
async whitelabelAdminAddOrganizationApiKey(organizationId, innerOrganizationId, adminAddOrganizationApiKeyRequest, options = { headers: {} }) {
|
|
1786
|
+
const localVarPath = this.basePath + '/api/organizations/{organizationId}/whitelabel/organizations/{innerOrganizationId}/apiKeys'
|
|
1785
1787
|
.replace('{' + 'organizationId' + '}', encodeURIComponent(String(organizationId)))
|
|
1786
|
-
.replace('{' + '
|
|
1788
|
+
.replace('{' + 'innerOrganizationId' + '}', encodeURIComponent(String(innerOrganizationId)));
|
|
1787
1789
|
let localVarQueryParameters = {};
|
|
1788
1790
|
let localVarHeaderParams = Object.assign({
|
|
1789
1791
|
'User-Agent': 'edgeimpulse-api nodejs'
|
|
@@ -1799,11 +1801,15 @@ class OrganizationsApi {
|
|
|
1799
1801
|
let localVarFormParams = {};
|
|
1800
1802
|
// verify required parameter 'organizationId' is not null or undefined
|
|
1801
1803
|
if (organizationId === null || organizationId === undefined) {
|
|
1802
|
-
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.');
|
|
1803
1805
|
}
|
|
1804
|
-
// verify required parameter '
|
|
1805
|
-
if (
|
|
1806
|
-
throw new Error('Required parameter
|
|
1806
|
+
// verify required parameter 'innerOrganizationId' is not null or undefined
|
|
1807
|
+
if (innerOrganizationId === null || innerOrganizationId === undefined) {
|
|
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.');
|
|
1807
1813
|
}
|
|
1808
1814
|
Object.assign(localVarHeaderParams, options.headers);
|
|
1809
1815
|
Object.assign(localVarHeaderParams, this.opts.extraHeaders);
|
|
@@ -1816,7 +1822,7 @@ class OrganizationsApi {
|
|
|
1816
1822
|
useQuerystring: this._useQuerystring,
|
|
1817
1823
|
agentOptions: { keepAlive: false },
|
|
1818
1824
|
json: true,
|
|
1819
|
-
body: models_1.ObjectSerializer.serialize(
|
|
1825
|
+
body: models_1.ObjectSerializer.serialize(adminAddOrganizationApiKeyRequest, "AdminAddOrganizationApiKeyRequest")
|
|
1820
1826
|
};
|
|
1821
1827
|
let authenticationPromise = Promise.resolve();
|
|
1822
1828
|
authenticationPromise = authenticationPromise.then(() => this.authentications.ApiKeyAuthentication.applyToRequest(localVarRequestOptions));
|
|
@@ -1855,14 +1861,16 @@ class OrganizationsApi {
|
|
|
1855
1861
|
});
|
|
1856
1862
|
}
|
|
1857
1863
|
/**
|
|
1858
|
-
*
|
|
1859
|
-
* @summary
|
|
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
|
|
1860
1866
|
* @param organizationId Organization ID
|
|
1861
|
-
* @param
|
|
1867
|
+
* @param projectId Project ID
|
|
1868
|
+
* @param adminAddProjectApiKeyRequest
|
|
1862
1869
|
*/
|
|
1863
|
-
async
|
|
1864
|
-
const localVarPath = this.basePath + '/api/organizations/{organizationId}/whitelabel/
|
|
1865
|
-
.replace('{' + 'organizationId' + '}', encodeURIComponent(String(organizationId)))
|
|
1870
|
+
async whitelabelAdminAddProjectApiKey(organizationId, projectId, adminAddProjectApiKeyRequest, options = { headers: {} }) {
|
|
1871
|
+
const localVarPath = this.basePath + '/api/organizations/{organizationId}/whitelabel/projects/{projectId}/apiKeys'
|
|
1872
|
+
.replace('{' + 'organizationId' + '}', encodeURIComponent(String(organizationId)))
|
|
1873
|
+
.replace('{' + 'projectId' + '}', encodeURIComponent(String(projectId)));
|
|
1866
1874
|
let localVarQueryParameters = {};
|
|
1867
1875
|
let localVarHeaderParams = Object.assign({
|
|
1868
1876
|
'User-Agent': 'edgeimpulse-api nodejs'
|
|
@@ -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
|
-
// verify required parameter '
|
|
1884
|
-
if (
|
|
1885
|
-
throw new Error('Required parameter
|
|
1891
|
+
// verify required parameter 'projectId' is not null or undefined
|
|
1892
|
+
if (projectId === null || projectId === undefined) {
|
|
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));
|
|
@@ -1917,7 +1929,7 @@ class OrganizationsApi {
|
|
|
1917
1929
|
reject(error);
|
|
1918
1930
|
}
|
|
1919
1931
|
else {
|
|
1920
|
-
body = models_1.ObjectSerializer.deserialize(body, "
|
|
1932
|
+
body = models_1.ObjectSerializer.deserialize(body, "GenericApiResponse");
|
|
1921
1933
|
const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
|
|
1922
1934
|
if (typeof body.success === 'boolean' && !body.success) {
|
|
1923
1935
|
reject(new Error(body.error || errString));
|
|
@@ -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/
|
|
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,13 +2027,16 @@ class OrganizationsApi {
|
|
|
2013
2027
|
});
|
|
2014
2028
|
}
|
|
2015
2029
|
/**
|
|
2016
|
-
* White label admin only API to
|
|
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
|
|
2033
|
+
* @param projectId Project ID
|
|
2034
|
+
* @param adminAddProjectUserRequest
|
|
2019
2035
|
*/
|
|
2020
|
-
async
|
|
2021
|
-
const localVarPath = this.basePath + '/api/organizations/{organizationId}/whitelabel'
|
|
2022
|
-
.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)));
|
|
2023
2040
|
let localVarQueryParameters = {};
|
|
2024
2041
|
let localVarHeaderParams = Object.assign({
|
|
2025
2042
|
'User-Agent': 'edgeimpulse-api nodejs'
|
|
@@ -2035,19 +2052,24 @@ class OrganizationsApi {
|
|
|
2035
2052
|
let localVarFormParams = {};
|
|
2036
2053
|
// verify required parameter 'organizationId' is not null or undefined
|
|
2037
2054
|
if (organizationId === null || organizationId === undefined) {
|
|
2038
|
-
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.');
|
|
2056
|
+
}
|
|
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.');
|
|
2039
2060
|
}
|
|
2040
2061
|
Object.assign(localVarHeaderParams, options.headers);
|
|
2041
2062
|
Object.assign(localVarHeaderParams, this.opts.extraHeaders);
|
|
2042
2063
|
let localVarUseFormData = false;
|
|
2043
2064
|
let localVarRequestOptions = {
|
|
2044
|
-
method: '
|
|
2065
|
+
method: 'POST',
|
|
2045
2066
|
qs: localVarQueryParameters,
|
|
2046
2067
|
headers: localVarHeaderParams,
|
|
2047
2068
|
uri: localVarPath,
|
|
2048
2069
|
useQuerystring: this._useQuerystring,
|
|
2049
2070
|
agentOptions: { keepAlive: false },
|
|
2050
2071
|
json: true,
|
|
2072
|
+
body: models_1.ObjectSerializer.serialize(adminAddProjectUserRequest, "AdminAddProjectUserRequest")
|
|
2051
2073
|
};
|
|
2052
2074
|
let authenticationPromise = Promise.resolve();
|
|
2053
2075
|
authenticationPromise = authenticationPromise.then(() => this.authentications.ApiKeyAuthentication.applyToRequest(localVarRequestOptions));
|
|
@@ -2069,7 +2091,7 @@ class OrganizationsApi {
|
|
|
2069
2091
|
reject(error);
|
|
2070
2092
|
}
|
|
2071
2093
|
else {
|
|
2072
|
-
body = models_1.ObjectSerializer.deserialize(body, "
|
|
2094
|
+
body = models_1.ObjectSerializer.deserialize(body, "GenericApiResponse");
|
|
2073
2095
|
const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
|
|
2074
2096
|
if (typeof body.success === 'boolean' && !body.success) {
|
|
2075
2097
|
reject(new Error(body.error || errString));
|
|
@@ -2086,12 +2108,13 @@ class OrganizationsApi {
|
|
|
2086
2108
|
});
|
|
2087
2109
|
}
|
|
2088
2110
|
/**
|
|
2089
|
-
*
|
|
2090
|
-
* @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
|
|
2091
2113
|
* @param organizationId Organization ID
|
|
2114
|
+
* @param whitelabelAdminCreateOrganizationRequest
|
|
2092
2115
|
*/
|
|
2093
|
-
async
|
|
2094
|
-
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'
|
|
2095
2118
|
.replace('{' + 'organizationId' + '}', encodeURIComponent(String(organizationId)));
|
|
2096
2119
|
let localVarQueryParameters = {};
|
|
2097
2120
|
let localVarHeaderParams = Object.assign({
|
|
@@ -2108,19 +2131,24 @@ class OrganizationsApi {
|
|
|
2108
2131
|
let localVarFormParams = {};
|
|
2109
2132
|
// verify required parameter 'organizationId' is not null or undefined
|
|
2110
2133
|
if (organizationId === null || organizationId === undefined) {
|
|
2111
|
-
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.');
|
|
2112
2139
|
}
|
|
2113
2140
|
Object.assign(localVarHeaderParams, options.headers);
|
|
2114
2141
|
Object.assign(localVarHeaderParams, this.opts.extraHeaders);
|
|
2115
2142
|
let localVarUseFormData = false;
|
|
2116
2143
|
let localVarRequestOptions = {
|
|
2117
|
-
method: '
|
|
2144
|
+
method: 'POST',
|
|
2118
2145
|
qs: localVarQueryParameters,
|
|
2119
2146
|
headers: localVarHeaderParams,
|
|
2120
2147
|
uri: localVarPath,
|
|
2121
2148
|
useQuerystring: this._useQuerystring,
|
|
2122
2149
|
agentOptions: { keepAlive: false },
|
|
2123
2150
|
json: true,
|
|
2151
|
+
body: models_1.ObjectSerializer.serialize(whitelabelAdminCreateOrganizationRequest, "WhitelabelAdminCreateOrganizationRequest")
|
|
2124
2152
|
};
|
|
2125
2153
|
let authenticationPromise = Promise.resolve();
|
|
2126
2154
|
authenticationPromise = authenticationPromise.then(() => this.authentications.ApiKeyAuthentication.applyToRequest(localVarRequestOptions));
|
|
@@ -2142,7 +2170,7 @@ class OrganizationsApi {
|
|
|
2142
2170
|
reject(error);
|
|
2143
2171
|
}
|
|
2144
2172
|
else {
|
|
2145
|
-
body = models_1.ObjectSerializer.deserialize(body, "
|
|
2173
|
+
body = models_1.ObjectSerializer.deserialize(body, "CreateOrganizationResponse");
|
|
2146
2174
|
const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
|
|
2147
2175
|
if (typeof body.success === 'boolean' && !body.success) {
|
|
2148
2176
|
reject(new Error(body.error || errString));
|
|
@@ -2159,13 +2187,14 @@ class OrganizationsApi {
|
|
|
2159
2187
|
});
|
|
2160
2188
|
}
|
|
2161
2189
|
/**
|
|
2162
|
-
* White label admin only API to
|
|
2163
|
-
* @summary
|
|
2190
|
+
* White label admin only API to create a new project for an organization.
|
|
2191
|
+
* @summary Create a new organization project
|
|
2164
2192
|
* @param organizationId Organization ID
|
|
2165
2193
|
* @param innerOrganizationId Organization ID within the context of a white label
|
|
2194
|
+
* @param adminCreateProjectRequest
|
|
2166
2195
|
*/
|
|
2167
|
-
async
|
|
2168
|
-
const localVarPath = this.basePath + '/api/organizations/{organizationId}/whitelabel/organizations/{innerOrganizationId}'
|
|
2196
|
+
async whitelabelAdminCreateOrganizationProject(organizationId, innerOrganizationId, adminCreateProjectRequest, options = { headers: {} }) {
|
|
2197
|
+
const localVarPath = this.basePath + '/api/organizations/{organizationId}/whitelabel/organizations/{innerOrganizationId}/projects'
|
|
2169
2198
|
.replace('{' + 'organizationId' + '}', encodeURIComponent(String(organizationId)))
|
|
2170
2199
|
.replace('{' + 'innerOrganizationId' + '}', encodeURIComponent(String(innerOrganizationId)));
|
|
2171
2200
|
let localVarQueryParameters = {};
|
|
@@ -2183,23 +2212,28 @@ class OrganizationsApi {
|
|
|
2183
2212
|
let localVarFormParams = {};
|
|
2184
2213
|
// verify required parameter 'organizationId' is not null or undefined
|
|
2185
2214
|
if (organizationId === null || organizationId === undefined) {
|
|
2186
|
-
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.');
|
|
2187
2216
|
}
|
|
2188
2217
|
// verify required parameter 'innerOrganizationId' is not null or undefined
|
|
2189
2218
|
if (innerOrganizationId === null || innerOrganizationId === undefined) {
|
|
2190
|
-
throw new Error('Required parameter innerOrganizationId was null or undefined when calling
|
|
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,18 +2272,17 @@ 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
|
-
* @param
|
|
2245
|
-
* @param
|
|
2246
|
-
* @param
|
|
2247
|
-
* @param offset Offset in results, can be used in conjunction with LimitResultsParameter to implement paging.
|
|
2248
|
-
* @param search Search query
|
|
2278
|
+
* @param innerOrganizationId Organization ID within the context of a white label
|
|
2279
|
+
* @param startDate Start date
|
|
2280
|
+
* @param endDate End date
|
|
2249
2281
|
*/
|
|
2250
|
-
async
|
|
2251
|
-
const localVarPath = this.basePath + '/api/organizations/{organizationId}/whitelabel/organizations'
|
|
2252
|
-
.replace('{' + 'organizationId' + '}', encodeURIComponent(String(organizationId)))
|
|
2282
|
+
async whitelabelAdminCreateOrganizationUsageReport(organizationId, innerOrganizationId, queryParams, options = { headers: {} }) {
|
|
2283
|
+
const localVarPath = this.basePath + '/api/organizations/{organizationId}/whitelabel/organizations/{innerOrganizationId}/usage/reports'
|
|
2284
|
+
.replace('{' + 'organizationId' + '}', encodeURIComponent(String(organizationId)))
|
|
2285
|
+
.replace('{' + 'innerOrganizationId' + '}', encodeURIComponent(String(innerOrganizationId)));
|
|
2253
2286
|
let localVarQueryParameters = {};
|
|
2254
2287
|
let localVarHeaderParams = Object.assign({
|
|
2255
2288
|
'User-Agent': 'edgeimpulse-api nodejs'
|
|
@@ -2265,28 +2298,31 @@ class OrganizationsApi {
|
|
|
2265
2298
|
let localVarFormParams = {};
|
|
2266
2299
|
// verify required parameter 'organizationId' is not null or undefined
|
|
2267
2300
|
if (organizationId === null || organizationId === undefined) {
|
|
2268
|
-
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.');
|
|
2269
2302
|
}
|
|
2270
|
-
|
|
2271
|
-
|
|
2303
|
+
// verify required parameter 'innerOrganizationId' is not null or undefined
|
|
2304
|
+
if (innerOrganizationId === null || innerOrganizationId === undefined) {
|
|
2305
|
+
throw new Error('Required parameter innerOrganizationId was null or undefined when calling whitelabelAdminCreateOrganizationUsageReport.');
|
|
2272
2306
|
}
|
|
2273
|
-
|
|
2274
|
-
|
|
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.');
|
|
2275
2310
|
}
|
|
2276
|
-
|
|
2277
|
-
|
|
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.');
|
|
2278
2314
|
}
|
|
2279
|
-
if (queryParams.
|
|
2280
|
-
localVarQueryParameters['
|
|
2315
|
+
if (queryParams.startDate !== undefined) {
|
|
2316
|
+
localVarQueryParameters['startDate'] = models_1.ObjectSerializer.serialize(queryParams.startDate, "Date");
|
|
2281
2317
|
}
|
|
2282
|
-
if (queryParams.
|
|
2283
|
-
localVarQueryParameters['
|
|
2318
|
+
if (queryParams.endDate !== undefined) {
|
|
2319
|
+
localVarQueryParameters['endDate'] = models_1.ObjectSerializer.serialize(queryParams.endDate, "Date");
|
|
2284
2320
|
}
|
|
2285
2321
|
Object.assign(localVarHeaderParams, options.headers);
|
|
2286
2322
|
Object.assign(localVarHeaderParams, this.opts.extraHeaders);
|
|
2287
2323
|
let localVarUseFormData = false;
|
|
2288
2324
|
let localVarRequestOptions = {
|
|
2289
|
-
method: '
|
|
2325
|
+
method: 'POST',
|
|
2290
2326
|
qs: localVarQueryParameters,
|
|
2291
2327
|
headers: localVarHeaderParams,
|
|
2292
2328
|
uri: localVarPath,
|
|
@@ -2314,7 +2350,7 @@ class OrganizationsApi {
|
|
|
2314
2350
|
reject(error);
|
|
2315
2351
|
}
|
|
2316
2352
|
else {
|
|
2317
|
-
body = models_1.ObjectSerializer.deserialize(body, "
|
|
2353
|
+
body = models_1.ObjectSerializer.deserialize(body, "StartJobResponse");
|
|
2318
2354
|
const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
|
|
2319
2355
|
if (typeof body.success === 'boolean' && !body.success) {
|
|
2320
2356
|
reject(new Error(body.error || errString));
|
|
@@ -2331,15 +2367,14 @@ class OrganizationsApi {
|
|
|
2331
2367
|
});
|
|
2332
2368
|
}
|
|
2333
2369
|
/**
|
|
2334
|
-
*
|
|
2335
|
-
* @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.
|
|
2336
2372
|
* @param organizationId Organization ID
|
|
2337
|
-
* @param
|
|
2373
|
+
* @param adminCreateProjectRequest
|
|
2338
2374
|
*/
|
|
2339
|
-
async
|
|
2340
|
-
const localVarPath = this.basePath + '/api/organizations/{organizationId}/whitelabel/projects
|
|
2341
|
-
.replace('{' + 'organizationId' + '}', encodeURIComponent(String(organizationId)))
|
|
2342
|
-
.replace('{' + 'projectId' + '}', encodeURIComponent(String(projectId)));
|
|
2375
|
+
async whitelabelAdminCreateProject(organizationId, adminCreateProjectRequest, options = { headers: {} }) {
|
|
2376
|
+
const localVarPath = this.basePath + '/api/organizations/{organizationId}/whitelabel/projects'
|
|
2377
|
+
.replace('{' + 'organizationId' + '}', encodeURIComponent(String(organizationId)));
|
|
2343
2378
|
let localVarQueryParameters = {};
|
|
2344
2379
|
let localVarHeaderParams = Object.assign({
|
|
2345
2380
|
'User-Agent': 'edgeimpulse-api nodejs'
|
|
@@ -2355,23 +2390,24 @@ class OrganizationsApi {
|
|
|
2355
2390
|
let localVarFormParams = {};
|
|
2356
2391
|
// verify required parameter 'organizationId' is not null or undefined
|
|
2357
2392
|
if (organizationId === null || organizationId === undefined) {
|
|
2358
|
-
throw new Error('Required parameter organizationId was null or undefined when calling
|
|
2393
|
+
throw new Error('Required parameter organizationId was null or undefined when calling whitelabelAdminCreateProject.');
|
|
2359
2394
|
}
|
|
2360
|
-
// verify required parameter '
|
|
2361
|
-
if (
|
|
2362
|
-
throw new Error('Required parameter
|
|
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,18 +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
|
|
2417
|
-
* @param sort Fields and order to sort query by
|
|
2418
|
-
* @param limit Maximum number of results
|
|
2419
|
-
* @param offset Offset in results, can be used in conjunction with LimitResultsParameter to implement paging.
|
|
2420
|
-
* @param search Search query
|
|
2452
|
+
* @param innerOrganizationId Organization ID within the context of a white label
|
|
2421
2453
|
*/
|
|
2422
|
-
async
|
|
2423
|
-
const localVarPath = this.basePath + '/api/organizations/{organizationId}/whitelabel/
|
|
2424
|
-
.replace('{' + 'organizationId' + '}', encodeURIComponent(String(organizationId)))
|
|
2454
|
+
async whitelabelAdminDeleteOrganization(organizationId, innerOrganizationId, options = { headers: {} }) {
|
|
2455
|
+
const localVarPath = this.basePath + '/api/organizations/{organizationId}/whitelabel/organizations/{innerOrganizationId}'
|
|
2456
|
+
.replace('{' + 'organizationId' + '}', encodeURIComponent(String(organizationId)))
|
|
2457
|
+
.replace('{' + 'innerOrganizationId' + '}', encodeURIComponent(String(innerOrganizationId)));
|
|
2425
2458
|
let localVarQueryParameters = {};
|
|
2426
2459
|
let localVarHeaderParams = Object.assign({
|
|
2427
2460
|
'User-Agent': 'edgeimpulse-api nodejs'
|
|
@@ -2437,28 +2470,17 @@ class OrganizationsApi {
|
|
|
2437
2470
|
let localVarFormParams = {};
|
|
2438
2471
|
// verify required parameter 'organizationId' is not null or undefined
|
|
2439
2472
|
if (organizationId === null || organizationId === undefined) {
|
|
2440
|
-
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.');
|
|
2441
2474
|
}
|
|
2442
|
-
|
|
2443
|
-
|
|
2444
|
-
|
|
2445
|
-
if (queryParams.sort !== undefined) {
|
|
2446
|
-
localVarQueryParameters['sort'] = models_1.ObjectSerializer.serialize(queryParams.sort, "string");
|
|
2447
|
-
}
|
|
2448
|
-
if (queryParams.limit !== undefined) {
|
|
2449
|
-
localVarQueryParameters['limit'] = models_1.ObjectSerializer.serialize(queryParams.limit, "number");
|
|
2450
|
-
}
|
|
2451
|
-
if (queryParams.offset !== undefined) {
|
|
2452
|
-
localVarQueryParameters['offset'] = models_1.ObjectSerializer.serialize(queryParams.offset, "number");
|
|
2453
|
-
}
|
|
2454
|
-
if (queryParams.search !== undefined) {
|
|
2455
|
-
localVarQueryParameters['search'] = models_1.ObjectSerializer.serialize(queryParams.search, "string");
|
|
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.');
|
|
2456
2478
|
}
|
|
2457
2479
|
Object.assign(localVarHeaderParams, options.headers);
|
|
2458
2480
|
Object.assign(localVarHeaderParams, this.opts.extraHeaders);
|
|
2459
2481
|
let localVarUseFormData = false;
|
|
2460
2482
|
let localVarRequestOptions = {
|
|
2461
|
-
method: '
|
|
2483
|
+
method: 'DELETE',
|
|
2462
2484
|
qs: localVarQueryParameters,
|
|
2463
2485
|
headers: localVarHeaderParams,
|
|
2464
2486
|
uri: localVarPath,
|
|
@@ -2486,7 +2508,7 @@ class OrganizationsApi {
|
|
|
2486
2508
|
reject(error);
|
|
2487
2509
|
}
|
|
2488
2510
|
else {
|
|
2489
|
-
body = models_1.ObjectSerializer.deserialize(body, "
|
|
2511
|
+
body = models_1.ObjectSerializer.deserialize(body, "GenericApiResponse");
|
|
2490
2512
|
const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
|
|
2491
2513
|
if (typeof body.success === 'boolean' && !body.success) {
|
|
2492
2514
|
reject(new Error(body.error || errString));
|
|
@@ -2503,15 +2525,17 @@ class OrganizationsApi {
|
|
|
2503
2525
|
});
|
|
2504
2526
|
}
|
|
2505
2527
|
/**
|
|
2506
|
-
*
|
|
2507
|
-
* @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
|
|
2508
2530
|
* @param organizationId Organization ID
|
|
2509
|
-
* @param
|
|
2531
|
+
* @param innerOrganizationId Organization ID within the context of a white label
|
|
2532
|
+
* @param usageReportId Usage report ID
|
|
2510
2533
|
*/
|
|
2511
|
-
async
|
|
2512
|
-
const localVarPath = this.basePath + '/api/organizations/{organizationId}/whitelabel/
|
|
2534
|
+
async whitelabelAdminDeleteOrganizationUsageReport(organizationId, innerOrganizationId, usageReportId, options = { headers: {} }) {
|
|
2535
|
+
const localVarPath = this.basePath + '/api/organizations/{organizationId}/whitelabel/organizations/{innerOrganizationId}/usage/reports/{usageReportId}'
|
|
2513
2536
|
.replace('{' + 'organizationId' + '}', encodeURIComponent(String(organizationId)))
|
|
2514
|
-
.replace('{' + '
|
|
2537
|
+
.replace('{' + 'innerOrganizationId' + '}', encodeURIComponent(String(innerOrganizationId)))
|
|
2538
|
+
.replace('{' + 'usageReportId' + '}', encodeURIComponent(String(usageReportId)));
|
|
2515
2539
|
let localVarQueryParameters = {};
|
|
2516
2540
|
let localVarHeaderParams = Object.assign({
|
|
2517
2541
|
'User-Agent': 'edgeimpulse-api nodejs'
|
|
@@ -2527,17 +2551,21 @@ class OrganizationsApi {
|
|
|
2527
2551
|
let localVarFormParams = {};
|
|
2528
2552
|
// verify required parameter 'organizationId' is not null or undefined
|
|
2529
2553
|
if (organizationId === null || organizationId === undefined) {
|
|
2530
|
-
throw new Error('Required parameter organizationId was null or undefined when calling
|
|
2554
|
+
throw new Error('Required parameter organizationId was null or undefined when calling whitelabelAdminDeleteOrganizationUsageReport.');
|
|
2531
2555
|
}
|
|
2532
|
-
// verify required parameter '
|
|
2533
|
-
if (
|
|
2534
|
-
throw new Error('Required parameter
|
|
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.');
|
|
2559
|
+
}
|
|
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,20 +2689,1364 @@ 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
|
|
2668
|
-
* @param
|
|
2669
|
-
|
|
2670
|
-
|
|
2695
|
+
* @param innerOrganizationId Organization ID within the context of a white label
|
|
2696
|
+
* @param usageReportId Usage report ID
|
|
2697
|
+
*/
|
|
2698
|
+
async whitelabelAdminDownloadOrganizationUsageReport(organizationId, innerOrganizationId, usageReportId, options = { headers: {} }) {
|
|
2699
|
+
const localVarPath = this.basePath + '/api/organizations/{organizationId}/whitelabel/organizations/{innerOrganizationId}/usage/reports/{usageReportId}/download'
|
|
2700
|
+
.replace('{' + 'organizationId' + '}', encodeURIComponent(String(organizationId)))
|
|
2701
|
+
.replace('{' + 'innerOrganizationId' + '}', encodeURIComponent(String(innerOrganizationId)))
|
|
2702
|
+
.replace('{' + 'usageReportId' + '}', encodeURIComponent(String(usageReportId)));
|
|
2703
|
+
let localVarQueryParameters = {};
|
|
2704
|
+
let localVarHeaderParams = Object.assign({
|
|
2705
|
+
'User-Agent': 'edgeimpulse-api nodejs'
|
|
2706
|
+
}, this.defaultHeaders);
|
|
2707
|
+
let localVarFormParams = {};
|
|
2708
|
+
// verify required parameter 'organizationId' is not null or undefined
|
|
2709
|
+
if (organizationId === null || organizationId === undefined) {
|
|
2710
|
+
throw new Error('Required parameter organizationId was null or undefined when calling whitelabelAdminDownloadOrganizationUsageReport.');
|
|
2711
|
+
}
|
|
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.');
|
|
2719
|
+
}
|
|
2720
|
+
Object.assign(localVarHeaderParams, options.headers);
|
|
2721
|
+
Object.assign(localVarHeaderParams, this.opts.extraHeaders);
|
|
2722
|
+
let localVarUseFormData = false;
|
|
2723
|
+
let localVarRequestOptions = {
|
|
2724
|
+
method: 'GET',
|
|
2725
|
+
qs: localVarQueryParameters,
|
|
2726
|
+
headers: localVarHeaderParams,
|
|
2727
|
+
uri: localVarPath,
|
|
2728
|
+
useQuerystring: this._useQuerystring,
|
|
2729
|
+
agentOptions: { keepAlive: false },
|
|
2730
|
+
json: true,
|
|
2731
|
+
};
|
|
2732
|
+
let authenticationPromise = Promise.resolve();
|
|
2733
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.ApiKeyAuthentication.applyToRequest(localVarRequestOptions));
|
|
2734
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.JWTAuthentication.applyToRequest(localVarRequestOptions));
|
|
2735
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.JWTHttpHeaderAuthentication.applyToRequest(localVarRequestOptions));
|
|
2736
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
|
|
2737
|
+
return authenticationPromise.then(() => {
|
|
2738
|
+
if (Object.keys(localVarFormParams).length) {
|
|
2739
|
+
if (localVarUseFormData) {
|
|
2740
|
+
localVarRequestOptions.formData = localVarFormParams;
|
|
2741
|
+
}
|
|
2742
|
+
else {
|
|
2743
|
+
localVarRequestOptions.form = localVarFormParams;
|
|
2744
|
+
}
|
|
2745
|
+
}
|
|
2746
|
+
return new Promise((resolve, reject) => {
|
|
2747
|
+
localVarRequest(localVarRequestOptions, (error, response, body) => {
|
|
2748
|
+
if (error) {
|
|
2749
|
+
reject(error);
|
|
2750
|
+
}
|
|
2751
|
+
else {
|
|
2752
|
+
const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
|
|
2753
|
+
if (typeof body.success === 'boolean' && !body.success) {
|
|
2754
|
+
reject(new Error(body.error || errString));
|
|
2755
|
+
}
|
|
2756
|
+
else if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
2757
|
+
resolve(body);
|
|
2758
|
+
}
|
|
2759
|
+
else {
|
|
2760
|
+
reject(errString);
|
|
2761
|
+
}
|
|
2762
|
+
}
|
|
2763
|
+
});
|
|
2764
|
+
});
|
|
2765
|
+
});
|
|
2766
|
+
}
|
|
2767
|
+
/**
|
|
2768
|
+
* White label admin only API to get the white label information.
|
|
2769
|
+
* @summary Get white label information
|
|
2770
|
+
* @param organizationId Organization ID
|
|
2771
|
+
*/
|
|
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
|
|
2671
3698
|
* @param limit Maximum number of results
|
|
2672
3699
|
* @param offset Offset in results, can be used in conjunction with LimitResultsParameter to implement paging.
|
|
2673
3700
|
* @param search Search query
|
|
2674
3701
|
*/
|
|
2675
|
-
async whitelabelAdminGetUsers(organizationId, queryParams, options = { headers: {} }) {
|
|
2676
|
-
const localVarPath = this.basePath + '/api/organizations/{organizationId}/whitelabel/users'
|
|
2677
|
-
.replace('{' + 'organizationId' + '}', encodeURIComponent(String(organizationId)));
|
|
3702
|
+
async whitelabelAdminGetUsers(organizationId, queryParams, options = { headers: {} }) {
|
|
3703
|
+
const localVarPath = this.basePath + '/api/organizations/{organizationId}/whitelabel/users'
|
|
3704
|
+
.replace('{' + 'organizationId' + '}', encodeURIComponent(String(organizationId)));
|
|
3705
|
+
let localVarQueryParameters = {};
|
|
3706
|
+
let localVarHeaderParams = Object.assign({
|
|
3707
|
+
'User-Agent': 'edgeimpulse-api nodejs'
|
|
3708
|
+
}, this.defaultHeaders);
|
|
3709
|
+
const produces = ['application/json'];
|
|
3710
|
+
// give precedence to 'application/json'
|
|
3711
|
+
if (produces.indexOf('application/json') >= 0) {
|
|
3712
|
+
localVarHeaderParams.Accept = 'application/json';
|
|
3713
|
+
}
|
|
3714
|
+
else {
|
|
3715
|
+
localVarHeaderParams.Accept = produces.join(',');
|
|
3716
|
+
}
|
|
3717
|
+
let localVarFormParams = {};
|
|
3718
|
+
// verify required parameter 'organizationId' is not null or undefined
|
|
3719
|
+
if (organizationId === null || organizationId === undefined) {
|
|
3720
|
+
throw new Error('Required parameter organizationId was null or undefined when calling whitelabelAdminGetUsers.');
|
|
3721
|
+
}
|
|
3722
|
+
if (queryParams.active !== undefined) {
|
|
3723
|
+
localVarQueryParameters['active'] = models_1.ObjectSerializer.serialize(queryParams.active, "number");
|
|
3724
|
+
}
|
|
3725
|
+
if (queryParams.tier !== undefined) {
|
|
3726
|
+
localVarQueryParameters['tier'] = models_1.ObjectSerializer.serialize(queryParams.tier, "'free' | 'pro' | 'enterprise'");
|
|
3727
|
+
}
|
|
3728
|
+
if (queryParams.fields !== undefined) {
|
|
3729
|
+
localVarQueryParameters['fields'] = models_1.ObjectSerializer.serialize(queryParams.fields, "string");
|
|
3730
|
+
}
|
|
3731
|
+
if (queryParams.sort !== undefined) {
|
|
3732
|
+
localVarQueryParameters['sort'] = models_1.ObjectSerializer.serialize(queryParams.sort, "string");
|
|
3733
|
+
}
|
|
3734
|
+
if (queryParams.limit !== undefined) {
|
|
3735
|
+
localVarQueryParameters['limit'] = models_1.ObjectSerializer.serialize(queryParams.limit, "number");
|
|
3736
|
+
}
|
|
3737
|
+
if (queryParams.offset !== undefined) {
|
|
3738
|
+
localVarQueryParameters['offset'] = models_1.ObjectSerializer.serialize(queryParams.offset, "number");
|
|
3739
|
+
}
|
|
3740
|
+
if (queryParams.search !== undefined) {
|
|
3741
|
+
localVarQueryParameters['search'] = models_1.ObjectSerializer.serialize(queryParams.search, "string");
|
|
3742
|
+
}
|
|
3743
|
+
Object.assign(localVarHeaderParams, options.headers);
|
|
3744
|
+
Object.assign(localVarHeaderParams, this.opts.extraHeaders);
|
|
3745
|
+
let localVarUseFormData = false;
|
|
3746
|
+
let localVarRequestOptions = {
|
|
3747
|
+
method: 'GET',
|
|
3748
|
+
qs: localVarQueryParameters,
|
|
3749
|
+
headers: localVarHeaderParams,
|
|
3750
|
+
uri: localVarPath,
|
|
3751
|
+
useQuerystring: this._useQuerystring,
|
|
3752
|
+
agentOptions: { keepAlive: false },
|
|
3753
|
+
json: true,
|
|
3754
|
+
};
|
|
3755
|
+
let authenticationPromise = Promise.resolve();
|
|
3756
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.ApiKeyAuthentication.applyToRequest(localVarRequestOptions));
|
|
3757
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.JWTAuthentication.applyToRequest(localVarRequestOptions));
|
|
3758
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.JWTHttpHeaderAuthentication.applyToRequest(localVarRequestOptions));
|
|
3759
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
|
|
3760
|
+
return authenticationPromise.then(() => {
|
|
3761
|
+
if (Object.keys(localVarFormParams).length) {
|
|
3762
|
+
if (localVarUseFormData) {
|
|
3763
|
+
localVarRequestOptions.formData = localVarFormParams;
|
|
3764
|
+
}
|
|
3765
|
+
else {
|
|
3766
|
+
localVarRequestOptions.form = localVarFormParams;
|
|
3767
|
+
}
|
|
3768
|
+
}
|
|
3769
|
+
return new Promise((resolve, reject) => {
|
|
3770
|
+
localVarRequest(localVarRequestOptions, (error, response, body) => {
|
|
3771
|
+
if (error) {
|
|
3772
|
+
reject(error);
|
|
3773
|
+
}
|
|
3774
|
+
else {
|
|
3775
|
+
body = models_1.ObjectSerializer.deserialize(body, "AdminGetUsersResponse");
|
|
3776
|
+
const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
|
|
3777
|
+
if (typeof body.success === 'boolean' && !body.success) {
|
|
3778
|
+
reject(new Error(body.error || errString));
|
|
3779
|
+
}
|
|
3780
|
+
else if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
3781
|
+
resolve(body);
|
|
3782
|
+
}
|
|
3783
|
+
else {
|
|
3784
|
+
reject(errString);
|
|
3785
|
+
}
|
|
3786
|
+
}
|
|
3787
|
+
});
|
|
3788
|
+
});
|
|
3789
|
+
});
|
|
3790
|
+
}
|
|
3791
|
+
/**
|
|
3792
|
+
* White label admin only API to remove a development board.
|
|
3793
|
+
* @summary Remove a development board from a whitelabel
|
|
3794
|
+
* @param organizationId Organization ID
|
|
3795
|
+
* @param developmentBoardId Development board ID.
|
|
3796
|
+
*/
|
|
3797
|
+
async whitelabelAdminRemoveDevelopmentBoard(organizationId, developmentBoardId, options = { headers: {} }) {
|
|
3798
|
+
const localVarPath = this.basePath + '/api/organizations/{organizationId}/whitelabel/development-boards/{developmentBoardId}'
|
|
3799
|
+
.replace('{' + 'organizationId' + '}', encodeURIComponent(String(organizationId)))
|
|
3800
|
+
.replace('{' + 'developmentBoardId' + '}', encodeURIComponent(String(developmentBoardId)));
|
|
3801
|
+
let localVarQueryParameters = {};
|
|
3802
|
+
let localVarHeaderParams = Object.assign({
|
|
3803
|
+
'User-Agent': 'edgeimpulse-api nodejs'
|
|
3804
|
+
}, this.defaultHeaders);
|
|
3805
|
+
const produces = ['application/json'];
|
|
3806
|
+
// give precedence to 'application/json'
|
|
3807
|
+
if (produces.indexOf('application/json') >= 0) {
|
|
3808
|
+
localVarHeaderParams.Accept = 'application/json';
|
|
3809
|
+
}
|
|
3810
|
+
else {
|
|
3811
|
+
localVarHeaderParams.Accept = produces.join(',');
|
|
3812
|
+
}
|
|
3813
|
+
let localVarFormParams = {};
|
|
3814
|
+
// verify required parameter 'organizationId' is not null or undefined
|
|
3815
|
+
if (organizationId === null || organizationId === undefined) {
|
|
3816
|
+
throw new Error('Required parameter organizationId was null or undefined when calling whitelabelAdminRemoveDevelopmentBoard.');
|
|
3817
|
+
}
|
|
3818
|
+
// verify required parameter 'developmentBoardId' is not null or undefined
|
|
3819
|
+
if (developmentBoardId === null || developmentBoardId === undefined) {
|
|
3820
|
+
throw new Error('Required parameter developmentBoardId was null or undefined when calling whitelabelAdminRemoveDevelopmentBoard.');
|
|
3821
|
+
}
|
|
3822
|
+
Object.assign(localVarHeaderParams, options.headers);
|
|
3823
|
+
Object.assign(localVarHeaderParams, this.opts.extraHeaders);
|
|
3824
|
+
let localVarUseFormData = false;
|
|
3825
|
+
let localVarRequestOptions = {
|
|
3826
|
+
method: 'DELETE',
|
|
3827
|
+
qs: localVarQueryParameters,
|
|
3828
|
+
headers: localVarHeaderParams,
|
|
3829
|
+
uri: localVarPath,
|
|
3830
|
+
useQuerystring: this._useQuerystring,
|
|
3831
|
+
agentOptions: { keepAlive: false },
|
|
3832
|
+
json: true,
|
|
3833
|
+
};
|
|
3834
|
+
let authenticationPromise = Promise.resolve();
|
|
3835
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.ApiKeyAuthentication.applyToRequest(localVarRequestOptions));
|
|
3836
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.JWTAuthentication.applyToRequest(localVarRequestOptions));
|
|
3837
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.JWTHttpHeaderAuthentication.applyToRequest(localVarRequestOptions));
|
|
3838
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
|
|
3839
|
+
return authenticationPromise.then(() => {
|
|
3840
|
+
if (Object.keys(localVarFormParams).length) {
|
|
3841
|
+
if (localVarUseFormData) {
|
|
3842
|
+
localVarRequestOptions.formData = localVarFormParams;
|
|
3843
|
+
}
|
|
3844
|
+
else {
|
|
3845
|
+
localVarRequestOptions.form = localVarFormParams;
|
|
3846
|
+
}
|
|
3847
|
+
}
|
|
3848
|
+
return new Promise((resolve, reject) => {
|
|
3849
|
+
localVarRequest(localVarRequestOptions, (error, response, body) => {
|
|
3850
|
+
if (error) {
|
|
3851
|
+
reject(error);
|
|
3852
|
+
}
|
|
3853
|
+
else {
|
|
3854
|
+
body = models_1.ObjectSerializer.deserialize(body, "GenericApiResponse");
|
|
3855
|
+
const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
|
|
3856
|
+
if (typeof body.success === 'boolean' && !body.success) {
|
|
3857
|
+
reject(new Error(body.error || errString));
|
|
3858
|
+
}
|
|
3859
|
+
else if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
3860
|
+
resolve(body);
|
|
3861
|
+
}
|
|
3862
|
+
else {
|
|
3863
|
+
reject(errString);
|
|
3864
|
+
}
|
|
3865
|
+
}
|
|
3866
|
+
});
|
|
3867
|
+
});
|
|
3868
|
+
});
|
|
3869
|
+
}
|
|
3870
|
+
/**
|
|
3871
|
+
* White label admin only API to remove a user from an organization.
|
|
3872
|
+
* @summary Remove user from an organization
|
|
3873
|
+
* @param organizationId Organization ID
|
|
3874
|
+
* @param innerOrganizationId Organization ID within the context of a white label
|
|
3875
|
+
* @param userId User ID
|
|
3876
|
+
*/
|
|
3877
|
+
async whitelabelAdminRemoveUserFromOrganization(organizationId, innerOrganizationId, userId, options = { headers: {} }) {
|
|
3878
|
+
const localVarPath = this.basePath + '/api/organizations/{organizationId}/whitelabel/organizations/{innerOrganizationId}/members/{userId}'
|
|
3879
|
+
.replace('{' + 'organizationId' + '}', encodeURIComponent(String(organizationId)))
|
|
3880
|
+
.replace('{' + 'innerOrganizationId' + '}', encodeURIComponent(String(innerOrganizationId)))
|
|
3881
|
+
.replace('{' + 'userId' + '}', encodeURIComponent(String(userId)));
|
|
3882
|
+
let localVarQueryParameters = {};
|
|
3883
|
+
let localVarHeaderParams = Object.assign({
|
|
3884
|
+
'User-Agent': 'edgeimpulse-api nodejs'
|
|
3885
|
+
}, this.defaultHeaders);
|
|
3886
|
+
const produces = ['application/json'];
|
|
3887
|
+
// give precedence to 'application/json'
|
|
3888
|
+
if (produces.indexOf('application/json') >= 0) {
|
|
3889
|
+
localVarHeaderParams.Accept = 'application/json';
|
|
3890
|
+
}
|
|
3891
|
+
else {
|
|
3892
|
+
localVarHeaderParams.Accept = produces.join(',');
|
|
3893
|
+
}
|
|
3894
|
+
let localVarFormParams = {};
|
|
3895
|
+
// verify required parameter 'organizationId' is not null or undefined
|
|
3896
|
+
if (organizationId === null || organizationId === undefined) {
|
|
3897
|
+
throw new Error('Required parameter organizationId was null or undefined when calling whitelabelAdminRemoveUserFromOrganization.');
|
|
3898
|
+
}
|
|
3899
|
+
// verify required parameter 'innerOrganizationId' is not null or undefined
|
|
3900
|
+
if (innerOrganizationId === null || innerOrganizationId === undefined) {
|
|
3901
|
+
throw new Error('Required parameter innerOrganizationId was null or undefined when calling whitelabelAdminRemoveUserFromOrganization.');
|
|
3902
|
+
}
|
|
3903
|
+
// verify required parameter 'userId' is not null or undefined
|
|
3904
|
+
if (userId === null || userId === undefined) {
|
|
3905
|
+
throw new Error('Required parameter userId was null or undefined when calling whitelabelAdminRemoveUserFromOrganization.');
|
|
3906
|
+
}
|
|
3907
|
+
Object.assign(localVarHeaderParams, options.headers);
|
|
3908
|
+
Object.assign(localVarHeaderParams, this.opts.extraHeaders);
|
|
3909
|
+
let localVarUseFormData = false;
|
|
3910
|
+
let localVarRequestOptions = {
|
|
3911
|
+
method: 'DELETE',
|
|
3912
|
+
qs: localVarQueryParameters,
|
|
3913
|
+
headers: localVarHeaderParams,
|
|
3914
|
+
uri: localVarPath,
|
|
3915
|
+
useQuerystring: this._useQuerystring,
|
|
3916
|
+
agentOptions: { keepAlive: false },
|
|
3917
|
+
json: true,
|
|
3918
|
+
};
|
|
3919
|
+
let authenticationPromise = Promise.resolve();
|
|
3920
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.ApiKeyAuthentication.applyToRequest(localVarRequestOptions));
|
|
3921
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.JWTAuthentication.applyToRequest(localVarRequestOptions));
|
|
3922
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.JWTHttpHeaderAuthentication.applyToRequest(localVarRequestOptions));
|
|
3923
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
|
|
3924
|
+
return authenticationPromise.then(() => {
|
|
3925
|
+
if (Object.keys(localVarFormParams).length) {
|
|
3926
|
+
if (localVarUseFormData) {
|
|
3927
|
+
localVarRequestOptions.formData = localVarFormParams;
|
|
3928
|
+
}
|
|
3929
|
+
else {
|
|
3930
|
+
localVarRequestOptions.form = localVarFormParams;
|
|
3931
|
+
}
|
|
3932
|
+
}
|
|
3933
|
+
return new Promise((resolve, reject) => {
|
|
3934
|
+
localVarRequest(localVarRequestOptions, (error, response, body) => {
|
|
3935
|
+
if (error) {
|
|
3936
|
+
reject(error);
|
|
3937
|
+
}
|
|
3938
|
+
else {
|
|
3939
|
+
body = models_1.ObjectSerializer.deserialize(body, "GenericApiResponse");
|
|
3940
|
+
const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
|
|
3941
|
+
if (typeof body.success === 'boolean' && !body.success) {
|
|
3942
|
+
reject(new Error(body.error || errString));
|
|
3943
|
+
}
|
|
3944
|
+
else if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
3945
|
+
resolve(body);
|
|
3946
|
+
}
|
|
3947
|
+
else {
|
|
3948
|
+
reject(errString);
|
|
3949
|
+
}
|
|
3950
|
+
}
|
|
3951
|
+
});
|
|
3952
|
+
});
|
|
3953
|
+
});
|
|
3954
|
+
}
|
|
3955
|
+
/**
|
|
3956
|
+
* White label admin only API to remove a user from a project.
|
|
3957
|
+
* @summary Remove user from a project
|
|
3958
|
+
* @param organizationId Organization ID
|
|
3959
|
+
* @param projectId Project ID
|
|
3960
|
+
* @param userId User ID
|
|
3961
|
+
*/
|
|
3962
|
+
async whitelabelAdminRemoveUserFromProject(organizationId, projectId, userId, options = { headers: {} }) {
|
|
3963
|
+
const localVarPath = this.basePath + '/api/organizations/{organizationId}/whitelabel/projects/{projectId}/members/{userId}'
|
|
3964
|
+
.replace('{' + 'organizationId' + '}', encodeURIComponent(String(organizationId)))
|
|
3965
|
+
.replace('{' + 'projectId' + '}', encodeURIComponent(String(projectId)))
|
|
3966
|
+
.replace('{' + 'userId' + '}', encodeURIComponent(String(userId)));
|
|
3967
|
+
let localVarQueryParameters = {};
|
|
3968
|
+
let localVarHeaderParams = Object.assign({
|
|
3969
|
+
'User-Agent': 'edgeimpulse-api nodejs'
|
|
3970
|
+
}, this.defaultHeaders);
|
|
3971
|
+
const produces = ['application/json'];
|
|
3972
|
+
// give precedence to 'application/json'
|
|
3973
|
+
if (produces.indexOf('application/json') >= 0) {
|
|
3974
|
+
localVarHeaderParams.Accept = 'application/json';
|
|
3975
|
+
}
|
|
3976
|
+
else {
|
|
3977
|
+
localVarHeaderParams.Accept = produces.join(',');
|
|
3978
|
+
}
|
|
3979
|
+
let localVarFormParams = {};
|
|
3980
|
+
// verify required parameter 'organizationId' is not null or undefined
|
|
3981
|
+
if (organizationId === null || organizationId === undefined) {
|
|
3982
|
+
throw new Error('Required parameter organizationId was null or undefined when calling whitelabelAdminRemoveUserFromProject.');
|
|
3983
|
+
}
|
|
3984
|
+
// verify required parameter 'projectId' is not null or undefined
|
|
3985
|
+
if (projectId === null || projectId === undefined) {
|
|
3986
|
+
throw new Error('Required parameter projectId was null or undefined when calling whitelabelAdminRemoveUserFromProject.');
|
|
3987
|
+
}
|
|
3988
|
+
// verify required parameter 'userId' is not null or undefined
|
|
3989
|
+
if (userId === null || userId === undefined) {
|
|
3990
|
+
throw new Error('Required parameter userId was null or undefined when calling whitelabelAdminRemoveUserFromProject.');
|
|
3991
|
+
}
|
|
3992
|
+
Object.assign(localVarHeaderParams, options.headers);
|
|
3993
|
+
Object.assign(localVarHeaderParams, this.opts.extraHeaders);
|
|
3994
|
+
let localVarUseFormData = false;
|
|
3995
|
+
let localVarRequestOptions = {
|
|
3996
|
+
method: 'DELETE',
|
|
3997
|
+
qs: localVarQueryParameters,
|
|
3998
|
+
headers: localVarHeaderParams,
|
|
3999
|
+
uri: localVarPath,
|
|
4000
|
+
useQuerystring: this._useQuerystring,
|
|
4001
|
+
agentOptions: { keepAlive: false },
|
|
4002
|
+
json: true,
|
|
4003
|
+
};
|
|
4004
|
+
let authenticationPromise = Promise.resolve();
|
|
4005
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.ApiKeyAuthentication.applyToRequest(localVarRequestOptions));
|
|
4006
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.JWTAuthentication.applyToRequest(localVarRequestOptions));
|
|
4007
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.JWTHttpHeaderAuthentication.applyToRequest(localVarRequestOptions));
|
|
4008
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
|
|
4009
|
+
return authenticationPromise.then(() => {
|
|
4010
|
+
if (Object.keys(localVarFormParams).length) {
|
|
4011
|
+
if (localVarUseFormData) {
|
|
4012
|
+
localVarRequestOptions.formData = localVarFormParams;
|
|
4013
|
+
}
|
|
4014
|
+
else {
|
|
4015
|
+
localVarRequestOptions.form = localVarFormParams;
|
|
4016
|
+
}
|
|
4017
|
+
}
|
|
4018
|
+
return new Promise((resolve, reject) => {
|
|
4019
|
+
localVarRequest(localVarRequestOptions, (error, response, body) => {
|
|
4020
|
+
if (error) {
|
|
4021
|
+
reject(error);
|
|
4022
|
+
}
|
|
4023
|
+
else {
|
|
4024
|
+
body = models_1.ObjectSerializer.deserialize(body, "GenericApiResponse");
|
|
4025
|
+
const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
|
|
4026
|
+
if (typeof body.success === 'boolean' && !body.success) {
|
|
4027
|
+
reject(new Error(body.error || errString));
|
|
4028
|
+
}
|
|
4029
|
+
else if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
4030
|
+
resolve(body);
|
|
4031
|
+
}
|
|
4032
|
+
else {
|
|
4033
|
+
reject(errString);
|
|
4034
|
+
}
|
|
4035
|
+
}
|
|
4036
|
+
});
|
|
4037
|
+
});
|
|
4038
|
+
});
|
|
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)));
|
|
2678
4050
|
let localVarQueryParameters = {};
|
|
2679
4051
|
let localVarHeaderParams = Object.assign({
|
|
2680
4052
|
'User-Agent': 'edgeimpulse-api nodejs'
|
|
@@ -2690,28 +4062,11 @@ class OrganizationsApi {
|
|
|
2690
4062
|
let localVarFormParams = {};
|
|
2691
4063
|
// verify required parameter 'organizationId' is not null or undefined
|
|
2692
4064
|
if (organizationId === null || organizationId === undefined) {
|
|
2693
|
-
throw new Error('Required parameter organizationId was null or undefined when calling
|
|
2694
|
-
}
|
|
2695
|
-
if (queryParams.active !== undefined) {
|
|
2696
|
-
localVarQueryParameters['active'] = models_1.ObjectSerializer.serialize(queryParams.active, "number");
|
|
2697
|
-
}
|
|
2698
|
-
if (queryParams.tier !== undefined) {
|
|
2699
|
-
localVarQueryParameters['tier'] = models_1.ObjectSerializer.serialize(queryParams.tier, "'free' | 'pro' | 'enterprise'");
|
|
2700
|
-
}
|
|
2701
|
-
if (queryParams.fields !== undefined) {
|
|
2702
|
-
localVarQueryParameters['fields'] = models_1.ObjectSerializer.serialize(queryParams.fields, "string");
|
|
2703
|
-
}
|
|
2704
|
-
if (queryParams.sort !== undefined) {
|
|
2705
|
-
localVarQueryParameters['sort'] = models_1.ObjectSerializer.serialize(queryParams.sort, "string");
|
|
2706
|
-
}
|
|
2707
|
-
if (queryParams.limit !== undefined) {
|
|
2708
|
-
localVarQueryParameters['limit'] = models_1.ObjectSerializer.serialize(queryParams.limit, "number");
|
|
2709
|
-
}
|
|
2710
|
-
if (queryParams.offset !== undefined) {
|
|
2711
|
-
localVarQueryParameters['offset'] = models_1.ObjectSerializer.serialize(queryParams.offset, "number");
|
|
4065
|
+
throw new Error('Required parameter organizationId was null or undefined when calling whitelabelAdminRestoreOrganization.');
|
|
2712
4066
|
}
|
|
2713
|
-
|
|
2714
|
-
|
|
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.');
|
|
2715
4070
|
}
|
|
2716
4071
|
Object.assign(localVarHeaderParams, options.headers);
|
|
2717
4072
|
Object.assign(localVarHeaderParams, this.opts.extraHeaders);
|
|
@@ -2745,7 +4100,7 @@ class OrganizationsApi {
|
|
|
2745
4100
|
reject(error);
|
|
2746
4101
|
}
|
|
2747
4102
|
else {
|
|
2748
|
-
body = models_1.ObjectSerializer.deserialize(body, "
|
|
4103
|
+
body = models_1.ObjectSerializer.deserialize(body, "GenericApiResponse");
|
|
2749
4104
|
const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
|
|
2750
4105
|
if (typeof body.success === 'boolean' && !body.success) {
|
|
2751
4106
|
reject(new Error(body.error || errString));
|
|
@@ -2762,17 +4117,14 @@ class OrganizationsApi {
|
|
|
2762
4117
|
});
|
|
2763
4118
|
}
|
|
2764
4119
|
/**
|
|
2765
|
-
* White label admin only API to
|
|
2766
|
-
* @summary
|
|
4120
|
+
* White label admin only API to update the default deployment target for this white label.
|
|
4121
|
+
* @summary Update default deployment target
|
|
2767
4122
|
* @param organizationId Organization ID
|
|
2768
|
-
* @param
|
|
2769
|
-
* @param userId User ID
|
|
4123
|
+
* @param updateWhitelabelDefaultDeploymentTargetRequest
|
|
2770
4124
|
*/
|
|
2771
|
-
async
|
|
2772
|
-
const localVarPath = this.basePath + '/api/organizations/{organizationId}/whitelabel/
|
|
2773
|
-
.replace('{' + 'organizationId' + '}', encodeURIComponent(String(organizationId)))
|
|
2774
|
-
.replace('{' + 'innerOrganizationId' + '}', encodeURIComponent(String(innerOrganizationId)))
|
|
2775
|
-
.replace('{' + 'userId' + '}', encodeURIComponent(String(userId)));
|
|
4125
|
+
async whitelabelAdminUpdateDefaultDeploymentTarget(organizationId, updateWhitelabelDefaultDeploymentTargetRequest, options = { headers: {} }) {
|
|
4126
|
+
const localVarPath = this.basePath + '/api/organizations/{organizationId}/whitelabel/deploymentTargets/default'
|
|
4127
|
+
.replace('{' + 'organizationId' + '}', encodeURIComponent(String(organizationId)));
|
|
2776
4128
|
let localVarQueryParameters = {};
|
|
2777
4129
|
let localVarHeaderParams = Object.assign({
|
|
2778
4130
|
'User-Agent': 'edgeimpulse-api nodejs'
|
|
@@ -2788,27 +4140,24 @@ class OrganizationsApi {
|
|
|
2788
4140
|
let localVarFormParams = {};
|
|
2789
4141
|
// verify required parameter 'organizationId' is not null or undefined
|
|
2790
4142
|
if (organizationId === null || organizationId === undefined) {
|
|
2791
|
-
throw new Error('Required parameter organizationId was null or undefined when calling
|
|
2792
|
-
}
|
|
2793
|
-
// verify required parameter 'innerOrganizationId' is not null or undefined
|
|
2794
|
-
if (innerOrganizationId === null || innerOrganizationId === undefined) {
|
|
2795
|
-
throw new Error('Required parameter innerOrganizationId was null or undefined when calling whitelabelAdminRemoveUserFromOrganization.');
|
|
4143
|
+
throw new Error('Required parameter organizationId was null or undefined when calling whitelabelAdminUpdateDefaultDeploymentTarget.');
|
|
2796
4144
|
}
|
|
2797
|
-
// verify required parameter '
|
|
2798
|
-
if (
|
|
2799
|
-
throw new Error('Required parameter
|
|
4145
|
+
// verify required parameter 'updateWhitelabelDefaultDeploymentTargetRequest' is not null or undefined
|
|
4146
|
+
if (updateWhitelabelDefaultDeploymentTargetRequest === null || updateWhitelabelDefaultDeploymentTargetRequest === undefined) {
|
|
4147
|
+
throw new Error('Required parameter updateWhitelabelDefaultDeploymentTargetRequest was null or undefined when calling whitelabelAdminUpdateDefaultDeploymentTarget.');
|
|
2800
4148
|
}
|
|
2801
4149
|
Object.assign(localVarHeaderParams, options.headers);
|
|
2802
4150
|
Object.assign(localVarHeaderParams, this.opts.extraHeaders);
|
|
2803
4151
|
let localVarUseFormData = false;
|
|
2804
4152
|
let localVarRequestOptions = {
|
|
2805
|
-
method: '
|
|
4153
|
+
method: 'POST',
|
|
2806
4154
|
qs: localVarQueryParameters,
|
|
2807
4155
|
headers: localVarHeaderParams,
|
|
2808
4156
|
uri: localVarPath,
|
|
2809
4157
|
useQuerystring: this._useQuerystring,
|
|
2810
4158
|
agentOptions: { keepAlive: false },
|
|
2811
4159
|
json: true,
|
|
4160
|
+
body: models_1.ObjectSerializer.serialize(updateWhitelabelDefaultDeploymentTargetRequest, "UpdateWhitelabelDefaultDeploymentTargetRequest")
|
|
2812
4161
|
};
|
|
2813
4162
|
let authenticationPromise = Promise.resolve();
|
|
2814
4163
|
authenticationPromise = authenticationPromise.then(() => this.authentications.ApiKeyAuthentication.applyToRequest(localVarRequestOptions));
|
|
@@ -2847,17 +4196,14 @@ class OrganizationsApi {
|
|
|
2847
4196
|
});
|
|
2848
4197
|
}
|
|
2849
4198
|
/**
|
|
2850
|
-
* White label admin only API to
|
|
2851
|
-
* @summary
|
|
4199
|
+
* White label admin only API to customize the order of deployment options in the deployment view for this white label.
|
|
4200
|
+
* @summary Update the order of deployment options in the deployment view
|
|
2852
4201
|
* @param organizationId Organization ID
|
|
2853
|
-
* @param
|
|
2854
|
-
* @param userId User ID
|
|
4202
|
+
* @param updateWhitelabelDeploymentOptionsOrderRequest
|
|
2855
4203
|
*/
|
|
2856
|
-
async
|
|
2857
|
-
const localVarPath = this.basePath + '/api/organizations/{organizationId}/whitelabel/
|
|
2858
|
-
.replace('{' + 'organizationId' + '}', encodeURIComponent(String(organizationId)))
|
|
2859
|
-
.replace('{' + 'projectId' + '}', encodeURIComponent(String(projectId)))
|
|
2860
|
-
.replace('{' + 'userId' + '}', encodeURIComponent(String(userId)));
|
|
4204
|
+
async whitelabelAdminUpdateDeploymentOptionsOrder(organizationId, updateWhitelabelDeploymentOptionsOrderRequest, options = { headers: {} }) {
|
|
4205
|
+
const localVarPath = this.basePath + '/api/organizations/{organizationId}/whitelabel/deploymentOptionsOrder'
|
|
4206
|
+
.replace('{' + 'organizationId' + '}', encodeURIComponent(String(organizationId)));
|
|
2861
4207
|
let localVarQueryParameters = {};
|
|
2862
4208
|
let localVarHeaderParams = Object.assign({
|
|
2863
4209
|
'User-Agent': 'edgeimpulse-api nodejs'
|
|
@@ -2873,27 +4219,24 @@ class OrganizationsApi {
|
|
|
2873
4219
|
let localVarFormParams = {};
|
|
2874
4220
|
// verify required parameter 'organizationId' is not null or undefined
|
|
2875
4221
|
if (organizationId === null || organizationId === undefined) {
|
|
2876
|
-
throw new Error('Required parameter organizationId was null or undefined when calling
|
|
2877
|
-
}
|
|
2878
|
-
// verify required parameter 'projectId' is not null or undefined
|
|
2879
|
-
if (projectId === null || projectId === undefined) {
|
|
2880
|
-
throw new Error('Required parameter projectId was null or undefined when calling whitelabelAdminRemoveUserFromProject.');
|
|
4222
|
+
throw new Error('Required parameter organizationId was null or undefined when calling whitelabelAdminUpdateDeploymentOptionsOrder.');
|
|
2881
4223
|
}
|
|
2882
|
-
// verify required parameter '
|
|
2883
|
-
if (
|
|
2884
|
-
throw new Error('Required parameter
|
|
4224
|
+
// verify required parameter 'updateWhitelabelDeploymentOptionsOrderRequest' is not null or undefined
|
|
4225
|
+
if (updateWhitelabelDeploymentOptionsOrderRequest === null || updateWhitelabelDeploymentOptionsOrderRequest === undefined) {
|
|
4226
|
+
throw new Error('Required parameter updateWhitelabelDeploymentOptionsOrderRequest was null or undefined when calling whitelabelAdminUpdateDeploymentOptionsOrder.');
|
|
2885
4227
|
}
|
|
2886
4228
|
Object.assign(localVarHeaderParams, options.headers);
|
|
2887
4229
|
Object.assign(localVarHeaderParams, this.opts.extraHeaders);
|
|
2888
4230
|
let localVarUseFormData = false;
|
|
2889
4231
|
let localVarRequestOptions = {
|
|
2890
|
-
method: '
|
|
4232
|
+
method: 'POST',
|
|
2891
4233
|
qs: localVarQueryParameters,
|
|
2892
4234
|
headers: localVarHeaderParams,
|
|
2893
4235
|
uri: localVarPath,
|
|
2894
4236
|
useQuerystring: this._useQuerystring,
|
|
2895
4237
|
agentOptions: { keepAlive: false },
|
|
2896
4238
|
json: true,
|
|
4239
|
+
body: models_1.ObjectSerializer.serialize(updateWhitelabelDeploymentOptionsOrderRequest, "UpdateWhitelabelDeploymentOptionsOrderRequest")
|
|
2897
4240
|
};
|
|
2898
4241
|
let authenticationPromise = Promise.resolve();
|
|
2899
4242
|
authenticationPromise = authenticationPromise.then(() => this.authentications.ApiKeyAuthentication.applyToRequest(localVarRequestOptions));
|
|
@@ -2932,13 +4275,13 @@ class OrganizationsApi {
|
|
|
2932
4275
|
});
|
|
2933
4276
|
}
|
|
2934
4277
|
/**
|
|
2935
|
-
* White label admin only API to update the
|
|
2936
|
-
* @summary Update
|
|
4278
|
+
* White label admin only API to update some or all of the deployment targets enabled for this white label.
|
|
4279
|
+
* @summary Update deployment targets
|
|
2937
4280
|
* @param organizationId Organization ID
|
|
2938
|
-
* @param
|
|
4281
|
+
* @param updateWhitelabelDeploymentTargetsRequest
|
|
2939
4282
|
*/
|
|
2940
|
-
async
|
|
2941
|
-
const localVarPath = this.basePath + '/api/organizations/{organizationId}/whitelabel/deploymentTargets
|
|
4283
|
+
async whitelabelAdminUpdateDeploymentTargets(organizationId, updateWhitelabelDeploymentTargetsRequest, options = { headers: {} }) {
|
|
4284
|
+
const localVarPath = this.basePath + '/api/organizations/{organizationId}/whitelabel/deploymentTargets'
|
|
2942
4285
|
.replace('{' + 'organizationId' + '}', encodeURIComponent(String(organizationId)));
|
|
2943
4286
|
let localVarQueryParameters = {};
|
|
2944
4287
|
let localVarHeaderParams = Object.assign({
|
|
@@ -2955,11 +4298,11 @@ class OrganizationsApi {
|
|
|
2955
4298
|
let localVarFormParams = {};
|
|
2956
4299
|
// verify required parameter 'organizationId' is not null or undefined
|
|
2957
4300
|
if (organizationId === null || organizationId === undefined) {
|
|
2958
|
-
throw new Error('Required parameter organizationId was null or undefined when calling
|
|
4301
|
+
throw new Error('Required parameter organizationId was null or undefined when calling whitelabelAdminUpdateDeploymentTargets.');
|
|
2959
4302
|
}
|
|
2960
|
-
// verify required parameter '
|
|
2961
|
-
if (
|
|
2962
|
-
throw new Error('Required parameter
|
|
4303
|
+
// verify required parameter 'updateWhitelabelDeploymentTargetsRequest' is not null or undefined
|
|
4304
|
+
if (updateWhitelabelDeploymentTargetsRequest === null || updateWhitelabelDeploymentTargetsRequest === undefined) {
|
|
4305
|
+
throw new Error('Required parameter updateWhitelabelDeploymentTargetsRequest was null or undefined when calling whitelabelAdminUpdateDeploymentTargets.');
|
|
2963
4306
|
}
|
|
2964
4307
|
Object.assign(localVarHeaderParams, options.headers);
|
|
2965
4308
|
Object.assign(localVarHeaderParams, this.opts.extraHeaders);
|
|
@@ -2972,7 +4315,7 @@ class OrganizationsApi {
|
|
|
2972
4315
|
useQuerystring: this._useQuerystring,
|
|
2973
4316
|
agentOptions: { keepAlive: false },
|
|
2974
4317
|
json: true,
|
|
2975
|
-
body: models_1.ObjectSerializer.serialize(
|
|
4318
|
+
body: models_1.ObjectSerializer.serialize(updateWhitelabelDeploymentTargetsRequest, "UpdateWhitelabelDeploymentTargetsRequest")
|
|
2976
4319
|
};
|
|
2977
4320
|
let authenticationPromise = Promise.resolve();
|
|
2978
4321
|
authenticationPromise = authenticationPromise.then(() => this.authentications.ApiKeyAuthentication.applyToRequest(localVarRequestOptions));
|
|
@@ -3011,14 +4354,16 @@ class OrganizationsApi {
|
|
|
3011
4354
|
});
|
|
3012
4355
|
}
|
|
3013
4356
|
/**
|
|
3014
|
-
* White label admin only API to
|
|
3015
|
-
* @summary Update
|
|
4357
|
+
* White label admin only API to update a development board.
|
|
4358
|
+
* @summary Update a development board in a whitelabel
|
|
3016
4359
|
* @param organizationId Organization ID
|
|
3017
|
-
* @param
|
|
4360
|
+
* @param developmentBoardId Development board ID.
|
|
4361
|
+
* @param developmentBoardRequestUpdate
|
|
3018
4362
|
*/
|
|
3019
|
-
async
|
|
3020
|
-
const localVarPath = this.basePath + '/api/organizations/{organizationId}/whitelabel/
|
|
3021
|
-
.replace('{' + 'organizationId' + '}', encodeURIComponent(String(organizationId)))
|
|
4363
|
+
async whitelabelAdminUpdateDevelopmentBoard(organizationId, developmentBoardId, developmentBoardRequestUpdate, options = { headers: {} }) {
|
|
4364
|
+
const localVarPath = this.basePath + '/api/organizations/{organizationId}/whitelabel/development-boards/{developmentBoardId}'
|
|
4365
|
+
.replace('{' + 'organizationId' + '}', encodeURIComponent(String(organizationId)))
|
|
4366
|
+
.replace('{' + 'developmentBoardId' + '}', encodeURIComponent(String(developmentBoardId)));
|
|
3022
4367
|
let localVarQueryParameters = {};
|
|
3023
4368
|
let localVarHeaderParams = Object.assign({
|
|
3024
4369
|
'User-Agent': 'edgeimpulse-api nodejs'
|
|
@@ -3034,24 +4379,24 @@ class OrganizationsApi {
|
|
|
3034
4379
|
let localVarFormParams = {};
|
|
3035
4380
|
// verify required parameter 'organizationId' is not null or undefined
|
|
3036
4381
|
if (organizationId === null || organizationId === undefined) {
|
|
3037
|
-
throw new Error('Required parameter organizationId was null or undefined when calling
|
|
4382
|
+
throw new Error('Required parameter organizationId was null or undefined when calling whitelabelAdminUpdateDevelopmentBoard.');
|
|
3038
4383
|
}
|
|
3039
|
-
// verify required parameter '
|
|
3040
|
-
if (
|
|
3041
|
-
throw new Error('Required parameter
|
|
4384
|
+
// verify required parameter 'developmentBoardId' is not null or undefined
|
|
4385
|
+
if (developmentBoardId === null || developmentBoardId === undefined) {
|
|
4386
|
+
throw new Error('Required parameter developmentBoardId was null or undefined when calling whitelabelAdminUpdateDevelopmentBoard.');
|
|
3042
4387
|
}
|
|
3043
4388
|
Object.assign(localVarHeaderParams, options.headers);
|
|
3044
4389
|
Object.assign(localVarHeaderParams, this.opts.extraHeaders);
|
|
3045
4390
|
let localVarUseFormData = false;
|
|
3046
4391
|
let localVarRequestOptions = {
|
|
3047
|
-
method: '
|
|
4392
|
+
method: 'PUT',
|
|
3048
4393
|
qs: localVarQueryParameters,
|
|
3049
4394
|
headers: localVarHeaderParams,
|
|
3050
4395
|
uri: localVarPath,
|
|
3051
4396
|
useQuerystring: this._useQuerystring,
|
|
3052
4397
|
agentOptions: { keepAlive: false },
|
|
3053
4398
|
json: true,
|
|
3054
|
-
body: models_1.ObjectSerializer.serialize(
|
|
4399
|
+
body: models_1.ObjectSerializer.serialize(developmentBoardRequestUpdate, "DevelopmentBoardRequestUpdate")
|
|
3055
4400
|
};
|
|
3056
4401
|
let authenticationPromise = Promise.resolve();
|
|
3057
4402
|
authenticationPromise = authenticationPromise.then(() => this.authentications.ApiKeyAuthentication.applyToRequest(localVarRequestOptions));
|
|
@@ -3090,14 +4435,16 @@ class OrganizationsApi {
|
|
|
3090
4435
|
});
|
|
3091
4436
|
}
|
|
3092
4437
|
/**
|
|
3093
|
-
* White label admin only API to update
|
|
3094
|
-
* @summary Update
|
|
4438
|
+
* White label admin only API to update the image of a development board.
|
|
4439
|
+
* @summary Update the image of a whitelabel development board
|
|
3095
4440
|
* @param organizationId Organization ID
|
|
3096
|
-
* @param
|
|
4441
|
+
* @param developmentBoardId Development board ID.
|
|
4442
|
+
* @param image
|
|
3097
4443
|
*/
|
|
3098
|
-
async
|
|
3099
|
-
const localVarPath = this.basePath + '/api/organizations/{organizationId}/whitelabel/
|
|
3100
|
-
.replace('{' + 'organizationId' + '}', encodeURIComponent(String(organizationId)))
|
|
4444
|
+
async whitelabelAdminUpdateDevelopmentBoardImage(organizationId, developmentBoardId, params, options = { headers: {} }) {
|
|
4445
|
+
const localVarPath = this.basePath + '/api/organizations/{organizationId}/whitelabel/development-boards/{developmentBoardId}/image'
|
|
4446
|
+
.replace('{' + 'organizationId' + '}', encodeURIComponent(String(organizationId)))
|
|
4447
|
+
.replace('{' + 'developmentBoardId' + '}', encodeURIComponent(String(developmentBoardId)));
|
|
3101
4448
|
let localVarQueryParameters = {};
|
|
3102
4449
|
let localVarHeaderParams = Object.assign({
|
|
3103
4450
|
'User-Agent': 'edgeimpulse-api nodejs'
|
|
@@ -3113,15 +4460,19 @@ class OrganizationsApi {
|
|
|
3113
4460
|
let localVarFormParams = {};
|
|
3114
4461
|
// verify required parameter 'organizationId' is not null or undefined
|
|
3115
4462
|
if (organizationId === null || organizationId === undefined) {
|
|
3116
|
-
throw new Error('Required parameter organizationId was null or undefined when calling
|
|
4463
|
+
throw new Error('Required parameter organizationId was null or undefined when calling whitelabelAdminUpdateDevelopmentBoardImage.');
|
|
3117
4464
|
}
|
|
3118
|
-
// verify required parameter '
|
|
3119
|
-
if (
|
|
3120
|
-
throw new Error('Required parameter
|
|
4465
|
+
// verify required parameter 'developmentBoardId' is not null or undefined
|
|
4466
|
+
if (developmentBoardId === null || developmentBoardId === undefined) {
|
|
4467
|
+
throw new Error('Required parameter developmentBoardId was null or undefined when calling whitelabelAdminUpdateDevelopmentBoardImage.');
|
|
3121
4468
|
}
|
|
3122
4469
|
Object.assign(localVarHeaderParams, options.headers);
|
|
3123
4470
|
Object.assign(localVarHeaderParams, this.opts.extraHeaders);
|
|
3124
4471
|
let localVarUseFormData = false;
|
|
4472
|
+
if (params.image !== undefined) {
|
|
4473
|
+
localVarFormParams['image'] = params.image;
|
|
4474
|
+
}
|
|
4475
|
+
localVarUseFormData = true;
|
|
3125
4476
|
let localVarRequestOptions = {
|
|
3126
4477
|
method: 'POST',
|
|
3127
4478
|
qs: localVarQueryParameters,
|
|
@@ -3130,7 +4481,6 @@ class OrganizationsApi {
|
|
|
3130
4481
|
useQuerystring: this._useQuerystring,
|
|
3131
4482
|
agentOptions: { keepAlive: false },
|
|
3132
4483
|
json: true,
|
|
3133
|
-
body: models_1.ObjectSerializer.serialize(updateWhitelabelDeploymentTargetsRequest, "UpdateWhitelabelDeploymentTargetsRequest")
|
|
3134
4484
|
};
|
|
3135
4485
|
let authenticationPromise = Promise.resolve();
|
|
3136
4486
|
authenticationPromise = authenticationPromise.then(() => this.authentications.ApiKeyAuthentication.applyToRequest(localVarRequestOptions));
|
|
@@ -3152,7 +4502,7 @@ class OrganizationsApi {
|
|
|
3152
4502
|
reject(error);
|
|
3153
4503
|
}
|
|
3154
4504
|
else {
|
|
3155
|
-
body = models_1.ObjectSerializer.deserialize(body, "
|
|
4505
|
+
body = models_1.ObjectSerializer.deserialize(body, "UploadAssetResponse");
|
|
3156
4506
|
const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
|
|
3157
4507
|
if (typeof body.success === 'boolean' && !body.success) {
|
|
3158
4508
|
reject(new Error(body.error || errString));
|
|
@@ -3247,6 +4597,85 @@ class OrganizationsApi {
|
|
|
3247
4597
|
});
|
|
3248
4598
|
});
|
|
3249
4599
|
}
|
|
4600
|
+
/**
|
|
4601
|
+
* White label admin only API to update some or all of the learning blocks enabled for this white label.
|
|
4602
|
+
* @summary Update learning blocks
|
|
4603
|
+
* @param organizationId Organization ID
|
|
4604
|
+
* @param updateWhitelabelLearningBlocksRequest
|
|
4605
|
+
*/
|
|
4606
|
+
async whitelabelAdminUpdateLearningBlocks(organizationId, updateWhitelabelLearningBlocksRequest, options = { headers: {} }) {
|
|
4607
|
+
const localVarPath = this.basePath + '/api/organizations/{organizationId}/whitelabel/learningBlocks'
|
|
4608
|
+
.replace('{' + 'organizationId' + '}', encodeURIComponent(String(organizationId)));
|
|
4609
|
+
let localVarQueryParameters = {};
|
|
4610
|
+
let localVarHeaderParams = Object.assign({
|
|
4611
|
+
'User-Agent': 'edgeimpulse-api nodejs'
|
|
4612
|
+
}, this.defaultHeaders);
|
|
4613
|
+
const produces = ['application/json'];
|
|
4614
|
+
// give precedence to 'application/json'
|
|
4615
|
+
if (produces.indexOf('application/json') >= 0) {
|
|
4616
|
+
localVarHeaderParams.Accept = 'application/json';
|
|
4617
|
+
}
|
|
4618
|
+
else {
|
|
4619
|
+
localVarHeaderParams.Accept = produces.join(',');
|
|
4620
|
+
}
|
|
4621
|
+
let localVarFormParams = {};
|
|
4622
|
+
// verify required parameter 'organizationId' is not null or undefined
|
|
4623
|
+
if (organizationId === null || organizationId === undefined) {
|
|
4624
|
+
throw new Error('Required parameter organizationId was null or undefined when calling whitelabelAdminUpdateLearningBlocks.');
|
|
4625
|
+
}
|
|
4626
|
+
// verify required parameter 'updateWhitelabelLearningBlocksRequest' is not null or undefined
|
|
4627
|
+
if (updateWhitelabelLearningBlocksRequest === null || updateWhitelabelLearningBlocksRequest === undefined) {
|
|
4628
|
+
throw new Error('Required parameter updateWhitelabelLearningBlocksRequest was null or undefined when calling whitelabelAdminUpdateLearningBlocks.');
|
|
4629
|
+
}
|
|
4630
|
+
Object.assign(localVarHeaderParams, options.headers);
|
|
4631
|
+
Object.assign(localVarHeaderParams, this.opts.extraHeaders);
|
|
4632
|
+
let localVarUseFormData = false;
|
|
4633
|
+
let localVarRequestOptions = {
|
|
4634
|
+
method: 'POST',
|
|
4635
|
+
qs: localVarQueryParameters,
|
|
4636
|
+
headers: localVarHeaderParams,
|
|
4637
|
+
uri: localVarPath,
|
|
4638
|
+
useQuerystring: this._useQuerystring,
|
|
4639
|
+
agentOptions: { keepAlive: false },
|
|
4640
|
+
json: true,
|
|
4641
|
+
body: models_1.ObjectSerializer.serialize(updateWhitelabelLearningBlocksRequest, "UpdateWhitelabelLearningBlocksRequest")
|
|
4642
|
+
};
|
|
4643
|
+
let authenticationPromise = Promise.resolve();
|
|
4644
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.ApiKeyAuthentication.applyToRequest(localVarRequestOptions));
|
|
4645
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.JWTAuthentication.applyToRequest(localVarRequestOptions));
|
|
4646
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.JWTHttpHeaderAuthentication.applyToRequest(localVarRequestOptions));
|
|
4647
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
|
|
4648
|
+
return authenticationPromise.then(() => {
|
|
4649
|
+
if (Object.keys(localVarFormParams).length) {
|
|
4650
|
+
if (localVarUseFormData) {
|
|
4651
|
+
localVarRequestOptions.formData = localVarFormParams;
|
|
4652
|
+
}
|
|
4653
|
+
else {
|
|
4654
|
+
localVarRequestOptions.form = localVarFormParams;
|
|
4655
|
+
}
|
|
4656
|
+
}
|
|
4657
|
+
return new Promise((resolve, reject) => {
|
|
4658
|
+
localVarRequest(localVarRequestOptions, (error, response, body) => {
|
|
4659
|
+
if (error) {
|
|
4660
|
+
reject(error);
|
|
4661
|
+
}
|
|
4662
|
+
else {
|
|
4663
|
+
body = models_1.ObjectSerializer.deserialize(body, "GenericApiResponse");
|
|
4664
|
+
const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
|
|
4665
|
+
if (typeof body.success === 'boolean' && !body.success) {
|
|
4666
|
+
reject(new Error(body.error || errString));
|
|
4667
|
+
}
|
|
4668
|
+
else if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
4669
|
+
resolve(body);
|
|
4670
|
+
}
|
|
4671
|
+
else {
|
|
4672
|
+
reject(errString);
|
|
4673
|
+
}
|
|
4674
|
+
}
|
|
4675
|
+
});
|
|
4676
|
+
});
|
|
4677
|
+
});
|
|
4678
|
+
}
|
|
3250
4679
|
/**
|
|
3251
4680
|
* White label admin only API to update organization properties such as name and logo.
|
|
3252
4681
|
* @summary Update organization
|