edge-impulse-api 1.22.2 → 1.32.24444
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/library/api.d.ts +2 -1
- package/build/library/api.js +5 -0
- package/build/library/api.js.map +1 -1
- package/build/library/sdk/api/adminApi.d.ts +241 -0
- package/build/library/sdk/api/adminApi.js +1843 -307
- package/build/library/sdk/api/adminApi.js.map +1 -1
- package/build/library/sdk/api/allowsReadOnlyApi.d.ts +104 -7
- package/build/library/sdk/api/allowsReadOnlyApi.js +561 -6
- package/build/library/sdk/api/allowsReadOnlyApi.js.map +1 -1
- package/build/library/sdk/api/apis.d.ts +9 -1
- package/build/library/sdk/api/apis.js +9 -1
- package/build/library/sdk/api/apis.js.map +1 -1
- package/build/library/sdk/api/classifyApi.d.ts +43 -4
- package/build/library/sdk/api/classifyApi.js +184 -4
- package/build/library/sdk/api/classifyApi.js.map +1 -1
- package/build/library/sdk/api/contentDispositionInlineApi.d.ts +29 -0
- package/build/library/sdk/api/contentDispositionInlineApi.js +168 -0
- package/build/library/sdk/api/contentDispositionInlineApi.js.map +1 -1
- package/build/library/sdk/api/dSPApi.d.ts +5 -1
- package/build/library/sdk/api/dSPApi.js +5 -1
- package/build/library/sdk/api/dSPApi.js.map +1 -1
- package/build/library/sdk/api/emailVerificationApi.d.ts +72 -0
- package/build/library/sdk/api/emailVerificationApi.js +288 -0
- package/build/library/sdk/api/emailVerificationApi.js.map +1 -0
- package/build/library/sdk/api/featureFlagsApi.d.ts +46 -0
- package/build/library/sdk/api/featureFlagsApi.js +136 -0
- package/build/library/sdk/api/featureFlagsApi.js.map +1 -0
- package/build/library/sdk/api/jobsApi.d.ts +15 -1
- package/build/library/sdk/api/jobsApi.js +82 -1
- package/build/library/sdk/api/jobsApi.js.map +1 -1
- package/build/library/sdk/api/learnApi.d.ts +40 -2
- package/build/library/sdk/api/learnApi.js +247 -1
- package/build/library/sdk/api/learnApi.js.map +1 -1
- package/build/library/sdk/api/metricsApi.d.ts +11 -0
- package/build/library/sdk/api/metricsApi.js +70 -0
- package/build/library/sdk/api/metricsApi.js.map +1 -1
- package/build/library/sdk/api/organizationAllowDeveloperProfileApi.d.ts +12 -1
- package/build/library/sdk/api/organizationAllowDeveloperProfileApi.js +80 -1
- package/build/library/sdk/api/organizationAllowDeveloperProfileApi.js.map +1 -1
- package/build/library/sdk/api/organizationAllowGuestAccessApi.d.ts +1 -1
- package/build/library/sdk/api/organizationAllowGuestAccessApi.js +1 -1
- package/build/library/sdk/api/organizationCreateProjectApi.d.ts +2 -0
- package/build/library/sdk/api/organizationCreateProjectApi.js +4 -0
- package/build/library/sdk/api/organizationCreateProjectApi.js.map +1 -1
- package/build/library/sdk/api/organizationDataApi.d.ts +122 -3
- package/build/library/sdk/api/organizationDataApi.js +1215 -456
- package/build/library/sdk/api/organizationDataApi.js.map +1 -1
- package/build/library/sdk/api/organizationDataCampaignsApi.d.ts +196 -0
- package/build/library/sdk/api/organizationDataCampaignsApi.js +1048 -0
- package/build/library/sdk/api/organizationDataCampaignsApi.js.map +1 -0
- package/build/library/sdk/api/organizationPipelinesApi.d.ts +12 -1
- package/build/library/sdk/api/organizationPipelinesApi.js +80 -1
- package/build/library/sdk/api/organizationPipelinesApi.js.map +1 -1
- package/build/library/sdk/api/organizationRequiresAdminApi.d.ts +153 -1
- package/build/library/sdk/api/organizationRequiresAdminApi.js +992 -34
- package/build/library/sdk/api/organizationRequiresAdminApi.js.map +1 -1
- package/build/library/sdk/api/organizationRequiresWhitelabelAdminApi.d.ts +153 -1
- package/build/library/sdk/api/organizationRequiresWhitelabelAdminApi.js +992 -34
- package/build/library/sdk/api/organizationRequiresWhitelabelAdminApi.js.map +1 -1
- package/build/library/sdk/api/organizationsApi.d.ts +170 -2
- package/build/library/sdk/api/organizationsApi.js +1248 -207
- package/build/library/sdk/api/organizationsApi.js.map +1 -1
- package/build/library/sdk/api/projectRequiresAdminApi.d.ts +65 -0
- package/build/library/sdk/api/projectRequiresAdminApi.js +231 -0
- package/build/library/sdk/api/projectRequiresAdminApi.js.map +1 -0
- package/build/library/sdk/api/rawDataApi.d.ts +144 -0
- package/build/library/sdk/api/rawDataApi.js +1217 -295
- package/build/library/sdk/api/rawDataApi.js.map +1 -1
- package/build/library/sdk/api/uploadPortalApi.d.ts +3 -2
- package/build/library/sdk/api/uploadPortalApi.js +11 -2
- package/build/library/sdk/api/uploadPortalApi.js.map +1 -1
- package/build/library/sdk/api/userApi.d.ts +64 -7
- package/build/library/sdk/api/userApi.js +382 -14
- package/build/library/sdk/api/userApi.js.map +1 -1
- package/build/library/sdk/model/activateUserOrVerifyEmailRequest.d.ts +28 -0
- package/build/library/sdk/model/activateUserOrVerifyEmailRequest.js +32 -0
- package/build/library/sdk/model/activateUserOrVerifyEmailRequest.js.map +1 -0
- package/build/library/sdk/model/addKerasFilesRequest.d.ts +33 -0
- package/build/library/sdk/model/addKerasFilesRequest.js +32 -0
- package/build/library/sdk/model/addKerasFilesRequest.js.map +1 -0
- package/build/library/sdk/model/addMemberRequest.d.ts +2 -3
- package/build/library/sdk/model/addMemberRequest.js +2 -3
- package/build/library/sdk/model/addMemberRequest.js.map +1 -1
- package/build/library/sdk/model/addOrganizationBucketRequest.d.ts +4 -8
- package/build/library/sdk/model/addOrganizationBucketRequest.js +4 -9
- package/build/library/sdk/model/addOrganizationBucketRequest.js.map +1 -1
- package/build/library/sdk/model/addOrganizationDataCampaignDashboardRequest.d.ts +33 -0
- package/build/library/sdk/model/addOrganizationDataCampaignDashboardRequest.js +48 -0
- package/build/library/sdk/model/addOrganizationDataCampaignDashboardRequest.js.map +1 -0
- package/build/library/sdk/model/addOrganizationDataCampaignDashboardResponse.d.ts +33 -0
- package/build/library/sdk/model/addOrganizationDataCampaignDashboardResponse.js +42 -0
- package/build/library/sdk/model/addOrganizationDataCampaignDashboardResponse.js.map +1 -0
- package/build/library/sdk/model/addOrganizationDataCampaignDashboardResponseAllOf.d.ts +25 -0
- package/build/library/sdk/model/addOrganizationDataCampaignDashboardResponseAllOf.js +32 -0
- package/build/library/sdk/model/addOrganizationDataCampaignDashboardResponseAllOf.js.map +1 -0
- package/build/library/sdk/model/addOrganizationDataCampaignRequest.d.ts +41 -0
- package/build/library/sdk/model/addOrganizationDataCampaignRequest.js +87 -0
- package/build/library/sdk/model/addOrganizationDataCampaignRequest.js.map +1 -0
- package/build/library/sdk/model/addOrganizationDataCampaignResponse.d.ts +33 -0
- package/build/library/sdk/model/addOrganizationDataCampaignResponse.js +42 -0
- package/build/library/sdk/model/addOrganizationDataCampaignResponse.js.map +1 -0
- package/build/library/sdk/model/addOrganizationDataCampaignResponseAllOf.d.ts +25 -0
- package/build/library/sdk/model/addOrganizationDataCampaignResponseAllOf.js +32 -0
- package/build/library/sdk/model/addOrganizationDataCampaignResponseAllOf.js.map +1 -0
- package/build/library/sdk/model/addOrganizationTransferLearningBlockRequest.d.ts +10 -0
- package/build/library/sdk/model/addOrganizationTransferLearningBlockRequest.js +15 -0
- package/build/library/sdk/model/addOrganizationTransferLearningBlockRequest.js.map +1 -1
- package/build/library/sdk/model/addOrganizationTransformationBlockRequest.d.ts +8 -0
- package/build/library/sdk/model/addOrganizationTransformationBlockRequest.js +10 -0
- package/build/library/sdk/model/addOrganizationTransformationBlockRequest.js.map +1 -1
- package/build/library/sdk/model/adminAddDisallowedEmailDomainRequest.d.ts +25 -0
- package/build/library/sdk/model/adminAddDisallowedEmailDomainRequest.js +32 -0
- package/build/library/sdk/model/adminAddDisallowedEmailDomainRequest.js.map +1 -0
- package/build/library/sdk/model/adminAddOrganizationUserRequest.d.ts +34 -0
- package/build/library/sdk/model/adminAddOrganizationUserRequest.js +42 -0
- package/build/library/sdk/model/adminAddOrganizationUserRequest.js.map +1 -0
- package/build/library/sdk/model/adminAddOrganizationUserRequestAllOf.d.ts +30 -0
- package/build/library/sdk/model/adminAddOrganizationUserRequestAllOf.js +37 -0
- package/build/library/sdk/model/adminAddOrganizationUserRequestAllOf.js.map +1 -0
- package/build/library/sdk/model/adminAddProjectUserRequest.d.ts +2 -5
- package/build/library/sdk/model/adminAddProjectUserRequest.js +4 -9
- package/build/library/sdk/model/adminAddProjectUserRequest.js.map +1 -1
- package/build/library/sdk/model/adminAddUserRequest.d.ts +28 -0
- package/build/library/sdk/model/adminAddUserRequest.js +32 -0
- package/build/library/sdk/model/adminAddUserRequest.js.map +1 -0
- package/build/library/sdk/model/adminApiOrganization.d.ts +20 -0
- package/build/library/sdk/model/adminApiOrganization.js +25 -0
- package/build/library/sdk/model/adminApiOrganization.js.map +1 -1
- package/build/library/sdk/model/adminApiUser.d.ts +11 -5
- package/build/library/sdk/model/adminApiUser.js +17 -7
- package/build/library/sdk/model/adminApiUser.js.map +1 -1
- package/build/library/sdk/model/adminApiUserAllOf.d.ts +9 -4
- package/build/library/sdk/model/adminApiUserAllOf.js +10 -5
- package/build/library/sdk/model/adminApiUserAllOf.js.map +1 -1
- package/build/library/sdk/model/adminCreateUserTrialRequest.d.ts +36 -0
- package/build/library/sdk/model/adminCreateUserTrialRequest.js +42 -0
- package/build/library/sdk/model/adminCreateUserTrialRequest.js.map +1 -0
- package/build/library/sdk/model/adminEnableFeatureRequest.d.ts +26 -0
- package/build/library/sdk/model/adminEnableFeatureRequest.js +32 -0
- package/build/library/sdk/model/adminEnableFeatureRequest.js.map +1 -0
- package/build/library/sdk/model/adminGetDataMigrationResponse.d.ts +34 -0
- package/build/library/sdk/model/adminGetDataMigrationResponse.js +42 -0
- package/build/library/sdk/model/adminGetDataMigrationResponse.js.map +1 -0
- package/build/library/sdk/model/adminGetDataMigrationResponseAllOf.d.ts +26 -0
- package/build/library/sdk/model/adminGetDataMigrationResponseAllOf.js +32 -0
- package/build/library/sdk/model/adminGetDataMigrationResponseAllOf.js.map +1 -0
- package/build/library/sdk/model/adminGetDataMigrationsResponse.d.ts +34 -0
- package/build/library/sdk/model/adminGetDataMigrationsResponse.js +42 -0
- package/build/library/sdk/model/adminGetDataMigrationsResponse.js.map +1 -0
- package/build/library/sdk/model/adminGetDataMigrationsResponseAllOf.d.ts +26 -0
- package/build/library/sdk/model/adminGetDataMigrationsResponseAllOf.js +32 -0
- package/build/library/sdk/model/adminGetDataMigrationsResponseAllOf.js.map +1 -0
- package/build/library/sdk/model/adminGetDisallowedEmailDomainsResponse.d.ts +33 -0
- package/build/library/sdk/model/adminGetDisallowedEmailDomainsResponse.js +42 -0
- package/build/library/sdk/model/adminGetDisallowedEmailDomainsResponse.js.map +1 -0
- package/build/library/sdk/model/adminGetDisallowedEmailDomainsResponseAllOf.d.ts +25 -0
- package/build/library/sdk/model/adminGetDisallowedEmailDomainsResponseAllOf.js +32 -0
- package/build/library/sdk/model/adminGetDisallowedEmailDomainsResponseAllOf.js.map +1 -0
- package/build/library/sdk/model/adminGetFeatureFlagsResponse.d.ts +37 -0
- package/build/library/sdk/model/adminGetFeatureFlagsResponse.js +42 -0
- package/build/library/sdk/model/adminGetFeatureFlagsResponse.js.map +1 -0
- package/build/library/sdk/model/adminGetFeatureFlagsResponseAllOf.d.ts +29 -0
- package/build/library/sdk/model/adminGetFeatureFlagsResponseAllOf.js +32 -0
- package/build/library/sdk/model/adminGetFeatureFlagsResponseAllOf.js.map +1 -0
- package/build/library/sdk/model/adminGetFeatureFlagsResponseAllOfFlags.d.ts +30 -0
- package/build/library/sdk/model/adminGetFeatureFlagsResponseAllOfFlags.js +37 -0
- package/build/library/sdk/model/adminGetFeatureFlagsResponseAllOfFlags.js.map +1 -0
- package/build/library/sdk/model/adminGetOrganizationsResponseAllOfOrganizations.d.ts +2 -0
- package/build/library/sdk/model/adminGetOrganizationsResponseAllOfOrganizations.js +5 -0
- package/build/library/sdk/model/adminGetOrganizationsResponseAllOfOrganizations.js.map +1 -1
- package/build/library/sdk/model/adminGetUserTrialResponse.d.ts +34 -0
- package/build/library/sdk/model/adminGetUserTrialResponse.js +42 -0
- package/build/library/sdk/model/adminGetUserTrialResponse.js.map +1 -0
- package/build/library/sdk/model/adminGetUserTrialResponseAllOf.d.ts +26 -0
- package/build/library/sdk/model/adminGetUserTrialResponseAllOf.js +32 -0
- package/build/library/sdk/model/adminGetUserTrialResponseAllOf.js.map +1 -0
- package/build/library/sdk/model/adminOrganizationInfoResponse.d.ts +25 -3
- package/build/library/sdk/model/adminOrganizationInfoResponse.js +31 -1
- package/build/library/sdk/model/adminOrganizationInfoResponse.js.map +1 -1
- package/build/library/sdk/model/adminOrganizationInfoResponseAllOf.d.ts +22 -0
- package/build/library/sdk/model/adminOrganizationInfoResponseAllOf.js +30 -0
- package/build/library/sdk/model/adminOrganizationInfoResponseAllOf.js.map +1 -1
- package/build/library/sdk/model/adminToggleDataMigrationRequest.d.ts +32 -0
- package/build/library/sdk/model/adminToggleDataMigrationRequest.js +37 -0
- package/build/library/sdk/model/adminToggleDataMigrationRequest.js.map +1 -0
- package/build/library/sdk/model/adminUpdateOrganizationRequest.d.ts +10 -0
- package/build/library/sdk/model/adminUpdateOrganizationRequest.js +15 -0
- package/build/library/sdk/model/adminUpdateOrganizationRequest.js.map +1 -1
- package/build/library/sdk/model/adminUpdateUserRequest.d.ts +8 -0
- package/build/library/sdk/model/adminUpdateUserRequest.js +10 -0
- package/build/library/sdk/model/adminUpdateUserRequest.js.map +1 -1
- package/build/library/sdk/model/adminUpdateUserTrialRequest.d.ts +32 -0
- package/build/library/sdk/model/adminUpdateUserTrialRequest.js +37 -0
- package/build/library/sdk/model/adminUpdateUserTrialRequest.js.map +1 -0
- package/build/library/sdk/model/anomalyCapacity.d.ts +16 -0
- package/build/library/sdk/model/anomalyCapacity.js +16 -0
- package/build/library/sdk/model/anomalyCapacity.js.map +1 -0
- package/build/library/sdk/model/anomalyGmmMetadata.d.ts +44 -0
- package/build/library/sdk/model/anomalyGmmMetadata.js +52 -0
- package/build/library/sdk/model/anomalyGmmMetadata.js.map +1 -0
- package/build/library/sdk/model/anomalyGmmMetadataAllOf.d.ts +36 -0
- package/build/library/sdk/model/anomalyGmmMetadataAllOf.js +42 -0
- package/build/library/sdk/model/anomalyGmmMetadataAllOf.js.map +1 -0
- package/build/library/sdk/model/anomalyModelMetadata.d.ts +22 -2
- package/build/library/sdk/model/anomalyModelMetadata.js +31 -1
- package/build/library/sdk/model/anomalyModelMetadata.js.map +1 -1
- package/build/library/sdk/model/anomalyModelMetadataAllOf.d.ts +61 -0
- package/build/library/sdk/model/anomalyModelMetadataAllOf.js +77 -0
- package/build/library/sdk/model/anomalyModelMetadataAllOf.js.map +1 -0
- package/build/library/sdk/model/anomalyModelMetadataAllOfClusters.d.ts +32 -0
- package/build/library/sdk/model/anomalyModelMetadataAllOfClusters.js +37 -0
- package/build/library/sdk/model/anomalyModelMetadataAllOfClusters.js.map +1 -0
- package/build/library/sdk/model/anomalyResult.d.ts +36 -0
- package/build/library/sdk/model/anomalyResult.js +42 -0
- package/build/library/sdk/model/anomalyResult.js.map +1 -0
- package/build/library/sdk/model/calculateDataQualityMetricsRequest.d.ts +30 -0
- package/build/library/sdk/model/calculateDataQualityMetricsRequest.js +33 -0
- package/build/library/sdk/model/calculateDataQualityMetricsRequest.js.map +1 -0
- package/build/library/sdk/model/classifySampleResponse.d.ts +1 -0
- package/build/library/sdk/model/classifySampleResponse.js +5 -0
- package/build/library/sdk/model/classifySampleResponse.js.map +1 -1
- package/build/library/sdk/model/classifySampleResponseAllOf.d.ts +1 -0
- package/build/library/sdk/model/classifySampleResponseAllOf.js +5 -0
- package/build/library/sdk/model/classifySampleResponseAllOf.js.map +1 -1
- package/build/library/sdk/model/classifySampleResponseClassification.d.ts +10 -0
- package/build/library/sdk/model/classifySampleResponseClassification.js +10 -0
- package/build/library/sdk/model/classifySampleResponseClassification.js.map +1 -1
- package/build/library/sdk/model/classifySampleResponseClassificationDetails.d.ts +4 -0
- package/build/library/sdk/model/classifySampleResponseClassificationDetails.js +5 -0
- package/build/library/sdk/model/classifySampleResponseClassificationDetails.js.map +1 -1
- package/build/library/sdk/model/cosineSimilarityData.d.ts +36 -0
- package/build/library/sdk/model/cosineSimilarityData.js +40 -0
- package/build/library/sdk/model/cosineSimilarityData.js.map +1 -0
- package/build/library/sdk/model/cosineSimilarityIssue.d.ts +42 -0
- package/build/library/sdk/model/cosineSimilarityIssue.js +50 -0
- package/build/library/sdk/model/cosineSimilarityIssue.js.map +1 -0
- package/build/library/sdk/model/cosineSimilarityIssueIssues.d.ts +39 -0
- package/build/library/sdk/model/cosineSimilarityIssueIssues.js +47 -0
- package/build/library/sdk/model/cosineSimilarityIssueIssues.js.map +1 -0
- package/build/library/sdk/model/cosineSimilarityIssueWindows.d.ts +36 -0
- package/build/library/sdk/model/cosineSimilarityIssueWindows.js +42 -0
- package/build/library/sdk/model/cosineSimilarityIssueWindows.js.map +1 -0
- package/build/library/sdk/model/createEnterpriseTrialResponse.d.ts +44 -0
- package/build/library/sdk/model/createEnterpriseTrialResponse.js +52 -0
- package/build/library/sdk/model/createEnterpriseTrialResponse.js.map +1 -0
- package/build/library/sdk/model/createEnterpriseTrialResponseAllOf.d.ts +32 -0
- package/build/library/sdk/model/createEnterpriseTrialResponseAllOf.js +37 -0
- package/build/library/sdk/model/createEnterpriseTrialResponseAllOf.js.map +1 -0
- package/build/library/sdk/model/createEnterpriseTrialUserRequest.d.ts +94 -0
- package/build/library/sdk/model/createEnterpriseTrialUserRequest.js +113 -0
- package/build/library/sdk/model/createEnterpriseTrialUserRequest.js.map +1 -0
- package/build/library/sdk/model/createEnterpriseTrialUserRequestAllOf.d.ts +60 -0
- package/build/library/sdk/model/createEnterpriseTrialUserRequestAllOf.js +72 -0
- package/build/library/sdk/model/createEnterpriseTrialUserRequestAllOf.js.map +1 -0
- package/build/library/sdk/model/createUserRequest.d.ts +4 -0
- package/build/library/sdk/model/createUserRequest.js +5 -0
- package/build/library/sdk/model/createUserRequest.js.map +1 -1
- package/build/library/sdk/model/createWhitelabelRequest.d.ts +4 -0
- package/build/library/sdk/model/createWhitelabelRequest.js +5 -0
- package/build/library/sdk/model/createWhitelabelRequest.js.map +1 -1
- package/build/library/sdk/model/crossValidationData.d.ts +29 -0
- package/build/library/sdk/model/crossValidationData.js +35 -0
- package/build/library/sdk/model/crossValidationData.js.map +1 -0
- package/build/library/sdk/model/crossValidationDataScores.d.ts +50 -0
- package/build/library/sdk/model/crossValidationDataScores.js +62 -0
- package/build/library/sdk/model/crossValidationDataScores.js.map +1 -0
- package/build/library/sdk/model/dSPGroupItem.d.ts +2 -1
- package/build/library/sdk/model/dSPGroupItem.js +5 -0
- package/build/library/sdk/model/dSPGroupItem.js.map +1 -1
- package/build/library/sdk/model/dSPInfo.d.ts +5 -1
- package/build/library/sdk/model/dSPInfo.js +5 -0
- package/build/library/sdk/model/dSPInfo.js.map +1 -1
- package/build/library/sdk/model/dSPInfoFeatures.d.ts +4 -0
- package/build/library/sdk/model/dSPInfoFeatures.js +5 -0
- package/build/library/sdk/model/dSPInfoFeatures.js.map +1 -1
- package/build/library/sdk/model/dataCampaign.d.ts +41 -0
- package/build/library/sdk/model/dataCampaign.js +87 -0
- package/build/library/sdk/model/dataCampaign.js.map +1 -0
- package/build/library/sdk/model/dataCampaignDashboard.d.ts +36 -0
- package/build/library/sdk/model/dataCampaignDashboard.js +63 -0
- package/build/library/sdk/model/dataCampaignDashboard.js.map +1 -0
- package/build/library/sdk/model/dataCampaignGraph.d.ts +30 -0
- package/build/library/sdk/model/dataCampaignGraph.js +52 -0
- package/build/library/sdk/model/dataCampaignGraph.js.map +1 -0
- package/build/library/sdk/model/dataCampaignGraphValues.d.ts +26 -0
- package/build/library/sdk/model/dataCampaignGraphValues.js +37 -0
- package/build/library/sdk/model/dataCampaignGraphValues.js.map +1 -0
- package/build/library/sdk/model/dataCampaignGraphXData.d.ts +34 -0
- package/build/library/sdk/model/dataCampaignGraphXData.js +63 -0
- package/build/library/sdk/model/dataCampaignGraphXData.js.map +1 -0
- package/build/library/sdk/model/dataCampaignLink.d.ts +27 -0
- package/build/library/sdk/model/dataCampaignLink.js +42 -0
- package/build/library/sdk/model/dataCampaignLink.js.map +1 -0
- package/build/library/sdk/model/dataCampaignQuery.d.ts +27 -0
- package/build/library/sdk/model/dataCampaignQuery.js +42 -0
- package/build/library/sdk/model/dataCampaignQuery.js.map +1 -0
- package/build/library/sdk/model/deployPretrainedModelInputImage.d.ts +2 -0
- package/build/library/sdk/model/deployPretrainedModelInputImage.js +5 -0
- package/build/library/sdk/model/deployPretrainedModelInputImage.js.map +1 -1
- package/build/library/sdk/model/deployPretrainedModelRequest.d.ts +1 -1
- package/build/library/sdk/model/deployPretrainedModelRequest.js +1 -1
- package/build/library/sdk/model/deployPretrainedModelRequest.js.map +1 -1
- package/build/library/sdk/model/deploymentTarget.d.ts +6 -0
- package/build/library/sdk/model/deploymentTarget.js +15 -0
- package/build/library/sdk/model/deploymentTarget.js.map +1 -1
- package/build/library/sdk/model/deploymentTargetEngine.d.ts +1 -1
- package/build/library/sdk/model/deploymentTargetEngine.js +1 -1
- package/build/library/sdk/model/deploymentTargetEngine.js.map +1 -1
- package/build/library/sdk/model/developmentBoardCreatedResponse.d.ts +33 -0
- package/build/library/sdk/model/developmentBoardCreatedResponse.js +42 -0
- package/build/library/sdk/model/developmentBoardCreatedResponse.js.map +1 -0
- package/build/library/sdk/model/developmentBoardRequest.d.ts +27 -0
- package/build/library/sdk/model/developmentBoardRequest.js +42 -0
- package/build/library/sdk/model/developmentBoardRequest.js.map +1 -0
- package/build/library/sdk/model/developmentBoardRequestUpdate.d.ts +27 -0
- package/build/library/sdk/model/developmentBoardRequestUpdate.js +42 -0
- package/build/library/sdk/model/developmentBoardRequestUpdate.js.map +1 -0
- package/build/library/sdk/model/developmentBoardResponse.d.ts +28 -0
- package/build/library/sdk/model/developmentBoardResponse.js +47 -0
- package/build/library/sdk/model/developmentBoardResponse.js.map +1 -0
- package/build/library/sdk/model/developmentBoardsResponse.d.ts +2 -2
- package/build/library/sdk/model/developmentBoardsResponse.js +1 -1
- package/build/library/sdk/model/developmentBoardsResponse.js.map +1 -1
- package/build/library/sdk/model/developmentBoardsResponseAllOf.d.ts +2 -2
- package/build/library/sdk/model/developmentBoardsResponseAllOf.js +1 -1
- package/build/library/sdk/model/developmentBoardsResponseAllOf.js.map +1 -1
- package/build/library/sdk/model/dspRunResponseWithSample.d.ts +4 -0
- package/build/library/sdk/model/dspRunResponseWithSample.js +5 -0
- package/build/library/sdk/model/dspRunResponseWithSample.js.map +1 -1
- package/build/library/sdk/model/dspRunResponseWithSampleAllOf.d.ts +4 -0
- package/build/library/sdk/model/dspRunResponseWithSampleAllOf.js +5 -0
- package/build/library/sdk/model/dspRunResponseWithSampleAllOf.js.map +1 -1
- package/build/library/sdk/model/enterpriseTrial.d.ts +60 -0
- package/build/library/sdk/model/enterpriseTrial.js +72 -0
- package/build/library/sdk/model/enterpriseTrial.js.map +1 -0
- package/build/library/sdk/model/enterpriseUpgradeOrTrialExtensionRequest.d.ts +44 -0
- package/build/library/sdk/model/enterpriseUpgradeOrTrialExtensionRequest.js +52 -0
- package/build/library/sdk/model/enterpriseUpgradeOrTrialExtensionRequest.js.map +1 -0
- package/build/library/sdk/model/entitlementLimits.d.ts +44 -0
- package/build/library/sdk/model/entitlementLimits.js +52 -0
- package/build/library/sdk/model/entitlementLimits.js.map +1 -0
- package/build/library/sdk/model/entityCreatedResponse.d.ts +36 -0
- package/build/library/sdk/model/entityCreatedResponse.js +42 -0
- package/build/library/sdk/model/entityCreatedResponse.js.map +1 -0
- package/build/library/sdk/model/entityCreatedResponseAllOf.d.ts +28 -0
- package/build/library/sdk/model/entityCreatedResponseAllOf.js +32 -0
- package/build/library/sdk/model/entityCreatedResponseAllOf.js.map +1 -0
- package/build/library/sdk/model/exportKerasBlockDataRequest.d.ts +26 -0
- package/build/library/sdk/model/exportKerasBlockDataRequest.js +32 -0
- package/build/library/sdk/model/exportKerasBlockDataRequest.js.map +1 -0
- package/build/library/sdk/model/feature.d.ts +16 -0
- package/build/library/sdk/model/feature.js +16 -0
- package/build/library/sdk/model/feature.js.map +1 -0
- package/build/library/sdk/model/findSyntiantPosteriorRequest.d.ts +1 -1
- package/build/library/sdk/model/findSyntiantPosteriorRequest.js +1 -1
- package/build/library/sdk/model/findSyntiantPosteriorRequest.js.map +1 -1
- package/build/library/sdk/model/getAllImportedFromResponse.d.ts +34 -0
- package/build/library/sdk/model/getAllImportedFromResponse.js +42 -0
- package/build/library/sdk/model/getAllImportedFromResponse.js.map +1 -0
- package/build/library/sdk/model/getAllImportedFromResponseAllOf.d.ts +26 -0
- package/build/library/sdk/model/getAllImportedFromResponseAllOf.js +32 -0
- package/build/library/sdk/model/getAllImportedFromResponseAllOf.js.map +1 -0
- package/build/library/sdk/model/getAllImportedFromResponseAllOfData.d.ts +27 -0
- package/build/library/sdk/model/getAllImportedFromResponseAllOfData.js +42 -0
- package/build/library/sdk/model/getAllImportedFromResponseAllOfData.js.map +1 -0
- package/build/library/sdk/model/getAutoLabelerResponse.d.ts +39 -0
- package/build/library/sdk/model/getAutoLabelerResponse.js +67 -0
- package/build/library/sdk/model/getAutoLabelerResponse.js.map +1 -0
- package/build/library/sdk/model/getAutoLabelerResponseAllOf.d.ts +31 -0
- package/build/library/sdk/model/getAutoLabelerResponseAllOf.js +57 -0
- package/build/library/sdk/model/getAutoLabelerResponseAllOf.js.map +1 -0
- package/build/library/sdk/model/getAutoLabelerResponseAllOfClusters.d.ts +27 -0
- package/build/library/sdk/model/getAutoLabelerResponseAllOfClusters.js +37 -0
- package/build/library/sdk/model/getAutoLabelerResponseAllOfClusters.js.map +1 -0
- package/build/library/sdk/model/getAutoLabelerResponseAllOfItems.d.ts +25 -0
- package/build/library/sdk/model/getAutoLabelerResponseAllOfItems.js +32 -0
- package/build/library/sdk/model/getAutoLabelerResponseAllOfItems.js.map +1 -0
- package/build/library/sdk/model/getAutoSegmenterResponse.d.ts +38 -0
- package/build/library/sdk/model/getAutoSegmenterResponse.js +62 -0
- package/build/library/sdk/model/getAutoSegmenterResponse.js.map +1 -0
- package/build/library/sdk/model/getAutoSegmenterResponseAllOf.d.ts +30 -0
- package/build/library/sdk/model/getAutoSegmenterResponseAllOf.js +52 -0
- package/build/library/sdk/model/getAutoSegmenterResponseAllOf.js.map +1 -0
- package/build/library/sdk/model/getAutoSegmenterResponseAllOfClusters.d.ts +27 -0
- package/build/library/sdk/model/getAutoSegmenterResponseAllOfClusters.js +37 -0
- package/build/library/sdk/model/getAutoSegmenterResponseAllOfClusters.js.map +1 -0
- package/build/library/sdk/model/getAutoSegmenterResponseAllOfItems.d.ts +25 -0
- package/build/library/sdk/model/getAutoSegmenterResponseAllOfItems.js +32 -0
- package/build/library/sdk/model/getAutoSegmenterResponseAllOfItems.js.map +1 -0
- package/build/library/sdk/model/getDiversityDataResponse.d.ts +34 -0
- package/build/library/sdk/model/getDiversityDataResponse.js +42 -0
- package/build/library/sdk/model/getDiversityDataResponse.js.map +1 -0
- package/build/library/sdk/model/getDiversityDataResponseAllOf.d.ts +26 -0
- package/build/library/sdk/model/getDiversityDataResponseAllOf.js +32 -0
- package/build/library/sdk/model/getDiversityDataResponseAllOf.js.map +1 -0
- package/build/library/sdk/model/getDiversityDataResponseAllOfClusterInfos.d.ts +68 -0
- package/build/library/sdk/model/getDiversityDataResponseAllOfClusterInfos.js +80 -0
- package/build/library/sdk/model/getDiversityDataResponseAllOfClusterInfos.js.map +1 -0
- package/build/library/sdk/model/getDiversityDataResponseAllOfData.d.ts +28 -0
- package/build/library/sdk/model/getDiversityDataResponseAllOfData.js +42 -0
- package/build/library/sdk/model/getDiversityDataResponseAllOfData.js.map +1 -0
- package/build/library/sdk/model/getEmailVerificationCodeResponse.d.ts +36 -0
- package/build/library/sdk/model/getEmailVerificationCodeResponse.js +42 -0
- package/build/library/sdk/model/getEmailVerificationCodeResponse.js.map +1 -0
- package/build/library/sdk/model/getEmailVerificationCodeResponseAllOf.d.ts +28 -0
- package/build/library/sdk/model/getEmailVerificationCodeResponseAllOf.js +32 -0
- package/build/library/sdk/model/getEmailVerificationCodeResponseAllOf.js.map +1 -0
- package/build/library/sdk/model/getEmailVerificationStatusResponse.d.ts +36 -0
- package/build/library/sdk/model/getEmailVerificationStatusResponse.js +42 -0
- package/build/library/sdk/model/getEmailVerificationStatusResponse.js.map +1 -0
- package/build/library/sdk/model/getEmailVerificationStatusResponseAllOf.d.ts +28 -0
- package/build/library/sdk/model/getEmailVerificationStatusResponseAllOf.js +32 -0
- package/build/library/sdk/model/getEmailVerificationStatusResponseAllOf.js.map +1 -0
- package/build/library/sdk/model/getFeatureFlagsResponse.d.ts +37 -0
- package/build/library/sdk/model/getFeatureFlagsResponse.js +42 -0
- package/build/library/sdk/model/getFeatureFlagsResponse.js.map +1 -0
- package/build/library/sdk/model/getFeatureFlagsResponseAllOf.d.ts +29 -0
- package/build/library/sdk/model/getFeatureFlagsResponseAllOf.js +32 -0
- package/build/library/sdk/model/getFeatureFlagsResponseAllOf.js.map +1 -0
- package/build/library/sdk/model/getFeatureFlagsResponseAllOfFlags.d.ts +30 -0
- package/build/library/sdk/model/getFeatureFlagsResponseAllOfFlags.js +37 -0
- package/build/library/sdk/model/getFeatureFlagsResponseAllOfFlags.js.map +1 -0
- package/build/library/sdk/model/getLabelNoiseDataResponse.d.ts +34 -0
- package/build/library/sdk/model/getLabelNoiseDataResponse.js +42 -0
- package/build/library/sdk/model/getLabelNoiseDataResponse.js.map +1 -0
- package/build/library/sdk/model/getLabelNoiseDataResponseAllOf.d.ts +26 -0
- package/build/library/sdk/model/getLabelNoiseDataResponseAllOf.js +32 -0
- package/build/library/sdk/model/getLabelNoiseDataResponseAllOf.js.map +1 -0
- package/build/library/sdk/model/getLabelNoiseDataResponseAllOfData.d.ts +30 -0
- package/build/library/sdk/model/getLabelNoiseDataResponseAllOfData.js +42 -0
- package/build/library/sdk/model/getLabelNoiseDataResponseAllOfData.js.map +1 -0
- package/build/library/sdk/model/getOrganizationDataCampaignDashboardResponse.d.ts +34 -0
- package/build/library/sdk/model/getOrganizationDataCampaignDashboardResponse.js +42 -0
- package/build/library/sdk/model/getOrganizationDataCampaignDashboardResponse.js.map +1 -0
- package/build/library/sdk/model/getOrganizationDataCampaignDashboardResponseAllOf.d.ts +26 -0
- package/build/library/sdk/model/getOrganizationDataCampaignDashboardResponseAllOf.js +32 -0
- package/build/library/sdk/model/getOrganizationDataCampaignDashboardResponseAllOf.js.map +1 -0
- package/build/library/sdk/model/getOrganizationDataCampaignDashboardsResponse.d.ts +34 -0
- package/build/library/sdk/model/getOrganizationDataCampaignDashboardsResponse.js +42 -0
- package/build/library/sdk/model/getOrganizationDataCampaignDashboardsResponse.js.map +1 -0
- package/build/library/sdk/model/getOrganizationDataCampaignDashboardsResponseAllOf.d.ts +26 -0
- package/build/library/sdk/model/getOrganizationDataCampaignDashboardsResponseAllOf.js +32 -0
- package/build/library/sdk/model/getOrganizationDataCampaignDashboardsResponseAllOf.js.map +1 -0
- package/build/library/sdk/model/getOrganizationDataCampaignResponse.d.ts +36 -0
- package/build/library/sdk/model/getOrganizationDataCampaignResponse.js +47 -0
- package/build/library/sdk/model/getOrganizationDataCampaignResponse.js.map +1 -0
- package/build/library/sdk/model/getOrganizationDataCampaignsResponse.d.ts +34 -0
- package/build/library/sdk/model/getOrganizationDataCampaignsResponse.js +42 -0
- package/build/library/sdk/model/getOrganizationDataCampaignsResponse.js.map +1 -0
- package/build/library/sdk/model/getOrganizationDataCampaignsResponseAllOf.d.ts +26 -0
- package/build/library/sdk/model/getOrganizationDataCampaignsResponseAllOf.js +32 -0
- package/build/library/sdk/model/getOrganizationDataCampaignsResponseAllOf.js.map +1 -0
- package/build/library/sdk/model/getOrganizationDataCampaignsResponseAllOfCampaigns.d.ts +28 -0
- package/build/library/sdk/model/getOrganizationDataCampaignsResponseAllOfCampaigns.js +37 -0
- package/build/library/sdk/model/getOrganizationDataCampaignsResponseAllOfCampaigns.js.map +1 -0
- package/build/library/sdk/model/getOrganizationDataItemTransformJobsResponseAllOfTransformationJobs.d.ts +1 -0
- package/build/library/sdk/model/getOrganizationDataItemTransformJobsResponseAllOfTransformationJobs.js +5 -0
- package/build/library/sdk/model/getOrganizationDataItemTransformJobsResponseAllOfTransformationJobs.js.map +1 -1
- package/build/library/sdk/model/getUserNeedToSetPasswordResponse.d.ts +9 -0
- package/build/library/sdk/model/getUserNeedToSetPasswordResponse.js +10 -0
- package/build/library/sdk/model/getUserNeedToSetPasswordResponse.js.map +1 -1
- package/build/library/sdk/model/getUserNeedToSetPasswordResponseAllOf.d.ts +9 -0
- package/build/library/sdk/model/getUserNeedToSetPasswordResponseAllOf.js +10 -0
- package/build/library/sdk/model/getUserNeedToSetPasswordResponseAllOf.js.map +1 -1
- package/build/library/sdk/model/getUserResponse.d.ts +10 -5
- package/build/library/sdk/model/getUserResponse.js +17 -7
- package/build/library/sdk/model/getUserResponse.js.map +1 -1
- package/build/library/sdk/model/getUserResponseAllOf.d.ts +8 -4
- package/build/library/sdk/model/getUserResponseAllOf.js +10 -5
- package/build/library/sdk/model/getUserResponseAllOf.js.map +1 -1
- package/build/library/sdk/model/imageInputScaling.d.ts +16 -0
- package/build/library/sdk/model/imageInputScaling.js +16 -0
- package/build/library/sdk/model/imageInputScaling.js.map +1 -0
- package/build/library/sdk/model/impulseInputBlock.d.ts +1 -1
- package/build/library/sdk/model/impulseInputBlock.js +1 -1
- package/build/library/sdk/model/impulseInputBlock.js.map +1 -1
- package/build/library/sdk/model/inputBlock.d.ts +1 -1
- package/build/library/sdk/model/inputBlock.js +1 -1
- package/build/library/sdk/model/inputBlock.js.map +1 -1
- package/build/library/sdk/model/inviteOrganizationMemberRequest.d.ts +2 -3
- package/build/library/sdk/model/inviteOrganizationMemberRequest.js +2 -3
- package/build/library/sdk/model/inviteOrganizationMemberRequest.js.map +1 -1
- package/build/library/sdk/model/job.d.ts +4 -0
- package/build/library/sdk/model/job.js +5 -0
- package/build/library/sdk/model/job.js.map +1 -1
- package/build/library/sdk/model/jobDetails.d.ts +74 -0
- package/build/library/sdk/model/jobDetails.js +92 -0
- package/build/library/sdk/model/jobDetails.js.map +1 -0
- package/build/library/sdk/model/jobDetailsAllOf.d.ts +37 -0
- package/build/library/sdk/model/jobDetailsAllOf.js +42 -0
- package/build/library/sdk/model/jobDetailsAllOf.js.map +1 -0
- package/build/library/sdk/model/jobDetailsResponse.d.ts +34 -0
- package/build/library/sdk/model/jobDetailsResponse.js +42 -0
- package/build/library/sdk/model/jobDetailsResponse.js.map +1 -0
- package/build/library/sdk/model/jobDetailsResponseAllOf.d.ts +26 -0
- package/build/library/sdk/model/jobDetailsResponseAllOf.js +32 -0
- package/build/library/sdk/model/jobDetailsResponseAllOf.js.map +1 -0
- package/build/library/sdk/model/jobFailureDetails.d.ts +36 -0
- package/build/library/sdk/model/jobFailureDetails.js +42 -0
- package/build/library/sdk/model/jobFailureDetails.js.map +1 -0
- package/build/library/sdk/model/jobLogsResponse.d.ts +34 -0
- package/build/library/sdk/model/jobLogsResponse.js +42 -0
- package/build/library/sdk/model/jobLogsResponse.js.map +1 -0
- package/build/library/sdk/model/jobLogsResponseAllOf.d.ts +26 -0
- package/build/library/sdk/model/jobLogsResponseAllOf.js +32 -0
- package/build/library/sdk/model/jobLogsResponseAllOf.js.map +1 -0
- package/build/library/sdk/model/jobMetricsResponse.d.ts +35 -0
- package/build/library/sdk/model/jobMetricsResponse.js +47 -0
- package/build/library/sdk/model/jobMetricsResponse.js.map +1 -0
- package/build/library/sdk/model/jobMetricsResponseAllOf.d.ts +27 -0
- package/build/library/sdk/model/jobMetricsResponseAllOf.js +37 -0
- package/build/library/sdk/model/jobMetricsResponseAllOf.js.map +1 -0
- package/build/library/sdk/model/jobParentTypeEnum.d.ts +13 -0
- package/build/library/sdk/model/jobParentTypeEnum.js +16 -0
- package/build/library/sdk/model/jobParentTypeEnum.js.map +1 -0
- package/build/library/sdk/model/jobState.d.ts +36 -0
- package/build/library/sdk/model/jobState.js +47 -0
- package/build/library/sdk/model/jobState.js.map +1 -0
- package/build/library/sdk/model/jobStateExecutionDetails.d.ts +28 -0
- package/build/library/sdk/model/jobStateExecutionDetails.js +32 -0
- package/build/library/sdk/model/jobStateExecutionDetails.js.map +1 -0
- package/build/library/sdk/model/jobStep.d.ts +42 -0
- package/build/library/sdk/model/jobStep.js +52 -0
- package/build/library/sdk/model/jobStep.js.map +1 -0
- package/build/library/sdk/model/kerasCustomMetric.d.ts +32 -0
- package/build/library/sdk/model/kerasCustomMetric.js +37 -0
- package/build/library/sdk/model/kerasCustomMetric.js.map +1 -0
- package/build/library/sdk/model/kerasModelMetadata.d.ts +7 -1
- package/build/library/sdk/model/kerasModelMetadata.js +11 -1
- package/build/library/sdk/model/kerasModelMetadata.js.map +1 -1
- package/build/library/sdk/model/kerasModelMetadataAllOf.d.ts +7 -1
- package/build/library/sdk/model/kerasModelMetadataAllOf.js +11 -1
- package/build/library/sdk/model/kerasModelMetadataAllOf.js.map +1 -1
- package/build/library/sdk/model/kerasModelMetadataMetrics.d.ts +8 -0
- package/build/library/sdk/model/kerasModelMetadataMetrics.js +10 -0
- package/build/library/sdk/model/kerasModelMetadataMetrics.js.map +1 -1
- package/build/library/sdk/model/kerasModelMetadataMetricsOnDevicePerformance.d.ts +5 -0
- package/build/library/sdk/model/kerasModelMetadataMetricsOnDevicePerformance.js +5 -0
- package/build/library/sdk/model/kerasModelMetadataMetricsOnDevicePerformance.js.map +1 -1
- package/build/library/sdk/model/kerasModelVariantEnum.d.ts +13 -0
- package/build/library/sdk/model/kerasModelVariantEnum.js +16 -0
- package/build/library/sdk/model/kerasModelVariantEnum.js.map +1 -0
- package/build/library/sdk/model/kerasResponse.d.ts +18 -0
- package/build/library/sdk/model/kerasResponse.js +25 -0
- package/build/library/sdk/model/kerasResponse.js.map +1 -1
- package/build/library/sdk/model/kerasResponseAllOf.d.ts +18 -0
- package/build/library/sdk/model/kerasResponseAllOf.js +25 -0
- package/build/library/sdk/model/kerasResponseAllOf.js.map +1 -1
- package/build/library/sdk/model/learnBlockType.d.ts +1 -1
- package/build/library/sdk/model/learnBlockType.js +1 -1
- package/build/library/sdk/model/learnBlockType.js.map +1 -1
- package/build/library/sdk/model/listEnterpriseTrialsResponse.d.ts +37 -0
- package/build/library/sdk/model/listEnterpriseTrialsResponse.js +42 -0
- package/build/library/sdk/model/listEnterpriseTrialsResponse.js.map +1 -0
- package/build/library/sdk/model/listEnterpriseTrialsResponseAllOf.d.ts +29 -0
- package/build/library/sdk/model/listEnterpriseTrialsResponseAllOf.js +32 -0
- package/build/library/sdk/model/listEnterpriseTrialsResponseAllOf.js.map +1 -0
- package/build/library/sdk/model/listOrganizationBucketsResponseAllOfBuckets.d.ts +4 -8
- package/build/library/sdk/model/listOrganizationBucketsResponseAllOfBuckets.js +5 -10
- package/build/library/sdk/model/listOrganizationBucketsResponseAllOfBuckets.js.map +1 -1
- package/build/library/sdk/model/listOrganizationBucketsUserResponseAllOfBuckets.d.ts +0 -8
- package/build/library/sdk/model/listOrganizationBucketsUserResponseAllOfBuckets.js +0 -10
- package/build/library/sdk/model/listOrganizationBucketsUserResponseAllOfBuckets.js.map +1 -1
- package/build/library/sdk/model/listOrganizationPortalsResponseAllOfPortals.d.ts +1 -0
- package/build/library/sdk/model/listOrganizationPortalsResponseAllOfPortals.js +5 -0
- package/build/library/sdk/model/listOrganizationPortalsResponseAllOfPortals.js.map +1 -1
- package/build/library/sdk/model/listPortalFilesInFolderRequest.d.ts +8 -0
- package/build/library/sdk/model/listPortalFilesInFolderRequest.js +10 -0
- package/build/library/sdk/model/listPortalFilesInFolderRequest.js.map +1 -1
- package/build/library/sdk/model/listPortalFilesInFolderResponse.d.ts +2 -1
- package/build/library/sdk/model/listPortalFilesInFolderResponse.js +5 -0
- package/build/library/sdk/model/listPortalFilesInFolderResponse.js.map +1 -1
- package/build/library/sdk/model/listPortalFilesInFolderResponseAllOf.d.ts +2 -1
- package/build/library/sdk/model/listPortalFilesInFolderResponseAllOf.js +5 -0
- package/build/library/sdk/model/listPortalFilesInFolderResponseAllOf.js.map +1 -1
- package/build/library/sdk/model/logAnalyticsEventRequest.d.ts +30 -0
- package/build/library/sdk/model/logAnalyticsEventRequest.js +42 -0
- package/build/library/sdk/model/logAnalyticsEventRequest.js.map +1 -0
- package/build/library/sdk/model/migration.d.ts +38 -0
- package/build/library/sdk/model/migration.js +43 -0
- package/build/library/sdk/model/migration.js.map +1 -0
- package/build/library/sdk/model/modelPrediction.d.ts +1 -0
- package/build/library/sdk/model/modelPrediction.js +5 -0
- package/build/library/sdk/model/modelPrediction.js.map +1 -1
- package/build/library/sdk/model/models.d.ts +151 -6
- package/build/library/sdk/model/models.js +460 -23
- package/build/library/sdk/model/models.js.map +1 -1
- package/build/library/sdk/model/neighborsData.d.ts +36 -0
- package/build/library/sdk/model/neighborsData.js +40 -0
- package/build/library/sdk/model/neighborsData.js.map +1 -0
- package/build/library/sdk/model/neighborsScore.d.ts +50 -0
- package/build/library/sdk/model/neighborsScore.js +60 -0
- package/build/library/sdk/model/neighborsScore.js.map +1 -0
- package/build/library/sdk/model/neighborsScoreNeighborWindows.d.ts +38 -0
- package/build/library/sdk/model/neighborsScoreNeighborWindows.js +47 -0
- package/build/library/sdk/model/neighborsScoreNeighborWindows.js.map +1 -0
- package/build/library/sdk/model/optimizeTransferLearningModelsResponseAllOfModels.js +1 -1
- package/build/library/sdk/model/optimizeTransferLearningModelsResponseAllOfModels.js.map +1 -1
- package/build/library/sdk/model/organization.d.ts +20 -0
- package/build/library/sdk/model/organization.js +25 -0
- package/build/library/sdk/model/organization.js.map +1 -1
- package/build/library/sdk/model/organizationAddDataFolderRequest.d.ts +3 -0
- package/build/library/sdk/model/organizationAddDataFolderRequest.js +7 -1
- package/build/library/sdk/model/organizationAddDataFolderRequest.js.map +1 -1
- package/build/library/sdk/model/organizationAddDatasetRequest.d.ts +32 -0
- package/build/library/sdk/model/organizationAddDatasetRequest.js +53 -0
- package/build/library/sdk/model/organizationAddDatasetRequest.js.map +1 -0
- package/build/library/sdk/model/organizationAddDatasetRequestBucket.d.ts +36 -0
- package/build/library/sdk/model/organizationAddDatasetRequestBucket.js +42 -0
- package/build/library/sdk/model/organizationAddDatasetRequestBucket.js.map +1 -0
- package/build/library/sdk/model/organizationCreateProject.d.ts +12 -0
- package/build/library/sdk/model/organizationCreateProject.js +25 -0
- package/build/library/sdk/model/organizationCreateProject.js.map +1 -1
- package/build/library/sdk/model/organizationCreateProjectCreatedByUser.d.ts +28 -0
- package/build/library/sdk/model/organizationCreateProjectCreatedByUser.js +47 -0
- package/build/library/sdk/model/organizationCreateProjectCreatedByUser.js.map +1 -0
- package/build/library/sdk/model/organizationCreateProjectRequest.d.ts +9 -1
- package/build/library/sdk/model/organizationCreateProjectRequest.js +16 -1
- package/build/library/sdk/model/organizationCreateProjectRequest.js.map +1 -1
- package/build/library/sdk/model/organizationCreateProjectTransformationSummary.d.ts +4 -0
- package/build/library/sdk/model/organizationCreateProjectTransformationSummary.js +5 -0
- package/build/library/sdk/model/organizationCreateProjectTransformationSummary.js.map +1 -1
- package/build/library/sdk/model/organizationCreateProjectWithFiles.d.ts +13 -0
- package/build/library/sdk/model/organizationCreateProjectWithFiles.js +30 -0
- package/build/library/sdk/model/organizationCreateProjectWithFiles.js.map +1 -1
- package/build/library/sdk/model/organizationCreateProjectWithFilesAllOf.d.ts +1 -0
- package/build/library/sdk/model/organizationCreateProjectWithFilesAllOf.js +5 -0
- package/build/library/sdk/model/organizationCreateProjectWithFilesAllOf.js.map +1 -1
- package/build/library/sdk/model/organizationCreateProjectWithFilesAllOfFiles.d.ts +5 -0
- package/build/library/sdk/model/organizationCreateProjectWithFilesAllOfFiles.js +10 -0
- package/build/library/sdk/model/organizationCreateProjectWithFilesAllOfFiles.js.map +1 -1
- package/build/library/sdk/model/organizationDataCampaignDiffRequest.d.ts +26 -0
- package/build/library/sdk/model/organizationDataCampaignDiffRequest.js +32 -0
- package/build/library/sdk/model/organizationDataCampaignDiffRequest.js.map +1 -0
- package/build/library/sdk/model/organizationDataCampaignDiffRequestQueries.d.ts +30 -0
- package/build/library/sdk/model/organizationDataCampaignDiffRequestQueries.js +42 -0
- package/build/library/sdk/model/organizationDataCampaignDiffRequestQueries.js.map +1 -0
- package/build/library/sdk/model/organizationDataCampaignDiffResponse.d.ts +35 -0
- package/build/library/sdk/model/organizationDataCampaignDiffResponse.js +47 -0
- package/build/library/sdk/model/organizationDataCampaignDiffResponse.js.map +1 -0
- package/build/library/sdk/model/organizationDataCampaignDiffResponseAllOf.d.ts +27 -0
- package/build/library/sdk/model/organizationDataCampaignDiffResponseAllOf.js +37 -0
- package/build/library/sdk/model/organizationDataCampaignDiffResponseAllOf.js.map +1 -0
- package/build/library/sdk/model/organizationDataCampaignDiffResponseAllOfQueries.d.ts +29 -0
- package/build/library/sdk/model/organizationDataCampaignDiffResponseAllOfQueries.js +52 -0
- package/build/library/sdk/model/organizationDataCampaignDiffResponseAllOfQueries.js.map +1 -0
- package/build/library/sdk/model/organizationDataItemFiles.d.ts +1 -0
- package/build/library/sdk/model/organizationDataItemFiles.js +5 -0
- package/build/library/sdk/model/organizationDataItemFiles.js.map +1 -1
- package/build/library/sdk/model/organizationDataset.d.ts +8 -0
- package/build/library/sdk/model/organizationDataset.js +27 -1
- package/build/library/sdk/model/organizationDataset.js.map +1 -1
- package/build/library/sdk/model/organizationDatasetBucket.d.ts +41 -0
- package/build/library/sdk/model/organizationDatasetBucket.js +52 -0
- package/build/library/sdk/model/organizationDatasetBucket.js.map +1 -0
- package/build/library/sdk/model/organizationGetCreateProjectsResponseAllOfJobs.d.ts +15 -0
- package/build/library/sdk/model/organizationGetCreateProjectsResponseAllOfJobs.js +32 -1
- package/build/library/sdk/model/organizationGetCreateProjectsResponseAllOfJobs.js.map +1 -1
- package/build/library/sdk/model/organizationInfoResponse.d.ts +5 -3
- package/build/library/sdk/model/organizationInfoResponse.js +6 -1
- package/build/library/sdk/model/organizationInfoResponse.js.map +1 -1
- package/build/library/sdk/model/organizationInfoResponseAllOf.d.ts +5 -3
- package/build/library/sdk/model/organizationInfoResponseAllOf.js +6 -1
- package/build/library/sdk/model/organizationInfoResponseAllOf.js.map +1 -1
- package/build/library/sdk/model/organizationInfoResponseAllOfCliLists.d.ts +28 -0
- package/build/library/sdk/model/organizationInfoResponseAllOfCliLists.js +37 -0
- package/build/library/sdk/model/organizationInfoResponseAllOfCliLists.js.map +1 -0
- package/build/library/sdk/model/organizationInfoResponseAllOfCliListsImageInputScalingOptions.d.ts +27 -0
- package/build/library/sdk/model/organizationInfoResponseAllOfCliListsImageInputScalingOptions.js +37 -0
- package/build/library/sdk/model/organizationInfoResponseAllOfCliListsImageInputScalingOptions.js.map +1 -0
- package/build/library/sdk/model/organizationInfoResponseAllOfCliListsObjectDetectionLastLayerOptions.d.ts +27 -0
- package/build/library/sdk/model/organizationInfoResponseAllOfCliListsObjectDetectionLastLayerOptions.js +37 -0
- package/build/library/sdk/model/organizationInfoResponseAllOfCliListsObjectDetectionLastLayerOptions.js.map +1 -0
- package/build/library/sdk/model/organizationMemberRole.d.ts +13 -0
- package/build/library/sdk/model/organizationMemberRole.js +16 -0
- package/build/library/sdk/model/organizationMemberRole.js.map +1 -0
- package/build/library/sdk/model/organizationMetricsResponseAllOfMetrics.d.ts +12 -4
- package/build/library/sdk/model/organizationMetricsResponseAllOfMetrics.js +10 -0
- package/build/library/sdk/model/organizationMetricsResponseAllOfMetrics.js.map +1 -1
- package/build/library/sdk/model/organizationPipeline.d.ts +2 -2
- package/build/library/sdk/model/organizationPipeline.js +1 -1
- package/build/library/sdk/model/organizationPipeline.js.map +1 -1
- package/build/library/sdk/model/organizationPipelineRun.d.ts +1 -1
- package/build/library/sdk/model/organizationPipelineRunStep.d.ts +5 -0
- package/build/library/sdk/model/organizationPipelineRunStep.js +15 -0
- package/build/library/sdk/model/organizationPipelineRunStep.js.map +1 -1
- package/build/library/sdk/model/organizationPipelineStep.d.ts +5 -0
- package/build/library/sdk/model/organizationPipelineStep.js +15 -0
- package/build/library/sdk/model/organizationPipelineStep.js.map +1 -1
- package/build/library/sdk/model/organizationTransferLearningBlock.d.ts +10 -0
- package/build/library/sdk/model/organizationTransferLearningBlock.js +15 -0
- package/build/library/sdk/model/organizationTransferLearningBlock.js.map +1 -1
- package/build/library/sdk/model/organizationTransformationBlock.d.ts +13 -0
- package/build/library/sdk/model/organizationTransformationBlock.js +15 -0
- package/build/library/sdk/model/organizationTransformationBlock.js.map +1 -1
- package/build/library/sdk/model/organizationUpdatePipelineBody.d.ts +2 -2
- package/build/library/sdk/model/organizationUpdatePipelineBody.js +1 -1
- package/build/library/sdk/model/organizationUpdatePipelineBody.js.map +1 -1
- package/build/library/sdk/model/organizationUser.d.ts +14 -7
- package/build/library/sdk/model/organizationUser.js +46 -22
- package/build/library/sdk/model/organizationUser.js.map +1 -1
- package/build/library/sdk/model/organizationUserAllOf.d.ts +29 -0
- package/build/library/sdk/model/organizationUserAllOf.js +47 -0
- package/build/library/sdk/model/organizationUserAllOf.js.map +1 -0
- package/build/library/sdk/model/permission.d.ts +1 -1
- package/build/library/sdk/model/permission.js +1 -1
- package/build/library/sdk/model/permission.js.map +1 -1
- package/build/library/sdk/model/portalFile.d.ts +3 -0
- package/build/library/sdk/model/portalFile.js +7 -1
- package/build/library/sdk/model/portalFile.js.map +1 -1
- package/build/library/sdk/model/portalInfoResponse.d.ts +1 -0
- package/build/library/sdk/model/portalInfoResponse.js +5 -0
- package/build/library/sdk/model/portalInfoResponse.js.map +1 -1
- package/build/library/sdk/model/project.d.ts +1 -0
- package/build/library/sdk/model/project.js +5 -0
- package/build/library/sdk/model/project.js.map +1 -1
- package/build/library/sdk/model/projectCollaborator.d.ts +6 -0
- package/build/library/sdk/model/projectCollaborator.js +15 -0
- package/build/library/sdk/model/projectCollaborator.js.map +1 -1
- package/build/library/sdk/model/projectDeploymentTarget.d.ts +6 -0
- package/build/library/sdk/model/projectDeploymentTarget.js +15 -0
- package/build/library/sdk/model/projectDeploymentTarget.js.map +1 -1
- package/build/library/sdk/model/projectInfoResponse.d.ts +9 -0
- package/build/library/sdk/model/projectInfoResponse.js +15 -0
- package/build/library/sdk/model/projectInfoResponse.js.map +1 -1
- package/build/library/sdk/model/projectInfoResponseAllOf.d.ts +9 -0
- package/build/library/sdk/model/projectInfoResponseAllOf.js +15 -0
- package/build/library/sdk/model/projectInfoResponseAllOf.js.map +1 -1
- package/build/library/sdk/model/projectInfoResponseAllOfDeploySettings.d.ts +1 -0
- package/build/library/sdk/model/projectInfoResponseAllOfDeploySettings.js +5 -0
- package/build/library/sdk/model/projectInfoResponseAllOfDeploySettings.js.map +1 -1
- package/build/library/sdk/model/projectPublicData.d.ts +2 -3
- package/build/library/sdk/model/projectPublicData.js +2 -3
- package/build/library/sdk/model/projectPublicData.js.map +1 -1
- package/build/library/sdk/model/projectTrainingDataSummaryResponse.d.ts +2 -2
- package/build/library/sdk/model/projectTrainingDataSummaryResponse.js +1 -1
- package/build/library/sdk/model/projectTrainingDataSummaryResponse.js.map +1 -1
- package/build/library/sdk/model/projectTrainingDataSummaryResponseAllOf.d.ts +2 -2
- package/build/library/sdk/model/projectTrainingDataSummaryResponseAllOf.js +1 -1
- package/build/library/sdk/model/projectTrainingDataSummaryResponseAllOf.js.map +1 -1
- package/build/library/sdk/model/projectTrainingDataSummaryResponseAllOfDataSummary.d.ts +29 -0
- package/build/library/sdk/model/projectTrainingDataSummaryResponseAllOfDataSummary.js +37 -0
- package/build/library/sdk/model/projectTrainingDataSummaryResponseAllOfDataSummary.js.map +1 -0
- package/build/library/sdk/model/projectType.d.ts +13 -0
- package/build/library/sdk/model/projectType.js +16 -0
- package/build/library/sdk/model/projectType.js.map +1 -0
- package/build/library/sdk/model/requestEmailVerificationRequest.d.ts +28 -0
- package/build/library/sdk/model/requestEmailVerificationRequest.js +32 -0
- package/build/library/sdk/model/requestEmailVerificationRequest.js.map +1 -0
- package/build/library/sdk/model/runAutoLabelerRequest.d.ts +28 -0
- package/build/library/sdk/model/runAutoLabelerRequest.js +47 -0
- package/build/library/sdk/model/runAutoLabelerRequest.js.map +1 -0
- package/build/library/sdk/model/runAutoSegmenterRequest.d.ts +27 -0
- package/build/library/sdk/model/runAutoSegmenterRequest.js +42 -0
- package/build/library/sdk/model/runAutoSegmenterRequest.js.map +1 -0
- package/build/library/sdk/model/sample.d.ts +11 -0
- package/build/library/sdk/model/sample.js +20 -0
- package/build/library/sdk/model/sample.js.map +1 -1
- package/build/library/sdk/model/saveAutoLabelerClustersRequest.d.ts +26 -0
- package/build/library/sdk/model/saveAutoLabelerClustersRequest.js +32 -0
- package/build/library/sdk/model/saveAutoLabelerClustersRequest.js.map +1 -0
- package/build/library/sdk/model/saveAutoLabelerClustersRequestClusters.d.ts +26 -0
- package/build/library/sdk/model/saveAutoLabelerClustersRequestClusters.js +37 -0
- package/build/library/sdk/model/saveAutoLabelerClustersRequestClusters.js.map +1 -0
- package/build/library/sdk/model/saveAutoLabelerClustersResponse.d.ts +33 -0
- package/build/library/sdk/model/saveAutoLabelerClustersResponse.js +42 -0
- package/build/library/sdk/model/saveAutoLabelerClustersResponse.js.map +1 -0
- package/build/library/sdk/model/saveAutoLabelerClustersResponseAllOf.d.ts +25 -0
- package/build/library/sdk/model/saveAutoLabelerClustersResponseAllOf.js +32 -0
- package/build/library/sdk/model/saveAutoLabelerClustersResponseAllOf.js.map +1 -0
- package/build/library/sdk/model/saveAutoSegmenterClustersRequest.d.ts +26 -0
- package/build/library/sdk/model/saveAutoSegmenterClustersRequest.js +32 -0
- package/build/library/sdk/model/saveAutoSegmenterClustersRequest.js.map +1 -0
- package/build/library/sdk/model/saveAutoSegmenterClustersRequestClusters.d.ts +26 -0
- package/build/library/sdk/model/saveAutoSegmenterClustersRequestClusters.js +37 -0
- package/build/library/sdk/model/saveAutoSegmenterClustersRequestClusters.js.map +1 -0
- package/build/library/sdk/model/saveAutoSegmenterClustersResponse.d.ts +33 -0
- package/build/library/sdk/model/saveAutoSegmenterClustersResponse.js +42 -0
- package/build/library/sdk/model/saveAutoSegmenterClustersResponse.js.map +1 -0
- package/build/library/sdk/model/saveAutoSegmenterClustersResponseAllOf.d.ts +25 -0
- package/build/library/sdk/model/saveAutoSegmenterClustersResponseAllOf.js +32 -0
- package/build/library/sdk/model/saveAutoSegmenterClustersResponseAllOf.js.map +1 -0
- package/build/library/sdk/model/setKerasParameterRequest.d.ts +14 -0
- package/build/library/sdk/model/setKerasParameterRequest.js +20 -0
- package/build/library/sdk/model/setKerasParameterRequest.js.map +1 -1
- package/build/library/sdk/model/setMemberRoleRequest.d.ts +2 -3
- package/build/library/sdk/model/setMemberRoleRequest.js +2 -3
- package/build/library/sdk/model/setMemberRoleRequest.js.map +1 -1
- package/build/library/sdk/model/setSampleStructuredLabelsRequest.d.ts +26 -0
- package/build/library/sdk/model/setSampleStructuredLabelsRequest.js +32 -0
- package/build/library/sdk/model/setSampleStructuredLabelsRequest.js.map +1 -0
- package/build/library/sdk/model/startEnterpriseTrialRequest.d.ts +74 -0
- package/build/library/sdk/model/startEnterpriseTrialRequest.js +88 -0
- package/build/library/sdk/model/startEnterpriseTrialRequest.js.map +1 -0
- package/build/library/sdk/model/startTrainingRequestAnomaly.d.ts +4 -0
- package/build/library/sdk/model/startTrainingRequestAnomaly.js +5 -0
- package/build/library/sdk/model/startTrainingRequestAnomaly.js.map +1 -1
- package/build/library/sdk/model/structuredClassifyResult.d.ts +19 -3
- package/build/library/sdk/model/structuredClassifyResult.js +20 -0
- package/build/library/sdk/model/structuredClassifyResult.js.map +1 -1
- package/build/library/sdk/model/structuredLabel.d.ts +39 -0
- package/build/library/sdk/model/structuredLabel.js +45 -0
- package/build/library/sdk/model/structuredLabel.js.map +1 -0
- package/build/library/sdk/model/themeLogos.d.ts +1 -0
- package/build/library/sdk/model/themeLogos.js +5 -0
- package/build/library/sdk/model/themeLogos.js.map +1 -1
- package/build/library/sdk/model/timeSeriesDataPoint.d.ts +26 -0
- package/build/library/sdk/model/timeSeriesDataPoint.js +37 -0
- package/build/library/sdk/model/timeSeriesDataPoint.js.map +1 -0
- package/build/library/sdk/model/transferLearningModel.d.ts +2 -0
- package/build/library/sdk/model/transferLearningModel.js +5 -0
- package/build/library/sdk/model/transferLearningModel.js.map +1 -1
- package/build/library/sdk/model/tunerTrial.d.ts +3 -0
- package/build/library/sdk/model/tunerTrial.js +10 -0
- package/build/library/sdk/model/tunerTrial.js.map +1 -1
- package/build/library/sdk/model/tunerTrialDspJobId.d.ts +26 -0
- package/build/library/sdk/model/tunerTrialDspJobId.js +37 -0
- package/build/library/sdk/model/tunerTrialDspJobId.js.map +1 -0
- package/build/library/sdk/model/updateOrganizationBucketRequest.d.ts +4 -8
- package/build/library/sdk/model/updateOrganizationBucketRequest.js +4 -9
- package/build/library/sdk/model/updateOrganizationBucketRequest.js.map +1 -1
- package/build/library/sdk/model/updateOrganizationDataCampaignDashboardRequest.d.ts +33 -0
- package/build/library/sdk/model/updateOrganizationDataCampaignDashboardRequest.js +48 -0
- package/build/library/sdk/model/updateOrganizationDataCampaignDashboardRequest.js.map +1 -0
- package/build/library/sdk/model/updateOrganizationDataCampaignRequest.d.ts +39 -0
- package/build/library/sdk/model/updateOrganizationDataCampaignRequest.js +77 -0
- package/build/library/sdk/model/updateOrganizationDataCampaignRequest.js.map +1 -0
- package/build/library/sdk/model/updateOrganizationDatasetRequest.d.ts +6 -0
- package/build/library/sdk/model/updateOrganizationDatasetRequest.js +17 -1
- package/build/library/sdk/model/updateOrganizationDatasetRequest.js.map +1 -1
- package/build/library/sdk/model/updateOrganizationDatasetRequestBucket.d.ts +36 -0
- package/build/library/sdk/model/updateOrganizationDatasetRequestBucket.js +42 -0
- package/build/library/sdk/model/updateOrganizationDatasetRequestBucket.js.map +1 -0
- package/build/library/sdk/model/updateOrganizationTransferLearningBlockRequest.d.ts +10 -0
- package/build/library/sdk/model/updateOrganizationTransferLearningBlockRequest.js +15 -0
- package/build/library/sdk/model/updateOrganizationTransferLearningBlockRequest.js.map +1 -1
- package/build/library/sdk/model/updateOrganizationTransformationBlockRequest.d.ts +8 -0
- package/build/library/sdk/model/updateOrganizationTransformationBlockRequest.js +10 -0
- package/build/library/sdk/model/updateOrganizationTransformationBlockRequest.js.map +1 -1
- package/build/library/sdk/model/updateProjectRequest.d.ts +16 -0
- package/build/library/sdk/model/updateProjectRequest.js +20 -0
- package/build/library/sdk/model/updateProjectRequest.js.map +1 -1
- package/build/library/sdk/model/updateThemeLogosRequest.d.ts +4 -0
- package/build/library/sdk/model/updateThemeLogosRequest.js +5 -0
- package/build/library/sdk/model/updateThemeLogosRequest.js.map +1 -1
- package/build/library/sdk/model/updateUserRequest.d.ts +6 -2
- package/build/library/sdk/model/updateUserRequest.js +8 -3
- package/build/library/sdk/model/updateUserRequest.js.map +1 -1
- package/build/library/sdk/model/updateWhitelabelDefaultDeploymentTargetRequest.d.ts +28 -0
- package/build/library/sdk/model/updateWhitelabelDefaultDeploymentTargetRequest.js +32 -0
- package/build/library/sdk/model/updateWhitelabelDefaultDeploymentTargetRequest.js.map +1 -0
- package/build/library/sdk/model/updateWhitelabelDeploymentOptionsOrderRequest.d.ts +28 -0
- package/build/library/sdk/model/updateWhitelabelDeploymentOptionsOrderRequest.js +32 -0
- package/build/library/sdk/model/updateWhitelabelDeploymentOptionsOrderRequest.js.map +1 -0
- package/build/library/sdk/model/updateWhitelabelLearningBlocksRequest.d.ts +28 -0
- package/build/library/sdk/model/updateWhitelabelLearningBlocksRequest.js +32 -0
- package/build/library/sdk/model/updateWhitelabelLearningBlocksRequest.js.map +1 -0
- package/build/library/sdk/model/updateWhitelabelRequest.d.ts +29 -0
- package/build/library/sdk/model/updateWhitelabelRequest.js +35 -0
- package/build/library/sdk/model/updateWhitelabelRequest.js.map +1 -0
- package/build/library/sdk/model/user.d.ts +6 -0
- package/build/library/sdk/model/user.js +15 -0
- package/build/library/sdk/model/user.js.map +1 -1
- package/build/library/sdk/model/userDismissNotificationRequest.d.ts +25 -0
- package/build/library/sdk/model/userDismissNotificationRequest.js +32 -0
- package/build/library/sdk/model/userDismissNotificationRequest.js.map +1 -0
- package/build/library/sdk/model/userOrganization.d.ts +16 -0
- package/build/library/sdk/model/userOrganization.js +20 -0
- package/build/library/sdk/model/userOrganization.js.map +1 -1
- package/build/library/sdk/model/verifyEmailResponse.d.ts +44 -0
- package/build/library/sdk/model/verifyEmailResponse.js +52 -0
- package/build/library/sdk/model/verifyEmailResponse.js.map +1 -0
- package/build/library/sdk/model/verifyEmailResponseAllOf.d.ts +36 -0
- package/build/library/sdk/model/verifyEmailResponseAllOf.js +42 -0
- package/build/library/sdk/model/verifyEmailResponseAllOf.js.map +1 -0
- package/build/library/sdk/model/verifyOrganizationBucketResponse.d.ts +8 -0
- package/build/library/sdk/model/verifyOrganizationBucketResponse.js +10 -0
- package/build/library/sdk/model/verifyOrganizationBucketResponse.js.map +1 -1
- package/build/library/sdk/model/verifyOrganizationBucketResponseAllOf.d.ts +8 -0
- package/build/library/sdk/model/verifyOrganizationBucketResponseAllOf.js +10 -0
- package/build/library/sdk/model/verifyOrganizationBucketResponseAllOf.js.map +1 -1
- package/build/library/sdk/model/verifyOrganizationExistingBucketRequest.d.ts +25 -0
- package/build/library/sdk/model/verifyOrganizationExistingBucketRequest.js +32 -0
- package/build/library/sdk/model/verifyOrganizationExistingBucketRequest.js.map +1 -0
- package/build/library/sdk/model/whitelabel.d.ts +32 -1
- package/build/library/sdk/model/whitelabel.js +45 -0
- package/build/library/sdk/model/whitelabel.js.map +1 -1
- package/build/library/sdk/model/whitelabelAdminCreateProjectRequest.d.ts +36 -0
- package/build/library/sdk/model/whitelabelAdminCreateProjectRequest.js +42 -0
- package/build/library/sdk/model/whitelabelAdminCreateProjectRequest.js.map +1 -0
- package/build/library/sdk/model/whitelabelAllLearningBlocks.d.ts +32 -0
- package/build/library/sdk/model/whitelabelAllLearningBlocks.js +37 -0
- package/build/library/sdk/model/whitelabelAllLearningBlocks.js.map +1 -0
- package/build/library/sdk/model/whitelabelCustomDeploymentBlocks.d.ts +32 -0
- package/build/library/sdk/model/whitelabelCustomDeploymentBlocks.js +37 -0
- package/build/library/sdk/model/whitelabelCustomDeploymentBlocks.js.map +1 -0
- package/package.json +1 -1
|
@@ -776,6 +776,79 @@ class RawDataApi {
|
|
|
776
776
|
});
|
|
777
777
|
});
|
|
778
778
|
}
|
|
779
|
+
/**
|
|
780
|
+
* Clears all object detection labels for this dataset, and places all images back in the labeling queue.
|
|
781
|
+
* @summary Clear all object detection labels
|
|
782
|
+
* @param projectId Project ID
|
|
783
|
+
*/
|
|
784
|
+
async clearAllObjectDetectionLabels(projectId, options = { headers: {} }) {
|
|
785
|
+
const localVarPath = this.basePath + '/api/{projectId}/raw-data/clear-all-object-detection-labels'
|
|
786
|
+
.replace('{' + 'projectId' + '}', encodeURIComponent(String(projectId)));
|
|
787
|
+
let localVarQueryParameters = {};
|
|
788
|
+
let localVarHeaderParams = Object.assign({
|
|
789
|
+
'User-Agent': 'edgeimpulse-api nodejs'
|
|
790
|
+
}, this.defaultHeaders);
|
|
791
|
+
const produces = ['application/json'];
|
|
792
|
+
// give precedence to 'application/json'
|
|
793
|
+
if (produces.indexOf('application/json') >= 0) {
|
|
794
|
+
localVarHeaderParams.Accept = 'application/json';
|
|
795
|
+
}
|
|
796
|
+
else {
|
|
797
|
+
localVarHeaderParams.Accept = produces.join(',');
|
|
798
|
+
}
|
|
799
|
+
let localVarFormParams = {};
|
|
800
|
+
// verify required parameter 'projectId' is not null or undefined
|
|
801
|
+
if (projectId === null || projectId === undefined) {
|
|
802
|
+
throw new Error('Required parameter projectId was null or undefined when calling clearAllObjectDetectionLabels.');
|
|
803
|
+
}
|
|
804
|
+
Object.assign(localVarHeaderParams, options.headers);
|
|
805
|
+
Object.assign(localVarHeaderParams, this.opts.extraHeaders);
|
|
806
|
+
let localVarUseFormData = false;
|
|
807
|
+
let localVarRequestOptions = {
|
|
808
|
+
method: 'POST',
|
|
809
|
+
qs: localVarQueryParameters,
|
|
810
|
+
headers: localVarHeaderParams,
|
|
811
|
+
uri: localVarPath,
|
|
812
|
+
useQuerystring: this._useQuerystring,
|
|
813
|
+
agentOptions: { keepAlive: false },
|
|
814
|
+
json: true,
|
|
815
|
+
};
|
|
816
|
+
let authenticationPromise = Promise.resolve();
|
|
817
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.ApiKeyAuthentication.applyToRequest(localVarRequestOptions));
|
|
818
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.JWTAuthentication.applyToRequest(localVarRequestOptions));
|
|
819
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.JWTHttpHeaderAuthentication.applyToRequest(localVarRequestOptions));
|
|
820
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
|
|
821
|
+
return authenticationPromise.then(() => {
|
|
822
|
+
if (Object.keys(localVarFormParams).length) {
|
|
823
|
+
if (localVarUseFormData) {
|
|
824
|
+
localVarRequestOptions.formData = localVarFormParams;
|
|
825
|
+
}
|
|
826
|
+
else {
|
|
827
|
+
localVarRequestOptions.form = localVarFormParams;
|
|
828
|
+
}
|
|
829
|
+
}
|
|
830
|
+
return new Promise((resolve, reject) => {
|
|
831
|
+
localVarRequest(localVarRequestOptions, (error, response, body) => {
|
|
832
|
+
if (error) {
|
|
833
|
+
reject(error);
|
|
834
|
+
}
|
|
835
|
+
else {
|
|
836
|
+
body = models_1.ObjectSerializer.deserialize(body, "GenericApiResponse");
|
|
837
|
+
const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
|
|
838
|
+
if (typeof body.success === 'boolean' && !body.success) {
|
|
839
|
+
reject(new Error(body.error || errString));
|
|
840
|
+
}
|
|
841
|
+
else if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
842
|
+
resolve(body);
|
|
843
|
+
}
|
|
844
|
+
else {
|
|
845
|
+
reject(errString);
|
|
846
|
+
}
|
|
847
|
+
}
|
|
848
|
+
});
|
|
849
|
+
});
|
|
850
|
+
});
|
|
851
|
+
}
|
|
779
852
|
/**
|
|
780
853
|
* Remove the current data explorer state
|
|
781
854
|
* @summary Clear data explorer
|
|
@@ -1607,12 +1680,14 @@ class RawDataApi {
|
|
|
1607
1680
|
});
|
|
1608
1681
|
}
|
|
1609
1682
|
/**
|
|
1610
|
-
*
|
|
1611
|
-
* @summary
|
|
1683
|
+
* Lists all data with an \'imported from\' metadata key. Used to check in a data source which items are already in a project.
|
|
1684
|
+
* @summary List data with \"imported from\" metadata key
|
|
1612
1685
|
* @param projectId Project ID
|
|
1686
|
+
* @param limit Maximum number of results
|
|
1687
|
+
* @param offset Offset in results, can be used in conjunction with LimitResultsParameter to implement paging.
|
|
1613
1688
|
*/
|
|
1614
|
-
async
|
|
1615
|
-
const localVarPath = this.basePath + '/api/{projectId}/raw-data/
|
|
1689
|
+
async getAllImportedFrom(projectId, queryParams, options = { headers: {} }) {
|
|
1690
|
+
const localVarPath = this.basePath + '/api/{projectId}/raw-data/imported-from'
|
|
1616
1691
|
.replace('{' + 'projectId' + '}', encodeURIComponent(String(projectId)));
|
|
1617
1692
|
let localVarQueryParameters = {};
|
|
1618
1693
|
let localVarHeaderParams = Object.assign({
|
|
@@ -1629,7 +1704,13 @@ class RawDataApi {
|
|
|
1629
1704
|
let localVarFormParams = {};
|
|
1630
1705
|
// verify required parameter 'projectId' is not null or undefined
|
|
1631
1706
|
if (projectId === null || projectId === undefined) {
|
|
1632
|
-
throw new Error('Required parameter projectId was null or undefined when calling
|
|
1707
|
+
throw new Error('Required parameter projectId was null or undefined when calling getAllImportedFrom.');
|
|
1708
|
+
}
|
|
1709
|
+
if (queryParams.limit !== undefined) {
|
|
1710
|
+
localVarQueryParameters['limit'] = models_1.ObjectSerializer.serialize(queryParams.limit, "number");
|
|
1711
|
+
}
|
|
1712
|
+
if (queryParams.offset !== undefined) {
|
|
1713
|
+
localVarQueryParameters['offset'] = models_1.ObjectSerializer.serialize(queryParams.offset, "number");
|
|
1633
1714
|
}
|
|
1634
1715
|
Object.assign(localVarHeaderParams, options.headers);
|
|
1635
1716
|
Object.assign(localVarHeaderParams, this.opts.extraHeaders);
|
|
@@ -1663,7 +1744,7 @@ class RawDataApi {
|
|
|
1663
1744
|
reject(error);
|
|
1664
1745
|
}
|
|
1665
1746
|
else {
|
|
1666
|
-
body = models_1.ObjectSerializer.deserialize(body, "
|
|
1747
|
+
body = models_1.ObjectSerializer.deserialize(body, "GetAllImportedFromResponse");
|
|
1667
1748
|
const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
|
|
1668
1749
|
if (typeof body.success === 'boolean' && !body.success) {
|
|
1669
1750
|
reject(new Error(body.error || errString));
|
|
@@ -1680,12 +1761,12 @@ class RawDataApi {
|
|
|
1680
1761
|
});
|
|
1681
1762
|
}
|
|
1682
1763
|
/**
|
|
1683
|
-
*
|
|
1684
|
-
* @summary Get
|
|
1764
|
+
* Retrieve the results of the auto-labeler (after running `StartJobResponse`)
|
|
1765
|
+
* @summary Get auto-labeler results
|
|
1685
1766
|
* @param projectId Project ID
|
|
1686
1767
|
*/
|
|
1687
|
-
async
|
|
1688
|
-
const localVarPath = this.basePath + '/api/{projectId}/raw-data/
|
|
1768
|
+
async getAutoLabeler(projectId, options = { headers: {} }) {
|
|
1769
|
+
const localVarPath = this.basePath + '/api/{projectId}/raw-data/auto-labeler'
|
|
1689
1770
|
.replace('{' + 'projectId' + '}', encodeURIComponent(String(projectId)));
|
|
1690
1771
|
let localVarQueryParameters = {};
|
|
1691
1772
|
let localVarHeaderParams = Object.assign({
|
|
@@ -1702,7 +1783,7 @@ class RawDataApi {
|
|
|
1702
1783
|
let localVarFormParams = {};
|
|
1703
1784
|
// verify required parameter 'projectId' is not null or undefined
|
|
1704
1785
|
if (projectId === null || projectId === undefined) {
|
|
1705
|
-
throw new Error('Required parameter projectId was null or undefined when calling
|
|
1786
|
+
throw new Error('Required parameter projectId was null or undefined when calling getAutoLabeler.');
|
|
1706
1787
|
}
|
|
1707
1788
|
Object.assign(localVarHeaderParams, options.headers);
|
|
1708
1789
|
Object.assign(localVarHeaderParams, this.opts.extraHeaders);
|
|
@@ -1736,7 +1817,7 @@ class RawDataApi {
|
|
|
1736
1817
|
reject(error);
|
|
1737
1818
|
}
|
|
1738
1819
|
else {
|
|
1739
|
-
body = models_1.ObjectSerializer.deserialize(body, "
|
|
1820
|
+
body = models_1.ObjectSerializer.deserialize(body, "GetAutoLabelerResponse");
|
|
1740
1821
|
const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
|
|
1741
1822
|
if (typeof body.success === 'boolean' && !body.success) {
|
|
1742
1823
|
reject(new Error(body.error || errString));
|
|
@@ -1753,18 +1834,19 @@ class RawDataApi {
|
|
|
1753
1834
|
});
|
|
1754
1835
|
}
|
|
1755
1836
|
/**
|
|
1756
|
-
*
|
|
1757
|
-
* @summary Get
|
|
1837
|
+
* Grab a segment image from the auto-labeler
|
|
1838
|
+
* @summary Get auto-labeler image
|
|
1758
1839
|
* @param projectId Project ID
|
|
1840
|
+
* @param image Which image to receive from the auto-labeler
|
|
1759
1841
|
*/
|
|
1760
|
-
async
|
|
1761
|
-
const localVarPath = this.basePath + '/api/{projectId}/raw-data/
|
|
1842
|
+
async getAutoLabelerImage(projectId, queryParams, options = { headers: {} }) {
|
|
1843
|
+
const localVarPath = this.basePath + '/api/{projectId}/raw-data/auto-labeler/image'
|
|
1762
1844
|
.replace('{' + 'projectId' + '}', encodeURIComponent(String(projectId)));
|
|
1763
1845
|
let localVarQueryParameters = {};
|
|
1764
1846
|
let localVarHeaderParams = Object.assign({
|
|
1765
1847
|
'User-Agent': 'edgeimpulse-api nodejs'
|
|
1766
1848
|
}, this.defaultHeaders);
|
|
1767
|
-
const produces = ['application/
|
|
1849
|
+
const produces = ['application/octet-stream'];
|
|
1768
1850
|
// give precedence to 'application/json'
|
|
1769
1851
|
if (produces.indexOf('application/json') >= 0) {
|
|
1770
1852
|
localVarHeaderParams.Accept = 'application/json';
|
|
@@ -1775,7 +1857,14 @@ class RawDataApi {
|
|
|
1775
1857
|
let localVarFormParams = {};
|
|
1776
1858
|
// verify required parameter 'projectId' is not null or undefined
|
|
1777
1859
|
if (projectId === null || projectId === undefined) {
|
|
1778
|
-
throw new Error('Required parameter projectId was null or undefined when calling
|
|
1860
|
+
throw new Error('Required parameter projectId was null or undefined when calling getAutoLabelerImage.');
|
|
1861
|
+
}
|
|
1862
|
+
// verify required parameter 'image' is not null or undefined
|
|
1863
|
+
if (queryParams.image === null || queryParams.image === undefined) {
|
|
1864
|
+
throw new Error('Required parameter queryParams.image was null or undefined when calling getAutoLabelerImage.');
|
|
1865
|
+
}
|
|
1866
|
+
if (queryParams.image !== undefined) {
|
|
1867
|
+
localVarQueryParameters['image'] = models_1.ObjectSerializer.serialize(queryParams.image, "string");
|
|
1779
1868
|
}
|
|
1780
1869
|
Object.assign(localVarHeaderParams, options.headers);
|
|
1781
1870
|
Object.assign(localVarHeaderParams, this.opts.extraHeaders);
|
|
@@ -1787,7 +1876,7 @@ class RawDataApi {
|
|
|
1787
1876
|
uri: localVarPath,
|
|
1788
1877
|
useQuerystring: this._useQuerystring,
|
|
1789
1878
|
agentOptions: { keepAlive: false },
|
|
1790
|
-
|
|
1879
|
+
encoding: null,
|
|
1791
1880
|
};
|
|
1792
1881
|
let authenticationPromise = Promise.resolve();
|
|
1793
1882
|
authenticationPromise = authenticationPromise.then(() => this.authentications.ApiKeyAuthentication.applyToRequest(localVarRequestOptions));
|
|
@@ -1809,7 +1898,7 @@ class RawDataApi {
|
|
|
1809
1898
|
reject(error);
|
|
1810
1899
|
}
|
|
1811
1900
|
else {
|
|
1812
|
-
body = models_1.ObjectSerializer.deserialize(body, "
|
|
1901
|
+
body = models_1.ObjectSerializer.deserialize(body, "Buffer");
|
|
1813
1902
|
const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
|
|
1814
1903
|
if (typeof body.success === 'boolean' && !body.success) {
|
|
1815
1904
|
reject(new Error(body.error || errString));
|
|
@@ -1826,12 +1915,12 @@ class RawDataApi {
|
|
|
1826
1915
|
});
|
|
1827
1916
|
}
|
|
1828
1917
|
/**
|
|
1829
|
-
*
|
|
1830
|
-
* @summary
|
|
1918
|
+
* t-SNE2 output of the raw dataset
|
|
1919
|
+
* @summary Get data explorer features
|
|
1831
1920
|
* @param projectId Project ID
|
|
1832
1921
|
*/
|
|
1833
|
-
async
|
|
1834
|
-
const localVarPath = this.basePath + '/api/{projectId}/raw-data/
|
|
1922
|
+
async getDataExplorerFeatures(projectId, options = { headers: {} }) {
|
|
1923
|
+
const localVarPath = this.basePath + '/api/{projectId}/raw-data/data-explorer/features'
|
|
1835
1924
|
.replace('{' + 'projectId' + '}', encodeURIComponent(String(projectId)));
|
|
1836
1925
|
let localVarQueryParameters = {};
|
|
1837
1926
|
let localVarHeaderParams = Object.assign({
|
|
@@ -1848,7 +1937,7 @@ class RawDataApi {
|
|
|
1848
1937
|
let localVarFormParams = {};
|
|
1849
1938
|
// verify required parameter 'projectId' is not null or undefined
|
|
1850
1939
|
if (projectId === null || projectId === undefined) {
|
|
1851
|
-
throw new Error('Required parameter projectId was null or undefined when calling
|
|
1940
|
+
throw new Error('Required parameter projectId was null or undefined when calling getDataExplorerFeatures.');
|
|
1852
1941
|
}
|
|
1853
1942
|
Object.assign(localVarHeaderParams, options.headers);
|
|
1854
1943
|
Object.assign(localVarHeaderParams, this.opts.extraHeaders);
|
|
@@ -1882,7 +1971,7 @@ class RawDataApi {
|
|
|
1882
1971
|
reject(error);
|
|
1883
1972
|
}
|
|
1884
1973
|
else {
|
|
1885
|
-
body = models_1.ObjectSerializer.deserialize(body, "
|
|
1974
|
+
body = models_1.ObjectSerializer.deserialize(body, "GetDataExplorerFeaturesResponse");
|
|
1886
1975
|
const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
|
|
1887
1976
|
if (typeof body.success === 'boolean' && !body.success) {
|
|
1888
1977
|
reject(new Error(body.error || errString));
|
|
@@ -1899,12 +1988,12 @@ class RawDataApi {
|
|
|
1899
1988
|
});
|
|
1900
1989
|
}
|
|
1901
1990
|
/**
|
|
1902
|
-
*
|
|
1903
|
-
* @summary
|
|
1991
|
+
* Predictions for every data explorer point (only available when using current impulse to populate data explorer)
|
|
1992
|
+
* @summary Get data explorer predictions
|
|
1904
1993
|
* @param projectId Project ID
|
|
1905
1994
|
*/
|
|
1906
|
-
async
|
|
1907
|
-
const localVarPath = this.basePath + '/api/{projectId}/raw-data/
|
|
1995
|
+
async getDataExplorerPredictions(projectId, options = { headers: {} }) {
|
|
1996
|
+
const localVarPath = this.basePath + '/api/{projectId}/raw-data/data-explorer/predictions'
|
|
1908
1997
|
.replace('{' + 'projectId' + '}', encodeURIComponent(String(projectId)));
|
|
1909
1998
|
let localVarQueryParameters = {};
|
|
1910
1999
|
let localVarHeaderParams = Object.assign({
|
|
@@ -1921,7 +2010,7 @@ class RawDataApi {
|
|
|
1921
2010
|
let localVarFormParams = {};
|
|
1922
2011
|
// verify required parameter 'projectId' is not null or undefined
|
|
1923
2012
|
if (projectId === null || projectId === undefined) {
|
|
1924
|
-
throw new Error('Required parameter projectId was null or undefined when calling
|
|
2013
|
+
throw new Error('Required parameter projectId was null or undefined when calling getDataExplorerPredictions.');
|
|
1925
2014
|
}
|
|
1926
2015
|
Object.assign(localVarHeaderParams, options.headers);
|
|
1927
2016
|
Object.assign(localVarHeaderParams, this.opts.extraHeaders);
|
|
@@ -1955,7 +2044,7 @@ class RawDataApi {
|
|
|
1955
2044
|
reject(error);
|
|
1956
2045
|
}
|
|
1957
2046
|
else {
|
|
1958
|
-
body = models_1.ObjectSerializer.deserialize(body, "
|
|
2047
|
+
body = models_1.ObjectSerializer.deserialize(body, "DataExplorerPredictionsResponse");
|
|
1959
2048
|
const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
|
|
1960
2049
|
if (typeof body.success === 'boolean' && !body.success) {
|
|
1961
2050
|
reject(new Error(body.error || errString));
|
|
@@ -1972,16 +2061,13 @@ class RawDataApi {
|
|
|
1972
2061
|
});
|
|
1973
2062
|
}
|
|
1974
2063
|
/**
|
|
1975
|
-
* Get
|
|
1976
|
-
* @summary Get
|
|
2064
|
+
* Get data explorer configuration, like the type of data, and the input / dsp block to use.
|
|
2065
|
+
* @summary Get data explorer settings
|
|
1977
2066
|
* @param projectId Project ID
|
|
1978
|
-
* @param sampleId Sample ID
|
|
1979
|
-
* @param limitPayloadValues Limit the number of payload values in the response
|
|
1980
2067
|
*/
|
|
1981
|
-
async
|
|
1982
|
-
const localVarPath = this.basePath + '/api/{projectId}/raw-data/
|
|
1983
|
-
.replace('{' + 'projectId' + '}', encodeURIComponent(String(projectId)))
|
|
1984
|
-
.replace('{' + 'sampleId' + '}', encodeURIComponent(String(sampleId)));
|
|
2068
|
+
async getDataExplorerSettings(projectId, options = { headers: {} }) {
|
|
2069
|
+
const localVarPath = this.basePath + '/api/{projectId}/raw-data/data-explorer/settings'
|
|
2070
|
+
.replace('{' + 'projectId' + '}', encodeURIComponent(String(projectId)));
|
|
1985
2071
|
let localVarQueryParameters = {};
|
|
1986
2072
|
let localVarHeaderParams = Object.assign({
|
|
1987
2073
|
'User-Agent': 'edgeimpulse-api nodejs'
|
|
@@ -1997,14 +2083,7 @@ class RawDataApi {
|
|
|
1997
2083
|
let localVarFormParams = {};
|
|
1998
2084
|
// verify required parameter 'projectId' is not null or undefined
|
|
1999
2085
|
if (projectId === null || projectId === undefined) {
|
|
2000
|
-
throw new Error('Required parameter projectId was null or undefined when calling
|
|
2001
|
-
}
|
|
2002
|
-
// verify required parameter 'sampleId' is not null or undefined
|
|
2003
|
-
if (sampleId === null || sampleId === undefined) {
|
|
2004
|
-
throw new Error('Required parameter sampleId was null or undefined when calling getSample.');
|
|
2005
|
-
}
|
|
2006
|
-
if (queryParams.limitPayloadValues !== undefined) {
|
|
2007
|
-
localVarQueryParameters['limitPayloadValues'] = models_1.ObjectSerializer.serialize(queryParams.limitPayloadValues, "number");
|
|
2086
|
+
throw new Error('Required parameter projectId was null or undefined when calling getDataExplorerSettings.');
|
|
2008
2087
|
}
|
|
2009
2088
|
Object.assign(localVarHeaderParams, options.headers);
|
|
2010
2089
|
Object.assign(localVarHeaderParams, this.opts.extraHeaders);
|
|
@@ -2038,7 +2117,7 @@ class RawDataApi {
|
|
|
2038
2117
|
reject(error);
|
|
2039
2118
|
}
|
|
2040
2119
|
else {
|
|
2041
|
-
body = models_1.ObjectSerializer.deserialize(body, "
|
|
2120
|
+
body = models_1.ObjectSerializer.deserialize(body, "GetDataExplorerSettingsResponse");
|
|
2042
2121
|
const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
|
|
2043
2122
|
if (typeof body.success === 'boolean' && !body.success) {
|
|
2044
2123
|
reject(new Error(body.error || errString));
|
|
@@ -2055,23 +2134,18 @@ class RawDataApi {
|
|
|
2055
2134
|
});
|
|
2056
2135
|
}
|
|
2057
2136
|
/**
|
|
2058
|
-
*
|
|
2059
|
-
* @summary Get
|
|
2137
|
+
* Obtain metrics that describe the similarity and diversity of a dataset. To calculate these metrics, use the `calculateDataQualityMetrics` endpoint.
|
|
2138
|
+
* @summary Get diversity metrics data
|
|
2060
2139
|
* @param projectId Project ID
|
|
2061
|
-
* @param sampleId Sample ID
|
|
2062
|
-
* @param axisIx Axis index
|
|
2063
|
-
* @param sliceStart Begin index of the slice
|
|
2064
|
-
* @param sliceEnd End index of the slice
|
|
2065
2140
|
*/
|
|
2066
|
-
async
|
|
2067
|
-
const localVarPath = this.basePath + '/api/{projectId}/raw-data/
|
|
2068
|
-
.replace('{' + 'projectId' + '}', encodeURIComponent(String(projectId)))
|
|
2069
|
-
.replace('{' + 'sampleId' + '}', encodeURIComponent(String(sampleId)));
|
|
2141
|
+
async getDiversityData(projectId, options = { headers: {} }) {
|
|
2142
|
+
const localVarPath = this.basePath + '/api/{projectId}/raw-data/data-quality/diversity'
|
|
2143
|
+
.replace('{' + 'projectId' + '}', encodeURIComponent(String(projectId)));
|
|
2070
2144
|
let localVarQueryParameters = {};
|
|
2071
2145
|
let localVarHeaderParams = Object.assign({
|
|
2072
2146
|
'User-Agent': 'edgeimpulse-api nodejs'
|
|
2073
2147
|
}, this.defaultHeaders);
|
|
2074
|
-
const produces = ['
|
|
2148
|
+
const produces = ['application/json'];
|
|
2075
2149
|
// give precedence to 'application/json'
|
|
2076
2150
|
if (produces.indexOf('application/json') >= 0) {
|
|
2077
2151
|
localVarHeaderParams.Accept = 'application/json';
|
|
@@ -2082,24 +2156,7 @@ class RawDataApi {
|
|
|
2082
2156
|
let localVarFormParams = {};
|
|
2083
2157
|
// verify required parameter 'projectId' is not null or undefined
|
|
2084
2158
|
if (projectId === null || projectId === undefined) {
|
|
2085
|
-
throw new Error('Required parameter projectId was null or undefined when calling
|
|
2086
|
-
}
|
|
2087
|
-
// verify required parameter 'sampleId' is not null or undefined
|
|
2088
|
-
if (sampleId === null || sampleId === undefined) {
|
|
2089
|
-
throw new Error('Required parameter sampleId was null or undefined when calling getSampleAsAudio.');
|
|
2090
|
-
}
|
|
2091
|
-
// verify required parameter 'axisIx' is not null or undefined
|
|
2092
|
-
if (queryParams.axisIx === null || queryParams.axisIx === undefined) {
|
|
2093
|
-
throw new Error('Required parameter queryParams.axisIx was null or undefined when calling getSampleAsAudio.');
|
|
2094
|
-
}
|
|
2095
|
-
if (queryParams.axisIx !== undefined) {
|
|
2096
|
-
localVarQueryParameters['axisIx'] = models_1.ObjectSerializer.serialize(queryParams.axisIx, "number");
|
|
2097
|
-
}
|
|
2098
|
-
if (queryParams.sliceStart !== undefined) {
|
|
2099
|
-
localVarQueryParameters['sliceStart'] = models_1.ObjectSerializer.serialize(queryParams.sliceStart, "number");
|
|
2100
|
-
}
|
|
2101
|
-
if (queryParams.sliceEnd !== undefined) {
|
|
2102
|
-
localVarQueryParameters['sliceEnd'] = models_1.ObjectSerializer.serialize(queryParams.sliceEnd, "number");
|
|
2159
|
+
throw new Error('Required parameter projectId was null or undefined when calling getDiversityData.');
|
|
2103
2160
|
}
|
|
2104
2161
|
Object.assign(localVarHeaderParams, options.headers);
|
|
2105
2162
|
Object.assign(localVarHeaderParams, this.opts.extraHeaders);
|
|
@@ -2111,7 +2168,7 @@ class RawDataApi {
|
|
|
2111
2168
|
uri: localVarPath,
|
|
2112
2169
|
useQuerystring: this._useQuerystring,
|
|
2113
2170
|
agentOptions: { keepAlive: false },
|
|
2114
|
-
|
|
2171
|
+
json: true,
|
|
2115
2172
|
};
|
|
2116
2173
|
let authenticationPromise = Promise.resolve();
|
|
2117
2174
|
authenticationPromise = authenticationPromise.then(() => this.authentications.ApiKeyAuthentication.applyToRequest(localVarRequestOptions));
|
|
@@ -2133,7 +2190,7 @@ class RawDataApi {
|
|
|
2133
2190
|
reject(error);
|
|
2134
2191
|
}
|
|
2135
2192
|
else {
|
|
2136
|
-
body = models_1.ObjectSerializer.deserialize(body, "
|
|
2193
|
+
body = models_1.ObjectSerializer.deserialize(body, "GetDiversityDataResponse");
|
|
2137
2194
|
const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
|
|
2138
2195
|
if (typeof body.success === 'boolean' && !body.success) {
|
|
2139
2196
|
reject(new Error(body.error || errString));
|
|
@@ -2150,21 +2207,18 @@ class RawDataApi {
|
|
|
2150
2207
|
});
|
|
2151
2208
|
}
|
|
2152
2209
|
/**
|
|
2153
|
-
*
|
|
2154
|
-
* @summary Get
|
|
2210
|
+
* Obtain metrics that describe potential label noise issues in the dataset. To calculate these metrics, use the `calculateDataQualityMetrics` endpoint.
|
|
2211
|
+
* @summary Get label noise data
|
|
2155
2212
|
* @param projectId Project ID
|
|
2156
|
-
* @param sampleId Sample ID
|
|
2157
|
-
* @param afterInputBlock Whether to process the image through the input block first
|
|
2158
2213
|
*/
|
|
2159
|
-
async
|
|
2160
|
-
const localVarPath = this.basePath + '/api/{projectId}/raw-data/
|
|
2161
|
-
.replace('{' + 'projectId' + '}', encodeURIComponent(String(projectId)))
|
|
2162
|
-
.replace('{' + 'sampleId' + '}', encodeURIComponent(String(sampleId)));
|
|
2214
|
+
async getLabelNoiseData(projectId, options = { headers: {} }) {
|
|
2215
|
+
const localVarPath = this.basePath + '/api/{projectId}/raw-data/data-quality/label-noise'
|
|
2216
|
+
.replace('{' + 'projectId' + '}', encodeURIComponent(String(projectId)));
|
|
2163
2217
|
let localVarQueryParameters = {};
|
|
2164
2218
|
let localVarHeaderParams = Object.assign({
|
|
2165
2219
|
'User-Agent': 'edgeimpulse-api nodejs'
|
|
2166
2220
|
}, this.defaultHeaders);
|
|
2167
|
-
const produces = ['
|
|
2221
|
+
const produces = ['application/json'];
|
|
2168
2222
|
// give precedence to 'application/json'
|
|
2169
2223
|
if (produces.indexOf('application/json') >= 0) {
|
|
2170
2224
|
localVarHeaderParams.Accept = 'application/json';
|
|
@@ -2175,14 +2229,7 @@ class RawDataApi {
|
|
|
2175
2229
|
let localVarFormParams = {};
|
|
2176
2230
|
// verify required parameter 'projectId' is not null or undefined
|
|
2177
2231
|
if (projectId === null || projectId === undefined) {
|
|
2178
|
-
throw new Error('Required parameter projectId was null or undefined when calling
|
|
2179
|
-
}
|
|
2180
|
-
// verify required parameter 'sampleId' is not null or undefined
|
|
2181
|
-
if (sampleId === null || sampleId === undefined) {
|
|
2182
|
-
throw new Error('Required parameter sampleId was null or undefined when calling getSampleAsImage.');
|
|
2183
|
-
}
|
|
2184
|
-
if (queryParams.afterInputBlock !== undefined) {
|
|
2185
|
-
localVarQueryParameters['afterInputBlock'] = models_1.ObjectSerializer.serialize(queryParams.afterInputBlock, "boolean");
|
|
2232
|
+
throw new Error('Required parameter projectId was null or undefined when calling getLabelNoiseData.');
|
|
2186
2233
|
}
|
|
2187
2234
|
Object.assign(localVarHeaderParams, options.headers);
|
|
2188
2235
|
Object.assign(localVarHeaderParams, this.opts.extraHeaders);
|
|
@@ -2194,7 +2241,7 @@ class RawDataApi {
|
|
|
2194
2241
|
uri: localVarPath,
|
|
2195
2242
|
useQuerystring: this._useQuerystring,
|
|
2196
2243
|
agentOptions: { keepAlive: false },
|
|
2197
|
-
|
|
2244
|
+
json: true,
|
|
2198
2245
|
};
|
|
2199
2246
|
let authenticationPromise = Promise.resolve();
|
|
2200
2247
|
authenticationPromise = authenticationPromise.then(() => this.authentications.ApiKeyAuthentication.applyToRequest(localVarRequestOptions));
|
|
@@ -2216,7 +2263,7 @@ class RawDataApi {
|
|
|
2216
2263
|
reject(error);
|
|
2217
2264
|
}
|
|
2218
2265
|
else {
|
|
2219
|
-
body = models_1.ObjectSerializer.deserialize(body, "
|
|
2266
|
+
body = models_1.ObjectSerializer.deserialize(body, "GetLabelNoiseDataResponse");
|
|
2220
2267
|
const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
|
|
2221
2268
|
if (typeof body.success === 'boolean' && !body.success) {
|
|
2222
2269
|
reject(new Error(body.error || errString));
|
|
@@ -2233,20 +2280,18 @@ class RawDataApi {
|
|
|
2233
2280
|
});
|
|
2234
2281
|
}
|
|
2235
2282
|
/**
|
|
2236
|
-
*
|
|
2237
|
-
* @summary
|
|
2283
|
+
* Get all unlabeled items from the object detection queue.
|
|
2284
|
+
* @summary Object detection label queue
|
|
2238
2285
|
* @param projectId Project ID
|
|
2239
|
-
* @param sampleId Sample ID
|
|
2240
2286
|
*/
|
|
2241
|
-
async
|
|
2242
|
-
const localVarPath = this.basePath + '/api/{projectId}/raw-data/
|
|
2243
|
-
.replace('{' + 'projectId' + '}', encodeURIComponent(String(projectId)))
|
|
2244
|
-
.replace('{' + 'sampleId' + '}', encodeURIComponent(String(sampleId)));
|
|
2287
|
+
async getObjectDetectionLabelQueue(projectId, options = { headers: {} }) {
|
|
2288
|
+
const localVarPath = this.basePath + '/api/{projectId}/raw-data/label-object-detection-queue'
|
|
2289
|
+
.replace('{' + 'projectId' + '}', encodeURIComponent(String(projectId)));
|
|
2245
2290
|
let localVarQueryParameters = {};
|
|
2246
2291
|
let localVarHeaderParams = Object.assign({
|
|
2247
2292
|
'User-Agent': 'edgeimpulse-api nodejs'
|
|
2248
2293
|
}, this.defaultHeaders);
|
|
2249
|
-
const produces = ['application/
|
|
2294
|
+
const produces = ['application/json'];
|
|
2250
2295
|
// give precedence to 'application/json'
|
|
2251
2296
|
if (produces.indexOf('application/json') >= 0) {
|
|
2252
2297
|
localVarHeaderParams.Accept = 'application/json';
|
|
@@ -2257,11 +2302,7 @@ class RawDataApi {
|
|
|
2257
2302
|
let localVarFormParams = {};
|
|
2258
2303
|
// verify required parameter 'projectId' is not null or undefined
|
|
2259
2304
|
if (projectId === null || projectId === undefined) {
|
|
2260
|
-
throw new Error('Required parameter projectId was null or undefined when calling
|
|
2261
|
-
}
|
|
2262
|
-
// verify required parameter 'sampleId' is not null or undefined
|
|
2263
|
-
if (sampleId === null || sampleId === undefined) {
|
|
2264
|
-
throw new Error('Required parameter sampleId was null or undefined when calling getSampleAsRaw.');
|
|
2305
|
+
throw new Error('Required parameter projectId was null or undefined when calling getObjectDetectionLabelQueue.');
|
|
2265
2306
|
}
|
|
2266
2307
|
Object.assign(localVarHeaderParams, options.headers);
|
|
2267
2308
|
Object.assign(localVarHeaderParams, this.opts.extraHeaders);
|
|
@@ -2273,7 +2314,7 @@ class RawDataApi {
|
|
|
2273
2314
|
uri: localVarPath,
|
|
2274
2315
|
useQuerystring: this._useQuerystring,
|
|
2275
2316
|
agentOptions: { keepAlive: false },
|
|
2276
|
-
|
|
2317
|
+
json: true,
|
|
2277
2318
|
};
|
|
2278
2319
|
let authenticationPromise = Promise.resolve();
|
|
2279
2320
|
authenticationPromise = authenticationPromise.then(() => this.authentications.ApiKeyAuthentication.applyToRequest(localVarRequestOptions));
|
|
@@ -2295,7 +2336,7 @@ class RawDataApi {
|
|
|
2295
2336
|
reject(error);
|
|
2296
2337
|
}
|
|
2297
2338
|
else {
|
|
2298
|
-
body = models_1.ObjectSerializer.deserialize(body, "
|
|
2339
|
+
body = models_1.ObjectSerializer.deserialize(body, "ObjectDetectionLabelQueueResponse");
|
|
2299
2340
|
const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
|
|
2300
2341
|
if (typeof body.success === 'boolean' && !body.success) {
|
|
2301
2342
|
reject(new Error(body.error || errString));
|
|
@@ -2312,21 +2353,18 @@ class RawDataApi {
|
|
|
2312
2353
|
});
|
|
2313
2354
|
}
|
|
2314
2355
|
/**
|
|
2315
|
-
* Get
|
|
2316
|
-
* @summary
|
|
2356
|
+
* Get count for unlabeled items from the object detection queue.
|
|
2357
|
+
* @summary Object detection label queue count
|
|
2317
2358
|
* @param projectId Project ID
|
|
2318
|
-
* @param sampleId Sample ID
|
|
2319
|
-
* @param afterInputBlock Whether to process the image through the input block first
|
|
2320
2359
|
*/
|
|
2321
|
-
async
|
|
2322
|
-
const localVarPath = this.basePath + '/api/{projectId}/raw-data/
|
|
2323
|
-
.replace('{' + 'projectId' + '}', encodeURIComponent(String(projectId)))
|
|
2324
|
-
.replace('{' + 'sampleId' + '}', encodeURIComponent(String(sampleId)));
|
|
2360
|
+
async getObjectDetectionLabelQueueCount(projectId, options = { headers: {} }) {
|
|
2361
|
+
const localVarPath = this.basePath + '/api/{projectId}/raw-data/label-object-detection-queue/count'
|
|
2362
|
+
.replace('{' + 'projectId' + '}', encodeURIComponent(String(projectId)));
|
|
2325
2363
|
let localVarQueryParameters = {};
|
|
2326
2364
|
let localVarHeaderParams = Object.assign({
|
|
2327
2365
|
'User-Agent': 'edgeimpulse-api nodejs'
|
|
2328
2366
|
}, this.defaultHeaders);
|
|
2329
|
-
const produces = ['
|
|
2367
|
+
const produces = ['application/json'];
|
|
2330
2368
|
// give precedence to 'application/json'
|
|
2331
2369
|
if (produces.indexOf('application/json') >= 0) {
|
|
2332
2370
|
localVarHeaderParams.Accept = 'application/json';
|
|
@@ -2337,14 +2375,7 @@ class RawDataApi {
|
|
|
2337
2375
|
let localVarFormParams = {};
|
|
2338
2376
|
// verify required parameter 'projectId' is not null or undefined
|
|
2339
2377
|
if (projectId === null || projectId === undefined) {
|
|
2340
|
-
throw new Error('Required parameter projectId was null or undefined when calling
|
|
2341
|
-
}
|
|
2342
|
-
// verify required parameter 'sampleId' is not null or undefined
|
|
2343
|
-
if (sampleId === null || sampleId === undefined) {
|
|
2344
|
-
throw new Error('Required parameter sampleId was null or undefined when calling getSampleAsVideo.');
|
|
2345
|
-
}
|
|
2346
|
-
if (queryParams.afterInputBlock !== undefined) {
|
|
2347
|
-
localVarQueryParameters['afterInputBlock'] = models_1.ObjectSerializer.serialize(queryParams.afterInputBlock, "boolean");
|
|
2378
|
+
throw new Error('Required parameter projectId was null or undefined when calling getObjectDetectionLabelQueueCount.');
|
|
2348
2379
|
}
|
|
2349
2380
|
Object.assign(localVarHeaderParams, options.headers);
|
|
2350
2381
|
Object.assign(localVarHeaderParams, this.opts.extraHeaders);
|
|
@@ -2356,7 +2387,7 @@ class RawDataApi {
|
|
|
2356
2387
|
uri: localVarPath,
|
|
2357
2388
|
useQuerystring: this._useQuerystring,
|
|
2358
2389
|
agentOptions: { keepAlive: false },
|
|
2359
|
-
|
|
2390
|
+
json: true,
|
|
2360
2391
|
};
|
|
2361
2392
|
let authenticationPromise = Promise.resolve();
|
|
2362
2393
|
authenticationPromise = authenticationPromise.then(() => this.authentications.ApiKeyAuthentication.applyToRequest(localVarRequestOptions));
|
|
@@ -2378,7 +2409,7 @@ class RawDataApi {
|
|
|
2378
2409
|
reject(error);
|
|
2379
2410
|
}
|
|
2380
2411
|
else {
|
|
2381
|
-
body = models_1.ObjectSerializer.deserialize(body, "
|
|
2412
|
+
body = models_1.ObjectSerializer.deserialize(body, "ObjectDetectionLabelQueueCountResponse");
|
|
2382
2413
|
const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
|
|
2383
2414
|
if (typeof body.success === 'boolean' && !body.success) {
|
|
2384
2415
|
reject(new Error(body.error || errString));
|
|
@@ -2395,14 +2426,16 @@ class RawDataApi {
|
|
|
2395
2426
|
});
|
|
2396
2427
|
}
|
|
2397
2428
|
/**
|
|
2398
|
-
* Get
|
|
2399
|
-
* @summary Get
|
|
2429
|
+
* Get a sample.
|
|
2430
|
+
* @summary Get sample
|
|
2400
2431
|
* @param projectId Project ID
|
|
2401
|
-
* @param
|
|
2432
|
+
* @param sampleId Sample ID
|
|
2433
|
+
* @param limitPayloadValues Limit the number of payload values in the response
|
|
2402
2434
|
*/
|
|
2403
|
-
async
|
|
2404
|
-
const localVarPath = this.basePath + '/api/{projectId}/raw-data/
|
|
2405
|
-
.replace('{' + 'projectId' + '}', encodeURIComponent(String(projectId)))
|
|
2435
|
+
async getSample(projectId, sampleId, queryParams, options = { headers: {} }) {
|
|
2436
|
+
const localVarPath = this.basePath + '/api/{projectId}/raw-data/{sampleId}'
|
|
2437
|
+
.replace('{' + 'projectId' + '}', encodeURIComponent(String(projectId)))
|
|
2438
|
+
.replace('{' + 'sampleId' + '}', encodeURIComponent(String(sampleId)));
|
|
2406
2439
|
let localVarQueryParameters = {};
|
|
2407
2440
|
let localVarHeaderParams = Object.assign({
|
|
2408
2441
|
'User-Agent': 'edgeimpulse-api nodejs'
|
|
@@ -2418,14 +2451,14 @@ class RawDataApi {
|
|
|
2418
2451
|
let localVarFormParams = {};
|
|
2419
2452
|
// verify required parameter 'projectId' is not null or undefined
|
|
2420
2453
|
if (projectId === null || projectId === undefined) {
|
|
2421
|
-
throw new Error('Required parameter projectId was null or undefined when calling
|
|
2454
|
+
throw new Error('Required parameter projectId was null or undefined when calling getSample.');
|
|
2422
2455
|
}
|
|
2423
|
-
// verify required parameter '
|
|
2424
|
-
if (
|
|
2425
|
-
throw new Error('Required parameter
|
|
2456
|
+
// verify required parameter 'sampleId' is not null or undefined
|
|
2457
|
+
if (sampleId === null || sampleId === undefined) {
|
|
2458
|
+
throw new Error('Required parameter sampleId was null or undefined when calling getSample.');
|
|
2426
2459
|
}
|
|
2427
|
-
if (queryParams.
|
|
2428
|
-
localVarQueryParameters['
|
|
2460
|
+
if (queryParams.limitPayloadValues !== undefined) {
|
|
2461
|
+
localVarQueryParameters['limitPayloadValues'] = models_1.ObjectSerializer.serialize(queryParams.limitPayloadValues, "number");
|
|
2429
2462
|
}
|
|
2430
2463
|
Object.assign(localVarHeaderParams, options.headers);
|
|
2431
2464
|
Object.assign(localVarHeaderParams, this.opts.extraHeaders);
|
|
@@ -2459,7 +2492,7 @@ class RawDataApi {
|
|
|
2459
2492
|
reject(error);
|
|
2460
2493
|
}
|
|
2461
2494
|
else {
|
|
2462
|
-
body = models_1.ObjectSerializer.deserialize(body, "
|
|
2495
|
+
body = models_1.ObjectSerializer.deserialize(body, "GetSampleResponse");
|
|
2463
2496
|
const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
|
|
2464
2497
|
if (typeof body.success === 'boolean' && !body.success) {
|
|
2465
2498
|
reject(new Error(body.error || errString));
|
|
@@ -2476,22 +2509,23 @@ class RawDataApi {
|
|
|
2476
2509
|
});
|
|
2477
2510
|
}
|
|
2478
2511
|
/**
|
|
2479
|
-
* Get a
|
|
2480
|
-
* @summary Get
|
|
2512
|
+
* Get a sample as a WAV file. This only applies to samples with an audio axis.
|
|
2513
|
+
* @summary Get WAV file
|
|
2481
2514
|
* @param projectId Project ID
|
|
2482
2515
|
* @param sampleId Sample ID
|
|
2516
|
+
* @param axisIx Axis index
|
|
2483
2517
|
* @param sliceStart Begin index of the slice
|
|
2484
2518
|
* @param sliceEnd End index of the slice
|
|
2485
2519
|
*/
|
|
2486
|
-
async
|
|
2487
|
-
const localVarPath = this.basePath + '/api/{projectId}/raw-data/{sampleId}/
|
|
2520
|
+
async getSampleAsAudio(projectId, sampleId, queryParams, options = { headers: {} }) {
|
|
2521
|
+
const localVarPath = this.basePath + '/api/{projectId}/raw-data/{sampleId}/wav'
|
|
2488
2522
|
.replace('{' + 'projectId' + '}', encodeURIComponent(String(projectId)))
|
|
2489
2523
|
.replace('{' + 'sampleId' + '}', encodeURIComponent(String(sampleId)));
|
|
2490
2524
|
let localVarQueryParameters = {};
|
|
2491
2525
|
let localVarHeaderParams = Object.assign({
|
|
2492
2526
|
'User-Agent': 'edgeimpulse-api nodejs'
|
|
2493
2527
|
}, this.defaultHeaders);
|
|
2494
|
-
const produces = ['
|
|
2528
|
+
const produces = ['audio/wav'];
|
|
2495
2529
|
// give precedence to 'application/json'
|
|
2496
2530
|
if (produces.indexOf('application/json') >= 0) {
|
|
2497
2531
|
localVarHeaderParams.Accept = 'application/json';
|
|
@@ -2502,19 +2536,18 @@ class RawDataApi {
|
|
|
2502
2536
|
let localVarFormParams = {};
|
|
2503
2537
|
// verify required parameter 'projectId' is not null or undefined
|
|
2504
2538
|
if (projectId === null || projectId === undefined) {
|
|
2505
|
-
throw new Error('Required parameter projectId was null or undefined when calling
|
|
2539
|
+
throw new Error('Required parameter projectId was null or undefined when calling getSampleAsAudio.');
|
|
2506
2540
|
}
|
|
2507
2541
|
// verify required parameter 'sampleId' is not null or undefined
|
|
2508
2542
|
if (sampleId === null || sampleId === undefined) {
|
|
2509
|
-
throw new Error('Required parameter sampleId was null or undefined when calling
|
|
2543
|
+
throw new Error('Required parameter sampleId was null or undefined when calling getSampleAsAudio.');
|
|
2510
2544
|
}
|
|
2511
|
-
// verify required parameter '
|
|
2512
|
-
if (queryParams.
|
|
2513
|
-
throw new Error('Required parameter queryParams.
|
|
2545
|
+
// verify required parameter 'axisIx' is not null or undefined
|
|
2546
|
+
if (queryParams.axisIx === null || queryParams.axisIx === undefined) {
|
|
2547
|
+
throw new Error('Required parameter queryParams.axisIx was null or undefined when calling getSampleAsAudio.');
|
|
2514
2548
|
}
|
|
2515
|
-
|
|
2516
|
-
|
|
2517
|
-
throw new Error('Required parameter queryParams.sliceEnd was null or undefined when calling getSampleSlice.');
|
|
2549
|
+
if (queryParams.axisIx !== undefined) {
|
|
2550
|
+
localVarQueryParameters['axisIx'] = models_1.ObjectSerializer.serialize(queryParams.axisIx, "number");
|
|
2518
2551
|
}
|
|
2519
2552
|
if (queryParams.sliceStart !== undefined) {
|
|
2520
2553
|
localVarQueryParameters['sliceStart'] = models_1.ObjectSerializer.serialize(queryParams.sliceStart, "number");
|
|
@@ -2532,7 +2565,7 @@ class RawDataApi {
|
|
|
2532
2565
|
uri: localVarPath,
|
|
2533
2566
|
useQuerystring: this._useQuerystring,
|
|
2534
2567
|
agentOptions: { keepAlive: false },
|
|
2535
|
-
|
|
2568
|
+
encoding: null,
|
|
2536
2569
|
};
|
|
2537
2570
|
let authenticationPromise = Promise.resolve();
|
|
2538
2571
|
authenticationPromise = authenticationPromise.then(() => this.authentications.ApiKeyAuthentication.applyToRequest(localVarRequestOptions));
|
|
@@ -2554,7 +2587,7 @@ class RawDataApi {
|
|
|
2554
2587
|
reject(error);
|
|
2555
2588
|
}
|
|
2556
2589
|
else {
|
|
2557
|
-
body = models_1.ObjectSerializer.deserialize(body, "
|
|
2590
|
+
body = models_1.ObjectSerializer.deserialize(body, "Buffer");
|
|
2558
2591
|
const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
|
|
2559
2592
|
if (typeof body.success === 'boolean' && !body.success) {
|
|
2560
2593
|
reject(new Error(body.error || errString));
|
|
@@ -2571,16 +2604,870 @@ class RawDataApi {
|
|
|
2571
2604
|
});
|
|
2572
2605
|
}
|
|
2573
2606
|
/**
|
|
2574
|
-
* Get
|
|
2575
|
-
* @summary Get
|
|
2607
|
+
* Get a sample as an image file. This only applies to samples with RGBA data.
|
|
2608
|
+
* @summary Get image file
|
|
2576
2609
|
* @param projectId Project ID
|
|
2577
2610
|
* @param sampleId Sample ID
|
|
2578
|
-
* @param
|
|
2579
|
-
|
|
2580
|
-
|
|
2611
|
+
* @param afterInputBlock Whether to process the image through the input block first
|
|
2612
|
+
*/
|
|
2613
|
+
async getSampleAsImage(projectId, sampleId, queryParams, options = { headers: {} }) {
|
|
2614
|
+
const localVarPath = this.basePath + '/api/{projectId}/raw-data/{sampleId}/image'
|
|
2615
|
+
.replace('{' + 'projectId' + '}', encodeURIComponent(String(projectId)))
|
|
2616
|
+
.replace('{' + 'sampleId' + '}', encodeURIComponent(String(sampleId)));
|
|
2617
|
+
let localVarQueryParameters = {};
|
|
2618
|
+
let localVarHeaderParams = Object.assign({
|
|
2619
|
+
'User-Agent': 'edgeimpulse-api nodejs'
|
|
2620
|
+
}, this.defaultHeaders);
|
|
2621
|
+
const produces = ['image/jpeg'];
|
|
2622
|
+
// give precedence to 'application/json'
|
|
2623
|
+
if (produces.indexOf('application/json') >= 0) {
|
|
2624
|
+
localVarHeaderParams.Accept = 'application/json';
|
|
2625
|
+
}
|
|
2626
|
+
else {
|
|
2627
|
+
localVarHeaderParams.Accept = produces.join(',');
|
|
2628
|
+
}
|
|
2629
|
+
let localVarFormParams = {};
|
|
2630
|
+
// verify required parameter 'projectId' is not null or undefined
|
|
2631
|
+
if (projectId === null || projectId === undefined) {
|
|
2632
|
+
throw new Error('Required parameter projectId was null or undefined when calling getSampleAsImage.');
|
|
2633
|
+
}
|
|
2634
|
+
// verify required parameter 'sampleId' is not null or undefined
|
|
2635
|
+
if (sampleId === null || sampleId === undefined) {
|
|
2636
|
+
throw new Error('Required parameter sampleId was null or undefined when calling getSampleAsImage.');
|
|
2637
|
+
}
|
|
2638
|
+
if (queryParams.afterInputBlock !== undefined) {
|
|
2639
|
+
localVarQueryParameters['afterInputBlock'] = models_1.ObjectSerializer.serialize(queryParams.afterInputBlock, "boolean");
|
|
2640
|
+
}
|
|
2641
|
+
Object.assign(localVarHeaderParams, options.headers);
|
|
2642
|
+
Object.assign(localVarHeaderParams, this.opts.extraHeaders);
|
|
2643
|
+
let localVarUseFormData = false;
|
|
2644
|
+
let localVarRequestOptions = {
|
|
2645
|
+
method: 'GET',
|
|
2646
|
+
qs: localVarQueryParameters,
|
|
2647
|
+
headers: localVarHeaderParams,
|
|
2648
|
+
uri: localVarPath,
|
|
2649
|
+
useQuerystring: this._useQuerystring,
|
|
2650
|
+
agentOptions: { keepAlive: false },
|
|
2651
|
+
encoding: null,
|
|
2652
|
+
};
|
|
2653
|
+
let authenticationPromise = Promise.resolve();
|
|
2654
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.ApiKeyAuthentication.applyToRequest(localVarRequestOptions));
|
|
2655
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.JWTAuthentication.applyToRequest(localVarRequestOptions));
|
|
2656
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.JWTHttpHeaderAuthentication.applyToRequest(localVarRequestOptions));
|
|
2657
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
|
|
2658
|
+
return authenticationPromise.then(() => {
|
|
2659
|
+
if (Object.keys(localVarFormParams).length) {
|
|
2660
|
+
if (localVarUseFormData) {
|
|
2661
|
+
localVarRequestOptions.formData = localVarFormParams;
|
|
2662
|
+
}
|
|
2663
|
+
else {
|
|
2664
|
+
localVarRequestOptions.form = localVarFormParams;
|
|
2665
|
+
}
|
|
2666
|
+
}
|
|
2667
|
+
return new Promise((resolve, reject) => {
|
|
2668
|
+
localVarRequest(localVarRequestOptions, (error, response, body) => {
|
|
2669
|
+
if (error) {
|
|
2670
|
+
reject(error);
|
|
2671
|
+
}
|
|
2672
|
+
else {
|
|
2673
|
+
body = models_1.ObjectSerializer.deserialize(body, "Buffer");
|
|
2674
|
+
const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
|
|
2675
|
+
if (typeof body.success === 'boolean' && !body.success) {
|
|
2676
|
+
reject(new Error(body.error || errString));
|
|
2677
|
+
}
|
|
2678
|
+
else if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
2679
|
+
resolve(body);
|
|
2680
|
+
}
|
|
2681
|
+
else {
|
|
2682
|
+
reject(errString);
|
|
2683
|
+
}
|
|
2684
|
+
}
|
|
2685
|
+
});
|
|
2686
|
+
});
|
|
2687
|
+
});
|
|
2688
|
+
}
|
|
2689
|
+
/**
|
|
2690
|
+
* Download a sample in it\'s original format as uploaded to the ingestion service.
|
|
2691
|
+
* @summary Download file
|
|
2692
|
+
* @param projectId Project ID
|
|
2693
|
+
* @param sampleId Sample ID
|
|
2694
|
+
*/
|
|
2695
|
+
async getSampleAsRaw(projectId, sampleId, options = { headers: {} }) {
|
|
2696
|
+
const localVarPath = this.basePath + '/api/{projectId}/raw-data/{sampleId}/raw'
|
|
2697
|
+
.replace('{' + 'projectId' + '}', encodeURIComponent(String(projectId)))
|
|
2698
|
+
.replace('{' + 'sampleId' + '}', encodeURIComponent(String(sampleId)));
|
|
2699
|
+
let localVarQueryParameters = {};
|
|
2700
|
+
let localVarHeaderParams = Object.assign({
|
|
2701
|
+
'User-Agent': 'edgeimpulse-api nodejs'
|
|
2702
|
+
}, this.defaultHeaders);
|
|
2703
|
+
const produces = ['application/octet-stream'];
|
|
2704
|
+
// give precedence to 'application/json'
|
|
2705
|
+
if (produces.indexOf('application/json') >= 0) {
|
|
2706
|
+
localVarHeaderParams.Accept = 'application/json';
|
|
2707
|
+
}
|
|
2708
|
+
else {
|
|
2709
|
+
localVarHeaderParams.Accept = produces.join(',');
|
|
2710
|
+
}
|
|
2711
|
+
let localVarFormParams = {};
|
|
2712
|
+
// verify required parameter 'projectId' is not null or undefined
|
|
2713
|
+
if (projectId === null || projectId === undefined) {
|
|
2714
|
+
throw new Error('Required parameter projectId was null or undefined when calling getSampleAsRaw.');
|
|
2715
|
+
}
|
|
2716
|
+
// verify required parameter 'sampleId' is not null or undefined
|
|
2717
|
+
if (sampleId === null || sampleId === undefined) {
|
|
2718
|
+
throw new Error('Required parameter sampleId was null or undefined when calling getSampleAsRaw.');
|
|
2719
|
+
}
|
|
2720
|
+
Object.assign(localVarHeaderParams, options.headers);
|
|
2721
|
+
Object.assign(localVarHeaderParams, this.opts.extraHeaders);
|
|
2722
|
+
let localVarUseFormData = false;
|
|
2723
|
+
let localVarRequestOptions = {
|
|
2724
|
+
method: 'GET',
|
|
2725
|
+
qs: localVarQueryParameters,
|
|
2726
|
+
headers: localVarHeaderParams,
|
|
2727
|
+
uri: localVarPath,
|
|
2728
|
+
useQuerystring: this._useQuerystring,
|
|
2729
|
+
agentOptions: { keepAlive: false },
|
|
2730
|
+
encoding: null,
|
|
2731
|
+
};
|
|
2732
|
+
let authenticationPromise = Promise.resolve();
|
|
2733
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.ApiKeyAuthentication.applyToRequest(localVarRequestOptions));
|
|
2734
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.JWTAuthentication.applyToRequest(localVarRequestOptions));
|
|
2735
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.JWTHttpHeaderAuthentication.applyToRequest(localVarRequestOptions));
|
|
2736
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
|
|
2737
|
+
return authenticationPromise.then(() => {
|
|
2738
|
+
if (Object.keys(localVarFormParams).length) {
|
|
2739
|
+
if (localVarUseFormData) {
|
|
2740
|
+
localVarRequestOptions.formData = localVarFormParams;
|
|
2741
|
+
}
|
|
2742
|
+
else {
|
|
2743
|
+
localVarRequestOptions.form = localVarFormParams;
|
|
2744
|
+
}
|
|
2745
|
+
}
|
|
2746
|
+
return new Promise((resolve, reject) => {
|
|
2747
|
+
localVarRequest(localVarRequestOptions, (error, response, body) => {
|
|
2748
|
+
if (error) {
|
|
2749
|
+
reject(error);
|
|
2750
|
+
}
|
|
2751
|
+
else {
|
|
2752
|
+
body = models_1.ObjectSerializer.deserialize(body, "Buffer");
|
|
2753
|
+
const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
|
|
2754
|
+
if (typeof body.success === 'boolean' && !body.success) {
|
|
2755
|
+
reject(new Error(body.error || errString));
|
|
2756
|
+
}
|
|
2757
|
+
else if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
2758
|
+
resolve(body);
|
|
2759
|
+
}
|
|
2760
|
+
else {
|
|
2761
|
+
reject(errString);
|
|
2762
|
+
}
|
|
2763
|
+
}
|
|
2764
|
+
});
|
|
2765
|
+
});
|
|
2766
|
+
});
|
|
2767
|
+
}
|
|
2768
|
+
/**
|
|
2769
|
+
* Get a sample as an video file. This only applies to samples with video data.
|
|
2770
|
+
* @summary Get video file
|
|
2771
|
+
* @param projectId Project ID
|
|
2772
|
+
* @param sampleId Sample ID
|
|
2773
|
+
* @param afterInputBlock Whether to process the image through the input block first
|
|
2774
|
+
*/
|
|
2775
|
+
async getSampleAsVideo(projectId, sampleId, queryParams, options = { headers: {} }) {
|
|
2776
|
+
const localVarPath = this.basePath + '/api/{projectId}/raw-data/{sampleId}/video'
|
|
2777
|
+
.replace('{' + 'projectId' + '}', encodeURIComponent(String(projectId)))
|
|
2778
|
+
.replace('{' + 'sampleId' + '}', encodeURIComponent(String(sampleId)));
|
|
2779
|
+
let localVarQueryParameters = {};
|
|
2780
|
+
let localVarHeaderParams = Object.assign({
|
|
2781
|
+
'User-Agent': 'edgeimpulse-api nodejs'
|
|
2782
|
+
}, this.defaultHeaders);
|
|
2783
|
+
const produces = ['video/mp4'];
|
|
2784
|
+
// give precedence to 'application/json'
|
|
2785
|
+
if (produces.indexOf('application/json') >= 0) {
|
|
2786
|
+
localVarHeaderParams.Accept = 'application/json';
|
|
2787
|
+
}
|
|
2788
|
+
else {
|
|
2789
|
+
localVarHeaderParams.Accept = produces.join(',');
|
|
2790
|
+
}
|
|
2791
|
+
let localVarFormParams = {};
|
|
2792
|
+
// verify required parameter 'projectId' is not null or undefined
|
|
2793
|
+
if (projectId === null || projectId === undefined) {
|
|
2794
|
+
throw new Error('Required parameter projectId was null or undefined when calling getSampleAsVideo.');
|
|
2795
|
+
}
|
|
2796
|
+
// verify required parameter 'sampleId' is not null or undefined
|
|
2797
|
+
if (sampleId === null || sampleId === undefined) {
|
|
2798
|
+
throw new Error('Required parameter sampleId was null or undefined when calling getSampleAsVideo.');
|
|
2799
|
+
}
|
|
2800
|
+
if (queryParams.afterInputBlock !== undefined) {
|
|
2801
|
+
localVarQueryParameters['afterInputBlock'] = models_1.ObjectSerializer.serialize(queryParams.afterInputBlock, "boolean");
|
|
2802
|
+
}
|
|
2803
|
+
Object.assign(localVarHeaderParams, options.headers);
|
|
2804
|
+
Object.assign(localVarHeaderParams, this.opts.extraHeaders);
|
|
2805
|
+
let localVarUseFormData = false;
|
|
2806
|
+
let localVarRequestOptions = {
|
|
2807
|
+
method: 'GET',
|
|
2808
|
+
qs: localVarQueryParameters,
|
|
2809
|
+
headers: localVarHeaderParams,
|
|
2810
|
+
uri: localVarPath,
|
|
2811
|
+
useQuerystring: this._useQuerystring,
|
|
2812
|
+
agentOptions: { keepAlive: false },
|
|
2813
|
+
encoding: null,
|
|
2814
|
+
};
|
|
2815
|
+
let authenticationPromise = Promise.resolve();
|
|
2816
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.ApiKeyAuthentication.applyToRequest(localVarRequestOptions));
|
|
2817
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.JWTAuthentication.applyToRequest(localVarRequestOptions));
|
|
2818
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.JWTHttpHeaderAuthentication.applyToRequest(localVarRequestOptions));
|
|
2819
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
|
|
2820
|
+
return authenticationPromise.then(() => {
|
|
2821
|
+
if (Object.keys(localVarFormParams).length) {
|
|
2822
|
+
if (localVarUseFormData) {
|
|
2823
|
+
localVarRequestOptions.formData = localVarFormParams;
|
|
2824
|
+
}
|
|
2825
|
+
else {
|
|
2826
|
+
localVarRequestOptions.form = localVarFormParams;
|
|
2827
|
+
}
|
|
2828
|
+
}
|
|
2829
|
+
return new Promise((resolve, reject) => {
|
|
2830
|
+
localVarRequest(localVarRequestOptions, (error, response, body) => {
|
|
2831
|
+
if (error) {
|
|
2832
|
+
reject(error);
|
|
2833
|
+
}
|
|
2834
|
+
else {
|
|
2835
|
+
body = models_1.ObjectSerializer.deserialize(body, "Buffer");
|
|
2836
|
+
const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
|
|
2837
|
+
if (typeof body.success === 'boolean' && !body.success) {
|
|
2838
|
+
reject(new Error(body.error || errString));
|
|
2839
|
+
}
|
|
2840
|
+
else if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
2841
|
+
resolve(body);
|
|
2842
|
+
}
|
|
2843
|
+
else {
|
|
2844
|
+
reject(errString);
|
|
2845
|
+
}
|
|
2846
|
+
}
|
|
2847
|
+
});
|
|
2848
|
+
});
|
|
2849
|
+
});
|
|
2850
|
+
}
|
|
2851
|
+
/**
|
|
2852
|
+
* Get metadata for all samples in a project.
|
|
2853
|
+
* @summary Get project sample metadata
|
|
2854
|
+
* @param projectId Project ID
|
|
2855
|
+
* @param category Which of the three acquisition categories to retrieve data from
|
|
2856
|
+
*/
|
|
2857
|
+
async getSampleMetadata(projectId, queryParams, options = { headers: {} }) {
|
|
2858
|
+
const localVarPath = this.basePath + '/api/{projectId}/raw-data/metadata'
|
|
2859
|
+
.replace('{' + 'projectId' + '}', encodeURIComponent(String(projectId)));
|
|
2860
|
+
let localVarQueryParameters = {};
|
|
2861
|
+
let localVarHeaderParams = Object.assign({
|
|
2862
|
+
'User-Agent': 'edgeimpulse-api nodejs'
|
|
2863
|
+
}, this.defaultHeaders);
|
|
2864
|
+
const produces = ['application/json'];
|
|
2865
|
+
// give precedence to 'application/json'
|
|
2866
|
+
if (produces.indexOf('application/json') >= 0) {
|
|
2867
|
+
localVarHeaderParams.Accept = 'application/json';
|
|
2868
|
+
}
|
|
2869
|
+
else {
|
|
2870
|
+
localVarHeaderParams.Accept = produces.join(',');
|
|
2871
|
+
}
|
|
2872
|
+
let localVarFormParams = {};
|
|
2873
|
+
// verify required parameter 'projectId' is not null or undefined
|
|
2874
|
+
if (projectId === null || projectId === undefined) {
|
|
2875
|
+
throw new Error('Required parameter projectId was null or undefined when calling getSampleMetadata.');
|
|
2876
|
+
}
|
|
2877
|
+
// verify required parameter 'category' is not null or undefined
|
|
2878
|
+
if (queryParams.category === null || queryParams.category === undefined) {
|
|
2879
|
+
throw new Error('Required parameter queryParams.category was null or undefined when calling getSampleMetadata.');
|
|
2880
|
+
}
|
|
2881
|
+
if (queryParams.category !== undefined) {
|
|
2882
|
+
localVarQueryParameters['category'] = models_1.ObjectSerializer.serialize(queryParams.category, "'training' | 'testing' | 'anomaly'");
|
|
2883
|
+
}
|
|
2884
|
+
Object.assign(localVarHeaderParams, options.headers);
|
|
2885
|
+
Object.assign(localVarHeaderParams, this.opts.extraHeaders);
|
|
2886
|
+
let localVarUseFormData = false;
|
|
2887
|
+
let localVarRequestOptions = {
|
|
2888
|
+
method: 'GET',
|
|
2889
|
+
qs: localVarQueryParameters,
|
|
2890
|
+
headers: localVarHeaderParams,
|
|
2891
|
+
uri: localVarPath,
|
|
2892
|
+
useQuerystring: this._useQuerystring,
|
|
2893
|
+
agentOptions: { keepAlive: false },
|
|
2894
|
+
json: true,
|
|
2895
|
+
};
|
|
2896
|
+
let authenticationPromise = Promise.resolve();
|
|
2897
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.ApiKeyAuthentication.applyToRequest(localVarRequestOptions));
|
|
2898
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.JWTAuthentication.applyToRequest(localVarRequestOptions));
|
|
2899
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.JWTHttpHeaderAuthentication.applyToRequest(localVarRequestOptions));
|
|
2900
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
|
|
2901
|
+
return authenticationPromise.then(() => {
|
|
2902
|
+
if (Object.keys(localVarFormParams).length) {
|
|
2903
|
+
if (localVarUseFormData) {
|
|
2904
|
+
localVarRequestOptions.formData = localVarFormParams;
|
|
2905
|
+
}
|
|
2906
|
+
else {
|
|
2907
|
+
localVarRequestOptions.form = localVarFormParams;
|
|
2908
|
+
}
|
|
2909
|
+
}
|
|
2910
|
+
return new Promise((resolve, reject) => {
|
|
2911
|
+
localVarRequest(localVarRequestOptions, (error, response, body) => {
|
|
2912
|
+
if (error) {
|
|
2913
|
+
reject(error);
|
|
2914
|
+
}
|
|
2915
|
+
else {
|
|
2916
|
+
body = models_1.ObjectSerializer.deserialize(body, "GetSampleMetadataResponse");
|
|
2917
|
+
const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
|
|
2918
|
+
if (typeof body.success === 'boolean' && !body.success) {
|
|
2919
|
+
reject(new Error(body.error || errString));
|
|
2920
|
+
}
|
|
2921
|
+
else if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
2922
|
+
resolve(body);
|
|
2923
|
+
}
|
|
2924
|
+
else {
|
|
2925
|
+
reject(errString);
|
|
2926
|
+
}
|
|
2927
|
+
}
|
|
2928
|
+
});
|
|
2929
|
+
});
|
|
2930
|
+
});
|
|
2931
|
+
}
|
|
2932
|
+
/**
|
|
2933
|
+
* Get a slice of a sample.
|
|
2934
|
+
* @summary Get sample slice
|
|
2935
|
+
* @param projectId Project ID
|
|
2936
|
+
* @param sampleId Sample ID
|
|
2937
|
+
* @param sliceStart Begin index of the slice
|
|
2938
|
+
* @param sliceEnd End index of the slice
|
|
2939
|
+
*/
|
|
2940
|
+
async getSampleSlice(projectId, sampleId, queryParams, options = { headers: {} }) {
|
|
2941
|
+
const localVarPath = this.basePath + '/api/{projectId}/raw-data/{sampleId}/slice'
|
|
2942
|
+
.replace('{' + 'projectId' + '}', encodeURIComponent(String(projectId)))
|
|
2943
|
+
.replace('{' + 'sampleId' + '}', encodeURIComponent(String(sampleId)));
|
|
2944
|
+
let localVarQueryParameters = {};
|
|
2945
|
+
let localVarHeaderParams = Object.assign({
|
|
2946
|
+
'User-Agent': 'edgeimpulse-api nodejs'
|
|
2947
|
+
}, this.defaultHeaders);
|
|
2948
|
+
const produces = ['application/json'];
|
|
2949
|
+
// give precedence to 'application/json'
|
|
2950
|
+
if (produces.indexOf('application/json') >= 0) {
|
|
2951
|
+
localVarHeaderParams.Accept = 'application/json';
|
|
2952
|
+
}
|
|
2953
|
+
else {
|
|
2954
|
+
localVarHeaderParams.Accept = produces.join(',');
|
|
2955
|
+
}
|
|
2956
|
+
let localVarFormParams = {};
|
|
2957
|
+
// verify required parameter 'projectId' is not null or undefined
|
|
2958
|
+
if (projectId === null || projectId === undefined) {
|
|
2959
|
+
throw new Error('Required parameter projectId was null or undefined when calling getSampleSlice.');
|
|
2960
|
+
}
|
|
2961
|
+
// verify required parameter 'sampleId' is not null or undefined
|
|
2962
|
+
if (sampleId === null || sampleId === undefined) {
|
|
2963
|
+
throw new Error('Required parameter sampleId was null or undefined when calling getSampleSlice.');
|
|
2964
|
+
}
|
|
2965
|
+
// verify required parameter 'sliceStart' is not null or undefined
|
|
2966
|
+
if (queryParams.sliceStart === null || queryParams.sliceStart === undefined) {
|
|
2967
|
+
throw new Error('Required parameter queryParams.sliceStart was null or undefined when calling getSampleSlice.');
|
|
2968
|
+
}
|
|
2969
|
+
// verify required parameter 'sliceEnd' is not null or undefined
|
|
2970
|
+
if (queryParams.sliceEnd === null || queryParams.sliceEnd === undefined) {
|
|
2971
|
+
throw new Error('Required parameter queryParams.sliceEnd was null or undefined when calling getSampleSlice.');
|
|
2972
|
+
}
|
|
2973
|
+
if (queryParams.sliceStart !== undefined) {
|
|
2974
|
+
localVarQueryParameters['sliceStart'] = models_1.ObjectSerializer.serialize(queryParams.sliceStart, "number");
|
|
2975
|
+
}
|
|
2976
|
+
if (queryParams.sliceEnd !== undefined) {
|
|
2977
|
+
localVarQueryParameters['sliceEnd'] = models_1.ObjectSerializer.serialize(queryParams.sliceEnd, "number");
|
|
2978
|
+
}
|
|
2979
|
+
Object.assign(localVarHeaderParams, options.headers);
|
|
2980
|
+
Object.assign(localVarHeaderParams, this.opts.extraHeaders);
|
|
2981
|
+
let localVarUseFormData = false;
|
|
2982
|
+
let localVarRequestOptions = {
|
|
2983
|
+
method: 'GET',
|
|
2984
|
+
qs: localVarQueryParameters,
|
|
2985
|
+
headers: localVarHeaderParams,
|
|
2986
|
+
uri: localVarPath,
|
|
2987
|
+
useQuerystring: this._useQuerystring,
|
|
2988
|
+
agentOptions: { keepAlive: false },
|
|
2989
|
+
json: true,
|
|
2990
|
+
};
|
|
2991
|
+
let authenticationPromise = Promise.resolve();
|
|
2992
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.ApiKeyAuthentication.applyToRequest(localVarRequestOptions));
|
|
2993
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.JWTAuthentication.applyToRequest(localVarRequestOptions));
|
|
2994
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.JWTHttpHeaderAuthentication.applyToRequest(localVarRequestOptions));
|
|
2995
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
|
|
2996
|
+
return authenticationPromise.then(() => {
|
|
2997
|
+
if (Object.keys(localVarFormParams).length) {
|
|
2998
|
+
if (localVarUseFormData) {
|
|
2999
|
+
localVarRequestOptions.formData = localVarFormParams;
|
|
3000
|
+
}
|
|
3001
|
+
else {
|
|
3002
|
+
localVarRequestOptions.form = localVarFormParams;
|
|
3003
|
+
}
|
|
3004
|
+
}
|
|
3005
|
+
return new Promise((resolve, reject) => {
|
|
3006
|
+
localVarRequest(localVarRequestOptions, (error, response, body) => {
|
|
3007
|
+
if (error) {
|
|
3008
|
+
reject(error);
|
|
3009
|
+
}
|
|
3010
|
+
else {
|
|
3011
|
+
body = models_1.ObjectSerializer.deserialize(body, "GetSampleResponse");
|
|
3012
|
+
const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
|
|
3013
|
+
if (typeof body.success === 'boolean' && !body.success) {
|
|
3014
|
+
reject(new Error(body.error || errString));
|
|
3015
|
+
}
|
|
3016
|
+
else if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
3017
|
+
resolve(body);
|
|
3018
|
+
}
|
|
3019
|
+
else {
|
|
3020
|
+
reject(errString);
|
|
3021
|
+
}
|
|
3022
|
+
}
|
|
3023
|
+
});
|
|
3024
|
+
});
|
|
3025
|
+
});
|
|
3026
|
+
}
|
|
3027
|
+
/**
|
|
3028
|
+
* Get the original, uncropped, downsampled data.
|
|
3029
|
+
* @summary Get the original downsampled data
|
|
3030
|
+
* @param projectId Project ID
|
|
3031
|
+
* @param sampleId Sample ID
|
|
3032
|
+
* @param limitPayloadValues Limit the number of payload values in the response
|
|
3033
|
+
* @param zoomStart Zoom into the sample, with the focus starting at this index
|
|
3034
|
+
* @param zoomEnd Zoom into the sample, with the focus ending at this index
|
|
3035
|
+
*/
|
|
3036
|
+
async getUncroppedDownsampledSample(projectId, sampleId, queryParams, options = { headers: {} }) {
|
|
3037
|
+
const localVarPath = this.basePath + '/api/{projectId}/raw-data/{sampleId}/original'
|
|
3038
|
+
.replace('{' + 'projectId' + '}', encodeURIComponent(String(projectId)))
|
|
3039
|
+
.replace('{' + 'sampleId' + '}', encodeURIComponent(String(sampleId)));
|
|
3040
|
+
let localVarQueryParameters = {};
|
|
3041
|
+
let localVarHeaderParams = Object.assign({
|
|
3042
|
+
'User-Agent': 'edgeimpulse-api nodejs'
|
|
3043
|
+
}, this.defaultHeaders);
|
|
3044
|
+
const produces = ['application/json'];
|
|
3045
|
+
// give precedence to 'application/json'
|
|
3046
|
+
if (produces.indexOf('application/json') >= 0) {
|
|
3047
|
+
localVarHeaderParams.Accept = 'application/json';
|
|
3048
|
+
}
|
|
3049
|
+
else {
|
|
3050
|
+
localVarHeaderParams.Accept = produces.join(',');
|
|
3051
|
+
}
|
|
3052
|
+
let localVarFormParams = {};
|
|
3053
|
+
// verify required parameter 'projectId' is not null or undefined
|
|
3054
|
+
if (projectId === null || projectId === undefined) {
|
|
3055
|
+
throw new Error('Required parameter projectId was null or undefined when calling getUncroppedDownsampledSample.');
|
|
3056
|
+
}
|
|
3057
|
+
// verify required parameter 'sampleId' is not null or undefined
|
|
3058
|
+
if (sampleId === null || sampleId === undefined) {
|
|
3059
|
+
throw new Error('Required parameter sampleId was null or undefined when calling getUncroppedDownsampledSample.');
|
|
3060
|
+
}
|
|
3061
|
+
if (queryParams.limitPayloadValues !== undefined) {
|
|
3062
|
+
localVarQueryParameters['limitPayloadValues'] = models_1.ObjectSerializer.serialize(queryParams.limitPayloadValues, "number");
|
|
3063
|
+
}
|
|
3064
|
+
if (queryParams.zoomStart !== undefined) {
|
|
3065
|
+
localVarQueryParameters['zoomStart'] = models_1.ObjectSerializer.serialize(queryParams.zoomStart, "number");
|
|
3066
|
+
}
|
|
3067
|
+
if (queryParams.zoomEnd !== undefined) {
|
|
3068
|
+
localVarQueryParameters['zoomEnd'] = models_1.ObjectSerializer.serialize(queryParams.zoomEnd, "number");
|
|
3069
|
+
}
|
|
3070
|
+
Object.assign(localVarHeaderParams, options.headers);
|
|
3071
|
+
Object.assign(localVarHeaderParams, this.opts.extraHeaders);
|
|
3072
|
+
let localVarUseFormData = false;
|
|
3073
|
+
let localVarRequestOptions = {
|
|
3074
|
+
method: 'GET',
|
|
3075
|
+
qs: localVarQueryParameters,
|
|
3076
|
+
headers: localVarHeaderParams,
|
|
3077
|
+
uri: localVarPath,
|
|
3078
|
+
useQuerystring: this._useQuerystring,
|
|
3079
|
+
agentOptions: { keepAlive: false },
|
|
3080
|
+
json: true,
|
|
3081
|
+
};
|
|
3082
|
+
let authenticationPromise = Promise.resolve();
|
|
3083
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.ApiKeyAuthentication.applyToRequest(localVarRequestOptions));
|
|
3084
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.JWTAuthentication.applyToRequest(localVarRequestOptions));
|
|
3085
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.JWTHttpHeaderAuthentication.applyToRequest(localVarRequestOptions));
|
|
3086
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
|
|
3087
|
+
return authenticationPromise.then(() => {
|
|
3088
|
+
if (Object.keys(localVarFormParams).length) {
|
|
3089
|
+
if (localVarUseFormData) {
|
|
3090
|
+
localVarRequestOptions.formData = localVarFormParams;
|
|
3091
|
+
}
|
|
3092
|
+
else {
|
|
3093
|
+
localVarRequestOptions.form = localVarFormParams;
|
|
3094
|
+
}
|
|
3095
|
+
}
|
|
3096
|
+
return new Promise((resolve, reject) => {
|
|
3097
|
+
localVarRequest(localVarRequestOptions, (error, response, body) => {
|
|
3098
|
+
if (error) {
|
|
3099
|
+
reject(error);
|
|
3100
|
+
}
|
|
3101
|
+
else {
|
|
3102
|
+
body = models_1.ObjectSerializer.deserialize(body, "GetSampleResponse");
|
|
3103
|
+
const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
|
|
3104
|
+
if (typeof body.success === 'boolean' && !body.success) {
|
|
3105
|
+
reject(new Error(body.error || errString));
|
|
3106
|
+
}
|
|
3107
|
+
else if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
3108
|
+
resolve(body);
|
|
3109
|
+
}
|
|
3110
|
+
else {
|
|
3111
|
+
reject(errString);
|
|
3112
|
+
}
|
|
3113
|
+
}
|
|
3114
|
+
});
|
|
3115
|
+
});
|
|
3116
|
+
});
|
|
3117
|
+
}
|
|
3118
|
+
/**
|
|
3119
|
+
* t-SNE2 output of the raw dataset
|
|
3120
|
+
* @summary Check data explorer features
|
|
3121
|
+
* @param projectId Project ID
|
|
3122
|
+
*/
|
|
3123
|
+
async hasDataExplorerFeatures(projectId, options = { headers: {} }) {
|
|
3124
|
+
const localVarPath = this.basePath + '/api/{projectId}/raw-data/data-explorer/has-features'
|
|
3125
|
+
.replace('{' + 'projectId' + '}', encodeURIComponent(String(projectId)));
|
|
3126
|
+
let localVarQueryParameters = {};
|
|
3127
|
+
let localVarHeaderParams = Object.assign({
|
|
3128
|
+
'User-Agent': 'edgeimpulse-api nodejs'
|
|
3129
|
+
}, this.defaultHeaders);
|
|
3130
|
+
const produces = ['application/json'];
|
|
3131
|
+
// give precedence to 'application/json'
|
|
3132
|
+
if (produces.indexOf('application/json') >= 0) {
|
|
3133
|
+
localVarHeaderParams.Accept = 'application/json';
|
|
3134
|
+
}
|
|
3135
|
+
else {
|
|
3136
|
+
localVarHeaderParams.Accept = produces.join(',');
|
|
3137
|
+
}
|
|
3138
|
+
let localVarFormParams = {};
|
|
3139
|
+
// verify required parameter 'projectId' is not null or undefined
|
|
3140
|
+
if (projectId === null || projectId === undefined) {
|
|
3141
|
+
throw new Error('Required parameter projectId was null or undefined when calling hasDataExplorerFeatures.');
|
|
3142
|
+
}
|
|
3143
|
+
Object.assign(localVarHeaderParams, options.headers);
|
|
3144
|
+
Object.assign(localVarHeaderParams, this.opts.extraHeaders);
|
|
3145
|
+
let localVarUseFormData = false;
|
|
3146
|
+
let localVarRequestOptions = {
|
|
3147
|
+
method: 'GET',
|
|
3148
|
+
qs: localVarQueryParameters,
|
|
3149
|
+
headers: localVarHeaderParams,
|
|
3150
|
+
uri: localVarPath,
|
|
3151
|
+
useQuerystring: this._useQuerystring,
|
|
3152
|
+
agentOptions: { keepAlive: false },
|
|
3153
|
+
json: true,
|
|
3154
|
+
};
|
|
3155
|
+
let authenticationPromise = Promise.resolve();
|
|
3156
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.ApiKeyAuthentication.applyToRequest(localVarRequestOptions));
|
|
3157
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.JWTAuthentication.applyToRequest(localVarRequestOptions));
|
|
3158
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.JWTHttpHeaderAuthentication.applyToRequest(localVarRequestOptions));
|
|
3159
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
|
|
3160
|
+
return authenticationPromise.then(() => {
|
|
3161
|
+
if (Object.keys(localVarFormParams).length) {
|
|
3162
|
+
if (localVarUseFormData) {
|
|
3163
|
+
localVarRequestOptions.formData = localVarFormParams;
|
|
3164
|
+
}
|
|
3165
|
+
else {
|
|
3166
|
+
localVarRequestOptions.form = localVarFormParams;
|
|
3167
|
+
}
|
|
3168
|
+
}
|
|
3169
|
+
return new Promise((resolve, reject) => {
|
|
3170
|
+
localVarRequest(localVarRequestOptions, (error, response, body) => {
|
|
3171
|
+
if (error) {
|
|
3172
|
+
reject(error);
|
|
3173
|
+
}
|
|
3174
|
+
else {
|
|
3175
|
+
body = models_1.ObjectSerializer.deserialize(body, "HasDataExplorerFeaturesResponse");
|
|
3176
|
+
const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
|
|
3177
|
+
if (typeof body.success === 'boolean' && !body.success) {
|
|
3178
|
+
reject(new Error(body.error || errString));
|
|
3179
|
+
}
|
|
3180
|
+
else if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
3181
|
+
resolve(body);
|
|
3182
|
+
}
|
|
3183
|
+
else {
|
|
3184
|
+
reject(errString);
|
|
3185
|
+
}
|
|
3186
|
+
}
|
|
3187
|
+
});
|
|
3188
|
+
});
|
|
3189
|
+
});
|
|
3190
|
+
}
|
|
3191
|
+
/**
|
|
3192
|
+
* Determine if data diversity metrics have been calculated. To calculate these metrics, use the `calculateDataQualityMetrics` endpoint.
|
|
3193
|
+
* @summary Check if data diversity metrics exist
|
|
3194
|
+
* @param projectId Project ID
|
|
3195
|
+
*/
|
|
3196
|
+
async hasDiversityData(projectId, options = { headers: {} }) {
|
|
3197
|
+
const localVarPath = this.basePath + '/api/{projectId}/raw-data/data-quality/diversity/exists'
|
|
3198
|
+
.replace('{' + 'projectId' + '}', encodeURIComponent(String(projectId)));
|
|
3199
|
+
let localVarQueryParameters = {};
|
|
3200
|
+
let localVarHeaderParams = Object.assign({
|
|
3201
|
+
'User-Agent': 'edgeimpulse-api nodejs'
|
|
3202
|
+
}, this.defaultHeaders);
|
|
3203
|
+
const produces = ['application/json'];
|
|
3204
|
+
// give precedence to 'application/json'
|
|
3205
|
+
if (produces.indexOf('application/json') >= 0) {
|
|
3206
|
+
localVarHeaderParams.Accept = 'application/json';
|
|
3207
|
+
}
|
|
3208
|
+
else {
|
|
3209
|
+
localVarHeaderParams.Accept = produces.join(',');
|
|
3210
|
+
}
|
|
3211
|
+
let localVarFormParams = {};
|
|
3212
|
+
// verify required parameter 'projectId' is not null or undefined
|
|
3213
|
+
if (projectId === null || projectId === undefined) {
|
|
3214
|
+
throw new Error('Required parameter projectId was null or undefined when calling hasDiversityData.');
|
|
3215
|
+
}
|
|
3216
|
+
Object.assign(localVarHeaderParams, options.headers);
|
|
3217
|
+
Object.assign(localVarHeaderParams, this.opts.extraHeaders);
|
|
3218
|
+
let localVarUseFormData = false;
|
|
3219
|
+
let localVarRequestOptions = {
|
|
3220
|
+
method: 'GET',
|
|
3221
|
+
qs: localVarQueryParameters,
|
|
3222
|
+
headers: localVarHeaderParams,
|
|
3223
|
+
uri: localVarPath,
|
|
3224
|
+
useQuerystring: this._useQuerystring,
|
|
3225
|
+
agentOptions: { keepAlive: false },
|
|
3226
|
+
json: true,
|
|
3227
|
+
};
|
|
3228
|
+
let authenticationPromise = Promise.resolve();
|
|
3229
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.ApiKeyAuthentication.applyToRequest(localVarRequestOptions));
|
|
3230
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.JWTAuthentication.applyToRequest(localVarRequestOptions));
|
|
3231
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.JWTHttpHeaderAuthentication.applyToRequest(localVarRequestOptions));
|
|
3232
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
|
|
3233
|
+
return authenticationPromise.then(() => {
|
|
3234
|
+
if (Object.keys(localVarFormParams).length) {
|
|
3235
|
+
if (localVarUseFormData) {
|
|
3236
|
+
localVarRequestOptions.formData = localVarFormParams;
|
|
3237
|
+
}
|
|
3238
|
+
else {
|
|
3239
|
+
localVarRequestOptions.form = localVarFormParams;
|
|
3240
|
+
}
|
|
3241
|
+
}
|
|
3242
|
+
return new Promise((resolve, reject) => {
|
|
3243
|
+
localVarRequest(localVarRequestOptions, (error, response, body) => {
|
|
3244
|
+
if (error) {
|
|
3245
|
+
reject(error);
|
|
3246
|
+
}
|
|
3247
|
+
else {
|
|
3248
|
+
body = models_1.ObjectSerializer.deserialize(body, "HasDataExplorerFeaturesResponse");
|
|
3249
|
+
const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
|
|
3250
|
+
if (typeof body.success === 'boolean' && !body.success) {
|
|
3251
|
+
reject(new Error(body.error || errString));
|
|
3252
|
+
}
|
|
3253
|
+
else if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
3254
|
+
resolve(body);
|
|
3255
|
+
}
|
|
3256
|
+
else {
|
|
3257
|
+
reject(errString);
|
|
3258
|
+
}
|
|
3259
|
+
}
|
|
3260
|
+
});
|
|
3261
|
+
});
|
|
3262
|
+
});
|
|
3263
|
+
}
|
|
3264
|
+
/**
|
|
3265
|
+
* Determine if label noise metrics have been calculated. To calculate these metrics, use the `calculateDataQualityMetrics` endpoint.
|
|
3266
|
+
* @summary Check if label noise metrics exist
|
|
3267
|
+
* @param projectId Project ID
|
|
3268
|
+
*/
|
|
3269
|
+
async hasLabelNoiseData(projectId, options = { headers: {} }) {
|
|
3270
|
+
const localVarPath = this.basePath + '/api/{projectId}/raw-data/data-quality/label-noise/exists'
|
|
3271
|
+
.replace('{' + 'projectId' + '}', encodeURIComponent(String(projectId)));
|
|
3272
|
+
let localVarQueryParameters = {};
|
|
3273
|
+
let localVarHeaderParams = Object.assign({
|
|
3274
|
+
'User-Agent': 'edgeimpulse-api nodejs'
|
|
3275
|
+
}, this.defaultHeaders);
|
|
3276
|
+
const produces = ['application/json'];
|
|
3277
|
+
// give precedence to 'application/json'
|
|
3278
|
+
if (produces.indexOf('application/json') >= 0) {
|
|
3279
|
+
localVarHeaderParams.Accept = 'application/json';
|
|
3280
|
+
}
|
|
3281
|
+
else {
|
|
3282
|
+
localVarHeaderParams.Accept = produces.join(',');
|
|
3283
|
+
}
|
|
3284
|
+
let localVarFormParams = {};
|
|
3285
|
+
// verify required parameter 'projectId' is not null or undefined
|
|
3286
|
+
if (projectId === null || projectId === undefined) {
|
|
3287
|
+
throw new Error('Required parameter projectId was null or undefined when calling hasLabelNoiseData.');
|
|
3288
|
+
}
|
|
3289
|
+
Object.assign(localVarHeaderParams, options.headers);
|
|
3290
|
+
Object.assign(localVarHeaderParams, this.opts.extraHeaders);
|
|
3291
|
+
let localVarUseFormData = false;
|
|
3292
|
+
let localVarRequestOptions = {
|
|
3293
|
+
method: 'GET',
|
|
3294
|
+
qs: localVarQueryParameters,
|
|
3295
|
+
headers: localVarHeaderParams,
|
|
3296
|
+
uri: localVarPath,
|
|
3297
|
+
useQuerystring: this._useQuerystring,
|
|
3298
|
+
agentOptions: { keepAlive: false },
|
|
3299
|
+
json: true,
|
|
3300
|
+
};
|
|
3301
|
+
let authenticationPromise = Promise.resolve();
|
|
3302
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.ApiKeyAuthentication.applyToRequest(localVarRequestOptions));
|
|
3303
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.JWTAuthentication.applyToRequest(localVarRequestOptions));
|
|
3304
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.JWTHttpHeaderAuthentication.applyToRequest(localVarRequestOptions));
|
|
3305
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
|
|
3306
|
+
return authenticationPromise.then(() => {
|
|
3307
|
+
if (Object.keys(localVarFormParams).length) {
|
|
3308
|
+
if (localVarUseFormData) {
|
|
3309
|
+
localVarRequestOptions.formData = localVarFormParams;
|
|
3310
|
+
}
|
|
3311
|
+
else {
|
|
3312
|
+
localVarRequestOptions.form = localVarFormParams;
|
|
3313
|
+
}
|
|
3314
|
+
}
|
|
3315
|
+
return new Promise((resolve, reject) => {
|
|
3316
|
+
localVarRequest(localVarRequestOptions, (error, response, body) => {
|
|
3317
|
+
if (error) {
|
|
3318
|
+
reject(error);
|
|
3319
|
+
}
|
|
3320
|
+
else {
|
|
3321
|
+
body = models_1.ObjectSerializer.deserialize(body, "HasDataExplorerFeaturesResponse");
|
|
3322
|
+
const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
|
|
3323
|
+
if (typeof body.success === 'boolean' && !body.success) {
|
|
3324
|
+
reject(new Error(body.error || errString));
|
|
3325
|
+
}
|
|
3326
|
+
else if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
3327
|
+
resolve(body);
|
|
3328
|
+
}
|
|
3329
|
+
else {
|
|
3330
|
+
reject(errString);
|
|
3331
|
+
}
|
|
3332
|
+
}
|
|
3333
|
+
});
|
|
3334
|
+
});
|
|
3335
|
+
});
|
|
3336
|
+
}
|
|
3337
|
+
/**
|
|
3338
|
+
* Retrieve all raw data by category.
|
|
3339
|
+
* @summary List samples
|
|
3340
|
+
* @param projectId Project ID
|
|
3341
|
+
* @param category Which of the three acquisition categories to retrieve data from
|
|
3342
|
+
* @param limit Maximum number of results
|
|
3343
|
+
* @param offset Offset in results, can be used in conjunction with LimitResultsParameter to implement paging.
|
|
3344
|
+
* @param excludeSensors Whether to exclude sensors in the response (as these can slow down requests when you have large pages).
|
|
3345
|
+
* @param labels Only include samples with a label within the given list of labels, given as a JSON string
|
|
3346
|
+
* @param filename Only include samples whose filename includes the given filename
|
|
3347
|
+
* @param maxLength Only include samples shorter than the given length, in milliseconds
|
|
3348
|
+
* @param minLength Only include samples longer than the given length, in milliseconds
|
|
3349
|
+
* @param minFrequency Only include samples with higher frequency than given frequency, in hertz
|
|
3350
|
+
* @param maxFrequency Only include samples with lower frequency than given frequency, in hertz
|
|
3351
|
+
* @param signatureValidity Include samples with either valid or invalid signatures
|
|
3352
|
+
* @param includeDisabled Include only enabled or disabled samples (or both)
|
|
3353
|
+
*/
|
|
3354
|
+
async listSamples(projectId, queryParams, options = { headers: {} }) {
|
|
3355
|
+
const localVarPath = this.basePath + '/api/{projectId}/raw-data'
|
|
3356
|
+
.replace('{' + 'projectId' + '}', encodeURIComponent(String(projectId)));
|
|
3357
|
+
let localVarQueryParameters = {};
|
|
3358
|
+
let localVarHeaderParams = Object.assign({
|
|
3359
|
+
'User-Agent': 'edgeimpulse-api nodejs'
|
|
3360
|
+
}, this.defaultHeaders);
|
|
3361
|
+
const produces = ['application/json'];
|
|
3362
|
+
// give precedence to 'application/json'
|
|
3363
|
+
if (produces.indexOf('application/json') >= 0) {
|
|
3364
|
+
localVarHeaderParams.Accept = 'application/json';
|
|
3365
|
+
}
|
|
3366
|
+
else {
|
|
3367
|
+
localVarHeaderParams.Accept = produces.join(',');
|
|
3368
|
+
}
|
|
3369
|
+
let localVarFormParams = {};
|
|
3370
|
+
// verify required parameter 'projectId' is not null or undefined
|
|
3371
|
+
if (projectId === null || projectId === undefined) {
|
|
3372
|
+
throw new Error('Required parameter projectId was null or undefined when calling listSamples.');
|
|
3373
|
+
}
|
|
3374
|
+
// verify required parameter 'category' is not null or undefined
|
|
3375
|
+
if (queryParams.category === null || queryParams.category === undefined) {
|
|
3376
|
+
throw new Error('Required parameter queryParams.category was null or undefined when calling listSamples.');
|
|
3377
|
+
}
|
|
3378
|
+
if (queryParams.category !== undefined) {
|
|
3379
|
+
localVarQueryParameters['category'] = models_1.ObjectSerializer.serialize(queryParams.category, "'training' | 'testing' | 'anomaly'");
|
|
3380
|
+
}
|
|
3381
|
+
if (queryParams.limit !== undefined) {
|
|
3382
|
+
localVarQueryParameters['limit'] = models_1.ObjectSerializer.serialize(queryParams.limit, "number");
|
|
3383
|
+
}
|
|
3384
|
+
if (queryParams.offset !== undefined) {
|
|
3385
|
+
localVarQueryParameters['offset'] = models_1.ObjectSerializer.serialize(queryParams.offset, "number");
|
|
3386
|
+
}
|
|
3387
|
+
if (queryParams.excludeSensors !== undefined) {
|
|
3388
|
+
localVarQueryParameters['excludeSensors'] = models_1.ObjectSerializer.serialize(queryParams.excludeSensors, "boolean");
|
|
3389
|
+
}
|
|
3390
|
+
if (queryParams.labels !== undefined) {
|
|
3391
|
+
localVarQueryParameters['labels'] = models_1.ObjectSerializer.serialize(queryParams.labels, "string");
|
|
3392
|
+
}
|
|
3393
|
+
if (queryParams.filename !== undefined) {
|
|
3394
|
+
localVarQueryParameters['filename'] = models_1.ObjectSerializer.serialize(queryParams.filename, "string");
|
|
3395
|
+
}
|
|
3396
|
+
if (queryParams.maxLength !== undefined) {
|
|
3397
|
+
localVarQueryParameters['maxLength'] = models_1.ObjectSerializer.serialize(queryParams.maxLength, "number");
|
|
3398
|
+
}
|
|
3399
|
+
if (queryParams.minLength !== undefined) {
|
|
3400
|
+
localVarQueryParameters['minLength'] = models_1.ObjectSerializer.serialize(queryParams.minLength, "number");
|
|
3401
|
+
}
|
|
3402
|
+
if (queryParams.minFrequency !== undefined) {
|
|
3403
|
+
localVarQueryParameters['minFrequency'] = models_1.ObjectSerializer.serialize(queryParams.minFrequency, "number");
|
|
3404
|
+
}
|
|
3405
|
+
if (queryParams.maxFrequency !== undefined) {
|
|
3406
|
+
localVarQueryParameters['maxFrequency'] = models_1.ObjectSerializer.serialize(queryParams.maxFrequency, "number");
|
|
3407
|
+
}
|
|
3408
|
+
if (queryParams.signatureValidity !== undefined) {
|
|
3409
|
+
localVarQueryParameters['signatureValidity'] = models_1.ObjectSerializer.serialize(queryParams.signatureValidity, "'both' | 'valid' | 'invalid'");
|
|
3410
|
+
}
|
|
3411
|
+
if (queryParams.includeDisabled !== undefined) {
|
|
3412
|
+
localVarQueryParameters['includeDisabled'] = models_1.ObjectSerializer.serialize(queryParams.includeDisabled, "'both' | 'enabled' | 'disabled'");
|
|
3413
|
+
}
|
|
3414
|
+
Object.assign(localVarHeaderParams, options.headers);
|
|
3415
|
+
Object.assign(localVarHeaderParams, this.opts.extraHeaders);
|
|
3416
|
+
let localVarUseFormData = false;
|
|
3417
|
+
let localVarRequestOptions = {
|
|
3418
|
+
method: 'GET',
|
|
3419
|
+
qs: localVarQueryParameters,
|
|
3420
|
+
headers: localVarHeaderParams,
|
|
3421
|
+
uri: localVarPath,
|
|
3422
|
+
useQuerystring: this._useQuerystring,
|
|
3423
|
+
agentOptions: { keepAlive: false },
|
|
3424
|
+
json: true,
|
|
3425
|
+
};
|
|
3426
|
+
let authenticationPromise = Promise.resolve();
|
|
3427
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.ApiKeyAuthentication.applyToRequest(localVarRequestOptions));
|
|
3428
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.JWTAuthentication.applyToRequest(localVarRequestOptions));
|
|
3429
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.JWTHttpHeaderAuthentication.applyToRequest(localVarRequestOptions));
|
|
3430
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
|
|
3431
|
+
return authenticationPromise.then(() => {
|
|
3432
|
+
if (Object.keys(localVarFormParams).length) {
|
|
3433
|
+
if (localVarUseFormData) {
|
|
3434
|
+
localVarRequestOptions.formData = localVarFormParams;
|
|
3435
|
+
}
|
|
3436
|
+
else {
|
|
3437
|
+
localVarRequestOptions.form = localVarFormParams;
|
|
3438
|
+
}
|
|
3439
|
+
}
|
|
3440
|
+
return new Promise((resolve, reject) => {
|
|
3441
|
+
localVarRequest(localVarRequestOptions, (error, response, body) => {
|
|
3442
|
+
if (error) {
|
|
3443
|
+
reject(error);
|
|
3444
|
+
}
|
|
3445
|
+
else {
|
|
3446
|
+
body = models_1.ObjectSerializer.deserialize(body, "ListSamplesResponse");
|
|
3447
|
+
const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
|
|
3448
|
+
if (typeof body.success === 'boolean' && !body.success) {
|
|
3449
|
+
reject(new Error(body.error || errString));
|
|
3450
|
+
}
|
|
3451
|
+
else if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
3452
|
+
resolve(body);
|
|
3453
|
+
}
|
|
3454
|
+
else {
|
|
3455
|
+
reject(errString);
|
|
3456
|
+
}
|
|
3457
|
+
}
|
|
3458
|
+
});
|
|
3459
|
+
});
|
|
3460
|
+
});
|
|
3461
|
+
}
|
|
3462
|
+
/**
|
|
3463
|
+
* Move a sample to another category (e.g. from test to training).
|
|
3464
|
+
* @summary Move sample
|
|
3465
|
+
* @param projectId Project ID
|
|
3466
|
+
* @param sampleId Sample ID
|
|
3467
|
+
* @param moveRawDataRequest
|
|
2581
3468
|
*/
|
|
2582
|
-
async
|
|
2583
|
-
const localVarPath = this.basePath + '/api/{projectId}/raw-data/{sampleId}/
|
|
3469
|
+
async moveSample(projectId, sampleId, moveRawDataRequest, options = { headers: {} }) {
|
|
3470
|
+
const localVarPath = this.basePath + '/api/{projectId}/raw-data/{sampleId}/move'
|
|
2584
3471
|
.replace('{' + 'projectId' + '}', encodeURIComponent(String(projectId)))
|
|
2585
3472
|
.replace('{' + 'sampleId' + '}', encodeURIComponent(String(sampleId)));
|
|
2586
3473
|
let localVarQueryParameters = {};
|
|
@@ -2598,32 +3485,28 @@ class RawDataApi {
|
|
|
2598
3485
|
let localVarFormParams = {};
|
|
2599
3486
|
// verify required parameter 'projectId' is not null or undefined
|
|
2600
3487
|
if (projectId === null || projectId === undefined) {
|
|
2601
|
-
throw new Error('Required parameter projectId was null or undefined when calling
|
|
3488
|
+
throw new Error('Required parameter projectId was null or undefined when calling moveSample.');
|
|
2602
3489
|
}
|
|
2603
3490
|
// verify required parameter 'sampleId' is not null or undefined
|
|
2604
3491
|
if (sampleId === null || sampleId === undefined) {
|
|
2605
|
-
throw new Error('Required parameter sampleId was null or undefined when calling
|
|
2606
|
-
}
|
|
2607
|
-
if (queryParams.limitPayloadValues !== undefined) {
|
|
2608
|
-
localVarQueryParameters['limitPayloadValues'] = models_1.ObjectSerializer.serialize(queryParams.limitPayloadValues, "number");
|
|
2609
|
-
}
|
|
2610
|
-
if (queryParams.zoomStart !== undefined) {
|
|
2611
|
-
localVarQueryParameters['zoomStart'] = models_1.ObjectSerializer.serialize(queryParams.zoomStart, "number");
|
|
3492
|
+
throw new Error('Required parameter sampleId was null or undefined when calling moveSample.');
|
|
2612
3493
|
}
|
|
2613
|
-
|
|
2614
|
-
|
|
3494
|
+
// verify required parameter 'moveRawDataRequest' is not null or undefined
|
|
3495
|
+
if (moveRawDataRequest === null || moveRawDataRequest === undefined) {
|
|
3496
|
+
throw new Error('Required parameter moveRawDataRequest was null or undefined when calling moveSample.');
|
|
2615
3497
|
}
|
|
2616
3498
|
Object.assign(localVarHeaderParams, options.headers);
|
|
2617
3499
|
Object.assign(localVarHeaderParams, this.opts.extraHeaders);
|
|
2618
3500
|
let localVarUseFormData = false;
|
|
2619
3501
|
let localVarRequestOptions = {
|
|
2620
|
-
method: '
|
|
3502
|
+
method: 'POST',
|
|
2621
3503
|
qs: localVarQueryParameters,
|
|
2622
3504
|
headers: localVarHeaderParams,
|
|
2623
3505
|
uri: localVarPath,
|
|
2624
3506
|
useQuerystring: this._useQuerystring,
|
|
2625
3507
|
agentOptions: { keepAlive: false },
|
|
2626
3508
|
json: true,
|
|
3509
|
+
body: models_1.ObjectSerializer.serialize(moveRawDataRequest, "MoveRawDataRequest")
|
|
2627
3510
|
};
|
|
2628
3511
|
let authenticationPromise = Promise.resolve();
|
|
2629
3512
|
authenticationPromise = authenticationPromise.then(() => this.authentications.ApiKeyAuthentication.applyToRequest(localVarRequestOptions));
|
|
@@ -2645,7 +3528,7 @@ class RawDataApi {
|
|
|
2645
3528
|
reject(error);
|
|
2646
3529
|
}
|
|
2647
3530
|
else {
|
|
2648
|
-
body = models_1.ObjectSerializer.deserialize(body, "
|
|
3531
|
+
body = models_1.ObjectSerializer.deserialize(body, "GenericApiResponse");
|
|
2649
3532
|
const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
|
|
2650
3533
|
if (typeof body.success === 'boolean' && !body.success) {
|
|
2651
3534
|
reject(new Error(body.error || errString));
|
|
@@ -2662,13 +3545,15 @@ class RawDataApi {
|
|
|
2662
3545
|
});
|
|
2663
3546
|
}
|
|
2664
3547
|
/**
|
|
2665
|
-
*
|
|
2666
|
-
* @summary
|
|
3548
|
+
* Clears the bounding box labels and moves item back to labeling queue
|
|
3549
|
+
* @summary Move sample to labeling queue
|
|
2667
3550
|
* @param projectId Project ID
|
|
3551
|
+
* @param sampleId Sample ID
|
|
2668
3552
|
*/
|
|
2669
|
-
async
|
|
2670
|
-
const localVarPath = this.basePath + '/api/{projectId}/raw-data/
|
|
2671
|
-
.replace('{' + 'projectId' + '}', encodeURIComponent(String(projectId)))
|
|
3553
|
+
async moveToLabelingQueue(projectId, sampleId, options = { headers: {} }) {
|
|
3554
|
+
const localVarPath = this.basePath + '/api/{projectId}/raw-data/{sampleId}/to-labeling-queue'
|
|
3555
|
+
.replace('{' + 'projectId' + '}', encodeURIComponent(String(projectId)))
|
|
3556
|
+
.replace('{' + 'sampleId' + '}', encodeURIComponent(String(sampleId)));
|
|
2672
3557
|
let localVarQueryParameters = {};
|
|
2673
3558
|
let localVarHeaderParams = Object.assign({
|
|
2674
3559
|
'User-Agent': 'edgeimpulse-api nodejs'
|
|
@@ -2684,13 +3569,17 @@ class RawDataApi {
|
|
|
2684
3569
|
let localVarFormParams = {};
|
|
2685
3570
|
// verify required parameter 'projectId' is not null or undefined
|
|
2686
3571
|
if (projectId === null || projectId === undefined) {
|
|
2687
|
-
throw new Error('Required parameter projectId was null or undefined when calling
|
|
3572
|
+
throw new Error('Required parameter projectId was null or undefined when calling moveToLabelingQueue.');
|
|
3573
|
+
}
|
|
3574
|
+
// verify required parameter 'sampleId' is not null or undefined
|
|
3575
|
+
if (sampleId === null || sampleId === undefined) {
|
|
3576
|
+
throw new Error('Required parameter sampleId was null or undefined when calling moveToLabelingQueue.');
|
|
2688
3577
|
}
|
|
2689
3578
|
Object.assign(localVarHeaderParams, options.headers);
|
|
2690
3579
|
Object.assign(localVarHeaderParams, this.opts.extraHeaders);
|
|
2691
3580
|
let localVarUseFormData = false;
|
|
2692
3581
|
let localVarRequestOptions = {
|
|
2693
|
-
method: '
|
|
3582
|
+
method: 'POST',
|
|
2694
3583
|
qs: localVarQueryParameters,
|
|
2695
3584
|
headers: localVarHeaderParams,
|
|
2696
3585
|
uri: localVarPath,
|
|
@@ -2718,7 +3607,7 @@ class RawDataApi {
|
|
|
2718
3607
|
reject(error);
|
|
2719
3608
|
}
|
|
2720
3609
|
else {
|
|
2721
|
-
body = models_1.ObjectSerializer.deserialize(body, "
|
|
3610
|
+
body = models_1.ObjectSerializer.deserialize(body, "GenericApiResponse");
|
|
2722
3611
|
const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
|
|
2723
3612
|
if (typeof body.success === 'boolean' && !body.success) {
|
|
2724
3613
|
reject(new Error(body.error || errString));
|
|
@@ -2735,24 +3624,12 @@ class RawDataApi {
|
|
|
2735
3624
|
});
|
|
2736
3625
|
}
|
|
2737
3626
|
/**
|
|
2738
|
-
*
|
|
2739
|
-
* @summary
|
|
3627
|
+
* Rebalances the dataset over training / testing categories. This resets the category for all data and splits it 80%/20% between training and testing. This is a deterministic process based on the hash of the name of the data.
|
|
3628
|
+
* @summary Rebalance dataset
|
|
2740
3629
|
* @param projectId Project ID
|
|
2741
|
-
* @param category Which of the three acquisition categories to retrieve data from
|
|
2742
|
-
* @param limit Maximum number of results
|
|
2743
|
-
* @param offset Offset in results, can be used in conjunction with LimitResultsParameter to implement paging.
|
|
2744
|
-
* @param excludeSensors Whether to exclude sensors in the response (as these can slow down requests when you have large pages).
|
|
2745
|
-
* @param labels Only include samples with a label within the given list of labels, given as a JSON string
|
|
2746
|
-
* @param filename Only include samples whose filename includes the given filename
|
|
2747
|
-
* @param maxLength Only include samples shorter than the given length, in milliseconds
|
|
2748
|
-
* @param minLength Only include samples longer than the given length, in milliseconds
|
|
2749
|
-
* @param minFrequency Only include samples with higher frequency than given frequency, in hertz
|
|
2750
|
-
* @param maxFrequency Only include samples with lower frequency than given frequency, in hertz
|
|
2751
|
-
* @param signatureValidity Include samples with either valid or invalid signatures
|
|
2752
|
-
* @param includeDisabled Include only enabled or disabled samples (or both)
|
|
2753
3630
|
*/
|
|
2754
|
-
async
|
|
2755
|
-
const localVarPath = this.basePath + '/api/{projectId}/
|
|
3631
|
+
async rebalanceDataset(projectId, options = { headers: {} }) {
|
|
3632
|
+
const localVarPath = this.basePath + '/api/{projectId}/rebalance'
|
|
2756
3633
|
.replace('{' + 'projectId' + '}', encodeURIComponent(String(projectId)));
|
|
2757
3634
|
let localVarQueryParameters = {};
|
|
2758
3635
|
let localVarHeaderParams = Object.assign({
|
|
@@ -2769,53 +3646,13 @@ class RawDataApi {
|
|
|
2769
3646
|
let localVarFormParams = {};
|
|
2770
3647
|
// verify required parameter 'projectId' is not null or undefined
|
|
2771
3648
|
if (projectId === null || projectId === undefined) {
|
|
2772
|
-
throw new Error('Required parameter projectId was null or undefined when calling
|
|
2773
|
-
}
|
|
2774
|
-
// verify required parameter 'category' is not null or undefined
|
|
2775
|
-
if (queryParams.category === null || queryParams.category === undefined) {
|
|
2776
|
-
throw new Error('Required parameter queryParams.category was null or undefined when calling listSamples.');
|
|
2777
|
-
}
|
|
2778
|
-
if (queryParams.category !== undefined) {
|
|
2779
|
-
localVarQueryParameters['category'] = models_1.ObjectSerializer.serialize(queryParams.category, "'training' | 'testing' | 'anomaly'");
|
|
2780
|
-
}
|
|
2781
|
-
if (queryParams.limit !== undefined) {
|
|
2782
|
-
localVarQueryParameters['limit'] = models_1.ObjectSerializer.serialize(queryParams.limit, "number");
|
|
2783
|
-
}
|
|
2784
|
-
if (queryParams.offset !== undefined) {
|
|
2785
|
-
localVarQueryParameters['offset'] = models_1.ObjectSerializer.serialize(queryParams.offset, "number");
|
|
2786
|
-
}
|
|
2787
|
-
if (queryParams.excludeSensors !== undefined) {
|
|
2788
|
-
localVarQueryParameters['excludeSensors'] = models_1.ObjectSerializer.serialize(queryParams.excludeSensors, "boolean");
|
|
2789
|
-
}
|
|
2790
|
-
if (queryParams.labels !== undefined) {
|
|
2791
|
-
localVarQueryParameters['labels'] = models_1.ObjectSerializer.serialize(queryParams.labels, "string");
|
|
2792
|
-
}
|
|
2793
|
-
if (queryParams.filename !== undefined) {
|
|
2794
|
-
localVarQueryParameters['filename'] = models_1.ObjectSerializer.serialize(queryParams.filename, "string");
|
|
2795
|
-
}
|
|
2796
|
-
if (queryParams.maxLength !== undefined) {
|
|
2797
|
-
localVarQueryParameters['maxLength'] = models_1.ObjectSerializer.serialize(queryParams.maxLength, "number");
|
|
2798
|
-
}
|
|
2799
|
-
if (queryParams.minLength !== undefined) {
|
|
2800
|
-
localVarQueryParameters['minLength'] = models_1.ObjectSerializer.serialize(queryParams.minLength, "number");
|
|
2801
|
-
}
|
|
2802
|
-
if (queryParams.minFrequency !== undefined) {
|
|
2803
|
-
localVarQueryParameters['minFrequency'] = models_1.ObjectSerializer.serialize(queryParams.minFrequency, "number");
|
|
2804
|
-
}
|
|
2805
|
-
if (queryParams.maxFrequency !== undefined) {
|
|
2806
|
-
localVarQueryParameters['maxFrequency'] = models_1.ObjectSerializer.serialize(queryParams.maxFrequency, "number");
|
|
2807
|
-
}
|
|
2808
|
-
if (queryParams.signatureValidity !== undefined) {
|
|
2809
|
-
localVarQueryParameters['signatureValidity'] = models_1.ObjectSerializer.serialize(queryParams.signatureValidity, "'both' | 'valid' | 'invalid'");
|
|
2810
|
-
}
|
|
2811
|
-
if (queryParams.includeDisabled !== undefined) {
|
|
2812
|
-
localVarQueryParameters['includeDisabled'] = models_1.ObjectSerializer.serialize(queryParams.includeDisabled, "'both' | 'enabled' | 'disabled'");
|
|
3649
|
+
throw new Error('Required parameter projectId was null or undefined when calling rebalanceDataset.');
|
|
2813
3650
|
}
|
|
2814
3651
|
Object.assign(localVarHeaderParams, options.headers);
|
|
2815
3652
|
Object.assign(localVarHeaderParams, this.opts.extraHeaders);
|
|
2816
3653
|
let localVarUseFormData = false;
|
|
2817
3654
|
let localVarRequestOptions = {
|
|
2818
|
-
method: '
|
|
3655
|
+
method: 'POST',
|
|
2819
3656
|
qs: localVarQueryParameters,
|
|
2820
3657
|
headers: localVarHeaderParams,
|
|
2821
3658
|
uri: localVarPath,
|
|
@@ -2843,7 +3680,7 @@ class RawDataApi {
|
|
|
2843
3680
|
reject(error);
|
|
2844
3681
|
}
|
|
2845
3682
|
else {
|
|
2846
|
-
body = models_1.ObjectSerializer.deserialize(body, "
|
|
3683
|
+
body = models_1.ObjectSerializer.deserialize(body, "RebalanceDatasetResponse");
|
|
2847
3684
|
const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
|
|
2848
3685
|
if (typeof body.success === 'boolean' && !body.success) {
|
|
2849
3686
|
reject(new Error(body.error || errString));
|
|
@@ -2860,14 +3697,14 @@ class RawDataApi {
|
|
|
2860
3697
|
});
|
|
2861
3698
|
}
|
|
2862
3699
|
/**
|
|
2863
|
-
*
|
|
2864
|
-
* @summary
|
|
3700
|
+
* Sets the file name of the sample. This name does not need to be unique, but it\'s highly recommended to do so.
|
|
3701
|
+
* @summary Rename sample
|
|
2865
3702
|
* @param projectId Project ID
|
|
2866
3703
|
* @param sampleId Sample ID
|
|
2867
|
-
* @param
|
|
3704
|
+
* @param renameSampleRequest
|
|
2868
3705
|
*/
|
|
2869
|
-
async
|
|
2870
|
-
const localVarPath = this.basePath + '/api/{projectId}/raw-data/{sampleId}/
|
|
3706
|
+
async renameSample(projectId, sampleId, renameSampleRequest, options = { headers: {} }) {
|
|
3707
|
+
const localVarPath = this.basePath + '/api/{projectId}/raw-data/{sampleId}/rename'
|
|
2871
3708
|
.replace('{' + 'projectId' + '}', encodeURIComponent(String(projectId)))
|
|
2872
3709
|
.replace('{' + 'sampleId' + '}', encodeURIComponent(String(sampleId)));
|
|
2873
3710
|
let localVarQueryParameters = {};
|
|
@@ -2885,15 +3722,15 @@ class RawDataApi {
|
|
|
2885
3722
|
let localVarFormParams = {};
|
|
2886
3723
|
// verify required parameter 'projectId' is not null or undefined
|
|
2887
3724
|
if (projectId === null || projectId === undefined) {
|
|
2888
|
-
throw new Error('Required parameter projectId was null or undefined when calling
|
|
3725
|
+
throw new Error('Required parameter projectId was null or undefined when calling renameSample.');
|
|
2889
3726
|
}
|
|
2890
3727
|
// verify required parameter 'sampleId' is not null or undefined
|
|
2891
3728
|
if (sampleId === null || sampleId === undefined) {
|
|
2892
|
-
throw new Error('Required parameter sampleId was null or undefined when calling
|
|
3729
|
+
throw new Error('Required parameter sampleId was null or undefined when calling renameSample.');
|
|
2893
3730
|
}
|
|
2894
|
-
// verify required parameter '
|
|
2895
|
-
if (
|
|
2896
|
-
throw new Error('Required parameter
|
|
3731
|
+
// verify required parameter 'renameSampleRequest' is not null or undefined
|
|
3732
|
+
if (renameSampleRequest === null || renameSampleRequest === undefined) {
|
|
3733
|
+
throw new Error('Required parameter renameSampleRequest was null or undefined when calling renameSample.');
|
|
2897
3734
|
}
|
|
2898
3735
|
Object.assign(localVarHeaderParams, options.headers);
|
|
2899
3736
|
Object.assign(localVarHeaderParams, this.opts.extraHeaders);
|
|
@@ -2906,7 +3743,7 @@ class RawDataApi {
|
|
|
2906
3743
|
useQuerystring: this._useQuerystring,
|
|
2907
3744
|
agentOptions: { keepAlive: false },
|
|
2908
3745
|
json: true,
|
|
2909
|
-
body: models_1.ObjectSerializer.serialize(
|
|
3746
|
+
body: models_1.ObjectSerializer.serialize(renameSampleRequest, "RenameSampleRequest")
|
|
2910
3747
|
};
|
|
2911
3748
|
let authenticationPromise = Promise.resolve();
|
|
2912
3749
|
authenticationPromise = authenticationPromise.then(() => this.authentications.ApiKeyAuthentication.applyToRequest(localVarRequestOptions));
|
|
@@ -2945,13 +3782,15 @@ class RawDataApi {
|
|
|
2945
3782
|
});
|
|
2946
3783
|
}
|
|
2947
3784
|
/**
|
|
2948
|
-
*
|
|
2949
|
-
* @summary
|
|
3785
|
+
* If a sample failed processing, retry the processing operation.
|
|
3786
|
+
* @summary Retry processing
|
|
2950
3787
|
* @param projectId Project ID
|
|
3788
|
+
* @param sampleId Sample ID
|
|
2951
3789
|
*/
|
|
2952
|
-
async
|
|
2953
|
-
const localVarPath = this.basePath + '/api/{projectId}/
|
|
2954
|
-
.replace('{' + 'projectId' + '}', encodeURIComponent(String(projectId)))
|
|
3790
|
+
async retryProcessing(projectId, sampleId, options = { headers: {} }) {
|
|
3791
|
+
const localVarPath = this.basePath + '/api/{projectId}/raw-data/{sampleId}/retry-processing'
|
|
3792
|
+
.replace('{' + 'projectId' + '}', encodeURIComponent(String(projectId)))
|
|
3793
|
+
.replace('{' + 'sampleId' + '}', encodeURIComponent(String(sampleId)));
|
|
2955
3794
|
let localVarQueryParameters = {};
|
|
2956
3795
|
let localVarHeaderParams = Object.assign({
|
|
2957
3796
|
'User-Agent': 'edgeimpulse-api nodejs'
|
|
@@ -2967,7 +3806,11 @@ class RawDataApi {
|
|
|
2967
3806
|
let localVarFormParams = {};
|
|
2968
3807
|
// verify required parameter 'projectId' is not null or undefined
|
|
2969
3808
|
if (projectId === null || projectId === undefined) {
|
|
2970
|
-
throw new Error('Required parameter projectId was null or undefined when calling
|
|
3809
|
+
throw new Error('Required parameter projectId was null or undefined when calling retryProcessing.');
|
|
3810
|
+
}
|
|
3811
|
+
// verify required parameter 'sampleId' is not null or undefined
|
|
3812
|
+
if (sampleId === null || sampleId === undefined) {
|
|
3813
|
+
throw new Error('Required parameter sampleId was null or undefined when calling retryProcessing.');
|
|
2971
3814
|
}
|
|
2972
3815
|
Object.assign(localVarHeaderParams, options.headers);
|
|
2973
3816
|
Object.assign(localVarHeaderParams, this.opts.extraHeaders);
|
|
@@ -3001,7 +3844,7 @@ class RawDataApi {
|
|
|
3001
3844
|
reject(error);
|
|
3002
3845
|
}
|
|
3003
3846
|
else {
|
|
3004
|
-
body = models_1.ObjectSerializer.deserialize(body, "
|
|
3847
|
+
body = models_1.ObjectSerializer.deserialize(body, "GenericApiResponse");
|
|
3005
3848
|
const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
|
|
3006
3849
|
if (typeof body.success === 'boolean' && !body.success) {
|
|
3007
3850
|
reject(new Error(body.error || errString));
|
|
@@ -3018,16 +3861,14 @@ class RawDataApi {
|
|
|
3018
3861
|
});
|
|
3019
3862
|
}
|
|
3020
3863
|
/**
|
|
3021
|
-
*
|
|
3022
|
-
* @summary
|
|
3864
|
+
* Run the auto-labeler over all unlabeled data.
|
|
3865
|
+
* @summary Run auto-labeler job
|
|
3023
3866
|
* @param projectId Project ID
|
|
3024
|
-
* @param
|
|
3025
|
-
* @param renameSampleRequest
|
|
3867
|
+
* @param runAutoLabelerRequest
|
|
3026
3868
|
*/
|
|
3027
|
-
async
|
|
3028
|
-
const localVarPath = this.basePath + '/api/{projectId}/raw-data/
|
|
3029
|
-
.replace('{' + 'projectId' + '}', encodeURIComponent(String(projectId)))
|
|
3030
|
-
.replace('{' + 'sampleId' + '}', encodeURIComponent(String(sampleId)));
|
|
3869
|
+
async runAutoLabeler(projectId, runAutoLabelerRequest, options = { headers: {} }) {
|
|
3870
|
+
const localVarPath = this.basePath + '/api/{projectId}/raw-data/auto-labeler/run'
|
|
3871
|
+
.replace('{' + 'projectId' + '}', encodeURIComponent(String(projectId)));
|
|
3031
3872
|
let localVarQueryParameters = {};
|
|
3032
3873
|
let localVarHeaderParams = Object.assign({
|
|
3033
3874
|
'User-Agent': 'edgeimpulse-api nodejs'
|
|
@@ -3043,15 +3884,11 @@ class RawDataApi {
|
|
|
3043
3884
|
let localVarFormParams = {};
|
|
3044
3885
|
// verify required parameter 'projectId' is not null or undefined
|
|
3045
3886
|
if (projectId === null || projectId === undefined) {
|
|
3046
|
-
throw new Error('Required parameter projectId was null or undefined when calling
|
|
3887
|
+
throw new Error('Required parameter projectId was null or undefined when calling runAutoLabeler.');
|
|
3047
3888
|
}
|
|
3048
|
-
// verify required parameter '
|
|
3049
|
-
if (
|
|
3050
|
-
throw new Error('Required parameter
|
|
3051
|
-
}
|
|
3052
|
-
// verify required parameter 'renameSampleRequest' is not null or undefined
|
|
3053
|
-
if (renameSampleRequest === null || renameSampleRequest === undefined) {
|
|
3054
|
-
throw new Error('Required parameter renameSampleRequest was null or undefined when calling renameSample.');
|
|
3889
|
+
// verify required parameter 'runAutoLabelerRequest' is not null or undefined
|
|
3890
|
+
if (runAutoLabelerRequest === null || runAutoLabelerRequest === undefined) {
|
|
3891
|
+
throw new Error('Required parameter runAutoLabelerRequest was null or undefined when calling runAutoLabeler.');
|
|
3055
3892
|
}
|
|
3056
3893
|
Object.assign(localVarHeaderParams, options.headers);
|
|
3057
3894
|
Object.assign(localVarHeaderParams, this.opts.extraHeaders);
|
|
@@ -3064,7 +3901,7 @@ class RawDataApi {
|
|
|
3064
3901
|
useQuerystring: this._useQuerystring,
|
|
3065
3902
|
agentOptions: { keepAlive: false },
|
|
3066
3903
|
json: true,
|
|
3067
|
-
body: models_1.ObjectSerializer.serialize(
|
|
3904
|
+
body: models_1.ObjectSerializer.serialize(runAutoLabelerRequest, "RunAutoLabelerRequest")
|
|
3068
3905
|
};
|
|
3069
3906
|
let authenticationPromise = Promise.resolve();
|
|
3070
3907
|
authenticationPromise = authenticationPromise.then(() => this.authentications.ApiKeyAuthentication.applyToRequest(localVarRequestOptions));
|
|
@@ -3086,7 +3923,7 @@ class RawDataApi {
|
|
|
3086
3923
|
reject(error);
|
|
3087
3924
|
}
|
|
3088
3925
|
else {
|
|
3089
|
-
body = models_1.ObjectSerializer.deserialize(body, "
|
|
3926
|
+
body = models_1.ObjectSerializer.deserialize(body, "StartJobResponse");
|
|
3090
3927
|
const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
|
|
3091
3928
|
if (typeof body.success === 'boolean' && !body.success) {
|
|
3092
3929
|
reject(new Error(body.error || errString));
|
|
@@ -3103,15 +3940,14 @@ class RawDataApi {
|
|
|
3103
3940
|
});
|
|
3104
3941
|
}
|
|
3105
3942
|
/**
|
|
3106
|
-
*
|
|
3107
|
-
* @summary
|
|
3943
|
+
* Set labels for all auto-segment clusters.
|
|
3944
|
+
* @summary Save auto-labeler clusters
|
|
3108
3945
|
* @param projectId Project ID
|
|
3109
|
-
* @param
|
|
3946
|
+
* @param saveAutoLabelerClustersRequest
|
|
3110
3947
|
*/
|
|
3111
|
-
async
|
|
3112
|
-
const localVarPath = this.basePath + '/api/{projectId}/raw-data/
|
|
3113
|
-
.replace('{' + 'projectId' + '}', encodeURIComponent(String(projectId)))
|
|
3114
|
-
.replace('{' + 'sampleId' + '}', encodeURIComponent(String(sampleId)));
|
|
3948
|
+
async saveAutoLabelerClusters(projectId, saveAutoLabelerClustersRequest, options = { headers: {} }) {
|
|
3949
|
+
const localVarPath = this.basePath + '/api/{projectId}/raw-data/auto-labeler/save'
|
|
3950
|
+
.replace('{' + 'projectId' + '}', encodeURIComponent(String(projectId)));
|
|
3115
3951
|
let localVarQueryParameters = {};
|
|
3116
3952
|
let localVarHeaderParams = Object.assign({
|
|
3117
3953
|
'User-Agent': 'edgeimpulse-api nodejs'
|
|
@@ -3127,11 +3963,11 @@ class RawDataApi {
|
|
|
3127
3963
|
let localVarFormParams = {};
|
|
3128
3964
|
// verify required parameter 'projectId' is not null or undefined
|
|
3129
3965
|
if (projectId === null || projectId === undefined) {
|
|
3130
|
-
throw new Error('Required parameter projectId was null or undefined when calling
|
|
3966
|
+
throw new Error('Required parameter projectId was null or undefined when calling saveAutoLabelerClusters.');
|
|
3131
3967
|
}
|
|
3132
|
-
// verify required parameter '
|
|
3133
|
-
if (
|
|
3134
|
-
throw new Error('Required parameter
|
|
3968
|
+
// verify required parameter 'saveAutoLabelerClustersRequest' is not null or undefined
|
|
3969
|
+
if (saveAutoLabelerClustersRequest === null || saveAutoLabelerClustersRequest === undefined) {
|
|
3970
|
+
throw new Error('Required parameter saveAutoLabelerClustersRequest was null or undefined when calling saveAutoLabelerClusters.');
|
|
3135
3971
|
}
|
|
3136
3972
|
Object.assign(localVarHeaderParams, options.headers);
|
|
3137
3973
|
Object.assign(localVarHeaderParams, this.opts.extraHeaders);
|
|
@@ -3144,6 +3980,7 @@ class RawDataApi {
|
|
|
3144
3980
|
useQuerystring: this._useQuerystring,
|
|
3145
3981
|
agentOptions: { keepAlive: false },
|
|
3146
3982
|
json: true,
|
|
3983
|
+
body: models_1.ObjectSerializer.serialize(saveAutoLabelerClustersRequest, "SaveAutoLabelerClustersRequest")
|
|
3147
3984
|
};
|
|
3148
3985
|
let authenticationPromise = Promise.resolve();
|
|
3149
3986
|
authenticationPromise = authenticationPromise.then(() => this.authentications.ApiKeyAuthentication.applyToRequest(localVarRequestOptions));
|
|
@@ -3165,7 +4002,7 @@ class RawDataApi {
|
|
|
3165
4002
|
reject(error);
|
|
3166
4003
|
}
|
|
3167
4004
|
else {
|
|
3168
|
-
body = models_1.ObjectSerializer.deserialize(body, "
|
|
4005
|
+
body = models_1.ObjectSerializer.deserialize(body, "SaveAutoLabelerClustersResponse");
|
|
3169
4006
|
const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
|
|
3170
4007
|
if (typeof body.success === 'boolean' && !body.success) {
|
|
3171
4008
|
reject(new Error(body.error || errString));
|
|
@@ -3515,6 +4352,91 @@ class RawDataApi {
|
|
|
3515
4352
|
});
|
|
3516
4353
|
});
|
|
3517
4354
|
}
|
|
4355
|
+
/**
|
|
4356
|
+
* Set structured labels for a sample. If a sample has structured labels the `label` column is ignored, and the sample is allowed to have multiple labels. An array of { startIndex, endIndex, label } needs to be passed in with labels for the complete sample (see `valuesCount` to get the upper bound). endIndex is _inclusive_. If you pass in an incorrect array (e.g. missing values) you\'ll get an error back.
|
|
4357
|
+
* @summary Update structured labels
|
|
4358
|
+
* @param projectId Project ID
|
|
4359
|
+
* @param sampleId Sample ID
|
|
4360
|
+
* @param setSampleStructuredLabelsRequest
|
|
4361
|
+
*/
|
|
4362
|
+
async setSampleStructuredLabels(projectId, sampleId, setSampleStructuredLabelsRequest, options = { headers: {} }) {
|
|
4363
|
+
const localVarPath = this.basePath + '/api/{projectId}/raw-data/{sampleId}/structured-labels'
|
|
4364
|
+
.replace('{' + 'projectId' + '}', encodeURIComponent(String(projectId)))
|
|
4365
|
+
.replace('{' + 'sampleId' + '}', encodeURIComponent(String(sampleId)));
|
|
4366
|
+
let localVarQueryParameters = {};
|
|
4367
|
+
let localVarHeaderParams = Object.assign({
|
|
4368
|
+
'User-Agent': 'edgeimpulse-api nodejs'
|
|
4369
|
+
}, this.defaultHeaders);
|
|
4370
|
+
const produces = ['application/json'];
|
|
4371
|
+
// give precedence to 'application/json'
|
|
4372
|
+
if (produces.indexOf('application/json') >= 0) {
|
|
4373
|
+
localVarHeaderParams.Accept = 'application/json';
|
|
4374
|
+
}
|
|
4375
|
+
else {
|
|
4376
|
+
localVarHeaderParams.Accept = produces.join(',');
|
|
4377
|
+
}
|
|
4378
|
+
let localVarFormParams = {};
|
|
4379
|
+
// verify required parameter 'projectId' is not null or undefined
|
|
4380
|
+
if (projectId === null || projectId === undefined) {
|
|
4381
|
+
throw new Error('Required parameter projectId was null or undefined when calling setSampleStructuredLabels.');
|
|
4382
|
+
}
|
|
4383
|
+
// verify required parameter 'sampleId' is not null or undefined
|
|
4384
|
+
if (sampleId === null || sampleId === undefined) {
|
|
4385
|
+
throw new Error('Required parameter sampleId was null or undefined when calling setSampleStructuredLabels.');
|
|
4386
|
+
}
|
|
4387
|
+
// verify required parameter 'setSampleStructuredLabelsRequest' is not null or undefined
|
|
4388
|
+
if (setSampleStructuredLabelsRequest === null || setSampleStructuredLabelsRequest === undefined) {
|
|
4389
|
+
throw new Error('Required parameter setSampleStructuredLabelsRequest was null or undefined when calling setSampleStructuredLabels.');
|
|
4390
|
+
}
|
|
4391
|
+
Object.assign(localVarHeaderParams, options.headers);
|
|
4392
|
+
Object.assign(localVarHeaderParams, this.opts.extraHeaders);
|
|
4393
|
+
let localVarUseFormData = false;
|
|
4394
|
+
let localVarRequestOptions = {
|
|
4395
|
+
method: 'POST',
|
|
4396
|
+
qs: localVarQueryParameters,
|
|
4397
|
+
headers: localVarHeaderParams,
|
|
4398
|
+
uri: localVarPath,
|
|
4399
|
+
useQuerystring: this._useQuerystring,
|
|
4400
|
+
agentOptions: { keepAlive: false },
|
|
4401
|
+
json: true,
|
|
4402
|
+
body: models_1.ObjectSerializer.serialize(setSampleStructuredLabelsRequest, "SetSampleStructuredLabelsRequest")
|
|
4403
|
+
};
|
|
4404
|
+
let authenticationPromise = Promise.resolve();
|
|
4405
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.ApiKeyAuthentication.applyToRequest(localVarRequestOptions));
|
|
4406
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.JWTAuthentication.applyToRequest(localVarRequestOptions));
|
|
4407
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.JWTHttpHeaderAuthentication.applyToRequest(localVarRequestOptions));
|
|
4408
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
|
|
4409
|
+
return authenticationPromise.then(() => {
|
|
4410
|
+
if (Object.keys(localVarFormParams).length) {
|
|
4411
|
+
if (localVarUseFormData) {
|
|
4412
|
+
localVarRequestOptions.formData = localVarFormParams;
|
|
4413
|
+
}
|
|
4414
|
+
else {
|
|
4415
|
+
localVarRequestOptions.form = localVarFormParams;
|
|
4416
|
+
}
|
|
4417
|
+
}
|
|
4418
|
+
return new Promise((resolve, reject) => {
|
|
4419
|
+
localVarRequest(localVarRequestOptions, (error, response, body) => {
|
|
4420
|
+
if (error) {
|
|
4421
|
+
reject(error);
|
|
4422
|
+
}
|
|
4423
|
+
else {
|
|
4424
|
+
body = models_1.ObjectSerializer.deserialize(body, "GenericApiResponse");
|
|
4425
|
+
const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
|
|
4426
|
+
if (typeof body.success === 'boolean' && !body.success) {
|
|
4427
|
+
reject(new Error(body.error || errString));
|
|
4428
|
+
}
|
|
4429
|
+
else if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
4430
|
+
resolve(body);
|
|
4431
|
+
}
|
|
4432
|
+
else {
|
|
4433
|
+
reject(errString);
|
|
4434
|
+
}
|
|
4435
|
+
}
|
|
4436
|
+
});
|
|
4437
|
+
});
|
|
4438
|
+
});
|
|
4439
|
+
}
|
|
3518
4440
|
/**
|
|
3519
4441
|
* Split a video sample into individual frames.
|
|
3520
4442
|
* @summary Split sample into frames
|