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
|
@@ -75,3168 +75,15 @@ class OrganizationRequiresAdminApi {
|
|
|
75
75
|
this.authentications[OrganizationRequiresAdminApiApiKeys[key]].apiKey = value;
|
|
76
76
|
}
|
|
77
77
|
/**
|
|
78
|
-
*
|
|
79
|
-
* @summary
|
|
78
|
+
* White label admin only API to delete a project.
|
|
79
|
+
* @summary Delete a project
|
|
80
80
|
* @param organizationId Organization ID
|
|
81
|
-
* @param
|
|
82
|
-
*/
|
|
83
|
-
async addOrganizationBucket(organizationId, addOrganizationBucketRequest, options = { headers: {} }) {
|
|
84
|
-
const localVarPath = this.basePath + '/api/organizations/{organizationId}/buckets'
|
|
85
|
-
.replace('{' + 'organizationId' + '}', encodeURIComponent(String(organizationId)));
|
|
86
|
-
let localVarQueryParameters = {};
|
|
87
|
-
let localVarHeaderParams = Object.assign({
|
|
88
|
-
'User-Agent': 'edgeimpulse-api nodejs'
|
|
89
|
-
}, this.defaultHeaders);
|
|
90
|
-
const produces = ['application/json'];
|
|
91
|
-
// give precedence to 'application/json'
|
|
92
|
-
if (produces.indexOf('application/json') >= 0) {
|
|
93
|
-
localVarHeaderParams.Accept = 'application/json';
|
|
94
|
-
}
|
|
95
|
-
else {
|
|
96
|
-
localVarHeaderParams.Accept = produces.join(',');
|
|
97
|
-
}
|
|
98
|
-
let localVarFormParams = {};
|
|
99
|
-
// verify required parameter 'organizationId' is not null or undefined
|
|
100
|
-
if (organizationId === null || organizationId === undefined) {
|
|
101
|
-
throw new Error('Required parameter organizationId was null or undefined when calling addOrganizationBucket.');
|
|
102
|
-
}
|
|
103
|
-
// verify required parameter 'addOrganizationBucketRequest' is not null or undefined
|
|
104
|
-
if (addOrganizationBucketRequest === null || addOrganizationBucketRequest === undefined) {
|
|
105
|
-
throw new Error('Required parameter addOrganizationBucketRequest was null or undefined when calling addOrganizationBucket.');
|
|
106
|
-
}
|
|
107
|
-
Object.assign(localVarHeaderParams, options.headers);
|
|
108
|
-
Object.assign(localVarHeaderParams, this.opts.extraHeaders);
|
|
109
|
-
let localVarUseFormData = false;
|
|
110
|
-
let localVarRequestOptions = {
|
|
111
|
-
method: 'POST',
|
|
112
|
-
qs: localVarQueryParameters,
|
|
113
|
-
headers: localVarHeaderParams,
|
|
114
|
-
uri: localVarPath,
|
|
115
|
-
useQuerystring: this._useQuerystring,
|
|
116
|
-
agentOptions: { keepAlive: false },
|
|
117
|
-
json: true,
|
|
118
|
-
body: models_1.ObjectSerializer.serialize(addOrganizationBucketRequest, "AddOrganizationBucketRequest")
|
|
119
|
-
};
|
|
120
|
-
let authenticationPromise = Promise.resolve();
|
|
121
|
-
authenticationPromise = authenticationPromise.then(() => this.authentications.ApiKeyAuthentication.applyToRequest(localVarRequestOptions));
|
|
122
|
-
authenticationPromise = authenticationPromise.then(() => this.authentications.JWTAuthentication.applyToRequest(localVarRequestOptions));
|
|
123
|
-
authenticationPromise = authenticationPromise.then(() => this.authentications.JWTHttpHeaderAuthentication.applyToRequest(localVarRequestOptions));
|
|
124
|
-
authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
|
|
125
|
-
return authenticationPromise.then(() => {
|
|
126
|
-
if (Object.keys(localVarFormParams).length) {
|
|
127
|
-
if (localVarUseFormData) {
|
|
128
|
-
localVarRequestOptions.formData = localVarFormParams;
|
|
129
|
-
}
|
|
130
|
-
else {
|
|
131
|
-
localVarRequestOptions.form = localVarFormParams;
|
|
132
|
-
}
|
|
133
|
-
}
|
|
134
|
-
return new Promise((resolve, reject) => {
|
|
135
|
-
localVarRequest(localVarRequestOptions, (error, response, body) => {
|
|
136
|
-
if (error) {
|
|
137
|
-
reject(error);
|
|
138
|
-
}
|
|
139
|
-
else {
|
|
140
|
-
body = models_1.ObjectSerializer.deserialize(body, "GenericApiResponse");
|
|
141
|
-
const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
|
|
142
|
-
if (typeof body.success === 'boolean' && !body.success) {
|
|
143
|
-
reject(new Error(body.error || errString));
|
|
144
|
-
}
|
|
145
|
-
else if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
146
|
-
resolve(body);
|
|
147
|
-
}
|
|
148
|
-
else {
|
|
149
|
-
reject(errString);
|
|
150
|
-
}
|
|
151
|
-
}
|
|
152
|
-
});
|
|
153
|
-
});
|
|
154
|
-
});
|
|
155
|
-
}
|
|
156
|
-
/**
|
|
157
|
-
* Add a member to an organization.
|
|
158
|
-
* @summary Add member
|
|
159
|
-
* @param organizationId Organization ID
|
|
160
|
-
* @param addMemberRequest
|
|
161
|
-
*/
|
|
162
|
-
async addOrganizationMember(organizationId, addMemberRequest, options = { headers: {} }) {
|
|
163
|
-
const localVarPath = this.basePath + '/api/organizations/{organizationId}/members/add'
|
|
164
|
-
.replace('{' + 'organizationId' + '}', encodeURIComponent(String(organizationId)));
|
|
165
|
-
let localVarQueryParameters = {};
|
|
166
|
-
let localVarHeaderParams = Object.assign({
|
|
167
|
-
'User-Agent': 'edgeimpulse-api nodejs'
|
|
168
|
-
}, this.defaultHeaders);
|
|
169
|
-
const produces = ['application/json'];
|
|
170
|
-
// give precedence to 'application/json'
|
|
171
|
-
if (produces.indexOf('application/json') >= 0) {
|
|
172
|
-
localVarHeaderParams.Accept = 'application/json';
|
|
173
|
-
}
|
|
174
|
-
else {
|
|
175
|
-
localVarHeaderParams.Accept = produces.join(',');
|
|
176
|
-
}
|
|
177
|
-
let localVarFormParams = {};
|
|
178
|
-
// verify required parameter 'organizationId' is not null or undefined
|
|
179
|
-
if (organizationId === null || organizationId === undefined) {
|
|
180
|
-
throw new Error('Required parameter organizationId was null or undefined when calling addOrganizationMember.');
|
|
181
|
-
}
|
|
182
|
-
// verify required parameter 'addMemberRequest' is not null or undefined
|
|
183
|
-
if (addMemberRequest === null || addMemberRequest === undefined) {
|
|
184
|
-
throw new Error('Required parameter addMemberRequest was null or undefined when calling addOrganizationMember.');
|
|
185
|
-
}
|
|
186
|
-
Object.assign(localVarHeaderParams, options.headers);
|
|
187
|
-
Object.assign(localVarHeaderParams, this.opts.extraHeaders);
|
|
188
|
-
let localVarUseFormData = false;
|
|
189
|
-
let localVarRequestOptions = {
|
|
190
|
-
method: 'POST',
|
|
191
|
-
qs: localVarQueryParameters,
|
|
192
|
-
headers: localVarHeaderParams,
|
|
193
|
-
uri: localVarPath,
|
|
194
|
-
useQuerystring: this._useQuerystring,
|
|
195
|
-
agentOptions: { keepAlive: false },
|
|
196
|
-
json: true,
|
|
197
|
-
body: models_1.ObjectSerializer.serialize(addMemberRequest, "AddMemberRequest")
|
|
198
|
-
};
|
|
199
|
-
let authenticationPromise = Promise.resolve();
|
|
200
|
-
authenticationPromise = authenticationPromise.then(() => this.authentications.ApiKeyAuthentication.applyToRequest(localVarRequestOptions));
|
|
201
|
-
authenticationPromise = authenticationPromise.then(() => this.authentications.JWTAuthentication.applyToRequest(localVarRequestOptions));
|
|
202
|
-
authenticationPromise = authenticationPromise.then(() => this.authentications.JWTHttpHeaderAuthentication.applyToRequest(localVarRequestOptions));
|
|
203
|
-
authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
|
|
204
|
-
return authenticationPromise.then(() => {
|
|
205
|
-
if (Object.keys(localVarFormParams).length) {
|
|
206
|
-
if (localVarUseFormData) {
|
|
207
|
-
localVarRequestOptions.formData = localVarFormParams;
|
|
208
|
-
}
|
|
209
|
-
else {
|
|
210
|
-
localVarRequestOptions.form = localVarFormParams;
|
|
211
|
-
}
|
|
212
|
-
}
|
|
213
|
-
return new Promise((resolve, reject) => {
|
|
214
|
-
localVarRequest(localVarRequestOptions, (error, response, body) => {
|
|
215
|
-
if (error) {
|
|
216
|
-
reject(error);
|
|
217
|
-
}
|
|
218
|
-
else {
|
|
219
|
-
body = models_1.ObjectSerializer.deserialize(body, "GenericApiResponse");
|
|
220
|
-
const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
|
|
221
|
-
if (typeof body.success === 'boolean' && !body.success) {
|
|
222
|
-
reject(new Error(body.error || errString));
|
|
223
|
-
}
|
|
224
|
-
else if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
225
|
-
resolve(body);
|
|
226
|
-
}
|
|
227
|
-
else {
|
|
228
|
-
reject(errString);
|
|
229
|
-
}
|
|
230
|
-
}
|
|
231
|
-
});
|
|
232
|
-
});
|
|
233
|
-
});
|
|
234
|
-
}
|
|
235
|
-
/**
|
|
236
|
-
* Remove the current organization, and all data associated with it. This is irrevocable!
|
|
237
|
-
* @summary Remove organization
|
|
238
|
-
* @param organizationId Organization ID
|
|
239
|
-
*/
|
|
240
|
-
async deleteOrganization(organizationId, options = { headers: {} }) {
|
|
241
|
-
const localVarPath = this.basePath + '/api/organizations/{organizationId}'
|
|
242
|
-
.replace('{' + 'organizationId' + '}', encodeURIComponent(String(organizationId)));
|
|
243
|
-
let localVarQueryParameters = {};
|
|
244
|
-
let localVarHeaderParams = Object.assign({
|
|
245
|
-
'User-Agent': 'edgeimpulse-api nodejs'
|
|
246
|
-
}, this.defaultHeaders);
|
|
247
|
-
const produces = ['application/json'];
|
|
248
|
-
// give precedence to 'application/json'
|
|
249
|
-
if (produces.indexOf('application/json') >= 0) {
|
|
250
|
-
localVarHeaderParams.Accept = 'application/json';
|
|
251
|
-
}
|
|
252
|
-
else {
|
|
253
|
-
localVarHeaderParams.Accept = produces.join(',');
|
|
254
|
-
}
|
|
255
|
-
let localVarFormParams = {};
|
|
256
|
-
// verify required parameter 'organizationId' is not null or undefined
|
|
257
|
-
if (organizationId === null || organizationId === undefined) {
|
|
258
|
-
throw new Error('Required parameter organizationId was null or undefined when calling deleteOrganization.');
|
|
259
|
-
}
|
|
260
|
-
Object.assign(localVarHeaderParams, options.headers);
|
|
261
|
-
Object.assign(localVarHeaderParams, this.opts.extraHeaders);
|
|
262
|
-
let localVarUseFormData = false;
|
|
263
|
-
let localVarRequestOptions = {
|
|
264
|
-
method: 'DELETE',
|
|
265
|
-
qs: localVarQueryParameters,
|
|
266
|
-
headers: localVarHeaderParams,
|
|
267
|
-
uri: localVarPath,
|
|
268
|
-
useQuerystring: this._useQuerystring,
|
|
269
|
-
agentOptions: { keepAlive: false },
|
|
270
|
-
json: true,
|
|
271
|
-
};
|
|
272
|
-
let authenticationPromise = Promise.resolve();
|
|
273
|
-
authenticationPromise = authenticationPromise.then(() => this.authentications.ApiKeyAuthentication.applyToRequest(localVarRequestOptions));
|
|
274
|
-
authenticationPromise = authenticationPromise.then(() => this.authentications.JWTAuthentication.applyToRequest(localVarRequestOptions));
|
|
275
|
-
authenticationPromise = authenticationPromise.then(() => this.authentications.JWTHttpHeaderAuthentication.applyToRequest(localVarRequestOptions));
|
|
276
|
-
authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
|
|
277
|
-
return authenticationPromise.then(() => {
|
|
278
|
-
if (Object.keys(localVarFormParams).length) {
|
|
279
|
-
if (localVarUseFormData) {
|
|
280
|
-
localVarRequestOptions.formData = localVarFormParams;
|
|
281
|
-
}
|
|
282
|
-
else {
|
|
283
|
-
localVarRequestOptions.form = localVarFormParams;
|
|
284
|
-
}
|
|
285
|
-
}
|
|
286
|
-
return new Promise((resolve, reject) => {
|
|
287
|
-
localVarRequest(localVarRequestOptions, (error, response, body) => {
|
|
288
|
-
if (error) {
|
|
289
|
-
reject(error);
|
|
290
|
-
}
|
|
291
|
-
else {
|
|
292
|
-
body = models_1.ObjectSerializer.deserialize(body, "GenericApiResponse");
|
|
293
|
-
const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
|
|
294
|
-
if (typeof body.success === 'boolean' && !body.success) {
|
|
295
|
-
reject(new Error(body.error || errString));
|
|
296
|
-
}
|
|
297
|
-
else if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
298
|
-
resolve(body);
|
|
299
|
-
}
|
|
300
|
-
else {
|
|
301
|
-
reject(errString);
|
|
302
|
-
}
|
|
303
|
-
}
|
|
304
|
-
});
|
|
305
|
-
});
|
|
306
|
-
});
|
|
307
|
-
}
|
|
308
|
-
/**
|
|
309
|
-
* Invite a member to an organization.
|
|
310
|
-
* @summary Invite member
|
|
311
|
-
* @param organizationId Organization ID
|
|
312
|
-
* @param inviteOrganizationMemberRequest
|
|
313
|
-
*/
|
|
314
|
-
async inviteOrganizationMember(organizationId, inviteOrganizationMemberRequest, options = { headers: {} }) {
|
|
315
|
-
const localVarPath = this.basePath + '/api/organizations/{organizationId}/members/invite'
|
|
316
|
-
.replace('{' + 'organizationId' + '}', encodeURIComponent(String(organizationId)));
|
|
317
|
-
let localVarQueryParameters = {};
|
|
318
|
-
let localVarHeaderParams = Object.assign({
|
|
319
|
-
'User-Agent': 'edgeimpulse-api nodejs'
|
|
320
|
-
}, this.defaultHeaders);
|
|
321
|
-
const produces = ['application/json'];
|
|
322
|
-
// give precedence to 'application/json'
|
|
323
|
-
if (produces.indexOf('application/json') >= 0) {
|
|
324
|
-
localVarHeaderParams.Accept = 'application/json';
|
|
325
|
-
}
|
|
326
|
-
else {
|
|
327
|
-
localVarHeaderParams.Accept = produces.join(',');
|
|
328
|
-
}
|
|
329
|
-
let localVarFormParams = {};
|
|
330
|
-
// verify required parameter 'organizationId' is not null or undefined
|
|
331
|
-
if (organizationId === null || organizationId === undefined) {
|
|
332
|
-
throw new Error('Required parameter organizationId was null or undefined when calling inviteOrganizationMember.');
|
|
333
|
-
}
|
|
334
|
-
// verify required parameter 'inviteOrganizationMemberRequest' is not null or undefined
|
|
335
|
-
if (inviteOrganizationMemberRequest === null || inviteOrganizationMemberRequest === undefined) {
|
|
336
|
-
throw new Error('Required parameter inviteOrganizationMemberRequest was null or undefined when calling inviteOrganizationMember.');
|
|
337
|
-
}
|
|
338
|
-
Object.assign(localVarHeaderParams, options.headers);
|
|
339
|
-
Object.assign(localVarHeaderParams, this.opts.extraHeaders);
|
|
340
|
-
let localVarUseFormData = false;
|
|
341
|
-
let localVarRequestOptions = {
|
|
342
|
-
method: 'POST',
|
|
343
|
-
qs: localVarQueryParameters,
|
|
344
|
-
headers: localVarHeaderParams,
|
|
345
|
-
uri: localVarPath,
|
|
346
|
-
useQuerystring: this._useQuerystring,
|
|
347
|
-
agentOptions: { keepAlive: false },
|
|
348
|
-
json: true,
|
|
349
|
-
body: models_1.ObjectSerializer.serialize(inviteOrganizationMemberRequest, "InviteOrganizationMemberRequest")
|
|
350
|
-
};
|
|
351
|
-
let authenticationPromise = Promise.resolve();
|
|
352
|
-
authenticationPromise = authenticationPromise.then(() => this.authentications.ApiKeyAuthentication.applyToRequest(localVarRequestOptions));
|
|
353
|
-
authenticationPromise = authenticationPromise.then(() => this.authentications.JWTAuthentication.applyToRequest(localVarRequestOptions));
|
|
354
|
-
authenticationPromise = authenticationPromise.then(() => this.authentications.JWTHttpHeaderAuthentication.applyToRequest(localVarRequestOptions));
|
|
355
|
-
authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
|
|
356
|
-
return authenticationPromise.then(() => {
|
|
357
|
-
if (Object.keys(localVarFormParams).length) {
|
|
358
|
-
if (localVarUseFormData) {
|
|
359
|
-
localVarRequestOptions.formData = localVarFormParams;
|
|
360
|
-
}
|
|
361
|
-
else {
|
|
362
|
-
localVarRequestOptions.form = localVarFormParams;
|
|
363
|
-
}
|
|
364
|
-
}
|
|
365
|
-
return new Promise((resolve, reject) => {
|
|
366
|
-
localVarRequest(localVarRequestOptions, (error, response, body) => {
|
|
367
|
-
if (error) {
|
|
368
|
-
reject(error);
|
|
369
|
-
}
|
|
370
|
-
else {
|
|
371
|
-
body = models_1.ObjectSerializer.deserialize(body, "GenericApiResponse");
|
|
372
|
-
const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
|
|
373
|
-
if (typeof body.success === 'boolean' && !body.success) {
|
|
374
|
-
reject(new Error(body.error || errString));
|
|
375
|
-
}
|
|
376
|
-
else if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
377
|
-
resolve(body);
|
|
378
|
-
}
|
|
379
|
-
else {
|
|
380
|
-
reject(errString);
|
|
381
|
-
}
|
|
382
|
-
}
|
|
383
|
-
});
|
|
384
|
-
});
|
|
385
|
-
});
|
|
386
|
-
}
|
|
387
|
-
/**
|
|
388
|
-
* Remove a storage bucket. This will render any data in this storage bucket unreachable.
|
|
389
|
-
* @summary Remove storage bucket
|
|
390
|
-
* @param organizationId Organization ID
|
|
391
|
-
* @param bucketId Bucket ID
|
|
392
|
-
*/
|
|
393
|
-
async removeOrganizationBucket(organizationId, bucketId, options = { headers: {} }) {
|
|
394
|
-
const localVarPath = this.basePath + '/api/organizations/{organizationId}/buckets/{bucketId}'
|
|
395
|
-
.replace('{' + 'organizationId' + '}', encodeURIComponent(String(organizationId)))
|
|
396
|
-
.replace('{' + 'bucketId' + '}', encodeURIComponent(String(bucketId)));
|
|
397
|
-
let localVarQueryParameters = {};
|
|
398
|
-
let localVarHeaderParams = Object.assign({
|
|
399
|
-
'User-Agent': 'edgeimpulse-api nodejs'
|
|
400
|
-
}, this.defaultHeaders);
|
|
401
|
-
const produces = ['application/json'];
|
|
402
|
-
// give precedence to 'application/json'
|
|
403
|
-
if (produces.indexOf('application/json') >= 0) {
|
|
404
|
-
localVarHeaderParams.Accept = 'application/json';
|
|
405
|
-
}
|
|
406
|
-
else {
|
|
407
|
-
localVarHeaderParams.Accept = produces.join(',');
|
|
408
|
-
}
|
|
409
|
-
let localVarFormParams = {};
|
|
410
|
-
// verify required parameter 'organizationId' is not null or undefined
|
|
411
|
-
if (organizationId === null || organizationId === undefined) {
|
|
412
|
-
throw new Error('Required parameter organizationId was null or undefined when calling removeOrganizationBucket.');
|
|
413
|
-
}
|
|
414
|
-
// verify required parameter 'bucketId' is not null or undefined
|
|
415
|
-
if (bucketId === null || bucketId === undefined) {
|
|
416
|
-
throw new Error('Required parameter bucketId was null or undefined when calling removeOrganizationBucket.');
|
|
417
|
-
}
|
|
418
|
-
Object.assign(localVarHeaderParams, options.headers);
|
|
419
|
-
Object.assign(localVarHeaderParams, this.opts.extraHeaders);
|
|
420
|
-
let localVarUseFormData = false;
|
|
421
|
-
let localVarRequestOptions = {
|
|
422
|
-
method: 'DELETE',
|
|
423
|
-
qs: localVarQueryParameters,
|
|
424
|
-
headers: localVarHeaderParams,
|
|
425
|
-
uri: localVarPath,
|
|
426
|
-
useQuerystring: this._useQuerystring,
|
|
427
|
-
agentOptions: { keepAlive: false },
|
|
428
|
-
json: true,
|
|
429
|
-
};
|
|
430
|
-
let authenticationPromise = Promise.resolve();
|
|
431
|
-
authenticationPromise = authenticationPromise.then(() => this.authentications.ApiKeyAuthentication.applyToRequest(localVarRequestOptions));
|
|
432
|
-
authenticationPromise = authenticationPromise.then(() => this.authentications.JWTAuthentication.applyToRequest(localVarRequestOptions));
|
|
433
|
-
authenticationPromise = authenticationPromise.then(() => this.authentications.JWTHttpHeaderAuthentication.applyToRequest(localVarRequestOptions));
|
|
434
|
-
authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
|
|
435
|
-
return authenticationPromise.then(() => {
|
|
436
|
-
if (Object.keys(localVarFormParams).length) {
|
|
437
|
-
if (localVarUseFormData) {
|
|
438
|
-
localVarRequestOptions.formData = localVarFormParams;
|
|
439
|
-
}
|
|
440
|
-
else {
|
|
441
|
-
localVarRequestOptions.form = localVarFormParams;
|
|
442
|
-
}
|
|
443
|
-
}
|
|
444
|
-
return new Promise((resolve, reject) => {
|
|
445
|
-
localVarRequest(localVarRequestOptions, (error, response, body) => {
|
|
446
|
-
if (error) {
|
|
447
|
-
reject(error);
|
|
448
|
-
}
|
|
449
|
-
else {
|
|
450
|
-
body = models_1.ObjectSerializer.deserialize(body, "GenericApiResponse");
|
|
451
|
-
const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
|
|
452
|
-
if (typeof body.success === 'boolean' && !body.success) {
|
|
453
|
-
reject(new Error(body.error || errString));
|
|
454
|
-
}
|
|
455
|
-
else if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
456
|
-
resolve(body);
|
|
457
|
-
}
|
|
458
|
-
else {
|
|
459
|
-
reject(errString);
|
|
460
|
-
}
|
|
461
|
-
}
|
|
462
|
-
});
|
|
463
|
-
});
|
|
464
|
-
});
|
|
465
|
-
}
|
|
466
|
-
/**
|
|
467
|
-
* Remove a member from an organization. Note that you cannot invoke this function if only a single member is present to the organization.
|
|
468
|
-
* @summary Remove member
|
|
469
|
-
* @param organizationId Organization ID
|
|
470
|
-
* @param removeMemberRequest
|
|
471
|
-
*/
|
|
472
|
-
async removeOrganizationMember(organizationId, removeMemberRequest, options = { headers: {} }) {
|
|
473
|
-
const localVarPath = this.basePath + '/api/organizations/{organizationId}/members/remove'
|
|
474
|
-
.replace('{' + 'organizationId' + '}', encodeURIComponent(String(organizationId)));
|
|
475
|
-
let localVarQueryParameters = {};
|
|
476
|
-
let localVarHeaderParams = Object.assign({
|
|
477
|
-
'User-Agent': 'edgeimpulse-api nodejs'
|
|
478
|
-
}, this.defaultHeaders);
|
|
479
|
-
const produces = ['application/json'];
|
|
480
|
-
// give precedence to 'application/json'
|
|
481
|
-
if (produces.indexOf('application/json') >= 0) {
|
|
482
|
-
localVarHeaderParams.Accept = 'application/json';
|
|
483
|
-
}
|
|
484
|
-
else {
|
|
485
|
-
localVarHeaderParams.Accept = produces.join(',');
|
|
486
|
-
}
|
|
487
|
-
let localVarFormParams = {};
|
|
488
|
-
// verify required parameter 'organizationId' is not null or undefined
|
|
489
|
-
if (organizationId === null || organizationId === undefined) {
|
|
490
|
-
throw new Error('Required parameter organizationId was null or undefined when calling removeOrganizationMember.');
|
|
491
|
-
}
|
|
492
|
-
// verify required parameter 'removeMemberRequest' is not null or undefined
|
|
493
|
-
if (removeMemberRequest === null || removeMemberRequest === undefined) {
|
|
494
|
-
throw new Error('Required parameter removeMemberRequest was null or undefined when calling removeOrganizationMember.');
|
|
495
|
-
}
|
|
496
|
-
Object.assign(localVarHeaderParams, options.headers);
|
|
497
|
-
Object.assign(localVarHeaderParams, this.opts.extraHeaders);
|
|
498
|
-
let localVarUseFormData = false;
|
|
499
|
-
let localVarRequestOptions = {
|
|
500
|
-
method: 'POST',
|
|
501
|
-
qs: localVarQueryParameters,
|
|
502
|
-
headers: localVarHeaderParams,
|
|
503
|
-
uri: localVarPath,
|
|
504
|
-
useQuerystring: this._useQuerystring,
|
|
505
|
-
agentOptions: { keepAlive: false },
|
|
506
|
-
json: true,
|
|
507
|
-
body: models_1.ObjectSerializer.serialize(removeMemberRequest, "RemoveMemberRequest")
|
|
508
|
-
};
|
|
509
|
-
let authenticationPromise = Promise.resolve();
|
|
510
|
-
authenticationPromise = authenticationPromise.then(() => this.authentications.ApiKeyAuthentication.applyToRequest(localVarRequestOptions));
|
|
511
|
-
authenticationPromise = authenticationPromise.then(() => this.authentications.JWTAuthentication.applyToRequest(localVarRequestOptions));
|
|
512
|
-
authenticationPromise = authenticationPromise.then(() => this.authentications.JWTHttpHeaderAuthentication.applyToRequest(localVarRequestOptions));
|
|
513
|
-
authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
|
|
514
|
-
return authenticationPromise.then(() => {
|
|
515
|
-
if (Object.keys(localVarFormParams).length) {
|
|
516
|
-
if (localVarUseFormData) {
|
|
517
|
-
localVarRequestOptions.formData = localVarFormParams;
|
|
518
|
-
}
|
|
519
|
-
else {
|
|
520
|
-
localVarRequestOptions.form = localVarFormParams;
|
|
521
|
-
}
|
|
522
|
-
}
|
|
523
|
-
return new Promise((resolve, reject) => {
|
|
524
|
-
localVarRequest(localVarRequestOptions, (error, response, body) => {
|
|
525
|
-
if (error) {
|
|
526
|
-
reject(error);
|
|
527
|
-
}
|
|
528
|
-
else {
|
|
529
|
-
body = models_1.ObjectSerializer.deserialize(body, "GenericApiResponse");
|
|
530
|
-
const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
|
|
531
|
-
if (typeof body.success === 'boolean' && !body.success) {
|
|
532
|
-
reject(new Error(body.error || errString));
|
|
533
|
-
}
|
|
534
|
-
else if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
535
|
-
resolve(body);
|
|
536
|
-
}
|
|
537
|
-
else {
|
|
538
|
-
reject(errString);
|
|
539
|
-
}
|
|
540
|
-
}
|
|
541
|
-
});
|
|
542
|
-
});
|
|
543
|
-
});
|
|
544
|
-
}
|
|
545
|
-
/**
|
|
546
|
-
* Revoke an API key.
|
|
547
|
-
* @summary Revoke API key
|
|
548
|
-
* @param organizationId Organization ID
|
|
549
|
-
* @param apiKeyId API key ID
|
|
550
|
-
*/
|
|
551
|
-
async revokeOrganizationApiKey(organizationId, apiKeyId, options = { headers: {} }) {
|
|
552
|
-
const localVarPath = this.basePath + '/api/organizations/{organizationId}/apikeys/{apiKeyId}'
|
|
553
|
-
.replace('{' + 'organizationId' + '}', encodeURIComponent(String(organizationId)))
|
|
554
|
-
.replace('{' + 'apiKeyId' + '}', encodeURIComponent(String(apiKeyId)));
|
|
555
|
-
let localVarQueryParameters = {};
|
|
556
|
-
let localVarHeaderParams = Object.assign({
|
|
557
|
-
'User-Agent': 'edgeimpulse-api nodejs'
|
|
558
|
-
}, this.defaultHeaders);
|
|
559
|
-
const produces = ['application/json'];
|
|
560
|
-
// give precedence to 'application/json'
|
|
561
|
-
if (produces.indexOf('application/json') >= 0) {
|
|
562
|
-
localVarHeaderParams.Accept = 'application/json';
|
|
563
|
-
}
|
|
564
|
-
else {
|
|
565
|
-
localVarHeaderParams.Accept = produces.join(',');
|
|
566
|
-
}
|
|
567
|
-
let localVarFormParams = {};
|
|
568
|
-
// verify required parameter 'organizationId' is not null or undefined
|
|
569
|
-
if (organizationId === null || organizationId === undefined) {
|
|
570
|
-
throw new Error('Required parameter organizationId was null or undefined when calling revokeOrganizationApiKey.');
|
|
571
|
-
}
|
|
572
|
-
// verify required parameter 'apiKeyId' is not null or undefined
|
|
573
|
-
if (apiKeyId === null || apiKeyId === undefined) {
|
|
574
|
-
throw new Error('Required parameter apiKeyId was null or undefined when calling revokeOrganizationApiKey.');
|
|
575
|
-
}
|
|
576
|
-
Object.assign(localVarHeaderParams, options.headers);
|
|
577
|
-
Object.assign(localVarHeaderParams, this.opts.extraHeaders);
|
|
578
|
-
let localVarUseFormData = false;
|
|
579
|
-
let localVarRequestOptions = {
|
|
580
|
-
method: 'DELETE',
|
|
581
|
-
qs: localVarQueryParameters,
|
|
582
|
-
headers: localVarHeaderParams,
|
|
583
|
-
uri: localVarPath,
|
|
584
|
-
useQuerystring: this._useQuerystring,
|
|
585
|
-
agentOptions: { keepAlive: false },
|
|
586
|
-
json: true,
|
|
587
|
-
};
|
|
588
|
-
let authenticationPromise = Promise.resolve();
|
|
589
|
-
authenticationPromise = authenticationPromise.then(() => this.authentications.ApiKeyAuthentication.applyToRequest(localVarRequestOptions));
|
|
590
|
-
authenticationPromise = authenticationPromise.then(() => this.authentications.JWTAuthentication.applyToRequest(localVarRequestOptions));
|
|
591
|
-
authenticationPromise = authenticationPromise.then(() => this.authentications.JWTHttpHeaderAuthentication.applyToRequest(localVarRequestOptions));
|
|
592
|
-
authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
|
|
593
|
-
return authenticationPromise.then(() => {
|
|
594
|
-
if (Object.keys(localVarFormParams).length) {
|
|
595
|
-
if (localVarUseFormData) {
|
|
596
|
-
localVarRequestOptions.formData = localVarFormParams;
|
|
597
|
-
}
|
|
598
|
-
else {
|
|
599
|
-
localVarRequestOptions.form = localVarFormParams;
|
|
600
|
-
}
|
|
601
|
-
}
|
|
602
|
-
return new Promise((resolve, reject) => {
|
|
603
|
-
localVarRequest(localVarRequestOptions, (error, response, body) => {
|
|
604
|
-
if (error) {
|
|
605
|
-
reject(error);
|
|
606
|
-
}
|
|
607
|
-
else {
|
|
608
|
-
body = models_1.ObjectSerializer.deserialize(body, "GenericApiResponse");
|
|
609
|
-
const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
|
|
610
|
-
if (typeof body.success === 'boolean' && !body.success) {
|
|
611
|
-
reject(new Error(body.error || errString));
|
|
612
|
-
}
|
|
613
|
-
else if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
614
|
-
resolve(body);
|
|
615
|
-
}
|
|
616
|
-
else {
|
|
617
|
-
reject(errString);
|
|
618
|
-
}
|
|
619
|
-
}
|
|
620
|
-
});
|
|
621
|
-
});
|
|
622
|
-
});
|
|
623
|
-
}
|
|
624
|
-
/**
|
|
625
|
-
* Set the datasets a guest member has access to in an organization.
|
|
626
|
-
* @summary Set member datasets
|
|
627
|
-
* @param organizationId Organization ID
|
|
628
|
-
* @param memberId Member ID
|
|
629
|
-
* @param setMemberDatasetsRequest
|
|
630
|
-
*/
|
|
631
|
-
async setOrganizationMemberDatasets(organizationId, memberId, setMemberDatasetsRequest, options = { headers: {} }) {
|
|
632
|
-
const localVarPath = this.basePath + '/api/organizations/{organizationId}/members/{memberId}/datasets'
|
|
633
|
-
.replace('{' + 'organizationId' + '}', encodeURIComponent(String(organizationId)))
|
|
634
|
-
.replace('{' + 'memberId' + '}', encodeURIComponent(String(memberId)));
|
|
635
|
-
let localVarQueryParameters = {};
|
|
636
|
-
let localVarHeaderParams = Object.assign({
|
|
637
|
-
'User-Agent': 'edgeimpulse-api nodejs'
|
|
638
|
-
}, this.defaultHeaders);
|
|
639
|
-
const produces = ['application/json'];
|
|
640
|
-
// give precedence to 'application/json'
|
|
641
|
-
if (produces.indexOf('application/json') >= 0) {
|
|
642
|
-
localVarHeaderParams.Accept = 'application/json';
|
|
643
|
-
}
|
|
644
|
-
else {
|
|
645
|
-
localVarHeaderParams.Accept = produces.join(',');
|
|
646
|
-
}
|
|
647
|
-
let localVarFormParams = {};
|
|
648
|
-
// verify required parameter 'organizationId' is not null or undefined
|
|
649
|
-
if (organizationId === null || organizationId === undefined) {
|
|
650
|
-
throw new Error('Required parameter organizationId was null or undefined when calling setOrganizationMemberDatasets.');
|
|
651
|
-
}
|
|
652
|
-
// verify required parameter 'memberId' is not null or undefined
|
|
653
|
-
if (memberId === null || memberId === undefined) {
|
|
654
|
-
throw new Error('Required parameter memberId was null or undefined when calling setOrganizationMemberDatasets.');
|
|
655
|
-
}
|
|
656
|
-
// verify required parameter 'setMemberDatasetsRequest' is not null or undefined
|
|
657
|
-
if (setMemberDatasetsRequest === null || setMemberDatasetsRequest === undefined) {
|
|
658
|
-
throw new Error('Required parameter setMemberDatasetsRequest was null or undefined when calling setOrganizationMemberDatasets.');
|
|
659
|
-
}
|
|
660
|
-
Object.assign(localVarHeaderParams, options.headers);
|
|
661
|
-
Object.assign(localVarHeaderParams, this.opts.extraHeaders);
|
|
662
|
-
let localVarUseFormData = false;
|
|
663
|
-
let localVarRequestOptions = {
|
|
664
|
-
method: 'POST',
|
|
665
|
-
qs: localVarQueryParameters,
|
|
666
|
-
headers: localVarHeaderParams,
|
|
667
|
-
uri: localVarPath,
|
|
668
|
-
useQuerystring: this._useQuerystring,
|
|
669
|
-
agentOptions: { keepAlive: false },
|
|
670
|
-
json: true,
|
|
671
|
-
body: models_1.ObjectSerializer.serialize(setMemberDatasetsRequest, "SetMemberDatasetsRequest")
|
|
672
|
-
};
|
|
673
|
-
let authenticationPromise = Promise.resolve();
|
|
674
|
-
authenticationPromise = authenticationPromise.then(() => this.authentications.ApiKeyAuthentication.applyToRequest(localVarRequestOptions));
|
|
675
|
-
authenticationPromise = authenticationPromise.then(() => this.authentications.JWTAuthentication.applyToRequest(localVarRequestOptions));
|
|
676
|
-
authenticationPromise = authenticationPromise.then(() => this.authentications.JWTHttpHeaderAuthentication.applyToRequest(localVarRequestOptions));
|
|
677
|
-
authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
|
|
678
|
-
return authenticationPromise.then(() => {
|
|
679
|
-
if (Object.keys(localVarFormParams).length) {
|
|
680
|
-
if (localVarUseFormData) {
|
|
681
|
-
localVarRequestOptions.formData = localVarFormParams;
|
|
682
|
-
}
|
|
683
|
-
else {
|
|
684
|
-
localVarRequestOptions.form = localVarFormParams;
|
|
685
|
-
}
|
|
686
|
-
}
|
|
687
|
-
return new Promise((resolve, reject) => {
|
|
688
|
-
localVarRequest(localVarRequestOptions, (error, response, body) => {
|
|
689
|
-
if (error) {
|
|
690
|
-
reject(error);
|
|
691
|
-
}
|
|
692
|
-
else {
|
|
693
|
-
body = models_1.ObjectSerializer.deserialize(body, "GenericApiResponse");
|
|
694
|
-
const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
|
|
695
|
-
if (typeof body.success === 'boolean' && !body.success) {
|
|
696
|
-
reject(new Error(body.error || errString));
|
|
697
|
-
}
|
|
698
|
-
else if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
699
|
-
resolve(body);
|
|
700
|
-
}
|
|
701
|
-
else {
|
|
702
|
-
reject(errString);
|
|
703
|
-
}
|
|
704
|
-
}
|
|
705
|
-
});
|
|
706
|
-
});
|
|
707
|
-
});
|
|
708
|
-
}
|
|
709
|
-
/**
|
|
710
|
-
* Change the role of a member in an organization.
|
|
711
|
-
* @summary Set member role
|
|
712
|
-
* @param organizationId Organization ID
|
|
713
|
-
* @param memberId Member ID
|
|
714
|
-
* @param setMemberRoleRequest
|
|
715
|
-
*/
|
|
716
|
-
async setOrganizationMemberRole(organizationId, memberId, setMemberRoleRequest, options = { headers: {} }) {
|
|
717
|
-
const localVarPath = this.basePath + '/api/organizations/{organizationId}/members/{memberId}/role'
|
|
718
|
-
.replace('{' + 'organizationId' + '}', encodeURIComponent(String(organizationId)))
|
|
719
|
-
.replace('{' + 'memberId' + '}', encodeURIComponent(String(memberId)));
|
|
720
|
-
let localVarQueryParameters = {};
|
|
721
|
-
let localVarHeaderParams = Object.assign({
|
|
722
|
-
'User-Agent': 'edgeimpulse-api nodejs'
|
|
723
|
-
}, this.defaultHeaders);
|
|
724
|
-
const produces = ['application/json'];
|
|
725
|
-
// give precedence to 'application/json'
|
|
726
|
-
if (produces.indexOf('application/json') >= 0) {
|
|
727
|
-
localVarHeaderParams.Accept = 'application/json';
|
|
728
|
-
}
|
|
729
|
-
else {
|
|
730
|
-
localVarHeaderParams.Accept = produces.join(',');
|
|
731
|
-
}
|
|
732
|
-
let localVarFormParams = {};
|
|
733
|
-
// verify required parameter 'organizationId' is not null or undefined
|
|
734
|
-
if (organizationId === null || organizationId === undefined) {
|
|
735
|
-
throw new Error('Required parameter organizationId was null or undefined when calling setOrganizationMemberRole.');
|
|
736
|
-
}
|
|
737
|
-
// verify required parameter 'memberId' is not null or undefined
|
|
738
|
-
if (memberId === null || memberId === undefined) {
|
|
739
|
-
throw new Error('Required parameter memberId was null or undefined when calling setOrganizationMemberRole.');
|
|
740
|
-
}
|
|
741
|
-
// verify required parameter 'setMemberRoleRequest' is not null or undefined
|
|
742
|
-
if (setMemberRoleRequest === null || setMemberRoleRequest === undefined) {
|
|
743
|
-
throw new Error('Required parameter setMemberRoleRequest was null or undefined when calling setOrganizationMemberRole.');
|
|
744
|
-
}
|
|
745
|
-
Object.assign(localVarHeaderParams, options.headers);
|
|
746
|
-
Object.assign(localVarHeaderParams, this.opts.extraHeaders);
|
|
747
|
-
let localVarUseFormData = false;
|
|
748
|
-
let localVarRequestOptions = {
|
|
749
|
-
method: 'POST',
|
|
750
|
-
qs: localVarQueryParameters,
|
|
751
|
-
headers: localVarHeaderParams,
|
|
752
|
-
uri: localVarPath,
|
|
753
|
-
useQuerystring: this._useQuerystring,
|
|
754
|
-
agentOptions: { keepAlive: false },
|
|
755
|
-
json: true,
|
|
756
|
-
body: models_1.ObjectSerializer.serialize(setMemberRoleRequest, "SetMemberRoleRequest")
|
|
757
|
-
};
|
|
758
|
-
let authenticationPromise = Promise.resolve();
|
|
759
|
-
authenticationPromise = authenticationPromise.then(() => this.authentications.ApiKeyAuthentication.applyToRequest(localVarRequestOptions));
|
|
760
|
-
authenticationPromise = authenticationPromise.then(() => this.authentications.JWTAuthentication.applyToRequest(localVarRequestOptions));
|
|
761
|
-
authenticationPromise = authenticationPromise.then(() => this.authentications.JWTHttpHeaderAuthentication.applyToRequest(localVarRequestOptions));
|
|
762
|
-
authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
|
|
763
|
-
return authenticationPromise.then(() => {
|
|
764
|
-
if (Object.keys(localVarFormParams).length) {
|
|
765
|
-
if (localVarUseFormData) {
|
|
766
|
-
localVarRequestOptions.formData = localVarFormParams;
|
|
767
|
-
}
|
|
768
|
-
else {
|
|
769
|
-
localVarRequestOptions.form = localVarFormParams;
|
|
770
|
-
}
|
|
771
|
-
}
|
|
772
|
-
return new Promise((resolve, reject) => {
|
|
773
|
-
localVarRequest(localVarRequestOptions, (error, response, body) => {
|
|
774
|
-
if (error) {
|
|
775
|
-
reject(error);
|
|
776
|
-
}
|
|
777
|
-
else {
|
|
778
|
-
body = models_1.ObjectSerializer.deserialize(body, "GenericApiResponse");
|
|
779
|
-
const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
|
|
780
|
-
if (typeof body.success === 'boolean' && !body.success) {
|
|
781
|
-
reject(new Error(body.error || errString));
|
|
782
|
-
}
|
|
783
|
-
else if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
784
|
-
resolve(body);
|
|
785
|
-
}
|
|
786
|
-
else {
|
|
787
|
-
reject(errString);
|
|
788
|
-
}
|
|
789
|
-
}
|
|
790
|
-
});
|
|
791
|
-
});
|
|
792
|
-
});
|
|
793
|
-
}
|
|
794
|
-
/**
|
|
795
|
-
* Test endpoint that can only be reached with admin rights.
|
|
796
|
-
* @summary Admin endpoint
|
|
797
|
-
* @param organizationId Organization ID
|
|
798
|
-
*/
|
|
799
|
-
async testOrganizationAdmin(organizationId, options = { headers: {} }) {
|
|
800
|
-
const localVarPath = this.basePath + '/api/organizations/{organizationId}/test-admin'
|
|
801
|
-
.replace('{' + 'organizationId' + '}', encodeURIComponent(String(organizationId)));
|
|
802
|
-
let localVarQueryParameters = {};
|
|
803
|
-
let localVarHeaderParams = Object.assign({
|
|
804
|
-
'User-Agent': 'edgeimpulse-api nodejs'
|
|
805
|
-
}, this.defaultHeaders);
|
|
806
|
-
const produces = ['application/json'];
|
|
807
|
-
// give precedence to 'application/json'
|
|
808
|
-
if (produces.indexOf('application/json') >= 0) {
|
|
809
|
-
localVarHeaderParams.Accept = 'application/json';
|
|
810
|
-
}
|
|
811
|
-
else {
|
|
812
|
-
localVarHeaderParams.Accept = produces.join(',');
|
|
813
|
-
}
|
|
814
|
-
let localVarFormParams = {};
|
|
815
|
-
// verify required parameter 'organizationId' is not null or undefined
|
|
816
|
-
if (organizationId === null || organizationId === undefined) {
|
|
817
|
-
throw new Error('Required parameter organizationId was null or undefined when calling testOrganizationAdmin.');
|
|
818
|
-
}
|
|
819
|
-
Object.assign(localVarHeaderParams, options.headers);
|
|
820
|
-
Object.assign(localVarHeaderParams, this.opts.extraHeaders);
|
|
821
|
-
let localVarUseFormData = false;
|
|
822
|
-
let localVarRequestOptions = {
|
|
823
|
-
method: 'GET',
|
|
824
|
-
qs: localVarQueryParameters,
|
|
825
|
-
headers: localVarHeaderParams,
|
|
826
|
-
uri: localVarPath,
|
|
827
|
-
useQuerystring: this._useQuerystring,
|
|
828
|
-
agentOptions: { keepAlive: false },
|
|
829
|
-
json: true,
|
|
830
|
-
};
|
|
831
|
-
let authenticationPromise = Promise.resolve();
|
|
832
|
-
authenticationPromise = authenticationPromise.then(() => this.authentications.ApiKeyAuthentication.applyToRequest(localVarRequestOptions));
|
|
833
|
-
authenticationPromise = authenticationPromise.then(() => this.authentications.JWTAuthentication.applyToRequest(localVarRequestOptions));
|
|
834
|
-
authenticationPromise = authenticationPromise.then(() => this.authentications.JWTHttpHeaderAuthentication.applyToRequest(localVarRequestOptions));
|
|
835
|
-
authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
|
|
836
|
-
return authenticationPromise.then(() => {
|
|
837
|
-
if (Object.keys(localVarFormParams).length) {
|
|
838
|
-
if (localVarUseFormData) {
|
|
839
|
-
localVarRequestOptions.formData = localVarFormParams;
|
|
840
|
-
}
|
|
841
|
-
else {
|
|
842
|
-
localVarRequestOptions.form = localVarFormParams;
|
|
843
|
-
}
|
|
844
|
-
}
|
|
845
|
-
return new Promise((resolve, reject) => {
|
|
846
|
-
localVarRequest(localVarRequestOptions, (error, response, body) => {
|
|
847
|
-
if (error) {
|
|
848
|
-
reject(error);
|
|
849
|
-
}
|
|
850
|
-
else {
|
|
851
|
-
body = models_1.ObjectSerializer.deserialize(body, "GenericApiResponse");
|
|
852
|
-
const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
|
|
853
|
-
if (typeof body.success === 'boolean' && !body.success) {
|
|
854
|
-
reject(new Error(body.error || errString));
|
|
855
|
-
}
|
|
856
|
-
else if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
857
|
-
resolve(body);
|
|
858
|
-
}
|
|
859
|
-
else {
|
|
860
|
-
reject(errString);
|
|
861
|
-
}
|
|
862
|
-
}
|
|
863
|
-
});
|
|
864
|
-
});
|
|
865
|
-
});
|
|
866
|
-
}
|
|
867
|
-
/**
|
|
868
|
-
* Update organization properties such as name and logo.
|
|
869
|
-
* @summary Update organization
|
|
870
|
-
* @param organizationId Organization ID
|
|
871
|
-
* @param updateOrganizationRequest
|
|
872
|
-
*/
|
|
873
|
-
async updateOrganization(organizationId, updateOrganizationRequest, options = { headers: {} }) {
|
|
874
|
-
const localVarPath = this.basePath + '/api/organizations/{organizationId}'
|
|
875
|
-
.replace('{' + 'organizationId' + '}', encodeURIComponent(String(organizationId)));
|
|
876
|
-
let localVarQueryParameters = {};
|
|
877
|
-
let localVarHeaderParams = Object.assign({
|
|
878
|
-
'User-Agent': 'edgeimpulse-api nodejs'
|
|
879
|
-
}, this.defaultHeaders);
|
|
880
|
-
const produces = ['application/json'];
|
|
881
|
-
// give precedence to 'application/json'
|
|
882
|
-
if (produces.indexOf('application/json') >= 0) {
|
|
883
|
-
localVarHeaderParams.Accept = 'application/json';
|
|
884
|
-
}
|
|
885
|
-
else {
|
|
886
|
-
localVarHeaderParams.Accept = produces.join(',');
|
|
887
|
-
}
|
|
888
|
-
let localVarFormParams = {};
|
|
889
|
-
// verify required parameter 'organizationId' is not null or undefined
|
|
890
|
-
if (organizationId === null || organizationId === undefined) {
|
|
891
|
-
throw new Error('Required parameter organizationId was null or undefined when calling updateOrganization.');
|
|
892
|
-
}
|
|
893
|
-
// verify required parameter 'updateOrganizationRequest' is not null or undefined
|
|
894
|
-
if (updateOrganizationRequest === null || updateOrganizationRequest === undefined) {
|
|
895
|
-
throw new Error('Required parameter updateOrganizationRequest was null or undefined when calling updateOrganization.');
|
|
896
|
-
}
|
|
897
|
-
Object.assign(localVarHeaderParams, options.headers);
|
|
898
|
-
Object.assign(localVarHeaderParams, this.opts.extraHeaders);
|
|
899
|
-
let localVarUseFormData = false;
|
|
900
|
-
let localVarRequestOptions = {
|
|
901
|
-
method: 'POST',
|
|
902
|
-
qs: localVarQueryParameters,
|
|
903
|
-
headers: localVarHeaderParams,
|
|
904
|
-
uri: localVarPath,
|
|
905
|
-
useQuerystring: this._useQuerystring,
|
|
906
|
-
agentOptions: { keepAlive: false },
|
|
907
|
-
json: true,
|
|
908
|
-
body: models_1.ObjectSerializer.serialize(updateOrganizationRequest, "UpdateOrganizationRequest")
|
|
909
|
-
};
|
|
910
|
-
let authenticationPromise = Promise.resolve();
|
|
911
|
-
authenticationPromise = authenticationPromise.then(() => this.authentications.ApiKeyAuthentication.applyToRequest(localVarRequestOptions));
|
|
912
|
-
authenticationPromise = authenticationPromise.then(() => this.authentications.JWTAuthentication.applyToRequest(localVarRequestOptions));
|
|
913
|
-
authenticationPromise = authenticationPromise.then(() => this.authentications.JWTHttpHeaderAuthentication.applyToRequest(localVarRequestOptions));
|
|
914
|
-
authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
|
|
915
|
-
return authenticationPromise.then(() => {
|
|
916
|
-
if (Object.keys(localVarFormParams).length) {
|
|
917
|
-
if (localVarUseFormData) {
|
|
918
|
-
localVarRequestOptions.formData = localVarFormParams;
|
|
919
|
-
}
|
|
920
|
-
else {
|
|
921
|
-
localVarRequestOptions.form = localVarFormParams;
|
|
922
|
-
}
|
|
923
|
-
}
|
|
924
|
-
return new Promise((resolve, reject) => {
|
|
925
|
-
localVarRequest(localVarRequestOptions, (error, response, body) => {
|
|
926
|
-
if (error) {
|
|
927
|
-
reject(error);
|
|
928
|
-
}
|
|
929
|
-
else {
|
|
930
|
-
body = models_1.ObjectSerializer.deserialize(body, "GenericApiResponse");
|
|
931
|
-
const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
|
|
932
|
-
if (typeof body.success === 'boolean' && !body.success) {
|
|
933
|
-
reject(new Error(body.error || errString));
|
|
934
|
-
}
|
|
935
|
-
else if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
936
|
-
resolve(body);
|
|
937
|
-
}
|
|
938
|
-
else {
|
|
939
|
-
reject(errString);
|
|
940
|
-
}
|
|
941
|
-
}
|
|
942
|
-
});
|
|
943
|
-
});
|
|
944
|
-
});
|
|
945
|
-
}
|
|
946
|
-
/**
|
|
947
|
-
* Updates storage bucket details. This only updates fields that were set in the request body.
|
|
948
|
-
* @summary Update storage bucket
|
|
949
|
-
* @param organizationId Organization ID
|
|
950
|
-
* @param bucketId Bucket ID
|
|
951
|
-
* @param updateOrganizationBucketRequest
|
|
952
|
-
*/
|
|
953
|
-
async updateOrganizationBucket(organizationId, bucketId, updateOrganizationBucketRequest, options = { headers: {} }) {
|
|
954
|
-
const localVarPath = this.basePath + '/api/organizations/{organizationId}/buckets/{bucketId}'
|
|
955
|
-
.replace('{' + 'organizationId' + '}', encodeURIComponent(String(organizationId)))
|
|
956
|
-
.replace('{' + 'bucketId' + '}', encodeURIComponent(String(bucketId)));
|
|
957
|
-
let localVarQueryParameters = {};
|
|
958
|
-
let localVarHeaderParams = Object.assign({
|
|
959
|
-
'User-Agent': 'edgeimpulse-api nodejs'
|
|
960
|
-
}, this.defaultHeaders);
|
|
961
|
-
const produces = ['application/json'];
|
|
962
|
-
// give precedence to 'application/json'
|
|
963
|
-
if (produces.indexOf('application/json') >= 0) {
|
|
964
|
-
localVarHeaderParams.Accept = 'application/json';
|
|
965
|
-
}
|
|
966
|
-
else {
|
|
967
|
-
localVarHeaderParams.Accept = produces.join(',');
|
|
968
|
-
}
|
|
969
|
-
let localVarFormParams = {};
|
|
970
|
-
// verify required parameter 'organizationId' is not null or undefined
|
|
971
|
-
if (organizationId === null || organizationId === undefined) {
|
|
972
|
-
throw new Error('Required parameter organizationId was null or undefined when calling updateOrganizationBucket.');
|
|
973
|
-
}
|
|
974
|
-
// verify required parameter 'bucketId' is not null or undefined
|
|
975
|
-
if (bucketId === null || bucketId === undefined) {
|
|
976
|
-
throw new Error('Required parameter bucketId was null or undefined when calling updateOrganizationBucket.');
|
|
977
|
-
}
|
|
978
|
-
// verify required parameter 'updateOrganizationBucketRequest' is not null or undefined
|
|
979
|
-
if (updateOrganizationBucketRequest === null || updateOrganizationBucketRequest === undefined) {
|
|
980
|
-
throw new Error('Required parameter updateOrganizationBucketRequest was null or undefined when calling updateOrganizationBucket.');
|
|
981
|
-
}
|
|
982
|
-
Object.assign(localVarHeaderParams, options.headers);
|
|
983
|
-
Object.assign(localVarHeaderParams, this.opts.extraHeaders);
|
|
984
|
-
let localVarUseFormData = false;
|
|
985
|
-
let localVarRequestOptions = {
|
|
986
|
-
method: 'POST',
|
|
987
|
-
qs: localVarQueryParameters,
|
|
988
|
-
headers: localVarHeaderParams,
|
|
989
|
-
uri: localVarPath,
|
|
990
|
-
useQuerystring: this._useQuerystring,
|
|
991
|
-
agentOptions: { keepAlive: false },
|
|
992
|
-
json: true,
|
|
993
|
-
body: models_1.ObjectSerializer.serialize(updateOrganizationBucketRequest, "UpdateOrganizationBucketRequest")
|
|
994
|
-
};
|
|
995
|
-
let authenticationPromise = Promise.resolve();
|
|
996
|
-
authenticationPromise = authenticationPromise.then(() => this.authentications.ApiKeyAuthentication.applyToRequest(localVarRequestOptions));
|
|
997
|
-
authenticationPromise = authenticationPromise.then(() => this.authentications.JWTAuthentication.applyToRequest(localVarRequestOptions));
|
|
998
|
-
authenticationPromise = authenticationPromise.then(() => this.authentications.JWTHttpHeaderAuthentication.applyToRequest(localVarRequestOptions));
|
|
999
|
-
authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
|
|
1000
|
-
return authenticationPromise.then(() => {
|
|
1001
|
-
if (Object.keys(localVarFormParams).length) {
|
|
1002
|
-
if (localVarUseFormData) {
|
|
1003
|
-
localVarRequestOptions.formData = localVarFormParams;
|
|
1004
|
-
}
|
|
1005
|
-
else {
|
|
1006
|
-
localVarRequestOptions.form = localVarFormParams;
|
|
1007
|
-
}
|
|
1008
|
-
}
|
|
1009
|
-
return new Promise((resolve, reject) => {
|
|
1010
|
-
localVarRequest(localVarRequestOptions, (error, response, body) => {
|
|
1011
|
-
if (error) {
|
|
1012
|
-
reject(error);
|
|
1013
|
-
}
|
|
1014
|
-
else {
|
|
1015
|
-
body = models_1.ObjectSerializer.deserialize(body, "GenericApiResponse");
|
|
1016
|
-
const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
|
|
1017
|
-
if (typeof body.success === 'boolean' && !body.success) {
|
|
1018
|
-
reject(new Error(body.error || errString));
|
|
1019
|
-
}
|
|
1020
|
-
else if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
1021
|
-
resolve(body);
|
|
1022
|
-
}
|
|
1023
|
-
else {
|
|
1024
|
-
reject(errString);
|
|
1025
|
-
}
|
|
1026
|
-
}
|
|
1027
|
-
});
|
|
1028
|
-
});
|
|
1029
|
-
});
|
|
1030
|
-
}
|
|
1031
|
-
/**
|
|
1032
|
-
* Uploads and updates the organization header image
|
|
1033
|
-
* @summary Upload organization header image
|
|
1034
|
-
* @param organizationId Organization ID
|
|
1035
|
-
* @param image
|
|
1036
|
-
*/
|
|
1037
|
-
async uploadOrganizationHeader(organizationId, params, options = { headers: {} }) {
|
|
1038
|
-
const localVarPath = this.basePath + '/api/organizations/{organizationId}/header'
|
|
1039
|
-
.replace('{' + 'organizationId' + '}', encodeURIComponent(String(organizationId)));
|
|
1040
|
-
let localVarQueryParameters = {};
|
|
1041
|
-
let localVarHeaderParams = Object.assign({
|
|
1042
|
-
'User-Agent': 'edgeimpulse-api nodejs'
|
|
1043
|
-
}, this.defaultHeaders);
|
|
1044
|
-
const produces = ['application/json'];
|
|
1045
|
-
// give precedence to 'application/json'
|
|
1046
|
-
if (produces.indexOf('application/json') >= 0) {
|
|
1047
|
-
localVarHeaderParams.Accept = 'application/json';
|
|
1048
|
-
}
|
|
1049
|
-
else {
|
|
1050
|
-
localVarHeaderParams.Accept = produces.join(',');
|
|
1051
|
-
}
|
|
1052
|
-
let localVarFormParams = {};
|
|
1053
|
-
// verify required parameter 'organizationId' is not null or undefined
|
|
1054
|
-
if (organizationId === null || organizationId === undefined) {
|
|
1055
|
-
throw new Error('Required parameter organizationId was null or undefined when calling uploadOrganizationHeader.');
|
|
1056
|
-
}
|
|
1057
|
-
Object.assign(localVarHeaderParams, options.headers);
|
|
1058
|
-
Object.assign(localVarHeaderParams, this.opts.extraHeaders);
|
|
1059
|
-
let localVarUseFormData = false;
|
|
1060
|
-
if (params.image !== undefined) {
|
|
1061
|
-
localVarFormParams['image'] = params.image;
|
|
1062
|
-
}
|
|
1063
|
-
localVarUseFormData = true;
|
|
1064
|
-
let localVarRequestOptions = {
|
|
1065
|
-
method: 'POST',
|
|
1066
|
-
qs: localVarQueryParameters,
|
|
1067
|
-
headers: localVarHeaderParams,
|
|
1068
|
-
uri: localVarPath,
|
|
1069
|
-
useQuerystring: this._useQuerystring,
|
|
1070
|
-
agentOptions: { keepAlive: false },
|
|
1071
|
-
json: true,
|
|
1072
|
-
};
|
|
1073
|
-
let authenticationPromise = Promise.resolve();
|
|
1074
|
-
authenticationPromise = authenticationPromise.then(() => this.authentications.ApiKeyAuthentication.applyToRequest(localVarRequestOptions));
|
|
1075
|
-
authenticationPromise = authenticationPromise.then(() => this.authentications.JWTAuthentication.applyToRequest(localVarRequestOptions));
|
|
1076
|
-
authenticationPromise = authenticationPromise.then(() => this.authentications.JWTHttpHeaderAuthentication.applyToRequest(localVarRequestOptions));
|
|
1077
|
-
authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
|
|
1078
|
-
return authenticationPromise.then(() => {
|
|
1079
|
-
if (Object.keys(localVarFormParams).length) {
|
|
1080
|
-
if (localVarUseFormData) {
|
|
1081
|
-
localVarRequestOptions.formData = localVarFormParams;
|
|
1082
|
-
}
|
|
1083
|
-
else {
|
|
1084
|
-
localVarRequestOptions.form = localVarFormParams;
|
|
1085
|
-
}
|
|
1086
|
-
}
|
|
1087
|
-
return new Promise((resolve, reject) => {
|
|
1088
|
-
localVarRequest(localVarRequestOptions, (error, response, body) => {
|
|
1089
|
-
if (error) {
|
|
1090
|
-
reject(error);
|
|
1091
|
-
}
|
|
1092
|
-
else {
|
|
1093
|
-
body = models_1.ObjectSerializer.deserialize(body, "UploadAssetResponse");
|
|
1094
|
-
const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
|
|
1095
|
-
if (typeof body.success === 'boolean' && !body.success) {
|
|
1096
|
-
reject(new Error(body.error || errString));
|
|
1097
|
-
}
|
|
1098
|
-
else if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
1099
|
-
resolve(body);
|
|
1100
|
-
}
|
|
1101
|
-
else {
|
|
1102
|
-
reject(errString);
|
|
1103
|
-
}
|
|
1104
|
-
}
|
|
1105
|
-
});
|
|
1106
|
-
});
|
|
1107
|
-
});
|
|
1108
|
-
}
|
|
1109
|
-
/**
|
|
1110
|
-
* Uploads and updates the organization logo
|
|
1111
|
-
* @summary Upload organization logo
|
|
1112
|
-
* @param organizationId Organization ID
|
|
1113
|
-
* @param image
|
|
1114
|
-
*/
|
|
1115
|
-
async uploadOrganizationLogo(organizationId, params, options = { headers: {} }) {
|
|
1116
|
-
const localVarPath = this.basePath + '/api/organizations/{organizationId}/logo'
|
|
1117
|
-
.replace('{' + 'organizationId' + '}', encodeURIComponent(String(organizationId)));
|
|
1118
|
-
let localVarQueryParameters = {};
|
|
1119
|
-
let localVarHeaderParams = Object.assign({
|
|
1120
|
-
'User-Agent': 'edgeimpulse-api nodejs'
|
|
1121
|
-
}, this.defaultHeaders);
|
|
1122
|
-
const produces = ['application/json'];
|
|
1123
|
-
// give precedence to 'application/json'
|
|
1124
|
-
if (produces.indexOf('application/json') >= 0) {
|
|
1125
|
-
localVarHeaderParams.Accept = 'application/json';
|
|
1126
|
-
}
|
|
1127
|
-
else {
|
|
1128
|
-
localVarHeaderParams.Accept = produces.join(',');
|
|
1129
|
-
}
|
|
1130
|
-
let localVarFormParams = {};
|
|
1131
|
-
// verify required parameter 'organizationId' is not null or undefined
|
|
1132
|
-
if (organizationId === null || organizationId === undefined) {
|
|
1133
|
-
throw new Error('Required parameter organizationId was null or undefined when calling uploadOrganizationLogo.');
|
|
1134
|
-
}
|
|
1135
|
-
Object.assign(localVarHeaderParams, options.headers);
|
|
1136
|
-
Object.assign(localVarHeaderParams, this.opts.extraHeaders);
|
|
1137
|
-
let localVarUseFormData = false;
|
|
1138
|
-
if (params.image !== undefined) {
|
|
1139
|
-
localVarFormParams['image'] = params.image;
|
|
1140
|
-
}
|
|
1141
|
-
localVarUseFormData = true;
|
|
1142
|
-
let localVarRequestOptions = {
|
|
1143
|
-
method: 'POST',
|
|
1144
|
-
qs: localVarQueryParameters,
|
|
1145
|
-
headers: localVarHeaderParams,
|
|
1146
|
-
uri: localVarPath,
|
|
1147
|
-
useQuerystring: this._useQuerystring,
|
|
1148
|
-
agentOptions: { keepAlive: false },
|
|
1149
|
-
json: true,
|
|
1150
|
-
};
|
|
1151
|
-
let authenticationPromise = Promise.resolve();
|
|
1152
|
-
authenticationPromise = authenticationPromise.then(() => this.authentications.ApiKeyAuthentication.applyToRequest(localVarRequestOptions));
|
|
1153
|
-
authenticationPromise = authenticationPromise.then(() => this.authentications.JWTAuthentication.applyToRequest(localVarRequestOptions));
|
|
1154
|
-
authenticationPromise = authenticationPromise.then(() => this.authentications.JWTHttpHeaderAuthentication.applyToRequest(localVarRequestOptions));
|
|
1155
|
-
authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
|
|
1156
|
-
return authenticationPromise.then(() => {
|
|
1157
|
-
if (Object.keys(localVarFormParams).length) {
|
|
1158
|
-
if (localVarUseFormData) {
|
|
1159
|
-
localVarRequestOptions.formData = localVarFormParams;
|
|
1160
|
-
}
|
|
1161
|
-
else {
|
|
1162
|
-
localVarRequestOptions.form = localVarFormParams;
|
|
1163
|
-
}
|
|
1164
|
-
}
|
|
1165
|
-
return new Promise((resolve, reject) => {
|
|
1166
|
-
localVarRequest(localVarRequestOptions, (error, response, body) => {
|
|
1167
|
-
if (error) {
|
|
1168
|
-
reject(error);
|
|
1169
|
-
}
|
|
1170
|
-
else {
|
|
1171
|
-
body = models_1.ObjectSerializer.deserialize(body, "UploadAssetResponse");
|
|
1172
|
-
const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
|
|
1173
|
-
if (typeof body.success === 'boolean' && !body.success) {
|
|
1174
|
-
reject(new Error(body.error || errString));
|
|
1175
|
-
}
|
|
1176
|
-
else if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
1177
|
-
resolve(body);
|
|
1178
|
-
}
|
|
1179
|
-
else {
|
|
1180
|
-
reject(errString);
|
|
1181
|
-
}
|
|
1182
|
-
}
|
|
1183
|
-
});
|
|
1184
|
-
});
|
|
1185
|
-
});
|
|
1186
|
-
}
|
|
1187
|
-
/**
|
|
1188
|
-
* White label admin only API to add a user to an organization. If no user is provided, the current user is used.
|
|
1189
|
-
* @summary Add user to an organization
|
|
1190
|
-
* @param organizationId Organization ID
|
|
1191
|
-
* @param innerOrganizationId Organization ID within the context of a white label
|
|
1192
|
-
* @param adminAddOrganizationUserRequest
|
|
1193
|
-
*/
|
|
1194
|
-
async whitelabelAdminAddUserToOrganization(organizationId, innerOrganizationId, adminAddOrganizationUserRequest, options = { headers: {} }) {
|
|
1195
|
-
const localVarPath = this.basePath + '/api/organizations/{organizationId}/whitelabel/organizations/{innerOrganizationId}/members'
|
|
1196
|
-
.replace('{' + 'organizationId' + '}', encodeURIComponent(String(organizationId)))
|
|
1197
|
-
.replace('{' + 'innerOrganizationId' + '}', encodeURIComponent(String(innerOrganizationId)));
|
|
1198
|
-
let localVarQueryParameters = {};
|
|
1199
|
-
let localVarHeaderParams = Object.assign({
|
|
1200
|
-
'User-Agent': 'edgeimpulse-api nodejs'
|
|
1201
|
-
}, this.defaultHeaders);
|
|
1202
|
-
const produces = ['application/json'];
|
|
1203
|
-
// give precedence to 'application/json'
|
|
1204
|
-
if (produces.indexOf('application/json') >= 0) {
|
|
1205
|
-
localVarHeaderParams.Accept = 'application/json';
|
|
1206
|
-
}
|
|
1207
|
-
else {
|
|
1208
|
-
localVarHeaderParams.Accept = produces.join(',');
|
|
1209
|
-
}
|
|
1210
|
-
let localVarFormParams = {};
|
|
1211
|
-
// verify required parameter 'organizationId' is not null or undefined
|
|
1212
|
-
if (organizationId === null || organizationId === undefined) {
|
|
1213
|
-
throw new Error('Required parameter organizationId was null or undefined when calling whitelabelAdminAddUserToOrganization.');
|
|
1214
|
-
}
|
|
1215
|
-
// verify required parameter 'innerOrganizationId' is not null or undefined
|
|
1216
|
-
if (innerOrganizationId === null || innerOrganizationId === undefined) {
|
|
1217
|
-
throw new Error('Required parameter innerOrganizationId was null or undefined when calling whitelabelAdminAddUserToOrganization.');
|
|
1218
|
-
}
|
|
1219
|
-
Object.assign(localVarHeaderParams, options.headers);
|
|
1220
|
-
Object.assign(localVarHeaderParams, this.opts.extraHeaders);
|
|
1221
|
-
let localVarUseFormData = false;
|
|
1222
|
-
let localVarRequestOptions = {
|
|
1223
|
-
method: 'POST',
|
|
1224
|
-
qs: localVarQueryParameters,
|
|
1225
|
-
headers: localVarHeaderParams,
|
|
1226
|
-
uri: localVarPath,
|
|
1227
|
-
useQuerystring: this._useQuerystring,
|
|
1228
|
-
agentOptions: { keepAlive: false },
|
|
1229
|
-
json: true,
|
|
1230
|
-
body: models_1.ObjectSerializer.serialize(adminAddOrganizationUserRequest, "AdminAddOrganizationUserRequest")
|
|
1231
|
-
};
|
|
1232
|
-
let authenticationPromise = Promise.resolve();
|
|
1233
|
-
authenticationPromise = authenticationPromise.then(() => this.authentications.ApiKeyAuthentication.applyToRequest(localVarRequestOptions));
|
|
1234
|
-
authenticationPromise = authenticationPromise.then(() => this.authentications.JWTAuthentication.applyToRequest(localVarRequestOptions));
|
|
1235
|
-
authenticationPromise = authenticationPromise.then(() => this.authentications.JWTHttpHeaderAuthentication.applyToRequest(localVarRequestOptions));
|
|
1236
|
-
authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
|
|
1237
|
-
return authenticationPromise.then(() => {
|
|
1238
|
-
if (Object.keys(localVarFormParams).length) {
|
|
1239
|
-
if (localVarUseFormData) {
|
|
1240
|
-
localVarRequestOptions.formData = localVarFormParams;
|
|
1241
|
-
}
|
|
1242
|
-
else {
|
|
1243
|
-
localVarRequestOptions.form = localVarFormParams;
|
|
1244
|
-
}
|
|
1245
|
-
}
|
|
1246
|
-
return new Promise((resolve, reject) => {
|
|
1247
|
-
localVarRequest(localVarRequestOptions, (error, response, body) => {
|
|
1248
|
-
if (error) {
|
|
1249
|
-
reject(error);
|
|
1250
|
-
}
|
|
1251
|
-
else {
|
|
1252
|
-
body = models_1.ObjectSerializer.deserialize(body, "GenericApiResponse");
|
|
1253
|
-
const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
|
|
1254
|
-
if (typeof body.success === 'boolean' && !body.success) {
|
|
1255
|
-
reject(new Error(body.error || errString));
|
|
1256
|
-
}
|
|
1257
|
-
else if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
1258
|
-
resolve(body);
|
|
1259
|
-
}
|
|
1260
|
-
else {
|
|
1261
|
-
reject(errString);
|
|
1262
|
-
}
|
|
1263
|
-
}
|
|
1264
|
-
});
|
|
1265
|
-
});
|
|
1266
|
-
});
|
|
1267
|
-
}
|
|
1268
|
-
/**
|
|
1269
|
-
* White label admin only API to add a user to a project. If no user is provided, the current user is used.
|
|
1270
|
-
* @summary Add user to a project
|
|
1271
|
-
* @param organizationId Organization ID
|
|
1272
|
-
* @param projectId Project ID
|
|
1273
|
-
* @param adminAddProjectUserRequest
|
|
1274
|
-
*/
|
|
1275
|
-
async whitelabelAdminAddUserToProject(organizationId, projectId, adminAddProjectUserRequest, options = { headers: {} }) {
|
|
1276
|
-
const localVarPath = this.basePath + '/api/organizations/{organizationId}/whitelabel/projects/{projectId}/members'
|
|
1277
|
-
.replace('{' + 'organizationId' + '}', encodeURIComponent(String(organizationId)))
|
|
1278
|
-
.replace('{' + 'projectId' + '}', encodeURIComponent(String(projectId)));
|
|
1279
|
-
let localVarQueryParameters = {};
|
|
1280
|
-
let localVarHeaderParams = Object.assign({
|
|
1281
|
-
'User-Agent': 'edgeimpulse-api nodejs'
|
|
1282
|
-
}, this.defaultHeaders);
|
|
1283
|
-
const produces = ['application/json'];
|
|
1284
|
-
// give precedence to 'application/json'
|
|
1285
|
-
if (produces.indexOf('application/json') >= 0) {
|
|
1286
|
-
localVarHeaderParams.Accept = 'application/json';
|
|
1287
|
-
}
|
|
1288
|
-
else {
|
|
1289
|
-
localVarHeaderParams.Accept = produces.join(',');
|
|
1290
|
-
}
|
|
1291
|
-
let localVarFormParams = {};
|
|
1292
|
-
// verify required parameter 'organizationId' is not null or undefined
|
|
1293
|
-
if (organizationId === null || organizationId === undefined) {
|
|
1294
|
-
throw new Error('Required parameter organizationId was null or undefined when calling whitelabelAdminAddUserToProject.');
|
|
1295
|
-
}
|
|
1296
|
-
// verify required parameter 'projectId' is not null or undefined
|
|
1297
|
-
if (projectId === null || projectId === undefined) {
|
|
1298
|
-
throw new Error('Required parameter projectId was null or undefined when calling whitelabelAdminAddUserToProject.');
|
|
1299
|
-
}
|
|
1300
|
-
Object.assign(localVarHeaderParams, options.headers);
|
|
1301
|
-
Object.assign(localVarHeaderParams, this.opts.extraHeaders);
|
|
1302
|
-
let localVarUseFormData = false;
|
|
1303
|
-
let localVarRequestOptions = {
|
|
1304
|
-
method: 'POST',
|
|
1305
|
-
qs: localVarQueryParameters,
|
|
1306
|
-
headers: localVarHeaderParams,
|
|
1307
|
-
uri: localVarPath,
|
|
1308
|
-
useQuerystring: this._useQuerystring,
|
|
1309
|
-
agentOptions: { keepAlive: false },
|
|
1310
|
-
json: true,
|
|
1311
|
-
body: models_1.ObjectSerializer.serialize(adminAddProjectUserRequest, "AdminAddProjectUserRequest")
|
|
1312
|
-
};
|
|
1313
|
-
let authenticationPromise = Promise.resolve();
|
|
1314
|
-
authenticationPromise = authenticationPromise.then(() => this.authentications.ApiKeyAuthentication.applyToRequest(localVarRequestOptions));
|
|
1315
|
-
authenticationPromise = authenticationPromise.then(() => this.authentications.JWTAuthentication.applyToRequest(localVarRequestOptions));
|
|
1316
|
-
authenticationPromise = authenticationPromise.then(() => this.authentications.JWTHttpHeaderAuthentication.applyToRequest(localVarRequestOptions));
|
|
1317
|
-
authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
|
|
1318
|
-
return authenticationPromise.then(() => {
|
|
1319
|
-
if (Object.keys(localVarFormParams).length) {
|
|
1320
|
-
if (localVarUseFormData) {
|
|
1321
|
-
localVarRequestOptions.formData = localVarFormParams;
|
|
1322
|
-
}
|
|
1323
|
-
else {
|
|
1324
|
-
localVarRequestOptions.form = localVarFormParams;
|
|
1325
|
-
}
|
|
1326
|
-
}
|
|
1327
|
-
return new Promise((resolve, reject) => {
|
|
1328
|
-
localVarRequest(localVarRequestOptions, (error, response, body) => {
|
|
1329
|
-
if (error) {
|
|
1330
|
-
reject(error);
|
|
1331
|
-
}
|
|
1332
|
-
else {
|
|
1333
|
-
body = models_1.ObjectSerializer.deserialize(body, "GenericApiResponse");
|
|
1334
|
-
const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
|
|
1335
|
-
if (typeof body.success === 'boolean' && !body.success) {
|
|
1336
|
-
reject(new Error(body.error || errString));
|
|
1337
|
-
}
|
|
1338
|
-
else if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
1339
|
-
resolve(body);
|
|
1340
|
-
}
|
|
1341
|
-
else {
|
|
1342
|
-
reject(errString);
|
|
1343
|
-
}
|
|
1344
|
-
}
|
|
1345
|
-
});
|
|
1346
|
-
});
|
|
1347
|
-
});
|
|
1348
|
-
}
|
|
1349
|
-
/**
|
|
1350
|
-
* Create a new organization. This is an internal API only available to white label admins
|
|
1351
|
-
* @summary Create new organization within white label context
|
|
1352
|
-
* @param organizationId Organization ID
|
|
1353
|
-
* @param whitelabelAdminCreateOrganizationRequest
|
|
1354
|
-
*/
|
|
1355
|
-
async whitelabelAdminCreateOrganization(organizationId, whitelabelAdminCreateOrganizationRequest, options = { headers: {} }) {
|
|
1356
|
-
const localVarPath = this.basePath + '/api/organizations/{organizationId}/whitelabel/organizations'
|
|
1357
|
-
.replace('{' + 'organizationId' + '}', encodeURIComponent(String(organizationId)));
|
|
1358
|
-
let localVarQueryParameters = {};
|
|
1359
|
-
let localVarHeaderParams = Object.assign({
|
|
1360
|
-
'User-Agent': 'edgeimpulse-api nodejs'
|
|
1361
|
-
}, this.defaultHeaders);
|
|
1362
|
-
const produces = ['application/json'];
|
|
1363
|
-
// give precedence to 'application/json'
|
|
1364
|
-
if (produces.indexOf('application/json') >= 0) {
|
|
1365
|
-
localVarHeaderParams.Accept = 'application/json';
|
|
1366
|
-
}
|
|
1367
|
-
else {
|
|
1368
|
-
localVarHeaderParams.Accept = produces.join(',');
|
|
1369
|
-
}
|
|
1370
|
-
let localVarFormParams = {};
|
|
1371
|
-
// verify required parameter 'organizationId' is not null or undefined
|
|
1372
|
-
if (organizationId === null || organizationId === undefined) {
|
|
1373
|
-
throw new Error('Required parameter organizationId was null or undefined when calling whitelabelAdminCreateOrganization.');
|
|
1374
|
-
}
|
|
1375
|
-
// verify required parameter 'whitelabelAdminCreateOrganizationRequest' is not null or undefined
|
|
1376
|
-
if (whitelabelAdminCreateOrganizationRequest === null || whitelabelAdminCreateOrganizationRequest === undefined) {
|
|
1377
|
-
throw new Error('Required parameter whitelabelAdminCreateOrganizationRequest was null or undefined when calling whitelabelAdminCreateOrganization.');
|
|
1378
|
-
}
|
|
1379
|
-
Object.assign(localVarHeaderParams, options.headers);
|
|
1380
|
-
Object.assign(localVarHeaderParams, this.opts.extraHeaders);
|
|
1381
|
-
let localVarUseFormData = false;
|
|
1382
|
-
let localVarRequestOptions = {
|
|
1383
|
-
method: 'POST',
|
|
1384
|
-
qs: localVarQueryParameters,
|
|
1385
|
-
headers: localVarHeaderParams,
|
|
1386
|
-
uri: localVarPath,
|
|
1387
|
-
useQuerystring: this._useQuerystring,
|
|
1388
|
-
agentOptions: { keepAlive: false },
|
|
1389
|
-
json: true,
|
|
1390
|
-
body: models_1.ObjectSerializer.serialize(whitelabelAdminCreateOrganizationRequest, "WhitelabelAdminCreateOrganizationRequest")
|
|
1391
|
-
};
|
|
1392
|
-
let authenticationPromise = Promise.resolve();
|
|
1393
|
-
authenticationPromise = authenticationPromise.then(() => this.authentications.ApiKeyAuthentication.applyToRequest(localVarRequestOptions));
|
|
1394
|
-
authenticationPromise = authenticationPromise.then(() => this.authentications.JWTAuthentication.applyToRequest(localVarRequestOptions));
|
|
1395
|
-
authenticationPromise = authenticationPromise.then(() => this.authentications.JWTHttpHeaderAuthentication.applyToRequest(localVarRequestOptions));
|
|
1396
|
-
authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
|
|
1397
|
-
return authenticationPromise.then(() => {
|
|
1398
|
-
if (Object.keys(localVarFormParams).length) {
|
|
1399
|
-
if (localVarUseFormData) {
|
|
1400
|
-
localVarRequestOptions.formData = localVarFormParams;
|
|
1401
|
-
}
|
|
1402
|
-
else {
|
|
1403
|
-
localVarRequestOptions.form = localVarFormParams;
|
|
1404
|
-
}
|
|
1405
|
-
}
|
|
1406
|
-
return new Promise((resolve, reject) => {
|
|
1407
|
-
localVarRequest(localVarRequestOptions, (error, response, body) => {
|
|
1408
|
-
if (error) {
|
|
1409
|
-
reject(error);
|
|
1410
|
-
}
|
|
1411
|
-
else {
|
|
1412
|
-
body = models_1.ObjectSerializer.deserialize(body, "CreateOrganizationResponse");
|
|
1413
|
-
const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
|
|
1414
|
-
if (typeof body.success === 'boolean' && !body.success) {
|
|
1415
|
-
reject(new Error(body.error || errString));
|
|
1416
|
-
}
|
|
1417
|
-
else if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
1418
|
-
resolve(body);
|
|
1419
|
-
}
|
|
1420
|
-
else {
|
|
1421
|
-
reject(errString);
|
|
1422
|
-
}
|
|
1423
|
-
}
|
|
1424
|
-
});
|
|
1425
|
-
});
|
|
1426
|
-
});
|
|
1427
|
-
}
|
|
1428
|
-
/**
|
|
1429
|
-
* Create a new free tier project. This is an internal API only available to white label admins.
|
|
1430
|
-
* @summary Create a new project within white label context.
|
|
1431
|
-
* @param organizationId Organization ID
|
|
1432
|
-
* @param whitelabelAdminCreateProjectRequest
|
|
1433
|
-
*/
|
|
1434
|
-
async whitelabelAdminCreateProject(organizationId, whitelabelAdminCreateProjectRequest, options = { headers: {} }) {
|
|
1435
|
-
const localVarPath = this.basePath + '/api/organizations/{organizationId}/whitelabel/projects'
|
|
1436
|
-
.replace('{' + 'organizationId' + '}', encodeURIComponent(String(organizationId)));
|
|
1437
|
-
let localVarQueryParameters = {};
|
|
1438
|
-
let localVarHeaderParams = Object.assign({
|
|
1439
|
-
'User-Agent': 'edgeimpulse-api nodejs'
|
|
1440
|
-
}, this.defaultHeaders);
|
|
1441
|
-
const produces = ['application/json'];
|
|
1442
|
-
// give precedence to 'application/json'
|
|
1443
|
-
if (produces.indexOf('application/json') >= 0) {
|
|
1444
|
-
localVarHeaderParams.Accept = 'application/json';
|
|
1445
|
-
}
|
|
1446
|
-
else {
|
|
1447
|
-
localVarHeaderParams.Accept = produces.join(',');
|
|
1448
|
-
}
|
|
1449
|
-
let localVarFormParams = {};
|
|
1450
|
-
// verify required parameter 'organizationId' is not null or undefined
|
|
1451
|
-
if (organizationId === null || organizationId === undefined) {
|
|
1452
|
-
throw new Error('Required parameter organizationId was null or undefined when calling whitelabelAdminCreateProject.');
|
|
1453
|
-
}
|
|
1454
|
-
// verify required parameter 'whitelabelAdminCreateProjectRequest' is not null or undefined
|
|
1455
|
-
if (whitelabelAdminCreateProjectRequest === null || whitelabelAdminCreateProjectRequest === undefined) {
|
|
1456
|
-
throw new Error('Required parameter whitelabelAdminCreateProjectRequest was null or undefined when calling whitelabelAdminCreateProject.');
|
|
1457
|
-
}
|
|
1458
|
-
Object.assign(localVarHeaderParams, options.headers);
|
|
1459
|
-
Object.assign(localVarHeaderParams, this.opts.extraHeaders);
|
|
1460
|
-
let localVarUseFormData = false;
|
|
1461
|
-
let localVarRequestOptions = {
|
|
1462
|
-
method: 'POST',
|
|
1463
|
-
qs: localVarQueryParameters,
|
|
1464
|
-
headers: localVarHeaderParams,
|
|
1465
|
-
uri: localVarPath,
|
|
1466
|
-
useQuerystring: this._useQuerystring,
|
|
1467
|
-
agentOptions: { keepAlive: false },
|
|
1468
|
-
json: true,
|
|
1469
|
-
body: models_1.ObjectSerializer.serialize(whitelabelAdminCreateProjectRequest, "WhitelabelAdminCreateProjectRequest")
|
|
1470
|
-
};
|
|
1471
|
-
let authenticationPromise = Promise.resolve();
|
|
1472
|
-
authenticationPromise = authenticationPromise.then(() => this.authentications.ApiKeyAuthentication.applyToRequest(localVarRequestOptions));
|
|
1473
|
-
authenticationPromise = authenticationPromise.then(() => this.authentications.JWTAuthentication.applyToRequest(localVarRequestOptions));
|
|
1474
|
-
authenticationPromise = authenticationPromise.then(() => this.authentications.JWTHttpHeaderAuthentication.applyToRequest(localVarRequestOptions));
|
|
1475
|
-
authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
|
|
1476
|
-
return authenticationPromise.then(() => {
|
|
1477
|
-
if (Object.keys(localVarFormParams).length) {
|
|
1478
|
-
if (localVarUseFormData) {
|
|
1479
|
-
localVarRequestOptions.formData = localVarFormParams;
|
|
1480
|
-
}
|
|
1481
|
-
else {
|
|
1482
|
-
localVarRequestOptions.form = localVarFormParams;
|
|
1483
|
-
}
|
|
1484
|
-
}
|
|
1485
|
-
return new Promise((resolve, reject) => {
|
|
1486
|
-
localVarRequest(localVarRequestOptions, (error, response, body) => {
|
|
1487
|
-
if (error) {
|
|
1488
|
-
reject(error);
|
|
1489
|
-
}
|
|
1490
|
-
else {
|
|
1491
|
-
body = models_1.ObjectSerializer.deserialize(body, "CreateProjectResponse");
|
|
1492
|
-
const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
|
|
1493
|
-
if (typeof body.success === 'boolean' && !body.success) {
|
|
1494
|
-
reject(new Error(body.error || errString));
|
|
1495
|
-
}
|
|
1496
|
-
else if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
1497
|
-
resolve(body);
|
|
1498
|
-
}
|
|
1499
|
-
else {
|
|
1500
|
-
reject(errString);
|
|
1501
|
-
}
|
|
1502
|
-
}
|
|
1503
|
-
});
|
|
1504
|
-
});
|
|
1505
|
-
});
|
|
1506
|
-
}
|
|
1507
|
-
/**
|
|
1508
|
-
* White label admin only API to get the white label information.
|
|
1509
|
-
* @summary Get white label information
|
|
1510
|
-
* @param organizationId Organization ID
|
|
1511
|
-
*/
|
|
1512
|
-
async whitelabelAdminGetInfo(organizationId, options = { headers: {} }) {
|
|
1513
|
-
const localVarPath = this.basePath + '/api/organizations/{organizationId}/whitelabel'
|
|
1514
|
-
.replace('{' + 'organizationId' + '}', encodeURIComponent(String(organizationId)));
|
|
1515
|
-
let localVarQueryParameters = {};
|
|
1516
|
-
let localVarHeaderParams = Object.assign({
|
|
1517
|
-
'User-Agent': 'edgeimpulse-api nodejs'
|
|
1518
|
-
}, this.defaultHeaders);
|
|
1519
|
-
const produces = ['application/json'];
|
|
1520
|
-
// give precedence to 'application/json'
|
|
1521
|
-
if (produces.indexOf('application/json') >= 0) {
|
|
1522
|
-
localVarHeaderParams.Accept = 'application/json';
|
|
1523
|
-
}
|
|
1524
|
-
else {
|
|
1525
|
-
localVarHeaderParams.Accept = produces.join(',');
|
|
1526
|
-
}
|
|
1527
|
-
let localVarFormParams = {};
|
|
1528
|
-
// verify required parameter 'organizationId' is not null or undefined
|
|
1529
|
-
if (organizationId === null || organizationId === undefined) {
|
|
1530
|
-
throw new Error('Required parameter organizationId was null or undefined when calling whitelabelAdminGetInfo.');
|
|
1531
|
-
}
|
|
1532
|
-
Object.assign(localVarHeaderParams, options.headers);
|
|
1533
|
-
Object.assign(localVarHeaderParams, this.opts.extraHeaders);
|
|
1534
|
-
let localVarUseFormData = false;
|
|
1535
|
-
let localVarRequestOptions = {
|
|
1536
|
-
method: 'GET',
|
|
1537
|
-
qs: localVarQueryParameters,
|
|
1538
|
-
headers: localVarHeaderParams,
|
|
1539
|
-
uri: localVarPath,
|
|
1540
|
-
useQuerystring: this._useQuerystring,
|
|
1541
|
-
agentOptions: { keepAlive: false },
|
|
1542
|
-
json: true,
|
|
1543
|
-
};
|
|
1544
|
-
let authenticationPromise = Promise.resolve();
|
|
1545
|
-
authenticationPromise = authenticationPromise.then(() => this.authentications.ApiKeyAuthentication.applyToRequest(localVarRequestOptions));
|
|
1546
|
-
authenticationPromise = authenticationPromise.then(() => this.authentications.JWTAuthentication.applyToRequest(localVarRequestOptions));
|
|
1547
|
-
authenticationPromise = authenticationPromise.then(() => this.authentications.JWTHttpHeaderAuthentication.applyToRequest(localVarRequestOptions));
|
|
1548
|
-
authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
|
|
1549
|
-
return authenticationPromise.then(() => {
|
|
1550
|
-
if (Object.keys(localVarFormParams).length) {
|
|
1551
|
-
if (localVarUseFormData) {
|
|
1552
|
-
localVarRequestOptions.formData = localVarFormParams;
|
|
1553
|
-
}
|
|
1554
|
-
else {
|
|
1555
|
-
localVarRequestOptions.form = localVarFormParams;
|
|
1556
|
-
}
|
|
1557
|
-
}
|
|
1558
|
-
return new Promise((resolve, reject) => {
|
|
1559
|
-
localVarRequest(localVarRequestOptions, (error, response, body) => {
|
|
1560
|
-
if (error) {
|
|
1561
|
-
reject(error);
|
|
1562
|
-
}
|
|
1563
|
-
else {
|
|
1564
|
-
body = models_1.ObjectSerializer.deserialize(body, "GetWhitelabelResponse");
|
|
1565
|
-
const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
|
|
1566
|
-
if (typeof body.success === 'boolean' && !body.success) {
|
|
1567
|
-
reject(new Error(body.error || errString));
|
|
1568
|
-
}
|
|
1569
|
-
else if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
1570
|
-
resolve(body);
|
|
1571
|
-
}
|
|
1572
|
-
else {
|
|
1573
|
-
reject(errString);
|
|
1574
|
-
}
|
|
1575
|
-
}
|
|
1576
|
-
});
|
|
1577
|
-
});
|
|
1578
|
-
});
|
|
1579
|
-
}
|
|
1580
|
-
/**
|
|
1581
|
-
* White label admin only API to get global metrics.
|
|
1582
|
-
* @summary Get global white label metrics
|
|
1583
|
-
* @param organizationId Organization ID
|
|
1584
|
-
*/
|
|
1585
|
-
async whitelabelAdminGetMetrics(organizationId, options = { headers: {} }) {
|
|
1586
|
-
const localVarPath = this.basePath + '/api/organizations/{organizationId}/whitelabel/metrics'
|
|
1587
|
-
.replace('{' + 'organizationId' + '}', encodeURIComponent(String(organizationId)));
|
|
1588
|
-
let localVarQueryParameters = {};
|
|
1589
|
-
let localVarHeaderParams = Object.assign({
|
|
1590
|
-
'User-Agent': 'edgeimpulse-api nodejs'
|
|
1591
|
-
}, this.defaultHeaders);
|
|
1592
|
-
const produces = ['application/json'];
|
|
1593
|
-
// give precedence to 'application/json'
|
|
1594
|
-
if (produces.indexOf('application/json') >= 0) {
|
|
1595
|
-
localVarHeaderParams.Accept = 'application/json';
|
|
1596
|
-
}
|
|
1597
|
-
else {
|
|
1598
|
-
localVarHeaderParams.Accept = produces.join(',');
|
|
1599
|
-
}
|
|
1600
|
-
let localVarFormParams = {};
|
|
1601
|
-
// verify required parameter 'organizationId' is not null or undefined
|
|
1602
|
-
if (organizationId === null || organizationId === undefined) {
|
|
1603
|
-
throw new Error('Required parameter organizationId was null or undefined when calling whitelabelAdminGetMetrics.');
|
|
1604
|
-
}
|
|
1605
|
-
Object.assign(localVarHeaderParams, options.headers);
|
|
1606
|
-
Object.assign(localVarHeaderParams, this.opts.extraHeaders);
|
|
1607
|
-
let localVarUseFormData = false;
|
|
1608
|
-
let localVarRequestOptions = {
|
|
1609
|
-
method: 'GET',
|
|
1610
|
-
qs: localVarQueryParameters,
|
|
1611
|
-
headers: localVarHeaderParams,
|
|
1612
|
-
uri: localVarPath,
|
|
1613
|
-
useQuerystring: this._useQuerystring,
|
|
1614
|
-
agentOptions: { keepAlive: false },
|
|
1615
|
-
json: true,
|
|
1616
|
-
};
|
|
1617
|
-
let authenticationPromise = Promise.resolve();
|
|
1618
|
-
authenticationPromise = authenticationPromise.then(() => this.authentications.ApiKeyAuthentication.applyToRequest(localVarRequestOptions));
|
|
1619
|
-
authenticationPromise = authenticationPromise.then(() => this.authentications.JWTAuthentication.applyToRequest(localVarRequestOptions));
|
|
1620
|
-
authenticationPromise = authenticationPromise.then(() => this.authentications.JWTHttpHeaderAuthentication.applyToRequest(localVarRequestOptions));
|
|
1621
|
-
authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
|
|
1622
|
-
return authenticationPromise.then(() => {
|
|
1623
|
-
if (Object.keys(localVarFormParams).length) {
|
|
1624
|
-
if (localVarUseFormData) {
|
|
1625
|
-
localVarRequestOptions.formData = localVarFormParams;
|
|
1626
|
-
}
|
|
1627
|
-
else {
|
|
1628
|
-
localVarRequestOptions.form = localVarFormParams;
|
|
1629
|
-
}
|
|
1630
|
-
}
|
|
1631
|
-
return new Promise((resolve, reject) => {
|
|
1632
|
-
localVarRequest(localVarRequestOptions, (error, response, body) => {
|
|
1633
|
-
if (error) {
|
|
1634
|
-
reject(error);
|
|
1635
|
-
}
|
|
1636
|
-
else {
|
|
1637
|
-
body = models_1.ObjectSerializer.deserialize(body, "AdminGetMetricsResponse");
|
|
1638
|
-
const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
|
|
1639
|
-
if (typeof body.success === 'boolean' && !body.success) {
|
|
1640
|
-
reject(new Error(body.error || errString));
|
|
1641
|
-
}
|
|
1642
|
-
else if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
1643
|
-
resolve(body);
|
|
1644
|
-
}
|
|
1645
|
-
else {
|
|
1646
|
-
reject(errString);
|
|
1647
|
-
}
|
|
1648
|
-
}
|
|
1649
|
-
});
|
|
1650
|
-
});
|
|
1651
|
-
});
|
|
1652
|
-
}
|
|
1653
|
-
/**
|
|
1654
|
-
* White label admin only API to list all information about an organization.
|
|
1655
|
-
* @summary Get organization information
|
|
1656
|
-
* @param organizationId Organization ID
|
|
1657
|
-
* @param innerOrganizationId Organization ID within the context of a white label
|
|
1658
|
-
*/
|
|
1659
|
-
async whitelabelAdminGetOrganizationInfo(organizationId, innerOrganizationId, options = { headers: {} }) {
|
|
1660
|
-
const localVarPath = this.basePath + '/api/organizations/{organizationId}/whitelabel/organizations/{innerOrganizationId}'
|
|
1661
|
-
.replace('{' + 'organizationId' + '}', encodeURIComponent(String(organizationId)))
|
|
1662
|
-
.replace('{' + 'innerOrganizationId' + '}', encodeURIComponent(String(innerOrganizationId)));
|
|
1663
|
-
let localVarQueryParameters = {};
|
|
1664
|
-
let localVarHeaderParams = Object.assign({
|
|
1665
|
-
'User-Agent': 'edgeimpulse-api nodejs'
|
|
1666
|
-
}, this.defaultHeaders);
|
|
1667
|
-
const produces = ['application/json'];
|
|
1668
|
-
// give precedence to 'application/json'
|
|
1669
|
-
if (produces.indexOf('application/json') >= 0) {
|
|
1670
|
-
localVarHeaderParams.Accept = 'application/json';
|
|
1671
|
-
}
|
|
1672
|
-
else {
|
|
1673
|
-
localVarHeaderParams.Accept = produces.join(',');
|
|
1674
|
-
}
|
|
1675
|
-
let localVarFormParams = {};
|
|
1676
|
-
// verify required parameter 'organizationId' is not null or undefined
|
|
1677
|
-
if (organizationId === null || organizationId === undefined) {
|
|
1678
|
-
throw new Error('Required parameter organizationId was null or undefined when calling whitelabelAdminGetOrganizationInfo.');
|
|
1679
|
-
}
|
|
1680
|
-
// verify required parameter 'innerOrganizationId' is not null or undefined
|
|
1681
|
-
if (innerOrganizationId === null || innerOrganizationId === undefined) {
|
|
1682
|
-
throw new Error('Required parameter innerOrganizationId was null or undefined when calling whitelabelAdminGetOrganizationInfo.');
|
|
1683
|
-
}
|
|
1684
|
-
Object.assign(localVarHeaderParams, options.headers);
|
|
1685
|
-
Object.assign(localVarHeaderParams, this.opts.extraHeaders);
|
|
1686
|
-
let localVarUseFormData = false;
|
|
1687
|
-
let localVarRequestOptions = {
|
|
1688
|
-
method: 'GET',
|
|
1689
|
-
qs: localVarQueryParameters,
|
|
1690
|
-
headers: localVarHeaderParams,
|
|
1691
|
-
uri: localVarPath,
|
|
1692
|
-
useQuerystring: this._useQuerystring,
|
|
1693
|
-
agentOptions: { keepAlive: false },
|
|
1694
|
-
json: true,
|
|
1695
|
-
};
|
|
1696
|
-
let authenticationPromise = Promise.resolve();
|
|
1697
|
-
authenticationPromise = authenticationPromise.then(() => this.authentications.ApiKeyAuthentication.applyToRequest(localVarRequestOptions));
|
|
1698
|
-
authenticationPromise = authenticationPromise.then(() => this.authentications.JWTAuthentication.applyToRequest(localVarRequestOptions));
|
|
1699
|
-
authenticationPromise = authenticationPromise.then(() => this.authentications.JWTHttpHeaderAuthentication.applyToRequest(localVarRequestOptions));
|
|
1700
|
-
authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
|
|
1701
|
-
return authenticationPromise.then(() => {
|
|
1702
|
-
if (Object.keys(localVarFormParams).length) {
|
|
1703
|
-
if (localVarUseFormData) {
|
|
1704
|
-
localVarRequestOptions.formData = localVarFormParams;
|
|
1705
|
-
}
|
|
1706
|
-
else {
|
|
1707
|
-
localVarRequestOptions.form = localVarFormParams;
|
|
1708
|
-
}
|
|
1709
|
-
}
|
|
1710
|
-
return new Promise((resolve, reject) => {
|
|
1711
|
-
localVarRequest(localVarRequestOptions, (error, response, body) => {
|
|
1712
|
-
if (error) {
|
|
1713
|
-
reject(error);
|
|
1714
|
-
}
|
|
1715
|
-
else {
|
|
1716
|
-
body = models_1.ObjectSerializer.deserialize(body, "AdminOrganizationInfoResponse");
|
|
1717
|
-
const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
|
|
1718
|
-
if (typeof body.success === 'boolean' && !body.success) {
|
|
1719
|
-
reject(new Error(body.error || errString));
|
|
1720
|
-
}
|
|
1721
|
-
else if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
1722
|
-
resolve(body);
|
|
1723
|
-
}
|
|
1724
|
-
else {
|
|
1725
|
-
reject(errString);
|
|
1726
|
-
}
|
|
1727
|
-
}
|
|
1728
|
-
});
|
|
1729
|
-
});
|
|
1730
|
-
});
|
|
1731
|
-
}
|
|
1732
|
-
/**
|
|
1733
|
-
* White label admin only API to get the list of all organizations.
|
|
1734
|
-
* @summary Get all organizations within a white label
|
|
1735
|
-
* @param organizationId Organization ID
|
|
1736
|
-
* @param active Whether to search for entities (users, orgs) active in the last X days
|
|
1737
|
-
* @param sort Fields and order to sort query by
|
|
1738
|
-
* @param limit Maximum number of results
|
|
1739
|
-
* @param offset Offset in results, can be used in conjunction with LimitResultsParameter to implement paging.
|
|
1740
|
-
* @param search Search query
|
|
1741
|
-
*/
|
|
1742
|
-
async whitelabelAdminGetOrganizations(organizationId, queryParams, options = { headers: {} }) {
|
|
1743
|
-
const localVarPath = this.basePath + '/api/organizations/{organizationId}/whitelabel/organizations'
|
|
1744
|
-
.replace('{' + 'organizationId' + '}', encodeURIComponent(String(organizationId)));
|
|
1745
|
-
let localVarQueryParameters = {};
|
|
1746
|
-
let localVarHeaderParams = Object.assign({
|
|
1747
|
-
'User-Agent': 'edgeimpulse-api nodejs'
|
|
1748
|
-
}, this.defaultHeaders);
|
|
1749
|
-
const produces = ['application/json'];
|
|
1750
|
-
// give precedence to 'application/json'
|
|
1751
|
-
if (produces.indexOf('application/json') >= 0) {
|
|
1752
|
-
localVarHeaderParams.Accept = 'application/json';
|
|
1753
|
-
}
|
|
1754
|
-
else {
|
|
1755
|
-
localVarHeaderParams.Accept = produces.join(',');
|
|
1756
|
-
}
|
|
1757
|
-
let localVarFormParams = {};
|
|
1758
|
-
// verify required parameter 'organizationId' is not null or undefined
|
|
1759
|
-
if (organizationId === null || organizationId === undefined) {
|
|
1760
|
-
throw new Error('Required parameter organizationId was null or undefined when calling whitelabelAdminGetOrganizations.');
|
|
1761
|
-
}
|
|
1762
|
-
if (queryParams.active !== undefined) {
|
|
1763
|
-
localVarQueryParameters['active'] = models_1.ObjectSerializer.serialize(queryParams.active, "number");
|
|
1764
|
-
}
|
|
1765
|
-
if (queryParams.sort !== undefined) {
|
|
1766
|
-
localVarQueryParameters['sort'] = models_1.ObjectSerializer.serialize(queryParams.sort, "string");
|
|
1767
|
-
}
|
|
1768
|
-
if (queryParams.limit !== undefined) {
|
|
1769
|
-
localVarQueryParameters['limit'] = models_1.ObjectSerializer.serialize(queryParams.limit, "number");
|
|
1770
|
-
}
|
|
1771
|
-
if (queryParams.offset !== undefined) {
|
|
1772
|
-
localVarQueryParameters['offset'] = models_1.ObjectSerializer.serialize(queryParams.offset, "number");
|
|
1773
|
-
}
|
|
1774
|
-
if (queryParams.search !== undefined) {
|
|
1775
|
-
localVarQueryParameters['search'] = models_1.ObjectSerializer.serialize(queryParams.search, "string");
|
|
1776
|
-
}
|
|
1777
|
-
Object.assign(localVarHeaderParams, options.headers);
|
|
1778
|
-
Object.assign(localVarHeaderParams, this.opts.extraHeaders);
|
|
1779
|
-
let localVarUseFormData = false;
|
|
1780
|
-
let localVarRequestOptions = {
|
|
1781
|
-
method: 'GET',
|
|
1782
|
-
qs: localVarQueryParameters,
|
|
1783
|
-
headers: localVarHeaderParams,
|
|
1784
|
-
uri: localVarPath,
|
|
1785
|
-
useQuerystring: this._useQuerystring,
|
|
1786
|
-
agentOptions: { keepAlive: false },
|
|
1787
|
-
json: true,
|
|
1788
|
-
};
|
|
1789
|
-
let authenticationPromise = Promise.resolve();
|
|
1790
|
-
authenticationPromise = authenticationPromise.then(() => this.authentications.ApiKeyAuthentication.applyToRequest(localVarRequestOptions));
|
|
1791
|
-
authenticationPromise = authenticationPromise.then(() => this.authentications.JWTAuthentication.applyToRequest(localVarRequestOptions));
|
|
1792
|
-
authenticationPromise = authenticationPromise.then(() => this.authentications.JWTHttpHeaderAuthentication.applyToRequest(localVarRequestOptions));
|
|
1793
|
-
authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
|
|
1794
|
-
return authenticationPromise.then(() => {
|
|
1795
|
-
if (Object.keys(localVarFormParams).length) {
|
|
1796
|
-
if (localVarUseFormData) {
|
|
1797
|
-
localVarRequestOptions.formData = localVarFormParams;
|
|
1798
|
-
}
|
|
1799
|
-
else {
|
|
1800
|
-
localVarRequestOptions.form = localVarFormParams;
|
|
1801
|
-
}
|
|
1802
|
-
}
|
|
1803
|
-
return new Promise((resolve, reject) => {
|
|
1804
|
-
localVarRequest(localVarRequestOptions, (error, response, body) => {
|
|
1805
|
-
if (error) {
|
|
1806
|
-
reject(error);
|
|
1807
|
-
}
|
|
1808
|
-
else {
|
|
1809
|
-
body = models_1.ObjectSerializer.deserialize(body, "AdminGetOrganizationsResponse");
|
|
1810
|
-
const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
|
|
1811
|
-
if (typeof body.success === 'boolean' && !body.success) {
|
|
1812
|
-
reject(new Error(body.error || errString));
|
|
1813
|
-
}
|
|
1814
|
-
else if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
1815
|
-
resolve(body);
|
|
1816
|
-
}
|
|
1817
|
-
else {
|
|
1818
|
-
reject(errString);
|
|
1819
|
-
}
|
|
1820
|
-
}
|
|
1821
|
-
});
|
|
1822
|
-
});
|
|
1823
|
-
});
|
|
1824
|
-
}
|
|
1825
|
-
/**
|
|
1826
|
-
* White label admin only API to get project information.
|
|
1827
|
-
* @summary Get a white label project
|
|
1828
|
-
* @param organizationId Organization ID
|
|
1829
|
-
* @param projectId Project ID
|
|
1830
|
-
*/
|
|
1831
|
-
async whitelabelAdminGetProject(organizationId, projectId, options = { headers: {} }) {
|
|
1832
|
-
const localVarPath = this.basePath + '/api/organizations/{organizationId}/whitelabel/projects/{projectId}'
|
|
1833
|
-
.replace('{' + 'organizationId' + '}', encodeURIComponent(String(organizationId)))
|
|
1834
|
-
.replace('{' + 'projectId' + '}', encodeURIComponent(String(projectId)));
|
|
1835
|
-
let localVarQueryParameters = {};
|
|
1836
|
-
let localVarHeaderParams = Object.assign({
|
|
1837
|
-
'User-Agent': 'edgeimpulse-api nodejs'
|
|
1838
|
-
}, this.defaultHeaders);
|
|
1839
|
-
const produces = ['application/json'];
|
|
1840
|
-
// give precedence to 'application/json'
|
|
1841
|
-
if (produces.indexOf('application/json') >= 0) {
|
|
1842
|
-
localVarHeaderParams.Accept = 'application/json';
|
|
1843
|
-
}
|
|
1844
|
-
else {
|
|
1845
|
-
localVarHeaderParams.Accept = produces.join(',');
|
|
1846
|
-
}
|
|
1847
|
-
let localVarFormParams = {};
|
|
1848
|
-
// verify required parameter 'organizationId' is not null or undefined
|
|
1849
|
-
if (organizationId === null || organizationId === undefined) {
|
|
1850
|
-
throw new Error('Required parameter organizationId was null or undefined when calling whitelabelAdminGetProject.');
|
|
1851
|
-
}
|
|
1852
|
-
// verify required parameter 'projectId' is not null or undefined
|
|
1853
|
-
if (projectId === null || projectId === undefined) {
|
|
1854
|
-
throw new Error('Required parameter projectId was null or undefined when calling whitelabelAdminGetProject.');
|
|
1855
|
-
}
|
|
1856
|
-
Object.assign(localVarHeaderParams, options.headers);
|
|
1857
|
-
Object.assign(localVarHeaderParams, this.opts.extraHeaders);
|
|
1858
|
-
let localVarUseFormData = false;
|
|
1859
|
-
let localVarRequestOptions = {
|
|
1860
|
-
method: 'GET',
|
|
1861
|
-
qs: localVarQueryParameters,
|
|
1862
|
-
headers: localVarHeaderParams,
|
|
1863
|
-
uri: localVarPath,
|
|
1864
|
-
useQuerystring: this._useQuerystring,
|
|
1865
|
-
agentOptions: { keepAlive: false },
|
|
1866
|
-
json: true,
|
|
1867
|
-
};
|
|
1868
|
-
let authenticationPromise = Promise.resolve();
|
|
1869
|
-
authenticationPromise = authenticationPromise.then(() => this.authentications.ApiKeyAuthentication.applyToRequest(localVarRequestOptions));
|
|
1870
|
-
authenticationPromise = authenticationPromise.then(() => this.authentications.JWTAuthentication.applyToRequest(localVarRequestOptions));
|
|
1871
|
-
authenticationPromise = authenticationPromise.then(() => this.authentications.JWTHttpHeaderAuthentication.applyToRequest(localVarRequestOptions));
|
|
1872
|
-
authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
|
|
1873
|
-
return authenticationPromise.then(() => {
|
|
1874
|
-
if (Object.keys(localVarFormParams).length) {
|
|
1875
|
-
if (localVarUseFormData) {
|
|
1876
|
-
localVarRequestOptions.formData = localVarFormParams;
|
|
1877
|
-
}
|
|
1878
|
-
else {
|
|
1879
|
-
localVarRequestOptions.form = localVarFormParams;
|
|
1880
|
-
}
|
|
1881
|
-
}
|
|
1882
|
-
return new Promise((resolve, reject) => {
|
|
1883
|
-
localVarRequest(localVarRequestOptions, (error, response, body) => {
|
|
1884
|
-
if (error) {
|
|
1885
|
-
reject(error);
|
|
1886
|
-
}
|
|
1887
|
-
else {
|
|
1888
|
-
body = models_1.ObjectSerializer.deserialize(body, "ProjectInfoResponse");
|
|
1889
|
-
const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
|
|
1890
|
-
if (typeof body.success === 'boolean' && !body.success) {
|
|
1891
|
-
reject(new Error(body.error || errString));
|
|
1892
|
-
}
|
|
1893
|
-
else if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
1894
|
-
resolve(body);
|
|
1895
|
-
}
|
|
1896
|
-
else {
|
|
1897
|
-
reject(errString);
|
|
1898
|
-
}
|
|
1899
|
-
}
|
|
1900
|
-
});
|
|
1901
|
-
});
|
|
1902
|
-
});
|
|
1903
|
-
}
|
|
1904
|
-
/**
|
|
1905
|
-
* White label admin only API to get the list of all projects.
|
|
1906
|
-
* @summary Get all white label projects
|
|
1907
|
-
* @param organizationId Organization ID
|
|
1908
|
-
* @param active Whether to search for entities (users, orgs) active in the last X days
|
|
1909
|
-
* @param sort Fields and order to sort query by
|
|
1910
|
-
* @param limit Maximum number of results
|
|
1911
|
-
* @param offset Offset in results, can be used in conjunction with LimitResultsParameter to implement paging.
|
|
1912
|
-
* @param search Search query
|
|
1913
|
-
*/
|
|
1914
|
-
async whitelabelAdminGetProjects(organizationId, queryParams, options = { headers: {} }) {
|
|
1915
|
-
const localVarPath = this.basePath + '/api/organizations/{organizationId}/whitelabel/projects'
|
|
1916
|
-
.replace('{' + 'organizationId' + '}', encodeURIComponent(String(organizationId)));
|
|
1917
|
-
let localVarQueryParameters = {};
|
|
1918
|
-
let localVarHeaderParams = Object.assign({
|
|
1919
|
-
'User-Agent': 'edgeimpulse-api nodejs'
|
|
1920
|
-
}, this.defaultHeaders);
|
|
1921
|
-
const produces = ['application/json'];
|
|
1922
|
-
// give precedence to 'application/json'
|
|
1923
|
-
if (produces.indexOf('application/json') >= 0) {
|
|
1924
|
-
localVarHeaderParams.Accept = 'application/json';
|
|
1925
|
-
}
|
|
1926
|
-
else {
|
|
1927
|
-
localVarHeaderParams.Accept = produces.join(',');
|
|
1928
|
-
}
|
|
1929
|
-
let localVarFormParams = {};
|
|
1930
|
-
// verify required parameter 'organizationId' is not null or undefined
|
|
1931
|
-
if (organizationId === null || organizationId === undefined) {
|
|
1932
|
-
throw new Error('Required parameter organizationId was null or undefined when calling whitelabelAdminGetProjects.');
|
|
1933
|
-
}
|
|
1934
|
-
if (queryParams.active !== undefined) {
|
|
1935
|
-
localVarQueryParameters['active'] = models_1.ObjectSerializer.serialize(queryParams.active, "number");
|
|
1936
|
-
}
|
|
1937
|
-
if (queryParams.sort !== undefined) {
|
|
1938
|
-
localVarQueryParameters['sort'] = models_1.ObjectSerializer.serialize(queryParams.sort, "string");
|
|
1939
|
-
}
|
|
1940
|
-
if (queryParams.limit !== undefined) {
|
|
1941
|
-
localVarQueryParameters['limit'] = models_1.ObjectSerializer.serialize(queryParams.limit, "number");
|
|
1942
|
-
}
|
|
1943
|
-
if (queryParams.offset !== undefined) {
|
|
1944
|
-
localVarQueryParameters['offset'] = models_1.ObjectSerializer.serialize(queryParams.offset, "number");
|
|
1945
|
-
}
|
|
1946
|
-
if (queryParams.search !== undefined) {
|
|
1947
|
-
localVarQueryParameters['search'] = models_1.ObjectSerializer.serialize(queryParams.search, "string");
|
|
1948
|
-
}
|
|
1949
|
-
Object.assign(localVarHeaderParams, options.headers);
|
|
1950
|
-
Object.assign(localVarHeaderParams, this.opts.extraHeaders);
|
|
1951
|
-
let localVarUseFormData = false;
|
|
1952
|
-
let localVarRequestOptions = {
|
|
1953
|
-
method: 'GET',
|
|
1954
|
-
qs: localVarQueryParameters,
|
|
1955
|
-
headers: localVarHeaderParams,
|
|
1956
|
-
uri: localVarPath,
|
|
1957
|
-
useQuerystring: this._useQuerystring,
|
|
1958
|
-
agentOptions: { keepAlive: false },
|
|
1959
|
-
json: true,
|
|
1960
|
-
};
|
|
1961
|
-
let authenticationPromise = Promise.resolve();
|
|
1962
|
-
authenticationPromise = authenticationPromise.then(() => this.authentications.ApiKeyAuthentication.applyToRequest(localVarRequestOptions));
|
|
1963
|
-
authenticationPromise = authenticationPromise.then(() => this.authentications.JWTAuthentication.applyToRequest(localVarRequestOptions));
|
|
1964
|
-
authenticationPromise = authenticationPromise.then(() => this.authentications.JWTHttpHeaderAuthentication.applyToRequest(localVarRequestOptions));
|
|
1965
|
-
authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
|
|
1966
|
-
return authenticationPromise.then(() => {
|
|
1967
|
-
if (Object.keys(localVarFormParams).length) {
|
|
1968
|
-
if (localVarUseFormData) {
|
|
1969
|
-
localVarRequestOptions.formData = localVarFormParams;
|
|
1970
|
-
}
|
|
1971
|
-
else {
|
|
1972
|
-
localVarRequestOptions.form = localVarFormParams;
|
|
1973
|
-
}
|
|
1974
|
-
}
|
|
1975
|
-
return new Promise((resolve, reject) => {
|
|
1976
|
-
localVarRequest(localVarRequestOptions, (error, response, body) => {
|
|
1977
|
-
if (error) {
|
|
1978
|
-
reject(error);
|
|
1979
|
-
}
|
|
1980
|
-
else {
|
|
1981
|
-
body = models_1.ObjectSerializer.deserialize(body, "AdminListProjectsResponse");
|
|
1982
|
-
const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
|
|
1983
|
-
if (typeof body.success === 'boolean' && !body.success) {
|
|
1984
|
-
reject(new Error(body.error || errString));
|
|
1985
|
-
}
|
|
1986
|
-
else if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
1987
|
-
resolve(body);
|
|
1988
|
-
}
|
|
1989
|
-
else {
|
|
1990
|
-
reject(errString);
|
|
1991
|
-
}
|
|
1992
|
-
}
|
|
1993
|
-
});
|
|
1994
|
-
});
|
|
1995
|
-
});
|
|
1996
|
-
}
|
|
1997
|
-
/**
|
|
1998
|
-
* White label admin only API to get information about a user.
|
|
1999
|
-
* @summary Get a white label user
|
|
2000
|
-
* @param organizationId Organization ID
|
|
2001
|
-
* @param userId User ID
|
|
2002
|
-
*/
|
|
2003
|
-
async whitelabelAdminGetUser(organizationId, userId, options = { headers: {} }) {
|
|
2004
|
-
const localVarPath = this.basePath + '/api/organizations/{organizationId}/whitelabel/users/{userId}'
|
|
2005
|
-
.replace('{' + 'organizationId' + '}', encodeURIComponent(String(organizationId)))
|
|
2006
|
-
.replace('{' + 'userId' + '}', encodeURIComponent(String(userId)));
|
|
2007
|
-
let localVarQueryParameters = {};
|
|
2008
|
-
let localVarHeaderParams = Object.assign({
|
|
2009
|
-
'User-Agent': 'edgeimpulse-api nodejs'
|
|
2010
|
-
}, this.defaultHeaders);
|
|
2011
|
-
const produces = ['application/json'];
|
|
2012
|
-
// give precedence to 'application/json'
|
|
2013
|
-
if (produces.indexOf('application/json') >= 0) {
|
|
2014
|
-
localVarHeaderParams.Accept = 'application/json';
|
|
2015
|
-
}
|
|
2016
|
-
else {
|
|
2017
|
-
localVarHeaderParams.Accept = produces.join(',');
|
|
2018
|
-
}
|
|
2019
|
-
let localVarFormParams = {};
|
|
2020
|
-
// verify required parameter 'organizationId' is not null or undefined
|
|
2021
|
-
if (organizationId === null || organizationId === undefined) {
|
|
2022
|
-
throw new Error('Required parameter organizationId was null or undefined when calling whitelabelAdminGetUser.');
|
|
2023
|
-
}
|
|
2024
|
-
// verify required parameter 'userId' is not null or undefined
|
|
2025
|
-
if (userId === null || userId === undefined) {
|
|
2026
|
-
throw new Error('Required parameter userId was null or undefined when calling whitelabelAdminGetUser.');
|
|
2027
|
-
}
|
|
2028
|
-
Object.assign(localVarHeaderParams, options.headers);
|
|
2029
|
-
Object.assign(localVarHeaderParams, this.opts.extraHeaders);
|
|
2030
|
-
let localVarUseFormData = false;
|
|
2031
|
-
let localVarRequestOptions = {
|
|
2032
|
-
method: 'GET',
|
|
2033
|
-
qs: localVarQueryParameters,
|
|
2034
|
-
headers: localVarHeaderParams,
|
|
2035
|
-
uri: localVarPath,
|
|
2036
|
-
useQuerystring: this._useQuerystring,
|
|
2037
|
-
agentOptions: { keepAlive: false },
|
|
2038
|
-
json: true,
|
|
2039
|
-
};
|
|
2040
|
-
let authenticationPromise = Promise.resolve();
|
|
2041
|
-
authenticationPromise = authenticationPromise.then(() => this.authentications.ApiKeyAuthentication.applyToRequest(localVarRequestOptions));
|
|
2042
|
-
authenticationPromise = authenticationPromise.then(() => this.authentications.JWTAuthentication.applyToRequest(localVarRequestOptions));
|
|
2043
|
-
authenticationPromise = authenticationPromise.then(() => this.authentications.JWTHttpHeaderAuthentication.applyToRequest(localVarRequestOptions));
|
|
2044
|
-
authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
|
|
2045
|
-
return authenticationPromise.then(() => {
|
|
2046
|
-
if (Object.keys(localVarFormParams).length) {
|
|
2047
|
-
if (localVarUseFormData) {
|
|
2048
|
-
localVarRequestOptions.formData = localVarFormParams;
|
|
2049
|
-
}
|
|
2050
|
-
else {
|
|
2051
|
-
localVarRequestOptions.form = localVarFormParams;
|
|
2052
|
-
}
|
|
2053
|
-
}
|
|
2054
|
-
return new Promise((resolve, reject) => {
|
|
2055
|
-
localVarRequest(localVarRequestOptions, (error, response, body) => {
|
|
2056
|
-
if (error) {
|
|
2057
|
-
reject(error);
|
|
2058
|
-
}
|
|
2059
|
-
else {
|
|
2060
|
-
body = models_1.ObjectSerializer.deserialize(body, "AdminGetUserResponse");
|
|
2061
|
-
const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
|
|
2062
|
-
if (typeof body.success === 'boolean' && !body.success) {
|
|
2063
|
-
reject(new Error(body.error || errString));
|
|
2064
|
-
}
|
|
2065
|
-
else if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
2066
|
-
resolve(body);
|
|
2067
|
-
}
|
|
2068
|
-
else {
|
|
2069
|
-
reject(errString);
|
|
2070
|
-
}
|
|
2071
|
-
}
|
|
2072
|
-
});
|
|
2073
|
-
});
|
|
2074
|
-
});
|
|
2075
|
-
}
|
|
2076
|
-
/**
|
|
2077
|
-
* White label admin only API to get marketing metrics about a user.
|
|
2078
|
-
* @summary Get white label user metrics
|
|
2079
|
-
* @param organizationId Organization ID
|
|
2080
|
-
* @param userId User ID
|
|
2081
|
-
*/
|
|
2082
|
-
async whitelabelAdminGetUserMetrics(organizationId, userId, options = { headers: {} }) {
|
|
2083
|
-
const localVarPath = this.basePath + '/api/organizations/{organizationId}/whitelabel/users/{userId}/metrics'
|
|
2084
|
-
.replace('{' + 'organizationId' + '}', encodeURIComponent(String(organizationId)))
|
|
2085
|
-
.replace('{' + 'userId' + '}', encodeURIComponent(String(userId)));
|
|
2086
|
-
let localVarQueryParameters = {};
|
|
2087
|
-
let localVarHeaderParams = Object.assign({
|
|
2088
|
-
'User-Agent': 'edgeimpulse-api nodejs'
|
|
2089
|
-
}, this.defaultHeaders);
|
|
2090
|
-
const produces = ['application/json'];
|
|
2091
|
-
// give precedence to 'application/json'
|
|
2092
|
-
if (produces.indexOf('application/json') >= 0) {
|
|
2093
|
-
localVarHeaderParams.Accept = 'application/json';
|
|
2094
|
-
}
|
|
2095
|
-
else {
|
|
2096
|
-
localVarHeaderParams.Accept = produces.join(',');
|
|
2097
|
-
}
|
|
2098
|
-
let localVarFormParams = {};
|
|
2099
|
-
// verify required parameter 'organizationId' is not null or undefined
|
|
2100
|
-
if (organizationId === null || organizationId === undefined) {
|
|
2101
|
-
throw new Error('Required parameter organizationId was null or undefined when calling whitelabelAdminGetUserMetrics.');
|
|
2102
|
-
}
|
|
2103
|
-
// verify required parameter 'userId' is not null or undefined
|
|
2104
|
-
if (userId === null || userId === undefined) {
|
|
2105
|
-
throw new Error('Required parameter userId was null or undefined when calling whitelabelAdminGetUserMetrics.');
|
|
2106
|
-
}
|
|
2107
|
-
Object.assign(localVarHeaderParams, options.headers);
|
|
2108
|
-
Object.assign(localVarHeaderParams, this.opts.extraHeaders);
|
|
2109
|
-
let localVarUseFormData = false;
|
|
2110
|
-
let localVarRequestOptions = {
|
|
2111
|
-
method: 'GET',
|
|
2112
|
-
qs: localVarQueryParameters,
|
|
2113
|
-
headers: localVarHeaderParams,
|
|
2114
|
-
uri: localVarPath,
|
|
2115
|
-
useQuerystring: this._useQuerystring,
|
|
2116
|
-
agentOptions: { keepAlive: false },
|
|
2117
|
-
json: true,
|
|
2118
|
-
};
|
|
2119
|
-
let authenticationPromise = Promise.resolve();
|
|
2120
|
-
authenticationPromise = authenticationPromise.then(() => this.authentications.ApiKeyAuthentication.applyToRequest(localVarRequestOptions));
|
|
2121
|
-
authenticationPromise = authenticationPromise.then(() => this.authentications.JWTAuthentication.applyToRequest(localVarRequestOptions));
|
|
2122
|
-
authenticationPromise = authenticationPromise.then(() => this.authentications.JWTHttpHeaderAuthentication.applyToRequest(localVarRequestOptions));
|
|
2123
|
-
authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
|
|
2124
|
-
return authenticationPromise.then(() => {
|
|
2125
|
-
if (Object.keys(localVarFormParams).length) {
|
|
2126
|
-
if (localVarUseFormData) {
|
|
2127
|
-
localVarRequestOptions.formData = localVarFormParams;
|
|
2128
|
-
}
|
|
2129
|
-
else {
|
|
2130
|
-
localVarRequestOptions.form = localVarFormParams;
|
|
2131
|
-
}
|
|
2132
|
-
}
|
|
2133
|
-
return new Promise((resolve, reject) => {
|
|
2134
|
-
localVarRequest(localVarRequestOptions, (error, response, body) => {
|
|
2135
|
-
if (error) {
|
|
2136
|
-
reject(error);
|
|
2137
|
-
}
|
|
2138
|
-
else {
|
|
2139
|
-
body = models_1.ObjectSerializer.deserialize(body, "AdminGetUserMetricsResponse");
|
|
2140
|
-
const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
|
|
2141
|
-
if (typeof body.success === 'boolean' && !body.success) {
|
|
2142
|
-
reject(new Error(body.error || errString));
|
|
2143
|
-
}
|
|
2144
|
-
else if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
2145
|
-
resolve(body);
|
|
2146
|
-
}
|
|
2147
|
-
else {
|
|
2148
|
-
reject(errString);
|
|
2149
|
-
}
|
|
2150
|
-
}
|
|
2151
|
-
});
|
|
2152
|
-
});
|
|
2153
|
-
});
|
|
2154
|
-
}
|
|
2155
|
-
/**
|
|
2156
|
-
* White label admin only API to get the list of all registered users.
|
|
2157
|
-
* @summary Get all white label users
|
|
2158
|
-
* @param organizationId Organization ID
|
|
2159
|
-
* @param active Whether to search for entities (users, orgs) active in the last X days
|
|
2160
|
-
* @param tier Whether to search for free, pro or enterprise entities (users, projects)
|
|
2161
|
-
* @param fields Comma separated list of fields to fetch in a query
|
|
2162
|
-
* @param sort Fields and order to sort query by
|
|
2163
|
-
* @param limit Maximum number of results
|
|
2164
|
-
* @param offset Offset in results, can be used in conjunction with LimitResultsParameter to implement paging.
|
|
2165
|
-
* @param search Search query
|
|
2166
|
-
*/
|
|
2167
|
-
async whitelabelAdminGetUsers(organizationId, queryParams, options = { headers: {} }) {
|
|
2168
|
-
const localVarPath = this.basePath + '/api/organizations/{organizationId}/whitelabel/users'
|
|
2169
|
-
.replace('{' + 'organizationId' + '}', encodeURIComponent(String(organizationId)));
|
|
2170
|
-
let localVarQueryParameters = {};
|
|
2171
|
-
let localVarHeaderParams = Object.assign({
|
|
2172
|
-
'User-Agent': 'edgeimpulse-api nodejs'
|
|
2173
|
-
}, this.defaultHeaders);
|
|
2174
|
-
const produces = ['application/json'];
|
|
2175
|
-
// give precedence to 'application/json'
|
|
2176
|
-
if (produces.indexOf('application/json') >= 0) {
|
|
2177
|
-
localVarHeaderParams.Accept = 'application/json';
|
|
2178
|
-
}
|
|
2179
|
-
else {
|
|
2180
|
-
localVarHeaderParams.Accept = produces.join(',');
|
|
2181
|
-
}
|
|
2182
|
-
let localVarFormParams = {};
|
|
2183
|
-
// verify required parameter 'organizationId' is not null or undefined
|
|
2184
|
-
if (organizationId === null || organizationId === undefined) {
|
|
2185
|
-
throw new Error('Required parameter organizationId was null or undefined when calling whitelabelAdminGetUsers.');
|
|
2186
|
-
}
|
|
2187
|
-
if (queryParams.active !== undefined) {
|
|
2188
|
-
localVarQueryParameters['active'] = models_1.ObjectSerializer.serialize(queryParams.active, "number");
|
|
2189
|
-
}
|
|
2190
|
-
if (queryParams.tier !== undefined) {
|
|
2191
|
-
localVarQueryParameters['tier'] = models_1.ObjectSerializer.serialize(queryParams.tier, "'free' | 'pro' | 'enterprise'");
|
|
2192
|
-
}
|
|
2193
|
-
if (queryParams.fields !== undefined) {
|
|
2194
|
-
localVarQueryParameters['fields'] = models_1.ObjectSerializer.serialize(queryParams.fields, "string");
|
|
2195
|
-
}
|
|
2196
|
-
if (queryParams.sort !== undefined) {
|
|
2197
|
-
localVarQueryParameters['sort'] = models_1.ObjectSerializer.serialize(queryParams.sort, "string");
|
|
2198
|
-
}
|
|
2199
|
-
if (queryParams.limit !== undefined) {
|
|
2200
|
-
localVarQueryParameters['limit'] = models_1.ObjectSerializer.serialize(queryParams.limit, "number");
|
|
2201
|
-
}
|
|
2202
|
-
if (queryParams.offset !== undefined) {
|
|
2203
|
-
localVarQueryParameters['offset'] = models_1.ObjectSerializer.serialize(queryParams.offset, "number");
|
|
2204
|
-
}
|
|
2205
|
-
if (queryParams.search !== undefined) {
|
|
2206
|
-
localVarQueryParameters['search'] = models_1.ObjectSerializer.serialize(queryParams.search, "string");
|
|
2207
|
-
}
|
|
2208
|
-
Object.assign(localVarHeaderParams, options.headers);
|
|
2209
|
-
Object.assign(localVarHeaderParams, this.opts.extraHeaders);
|
|
2210
|
-
let localVarUseFormData = false;
|
|
2211
|
-
let localVarRequestOptions = {
|
|
2212
|
-
method: 'GET',
|
|
2213
|
-
qs: localVarQueryParameters,
|
|
2214
|
-
headers: localVarHeaderParams,
|
|
2215
|
-
uri: localVarPath,
|
|
2216
|
-
useQuerystring: this._useQuerystring,
|
|
2217
|
-
agentOptions: { keepAlive: false },
|
|
2218
|
-
json: true,
|
|
2219
|
-
};
|
|
2220
|
-
let authenticationPromise = Promise.resolve();
|
|
2221
|
-
authenticationPromise = authenticationPromise.then(() => this.authentications.ApiKeyAuthentication.applyToRequest(localVarRequestOptions));
|
|
2222
|
-
authenticationPromise = authenticationPromise.then(() => this.authentications.JWTAuthentication.applyToRequest(localVarRequestOptions));
|
|
2223
|
-
authenticationPromise = authenticationPromise.then(() => this.authentications.JWTHttpHeaderAuthentication.applyToRequest(localVarRequestOptions));
|
|
2224
|
-
authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
|
|
2225
|
-
return authenticationPromise.then(() => {
|
|
2226
|
-
if (Object.keys(localVarFormParams).length) {
|
|
2227
|
-
if (localVarUseFormData) {
|
|
2228
|
-
localVarRequestOptions.formData = localVarFormParams;
|
|
2229
|
-
}
|
|
2230
|
-
else {
|
|
2231
|
-
localVarRequestOptions.form = localVarFormParams;
|
|
2232
|
-
}
|
|
2233
|
-
}
|
|
2234
|
-
return new Promise((resolve, reject) => {
|
|
2235
|
-
localVarRequest(localVarRequestOptions, (error, response, body) => {
|
|
2236
|
-
if (error) {
|
|
2237
|
-
reject(error);
|
|
2238
|
-
}
|
|
2239
|
-
else {
|
|
2240
|
-
body = models_1.ObjectSerializer.deserialize(body, "AdminGetUsersResponse");
|
|
2241
|
-
const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
|
|
2242
|
-
if (typeof body.success === 'boolean' && !body.success) {
|
|
2243
|
-
reject(new Error(body.error || errString));
|
|
2244
|
-
}
|
|
2245
|
-
else if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
2246
|
-
resolve(body);
|
|
2247
|
-
}
|
|
2248
|
-
else {
|
|
2249
|
-
reject(errString);
|
|
2250
|
-
}
|
|
2251
|
-
}
|
|
2252
|
-
});
|
|
2253
|
-
});
|
|
2254
|
-
});
|
|
2255
|
-
}
|
|
2256
|
-
/**
|
|
2257
|
-
* White label admin only API to remove a user from an organization.
|
|
2258
|
-
* @summary Remove user from an organization
|
|
2259
|
-
* @param organizationId Organization ID
|
|
2260
|
-
* @param innerOrganizationId Organization ID within the context of a white label
|
|
2261
|
-
* @param userId User ID
|
|
2262
|
-
*/
|
|
2263
|
-
async whitelabelAdminRemoveUserFromOrganization(organizationId, innerOrganizationId, userId, options = { headers: {} }) {
|
|
2264
|
-
const localVarPath = this.basePath + '/api/organizations/{organizationId}/whitelabel/organizations/{innerOrganizationId}/members/{userId}'
|
|
2265
|
-
.replace('{' + 'organizationId' + '}', encodeURIComponent(String(organizationId)))
|
|
2266
|
-
.replace('{' + 'innerOrganizationId' + '}', encodeURIComponent(String(innerOrganizationId)))
|
|
2267
|
-
.replace('{' + 'userId' + '}', encodeURIComponent(String(userId)));
|
|
2268
|
-
let localVarQueryParameters = {};
|
|
2269
|
-
let localVarHeaderParams = Object.assign({
|
|
2270
|
-
'User-Agent': 'edgeimpulse-api nodejs'
|
|
2271
|
-
}, this.defaultHeaders);
|
|
2272
|
-
const produces = ['application/json'];
|
|
2273
|
-
// give precedence to 'application/json'
|
|
2274
|
-
if (produces.indexOf('application/json') >= 0) {
|
|
2275
|
-
localVarHeaderParams.Accept = 'application/json';
|
|
2276
|
-
}
|
|
2277
|
-
else {
|
|
2278
|
-
localVarHeaderParams.Accept = produces.join(',');
|
|
2279
|
-
}
|
|
2280
|
-
let localVarFormParams = {};
|
|
2281
|
-
// verify required parameter 'organizationId' is not null or undefined
|
|
2282
|
-
if (organizationId === null || organizationId === undefined) {
|
|
2283
|
-
throw new Error('Required parameter organizationId was null or undefined when calling whitelabelAdminRemoveUserFromOrganization.');
|
|
2284
|
-
}
|
|
2285
|
-
// verify required parameter 'innerOrganizationId' is not null or undefined
|
|
2286
|
-
if (innerOrganizationId === null || innerOrganizationId === undefined) {
|
|
2287
|
-
throw new Error('Required parameter innerOrganizationId was null or undefined when calling whitelabelAdminRemoveUserFromOrganization.');
|
|
2288
|
-
}
|
|
2289
|
-
// verify required parameter 'userId' is not null or undefined
|
|
2290
|
-
if (userId === null || userId === undefined) {
|
|
2291
|
-
throw new Error('Required parameter userId was null or undefined when calling whitelabelAdminRemoveUserFromOrganization.');
|
|
2292
|
-
}
|
|
2293
|
-
Object.assign(localVarHeaderParams, options.headers);
|
|
2294
|
-
Object.assign(localVarHeaderParams, this.opts.extraHeaders);
|
|
2295
|
-
let localVarUseFormData = false;
|
|
2296
|
-
let localVarRequestOptions = {
|
|
2297
|
-
method: 'DELETE',
|
|
2298
|
-
qs: localVarQueryParameters,
|
|
2299
|
-
headers: localVarHeaderParams,
|
|
2300
|
-
uri: localVarPath,
|
|
2301
|
-
useQuerystring: this._useQuerystring,
|
|
2302
|
-
agentOptions: { keepAlive: false },
|
|
2303
|
-
json: true,
|
|
2304
|
-
};
|
|
2305
|
-
let authenticationPromise = Promise.resolve();
|
|
2306
|
-
authenticationPromise = authenticationPromise.then(() => this.authentications.ApiKeyAuthentication.applyToRequest(localVarRequestOptions));
|
|
2307
|
-
authenticationPromise = authenticationPromise.then(() => this.authentications.JWTAuthentication.applyToRequest(localVarRequestOptions));
|
|
2308
|
-
authenticationPromise = authenticationPromise.then(() => this.authentications.JWTHttpHeaderAuthentication.applyToRequest(localVarRequestOptions));
|
|
2309
|
-
authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
|
|
2310
|
-
return authenticationPromise.then(() => {
|
|
2311
|
-
if (Object.keys(localVarFormParams).length) {
|
|
2312
|
-
if (localVarUseFormData) {
|
|
2313
|
-
localVarRequestOptions.formData = localVarFormParams;
|
|
2314
|
-
}
|
|
2315
|
-
else {
|
|
2316
|
-
localVarRequestOptions.form = localVarFormParams;
|
|
2317
|
-
}
|
|
2318
|
-
}
|
|
2319
|
-
return new Promise((resolve, reject) => {
|
|
2320
|
-
localVarRequest(localVarRequestOptions, (error, response, body) => {
|
|
2321
|
-
if (error) {
|
|
2322
|
-
reject(error);
|
|
2323
|
-
}
|
|
2324
|
-
else {
|
|
2325
|
-
body = models_1.ObjectSerializer.deserialize(body, "GenericApiResponse");
|
|
2326
|
-
const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
|
|
2327
|
-
if (typeof body.success === 'boolean' && !body.success) {
|
|
2328
|
-
reject(new Error(body.error || errString));
|
|
2329
|
-
}
|
|
2330
|
-
else if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
2331
|
-
resolve(body);
|
|
2332
|
-
}
|
|
2333
|
-
else {
|
|
2334
|
-
reject(errString);
|
|
2335
|
-
}
|
|
2336
|
-
}
|
|
2337
|
-
});
|
|
2338
|
-
});
|
|
2339
|
-
});
|
|
2340
|
-
}
|
|
2341
|
-
/**
|
|
2342
|
-
* White label admin only API to remove a user from a project.
|
|
2343
|
-
* @summary Remove user from a project
|
|
2344
|
-
* @param organizationId Organization ID
|
|
2345
|
-
* @param projectId Project ID
|
|
2346
|
-
* @param userId User ID
|
|
2347
|
-
*/
|
|
2348
|
-
async whitelabelAdminRemoveUserFromProject(organizationId, projectId, userId, options = { headers: {} }) {
|
|
2349
|
-
const localVarPath = this.basePath + '/api/organizations/{organizationId}/whitelabel/projects/{projectId}/members/{userId}'
|
|
2350
|
-
.replace('{' + 'organizationId' + '}', encodeURIComponent(String(organizationId)))
|
|
2351
|
-
.replace('{' + 'projectId' + '}', encodeURIComponent(String(projectId)))
|
|
2352
|
-
.replace('{' + 'userId' + '}', encodeURIComponent(String(userId)));
|
|
2353
|
-
let localVarQueryParameters = {};
|
|
2354
|
-
let localVarHeaderParams = Object.assign({
|
|
2355
|
-
'User-Agent': 'edgeimpulse-api nodejs'
|
|
2356
|
-
}, this.defaultHeaders);
|
|
2357
|
-
const produces = ['application/json'];
|
|
2358
|
-
// give precedence to 'application/json'
|
|
2359
|
-
if (produces.indexOf('application/json') >= 0) {
|
|
2360
|
-
localVarHeaderParams.Accept = 'application/json';
|
|
2361
|
-
}
|
|
2362
|
-
else {
|
|
2363
|
-
localVarHeaderParams.Accept = produces.join(',');
|
|
2364
|
-
}
|
|
2365
|
-
let localVarFormParams = {};
|
|
2366
|
-
// verify required parameter 'organizationId' is not null or undefined
|
|
2367
|
-
if (organizationId === null || organizationId === undefined) {
|
|
2368
|
-
throw new Error('Required parameter organizationId was null or undefined when calling whitelabelAdminRemoveUserFromProject.');
|
|
2369
|
-
}
|
|
2370
|
-
// verify required parameter 'projectId' is not null or undefined
|
|
2371
|
-
if (projectId === null || projectId === undefined) {
|
|
2372
|
-
throw new Error('Required parameter projectId was null or undefined when calling whitelabelAdminRemoveUserFromProject.');
|
|
2373
|
-
}
|
|
2374
|
-
// verify required parameter 'userId' is not null or undefined
|
|
2375
|
-
if (userId === null || userId === undefined) {
|
|
2376
|
-
throw new Error('Required parameter userId was null or undefined when calling whitelabelAdminRemoveUserFromProject.');
|
|
2377
|
-
}
|
|
2378
|
-
Object.assign(localVarHeaderParams, options.headers);
|
|
2379
|
-
Object.assign(localVarHeaderParams, this.opts.extraHeaders);
|
|
2380
|
-
let localVarUseFormData = false;
|
|
2381
|
-
let localVarRequestOptions = {
|
|
2382
|
-
method: 'DELETE',
|
|
2383
|
-
qs: localVarQueryParameters,
|
|
2384
|
-
headers: localVarHeaderParams,
|
|
2385
|
-
uri: localVarPath,
|
|
2386
|
-
useQuerystring: this._useQuerystring,
|
|
2387
|
-
agentOptions: { keepAlive: false },
|
|
2388
|
-
json: true,
|
|
2389
|
-
};
|
|
2390
|
-
let authenticationPromise = Promise.resolve();
|
|
2391
|
-
authenticationPromise = authenticationPromise.then(() => this.authentications.ApiKeyAuthentication.applyToRequest(localVarRequestOptions));
|
|
2392
|
-
authenticationPromise = authenticationPromise.then(() => this.authentications.JWTAuthentication.applyToRequest(localVarRequestOptions));
|
|
2393
|
-
authenticationPromise = authenticationPromise.then(() => this.authentications.JWTHttpHeaderAuthentication.applyToRequest(localVarRequestOptions));
|
|
2394
|
-
authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
|
|
2395
|
-
return authenticationPromise.then(() => {
|
|
2396
|
-
if (Object.keys(localVarFormParams).length) {
|
|
2397
|
-
if (localVarUseFormData) {
|
|
2398
|
-
localVarRequestOptions.formData = localVarFormParams;
|
|
2399
|
-
}
|
|
2400
|
-
else {
|
|
2401
|
-
localVarRequestOptions.form = localVarFormParams;
|
|
2402
|
-
}
|
|
2403
|
-
}
|
|
2404
|
-
return new Promise((resolve, reject) => {
|
|
2405
|
-
localVarRequest(localVarRequestOptions, (error, response, body) => {
|
|
2406
|
-
if (error) {
|
|
2407
|
-
reject(error);
|
|
2408
|
-
}
|
|
2409
|
-
else {
|
|
2410
|
-
body = models_1.ObjectSerializer.deserialize(body, "GenericApiResponse");
|
|
2411
|
-
const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
|
|
2412
|
-
if (typeof body.success === 'boolean' && !body.success) {
|
|
2413
|
-
reject(new Error(body.error || errString));
|
|
2414
|
-
}
|
|
2415
|
-
else if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
2416
|
-
resolve(body);
|
|
2417
|
-
}
|
|
2418
|
-
else {
|
|
2419
|
-
reject(errString);
|
|
2420
|
-
}
|
|
2421
|
-
}
|
|
2422
|
-
});
|
|
2423
|
-
});
|
|
2424
|
-
});
|
|
2425
|
-
}
|
|
2426
|
-
/**
|
|
2427
|
-
* White label admin only API to update the default deployment target for this white label.
|
|
2428
|
-
* @summary Update default deployment target
|
|
2429
|
-
* @param organizationId Organization ID
|
|
2430
|
-
* @param updateWhitelabelDefaultDeploymentTargetRequest
|
|
2431
|
-
*/
|
|
2432
|
-
async whitelabelAdminUpdateDefaultDeploymentTarget(organizationId, updateWhitelabelDefaultDeploymentTargetRequest, options = { headers: {} }) {
|
|
2433
|
-
const localVarPath = this.basePath + '/api/organizations/{organizationId}/whitelabel/deploymentTargets/default'
|
|
2434
|
-
.replace('{' + 'organizationId' + '}', encodeURIComponent(String(organizationId)));
|
|
2435
|
-
let localVarQueryParameters = {};
|
|
2436
|
-
let localVarHeaderParams = Object.assign({
|
|
2437
|
-
'User-Agent': 'edgeimpulse-api nodejs'
|
|
2438
|
-
}, this.defaultHeaders);
|
|
2439
|
-
const produces = ['application/json'];
|
|
2440
|
-
// give precedence to 'application/json'
|
|
2441
|
-
if (produces.indexOf('application/json') >= 0) {
|
|
2442
|
-
localVarHeaderParams.Accept = 'application/json';
|
|
2443
|
-
}
|
|
2444
|
-
else {
|
|
2445
|
-
localVarHeaderParams.Accept = produces.join(',');
|
|
2446
|
-
}
|
|
2447
|
-
let localVarFormParams = {};
|
|
2448
|
-
// verify required parameter 'organizationId' is not null or undefined
|
|
2449
|
-
if (organizationId === null || organizationId === undefined) {
|
|
2450
|
-
throw new Error('Required parameter organizationId was null or undefined when calling whitelabelAdminUpdateDefaultDeploymentTarget.');
|
|
2451
|
-
}
|
|
2452
|
-
// verify required parameter 'updateWhitelabelDefaultDeploymentTargetRequest' is not null or undefined
|
|
2453
|
-
if (updateWhitelabelDefaultDeploymentTargetRequest === null || updateWhitelabelDefaultDeploymentTargetRequest === undefined) {
|
|
2454
|
-
throw new Error('Required parameter updateWhitelabelDefaultDeploymentTargetRequest was null or undefined when calling whitelabelAdminUpdateDefaultDeploymentTarget.');
|
|
2455
|
-
}
|
|
2456
|
-
Object.assign(localVarHeaderParams, options.headers);
|
|
2457
|
-
Object.assign(localVarHeaderParams, this.opts.extraHeaders);
|
|
2458
|
-
let localVarUseFormData = false;
|
|
2459
|
-
let localVarRequestOptions = {
|
|
2460
|
-
method: 'POST',
|
|
2461
|
-
qs: localVarQueryParameters,
|
|
2462
|
-
headers: localVarHeaderParams,
|
|
2463
|
-
uri: localVarPath,
|
|
2464
|
-
useQuerystring: this._useQuerystring,
|
|
2465
|
-
agentOptions: { keepAlive: false },
|
|
2466
|
-
json: true,
|
|
2467
|
-
body: models_1.ObjectSerializer.serialize(updateWhitelabelDefaultDeploymentTargetRequest, "UpdateWhitelabelDefaultDeploymentTargetRequest")
|
|
2468
|
-
};
|
|
2469
|
-
let authenticationPromise = Promise.resolve();
|
|
2470
|
-
authenticationPromise = authenticationPromise.then(() => this.authentications.ApiKeyAuthentication.applyToRequest(localVarRequestOptions));
|
|
2471
|
-
authenticationPromise = authenticationPromise.then(() => this.authentications.JWTAuthentication.applyToRequest(localVarRequestOptions));
|
|
2472
|
-
authenticationPromise = authenticationPromise.then(() => this.authentications.JWTHttpHeaderAuthentication.applyToRequest(localVarRequestOptions));
|
|
2473
|
-
authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
|
|
2474
|
-
return authenticationPromise.then(() => {
|
|
2475
|
-
if (Object.keys(localVarFormParams).length) {
|
|
2476
|
-
if (localVarUseFormData) {
|
|
2477
|
-
localVarRequestOptions.formData = localVarFormParams;
|
|
2478
|
-
}
|
|
2479
|
-
else {
|
|
2480
|
-
localVarRequestOptions.form = localVarFormParams;
|
|
2481
|
-
}
|
|
2482
|
-
}
|
|
2483
|
-
return new Promise((resolve, reject) => {
|
|
2484
|
-
localVarRequest(localVarRequestOptions, (error, response, body) => {
|
|
2485
|
-
if (error) {
|
|
2486
|
-
reject(error);
|
|
2487
|
-
}
|
|
2488
|
-
else {
|
|
2489
|
-
body = models_1.ObjectSerializer.deserialize(body, "GenericApiResponse");
|
|
2490
|
-
const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
|
|
2491
|
-
if (typeof body.success === 'boolean' && !body.success) {
|
|
2492
|
-
reject(new Error(body.error || errString));
|
|
2493
|
-
}
|
|
2494
|
-
else if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
2495
|
-
resolve(body);
|
|
2496
|
-
}
|
|
2497
|
-
else {
|
|
2498
|
-
reject(errString);
|
|
2499
|
-
}
|
|
2500
|
-
}
|
|
2501
|
-
});
|
|
2502
|
-
});
|
|
2503
|
-
});
|
|
2504
|
-
}
|
|
2505
|
-
/**
|
|
2506
|
-
* White label admin only API to customize the order of deployment options in the deployment view for this white label.
|
|
2507
|
-
* @summary Update the order of deployment options in the deployment view
|
|
2508
|
-
* @param organizationId Organization ID
|
|
2509
|
-
* @param updateWhitelabelDeploymentOptionsOrderRequest
|
|
2510
|
-
*/
|
|
2511
|
-
async whitelabelAdminUpdateDeploymentOptionsOrder(organizationId, updateWhitelabelDeploymentOptionsOrderRequest, options = { headers: {} }) {
|
|
2512
|
-
const localVarPath = this.basePath + '/api/organizations/{organizationId}/whitelabel/deploymentOptionsOrder'
|
|
2513
|
-
.replace('{' + 'organizationId' + '}', encodeURIComponent(String(organizationId)));
|
|
2514
|
-
let localVarQueryParameters = {};
|
|
2515
|
-
let localVarHeaderParams = Object.assign({
|
|
2516
|
-
'User-Agent': 'edgeimpulse-api nodejs'
|
|
2517
|
-
}, this.defaultHeaders);
|
|
2518
|
-
const produces = ['application/json'];
|
|
2519
|
-
// give precedence to 'application/json'
|
|
2520
|
-
if (produces.indexOf('application/json') >= 0) {
|
|
2521
|
-
localVarHeaderParams.Accept = 'application/json';
|
|
2522
|
-
}
|
|
2523
|
-
else {
|
|
2524
|
-
localVarHeaderParams.Accept = produces.join(',');
|
|
2525
|
-
}
|
|
2526
|
-
let localVarFormParams = {};
|
|
2527
|
-
// verify required parameter 'organizationId' is not null or undefined
|
|
2528
|
-
if (organizationId === null || organizationId === undefined) {
|
|
2529
|
-
throw new Error('Required parameter organizationId was null or undefined when calling whitelabelAdminUpdateDeploymentOptionsOrder.');
|
|
2530
|
-
}
|
|
2531
|
-
// verify required parameter 'updateWhitelabelDeploymentOptionsOrderRequest' is not null or undefined
|
|
2532
|
-
if (updateWhitelabelDeploymentOptionsOrderRequest === null || updateWhitelabelDeploymentOptionsOrderRequest === undefined) {
|
|
2533
|
-
throw new Error('Required parameter updateWhitelabelDeploymentOptionsOrderRequest was null or undefined when calling whitelabelAdminUpdateDeploymentOptionsOrder.');
|
|
2534
|
-
}
|
|
2535
|
-
Object.assign(localVarHeaderParams, options.headers);
|
|
2536
|
-
Object.assign(localVarHeaderParams, this.opts.extraHeaders);
|
|
2537
|
-
let localVarUseFormData = false;
|
|
2538
|
-
let localVarRequestOptions = {
|
|
2539
|
-
method: 'POST',
|
|
2540
|
-
qs: localVarQueryParameters,
|
|
2541
|
-
headers: localVarHeaderParams,
|
|
2542
|
-
uri: localVarPath,
|
|
2543
|
-
useQuerystring: this._useQuerystring,
|
|
2544
|
-
agentOptions: { keepAlive: false },
|
|
2545
|
-
json: true,
|
|
2546
|
-
body: models_1.ObjectSerializer.serialize(updateWhitelabelDeploymentOptionsOrderRequest, "UpdateWhitelabelDeploymentOptionsOrderRequest")
|
|
2547
|
-
};
|
|
2548
|
-
let authenticationPromise = Promise.resolve();
|
|
2549
|
-
authenticationPromise = authenticationPromise.then(() => this.authentications.ApiKeyAuthentication.applyToRequest(localVarRequestOptions));
|
|
2550
|
-
authenticationPromise = authenticationPromise.then(() => this.authentications.JWTAuthentication.applyToRequest(localVarRequestOptions));
|
|
2551
|
-
authenticationPromise = authenticationPromise.then(() => this.authentications.JWTHttpHeaderAuthentication.applyToRequest(localVarRequestOptions));
|
|
2552
|
-
authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
|
|
2553
|
-
return authenticationPromise.then(() => {
|
|
2554
|
-
if (Object.keys(localVarFormParams).length) {
|
|
2555
|
-
if (localVarUseFormData) {
|
|
2556
|
-
localVarRequestOptions.formData = localVarFormParams;
|
|
2557
|
-
}
|
|
2558
|
-
else {
|
|
2559
|
-
localVarRequestOptions.form = localVarFormParams;
|
|
2560
|
-
}
|
|
2561
|
-
}
|
|
2562
|
-
return new Promise((resolve, reject) => {
|
|
2563
|
-
localVarRequest(localVarRequestOptions, (error, response, body) => {
|
|
2564
|
-
if (error) {
|
|
2565
|
-
reject(error);
|
|
2566
|
-
}
|
|
2567
|
-
else {
|
|
2568
|
-
body = models_1.ObjectSerializer.deserialize(body, "GenericApiResponse");
|
|
2569
|
-
const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
|
|
2570
|
-
if (typeof body.success === 'boolean' && !body.success) {
|
|
2571
|
-
reject(new Error(body.error || errString));
|
|
2572
|
-
}
|
|
2573
|
-
else if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
2574
|
-
resolve(body);
|
|
2575
|
-
}
|
|
2576
|
-
else {
|
|
2577
|
-
reject(errString);
|
|
2578
|
-
}
|
|
2579
|
-
}
|
|
2580
|
-
});
|
|
2581
|
-
});
|
|
2582
|
-
});
|
|
2583
|
-
}
|
|
2584
|
-
/**
|
|
2585
|
-
* White label admin only API to update some or all of the deployment targets enabled for this white label.
|
|
2586
|
-
* @summary Update deployment targets
|
|
2587
|
-
* @param organizationId Organization ID
|
|
2588
|
-
* @param updateWhitelabelDeploymentTargetsRequest
|
|
2589
|
-
*/
|
|
2590
|
-
async whitelabelAdminUpdateDeploymentTargets(organizationId, updateWhitelabelDeploymentTargetsRequest, options = { headers: {} }) {
|
|
2591
|
-
const localVarPath = this.basePath + '/api/organizations/{organizationId}/whitelabel/deploymentTargets'
|
|
2592
|
-
.replace('{' + 'organizationId' + '}', encodeURIComponent(String(organizationId)));
|
|
2593
|
-
let localVarQueryParameters = {};
|
|
2594
|
-
let localVarHeaderParams = Object.assign({
|
|
2595
|
-
'User-Agent': 'edgeimpulse-api nodejs'
|
|
2596
|
-
}, this.defaultHeaders);
|
|
2597
|
-
const produces = ['application/json'];
|
|
2598
|
-
// give precedence to 'application/json'
|
|
2599
|
-
if (produces.indexOf('application/json') >= 0) {
|
|
2600
|
-
localVarHeaderParams.Accept = 'application/json';
|
|
2601
|
-
}
|
|
2602
|
-
else {
|
|
2603
|
-
localVarHeaderParams.Accept = produces.join(',');
|
|
2604
|
-
}
|
|
2605
|
-
let localVarFormParams = {};
|
|
2606
|
-
// verify required parameter 'organizationId' is not null or undefined
|
|
2607
|
-
if (organizationId === null || organizationId === undefined) {
|
|
2608
|
-
throw new Error('Required parameter organizationId was null or undefined when calling whitelabelAdminUpdateDeploymentTargets.');
|
|
2609
|
-
}
|
|
2610
|
-
// verify required parameter 'updateWhitelabelDeploymentTargetsRequest' is not null or undefined
|
|
2611
|
-
if (updateWhitelabelDeploymentTargetsRequest === null || updateWhitelabelDeploymentTargetsRequest === undefined) {
|
|
2612
|
-
throw new Error('Required parameter updateWhitelabelDeploymentTargetsRequest was null or undefined when calling whitelabelAdminUpdateDeploymentTargets.');
|
|
2613
|
-
}
|
|
2614
|
-
Object.assign(localVarHeaderParams, options.headers);
|
|
2615
|
-
Object.assign(localVarHeaderParams, this.opts.extraHeaders);
|
|
2616
|
-
let localVarUseFormData = false;
|
|
2617
|
-
let localVarRequestOptions = {
|
|
2618
|
-
method: 'POST',
|
|
2619
|
-
qs: localVarQueryParameters,
|
|
2620
|
-
headers: localVarHeaderParams,
|
|
2621
|
-
uri: localVarPath,
|
|
2622
|
-
useQuerystring: this._useQuerystring,
|
|
2623
|
-
agentOptions: { keepAlive: false },
|
|
2624
|
-
json: true,
|
|
2625
|
-
body: models_1.ObjectSerializer.serialize(updateWhitelabelDeploymentTargetsRequest, "UpdateWhitelabelDeploymentTargetsRequest")
|
|
2626
|
-
};
|
|
2627
|
-
let authenticationPromise = Promise.resolve();
|
|
2628
|
-
authenticationPromise = authenticationPromise.then(() => this.authentications.ApiKeyAuthentication.applyToRequest(localVarRequestOptions));
|
|
2629
|
-
authenticationPromise = authenticationPromise.then(() => this.authentications.JWTAuthentication.applyToRequest(localVarRequestOptions));
|
|
2630
|
-
authenticationPromise = authenticationPromise.then(() => this.authentications.JWTHttpHeaderAuthentication.applyToRequest(localVarRequestOptions));
|
|
2631
|
-
authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
|
|
2632
|
-
return authenticationPromise.then(() => {
|
|
2633
|
-
if (Object.keys(localVarFormParams).length) {
|
|
2634
|
-
if (localVarUseFormData) {
|
|
2635
|
-
localVarRequestOptions.formData = localVarFormParams;
|
|
2636
|
-
}
|
|
2637
|
-
else {
|
|
2638
|
-
localVarRequestOptions.form = localVarFormParams;
|
|
2639
|
-
}
|
|
2640
|
-
}
|
|
2641
|
-
return new Promise((resolve, reject) => {
|
|
2642
|
-
localVarRequest(localVarRequestOptions, (error, response, body) => {
|
|
2643
|
-
if (error) {
|
|
2644
|
-
reject(error);
|
|
2645
|
-
}
|
|
2646
|
-
else {
|
|
2647
|
-
body = models_1.ObjectSerializer.deserialize(body, "GenericApiResponse");
|
|
2648
|
-
const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
|
|
2649
|
-
if (typeof body.success === 'boolean' && !body.success) {
|
|
2650
|
-
reject(new Error(body.error || errString));
|
|
2651
|
-
}
|
|
2652
|
-
else if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
2653
|
-
resolve(body);
|
|
2654
|
-
}
|
|
2655
|
-
else {
|
|
2656
|
-
reject(errString);
|
|
2657
|
-
}
|
|
2658
|
-
}
|
|
2659
|
-
});
|
|
2660
|
-
});
|
|
2661
|
-
});
|
|
2662
|
-
}
|
|
2663
|
-
/**
|
|
2664
|
-
* White label admin only API to update the white label information.
|
|
2665
|
-
* @summary Update white label information
|
|
2666
|
-
* @param organizationId Organization ID
|
|
2667
|
-
* @param updateWhitelabelRequest
|
|
2668
|
-
*/
|
|
2669
|
-
async whitelabelAdminUpdateInfo(organizationId, updateWhitelabelRequest, options = { headers: {} }) {
|
|
2670
|
-
const localVarPath = this.basePath + '/api/organizations/{organizationId}/whitelabel'
|
|
2671
|
-
.replace('{' + 'organizationId' + '}', encodeURIComponent(String(organizationId)));
|
|
2672
|
-
let localVarQueryParameters = {};
|
|
2673
|
-
let localVarHeaderParams = Object.assign({
|
|
2674
|
-
'User-Agent': 'edgeimpulse-api nodejs'
|
|
2675
|
-
}, this.defaultHeaders);
|
|
2676
|
-
const produces = ['application/json'];
|
|
2677
|
-
// give precedence to 'application/json'
|
|
2678
|
-
if (produces.indexOf('application/json') >= 0) {
|
|
2679
|
-
localVarHeaderParams.Accept = 'application/json';
|
|
2680
|
-
}
|
|
2681
|
-
else {
|
|
2682
|
-
localVarHeaderParams.Accept = produces.join(',');
|
|
2683
|
-
}
|
|
2684
|
-
let localVarFormParams = {};
|
|
2685
|
-
// verify required parameter 'organizationId' is not null or undefined
|
|
2686
|
-
if (organizationId === null || organizationId === undefined) {
|
|
2687
|
-
throw new Error('Required parameter organizationId was null or undefined when calling whitelabelAdminUpdateInfo.');
|
|
2688
|
-
}
|
|
2689
|
-
// verify required parameter 'updateWhitelabelRequest' is not null or undefined
|
|
2690
|
-
if (updateWhitelabelRequest === null || updateWhitelabelRequest === undefined) {
|
|
2691
|
-
throw new Error('Required parameter updateWhitelabelRequest was null or undefined when calling whitelabelAdminUpdateInfo.');
|
|
2692
|
-
}
|
|
2693
|
-
Object.assign(localVarHeaderParams, options.headers);
|
|
2694
|
-
Object.assign(localVarHeaderParams, this.opts.extraHeaders);
|
|
2695
|
-
let localVarUseFormData = false;
|
|
2696
|
-
let localVarRequestOptions = {
|
|
2697
|
-
method: 'PUT',
|
|
2698
|
-
qs: localVarQueryParameters,
|
|
2699
|
-
headers: localVarHeaderParams,
|
|
2700
|
-
uri: localVarPath,
|
|
2701
|
-
useQuerystring: this._useQuerystring,
|
|
2702
|
-
agentOptions: { keepAlive: false },
|
|
2703
|
-
json: true,
|
|
2704
|
-
body: models_1.ObjectSerializer.serialize(updateWhitelabelRequest, "UpdateWhitelabelRequest")
|
|
2705
|
-
};
|
|
2706
|
-
let authenticationPromise = Promise.resolve();
|
|
2707
|
-
authenticationPromise = authenticationPromise.then(() => this.authentications.ApiKeyAuthentication.applyToRequest(localVarRequestOptions));
|
|
2708
|
-
authenticationPromise = authenticationPromise.then(() => this.authentications.JWTAuthentication.applyToRequest(localVarRequestOptions));
|
|
2709
|
-
authenticationPromise = authenticationPromise.then(() => this.authentications.JWTHttpHeaderAuthentication.applyToRequest(localVarRequestOptions));
|
|
2710
|
-
authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
|
|
2711
|
-
return authenticationPromise.then(() => {
|
|
2712
|
-
if (Object.keys(localVarFormParams).length) {
|
|
2713
|
-
if (localVarUseFormData) {
|
|
2714
|
-
localVarRequestOptions.formData = localVarFormParams;
|
|
2715
|
-
}
|
|
2716
|
-
else {
|
|
2717
|
-
localVarRequestOptions.form = localVarFormParams;
|
|
2718
|
-
}
|
|
2719
|
-
}
|
|
2720
|
-
return new Promise((resolve, reject) => {
|
|
2721
|
-
localVarRequest(localVarRequestOptions, (error, response, body) => {
|
|
2722
|
-
if (error) {
|
|
2723
|
-
reject(error);
|
|
2724
|
-
}
|
|
2725
|
-
else {
|
|
2726
|
-
body = models_1.ObjectSerializer.deserialize(body, "GenericApiResponse");
|
|
2727
|
-
const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
|
|
2728
|
-
if (typeof body.success === 'boolean' && !body.success) {
|
|
2729
|
-
reject(new Error(body.error || errString));
|
|
2730
|
-
}
|
|
2731
|
-
else if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
2732
|
-
resolve(body);
|
|
2733
|
-
}
|
|
2734
|
-
else {
|
|
2735
|
-
reject(errString);
|
|
2736
|
-
}
|
|
2737
|
-
}
|
|
2738
|
-
});
|
|
2739
|
-
});
|
|
2740
|
-
});
|
|
2741
|
-
}
|
|
2742
|
-
/**
|
|
2743
|
-
* White label admin only API to update organization properties such as name and logo.
|
|
2744
|
-
* @summary Update organization
|
|
2745
|
-
* @param organizationId Organization ID
|
|
2746
|
-
* @param innerOrganizationId Organization ID within the context of a white label
|
|
2747
|
-
* @param adminUpdateOrganizationRequest
|
|
2748
|
-
*/
|
|
2749
|
-
async whitelabelAdminUpdateOrganization(organizationId, innerOrganizationId, adminUpdateOrganizationRequest, options = { headers: {} }) {
|
|
2750
|
-
const localVarPath = this.basePath + '/api/organizations/{organizationId}/whitelabel/organizations/{innerOrganizationId}'
|
|
2751
|
-
.replace('{' + 'organizationId' + '}', encodeURIComponent(String(organizationId)))
|
|
2752
|
-
.replace('{' + 'innerOrganizationId' + '}', encodeURIComponent(String(innerOrganizationId)));
|
|
2753
|
-
let localVarQueryParameters = {};
|
|
2754
|
-
let localVarHeaderParams = Object.assign({
|
|
2755
|
-
'User-Agent': 'edgeimpulse-api nodejs'
|
|
2756
|
-
}, this.defaultHeaders);
|
|
2757
|
-
const produces = ['application/json'];
|
|
2758
|
-
// give precedence to 'application/json'
|
|
2759
|
-
if (produces.indexOf('application/json') >= 0) {
|
|
2760
|
-
localVarHeaderParams.Accept = 'application/json';
|
|
2761
|
-
}
|
|
2762
|
-
else {
|
|
2763
|
-
localVarHeaderParams.Accept = produces.join(',');
|
|
2764
|
-
}
|
|
2765
|
-
let localVarFormParams = {};
|
|
2766
|
-
// verify required parameter 'organizationId' is not null or undefined
|
|
2767
|
-
if (organizationId === null || organizationId === undefined) {
|
|
2768
|
-
throw new Error('Required parameter organizationId was null or undefined when calling whitelabelAdminUpdateOrganization.');
|
|
2769
|
-
}
|
|
2770
|
-
// verify required parameter 'innerOrganizationId' is not null or undefined
|
|
2771
|
-
if (innerOrganizationId === null || innerOrganizationId === undefined) {
|
|
2772
|
-
throw new Error('Required parameter innerOrganizationId was null or undefined when calling whitelabelAdminUpdateOrganization.');
|
|
2773
|
-
}
|
|
2774
|
-
// verify required parameter 'adminUpdateOrganizationRequest' is not null or undefined
|
|
2775
|
-
if (adminUpdateOrganizationRequest === null || adminUpdateOrganizationRequest === undefined) {
|
|
2776
|
-
throw new Error('Required parameter adminUpdateOrganizationRequest was null or undefined when calling whitelabelAdminUpdateOrganization.');
|
|
2777
|
-
}
|
|
2778
|
-
Object.assign(localVarHeaderParams, options.headers);
|
|
2779
|
-
Object.assign(localVarHeaderParams, this.opts.extraHeaders);
|
|
2780
|
-
let localVarUseFormData = false;
|
|
2781
|
-
let localVarRequestOptions = {
|
|
2782
|
-
method: 'POST',
|
|
2783
|
-
qs: localVarQueryParameters,
|
|
2784
|
-
headers: localVarHeaderParams,
|
|
2785
|
-
uri: localVarPath,
|
|
2786
|
-
useQuerystring: this._useQuerystring,
|
|
2787
|
-
agentOptions: { keepAlive: false },
|
|
2788
|
-
json: true,
|
|
2789
|
-
body: models_1.ObjectSerializer.serialize(adminUpdateOrganizationRequest, "AdminUpdateOrganizationRequest")
|
|
2790
|
-
};
|
|
2791
|
-
let authenticationPromise = Promise.resolve();
|
|
2792
|
-
authenticationPromise = authenticationPromise.then(() => this.authentications.ApiKeyAuthentication.applyToRequest(localVarRequestOptions));
|
|
2793
|
-
authenticationPromise = authenticationPromise.then(() => this.authentications.JWTAuthentication.applyToRequest(localVarRequestOptions));
|
|
2794
|
-
authenticationPromise = authenticationPromise.then(() => this.authentications.JWTHttpHeaderAuthentication.applyToRequest(localVarRequestOptions));
|
|
2795
|
-
authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
|
|
2796
|
-
return authenticationPromise.then(() => {
|
|
2797
|
-
if (Object.keys(localVarFormParams).length) {
|
|
2798
|
-
if (localVarUseFormData) {
|
|
2799
|
-
localVarRequestOptions.formData = localVarFormParams;
|
|
2800
|
-
}
|
|
2801
|
-
else {
|
|
2802
|
-
localVarRequestOptions.form = localVarFormParams;
|
|
2803
|
-
}
|
|
2804
|
-
}
|
|
2805
|
-
return new Promise((resolve, reject) => {
|
|
2806
|
-
localVarRequest(localVarRequestOptions, (error, response, body) => {
|
|
2807
|
-
if (error) {
|
|
2808
|
-
reject(error);
|
|
2809
|
-
}
|
|
2810
|
-
else {
|
|
2811
|
-
body = models_1.ObjectSerializer.deserialize(body, "GenericApiResponse");
|
|
2812
|
-
const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
|
|
2813
|
-
if (typeof body.success === 'boolean' && !body.success) {
|
|
2814
|
-
reject(new Error(body.error || errString));
|
|
2815
|
-
}
|
|
2816
|
-
else if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
2817
|
-
resolve(body);
|
|
2818
|
-
}
|
|
2819
|
-
else {
|
|
2820
|
-
reject(errString);
|
|
2821
|
-
}
|
|
2822
|
-
}
|
|
2823
|
-
});
|
|
2824
|
-
});
|
|
2825
|
-
});
|
|
2826
|
-
}
|
|
2827
|
-
/**
|
|
2828
|
-
* White label admin only API to update project properties.
|
|
2829
|
-
* @summary Update white label project
|
|
2830
|
-
* @param organizationId Organization ID
|
|
2831
|
-
* @param projectId Project ID
|
|
2832
|
-
* @param updateProjectRequest
|
|
2833
|
-
*/
|
|
2834
|
-
async whitelabelAdminUpdateProject(organizationId, projectId, updateProjectRequest, options = { headers: {} }) {
|
|
2835
|
-
const localVarPath = this.basePath + '/api/organizations/{organizationId}/whitelabel/projects/{projectId}'
|
|
2836
|
-
.replace('{' + 'organizationId' + '}', encodeURIComponent(String(organizationId)))
|
|
2837
|
-
.replace('{' + 'projectId' + '}', encodeURIComponent(String(projectId)));
|
|
2838
|
-
let localVarQueryParameters = {};
|
|
2839
|
-
let localVarHeaderParams = Object.assign({
|
|
2840
|
-
'User-Agent': 'edgeimpulse-api nodejs'
|
|
2841
|
-
}, this.defaultHeaders);
|
|
2842
|
-
const produces = ['application/json'];
|
|
2843
|
-
// give precedence to 'application/json'
|
|
2844
|
-
if (produces.indexOf('application/json') >= 0) {
|
|
2845
|
-
localVarHeaderParams.Accept = 'application/json';
|
|
2846
|
-
}
|
|
2847
|
-
else {
|
|
2848
|
-
localVarHeaderParams.Accept = produces.join(',');
|
|
2849
|
-
}
|
|
2850
|
-
let localVarFormParams = {};
|
|
2851
|
-
// verify required parameter 'organizationId' is not null or undefined
|
|
2852
|
-
if (organizationId === null || organizationId === undefined) {
|
|
2853
|
-
throw new Error('Required parameter organizationId was null or undefined when calling whitelabelAdminUpdateProject.');
|
|
2854
|
-
}
|
|
2855
|
-
// verify required parameter 'projectId' is not null or undefined
|
|
2856
|
-
if (projectId === null || projectId === undefined) {
|
|
2857
|
-
throw new Error('Required parameter projectId was null or undefined when calling whitelabelAdminUpdateProject.');
|
|
2858
|
-
}
|
|
2859
|
-
// verify required parameter 'updateProjectRequest' is not null or undefined
|
|
2860
|
-
if (updateProjectRequest === null || updateProjectRequest === undefined) {
|
|
2861
|
-
throw new Error('Required parameter updateProjectRequest was null or undefined when calling whitelabelAdminUpdateProject.');
|
|
2862
|
-
}
|
|
2863
|
-
Object.assign(localVarHeaderParams, options.headers);
|
|
2864
|
-
Object.assign(localVarHeaderParams, this.opts.extraHeaders);
|
|
2865
|
-
let localVarUseFormData = false;
|
|
2866
|
-
let localVarRequestOptions = {
|
|
2867
|
-
method: 'POST',
|
|
2868
|
-
qs: localVarQueryParameters,
|
|
2869
|
-
headers: localVarHeaderParams,
|
|
2870
|
-
uri: localVarPath,
|
|
2871
|
-
useQuerystring: this._useQuerystring,
|
|
2872
|
-
agentOptions: { keepAlive: false },
|
|
2873
|
-
json: true,
|
|
2874
|
-
body: models_1.ObjectSerializer.serialize(updateProjectRequest, "UpdateProjectRequest")
|
|
2875
|
-
};
|
|
2876
|
-
let authenticationPromise = Promise.resolve();
|
|
2877
|
-
authenticationPromise = authenticationPromise.then(() => this.authentications.ApiKeyAuthentication.applyToRequest(localVarRequestOptions));
|
|
2878
|
-
authenticationPromise = authenticationPromise.then(() => this.authentications.JWTAuthentication.applyToRequest(localVarRequestOptions));
|
|
2879
|
-
authenticationPromise = authenticationPromise.then(() => this.authentications.JWTHttpHeaderAuthentication.applyToRequest(localVarRequestOptions));
|
|
2880
|
-
authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
|
|
2881
|
-
return authenticationPromise.then(() => {
|
|
2882
|
-
if (Object.keys(localVarFormParams).length) {
|
|
2883
|
-
if (localVarUseFormData) {
|
|
2884
|
-
localVarRequestOptions.formData = localVarFormParams;
|
|
2885
|
-
}
|
|
2886
|
-
else {
|
|
2887
|
-
localVarRequestOptions.form = localVarFormParams;
|
|
2888
|
-
}
|
|
2889
|
-
}
|
|
2890
|
-
return new Promise((resolve, reject) => {
|
|
2891
|
-
localVarRequest(localVarRequestOptions, (error, response, body) => {
|
|
2892
|
-
if (error) {
|
|
2893
|
-
reject(error);
|
|
2894
|
-
}
|
|
2895
|
-
else {
|
|
2896
|
-
body = models_1.ObjectSerializer.deserialize(body, "GenericApiResponse");
|
|
2897
|
-
const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
|
|
2898
|
-
if (typeof body.success === 'boolean' && !body.success) {
|
|
2899
|
-
reject(new Error(body.error || errString));
|
|
2900
|
-
}
|
|
2901
|
-
else if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
2902
|
-
resolve(body);
|
|
2903
|
-
}
|
|
2904
|
-
else {
|
|
2905
|
-
reject(errString);
|
|
2906
|
-
}
|
|
2907
|
-
}
|
|
2908
|
-
});
|
|
2909
|
-
});
|
|
2910
|
-
});
|
|
2911
|
-
}
|
|
2912
|
-
/**
|
|
2913
|
-
* White label admin only API to update some or all theme colors.
|
|
2914
|
-
* @summary Update theme colors
|
|
2915
|
-
* @param organizationId Organization ID
|
|
2916
|
-
* @param updateThemeColorsRequest
|
|
2917
|
-
*/
|
|
2918
|
-
async whitelabelAdminUpdateThemeColors(organizationId, updateThemeColorsRequest, options = { headers: {} }) {
|
|
2919
|
-
const localVarPath = this.basePath + '/api/organizations/{organizationId}/whitelabel/theme/colors'
|
|
2920
|
-
.replace('{' + 'organizationId' + '}', encodeURIComponent(String(organizationId)));
|
|
2921
|
-
let localVarQueryParameters = {};
|
|
2922
|
-
let localVarHeaderParams = Object.assign({
|
|
2923
|
-
'User-Agent': 'edgeimpulse-api nodejs'
|
|
2924
|
-
}, this.defaultHeaders);
|
|
2925
|
-
const produces = ['application/json'];
|
|
2926
|
-
// give precedence to 'application/json'
|
|
2927
|
-
if (produces.indexOf('application/json') >= 0) {
|
|
2928
|
-
localVarHeaderParams.Accept = 'application/json';
|
|
2929
|
-
}
|
|
2930
|
-
else {
|
|
2931
|
-
localVarHeaderParams.Accept = produces.join(',');
|
|
2932
|
-
}
|
|
2933
|
-
let localVarFormParams = {};
|
|
2934
|
-
// verify required parameter 'organizationId' is not null or undefined
|
|
2935
|
-
if (organizationId === null || organizationId === undefined) {
|
|
2936
|
-
throw new Error('Required parameter organizationId was null or undefined when calling whitelabelAdminUpdateThemeColors.');
|
|
2937
|
-
}
|
|
2938
|
-
// verify required parameter 'updateThemeColorsRequest' is not null or undefined
|
|
2939
|
-
if (updateThemeColorsRequest === null || updateThemeColorsRequest === undefined) {
|
|
2940
|
-
throw new Error('Required parameter updateThemeColorsRequest was null or undefined when calling whitelabelAdminUpdateThemeColors.');
|
|
2941
|
-
}
|
|
2942
|
-
Object.assign(localVarHeaderParams, options.headers);
|
|
2943
|
-
Object.assign(localVarHeaderParams, this.opts.extraHeaders);
|
|
2944
|
-
let localVarUseFormData = false;
|
|
2945
|
-
let localVarRequestOptions = {
|
|
2946
|
-
method: 'POST',
|
|
2947
|
-
qs: localVarQueryParameters,
|
|
2948
|
-
headers: localVarHeaderParams,
|
|
2949
|
-
uri: localVarPath,
|
|
2950
|
-
useQuerystring: this._useQuerystring,
|
|
2951
|
-
agentOptions: { keepAlive: false },
|
|
2952
|
-
json: true,
|
|
2953
|
-
body: models_1.ObjectSerializer.serialize(updateThemeColorsRequest, "UpdateThemeColorsRequest")
|
|
2954
|
-
};
|
|
2955
|
-
let authenticationPromise = Promise.resolve();
|
|
2956
|
-
authenticationPromise = authenticationPromise.then(() => this.authentications.ApiKeyAuthentication.applyToRequest(localVarRequestOptions));
|
|
2957
|
-
authenticationPromise = authenticationPromise.then(() => this.authentications.JWTAuthentication.applyToRequest(localVarRequestOptions));
|
|
2958
|
-
authenticationPromise = authenticationPromise.then(() => this.authentications.JWTHttpHeaderAuthentication.applyToRequest(localVarRequestOptions));
|
|
2959
|
-
authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
|
|
2960
|
-
return authenticationPromise.then(() => {
|
|
2961
|
-
if (Object.keys(localVarFormParams).length) {
|
|
2962
|
-
if (localVarUseFormData) {
|
|
2963
|
-
localVarRequestOptions.formData = localVarFormParams;
|
|
2964
|
-
}
|
|
2965
|
-
else {
|
|
2966
|
-
localVarRequestOptions.form = localVarFormParams;
|
|
2967
|
-
}
|
|
2968
|
-
}
|
|
2969
|
-
return new Promise((resolve, reject) => {
|
|
2970
|
-
localVarRequest(localVarRequestOptions, (error, response, body) => {
|
|
2971
|
-
if (error) {
|
|
2972
|
-
reject(error);
|
|
2973
|
-
}
|
|
2974
|
-
else {
|
|
2975
|
-
body = models_1.ObjectSerializer.deserialize(body, "GenericApiResponse");
|
|
2976
|
-
const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
|
|
2977
|
-
if (typeof body.success === 'boolean' && !body.success) {
|
|
2978
|
-
reject(new Error(body.error || errString));
|
|
2979
|
-
}
|
|
2980
|
-
else if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
2981
|
-
resolve(body);
|
|
2982
|
-
}
|
|
2983
|
-
else {
|
|
2984
|
-
reject(errString);
|
|
2985
|
-
}
|
|
2986
|
-
}
|
|
2987
|
-
});
|
|
2988
|
-
});
|
|
2989
|
-
});
|
|
2990
|
-
}
|
|
2991
|
-
/**
|
|
2992
|
-
* White label admin only API to update the white label theme device logo.
|
|
2993
|
-
* @summary Update theme device logo
|
|
2994
|
-
* @param organizationId Organization ID
|
|
2995
|
-
* @param image
|
|
2996
|
-
*/
|
|
2997
|
-
async whitelabelAdminUpdateThemeDeviceLogo(organizationId, params, options = { headers: {} }) {
|
|
2998
|
-
const localVarPath = this.basePath + '/api/organizations/{organizationId}/whitelabel/theme/deviceLogo'
|
|
2999
|
-
.replace('{' + 'organizationId' + '}', encodeURIComponent(String(organizationId)));
|
|
3000
|
-
let localVarQueryParameters = {};
|
|
3001
|
-
let localVarHeaderParams = Object.assign({
|
|
3002
|
-
'User-Agent': 'edgeimpulse-api nodejs'
|
|
3003
|
-
}, this.defaultHeaders);
|
|
3004
|
-
const produces = ['application/json'];
|
|
3005
|
-
// give precedence to 'application/json'
|
|
3006
|
-
if (produces.indexOf('application/json') >= 0) {
|
|
3007
|
-
localVarHeaderParams.Accept = 'application/json';
|
|
3008
|
-
}
|
|
3009
|
-
else {
|
|
3010
|
-
localVarHeaderParams.Accept = produces.join(',');
|
|
3011
|
-
}
|
|
3012
|
-
let localVarFormParams = {};
|
|
3013
|
-
// verify required parameter 'organizationId' is not null or undefined
|
|
3014
|
-
if (organizationId === null || organizationId === undefined) {
|
|
3015
|
-
throw new Error('Required parameter organizationId was null or undefined when calling whitelabelAdminUpdateThemeDeviceLogo.');
|
|
3016
|
-
}
|
|
3017
|
-
Object.assign(localVarHeaderParams, options.headers);
|
|
3018
|
-
Object.assign(localVarHeaderParams, this.opts.extraHeaders);
|
|
3019
|
-
let localVarUseFormData = false;
|
|
3020
|
-
if (params.image !== undefined) {
|
|
3021
|
-
localVarFormParams['image'] = params.image;
|
|
3022
|
-
}
|
|
3023
|
-
localVarUseFormData = true;
|
|
3024
|
-
let localVarRequestOptions = {
|
|
3025
|
-
method: 'POST',
|
|
3026
|
-
qs: localVarQueryParameters,
|
|
3027
|
-
headers: localVarHeaderParams,
|
|
3028
|
-
uri: localVarPath,
|
|
3029
|
-
useQuerystring: this._useQuerystring,
|
|
3030
|
-
agentOptions: { keepAlive: false },
|
|
3031
|
-
json: true,
|
|
3032
|
-
};
|
|
3033
|
-
let authenticationPromise = Promise.resolve();
|
|
3034
|
-
authenticationPromise = authenticationPromise.then(() => this.authentications.ApiKeyAuthentication.applyToRequest(localVarRequestOptions));
|
|
3035
|
-
authenticationPromise = authenticationPromise.then(() => this.authentications.JWTAuthentication.applyToRequest(localVarRequestOptions));
|
|
3036
|
-
authenticationPromise = authenticationPromise.then(() => this.authentications.JWTHttpHeaderAuthentication.applyToRequest(localVarRequestOptions));
|
|
3037
|
-
authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
|
|
3038
|
-
return authenticationPromise.then(() => {
|
|
3039
|
-
if (Object.keys(localVarFormParams).length) {
|
|
3040
|
-
if (localVarUseFormData) {
|
|
3041
|
-
localVarRequestOptions.formData = localVarFormParams;
|
|
3042
|
-
}
|
|
3043
|
-
else {
|
|
3044
|
-
localVarRequestOptions.form = localVarFormParams;
|
|
3045
|
-
}
|
|
3046
|
-
}
|
|
3047
|
-
return new Promise((resolve, reject) => {
|
|
3048
|
-
localVarRequest(localVarRequestOptions, (error, response, body) => {
|
|
3049
|
-
if (error) {
|
|
3050
|
-
reject(error);
|
|
3051
|
-
}
|
|
3052
|
-
else {
|
|
3053
|
-
body = models_1.ObjectSerializer.deserialize(body, "UploadAssetResponse");
|
|
3054
|
-
const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
|
|
3055
|
-
if (typeof body.success === 'boolean' && !body.success) {
|
|
3056
|
-
reject(new Error(body.error || errString));
|
|
3057
|
-
}
|
|
3058
|
-
else if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
3059
|
-
resolve(body);
|
|
3060
|
-
}
|
|
3061
|
-
else {
|
|
3062
|
-
reject(errString);
|
|
3063
|
-
}
|
|
3064
|
-
}
|
|
3065
|
-
});
|
|
3066
|
-
});
|
|
3067
|
-
});
|
|
3068
|
-
}
|
|
3069
|
-
/**
|
|
3070
|
-
* White label admin only API to update the theme favicon.
|
|
3071
|
-
* @summary Update theme favicon
|
|
3072
|
-
* @param organizationId Organization ID
|
|
3073
|
-
* @param image
|
|
3074
|
-
*/
|
|
3075
|
-
async whitelabelAdminUpdateThemeFavicon(organizationId, params, options = { headers: {} }) {
|
|
3076
|
-
const localVarPath = this.basePath + '/api/organizations/{organizationId}/whitelabel/theme/favicon'
|
|
3077
|
-
.replace('{' + 'organizationId' + '}', encodeURIComponent(String(organizationId)));
|
|
3078
|
-
let localVarQueryParameters = {};
|
|
3079
|
-
let localVarHeaderParams = Object.assign({
|
|
3080
|
-
'User-Agent': 'edgeimpulse-api nodejs'
|
|
3081
|
-
}, this.defaultHeaders);
|
|
3082
|
-
const produces = ['application/json'];
|
|
3083
|
-
// give precedence to 'application/json'
|
|
3084
|
-
if (produces.indexOf('application/json') >= 0) {
|
|
3085
|
-
localVarHeaderParams.Accept = 'application/json';
|
|
3086
|
-
}
|
|
3087
|
-
else {
|
|
3088
|
-
localVarHeaderParams.Accept = produces.join(',');
|
|
3089
|
-
}
|
|
3090
|
-
let localVarFormParams = {};
|
|
3091
|
-
// verify required parameter 'organizationId' is not null or undefined
|
|
3092
|
-
if (organizationId === null || organizationId === undefined) {
|
|
3093
|
-
throw new Error('Required parameter organizationId was null or undefined when calling whitelabelAdminUpdateThemeFavicon.');
|
|
3094
|
-
}
|
|
3095
|
-
// verify required parameter 'image' is not null or undefined
|
|
3096
|
-
if (params.image === null || params.image === undefined) {
|
|
3097
|
-
throw new Error('Required parameter params.image was null or undefined when calling whitelabelAdminUpdateThemeFavicon.');
|
|
3098
|
-
}
|
|
3099
|
-
Object.assign(localVarHeaderParams, options.headers);
|
|
3100
|
-
Object.assign(localVarHeaderParams, this.opts.extraHeaders);
|
|
3101
|
-
let localVarUseFormData = false;
|
|
3102
|
-
if (params.image !== undefined) {
|
|
3103
|
-
localVarFormParams['image'] = params.image;
|
|
3104
|
-
}
|
|
3105
|
-
localVarUseFormData = true;
|
|
3106
|
-
let localVarRequestOptions = {
|
|
3107
|
-
method: 'POST',
|
|
3108
|
-
qs: localVarQueryParameters,
|
|
3109
|
-
headers: localVarHeaderParams,
|
|
3110
|
-
uri: localVarPath,
|
|
3111
|
-
useQuerystring: this._useQuerystring,
|
|
3112
|
-
agentOptions: { keepAlive: false },
|
|
3113
|
-
json: true,
|
|
3114
|
-
};
|
|
3115
|
-
let authenticationPromise = Promise.resolve();
|
|
3116
|
-
authenticationPromise = authenticationPromise.then(() => this.authentications.ApiKeyAuthentication.applyToRequest(localVarRequestOptions));
|
|
3117
|
-
authenticationPromise = authenticationPromise.then(() => this.authentications.JWTAuthentication.applyToRequest(localVarRequestOptions));
|
|
3118
|
-
authenticationPromise = authenticationPromise.then(() => this.authentications.JWTHttpHeaderAuthentication.applyToRequest(localVarRequestOptions));
|
|
3119
|
-
authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
|
|
3120
|
-
return authenticationPromise.then(() => {
|
|
3121
|
-
if (Object.keys(localVarFormParams).length) {
|
|
3122
|
-
if (localVarUseFormData) {
|
|
3123
|
-
localVarRequestOptions.formData = localVarFormParams;
|
|
3124
|
-
}
|
|
3125
|
-
else {
|
|
3126
|
-
localVarRequestOptions.form = localVarFormParams;
|
|
3127
|
-
}
|
|
3128
|
-
}
|
|
3129
|
-
return new Promise((resolve, reject) => {
|
|
3130
|
-
localVarRequest(localVarRequestOptions, (error, response, body) => {
|
|
3131
|
-
if (error) {
|
|
3132
|
-
reject(error);
|
|
3133
|
-
}
|
|
3134
|
-
else {
|
|
3135
|
-
body = models_1.ObjectSerializer.deserialize(body, "GenericApiResponse");
|
|
3136
|
-
const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
|
|
3137
|
-
if (typeof body.success === 'boolean' && !body.success) {
|
|
3138
|
-
reject(new Error(body.error || errString));
|
|
3139
|
-
}
|
|
3140
|
-
else if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
3141
|
-
resolve(body);
|
|
3142
|
-
}
|
|
3143
|
-
else {
|
|
3144
|
-
reject(errString);
|
|
3145
|
-
}
|
|
3146
|
-
}
|
|
3147
|
-
});
|
|
3148
|
-
});
|
|
3149
|
-
});
|
|
3150
|
-
}
|
|
3151
|
-
/**
|
|
3152
|
-
* White label admin only API to update the white label theme logo.
|
|
3153
|
-
* @summary Update theme logo
|
|
3154
|
-
* @param organizationId Organization ID
|
|
3155
|
-
* @param image
|
|
3156
|
-
*/
|
|
3157
|
-
async whitelabelAdminUpdateThemeLogo(organizationId, params, options = { headers: {} }) {
|
|
3158
|
-
const localVarPath = this.basePath + '/api/organizations/{organizationId}/whitelabel/theme/logo'
|
|
3159
|
-
.replace('{' + 'organizationId' + '}', encodeURIComponent(String(organizationId)));
|
|
3160
|
-
let localVarQueryParameters = {};
|
|
3161
|
-
let localVarHeaderParams = Object.assign({
|
|
3162
|
-
'User-Agent': 'edgeimpulse-api nodejs'
|
|
3163
|
-
}, this.defaultHeaders);
|
|
3164
|
-
const produces = ['application/json'];
|
|
3165
|
-
// give precedence to 'application/json'
|
|
3166
|
-
if (produces.indexOf('application/json') >= 0) {
|
|
3167
|
-
localVarHeaderParams.Accept = 'application/json';
|
|
3168
|
-
}
|
|
3169
|
-
else {
|
|
3170
|
-
localVarHeaderParams.Accept = produces.join(',');
|
|
3171
|
-
}
|
|
3172
|
-
let localVarFormParams = {};
|
|
3173
|
-
// verify required parameter 'organizationId' is not null or undefined
|
|
3174
|
-
if (organizationId === null || organizationId === undefined) {
|
|
3175
|
-
throw new Error('Required parameter organizationId was null or undefined when calling whitelabelAdminUpdateThemeLogo.');
|
|
3176
|
-
}
|
|
3177
|
-
Object.assign(localVarHeaderParams, options.headers);
|
|
3178
|
-
Object.assign(localVarHeaderParams, this.opts.extraHeaders);
|
|
3179
|
-
let localVarUseFormData = false;
|
|
3180
|
-
if (params.image !== undefined) {
|
|
3181
|
-
localVarFormParams['image'] = params.image;
|
|
3182
|
-
}
|
|
3183
|
-
localVarUseFormData = true;
|
|
3184
|
-
let localVarRequestOptions = {
|
|
3185
|
-
method: 'POST',
|
|
3186
|
-
qs: localVarQueryParameters,
|
|
3187
|
-
headers: localVarHeaderParams,
|
|
3188
|
-
uri: localVarPath,
|
|
3189
|
-
useQuerystring: this._useQuerystring,
|
|
3190
|
-
agentOptions: { keepAlive: false },
|
|
3191
|
-
json: true,
|
|
3192
|
-
};
|
|
3193
|
-
let authenticationPromise = Promise.resolve();
|
|
3194
|
-
authenticationPromise = authenticationPromise.then(() => this.authentications.ApiKeyAuthentication.applyToRequest(localVarRequestOptions));
|
|
3195
|
-
authenticationPromise = authenticationPromise.then(() => this.authentications.JWTAuthentication.applyToRequest(localVarRequestOptions));
|
|
3196
|
-
authenticationPromise = authenticationPromise.then(() => this.authentications.JWTHttpHeaderAuthentication.applyToRequest(localVarRequestOptions));
|
|
3197
|
-
authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
|
|
3198
|
-
return authenticationPromise.then(() => {
|
|
3199
|
-
if (Object.keys(localVarFormParams).length) {
|
|
3200
|
-
if (localVarUseFormData) {
|
|
3201
|
-
localVarRequestOptions.formData = localVarFormParams;
|
|
3202
|
-
}
|
|
3203
|
-
else {
|
|
3204
|
-
localVarRequestOptions.form = localVarFormParams;
|
|
3205
|
-
}
|
|
3206
|
-
}
|
|
3207
|
-
return new Promise((resolve, reject) => {
|
|
3208
|
-
localVarRequest(localVarRequestOptions, (error, response, body) => {
|
|
3209
|
-
if (error) {
|
|
3210
|
-
reject(error);
|
|
3211
|
-
}
|
|
3212
|
-
else {
|
|
3213
|
-
body = models_1.ObjectSerializer.deserialize(body, "UploadAssetResponse");
|
|
3214
|
-
const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
|
|
3215
|
-
if (typeof body.success === 'boolean' && !body.success) {
|
|
3216
|
-
reject(new Error(body.error || errString));
|
|
3217
|
-
}
|
|
3218
|
-
else if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
3219
|
-
resolve(body);
|
|
3220
|
-
}
|
|
3221
|
-
else {
|
|
3222
|
-
reject(errString);
|
|
3223
|
-
}
|
|
3224
|
-
}
|
|
3225
|
-
});
|
|
3226
|
-
});
|
|
3227
|
-
});
|
|
3228
|
-
}
|
|
3229
|
-
/**
|
|
3230
|
-
* White label admin only API to update user properties.
|
|
3231
|
-
* @summary Update white label user
|
|
3232
|
-
* @param organizationId Organization ID
|
|
3233
|
-
* @param userId User ID
|
|
3234
|
-
* @param adminUpdateUserRequest
|
|
81
|
+
* @param projectId Project ID
|
|
3235
82
|
*/
|
|
3236
|
-
async
|
|
3237
|
-
const localVarPath = this.basePath + '/api/organizations/{organizationId}/whitelabel/
|
|
83
|
+
async whitelabelAdminDeleteProject(organizationId, projectId, options = { headers: {} }) {
|
|
84
|
+
const localVarPath = this.basePath + '/api/organizations/{organizationId}/whitelabel/projects/{projectId}'
|
|
3238
85
|
.replace('{' + 'organizationId' + '}', encodeURIComponent(String(organizationId)))
|
|
3239
|
-
.replace('{' + '
|
|
86
|
+
.replace('{' + 'projectId' + '}', encodeURIComponent(String(projectId)));
|
|
3240
87
|
let localVarQueryParameters = {};
|
|
3241
88
|
let localVarHeaderParams = Object.assign({
|
|
3242
89
|
'User-Agent': 'edgeimpulse-api nodejs'
|
|
@@ -3252,28 +99,23 @@ class OrganizationRequiresAdminApi {
|
|
|
3252
99
|
let localVarFormParams = {};
|
|
3253
100
|
// verify required parameter 'organizationId' is not null or undefined
|
|
3254
101
|
if (organizationId === null || organizationId === undefined) {
|
|
3255
|
-
throw new Error('Required parameter organizationId was null or undefined when calling
|
|
102
|
+
throw new Error('Required parameter organizationId was null or undefined when calling whitelabelAdminDeleteProject.');
|
|
3256
103
|
}
|
|
3257
|
-
// verify required parameter '
|
|
3258
|
-
if (
|
|
3259
|
-
throw new Error('Required parameter
|
|
3260
|
-
}
|
|
3261
|
-
// verify required parameter 'adminUpdateUserRequest' is not null or undefined
|
|
3262
|
-
if (adminUpdateUserRequest === null || adminUpdateUserRequest === undefined) {
|
|
3263
|
-
throw new Error('Required parameter adminUpdateUserRequest was null or undefined when calling whitelabelAdminUpdateUser.');
|
|
104
|
+
// verify required parameter 'projectId' is not null or undefined
|
|
105
|
+
if (projectId === null || projectId === undefined) {
|
|
106
|
+
throw new Error('Required parameter projectId was null or undefined when calling whitelabelAdminDeleteProject.');
|
|
3264
107
|
}
|
|
3265
108
|
Object.assign(localVarHeaderParams, options.headers);
|
|
3266
109
|
Object.assign(localVarHeaderParams, this.opts.extraHeaders);
|
|
3267
110
|
let localVarUseFormData = false;
|
|
3268
111
|
let localVarRequestOptions = {
|
|
3269
|
-
method: '
|
|
112
|
+
method: 'DELETE',
|
|
3270
113
|
qs: localVarQueryParameters,
|
|
3271
114
|
headers: localVarHeaderParams,
|
|
3272
115
|
uri: localVarPath,
|
|
3273
116
|
useQuerystring: this._useQuerystring,
|
|
3274
117
|
agentOptions: { keepAlive: false },
|
|
3275
118
|
json: true,
|
|
3276
|
-
body: models_1.ObjectSerializer.serialize(adminUpdateUserRequest, "AdminUpdateUserRequest")
|
|
3277
119
|
};
|
|
3278
120
|
let authenticationPromise = Promise.resolve();
|
|
3279
121
|
authenticationPromise = authenticationPromise.then(() => this.authentications.ApiKeyAuthentication.applyToRequest(localVarRequestOptions));
|