edge-impulse-linux 1.25.2 → 1.25.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -2
- package/build/cli/linux/runner.js +2 -1
- package/build/cli/linux/runner.js.map +1 -1
- package/build/cli-common/config.js +53 -4
- package/build/cli-common/config.js.map +1 -1
- package/build/cli-common/make-image.d.ts +1 -0
- package/build/cli-common/make-image.js +41 -8
- package/build/cli-common/make-image.js.map +1 -1
- package/build/library/data-forwarder.js +13 -1
- package/build/library/data-forwarder.js.map +1 -1
- package/build/library/sensors/gstreamer.d.ts +2 -1
- package/build/library/sensors/gstreamer.js +49 -28
- package/build/library/sensors/gstreamer.js.map +1 -1
- package/build/library/sensors/spawn-helper.d.ts +2 -0
- package/build/library/sensors/spawn-helper.js +32 -2
- package/build/library/sensors/spawn-helper.js.map +1 -1
- package/build/sdk/studio/api.d.ts +4 -0
- package/build/sdk/studio/api.js +147 -31
- package/build/sdk/studio/api.js.map +1 -1
- package/build/sdk/studio/sdk/api/adminApi.d.ts +28 -65
- package/build/sdk/studio/sdk/api/adminApi.js +170 -5
- package/build/sdk/studio/sdk/api/adminApi.js.map +1 -1
- package/build/sdk/studio/sdk/api/apis.d.ts +3 -5
- package/build/sdk/studio/sdk/api/apis.js.map +1 -1
- package/build/sdk/studio/sdk/api/authApi.js +25 -0
- package/build/sdk/studio/sdk/api/authApi.js.map +1 -1
- package/build/sdk/studio/sdk/api/cDNApi.js +25 -0
- package/build/sdk/studio/sdk/api/cDNApi.js.map +1 -1
- package/build/sdk/studio/sdk/api/canaryApi.d.ts +1 -1
- package/build/sdk/studio/sdk/api/canaryApi.js +25 -0
- package/build/sdk/studio/sdk/api/canaryApi.js.map +1 -1
- package/build/sdk/studio/sdk/api/classifyApi.d.ts +8 -10
- package/build/sdk/studio/sdk/api/classifyApi.js +42 -5
- package/build/sdk/studio/sdk/api/classifyApi.js.map +1 -1
- package/build/sdk/studio/sdk/api/dSPApi.d.ts +1 -18
- package/build/sdk/studio/sdk/api/dSPApi.js +25 -0
- package/build/sdk/studio/sdk/api/dSPApi.js.map +1 -1
- package/build/sdk/studio/sdk/api/datasetVersionsApi.d.ts +1 -8
- package/build/sdk/studio/sdk/api/datasetVersionsApi.js +25 -0
- package/build/sdk/studio/sdk/api/datasetVersionsApi.js.map +1 -1
- package/build/sdk/studio/sdk/api/deploymentApi.d.ts +2 -18
- package/build/sdk/studio/sdk/api/deploymentApi.js +34 -9
- package/build/sdk/studio/sdk/api/deploymentApi.js.map +1 -1
- package/build/sdk/studio/sdk/api/devicesApi.d.ts +1 -16
- package/build/sdk/studio/sdk/api/devicesApi.js +25 -0
- package/build/sdk/studio/sdk/api/devicesApi.js.map +1 -1
- package/build/sdk/studio/sdk/api/emailVerificationApi.d.ts +1 -7
- package/build/sdk/studio/sdk/api/emailVerificationApi.js +25 -0
- package/build/sdk/studio/sdk/api/emailVerificationApi.js.map +1 -1
- package/build/sdk/studio/sdk/api/exportApi.d.ts +1 -1
- package/build/sdk/studio/sdk/api/exportApi.js +25 -0
- package/build/sdk/studio/sdk/api/exportApi.js.map +1 -1
- package/build/sdk/studio/sdk/api/featureFlagsApi.d.ts +1 -1
- package/build/sdk/studio/sdk/api/featureFlagsApi.js +25 -0
- package/build/sdk/studio/sdk/api/featureFlagsApi.js.map +1 -1
- package/build/sdk/studio/sdk/api/healthApi.d.ts +1 -1
- package/build/sdk/studio/sdk/api/healthApi.js +25 -0
- package/build/sdk/studio/sdk/api/healthApi.js.map +1 -1
- package/build/sdk/studio/sdk/api/impulseApi.d.ts +6 -19
- package/build/sdk/studio/sdk/api/impulseApi.js +42 -13
- package/build/sdk/studio/sdk/api/impulseApi.js.map +1 -1
- package/build/sdk/studio/sdk/api/integrationsApi.d.ts +1 -3
- package/build/sdk/studio/sdk/api/integrationsApi.js +25 -0
- package/build/sdk/studio/sdk/api/integrationsApi.js.map +1 -1
- package/build/sdk/studio/sdk/api/jobsApi.d.ts +7 -34
- package/build/sdk/studio/sdk/api/jobsApi.js +35 -2
- package/build/sdk/studio/sdk/api/jobsApi.js.map +1 -1
- package/build/sdk/studio/sdk/api/learnApi.d.ts +33 -20
- package/build/sdk/studio/sdk/api/learnApi.js +201 -16
- package/build/sdk/studio/sdk/api/learnApi.js.map +1 -1
- package/build/sdk/studio/sdk/api/loginApi.d.ts +1 -3
- package/build/sdk/studio/sdk/api/loginApi.js +25 -0
- package/build/sdk/studio/sdk/api/loginApi.js.map +1 -1
- package/build/sdk/studio/sdk/api/metricsApi.d.ts +1 -4
- package/build/sdk/studio/sdk/api/metricsApi.js +25 -0
- package/build/sdk/studio/sdk/api/metricsApi.js.map +1 -1
- package/build/sdk/studio/sdk/api/monitoringApi.d.ts +30 -17
- package/build/sdk/studio/sdk/api/monitoringApi.js +128 -3
- package/build/sdk/studio/sdk/api/monitoringApi.js.map +1 -1
- package/build/sdk/studio/sdk/api/optimizationApi.d.ts +1 -15
- package/build/sdk/studio/sdk/api/optimizationApi.js +25 -0
- package/build/sdk/studio/sdk/api/optimizationApi.js.map +1 -1
- package/build/sdk/studio/sdk/api/organizationBlocksApi.d.ts +23 -32
- package/build/sdk/studio/sdk/api/organizationBlocksApi.js +107 -20
- package/build/sdk/studio/sdk/api/organizationBlocksApi.js.map +1 -1
- package/build/sdk/studio/sdk/api/organizationCreateProjectApi.d.ts +1 -13
- package/build/sdk/studio/sdk/api/organizationCreateProjectApi.js +29 -4
- package/build/sdk/studio/sdk/api/organizationCreateProjectApi.js.map +1 -1
- package/build/sdk/studio/sdk/api/organizationDataApi.d.ts +1 -32
- package/build/sdk/studio/sdk/api/organizationDataApi.js +37 -12
- package/build/sdk/studio/sdk/api/organizationDataApi.js.map +1 -1
- package/build/sdk/studio/sdk/api/organizationDataCampaignsApi.d.ts +1 -13
- package/build/sdk/studio/sdk/api/organizationDataCampaignsApi.js +29 -4
- package/build/sdk/studio/sdk/api/organizationDataCampaignsApi.js.map +1 -1
- package/build/sdk/studio/sdk/api/organizationJobsApi.d.ts +1 -5
- package/build/sdk/studio/sdk/api/organizationJobsApi.js +25 -0
- package/build/sdk/studio/sdk/api/organizationJobsApi.js.map +1 -1
- package/build/sdk/studio/sdk/api/organizationOAuthClientsApi.d.ts +1 -7
- package/build/sdk/studio/sdk/api/organizationOAuthClientsApi.js +29 -4
- package/build/sdk/studio/sdk/api/organizationOAuthClientsApi.js.map +1 -1
- package/build/sdk/studio/sdk/api/organizationPipelinesApi.d.ts +1 -6
- package/build/sdk/studio/sdk/api/organizationPipelinesApi.js +25 -0
- package/build/sdk/studio/sdk/api/organizationPipelinesApi.js.map +1 -1
- package/build/sdk/studio/sdk/api/organizationPortalsApi.d.ts +1 -7
- package/build/sdk/studio/sdk/api/organizationPortalsApi.js +25 -0
- package/build/sdk/studio/sdk/api/organizationPortalsApi.js.map +1 -1
- package/build/sdk/studio/sdk/api/organizationsApi.d.ts +17 -153
- package/build/sdk/studio/sdk/api/organizationsApi.js +126 -523
- package/build/sdk/studio/sdk/api/organizationsApi.js.map +1 -1
- package/build/sdk/studio/sdk/api/performanceCalibrationApi.d.ts +1 -9
- package/build/sdk/studio/sdk/api/performanceCalibrationApi.js +29 -4
- package/build/sdk/studio/sdk/api/performanceCalibrationApi.js.map +1 -1
- package/build/sdk/studio/sdk/api/postProcessingApi.d.ts +1 -8
- package/build/sdk/studio/sdk/api/postProcessingApi.js +25 -0
- package/build/sdk/studio/sdk/api/postProcessingApi.js.map +1 -1
- package/build/sdk/studio/sdk/api/projectsApi.d.ts +22 -63
- package/build/sdk/studio/sdk/api/projectsApi.js +82 -33
- package/build/sdk/studio/sdk/api/projectsApi.js.map +1 -1
- package/build/sdk/studio/sdk/api/rawDataApi.d.ts +27 -54
- package/build/sdk/studio/sdk/api/rawDataApi.js +75 -6
- package/build/sdk/studio/sdk/api/rawDataApi.js.map +1 -1
- package/build/sdk/studio/sdk/api/testApi.d.ts +1 -6
- package/build/sdk/studio/sdk/api/testApi.js +29 -4
- package/build/sdk/studio/sdk/api/testApi.js.map +1 -1
- package/build/sdk/studio/sdk/api/themesApi.d.ts +1 -5
- package/build/sdk/studio/sdk/api/themesApi.js +29 -4
- package/build/sdk/studio/sdk/api/themesApi.js.map +1 -1
- package/build/sdk/studio/sdk/api/uploadPortalApi.d.ts +1 -10
- package/build/sdk/studio/sdk/api/uploadPortalApi.js +25 -0
- package/build/sdk/studio/sdk/api/uploadPortalApi.js.map +1 -1
- package/build/sdk/studio/sdk/api/userApi.d.ts +1 -40
- package/build/sdk/studio/sdk/api/userApi.js +33 -8
- package/build/sdk/studio/sdk/api/userApi.js.map +1 -1
- package/build/sdk/studio/sdk/api/vlmApi.d.ts +1 -6
- package/build/sdk/studio/sdk/api/vlmApi.js +25 -0
- package/build/sdk/studio/sdk/api/vlmApi.js.map +1 -1
- package/build/sdk/studio/sdk/api/whitelabelsApi.d.ts +1 -9
- package/build/sdk/studio/sdk/api/whitelabelsApi.js +25 -0
- package/build/sdk/studio/sdk/api/whitelabelsApi.js.map +1 -1
- package/build/sdk/studio/sdk/model/addOrganizationApiKeyRequest.d.ts +4 -0
- package/build/sdk/studio/sdk/model/addOrganizationApiKeyRequest.js.map +1 -1
- package/build/sdk/studio/sdk/model/addOrganizationExtensionBlockRequest.d.ts +18 -6
- package/build/sdk/studio/sdk/model/addOrganizationExtensionBlockRequest.js +0 -2
- package/build/sdk/studio/sdk/model/addOrganizationExtensionBlockRequest.js.map +1 -1
- package/build/sdk/studio/sdk/model/addProjectApiKeyRequest.d.ts +1 -1
- package/build/sdk/studio/sdk/model/adminApiOrganization.d.ts +2 -0
- package/build/sdk/studio/sdk/model/adminOrganizationInfoResponse.d.ts +6 -0
- package/build/sdk/studio/sdk/model/adminUpdateOrganizationExtensionSettingsRequest.d.ts +7 -0
- package/build/sdk/studio/sdk/model/adminUpdateOrganizationExtensionSettingsRequest.js +4 -0
- package/build/sdk/studio/sdk/model/adminUpdateOrganizationExtensionSettingsRequest.js.map +1 -0
- package/build/sdk/studio/sdk/model/apiKeyExtension.d.ts +1 -1
- package/build/sdk/studio/sdk/model/createEnterpriseTrialResponse.d.ts +1 -1
- package/build/sdk/studio/sdk/model/createEventSubscriptionRequest.d.ts +7 -4
- package/build/sdk/studio/sdk/model/createImpulseRequest.d.ts +8 -0
- package/build/sdk/studio/sdk/model/createUserResponse.d.ts +2 -2
- package/build/sdk/studio/sdk/model/dSPInfo.d.ts +6 -0
- package/build/sdk/studio/sdk/model/dependencyData.d.ts +6 -0
- package/build/sdk/studio/sdk/model/deploymentHistory.d.ts +2 -0
- package/build/sdk/studio/sdk/model/detailedImpulse.d.ts +2 -0
- package/build/sdk/studio/sdk/model/eventSubscription.d.ts +7 -4
- package/build/sdk/studio/sdk/model/extension.d.ts +21 -4
- package/build/sdk/studio/sdk/model/extension.js +2 -2
- package/build/sdk/studio/sdk/model/extension.js.map +1 -1
- package/build/sdk/studio/sdk/model/extensionAuthMethod.d.ts +5 -0
- package/build/sdk/studio/sdk/model/extensionAuthMethod.js +6 -0
- package/build/sdk/studio/sdk/model/extensionAuthMethod.js.map +1 -0
- package/build/sdk/studio/sdk/model/extensionNavbarLocation.d.ts +5 -0
- package/build/sdk/studio/sdk/model/extensionNavbarLocation.js +6 -0
- package/build/sdk/studio/sdk/model/extensionNavbarLocation.js.map +1 -0
- package/build/sdk/studio/sdk/model/extensionWithId.d.ts +57 -0
- package/build/sdk/studio/sdk/model/extensionWithId.js +6 -0
- package/build/sdk/studio/sdk/model/extensionWithId.js.map +1 -0
- 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/foldModelMetadata.d.ts +52 -0
- package/build/sdk/studio/sdk/model/{adminAddProjectApiKeyRequest.js → foldModelMetadata.js} +1 -1
- package/build/sdk/studio/sdk/model/foldModelMetadata.js.map +1 -0
- package/build/sdk/studio/sdk/model/getAllImpulsesResponse.d.ts +4 -0
- package/build/sdk/studio/sdk/model/getCurrentApiKeyInfoResponse.d.ts +11 -0
- package/build/sdk/studio/sdk/model/getCurrentOrganizationApiKeyInfoResponse.d.ts +26 -0
- package/build/sdk/studio/sdk/model/getCurrentOrganizationApiKeyInfoResponse.js +6 -0
- package/build/sdk/studio/sdk/model/getCurrentOrganizationApiKeyInfoResponse.js.map +1 -0
- package/build/sdk/studio/sdk/model/getMonitoringEventDetailsResponse.d.ts +74 -0
- package/build/sdk/studio/sdk/model/getMonitoringEventDetailsResponse.js +7 -0
- package/build/sdk/studio/sdk/model/getMonitoringEventDetailsResponse.js.map +1 -0
- package/build/sdk/studio/sdk/model/getOrganizationExtensionBlockResponse.d.ts +2 -2
- package/build/sdk/studio/sdk/model/impulse.d.ts +6 -0
- package/build/sdk/studio/sdk/model/impulsePostProcessingBlock.d.ts +2 -4
- package/build/sdk/studio/sdk/model/kFoldsMetadata.d.ts +18 -0
- package/build/sdk/studio/sdk/model/kFoldsMetadata.js +4 -0
- package/build/sdk/studio/sdk/model/kFoldsMetadata.js.map +1 -0
- package/build/sdk/studio/sdk/model/kFoldsValidationConfig.d.ts +23 -0
- package/build/sdk/studio/sdk/model/kFoldsValidationConfig.js +4 -0
- package/build/sdk/studio/sdk/model/kFoldsValidationConfig.js.map +1 -0
- package/build/sdk/studio/sdk/model/kerasConfig.d.ts +6 -0
- package/build/sdk/studio/sdk/model/kerasConfig.js.map +1 -1
- package/build/sdk/studio/sdk/model/kerasModelMetadata.d.ts +2 -0
- package/build/sdk/studio/sdk/model/kerasModelMetadataBase.d.ts +44 -0
- package/build/sdk/studio/sdk/model/kerasModelMetadataBase.js +4 -0
- package/build/sdk/studio/sdk/model/kerasModelMetadataBase.js.map +1 -0
- package/build/sdk/studio/sdk/model/kerasModelMetadataResponse.d.ts +2 -0
- package/build/sdk/studio/sdk/model/kerasResponse.d.ts +6 -0
- package/build/sdk/studio/sdk/model/kerasResponse.js.map +1 -1
- package/build/sdk/studio/sdk/model/listFirstPartyExtensionsResponse.d.ts +18 -0
- package/build/sdk/studio/sdk/model/listFirstPartyExtensionsResponse.js +4 -0
- package/build/sdk/studio/sdk/model/listFirstPartyExtensionsResponse.js.map +1 -0
- package/build/sdk/studio/sdk/model/listLearnBlockFilesResponse.d.ts +15 -0
- package/build/sdk/studio/sdk/model/listLearnBlockFilesResponse.js +4 -0
- package/build/sdk/studio/sdk/model/listLearnBlockFilesResponse.js.map +1 -0
- package/build/sdk/studio/sdk/model/listMonitoringEventsResponse.d.ts +12 -0
- package/build/sdk/studio/sdk/model/listOrganizationExtensionBlocksResponse.d.ts +2 -2
- package/build/sdk/studio/sdk/model/listProjectAvailableExtensionsResponse.d.ts +2 -2
- package/build/sdk/studio/sdk/model/metricsAllVariantsResponse.d.ts +1 -1
- package/build/sdk/studio/sdk/model/modelPrediction.d.ts +6 -0
- package/build/sdk/studio/sdk/model/models.d.ts +20 -2
- package/build/sdk/studio/sdk/model/models.js +32 -3
- package/build/sdk/studio/sdk/model/models.js.map +1 -1
- package/build/sdk/studio/sdk/model/monitoringEvent.d.ts +9 -5
- package/build/sdk/studio/sdk/model/monitoringEvent.js +1 -1
- package/build/sdk/studio/sdk/model/monitoringEvent.js.map +1 -1
- package/build/sdk/studio/sdk/model/monitoringEventContext.d.ts +14 -0
- package/build/sdk/studio/sdk/model/monitoringEventContext.js +4 -0
- package/build/sdk/studio/sdk/model/monitoringEventContext.js.map +1 -0
- package/build/sdk/studio/sdk/model/monitoringEventEvaluationConfig.d.ts +12 -0
- package/build/sdk/studio/sdk/model/monitoringEventEvaluationConfig.js +6 -0
- package/build/sdk/studio/sdk/model/monitoringEventEvaluationConfig.js.map +1 -0
- package/build/sdk/studio/sdk/model/monitoringEventType.d.ts +5 -0
- package/build/sdk/studio/sdk/model/monitoringEventType.js +6 -0
- package/build/sdk/studio/sdk/model/monitoringEventType.js.map +1 -0
- package/build/sdk/studio/sdk/model/monitoringInferenceSummary.d.ts +11 -0
- package/build/sdk/studio/sdk/model/monitoringInferenceSummary.js +4 -0
- package/build/sdk/studio/sdk/model/monitoringInferenceSummary.js.map +1 -0
- package/build/sdk/studio/sdk/model/oAuthScope.d.ts +1 -1
- package/build/sdk/studio/sdk/model/oAuthScope.js +1 -1
- package/build/sdk/studio/sdk/model/oAuthScope.js.map +1 -1
- package/build/sdk/studio/sdk/model/organization.d.ts +2 -0
- package/build/sdk/studio/sdk/model/organizationExtensionSettings.d.ts +26 -0
- package/build/sdk/studio/sdk/model/organizationExtensionSettings.js +4 -0
- package/build/sdk/studio/sdk/model/organizationExtensionSettings.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/portalInfoResponse.d.ts +2 -0
- package/build/sdk/studio/sdk/model/postProcessingBlock.d.ts +2 -1
- package/build/sdk/studio/sdk/model/postProcessingBlockType.d.ts +2 -0
- package/build/sdk/studio/sdk/model/postProcessingBlockType.js +6 -0
- package/build/sdk/studio/sdk/model/postProcessingBlockType.js.map +1 -0
- package/build/sdk/studio/sdk/model/postProcessingConfig.d.ts +2 -0
- package/build/sdk/studio/sdk/model/postProcessingConfigRequest.d.ts +2 -0
- package/build/sdk/studio/sdk/model/postProcessingConfigResponse.d.ts +2 -0
- package/build/sdk/studio/sdk/model/projectDataSummary.d.ts +17 -1
- package/build/sdk/studio/sdk/model/projectDatasetMetadataRegressionCategory.d.ts +4 -0
- package/build/sdk/studio/sdk/model/projectDatasetMetadataRegressionCategory.js.map +1 -1
- package/build/sdk/studio/sdk/model/projectExtension.d.ts +23 -4
- package/build/sdk/studio/sdk/model/projectExtension.js +2 -2
- package/build/sdk/studio/sdk/model/projectExtension.js.map +1 -1
- package/build/sdk/studio/sdk/model/projectInfoResponse.d.ts +51 -3
- package/build/sdk/studio/sdk/model/projectInfoResponse.js.map +1 -1
- package/build/sdk/studio/sdk/model/projectTrainingDataSummaryResponse.d.ts +16 -0
- package/build/sdk/studio/sdk/model/savePretrainedModelRequest.d.ts +6 -0
- package/build/sdk/studio/sdk/model/setKerasParameterRequest.d.ts +2 -0
- package/build/sdk/studio/sdk/model/setKerasParameterRequest.js.map +1 -1
- package/build/sdk/studio/sdk/model/startSamplingResponse.d.ts +1 -1
- package/build/sdk/studio/sdk/model/storageProvider.d.ts +1 -1
- package/build/sdk/studio/sdk/model/storageProvider.js +1 -1
- package/build/sdk/studio/sdk/model/storageProvider.js.map +1 -1
- package/build/sdk/studio/sdk/model/updateEventSubscriptionRequest.d.ts +7 -4
- package/build/sdk/studio/sdk/model/updateOrganizationExtensionBlockRequest.d.ts +18 -6
- package/build/sdk/studio/sdk/model/updateOrganizationExtensionBlockRequest.js +0 -2
- package/build/sdk/studio/sdk/model/updateOrganizationExtensionBlockRequest.js.map +1 -1
- package/build/sdk/studio/sdk/model/updateOrganizationExtensionSettings.d.ts +10 -0
- package/build/sdk/studio/sdk/model/updateOrganizationExtensionSettings.js +4 -0
- package/build/sdk/studio/sdk/model/updateOrganizationExtensionSettings.js.map +1 -0
- package/build/sdk/studio/sdk/model/updateOrganizationRequest.d.ts +2 -0
- package/build/sdk/studio/sdk/model/updateProjectRequest.d.ts +2 -1
- package/build/sdk/studio/sdk/model/updateProjectRequest.js.map +1 -1
- package/build/sdk/studio/sdk/model/userOrganization.d.ts +2 -0
- package/build/sdk/studio/sdk/model/userOrganizationExtensionSettings.d.ts +14 -0
- package/build/sdk/studio/sdk/model/userOrganizationExtensionSettings.js +4 -0
- package/build/sdk/studio/sdk/model/userOrganizationExtensionSettings.js.map +1 -0
- package/build/sdk/studio/sdk/model/verifyDspBlockUrlResponse.d.ts +1 -1
- package/build/sdk/studio/sdk/model/verifyEmailResponse.d.ts +2 -2
- package/build/shared/MgmtInterfaceTypes.d.ts +1 -0
- package/build/shared/viewmodels/init.d.ts +1 -0
- package/build/shared/viewmodels/init.js +1 -0
- package/build/shared/viewmodels/init.js.map +1 -1
- package/package.json +2 -2
- package/test/endpoint-config.test.ts +159 -0
- package/build/sdk/studio/sdk/model/adminAddOrganizationApiKeyRequest.d.ts +0 -18
- package/build/sdk/studio/sdk/model/adminAddOrganizationApiKeyRequest.js +0 -6
- package/build/sdk/studio/sdk/model/adminAddOrganizationApiKeyRequest.js.map +0 -1
- package/build/sdk/studio/sdk/model/adminAddProjectApiKeyRequest.d.ts +0 -15
- package/build/sdk/studio/sdk/model/adminAddProjectApiKeyRequest.js.map +0 -1
|
@@ -12,61 +12,10 @@
|
|
|
12
12
|
/// <reference types="node" />
|
|
13
13
|
/// <reference types="node" />
|
|
14
14
|
import type { Response as UndiciResponse } from 'undici-types';
|
|
15
|
-
import { BackToLabelingRequest } from '../model/backToLabelingRequest';
|
|
16
|
-
import { BatchAddMetadataRequest } from '../model/batchAddMetadataRequest';
|
|
17
|
-
import { BatchClearMetadataByKeyRequest } from '../model/batchClearMetadataByKeyRequest';
|
|
18
|
-
import { BatchEditBoundingBoxesRequest } from '../model/batchEditBoundingBoxesRequest';
|
|
19
|
-
import { CountSamplesResponse } from '../model/countSamplesResponse';
|
|
20
|
-
import { CropSampleRequest } from '../model/cropSampleRequest';
|
|
21
|
-
import { CropSampleResponse } from '../model/cropSampleResponse';
|
|
22
|
-
import { DataExplorerPredictionsResponse } from '../model/dataExplorerPredictionsResponse';
|
|
23
|
-
import { DataExplorerSettings } from '../model/dataExplorerSettings';
|
|
24
|
-
import { DatasetSplitOptions } from '../model/datasetSplitOptions';
|
|
25
|
-
import { DatasetSplitPreviewResponse } from '../model/datasetSplitPreviewResponse';
|
|
26
|
-
import { EditSampleLabelRequest } from '../model/editSampleLabelRequest';
|
|
27
|
-
import { FindSegmentSampleRequest } from '../model/findSegmentSampleRequest';
|
|
28
|
-
import { FindSegmentSampleResponse } from '../model/findSegmentSampleResponse';
|
|
29
|
-
import { GenericApiResponse } from '../model/genericApiResponse';
|
|
30
|
-
import { StartJobResponse } from '../model/startJobResponse';
|
|
31
|
-
import { GetAIActionsProposedChangesResponse } from '../model/getAIActionsProposedChangesResponse';
|
|
32
|
-
import { GetAllImportedFromResponse } from '../model/getAllImportedFromResponse';
|
|
33
|
-
import { GetDataExplorerFeaturesResponse } from '../model/getDataExplorerFeaturesResponse';
|
|
34
|
-
import { GetDataExplorerSettingsResponse } from '../model/getDataExplorerSettingsResponse';
|
|
35
|
-
import { GetDatasetRatioResponse } from '../model/getDatasetRatioResponse';
|
|
36
|
-
import { GetDiversityDataResponse } from '../model/getDiversityDataResponse';
|
|
37
|
-
import { GetLabelNoiseDataResponse } from '../model/getLabelNoiseDataResponse';
|
|
38
|
-
import { GetRawDataMetadataCooccurrenceResponse } from '../model/getRawDataMetadataCooccurrenceResponse';
|
|
39
|
-
import { GetRawDataMetadataDistributionResponse } from '../model/getRawDataMetadataDistributionResponse';
|
|
40
|
-
import { GetRawDataProjectMetadataResponse } from '../model/getRawDataProjectMetadataResponse';
|
|
41
|
-
import { GetSampleDspResponse } from '../model/getSampleDspResponse';
|
|
42
|
-
import { GetSampleMetadataFilterOptionsResponse } from '../model/getSampleMetadataFilterOptionsResponse';
|
|
43
|
-
import { GetSampleMetadataResponse } from '../model/getSampleMetadataResponse';
|
|
44
|
-
import { GetSampleResponse } from '../model/getSampleResponse';
|
|
45
|
-
import { HasDataExplorerFeaturesResponse } from '../model/hasDataExplorerFeaturesResponse';
|
|
46
|
-
import { ListSamplesResponse } from '../model/listSamplesResponse';
|
|
47
|
-
import { MoveRawDataRequest } from '../model/moveRawDataRequest';
|
|
48
|
-
import { ObjectDetectionAutoLabelRequest } from '../model/objectDetectionAutoLabelRequest';
|
|
49
|
-
import { ObjectDetectionAutoLabelResponse } from '../model/objectDetectionAutoLabelResponse';
|
|
50
|
-
import { ObjectDetectionLabelQueueCountResponse } from '../model/objectDetectionLabelQueueCountResponse';
|
|
51
|
-
import { ObjectDetectionLabelQueueResponse } from '../model/objectDetectionLabelQueueResponse';
|
|
52
|
-
import { RawDataCategory } from '../model/rawDataCategory';
|
|
53
|
-
import { RawDataFilterCategory } from '../model/rawDataFilterCategory';
|
|
54
|
-
import { RebalanceDatasetResponse } from '../model/rebalanceDatasetResponse';
|
|
55
|
-
import { RenameSampleRequest } from '../model/renameSampleRequest';
|
|
56
|
-
import { SampleBoundingBoxesRequest } from '../model/sampleBoundingBoxesRequest';
|
|
57
|
-
import { SampleLabelMapRequest } from '../model/sampleLabelMapRequest';
|
|
58
|
-
import { SegmentSampleRequest } from '../model/segmentSampleRequest';
|
|
59
|
-
import { SetSampleMetadataRequest } from '../model/setSampleMetadataRequest';
|
|
60
|
-
import { SetSampleProposedChangesRequest } from '../model/setSampleProposedChangesRequest';
|
|
61
|
-
import { SetSampleStructuredLabelsRequest } from '../model/setSampleStructuredLabelsRequest';
|
|
62
|
-
import { SetSampleVideoDimensionsRequest } from '../model/setSampleVideoDimensionsRequest';
|
|
63
|
-
import { SplitSampleInFramesRequest } from '../model/splitSampleInFramesRequest';
|
|
64
|
-
import { StoreSegmentLengthRequest } from '../model/storeSegmentLengthRequest';
|
|
65
|
-
import { TrackObjectsRequest } from '../model/trackObjectsRequest';
|
|
66
|
-
import { TrackObjectsResponse } from '../model/trackObjectsResponse';
|
|
67
15
|
import { Authentication } from '../model/models';
|
|
68
16
|
import { ApiKeyAuth, OAuth } from '../model/models';
|
|
69
17
|
import { RequestFile } from './apis';
|
|
18
|
+
import type { BackToLabelingRequest, BatchAddMetadataRequest, BatchClearMetadataByKeyRequest, BatchEditBoundingBoxesRequest, CountSamplesResponse, CropSampleRequest, CropSampleResponse, DataExplorerPredictionsResponse, DataExplorerSettings, DatasetSplitOptions, DatasetSplitPreviewResponse, EditSampleLabelRequest, FindSegmentSampleRequest, FindSegmentSampleResponse, GenericApiResponse, GetAIActionsProposedChangesResponse, GetAllImportedFromResponse, GetDataExplorerFeaturesResponse, GetDataExplorerSettingsResponse, GetDatasetRatioResponse, GetDiversityDataResponse, GetLabelNoiseDataResponse, GetRawDataMetadataCooccurrenceResponse, GetRawDataMetadataDistributionResponse, GetRawDataProjectMetadataResponse, GetSampleDspResponse, GetSampleMetadataFilterOptionsResponse, GetSampleMetadataResponse, GetSampleResponse, HasDataExplorerFeaturesResponse, ListSamplesResponse, MoveRawDataRequest, ObjectDetectionAutoLabelRequest, ObjectDetectionAutoLabelResponse, ObjectDetectionLabelQueueCountResponse, ObjectDetectionLabelQueueResponse, RawDataCategory, RawDataFilterCategory, RebalanceDatasetResponse, RenameSampleRequest, SampleBoundingBoxesRequest, SampleLabelMapRequest, SegmentSampleRequest, SetSampleMetadataRequest, SetSampleProposedChangesRequest, SetSampleStructuredLabelsRequest, SetSampleVideoDimensionsRequest, SplitSampleInFramesRequest, StartJobResponse, StoreSegmentLengthRequest, TrackObjectsRequest, TrackObjectsResponse } from '../model/models';
|
|
70
19
|
export declare enum RawDataApiApiKeys {
|
|
71
20
|
ApiKeyAuthentication = 0,
|
|
72
21
|
JWTAuthentication = 1,
|
|
@@ -311,6 +260,7 @@ type countSamplesQueryParams = {
|
|
|
311
260
|
metadata?: string;
|
|
312
261
|
minDate?: Date;
|
|
313
262
|
maxDate?: Date;
|
|
263
|
+
datasetVersionId?: number;
|
|
314
264
|
};
|
|
315
265
|
type cropSampleQueryParams = {
|
|
316
266
|
datastreamIndex?: number;
|
|
@@ -341,6 +291,7 @@ type getRawDataMetadataDistributionQueryParams = {
|
|
|
341
291
|
};
|
|
342
292
|
type getRawDataProjectMetadataQueryParams = {
|
|
343
293
|
datasetVersionId?: number;
|
|
294
|
+
truncateLabels?: boolean;
|
|
344
295
|
includeDisabled?: 'both' | 'enabled';
|
|
345
296
|
};
|
|
346
297
|
type getSampleQueryParams = {
|
|
@@ -349,24 +300,31 @@ type getSampleQueryParams = {
|
|
|
349
300
|
impulseId?: number;
|
|
350
301
|
proposedActionsJobId?: number;
|
|
351
302
|
truncateStructuredLabels?: boolean;
|
|
303
|
+
datasetVersionId?: number;
|
|
352
304
|
};
|
|
353
305
|
type getSampleAsAudioQueryParams = {
|
|
354
306
|
axisIx: number;
|
|
355
307
|
sliceStart?: number;
|
|
356
308
|
sliceEnd?: number;
|
|
357
309
|
cacheKey?: string;
|
|
310
|
+
datasetVersionId?: number;
|
|
358
311
|
};
|
|
359
312
|
type getSampleAsImageQueryParams = {
|
|
360
313
|
afterInputBlock?: boolean;
|
|
361
314
|
cacheKey?: string;
|
|
362
315
|
impulseId?: number;
|
|
363
316
|
datastreamIndex?: number;
|
|
317
|
+
datasetVersionId?: number;
|
|
318
|
+
};
|
|
319
|
+
type getSampleAsRawQueryParams = {
|
|
320
|
+
datasetVersionId?: number;
|
|
364
321
|
};
|
|
365
322
|
type getSampleAsVideoQueryParams = {
|
|
366
323
|
afterInputBlock?: boolean;
|
|
367
324
|
cacheKey?: string;
|
|
368
325
|
impulseId?: number;
|
|
369
326
|
datastreamIndex?: number;
|
|
327
|
+
datasetVersionId?: number;
|
|
370
328
|
};
|
|
371
329
|
type getSampleMetadataQueryParams = {
|
|
372
330
|
category: RawDataFilterCategory;
|
|
@@ -375,6 +333,7 @@ type getSampleMetadataFilterOptionsQueryParams = {
|
|
|
375
333
|
category: RawDataFilterCategory;
|
|
376
334
|
limit?: number;
|
|
377
335
|
offset?: number;
|
|
336
|
+
datasetVersionId?: number;
|
|
378
337
|
};
|
|
379
338
|
type getSampleSliceQueryParams = {
|
|
380
339
|
sliceStart: number;
|
|
@@ -382,6 +341,7 @@ type getSampleSliceQueryParams = {
|
|
|
382
341
|
impulseId?: number;
|
|
383
342
|
datastreamIndex?: number;
|
|
384
343
|
truncateStructuredLabels?: boolean;
|
|
344
|
+
datasetVersionId?: number;
|
|
385
345
|
};
|
|
386
346
|
type getUncroppedDownsampledSampleQueryParams = {
|
|
387
347
|
limitPayloadValues?: number;
|
|
@@ -390,6 +350,7 @@ type getUncroppedDownsampledSampleQueryParams = {
|
|
|
390
350
|
impulseId?: number;
|
|
391
351
|
datastreamIndex?: number;
|
|
392
352
|
truncateStructuredLabels?: boolean;
|
|
353
|
+
datasetVersionId?: number;
|
|
393
354
|
};
|
|
394
355
|
type listSamplesQueryParams = {
|
|
395
356
|
category: RawDataFilterCategory;
|
|
@@ -416,6 +377,7 @@ type listSamplesQueryParams = {
|
|
|
416
377
|
metadata?: string;
|
|
417
378
|
minDate?: Date;
|
|
418
379
|
maxDate?: Date;
|
|
380
|
+
datasetVersionId?: number;
|
|
419
381
|
};
|
|
420
382
|
export type uploadDataExplorerScreenshotFormParams = {
|
|
421
383
|
image: RequestFile;
|
|
@@ -842,6 +804,7 @@ export declare class RawDataApi {
|
|
|
842
804
|
* @param metadata Filter samples by metadata key-value pairs, provided as a JSON string. Each item in the filter list is an object with the following properties: - \"key\": Metadata key to filter on. - \"op\": Operator (\"eq\" for positive match, \"neq\" for negative match). - \"values\": (optional) Array of values to match/exclude. If omitted or empty, matches/excludes all values for the key. In addition to filter objects, the following option objects can be specified: - { \"no_metadata\": boolean } - If true, include samples without any metadata - { \"filters_combinator\": (\"and\" | \"or\") } - Specifies the combinator and matching mode: - \"and\": All filter items must match (logical AND). - \"or\": Any filter item may match (logical OR); samples with metadata keys not present in the filters are included.
|
|
843
805
|
* @param minDate Only include samples that where added after the date given
|
|
844
806
|
* @param maxDate Only include samples that were added before the date given
|
|
807
|
+
* @param datasetVersionId Dataset version ID. If not set, the current mutable dataset is used
|
|
845
808
|
*/
|
|
846
809
|
countSamples(projectId: number, queryParams: countSamplesQueryParams, options?: {
|
|
847
810
|
headers: {
|
|
@@ -1143,7 +1106,8 @@ export declare class RawDataApi {
|
|
|
1143
1106
|
* Get the raw data metadata for this project
|
|
1144
1107
|
* @summary Get project dataset metadata
|
|
1145
1108
|
* @param projectId Project ID
|
|
1146
|
-
* @param datasetVersionId Dataset version ID. If not set, the current dataset
|
|
1109
|
+
* @param datasetVersionId Dataset version ID. If not set, the current mutable dataset is used
|
|
1110
|
+
* @param truncateLabels If true, only a slice of labels will be returned.
|
|
1147
1111
|
* @param includeDisabled Whether to include enabled-only samples, or both enabled and disabled samples (defaults to both).
|
|
1148
1112
|
*/
|
|
1149
1113
|
getRawDataProjectMetadata(projectId: number, queryParams?: getRawDataProjectMetadataQueryParams, options?: {
|
|
@@ -1164,6 +1128,7 @@ export declare class RawDataApi {
|
|
|
1164
1128
|
* @param impulseId Impulse ID. If this is unset then the default impulse is used.
|
|
1165
1129
|
* @param proposedActionsJobId Pass this parameter when querying samples from inside an AI Action job. If you pass this parameter in a multi-stage AI Action, previous proposed changes (from an earlier step) will be applied to the returned dataset.
|
|
1166
1130
|
* @param truncateStructuredLabels If true, only a slice of labels will be returned for samples with multiple labels.
|
|
1131
|
+
* @param datasetVersionId Dataset version ID. If not set, the current mutable dataset is used
|
|
1167
1132
|
*/
|
|
1168
1133
|
getSample(projectId: number, sampleId: number, queryParams?: getSampleQueryParams, options?: {
|
|
1169
1134
|
headers: {
|
|
@@ -1182,6 +1147,7 @@ export declare class RawDataApi {
|
|
|
1182
1147
|
* @param sliceStart Begin index of the slice. If not given, the whole sample is used.
|
|
1183
1148
|
* @param sliceEnd End index of the slice. If not given, the whole sample is used.
|
|
1184
1149
|
* @param cacheKey If set, then a long cache header is sent. If this is omitted then a no-cache header is sent. You can use this if you f.e. know the last modified date of a sample. Stick the last modified date in the cache key, so the sample can be stored in browser cache (and will automatically be invalidated if the modified date changes).
|
|
1150
|
+
* @param datasetVersionId Dataset version ID. If not set, the current mutable dataset is used
|
|
1185
1151
|
*/
|
|
1186
1152
|
getSampleAsAudio(projectId: number, sampleId: number, queryParams: getSampleAsAudioQueryParams, options?: {
|
|
1187
1153
|
headers: {
|
|
@@ -1200,6 +1166,7 @@ export declare class RawDataApi {
|
|
|
1200
1166
|
* @param cacheKey If set, then a long cache header is sent. If this is omitted then a no-cache header is sent. You can use this if you f.e. know the last modified date of a sample. Stick the last modified date in the cache key, so the sample can be stored in browser cache (and will automatically be invalidated if the modified date changes).
|
|
1201
1167
|
* @param impulseId Impulse ID. If this is unset then the default impulse is used.
|
|
1202
1168
|
* @param datastreamIndex Datastream index (defaults to 0)
|
|
1169
|
+
* @param datasetVersionId Dataset version ID. If not set, the current mutable dataset is used
|
|
1203
1170
|
*/
|
|
1204
1171
|
getSampleAsImage(projectId: number, sampleId: number, queryParams?: getSampleAsImageQueryParams, options?: {
|
|
1205
1172
|
headers: {
|
|
@@ -1214,8 +1181,9 @@ export declare class RawDataApi {
|
|
|
1214
1181
|
* @summary Download file
|
|
1215
1182
|
* @param projectId Project ID
|
|
1216
1183
|
* @param sampleId Sample ID
|
|
1184
|
+
* @param datasetVersionId Dataset version ID. If not set, the current mutable dataset is used
|
|
1217
1185
|
*/
|
|
1218
|
-
getSampleAsRaw(projectId: number, sampleId: number, options?: {
|
|
1186
|
+
getSampleAsRaw(projectId: number, sampleId: number, queryParams?: getSampleAsRawQueryParams, options?: {
|
|
1219
1187
|
headers: {
|
|
1220
1188
|
[name: string]: string;
|
|
1221
1189
|
};
|
|
@@ -1232,6 +1200,7 @@ export declare class RawDataApi {
|
|
|
1232
1200
|
* @param cacheKey If set, then a long cache header is sent. If this is omitted then a no-cache header is sent. You can use this if you f.e. know the last modified date of a sample. Stick the last modified date in the cache key, so the sample can be stored in browser cache (and will automatically be invalidated if the modified date changes).
|
|
1233
1201
|
* @param impulseId Impulse ID. If this is unset then the default impulse is used.
|
|
1234
1202
|
* @param datastreamIndex Datastream index (defaults to 0)
|
|
1203
|
+
* @param datasetVersionId Dataset version ID. If not set, the current mutable dataset is used
|
|
1235
1204
|
*/
|
|
1236
1205
|
getSampleAsVideo(projectId: number, sampleId: number, queryParams?: getSampleAsVideoQueryParams, options?: {
|
|
1237
1206
|
headers: {
|
|
@@ -1262,6 +1231,7 @@ export declare class RawDataApi {
|
|
|
1262
1231
|
* @param category Which of the three acquisition categories to retrieve data from
|
|
1263
1232
|
* @param limit Maximum number of results
|
|
1264
1233
|
* @param offset Offset in results, can be used in conjunction with LimitResultsParameter to implement paging.
|
|
1234
|
+
* @param datasetVersionId Dataset version ID. If not set, the current mutable dataset is used
|
|
1265
1235
|
*/
|
|
1266
1236
|
getSampleMetadataFilterOptions(projectId: number, queryParams: getSampleMetadataFilterOptionsQueryParams, options?: {
|
|
1267
1237
|
headers: {
|
|
@@ -1281,6 +1251,7 @@ export declare class RawDataApi {
|
|
|
1281
1251
|
* @param impulseId Impulse ID. If this is unset then the default impulse is used.
|
|
1282
1252
|
* @param datastreamIndex Datastream index (defaults to 0)
|
|
1283
1253
|
* @param truncateStructuredLabels If true, only a slice of labels will be returned for samples with multiple labels.
|
|
1254
|
+
* @param datasetVersionId Dataset version ID. If not set, the current mutable dataset is used
|
|
1284
1255
|
*/
|
|
1285
1256
|
getSampleSlice(projectId: number, sampleId: number, queryParams: getSampleSliceQueryParams, options?: {
|
|
1286
1257
|
headers: {
|
|
@@ -1314,6 +1285,7 @@ export declare class RawDataApi {
|
|
|
1314
1285
|
* @param impulseId Impulse ID. If this is unset then the default impulse is used.
|
|
1315
1286
|
* @param datastreamIndex Datastream index (defaults to 0)
|
|
1316
1287
|
* @param truncateStructuredLabels If true, only a slice of labels will be returned for samples with multiple labels.
|
|
1288
|
+
* @param datasetVersionId Dataset version ID. If not set, the current mutable dataset is used
|
|
1317
1289
|
*/
|
|
1318
1290
|
getUncroppedDownsampledSample(projectId: number, sampleId: number, queryParams?: getUncroppedDownsampledSampleQueryParams, options?: {
|
|
1319
1291
|
headers: {
|
|
@@ -1390,6 +1362,7 @@ export declare class RawDataApi {
|
|
|
1390
1362
|
* @param metadata Filter samples by metadata key-value pairs, provided as a JSON string. Each item in the filter list is an object with the following properties: - \"key\": Metadata key to filter on. - \"op\": Operator (\"eq\" for positive match, \"neq\" for negative match). - \"values\": (optional) Array of values to match/exclude. If omitted or empty, matches/excludes all values for the key. In addition to filter objects, the following option objects can be specified: - { \"no_metadata\": boolean } - If true, include samples without any metadata - { \"filters_combinator\": (\"and\" | \"or\") } - Specifies the combinator and matching mode: - \"and\": All filter items must match (logical AND). - \"or\": Any filter item may match (logical OR); samples with metadata keys not present in the filters are included.
|
|
1391
1363
|
* @param minDate Only include samples that where added after the date given
|
|
1392
1364
|
* @param maxDate Only include samples that were added before the date given
|
|
1365
|
+
* @param datasetVersionId Dataset version ID. If not set, the current mutable dataset is used
|
|
1393
1366
|
*/
|
|
1394
1367
|
listSamples(projectId: number, queryParams: listSamplesQueryParams, options?: {
|
|
1395
1368
|
headers: {
|
|
@@ -14,17 +14,42 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
14
14
|
exports.RawDataApi = exports.RawDataApiApiKeys = void 0;
|
|
15
15
|
let fetch;
|
|
16
16
|
let FormData;
|
|
17
|
+
let BlobCtor;
|
|
17
18
|
if (globalThis.fetch && globalThis.FormData) {
|
|
18
19
|
fetch = globalThis.fetch;
|
|
19
20
|
FormData = globalThis.FormData;
|
|
21
|
+
BlobCtor = globalThis.Blob;
|
|
20
22
|
}
|
|
21
23
|
else {
|
|
22
24
|
const undici = require('undici');
|
|
23
25
|
fetch = undici.fetch;
|
|
24
26
|
FormData = undici.FormData;
|
|
27
|
+
BlobCtor = (globalThis.Blob || require('buffer').Blob);
|
|
25
28
|
}
|
|
26
29
|
const models_1 = require("../model/models");
|
|
27
30
|
const models_2 = require("../model/models");
|
|
31
|
+
function isDetailedRequestFile(file) {
|
|
32
|
+
return typeof file === 'object' && file !== null && 'value' in file;
|
|
33
|
+
}
|
|
34
|
+
function toBlobPart(file) {
|
|
35
|
+
if (isDetailedRequestFile(file)) {
|
|
36
|
+
return {
|
|
37
|
+
value: file.value,
|
|
38
|
+
type: file.options.contentType,
|
|
39
|
+
filename: file.options.filename,
|
|
40
|
+
};
|
|
41
|
+
}
|
|
42
|
+
if (file instanceof Blob) {
|
|
43
|
+
return {
|
|
44
|
+
value: file,
|
|
45
|
+
type: file.type,
|
|
46
|
+
filename: 'name' in file && typeof file.name === 'string' ? file.name : 'blob',
|
|
47
|
+
};
|
|
48
|
+
}
|
|
49
|
+
return {
|
|
50
|
+
value: file,
|
|
51
|
+
};
|
|
52
|
+
}
|
|
28
53
|
let defaultBasePath = 'https://studio.edgeimpulse.com/v1';
|
|
29
54
|
// ===============================================
|
|
30
55
|
// This file is autogenerated - Please do not edit
|
|
@@ -1918,6 +1943,7 @@ class RawDataApi {
|
|
|
1918
1943
|
* @param metadata Filter samples by metadata key-value pairs, provided as a JSON string. Each item in the filter list is an object with the following properties: - \"key\": Metadata key to filter on. - \"op\": Operator (\"eq\" for positive match, \"neq\" for negative match). - \"values\": (optional) Array of values to match/exclude. If omitted or empty, matches/excludes all values for the key. In addition to filter objects, the following option objects can be specified: - { \"no_metadata\": boolean } - If true, include samples without any metadata - { \"filters_combinator\": (\"and\" | \"or\") } - Specifies the combinator and matching mode: - \"and\": All filter items must match (logical AND). - \"or\": Any filter item may match (logical OR); samples with metadata keys not present in the filters are included.
|
|
1919
1944
|
* @param minDate Only include samples that where added after the date given
|
|
1920
1945
|
* @param maxDate Only include samples that were added before the date given
|
|
1946
|
+
* @param datasetVersionId Dataset version ID. If not set, the current mutable dataset is used
|
|
1921
1947
|
*/
|
|
1922
1948
|
async countSamples(projectId, queryParams, options = { headers: {} }) {
|
|
1923
1949
|
const localVarPath = this.basePath + '/api/{projectId}/raw-data/count'
|
|
@@ -1999,6 +2025,9 @@ class RawDataApi {
|
|
|
1999
2025
|
if (typeof queryParams?.maxDate !== 'undefined' && queryParams?.maxDate !== null) {
|
|
2000
2026
|
queryParameters['maxDate'] = queryParams.maxDate.toISOString();
|
|
2001
2027
|
}
|
|
2028
|
+
if (typeof queryParams?.datasetVersionId !== 'undefined' && queryParams?.datasetVersionId !== null) {
|
|
2029
|
+
queryParameters['datasetVersionId'] = queryParams.datasetVersionId;
|
|
2030
|
+
}
|
|
2002
2031
|
localVarHeaderParams = {
|
|
2003
2032
|
...localVarHeaderParams,
|
|
2004
2033
|
...options.headers,
|
|
@@ -3600,7 +3629,8 @@ class RawDataApi {
|
|
|
3600
3629
|
* Get the raw data metadata for this project
|
|
3601
3630
|
* @summary Get project dataset metadata
|
|
3602
3631
|
* @param projectId Project ID
|
|
3603
|
-
* @param datasetVersionId Dataset version ID. If not set, the current dataset
|
|
3632
|
+
* @param datasetVersionId Dataset version ID. If not set, the current mutable dataset is used
|
|
3633
|
+
* @param truncateLabels If true, only a slice of labels will be returned.
|
|
3604
3634
|
* @param includeDisabled Whether to include enabled-only samples, or both enabled and disabled samples (defaults to both).
|
|
3605
3635
|
*/
|
|
3606
3636
|
async getRawDataProjectMetadata(projectId, queryParams, options = { headers: {} }) {
|
|
@@ -3628,6 +3658,9 @@ class RawDataApi {
|
|
|
3628
3658
|
if (typeof queryParams?.datasetVersionId !== 'undefined' && queryParams?.datasetVersionId !== null) {
|
|
3629
3659
|
queryParameters['datasetVersionId'] = queryParams.datasetVersionId;
|
|
3630
3660
|
}
|
|
3661
|
+
if (typeof queryParams?.truncateLabels !== 'undefined' && queryParams?.truncateLabels !== null) {
|
|
3662
|
+
queryParameters['truncateLabels'] = queryParams.truncateLabels;
|
|
3663
|
+
}
|
|
3631
3664
|
if (typeof queryParams?.includeDisabled !== 'undefined' && queryParams?.includeDisabled !== null) {
|
|
3632
3665
|
queryParameters['includeDisabled'] = queryParams.includeDisabled;
|
|
3633
3666
|
}
|
|
@@ -3684,6 +3717,7 @@ class RawDataApi {
|
|
|
3684
3717
|
* @param impulseId Impulse ID. If this is unset then the default impulse is used.
|
|
3685
3718
|
* @param proposedActionsJobId Pass this parameter when querying samples from inside an AI Action job. If you pass this parameter in a multi-stage AI Action, previous proposed changes (from an earlier step) will be applied to the returned dataset.
|
|
3686
3719
|
* @param truncateStructuredLabels If true, only a slice of labels will be returned for samples with multiple labels.
|
|
3720
|
+
* @param datasetVersionId Dataset version ID. If not set, the current mutable dataset is used
|
|
3687
3721
|
*/
|
|
3688
3722
|
async getSample(projectId, sampleId, queryParams, options = { headers: {} }) {
|
|
3689
3723
|
const localVarPath = this.basePath + '/api/{projectId}/raw-data/{sampleId}'
|
|
@@ -3727,6 +3761,9 @@ class RawDataApi {
|
|
|
3727
3761
|
if (typeof queryParams?.truncateStructuredLabels !== 'undefined' && queryParams?.truncateStructuredLabels !== null) {
|
|
3728
3762
|
queryParameters['truncateStructuredLabels'] = queryParams.truncateStructuredLabels;
|
|
3729
3763
|
}
|
|
3764
|
+
if (typeof queryParams?.datasetVersionId !== 'undefined' && queryParams?.datasetVersionId !== null) {
|
|
3765
|
+
queryParameters['datasetVersionId'] = queryParams.datasetVersionId;
|
|
3766
|
+
}
|
|
3730
3767
|
localVarHeaderParams = {
|
|
3731
3768
|
...localVarHeaderParams,
|
|
3732
3769
|
...options.headers,
|
|
@@ -3779,6 +3816,7 @@ class RawDataApi {
|
|
|
3779
3816
|
* @param sliceStart Begin index of the slice. If not given, the whole sample is used.
|
|
3780
3817
|
* @param sliceEnd End index of the slice. If not given, the whole sample is used.
|
|
3781
3818
|
* @param cacheKey If set, then a long cache header is sent. If this is omitted then a no-cache header is sent. You can use this if you f.e. know the last modified date of a sample. Stick the last modified date in the cache key, so the sample can be stored in browser cache (and will automatically be invalidated if the modified date changes).
|
|
3819
|
+
* @param datasetVersionId Dataset version ID. If not set, the current mutable dataset is used
|
|
3782
3820
|
*/
|
|
3783
3821
|
async getSampleAsAudio(projectId, sampleId, queryParams, options = { headers: {} }) {
|
|
3784
3822
|
const localVarPath = this.basePath + '/api/{projectId}/raw-data/{sampleId}/wav'
|
|
@@ -3823,6 +3861,9 @@ class RawDataApi {
|
|
|
3823
3861
|
if (typeof queryParams?.cacheKey !== 'undefined' && queryParams?.cacheKey !== null) {
|
|
3824
3862
|
queryParameters['cacheKey'] = queryParams.cacheKey;
|
|
3825
3863
|
}
|
|
3864
|
+
if (typeof queryParams?.datasetVersionId !== 'undefined' && queryParams?.datasetVersionId !== null) {
|
|
3865
|
+
queryParameters['datasetVersionId'] = queryParams.datasetVersionId;
|
|
3866
|
+
}
|
|
3826
3867
|
localVarHeaderParams = {
|
|
3827
3868
|
...localVarHeaderParams,
|
|
3828
3869
|
...options.headers,
|
|
@@ -3875,6 +3916,7 @@ class RawDataApi {
|
|
|
3875
3916
|
* @param cacheKey If set, then a long cache header is sent. If this is omitted then a no-cache header is sent. You can use this if you f.e. know the last modified date of a sample. Stick the last modified date in the cache key, so the sample can be stored in browser cache (and will automatically be invalidated if the modified date changes).
|
|
3876
3917
|
* @param impulseId Impulse ID. If this is unset then the default impulse is used.
|
|
3877
3918
|
* @param datastreamIndex Datastream index (defaults to 0)
|
|
3919
|
+
* @param datasetVersionId Dataset version ID. If not set, the current mutable dataset is used
|
|
3878
3920
|
*/
|
|
3879
3921
|
async getSampleAsImage(projectId, sampleId, queryParams, options = { headers: {} }) {
|
|
3880
3922
|
const localVarPath = this.basePath + '/api/{projectId}/raw-data/{sampleId}/image'
|
|
@@ -3915,6 +3957,9 @@ class RawDataApi {
|
|
|
3915
3957
|
if (typeof queryParams?.datastreamIndex !== 'undefined' && queryParams?.datastreamIndex !== null) {
|
|
3916
3958
|
queryParameters['datastreamIndex'] = queryParams.datastreamIndex;
|
|
3917
3959
|
}
|
|
3960
|
+
if (typeof queryParams?.datasetVersionId !== 'undefined' && queryParams?.datasetVersionId !== null) {
|
|
3961
|
+
queryParameters['datasetVersionId'] = queryParams.datasetVersionId;
|
|
3962
|
+
}
|
|
3918
3963
|
localVarHeaderParams = {
|
|
3919
3964
|
...localVarHeaderParams,
|
|
3920
3965
|
...options.headers,
|
|
@@ -3963,8 +4008,9 @@ class RawDataApi {
|
|
|
3963
4008
|
* @summary Download file
|
|
3964
4009
|
* @param projectId Project ID
|
|
3965
4010
|
* @param sampleId Sample ID
|
|
4011
|
+
* @param datasetVersionId Dataset version ID. If not set, the current mutable dataset is used
|
|
3966
4012
|
*/
|
|
3967
|
-
async getSampleAsRaw(projectId, sampleId, options = { headers: {} }) {
|
|
4013
|
+
async getSampleAsRaw(projectId, sampleId, queryParams, options = { headers: {} }) {
|
|
3968
4014
|
const localVarPath = this.basePath + '/api/{projectId}/raw-data/{sampleId}/raw'
|
|
3969
4015
|
.replace('{' + 'projectId' + '}', encodeURIComponent(String(projectId)))
|
|
3970
4016
|
.replace('{' + 'sampleId' + '}', encodeURIComponent(String(sampleId)));
|
|
@@ -3991,6 +4037,9 @@ class RawDataApi {
|
|
|
3991
4037
|
if (sampleId === null || sampleId === undefined) {
|
|
3992
4038
|
throw new Error('Required parameter sampleId was null or undefined when calling getSampleAsRaw.');
|
|
3993
4039
|
}
|
|
4040
|
+
if (typeof queryParams?.datasetVersionId !== 'undefined' && queryParams?.datasetVersionId !== null) {
|
|
4041
|
+
queryParameters['datasetVersionId'] = queryParams.datasetVersionId;
|
|
4042
|
+
}
|
|
3994
4043
|
localVarHeaderParams = {
|
|
3995
4044
|
...localVarHeaderParams,
|
|
3996
4045
|
...options.headers,
|
|
@@ -4043,6 +4092,7 @@ class RawDataApi {
|
|
|
4043
4092
|
* @param cacheKey If set, then a long cache header is sent. If this is omitted then a no-cache header is sent. You can use this if you f.e. know the last modified date of a sample. Stick the last modified date in the cache key, so the sample can be stored in browser cache (and will automatically be invalidated if the modified date changes).
|
|
4044
4093
|
* @param impulseId Impulse ID. If this is unset then the default impulse is used.
|
|
4045
4094
|
* @param datastreamIndex Datastream index (defaults to 0)
|
|
4095
|
+
* @param datasetVersionId Dataset version ID. If not set, the current mutable dataset is used
|
|
4046
4096
|
*/
|
|
4047
4097
|
async getSampleAsVideo(projectId, sampleId, queryParams, options = { headers: {} }) {
|
|
4048
4098
|
const localVarPath = this.basePath + '/api/{projectId}/raw-data/{sampleId}/video'
|
|
@@ -4083,6 +4133,9 @@ class RawDataApi {
|
|
|
4083
4133
|
if (typeof queryParams?.datastreamIndex !== 'undefined' && queryParams?.datastreamIndex !== null) {
|
|
4084
4134
|
queryParameters['datastreamIndex'] = queryParams.datastreamIndex;
|
|
4085
4135
|
}
|
|
4136
|
+
if (typeof queryParams?.datasetVersionId !== 'undefined' && queryParams?.datasetVersionId !== null) {
|
|
4137
|
+
queryParameters['datasetVersionId'] = queryParams.datasetVersionId;
|
|
4138
|
+
}
|
|
4086
4139
|
localVarHeaderParams = {
|
|
4087
4140
|
...localVarHeaderParams,
|
|
4088
4141
|
...options.headers,
|
|
@@ -4211,6 +4264,7 @@ class RawDataApi {
|
|
|
4211
4264
|
* @param category Which of the three acquisition categories to retrieve data from
|
|
4212
4265
|
* @param limit Maximum number of results
|
|
4213
4266
|
* @param offset Offset in results, can be used in conjunction with LimitResultsParameter to implement paging.
|
|
4267
|
+
* @param datasetVersionId Dataset version ID. If not set, the current mutable dataset is used
|
|
4214
4268
|
*/
|
|
4215
4269
|
async getSampleMetadataFilterOptions(projectId, queryParams, options = { headers: {} }) {
|
|
4216
4270
|
const localVarPath = this.basePath + '/api/{projectId}/raw-data/metadata-filter-options'
|
|
@@ -4247,6 +4301,9 @@ class RawDataApi {
|
|
|
4247
4301
|
if (typeof queryParams?.offset !== 'undefined' && queryParams?.offset !== null) {
|
|
4248
4302
|
queryParameters['offset'] = queryParams.offset;
|
|
4249
4303
|
}
|
|
4304
|
+
if (typeof queryParams?.datasetVersionId !== 'undefined' && queryParams?.datasetVersionId !== null) {
|
|
4305
|
+
queryParameters['datasetVersionId'] = queryParams.datasetVersionId;
|
|
4306
|
+
}
|
|
4250
4307
|
localVarHeaderParams = {
|
|
4251
4308
|
...localVarHeaderParams,
|
|
4252
4309
|
...options.headers,
|
|
@@ -4300,6 +4357,7 @@ class RawDataApi {
|
|
|
4300
4357
|
* @param impulseId Impulse ID. If this is unset then the default impulse is used.
|
|
4301
4358
|
* @param datastreamIndex Datastream index (defaults to 0)
|
|
4302
4359
|
* @param truncateStructuredLabels If true, only a slice of labels will be returned for samples with multiple labels.
|
|
4360
|
+
* @param datasetVersionId Dataset version ID. If not set, the current mutable dataset is used
|
|
4303
4361
|
*/
|
|
4304
4362
|
async getSampleSlice(projectId, sampleId, queryParams, options = { headers: {} }) {
|
|
4305
4363
|
const localVarPath = this.basePath + '/api/{projectId}/raw-data/{sampleId}/slice'
|
|
@@ -4347,6 +4405,9 @@ class RawDataApi {
|
|
|
4347
4405
|
if (typeof queryParams?.truncateStructuredLabels !== 'undefined' && queryParams?.truncateStructuredLabels !== null) {
|
|
4348
4406
|
queryParameters['truncateStructuredLabels'] = queryParams.truncateStructuredLabels;
|
|
4349
4407
|
}
|
|
4408
|
+
if (typeof queryParams?.datasetVersionId !== 'undefined' && queryParams?.datasetVersionId !== null) {
|
|
4409
|
+
queryParameters['datasetVersionId'] = queryParams.datasetVersionId;
|
|
4410
|
+
}
|
|
4350
4411
|
localVarHeaderParams = {
|
|
4351
4412
|
...localVarHeaderParams,
|
|
4352
4413
|
...options.headers,
|
|
@@ -4471,6 +4532,7 @@ class RawDataApi {
|
|
|
4471
4532
|
* @param impulseId Impulse ID. If this is unset then the default impulse is used.
|
|
4472
4533
|
* @param datastreamIndex Datastream index (defaults to 0)
|
|
4473
4534
|
* @param truncateStructuredLabels If true, only a slice of labels will be returned for samples with multiple labels.
|
|
4535
|
+
* @param datasetVersionId Dataset version ID. If not set, the current mutable dataset is used
|
|
4474
4536
|
*/
|
|
4475
4537
|
async getUncroppedDownsampledSample(projectId, sampleId, queryParams, options = { headers: {} }) {
|
|
4476
4538
|
const localVarPath = this.basePath + '/api/{projectId}/raw-data/{sampleId}/original'
|
|
@@ -4517,6 +4579,9 @@ class RawDataApi {
|
|
|
4517
4579
|
if (typeof queryParams?.truncateStructuredLabels !== 'undefined' && queryParams?.truncateStructuredLabels !== null) {
|
|
4518
4580
|
queryParameters['truncateStructuredLabels'] = queryParams.truncateStructuredLabels;
|
|
4519
4581
|
}
|
|
4582
|
+
if (typeof queryParams?.datasetVersionId !== 'undefined' && queryParams?.datasetVersionId !== null) {
|
|
4583
|
+
queryParameters['datasetVersionId'] = queryParams.datasetVersionId;
|
|
4584
|
+
}
|
|
4520
4585
|
localVarHeaderParams = {
|
|
4521
4586
|
...localVarHeaderParams,
|
|
4522
4587
|
...options.headers,
|
|
@@ -4798,6 +4863,7 @@ class RawDataApi {
|
|
|
4798
4863
|
* @param metadata Filter samples by metadata key-value pairs, provided as a JSON string. Each item in the filter list is an object with the following properties: - \"key\": Metadata key to filter on. - \"op\": Operator (\"eq\" for positive match, \"neq\" for negative match). - \"values\": (optional) Array of values to match/exclude. If omitted or empty, matches/excludes all values for the key. In addition to filter objects, the following option objects can be specified: - { \"no_metadata\": boolean } - If true, include samples without any metadata - { \"filters_combinator\": (\"and\" | \"or\") } - Specifies the combinator and matching mode: - \"and\": All filter items must match (logical AND). - \"or\": Any filter item may match (logical OR); samples with metadata keys not present in the filters are included.
|
|
4799
4864
|
* @param minDate Only include samples that where added after the date given
|
|
4800
4865
|
* @param maxDate Only include samples that were added before the date given
|
|
4866
|
+
* @param datasetVersionId Dataset version ID. If not set, the current mutable dataset is used
|
|
4801
4867
|
*/
|
|
4802
4868
|
async listSamples(projectId, queryParams, options = { headers: {} }) {
|
|
4803
4869
|
const localVarPath = this.basePath + '/api/{projectId}/raw-data'
|
|
@@ -4897,6 +4963,9 @@ class RawDataApi {
|
|
|
4897
4963
|
if (typeof queryParams?.maxDate !== 'undefined' && queryParams?.maxDate !== null) {
|
|
4898
4964
|
queryParameters['maxDate'] = queryParams.maxDate.toISOString();
|
|
4899
4965
|
}
|
|
4966
|
+
if (typeof queryParams?.datasetVersionId !== 'undefined' && queryParams?.datasetVersionId !== null) {
|
|
4967
|
+
queryParameters['datasetVersionId'] = queryParams.datasetVersionId;
|
|
4968
|
+
}
|
|
4900
4969
|
localVarHeaderParams = {
|
|
4901
4970
|
...localVarHeaderParams,
|
|
4902
4971
|
...options.headers,
|
|
@@ -6472,11 +6541,11 @@ class RawDataApi {
|
|
|
6472
6541
|
if (params.image !== undefined) {
|
|
6473
6542
|
localVarFormParams = (0, models_1.ensureFormData)(localVarFormParams);
|
|
6474
6543
|
const imageFiles = Array.isArray(params.image) ? params.image : [params.image];
|
|
6475
|
-
const Blob = globalThis.Blob || require('buffer').Blob;
|
|
6476
6544
|
for (const f of imageFiles) {
|
|
6477
|
-
|
|
6478
|
-
|
|
6479
|
-
|
|
6545
|
+
const file = toBlobPart(f);
|
|
6546
|
+
localVarFormParams.append('image', new BlobCtor([file.value], {
|
|
6547
|
+
type: file.type
|
|
6548
|
+
}), file.filename);
|
|
6480
6549
|
}
|
|
6481
6550
|
}
|
|
6482
6551
|
const queryString = Object.entries(queryParameters)
|