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
|
@@ -439,16 +439,13 @@ class OrganizationDataApi {
|
|
|
439
439
|
});
|
|
440
440
|
}
|
|
441
441
|
/**
|
|
442
|
-
*
|
|
443
|
-
* @summary
|
|
442
|
+
* Add a new research dataset
|
|
443
|
+
* @summary Add dataset
|
|
444
444
|
* @param organizationId Organization ID
|
|
445
|
-
* @param
|
|
446
|
-
* @param setOrganizationDataDatasetRequest
|
|
447
|
-
* @param dataset Selected dataset
|
|
448
|
-
* @param filter Data filter in SQL WHERE format, where you can reference \'dataset\', \'bucket\', \'name\', \'total_file_count\', \'total_file_size\', \'created\' and any metadata label through \'metadata->\' (dots are replaced by underscore).
|
|
445
|
+
* @param organizationAddDatasetRequest
|
|
449
446
|
*/
|
|
450
|
-
async
|
|
451
|
-
const localVarPath = this.basePath + '/api/organizations/{organizationId}/
|
|
447
|
+
async addOrganizationDataset(organizationId, organizationAddDatasetRequest, options = { headers: {} }) {
|
|
448
|
+
const localVarPath = this.basePath + '/api/organizations/{organizationId}/dataset'
|
|
452
449
|
.replace('{' + 'organizationId' + '}', encodeURIComponent(String(organizationId)));
|
|
453
450
|
let localVarQueryParameters = {};
|
|
454
451
|
let localVarHeaderParams = Object.assign({
|
|
@@ -465,24 +462,11 @@ class OrganizationDataApi {
|
|
|
465
462
|
let localVarFormParams = {};
|
|
466
463
|
// verify required parameter 'organizationId' is not null or undefined
|
|
467
464
|
if (organizationId === null || organizationId === undefined) {
|
|
468
|
-
throw new Error('Required parameter organizationId was null or undefined when calling
|
|
469
|
-
}
|
|
470
|
-
// verify required parameter 'dataIds' is not null or undefined
|
|
471
|
-
if (queryParams.dataIds === null || queryParams.dataIds === undefined) {
|
|
472
|
-
throw new Error('Required parameter queryParams.dataIds was null or undefined when calling changeDatasetOrganizationDataItems.');
|
|
473
|
-
}
|
|
474
|
-
// verify required parameter 'setOrganizationDataDatasetRequest' is not null or undefined
|
|
475
|
-
if (setOrganizationDataDatasetRequest === null || setOrganizationDataDatasetRequest === undefined) {
|
|
476
|
-
throw new Error('Required parameter setOrganizationDataDatasetRequest was null or undefined when calling changeDatasetOrganizationDataItems.');
|
|
477
|
-
}
|
|
478
|
-
if (queryParams.dataset !== undefined) {
|
|
479
|
-
localVarQueryParameters['dataset'] = models_1.ObjectSerializer.serialize(queryParams.dataset, "string");
|
|
465
|
+
throw new Error('Required parameter organizationId was null or undefined when calling addOrganizationDataset.');
|
|
480
466
|
}
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
if (queryParams.filter !== undefined) {
|
|
485
|
-
localVarQueryParameters['filter'] = models_1.ObjectSerializer.serialize(queryParams.filter, "string");
|
|
467
|
+
// verify required parameter 'organizationAddDatasetRequest' is not null or undefined
|
|
468
|
+
if (organizationAddDatasetRequest === null || organizationAddDatasetRequest === undefined) {
|
|
469
|
+
throw new Error('Required parameter organizationAddDatasetRequest was null or undefined when calling addOrganizationDataset.');
|
|
486
470
|
}
|
|
487
471
|
Object.assign(localVarHeaderParams, options.headers);
|
|
488
472
|
Object.assign(localVarHeaderParams, this.opts.extraHeaders);
|
|
@@ -495,7 +479,7 @@ class OrganizationDataApi {
|
|
|
495
479
|
useQuerystring: this._useQuerystring,
|
|
496
480
|
agentOptions: { keepAlive: false },
|
|
497
481
|
json: true,
|
|
498
|
-
body: models_1.ObjectSerializer.serialize(
|
|
482
|
+
body: models_1.ObjectSerializer.serialize(organizationAddDatasetRequest, "OrganizationAddDatasetRequest")
|
|
499
483
|
};
|
|
500
484
|
let authenticationPromise = Promise.resolve();
|
|
501
485
|
authenticationPromise = authenticationPromise.then(() => this.authentications.ApiKeyAuthentication.applyToRequest(localVarRequestOptions));
|
|
@@ -534,15 +518,16 @@ class OrganizationDataApi {
|
|
|
534
518
|
});
|
|
535
519
|
}
|
|
536
520
|
/**
|
|
537
|
-
*
|
|
538
|
-
* @summary
|
|
521
|
+
* Change the dataset for selected data items.
|
|
522
|
+
* @summary Change dataset
|
|
539
523
|
* @param organizationId Organization ID
|
|
540
524
|
* @param dataIds Data IDs as an Array
|
|
525
|
+
* @param setOrganizationDataDatasetRequest
|
|
541
526
|
* @param dataset Selected dataset
|
|
542
527
|
* @param filter Data filter in SQL WHERE format, where you can reference \'dataset\', \'bucket\', \'name\', \'total_file_count\', \'total_file_size\', \'created\' and any metadata label through \'metadata->\' (dots are replaced by underscore).
|
|
543
528
|
*/
|
|
544
|
-
async
|
|
545
|
-
const localVarPath = this.basePath + '/api/organizations/{organizationId}/data/
|
|
529
|
+
async changeDatasetOrganizationDataItems(organizationId, setOrganizationDataDatasetRequest, queryParams, options = { headers: {} }) {
|
|
530
|
+
const localVarPath = this.basePath + '/api/organizations/{organizationId}/data/change-dataset'
|
|
546
531
|
.replace('{' + 'organizationId' + '}', encodeURIComponent(String(organizationId)));
|
|
547
532
|
let localVarQueryParameters = {};
|
|
548
533
|
let localVarHeaderParams = Object.assign({
|
|
@@ -559,11 +544,15 @@ class OrganizationDataApi {
|
|
|
559
544
|
let localVarFormParams = {};
|
|
560
545
|
// verify required parameter 'organizationId' is not null or undefined
|
|
561
546
|
if (organizationId === null || organizationId === undefined) {
|
|
562
|
-
throw new Error('Required parameter organizationId was null or undefined when calling
|
|
547
|
+
throw new Error('Required parameter organizationId was null or undefined when calling changeDatasetOrganizationDataItems.');
|
|
563
548
|
}
|
|
564
549
|
// verify required parameter 'dataIds' is not null or undefined
|
|
565
550
|
if (queryParams.dataIds === null || queryParams.dataIds === undefined) {
|
|
566
|
-
throw new Error('Required parameter queryParams.dataIds was null or undefined when calling
|
|
551
|
+
throw new Error('Required parameter queryParams.dataIds was null or undefined when calling changeDatasetOrganizationDataItems.');
|
|
552
|
+
}
|
|
553
|
+
// verify required parameter 'setOrganizationDataDatasetRequest' is not null or undefined
|
|
554
|
+
if (setOrganizationDataDatasetRequest === null || setOrganizationDataDatasetRequest === undefined) {
|
|
555
|
+
throw new Error('Required parameter setOrganizationDataDatasetRequest was null or undefined when calling changeDatasetOrganizationDataItems.');
|
|
567
556
|
}
|
|
568
557
|
if (queryParams.dataset !== undefined) {
|
|
569
558
|
localVarQueryParameters['dataset'] = models_1.ObjectSerializer.serialize(queryParams.dataset, "string");
|
|
@@ -585,6 +574,7 @@ class OrganizationDataApi {
|
|
|
585
574
|
useQuerystring: this._useQuerystring,
|
|
586
575
|
agentOptions: { keepAlive: false },
|
|
587
576
|
json: true,
|
|
577
|
+
body: models_1.ObjectSerializer.serialize(setOrganizationDataDatasetRequest, "SetOrganizationDataDatasetRequest")
|
|
588
578
|
};
|
|
589
579
|
let authenticationPromise = Promise.resolve();
|
|
590
580
|
authenticationPromise = authenticationPromise.then(() => this.authentications.ApiKeyAuthentication.applyToRequest(localVarRequestOptions));
|
|
@@ -623,16 +613,16 @@ class OrganizationDataApi {
|
|
|
623
613
|
});
|
|
624
614
|
}
|
|
625
615
|
/**
|
|
626
|
-
*
|
|
627
|
-
* @summary
|
|
616
|
+
* Clear all checklist flags for selected data items.
|
|
617
|
+
* @summary Clear checklist for data
|
|
628
618
|
* @param organizationId Organization ID
|
|
629
|
-
* @param
|
|
630
|
-
* @param
|
|
619
|
+
* @param dataIds Data IDs as an Array
|
|
620
|
+
* @param dataset Selected dataset
|
|
621
|
+
* @param filter Data filter in SQL WHERE format, where you can reference \'dataset\', \'bucket\', \'name\', \'total_file_count\', \'total_file_size\', \'created\' and any metadata label through \'metadata->\' (dots are replaced by underscore).
|
|
631
622
|
*/
|
|
632
|
-
async
|
|
633
|
-
const localVarPath = this.basePath + '/api/organizations/{organizationId}/data/
|
|
634
|
-
.replace('{' + 'organizationId' + '}', encodeURIComponent(String(organizationId)))
|
|
635
|
-
.replace('{' + 'dataId' + '}', encodeURIComponent(String(dataId)));
|
|
623
|
+
async clearChecklistOrganizationDataItems(organizationId, queryParams, options = { headers: {} }) {
|
|
624
|
+
const localVarPath = this.basePath + '/api/organizations/{organizationId}/data/clear-checklist'
|
|
625
|
+
.replace('{' + 'organizationId' + '}', encodeURIComponent(String(organizationId)));
|
|
636
626
|
let localVarQueryParameters = {};
|
|
637
627
|
let localVarHeaderParams = Object.assign({
|
|
638
628
|
'User-Agent': 'edgeimpulse-api nodejs'
|
|
@@ -648,24 +638,26 @@ class OrganizationDataApi {
|
|
|
648
638
|
let localVarFormParams = {};
|
|
649
639
|
// verify required parameter 'organizationId' is not null or undefined
|
|
650
640
|
if (organizationId === null || organizationId === undefined) {
|
|
651
|
-
throw new Error('Required parameter organizationId was null or undefined when calling
|
|
641
|
+
throw new Error('Required parameter organizationId was null or undefined when calling clearChecklistOrganizationDataItems.');
|
|
652
642
|
}
|
|
653
|
-
// verify required parameter '
|
|
654
|
-
if (
|
|
655
|
-
throw new Error('Required parameter
|
|
643
|
+
// verify required parameter 'dataIds' is not null or undefined
|
|
644
|
+
if (queryParams.dataIds === null || queryParams.dataIds === undefined) {
|
|
645
|
+
throw new Error('Required parameter queryParams.dataIds was null or undefined when calling clearChecklistOrganizationDataItems.');
|
|
656
646
|
}
|
|
657
|
-
|
|
658
|
-
|
|
659
|
-
throw new Error('Required parameter queryParams.fileName was null or undefined when calling deleteOrganizationDataFile.');
|
|
647
|
+
if (queryParams.dataset !== undefined) {
|
|
648
|
+
localVarQueryParameters['dataset'] = models_1.ObjectSerializer.serialize(queryParams.dataset, "string");
|
|
660
649
|
}
|
|
661
|
-
if (queryParams.
|
|
662
|
-
localVarQueryParameters['
|
|
650
|
+
if (queryParams.dataIds !== undefined) {
|
|
651
|
+
localVarQueryParameters['dataIds'] = models_1.ObjectSerializer.serialize(queryParams.dataIds, "string");
|
|
652
|
+
}
|
|
653
|
+
if (queryParams.filter !== undefined) {
|
|
654
|
+
localVarQueryParameters['filter'] = models_1.ObjectSerializer.serialize(queryParams.filter, "string");
|
|
663
655
|
}
|
|
664
656
|
Object.assign(localVarHeaderParams, options.headers);
|
|
665
657
|
Object.assign(localVarHeaderParams, this.opts.extraHeaders);
|
|
666
658
|
let localVarUseFormData = false;
|
|
667
659
|
let localVarRequestOptions = {
|
|
668
|
-
method: '
|
|
660
|
+
method: 'POST',
|
|
669
661
|
qs: localVarQueryParameters,
|
|
670
662
|
headers: localVarHeaderParams,
|
|
671
663
|
uri: localVarPath,
|
|
@@ -693,7 +685,7 @@ class OrganizationDataApi {
|
|
|
693
685
|
reject(error);
|
|
694
686
|
}
|
|
695
687
|
else {
|
|
696
|
-
body = models_1.ObjectSerializer.deserialize(body, "
|
|
688
|
+
body = models_1.ObjectSerializer.deserialize(body, "StartJobResponse");
|
|
697
689
|
const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
|
|
698
690
|
if (typeof body.success === 'boolean' && !body.success) {
|
|
699
691
|
reject(new Error(body.error || errString));
|
|
@@ -710,15 +702,16 @@ class OrganizationDataApi {
|
|
|
710
702
|
});
|
|
711
703
|
}
|
|
712
704
|
/**
|
|
713
|
-
*
|
|
714
|
-
* @summary
|
|
705
|
+
* Creates a signed link to securely upload data to s3 bucket directly from the client.
|
|
706
|
+
* @summary Create pre-signed S3 upload link
|
|
715
707
|
* @param organizationId Organization ID
|
|
716
|
-
* @param
|
|
708
|
+
* @param dataset Dataset name
|
|
709
|
+
* @param createSignedUploadLinkRequest
|
|
717
710
|
*/
|
|
718
|
-
async
|
|
719
|
-
const localVarPath = this.basePath + '/api/organizations/{organizationId}/
|
|
711
|
+
async createSignedUploadLinkDataset(organizationId, dataset, createSignedUploadLinkRequest, options = { headers: {} }) {
|
|
712
|
+
const localVarPath = this.basePath + '/api/organizations/{organizationId}/dataset/{dataset}/upload-link'
|
|
720
713
|
.replace('{' + 'organizationId' + '}', encodeURIComponent(String(organizationId)))
|
|
721
|
-
.replace('{' + '
|
|
714
|
+
.replace('{' + 'dataset' + '}', encodeURIComponent(String(dataset)));
|
|
722
715
|
let localVarQueryParameters = {};
|
|
723
716
|
let localVarHeaderParams = Object.assign({
|
|
724
717
|
'User-Agent': 'edgeimpulse-api nodejs'
|
|
@@ -734,23 +727,28 @@ class OrganizationDataApi {
|
|
|
734
727
|
let localVarFormParams = {};
|
|
735
728
|
// verify required parameter 'organizationId' is not null or undefined
|
|
736
729
|
if (organizationId === null || organizationId === undefined) {
|
|
737
|
-
throw new Error('Required parameter organizationId was null or undefined when calling
|
|
730
|
+
throw new Error('Required parameter organizationId was null or undefined when calling createSignedUploadLinkDataset.');
|
|
738
731
|
}
|
|
739
|
-
// verify required parameter '
|
|
740
|
-
if (
|
|
741
|
-
throw new Error('Required parameter
|
|
732
|
+
// verify required parameter 'dataset' is not null or undefined
|
|
733
|
+
if (dataset === null || dataset === undefined) {
|
|
734
|
+
throw new Error('Required parameter dataset was null or undefined when calling createSignedUploadLinkDataset.');
|
|
735
|
+
}
|
|
736
|
+
// verify required parameter 'createSignedUploadLinkRequest' is not null or undefined
|
|
737
|
+
if (createSignedUploadLinkRequest === null || createSignedUploadLinkRequest === undefined) {
|
|
738
|
+
throw new Error('Required parameter createSignedUploadLinkRequest was null or undefined when calling createSignedUploadLinkDataset.');
|
|
742
739
|
}
|
|
743
740
|
Object.assign(localVarHeaderParams, options.headers);
|
|
744
741
|
Object.assign(localVarHeaderParams, this.opts.extraHeaders);
|
|
745
742
|
let localVarUseFormData = false;
|
|
746
743
|
let localVarRequestOptions = {
|
|
747
|
-
method: '
|
|
744
|
+
method: 'POST',
|
|
748
745
|
qs: localVarQueryParameters,
|
|
749
746
|
headers: localVarHeaderParams,
|
|
750
747
|
uri: localVarPath,
|
|
751
748
|
useQuerystring: this._useQuerystring,
|
|
752
749
|
agentOptions: { keepAlive: false },
|
|
753
750
|
json: true,
|
|
751
|
+
body: models_1.ObjectSerializer.serialize(createSignedUploadLinkRequest, "CreateSignedUploadLinkRequest")
|
|
754
752
|
};
|
|
755
753
|
let authenticationPromise = Promise.resolve();
|
|
756
754
|
authenticationPromise = authenticationPromise.then(() => this.authentications.ApiKeyAuthentication.applyToRequest(localVarRequestOptions));
|
|
@@ -772,7 +770,7 @@ class OrganizationDataApi {
|
|
|
772
770
|
reject(error);
|
|
773
771
|
}
|
|
774
772
|
else {
|
|
775
|
-
body = models_1.ObjectSerializer.deserialize(body, "
|
|
773
|
+
body = models_1.ObjectSerializer.deserialize(body, "CreateSignedUploadLinkResponse");
|
|
776
774
|
const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
|
|
777
775
|
if (typeof body.success === 'boolean' && !body.success) {
|
|
778
776
|
reject(new Error(body.error || errString));
|
|
@@ -789,16 +787,16 @@ class OrganizationDataApi {
|
|
|
789
787
|
});
|
|
790
788
|
}
|
|
791
789
|
/**
|
|
792
|
-
* Delete
|
|
793
|
-
* @summary Delete
|
|
790
|
+
* Delete a file from a dataset
|
|
791
|
+
* @summary Delete file from dataset
|
|
794
792
|
* @param organizationId Organization ID
|
|
795
|
-
* @param
|
|
796
|
-
* @param
|
|
797
|
-
* @param filter Data filter in SQL WHERE format, where you can reference \'dataset\', \'bucket\', \'name\', \'total_file_count\', \'total_file_size\', \'created\' and any metadata label through \'metadata->\' (dots are replaced by underscore).
|
|
793
|
+
* @param dataset Dataset name
|
|
794
|
+
* @param deletePortalFileRequest
|
|
798
795
|
*/
|
|
799
|
-
async
|
|
800
|
-
const localVarPath = this.basePath + '/api/organizations/{organizationId}/
|
|
801
|
-
.replace('{' + 'organizationId' + '}', encodeURIComponent(String(organizationId)))
|
|
796
|
+
async deleteDatasetFile(organizationId, dataset, deletePortalFileRequest, options = { headers: {} }) {
|
|
797
|
+
const localVarPath = this.basePath + '/api/organizations/{organizationId}/dataset/{dataset}/files/delete'
|
|
798
|
+
.replace('{' + 'organizationId' + '}', encodeURIComponent(String(organizationId)))
|
|
799
|
+
.replace('{' + 'dataset' + '}', encodeURIComponent(String(dataset)));
|
|
802
800
|
let localVarQueryParameters = {};
|
|
803
801
|
let localVarHeaderParams = Object.assign({
|
|
804
802
|
'User-Agent': 'edgeimpulse-api nodejs'
|
|
@@ -814,20 +812,15 @@ class OrganizationDataApi {
|
|
|
814
812
|
let localVarFormParams = {};
|
|
815
813
|
// verify required parameter 'organizationId' is not null or undefined
|
|
816
814
|
if (organizationId === null || organizationId === undefined) {
|
|
817
|
-
throw new Error('Required parameter organizationId was null or undefined when calling
|
|
818
|
-
}
|
|
819
|
-
// verify required parameter 'dataIds' is not null or undefined
|
|
820
|
-
if (queryParams.dataIds === null || queryParams.dataIds === undefined) {
|
|
821
|
-
throw new Error('Required parameter queryParams.dataIds was null or undefined when calling deleteOrganizationDataItems.');
|
|
822
|
-
}
|
|
823
|
-
if (queryParams.dataset !== undefined) {
|
|
824
|
-
localVarQueryParameters['dataset'] = models_1.ObjectSerializer.serialize(queryParams.dataset, "string");
|
|
815
|
+
throw new Error('Required parameter organizationId was null or undefined when calling deleteDatasetFile.');
|
|
825
816
|
}
|
|
826
|
-
|
|
827
|
-
|
|
817
|
+
// verify required parameter 'dataset' is not null or undefined
|
|
818
|
+
if (dataset === null || dataset === undefined) {
|
|
819
|
+
throw new Error('Required parameter dataset was null or undefined when calling deleteDatasetFile.');
|
|
828
820
|
}
|
|
829
|
-
|
|
830
|
-
|
|
821
|
+
// verify required parameter 'deletePortalFileRequest' is not null or undefined
|
|
822
|
+
if (deletePortalFileRequest === null || deletePortalFileRequest === undefined) {
|
|
823
|
+
throw new Error('Required parameter deletePortalFileRequest was null or undefined when calling deleteDatasetFile.');
|
|
831
824
|
}
|
|
832
825
|
Object.assign(localVarHeaderParams, options.headers);
|
|
833
826
|
Object.assign(localVarHeaderParams, this.opts.extraHeaders);
|
|
@@ -840,6 +833,7 @@ class OrganizationDataApi {
|
|
|
840
833
|
useQuerystring: this._useQuerystring,
|
|
841
834
|
agentOptions: { keepAlive: false },
|
|
842
835
|
json: true,
|
|
836
|
+
body: models_1.ObjectSerializer.serialize(deletePortalFileRequest, "DeletePortalFileRequest")
|
|
843
837
|
};
|
|
844
838
|
let authenticationPromise = Promise.resolve();
|
|
845
839
|
authenticationPromise = authenticationPromise.then(() => this.authentications.ApiKeyAuthentication.applyToRequest(localVarRequestOptions));
|
|
@@ -861,7 +855,7 @@ class OrganizationDataApi {
|
|
|
861
855
|
reject(error);
|
|
862
856
|
}
|
|
863
857
|
else {
|
|
864
|
-
body = models_1.ObjectSerializer.deserialize(body, "
|
|
858
|
+
body = models_1.ObjectSerializer.deserialize(body, "GenericApiResponse");
|
|
865
859
|
const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
|
|
866
860
|
if (typeof body.success === 'boolean' && !body.success) {
|
|
867
861
|
reject(new Error(body.error || errString));
|
|
@@ -878,15 +872,16 @@ class OrganizationDataApi {
|
|
|
878
872
|
});
|
|
879
873
|
}
|
|
880
874
|
/**
|
|
881
|
-
* Delete
|
|
882
|
-
* @summary Delete
|
|
875
|
+
* Delete a single file from a data item.
|
|
876
|
+
* @summary Delete file
|
|
883
877
|
* @param organizationId Organization ID
|
|
884
|
-
* @param
|
|
885
|
-
* @param
|
|
878
|
+
* @param dataId Data ID
|
|
879
|
+
* @param fileName File name
|
|
886
880
|
*/
|
|
887
|
-
async
|
|
888
|
-
const localVarPath = this.basePath + '/api/organizations/{organizationId}/
|
|
889
|
-
.replace('{' + 'organizationId' + '}', encodeURIComponent(String(organizationId)))
|
|
881
|
+
async deleteOrganizationDataFile(organizationId, dataId, queryParams, options = { headers: {} }) {
|
|
882
|
+
const localVarPath = this.basePath + '/api/organizations/{organizationId}/data/{dataId}/download'
|
|
883
|
+
.replace('{' + 'organizationId' + '}', encodeURIComponent(String(organizationId)))
|
|
884
|
+
.replace('{' + 'dataId' + '}', encodeURIComponent(String(dataId)));
|
|
890
885
|
let localVarQueryParameters = {};
|
|
891
886
|
let localVarHeaderParams = Object.assign({
|
|
892
887
|
'User-Agent': 'edgeimpulse-api nodejs'
|
|
@@ -902,13 +897,18 @@ class OrganizationDataApi {
|
|
|
902
897
|
let localVarFormParams = {};
|
|
903
898
|
// verify required parameter 'organizationId' is not null or undefined
|
|
904
899
|
if (organizationId === null || organizationId === undefined) {
|
|
905
|
-
throw new Error('Required parameter organizationId was null or undefined when calling
|
|
900
|
+
throw new Error('Required parameter organizationId was null or undefined when calling deleteOrganizationDataFile.');
|
|
906
901
|
}
|
|
907
|
-
|
|
908
|
-
|
|
902
|
+
// verify required parameter 'dataId' is not null or undefined
|
|
903
|
+
if (dataId === null || dataId === undefined) {
|
|
904
|
+
throw new Error('Required parameter dataId was null or undefined when calling deleteOrganizationDataFile.');
|
|
909
905
|
}
|
|
910
|
-
|
|
911
|
-
|
|
906
|
+
// verify required parameter 'fileName' is not null or undefined
|
|
907
|
+
if (queryParams.fileName === null || queryParams.fileName === undefined) {
|
|
908
|
+
throw new Error('Required parameter queryParams.fileName was null or undefined when calling deleteOrganizationDataFile.');
|
|
909
|
+
}
|
|
910
|
+
if (queryParams.fileName !== undefined) {
|
|
911
|
+
localVarQueryParameters['fileName'] = models_1.ObjectSerializer.serialize(queryParams.fileName, "string");
|
|
912
912
|
}
|
|
913
913
|
Object.assign(localVarHeaderParams, options.headers);
|
|
914
914
|
Object.assign(localVarHeaderParams, this.opts.extraHeaders);
|
|
@@ -959,21 +959,20 @@ class OrganizationDataApi {
|
|
|
959
959
|
});
|
|
960
960
|
}
|
|
961
961
|
/**
|
|
962
|
-
*
|
|
963
|
-
* @summary
|
|
962
|
+
* Delete a data item. This will remove items the items from the underlying storage if your dataset has \"bucketPath\" set.
|
|
963
|
+
* @summary Delete data
|
|
964
964
|
* @param organizationId Organization ID
|
|
965
965
|
* @param dataId Data ID
|
|
966
|
-
* @param fileName File name
|
|
967
966
|
*/
|
|
968
|
-
async
|
|
969
|
-
const localVarPath = this.basePath + '/api/organizations/{organizationId}/data/{dataId}
|
|
967
|
+
async deleteOrganizationDataItem(organizationId, dataId, options = { headers: {} }) {
|
|
968
|
+
const localVarPath = this.basePath + '/api/organizations/{organizationId}/data/{dataId}'
|
|
970
969
|
.replace('{' + 'organizationId' + '}', encodeURIComponent(String(organizationId)))
|
|
971
970
|
.replace('{' + 'dataId' + '}', encodeURIComponent(String(dataId)));
|
|
972
971
|
let localVarQueryParameters = {};
|
|
973
972
|
let localVarHeaderParams = Object.assign({
|
|
974
973
|
'User-Agent': 'edgeimpulse-api nodejs'
|
|
975
974
|
}, this.defaultHeaders);
|
|
976
|
-
const produces = ['application/
|
|
975
|
+
const produces = ['application/json'];
|
|
977
976
|
// give precedence to 'application/json'
|
|
978
977
|
if (produces.indexOf('application/json') >= 0) {
|
|
979
978
|
localVarHeaderParams.Accept = 'application/json';
|
|
@@ -984,30 +983,23 @@ class OrganizationDataApi {
|
|
|
984
983
|
let localVarFormParams = {};
|
|
985
984
|
// verify required parameter 'organizationId' is not null or undefined
|
|
986
985
|
if (organizationId === null || organizationId === undefined) {
|
|
987
|
-
throw new Error('Required parameter organizationId was null or undefined when calling
|
|
986
|
+
throw new Error('Required parameter organizationId was null or undefined when calling deleteOrganizationDataItem.');
|
|
988
987
|
}
|
|
989
988
|
// verify required parameter 'dataId' is not null or undefined
|
|
990
989
|
if (dataId === null || dataId === undefined) {
|
|
991
|
-
throw new Error('Required parameter dataId was null or undefined when calling
|
|
992
|
-
}
|
|
993
|
-
// verify required parameter 'fileName' is not null or undefined
|
|
994
|
-
if (queryParams.fileName === null || queryParams.fileName === undefined) {
|
|
995
|
-
throw new Error('Required parameter queryParams.fileName was null or undefined when calling downloadOrganizationDataFile.');
|
|
996
|
-
}
|
|
997
|
-
if (queryParams.fileName !== undefined) {
|
|
998
|
-
localVarQueryParameters['fileName'] = models_1.ObjectSerializer.serialize(queryParams.fileName, "string");
|
|
990
|
+
throw new Error('Required parameter dataId was null or undefined when calling deleteOrganizationDataItem.');
|
|
999
991
|
}
|
|
1000
992
|
Object.assign(localVarHeaderParams, options.headers);
|
|
1001
993
|
Object.assign(localVarHeaderParams, this.opts.extraHeaders);
|
|
1002
994
|
let localVarUseFormData = false;
|
|
1003
995
|
let localVarRequestOptions = {
|
|
1004
|
-
method: '
|
|
996
|
+
method: 'DELETE',
|
|
1005
997
|
qs: localVarQueryParameters,
|
|
1006
998
|
headers: localVarHeaderParams,
|
|
1007
999
|
uri: localVarPath,
|
|
1008
1000
|
useQuerystring: this._useQuerystring,
|
|
1009
1001
|
agentOptions: { keepAlive: false },
|
|
1010
|
-
|
|
1002
|
+
json: true,
|
|
1011
1003
|
};
|
|
1012
1004
|
let authenticationPromise = Promise.resolve();
|
|
1013
1005
|
authenticationPromise = authenticationPromise.then(() => this.authentications.ApiKeyAuthentication.applyToRequest(localVarRequestOptions));
|
|
@@ -1029,7 +1021,7 @@ class OrganizationDataApi {
|
|
|
1029
1021
|
reject(error);
|
|
1030
1022
|
}
|
|
1031
1023
|
else {
|
|
1032
|
-
body = models_1.ObjectSerializer.deserialize(body, "
|
|
1024
|
+
body = models_1.ObjectSerializer.deserialize(body, "GenericApiResponse");
|
|
1033
1025
|
const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
|
|
1034
1026
|
if (typeof body.success === 'boolean' && !body.success) {
|
|
1035
1027
|
reject(new Error(body.error || errString));
|
|
@@ -1046,21 +1038,21 @@ class OrganizationDataApi {
|
|
|
1046
1038
|
});
|
|
1047
1039
|
}
|
|
1048
1040
|
/**
|
|
1049
|
-
*
|
|
1050
|
-
* @summary
|
|
1041
|
+
* Delete all data for selected data items. This removes all data in the underlying data bucket.
|
|
1042
|
+
* @summary Delete data
|
|
1051
1043
|
* @param organizationId Organization ID
|
|
1052
1044
|
* @param dataIds Data IDs as an Array
|
|
1053
1045
|
* @param dataset Selected dataset
|
|
1054
1046
|
* @param filter Data filter in SQL WHERE format, where you can reference \'dataset\', \'bucket\', \'name\', \'total_file_count\', \'total_file_size\', \'created\' and any metadata label through \'metadata->\' (dots are replaced by underscore).
|
|
1055
1047
|
*/
|
|
1056
|
-
async
|
|
1057
|
-
const localVarPath = this.basePath + '/api/organizations/{organizationId}/data/
|
|
1048
|
+
async deleteOrganizationDataItems(organizationId, queryParams, options = { headers: {} }) {
|
|
1049
|
+
const localVarPath = this.basePath + '/api/organizations/{organizationId}/data/delete'
|
|
1058
1050
|
.replace('{' + 'organizationId' + '}', encodeURIComponent(String(organizationId)));
|
|
1059
1051
|
let localVarQueryParameters = {};
|
|
1060
1052
|
let localVarHeaderParams = Object.assign({
|
|
1061
1053
|
'User-Agent': 'edgeimpulse-api nodejs'
|
|
1062
1054
|
}, this.defaultHeaders);
|
|
1063
|
-
const produces = ['application/
|
|
1055
|
+
const produces = ['application/json'];
|
|
1064
1056
|
// give precedence to 'application/json'
|
|
1065
1057
|
if (produces.indexOf('application/json') >= 0) {
|
|
1066
1058
|
localVarHeaderParams.Accept = 'application/json';
|
|
@@ -1071,11 +1063,11 @@ class OrganizationDataApi {
|
|
|
1071
1063
|
let localVarFormParams = {};
|
|
1072
1064
|
// verify required parameter 'organizationId' is not null or undefined
|
|
1073
1065
|
if (organizationId === null || organizationId === undefined) {
|
|
1074
|
-
throw new Error('Required parameter organizationId was null or undefined when calling
|
|
1066
|
+
throw new Error('Required parameter organizationId was null or undefined when calling deleteOrganizationDataItems.');
|
|
1075
1067
|
}
|
|
1076
1068
|
// verify required parameter 'dataIds' is not null or undefined
|
|
1077
1069
|
if (queryParams.dataIds === null || queryParams.dataIds === undefined) {
|
|
1078
|
-
throw new Error('Required parameter queryParams.dataIds was null or undefined when calling
|
|
1070
|
+
throw new Error('Required parameter queryParams.dataIds was null or undefined when calling deleteOrganizationDataItems.');
|
|
1079
1071
|
}
|
|
1080
1072
|
if (queryParams.dataset !== undefined) {
|
|
1081
1073
|
localVarQueryParameters['dataset'] = models_1.ObjectSerializer.serialize(queryParams.dataset, "string");
|
|
@@ -1090,13 +1082,13 @@ class OrganizationDataApi {
|
|
|
1090
1082
|
Object.assign(localVarHeaderParams, this.opts.extraHeaders);
|
|
1091
1083
|
let localVarUseFormData = false;
|
|
1092
1084
|
let localVarRequestOptions = {
|
|
1093
|
-
method: '
|
|
1085
|
+
method: 'POST',
|
|
1094
1086
|
qs: localVarQueryParameters,
|
|
1095
1087
|
headers: localVarHeaderParams,
|
|
1096
1088
|
uri: localVarPath,
|
|
1097
1089
|
useQuerystring: this._useQuerystring,
|
|
1098
1090
|
agentOptions: { keepAlive: false },
|
|
1099
|
-
|
|
1091
|
+
json: true,
|
|
1100
1092
|
};
|
|
1101
1093
|
let authenticationPromise = Promise.resolve();
|
|
1102
1094
|
authenticationPromise = authenticationPromise.then(() => this.authentications.ApiKeyAuthentication.applyToRequest(localVarRequestOptions));
|
|
@@ -1118,7 +1110,7 @@ class OrganizationDataApi {
|
|
|
1118
1110
|
reject(error);
|
|
1119
1111
|
}
|
|
1120
1112
|
else {
|
|
1121
|
-
body = models_1.ObjectSerializer.deserialize(body, "
|
|
1113
|
+
body = models_1.ObjectSerializer.deserialize(body, "StartJobResponse");
|
|
1122
1114
|
const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
|
|
1123
1115
|
if (typeof body.success === 'boolean' && !body.success) {
|
|
1124
1116
|
reject(new Error(body.error || errString));
|
|
@@ -1135,20 +1127,20 @@ class OrganizationDataApi {
|
|
|
1135
1127
|
});
|
|
1136
1128
|
}
|
|
1137
1129
|
/**
|
|
1138
|
-
*
|
|
1139
|
-
* @summary
|
|
1130
|
+
* Delete data samples from organizational projects.
|
|
1131
|
+
* @summary Delete projects data
|
|
1140
1132
|
* @param organizationId Organization ID
|
|
1141
1133
|
* @param projectId Unique identifier of the organizational project from where data samples will be fetched.
|
|
1142
1134
|
* @param ids Only include samples with an ID within the given list of IDs, given as a JSON string
|
|
1143
1135
|
*/
|
|
1144
|
-
async
|
|
1145
|
-
const localVarPath = this.basePath + '/api/organizations/{organizationId}/projects/data
|
|
1136
|
+
async deleteOrganizationProjectsData(organizationId, queryParams, options = { headers: {} }) {
|
|
1137
|
+
const localVarPath = this.basePath + '/api/organizations/{organizationId}/projects/data'
|
|
1146
1138
|
.replace('{' + 'organizationId' + '}', encodeURIComponent(String(organizationId)));
|
|
1147
1139
|
let localVarQueryParameters = {};
|
|
1148
1140
|
let localVarHeaderParams = Object.assign({
|
|
1149
1141
|
'User-Agent': 'edgeimpulse-api nodejs'
|
|
1150
1142
|
}, this.defaultHeaders);
|
|
1151
|
-
const produces = ['application/
|
|
1143
|
+
const produces = ['application/json'];
|
|
1152
1144
|
// give precedence to 'application/json'
|
|
1153
1145
|
if (produces.indexOf('application/json') >= 0) {
|
|
1154
1146
|
localVarHeaderParams.Accept = 'application/json';
|
|
@@ -1159,7 +1151,7 @@ class OrganizationDataApi {
|
|
|
1159
1151
|
let localVarFormParams = {};
|
|
1160
1152
|
// verify required parameter 'organizationId' is not null or undefined
|
|
1161
1153
|
if (organizationId === null || organizationId === undefined) {
|
|
1162
|
-
throw new Error('Required parameter organizationId was null or undefined when calling
|
|
1154
|
+
throw new Error('Required parameter organizationId was null or undefined when calling deleteOrganizationProjectsData.');
|
|
1163
1155
|
}
|
|
1164
1156
|
if (queryParams.projectId !== undefined) {
|
|
1165
1157
|
localVarQueryParameters['projectId'] = models_1.ObjectSerializer.serialize(queryParams.projectId, "number");
|
|
@@ -1171,13 +1163,13 @@ class OrganizationDataApi {
|
|
|
1171
1163
|
Object.assign(localVarHeaderParams, this.opts.extraHeaders);
|
|
1172
1164
|
let localVarUseFormData = false;
|
|
1173
1165
|
let localVarRequestOptions = {
|
|
1174
|
-
method: '
|
|
1166
|
+
method: 'DELETE',
|
|
1175
1167
|
qs: localVarQueryParameters,
|
|
1176
1168
|
headers: localVarHeaderParams,
|
|
1177
1169
|
uri: localVarPath,
|
|
1178
1170
|
useQuerystring: this._useQuerystring,
|
|
1179
1171
|
agentOptions: { keepAlive: false },
|
|
1180
|
-
|
|
1172
|
+
json: true,
|
|
1181
1173
|
};
|
|
1182
1174
|
let authenticationPromise = Promise.resolve();
|
|
1183
1175
|
authenticationPromise = authenticationPromise.then(() => this.authentications.ApiKeyAuthentication.applyToRequest(localVarRequestOptions));
|
|
@@ -1199,7 +1191,7 @@ class OrganizationDataApi {
|
|
|
1199
1191
|
reject(error);
|
|
1200
1192
|
}
|
|
1201
1193
|
else {
|
|
1202
|
-
body = models_1.ObjectSerializer.deserialize(body, "
|
|
1194
|
+
body = models_1.ObjectSerializer.deserialize(body, "GenericApiResponse");
|
|
1203
1195
|
const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
|
|
1204
1196
|
if (typeof body.success === 'boolean' && !body.success) {
|
|
1205
1197
|
reject(new Error(body.error || errString));
|
|
@@ -1216,21 +1208,21 @@ class OrganizationDataApi {
|
|
|
1216
1208
|
});
|
|
1217
1209
|
}
|
|
1218
1210
|
/**
|
|
1219
|
-
* Download
|
|
1220
|
-
* @summary Download
|
|
1211
|
+
* Download a file from a dataset. Will return a signed URL to the bucket.
|
|
1212
|
+
* @summary Download file from dataset
|
|
1221
1213
|
* @param organizationId Organization ID
|
|
1222
|
-
* @param
|
|
1223
|
-
* @param
|
|
1214
|
+
* @param dataset Dataset name
|
|
1215
|
+
* @param downloadPortalFileRequest
|
|
1224
1216
|
*/
|
|
1225
|
-
async
|
|
1226
|
-
const localVarPath = this.basePath + '/api/organizations/{organizationId}/
|
|
1217
|
+
async downloadDatasetFile(organizationId, dataset, downloadPortalFileRequest, options = { headers: {} }) {
|
|
1218
|
+
const localVarPath = this.basePath + '/api/organizations/{organizationId}/dataset/{dataset}/files/download'
|
|
1227
1219
|
.replace('{' + 'organizationId' + '}', encodeURIComponent(String(organizationId)))
|
|
1228
|
-
.replace('{' + '
|
|
1220
|
+
.replace('{' + 'dataset' + '}', encodeURIComponent(String(dataset)));
|
|
1229
1221
|
let localVarQueryParameters = {};
|
|
1230
1222
|
let localVarHeaderParams = Object.assign({
|
|
1231
1223
|
'User-Agent': 'edgeimpulse-api nodejs'
|
|
1232
1224
|
}, this.defaultHeaders);
|
|
1233
|
-
const produces = ['application/
|
|
1225
|
+
const produces = ['application/json'];
|
|
1234
1226
|
// give precedence to 'application/json'
|
|
1235
1227
|
if (produces.indexOf('application/json') >= 0) {
|
|
1236
1228
|
localVarHeaderParams.Accept = 'application/json';
|
|
@@ -1241,26 +1233,28 @@ class OrganizationDataApi {
|
|
|
1241
1233
|
let localVarFormParams = {};
|
|
1242
1234
|
// verify required parameter 'organizationId' is not null or undefined
|
|
1243
1235
|
if (organizationId === null || organizationId === undefined) {
|
|
1244
|
-
throw new Error('Required parameter organizationId was null or undefined when calling
|
|
1236
|
+
throw new Error('Required parameter organizationId was null or undefined when calling downloadDatasetFile.');
|
|
1245
1237
|
}
|
|
1246
|
-
// verify required parameter '
|
|
1247
|
-
if (
|
|
1248
|
-
throw new Error('Required parameter
|
|
1238
|
+
// verify required parameter 'dataset' is not null or undefined
|
|
1239
|
+
if (dataset === null || dataset === undefined) {
|
|
1240
|
+
throw new Error('Required parameter dataset was null or undefined when calling downloadDatasetFile.');
|
|
1249
1241
|
}
|
|
1250
|
-
|
|
1251
|
-
|
|
1242
|
+
// verify required parameter 'downloadPortalFileRequest' is not null or undefined
|
|
1243
|
+
if (downloadPortalFileRequest === null || downloadPortalFileRequest === undefined) {
|
|
1244
|
+
throw new Error('Required parameter downloadPortalFileRequest was null or undefined when calling downloadDatasetFile.');
|
|
1252
1245
|
}
|
|
1253
1246
|
Object.assign(localVarHeaderParams, options.headers);
|
|
1254
1247
|
Object.assign(localVarHeaderParams, this.opts.extraHeaders);
|
|
1255
1248
|
let localVarUseFormData = false;
|
|
1256
1249
|
let localVarRequestOptions = {
|
|
1257
|
-
method: '
|
|
1250
|
+
method: 'POST',
|
|
1258
1251
|
qs: localVarQueryParameters,
|
|
1259
1252
|
headers: localVarHeaderParams,
|
|
1260
1253
|
uri: localVarPath,
|
|
1261
1254
|
useQuerystring: this._useQuerystring,
|
|
1262
1255
|
agentOptions: { keepAlive: false },
|
|
1263
|
-
|
|
1256
|
+
json: true,
|
|
1257
|
+
body: models_1.ObjectSerializer.serialize(downloadPortalFileRequest, "DownloadPortalFileRequest")
|
|
1264
1258
|
};
|
|
1265
1259
|
let authenticationPromise = Promise.resolve();
|
|
1266
1260
|
authenticationPromise = authenticationPromise.then(() => this.authentications.ApiKeyAuthentication.applyToRequest(localVarRequestOptions));
|
|
@@ -1282,7 +1276,7 @@ class OrganizationDataApi {
|
|
|
1282
1276
|
reject(error);
|
|
1283
1277
|
}
|
|
1284
1278
|
else {
|
|
1285
|
-
body = models_1.ObjectSerializer.deserialize(body, "
|
|
1279
|
+
body = models_1.ObjectSerializer.deserialize(body, "DownloadPortalFileResponse");
|
|
1286
1280
|
const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
|
|
1287
1281
|
if (typeof body.success === 'boolean' && !body.success) {
|
|
1288
1282
|
reject(new Error(body.error || errString));
|
|
@@ -1299,21 +1293,21 @@ class OrganizationDataApi {
|
|
|
1299
1293
|
});
|
|
1300
1294
|
}
|
|
1301
1295
|
/**
|
|
1302
|
-
*
|
|
1303
|
-
* @summary
|
|
1296
|
+
* Download a single file from a data item.
|
|
1297
|
+
* @summary Download file
|
|
1304
1298
|
* @param organizationId Organization ID
|
|
1305
1299
|
* @param dataId Data ID
|
|
1306
|
-
* @param
|
|
1300
|
+
* @param fileName File name
|
|
1307
1301
|
*/
|
|
1308
|
-
async
|
|
1309
|
-
const localVarPath = this.basePath + '/api/organizations/{organizationId}/data/{dataId}'
|
|
1310
|
-
.replace('{' + 'organizationId' + '}', encodeURIComponent(String(organizationId)))
|
|
1302
|
+
async downloadOrganizationDataFile(organizationId, dataId, queryParams, options = { headers: {} }) {
|
|
1303
|
+
const localVarPath = this.basePath + '/api/organizations/{organizationId}/data/{dataId}/files/download'
|
|
1304
|
+
.replace('{' + 'organizationId' + '}', encodeURIComponent(String(organizationId)))
|
|
1311
1305
|
.replace('{' + 'dataId' + '}', encodeURIComponent(String(dataId)));
|
|
1312
1306
|
let localVarQueryParameters = {};
|
|
1313
1307
|
let localVarHeaderParams = Object.assign({
|
|
1314
1308
|
'User-Agent': 'edgeimpulse-api nodejs'
|
|
1315
1309
|
}, this.defaultHeaders);
|
|
1316
|
-
const produces = ['application/
|
|
1310
|
+
const produces = ['application/octet-stream'];
|
|
1317
1311
|
// give precedence to 'application/json'
|
|
1318
1312
|
if (produces.indexOf('application/json') >= 0) {
|
|
1319
1313
|
localVarHeaderParams.Accept = 'application/json';
|
|
@@ -1324,14 +1318,18 @@ class OrganizationDataApi {
|
|
|
1324
1318
|
let localVarFormParams = {};
|
|
1325
1319
|
// verify required parameter 'organizationId' is not null or undefined
|
|
1326
1320
|
if (organizationId === null || organizationId === undefined) {
|
|
1327
|
-
throw new Error('Required parameter organizationId was null or undefined when calling
|
|
1321
|
+
throw new Error('Required parameter organizationId was null or undefined when calling downloadOrganizationDataFile.');
|
|
1328
1322
|
}
|
|
1329
1323
|
// verify required parameter 'dataId' is not null or undefined
|
|
1330
1324
|
if (dataId === null || dataId === undefined) {
|
|
1331
|
-
throw new Error('Required parameter dataId was null or undefined when calling
|
|
1325
|
+
throw new Error('Required parameter dataId was null or undefined when calling downloadOrganizationDataFile.');
|
|
1332
1326
|
}
|
|
1333
|
-
|
|
1334
|
-
|
|
1327
|
+
// verify required parameter 'fileName' is not null or undefined
|
|
1328
|
+
if (queryParams.fileName === null || queryParams.fileName === undefined) {
|
|
1329
|
+
throw new Error('Required parameter queryParams.fileName was null or undefined when calling downloadOrganizationDataFile.');
|
|
1330
|
+
}
|
|
1331
|
+
if (queryParams.fileName !== undefined) {
|
|
1332
|
+
localVarQueryParameters['fileName'] = models_1.ObjectSerializer.serialize(queryParams.fileName, "string");
|
|
1335
1333
|
}
|
|
1336
1334
|
Object.assign(localVarHeaderParams, options.headers);
|
|
1337
1335
|
Object.assign(localVarHeaderParams, this.opts.extraHeaders);
|
|
@@ -1343,7 +1341,7 @@ class OrganizationDataApi {
|
|
|
1343
1341
|
uri: localVarPath,
|
|
1344
1342
|
useQuerystring: this._useQuerystring,
|
|
1345
1343
|
agentOptions: { keepAlive: false },
|
|
1346
|
-
|
|
1344
|
+
encoding: null,
|
|
1347
1345
|
};
|
|
1348
1346
|
let authenticationPromise = Promise.resolve();
|
|
1349
1347
|
authenticationPromise = authenticationPromise.then(() => this.authentications.ApiKeyAuthentication.applyToRequest(localVarRequestOptions));
|
|
@@ -1365,7 +1363,7 @@ class OrganizationDataApi {
|
|
|
1365
1363
|
reject(error);
|
|
1366
1364
|
}
|
|
1367
1365
|
else {
|
|
1368
|
-
body = models_1.ObjectSerializer.deserialize(body, "
|
|
1366
|
+
body = models_1.ObjectSerializer.deserialize(body, "Buffer");
|
|
1369
1367
|
const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
|
|
1370
1368
|
if (typeof body.success === 'boolean' && !body.success) {
|
|
1371
1369
|
reject(new Error(body.error || errString));
|
|
@@ -1382,22 +1380,21 @@ class OrganizationDataApi {
|
|
|
1382
1380
|
});
|
|
1383
1381
|
}
|
|
1384
1382
|
/**
|
|
1385
|
-
*
|
|
1386
|
-
* @summary
|
|
1383
|
+
* Download all data for selected data items. This function does not query the underlying bucket.
|
|
1384
|
+
* @summary Download data
|
|
1387
1385
|
* @param organizationId Organization ID
|
|
1388
|
-
* @param
|
|
1389
|
-
* @param
|
|
1390
|
-
* @param
|
|
1386
|
+
* @param dataIds Data IDs as an Array
|
|
1387
|
+
* @param dataset Selected dataset
|
|
1388
|
+
* @param filter Data filter in SQL WHERE format, where you can reference \'dataset\', \'bucket\', \'name\', \'total_file_count\', \'total_file_size\', \'created\' and any metadata label through \'metadata->\' (dots are replaced by underscore).
|
|
1391
1389
|
*/
|
|
1392
|
-
async
|
|
1393
|
-
const localVarPath = this.basePath + '/api/organizations/{organizationId}/data/
|
|
1394
|
-
.replace('{' + 'organizationId' + '}', encodeURIComponent(String(organizationId)))
|
|
1395
|
-
.replace('{' + 'dataId' + '}', encodeURIComponent(String(dataId)));
|
|
1390
|
+
async downloadOrganizationDataItem(organizationId, queryParams, options = { headers: {} }) {
|
|
1391
|
+
const localVarPath = this.basePath + '/api/organizations/{organizationId}/data/download'
|
|
1392
|
+
.replace('{' + 'organizationId' + '}', encodeURIComponent(String(organizationId)));
|
|
1396
1393
|
let localVarQueryParameters = {};
|
|
1397
1394
|
let localVarHeaderParams = Object.assign({
|
|
1398
1395
|
'User-Agent': 'edgeimpulse-api nodejs'
|
|
1399
1396
|
}, this.defaultHeaders);
|
|
1400
|
-
const produces = ['application/
|
|
1397
|
+
const produces = ['application/x-tar'];
|
|
1401
1398
|
// give precedence to 'application/json'
|
|
1402
1399
|
if (produces.indexOf('application/json') >= 0) {
|
|
1403
1400
|
localVarHeaderParams.Accept = 'application/json';
|
|
@@ -1408,17 +1405,20 @@ class OrganizationDataApi {
|
|
|
1408
1405
|
let localVarFormParams = {};
|
|
1409
1406
|
// verify required parameter 'organizationId' is not null or undefined
|
|
1410
1407
|
if (organizationId === null || organizationId === undefined) {
|
|
1411
|
-
throw new Error('Required parameter organizationId was null or undefined when calling
|
|
1408
|
+
throw new Error('Required parameter organizationId was null or undefined when calling downloadOrganizationDataItem.');
|
|
1412
1409
|
}
|
|
1413
|
-
// verify required parameter '
|
|
1414
|
-
if (
|
|
1415
|
-
throw new Error('Required parameter
|
|
1410
|
+
// verify required parameter 'dataIds' is not null or undefined
|
|
1411
|
+
if (queryParams.dataIds === null || queryParams.dataIds === undefined) {
|
|
1412
|
+
throw new Error('Required parameter queryParams.dataIds was null or undefined when calling downloadOrganizationDataItem.');
|
|
1416
1413
|
}
|
|
1417
|
-
if (queryParams.
|
|
1418
|
-
localVarQueryParameters['
|
|
1414
|
+
if (queryParams.dataset !== undefined) {
|
|
1415
|
+
localVarQueryParameters['dataset'] = models_1.ObjectSerializer.serialize(queryParams.dataset, "string");
|
|
1419
1416
|
}
|
|
1420
|
-
if (queryParams.
|
|
1421
|
-
localVarQueryParameters['
|
|
1417
|
+
if (queryParams.dataIds !== undefined) {
|
|
1418
|
+
localVarQueryParameters['dataIds'] = models_1.ObjectSerializer.serialize(queryParams.dataIds, "string");
|
|
1419
|
+
}
|
|
1420
|
+
if (queryParams.filter !== undefined) {
|
|
1421
|
+
localVarQueryParameters['filter'] = models_1.ObjectSerializer.serialize(queryParams.filter, "string");
|
|
1422
1422
|
}
|
|
1423
1423
|
Object.assign(localVarHeaderParams, options.headers);
|
|
1424
1424
|
Object.assign(localVarHeaderParams, this.opts.extraHeaders);
|
|
@@ -1430,7 +1430,7 @@ class OrganizationDataApi {
|
|
|
1430
1430
|
uri: localVarPath,
|
|
1431
1431
|
useQuerystring: this._useQuerystring,
|
|
1432
1432
|
agentOptions: { keepAlive: false },
|
|
1433
|
-
|
|
1433
|
+
encoding: null,
|
|
1434
1434
|
};
|
|
1435
1435
|
let authenticationPromise = Promise.resolve();
|
|
1436
1436
|
authenticationPromise = authenticationPromise.then(() => this.authentications.ApiKeyAuthentication.applyToRequest(localVarRequestOptions));
|
|
@@ -1452,7 +1452,7 @@ class OrganizationDataApi {
|
|
|
1452
1452
|
reject(error);
|
|
1453
1453
|
}
|
|
1454
1454
|
else {
|
|
1455
|
-
body = models_1.ObjectSerializer.deserialize(body, "
|
|
1455
|
+
body = models_1.ObjectSerializer.deserialize(body, "Buffer");
|
|
1456
1456
|
const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
|
|
1457
1457
|
if (typeof body.success === 'boolean' && !body.success) {
|
|
1458
1458
|
reject(new Error(body.error || errString));
|
|
@@ -1469,20 +1469,20 @@ class OrganizationDataApi {
|
|
|
1469
1469
|
});
|
|
1470
1470
|
}
|
|
1471
1471
|
/**
|
|
1472
|
-
*
|
|
1473
|
-
* @summary
|
|
1472
|
+
* Download all selected project data items.
|
|
1473
|
+
* @summary Download data
|
|
1474
1474
|
* @param organizationId Organization ID
|
|
1475
|
-
* @param
|
|
1475
|
+
* @param projectId Unique identifier of the organizational project from where data samples will be fetched.
|
|
1476
|
+
* @param ids Only include samples with an ID within the given list of IDs, given as a JSON string
|
|
1476
1477
|
*/
|
|
1477
|
-
async
|
|
1478
|
-
const localVarPath = this.basePath + '/api/organizations/{organizationId}/
|
|
1479
|
-
.replace('{' + 'organizationId' + '}', encodeURIComponent(String(organizationId)))
|
|
1480
|
-
.replace('{' + 'dataset' + '}', encodeURIComponent(String(dataset)));
|
|
1478
|
+
async downloadOrganizationProjectsData(organizationId, queryParams, options = { headers: {} }) {
|
|
1479
|
+
const localVarPath = this.basePath + '/api/organizations/{organizationId}/projects/data/download'
|
|
1480
|
+
.replace('{' + 'organizationId' + '}', encodeURIComponent(String(organizationId)));
|
|
1481
1481
|
let localVarQueryParameters = {};
|
|
1482
1482
|
let localVarHeaderParams = Object.assign({
|
|
1483
1483
|
'User-Agent': 'edgeimpulse-api nodejs'
|
|
1484
1484
|
}, this.defaultHeaders);
|
|
1485
|
-
const produces = ['application/
|
|
1485
|
+
const produces = ['application/x-zip'];
|
|
1486
1486
|
// give precedence to 'application/json'
|
|
1487
1487
|
if (produces.indexOf('application/json') >= 0) {
|
|
1488
1488
|
localVarHeaderParams.Accept = 'application/json';
|
|
@@ -1493,11 +1493,13 @@ class OrganizationDataApi {
|
|
|
1493
1493
|
let localVarFormParams = {};
|
|
1494
1494
|
// verify required parameter 'organizationId' is not null or undefined
|
|
1495
1495
|
if (organizationId === null || organizationId === undefined) {
|
|
1496
|
-
throw new Error('Required parameter organizationId was null or undefined when calling
|
|
1496
|
+
throw new Error('Required parameter organizationId was null or undefined when calling downloadOrganizationProjectsData.');
|
|
1497
1497
|
}
|
|
1498
|
-
|
|
1499
|
-
|
|
1500
|
-
|
|
1498
|
+
if (queryParams.projectId !== undefined) {
|
|
1499
|
+
localVarQueryParameters['projectId'] = models_1.ObjectSerializer.serialize(queryParams.projectId, "number");
|
|
1500
|
+
}
|
|
1501
|
+
if (queryParams.ids !== undefined) {
|
|
1502
|
+
localVarQueryParameters['ids'] = models_1.ObjectSerializer.serialize(queryParams.ids, "string");
|
|
1501
1503
|
}
|
|
1502
1504
|
Object.assign(localVarHeaderParams, options.headers);
|
|
1503
1505
|
Object.assign(localVarHeaderParams, this.opts.extraHeaders);
|
|
@@ -1509,7 +1511,7 @@ class OrganizationDataApi {
|
|
|
1509
1511
|
uri: localVarPath,
|
|
1510
1512
|
useQuerystring: this._useQuerystring,
|
|
1511
1513
|
agentOptions: { keepAlive: false },
|
|
1512
|
-
|
|
1514
|
+
encoding: null,
|
|
1513
1515
|
};
|
|
1514
1516
|
let authenticationPromise = Promise.resolve();
|
|
1515
1517
|
authenticationPromise = authenticationPromise.then(() => this.authentications.ApiKeyAuthentication.applyToRequest(localVarRequestOptions));
|
|
@@ -1531,7 +1533,7 @@ class OrganizationDataApi {
|
|
|
1531
1533
|
reject(error);
|
|
1532
1534
|
}
|
|
1533
1535
|
else {
|
|
1534
|
-
body = models_1.ObjectSerializer.deserialize(body, "
|
|
1536
|
+
body = models_1.ObjectSerializer.deserialize(body, "Buffer");
|
|
1535
1537
|
const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
|
|
1536
1538
|
if (typeof body.success === 'boolean' && !body.success) {
|
|
1537
1539
|
reject(new Error(body.error || errString));
|
|
@@ -1548,21 +1550,21 @@ class OrganizationDataApi {
|
|
|
1548
1550
|
});
|
|
1549
1551
|
}
|
|
1550
1552
|
/**
|
|
1551
|
-
*
|
|
1552
|
-
* @summary
|
|
1553
|
+
* Download all data for this data item.
|
|
1554
|
+
* @summary Download data
|
|
1553
1555
|
* @param organizationId Organization ID
|
|
1554
|
-
* @param
|
|
1555
|
-
* @param filter Data filter in SQL WHERE format, where you can reference \'
|
|
1556
|
-
* @param ids Only include samples with an ID within the given list of IDs, given as a JSON string
|
|
1556
|
+
* @param dataId Data ID
|
|
1557
|
+
* @param filter Data filter in SQL WHERE format, where you can reference \'dataset\', \'bucket\', \'name\', \'total_file_count\', \'total_file_size\', \'created\' and any metadata label through \'metadata->\' (dots are replaced by underscore).
|
|
1557
1558
|
*/
|
|
1558
|
-
async
|
|
1559
|
-
const localVarPath = this.basePath + '/api/organizations/{organizationId}/
|
|
1560
|
-
.replace('{' + 'organizationId' + '}', encodeURIComponent(String(organizationId)))
|
|
1559
|
+
async downloadOrganizationSingleDataItem(organizationId, dataId, queryParams, options = { headers: {} }) {
|
|
1560
|
+
const localVarPath = this.basePath + '/api/organizations/{organizationId}/data/{dataId}/download'
|
|
1561
|
+
.replace('{' + 'organizationId' + '}', encodeURIComponent(String(organizationId)))
|
|
1562
|
+
.replace('{' + 'dataId' + '}', encodeURIComponent(String(dataId)));
|
|
1561
1563
|
let localVarQueryParameters = {};
|
|
1562
1564
|
let localVarHeaderParams = Object.assign({
|
|
1563
1565
|
'User-Agent': 'edgeimpulse-api nodejs'
|
|
1564
1566
|
}, this.defaultHeaders);
|
|
1565
|
-
const produces = ['application/
|
|
1567
|
+
const produces = ['application/zip'];
|
|
1566
1568
|
// give precedence to 'application/json'
|
|
1567
1569
|
if (produces.indexOf('application/json') >= 0) {
|
|
1568
1570
|
localVarHeaderParams.Accept = 'application/json';
|
|
@@ -1573,17 +1575,15 @@ class OrganizationDataApi {
|
|
|
1573
1575
|
let localVarFormParams = {};
|
|
1574
1576
|
// verify required parameter 'organizationId' is not null or undefined
|
|
1575
1577
|
if (organizationId === null || organizationId === undefined) {
|
|
1576
|
-
throw new Error('Required parameter organizationId was null or undefined when calling
|
|
1578
|
+
throw new Error('Required parameter organizationId was null or undefined when calling downloadOrganizationSingleDataItem.');
|
|
1577
1579
|
}
|
|
1578
|
-
|
|
1579
|
-
|
|
1580
|
+
// verify required parameter 'dataId' is not null or undefined
|
|
1581
|
+
if (dataId === null || dataId === undefined) {
|
|
1582
|
+
throw new Error('Required parameter dataId was null or undefined when calling downloadOrganizationSingleDataItem.');
|
|
1580
1583
|
}
|
|
1581
1584
|
if (queryParams.filter !== undefined) {
|
|
1582
1585
|
localVarQueryParameters['filter'] = models_1.ObjectSerializer.serialize(queryParams.filter, "string");
|
|
1583
1586
|
}
|
|
1584
|
-
if (queryParams.ids !== undefined) {
|
|
1585
|
-
localVarQueryParameters['ids'] = models_1.ObjectSerializer.serialize(queryParams.ids, "string");
|
|
1586
|
-
}
|
|
1587
1587
|
Object.assign(localVarHeaderParams, options.headers);
|
|
1588
1588
|
Object.assign(localVarHeaderParams, this.opts.extraHeaders);
|
|
1589
1589
|
let localVarUseFormData = false;
|
|
@@ -1594,7 +1594,7 @@ class OrganizationDataApi {
|
|
|
1594
1594
|
uri: localVarPath,
|
|
1595
1595
|
useQuerystring: this._useQuerystring,
|
|
1596
1596
|
agentOptions: { keepAlive: false },
|
|
1597
|
-
|
|
1597
|
+
encoding: null,
|
|
1598
1598
|
};
|
|
1599
1599
|
let authenticationPromise = Promise.resolve();
|
|
1600
1600
|
authenticationPromise = authenticationPromise.then(() => this.authentications.ApiKeyAuthentication.applyToRequest(localVarRequestOptions));
|
|
@@ -1616,7 +1616,7 @@ class OrganizationDataApi {
|
|
|
1616
1616
|
reject(error);
|
|
1617
1617
|
}
|
|
1618
1618
|
else {
|
|
1619
|
-
body = models_1.ObjectSerializer.deserialize(body, "
|
|
1619
|
+
body = models_1.ObjectSerializer.deserialize(body, "Buffer");
|
|
1620
1620
|
const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
|
|
1621
1621
|
if (typeof body.success === 'boolean' && !body.success) {
|
|
1622
1622
|
reject(new Error(body.error || errString));
|
|
@@ -1633,15 +1633,16 @@ class OrganizationDataApi {
|
|
|
1633
1633
|
});
|
|
1634
1634
|
}
|
|
1635
1635
|
/**
|
|
1636
|
-
*
|
|
1637
|
-
* @summary
|
|
1636
|
+
* Get a data item. This will HEAD the underlying bucket to retrieve the last file information.
|
|
1637
|
+
* @summary Get data metadata
|
|
1638
1638
|
* @param organizationId Organization ID
|
|
1639
|
-
* @param
|
|
1639
|
+
* @param dataId Data ID
|
|
1640
|
+
* @param filter Data filter in SQL WHERE format, where you can reference \'dataset\', \'bucket\', \'name\', \'total_file_count\', \'total_file_size\', \'created\' and any metadata label through \'metadata->\' (dots are replaced by underscore).
|
|
1640
1641
|
*/
|
|
1641
|
-
async
|
|
1642
|
-
const localVarPath = this.basePath + '/api/organizations/{organizationId}/
|
|
1642
|
+
async getOrganizationDataItem(organizationId, dataId, queryParams, options = { headers: {} }) {
|
|
1643
|
+
const localVarPath = this.basePath + '/api/organizations/{organizationId}/data/{dataId}'
|
|
1643
1644
|
.replace('{' + 'organizationId' + '}', encodeURIComponent(String(organizationId)))
|
|
1644
|
-
.replace('{' + '
|
|
1645
|
+
.replace('{' + 'dataId' + '}', encodeURIComponent(String(dataId)));
|
|
1645
1646
|
let localVarQueryParameters = {};
|
|
1646
1647
|
let localVarHeaderParams = Object.assign({
|
|
1647
1648
|
'User-Agent': 'edgeimpulse-api nodejs'
|
|
@@ -1657,17 +1658,20 @@ class OrganizationDataApi {
|
|
|
1657
1658
|
let localVarFormParams = {};
|
|
1658
1659
|
// verify required parameter 'organizationId' is not null or undefined
|
|
1659
1660
|
if (organizationId === null || organizationId === undefined) {
|
|
1660
|
-
throw new Error('Required parameter organizationId was null or undefined when calling
|
|
1661
|
+
throw new Error('Required parameter organizationId was null or undefined when calling getOrganizationDataItem.');
|
|
1661
1662
|
}
|
|
1662
|
-
// verify required parameter '
|
|
1663
|
-
if (
|
|
1664
|
-
throw new Error('Required parameter
|
|
1663
|
+
// verify required parameter 'dataId' is not null or undefined
|
|
1664
|
+
if (dataId === null || dataId === undefined) {
|
|
1665
|
+
throw new Error('Required parameter dataId was null or undefined when calling getOrganizationDataItem.');
|
|
1666
|
+
}
|
|
1667
|
+
if (queryParams.filter !== undefined) {
|
|
1668
|
+
localVarQueryParameters['filter'] = models_1.ObjectSerializer.serialize(queryParams.filter, "string");
|
|
1665
1669
|
}
|
|
1666
1670
|
Object.assign(localVarHeaderParams, options.headers);
|
|
1667
1671
|
Object.assign(localVarHeaderParams, this.opts.extraHeaders);
|
|
1668
1672
|
let localVarUseFormData = false;
|
|
1669
1673
|
let localVarRequestOptions = {
|
|
1670
|
-
method: '
|
|
1674
|
+
method: 'GET',
|
|
1671
1675
|
qs: localVarQueryParameters,
|
|
1672
1676
|
headers: localVarHeaderParams,
|
|
1673
1677
|
uri: localVarPath,
|
|
@@ -1695,7 +1699,7 @@ class OrganizationDataApi {
|
|
|
1695
1699
|
reject(error);
|
|
1696
1700
|
}
|
|
1697
1701
|
else {
|
|
1698
|
-
body = models_1.ObjectSerializer.deserialize(body, "
|
|
1702
|
+
body = models_1.ObjectSerializer.deserialize(body, "GetOrganizationDataItemResponse");
|
|
1699
1703
|
const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
|
|
1700
1704
|
if (typeof body.success === 'boolean' && !body.success) {
|
|
1701
1705
|
reject(new Error(body.error || errString));
|
|
@@ -1712,13 +1716,17 @@ class OrganizationDataApi {
|
|
|
1712
1716
|
});
|
|
1713
1717
|
}
|
|
1714
1718
|
/**
|
|
1715
|
-
*
|
|
1716
|
-
* @summary
|
|
1719
|
+
* Get all transformation jobs that ran for a data item. If limit / offset is not provided then max. 20 results are returned.
|
|
1720
|
+
* @summary Get transformation jobs for data item
|
|
1717
1721
|
* @param organizationId Organization ID
|
|
1722
|
+
* @param dataId Data ID
|
|
1723
|
+
* @param limit Maximum number of results
|
|
1724
|
+
* @param offset Offset in results, can be used in conjunction with LimitResultsParameter to implement paging.
|
|
1718
1725
|
*/
|
|
1719
|
-
async
|
|
1720
|
-
const localVarPath = this.basePath + '/api/organizations/{organizationId}/
|
|
1721
|
-
.replace('{' + 'organizationId' + '}', encodeURIComponent(String(organizationId)))
|
|
1726
|
+
async getOrganizationDataItemTransformJobs(organizationId, dataId, queryParams, options = { headers: {} }) {
|
|
1727
|
+
const localVarPath = this.basePath + '/api/organizations/{organizationId}/data/{dataId}/transformation-jobs'
|
|
1728
|
+
.replace('{' + 'organizationId' + '}', encodeURIComponent(String(organizationId)))
|
|
1729
|
+
.replace('{' + 'dataId' + '}', encodeURIComponent(String(dataId)));
|
|
1722
1730
|
let localVarQueryParameters = {};
|
|
1723
1731
|
let localVarHeaderParams = Object.assign({
|
|
1724
1732
|
'User-Agent': 'edgeimpulse-api nodejs'
|
|
@@ -1734,7 +1742,17 @@ class OrganizationDataApi {
|
|
|
1734
1742
|
let localVarFormParams = {};
|
|
1735
1743
|
// verify required parameter 'organizationId' is not null or undefined
|
|
1736
1744
|
if (organizationId === null || organizationId === undefined) {
|
|
1737
|
-
throw new Error('Required parameter organizationId was null or undefined when calling
|
|
1745
|
+
throw new Error('Required parameter organizationId was null or undefined when calling getOrganizationDataItemTransformJobs.');
|
|
1746
|
+
}
|
|
1747
|
+
// verify required parameter 'dataId' is not null or undefined
|
|
1748
|
+
if (dataId === null || dataId === undefined) {
|
|
1749
|
+
throw new Error('Required parameter dataId was null or undefined when calling getOrganizationDataItemTransformJobs.');
|
|
1750
|
+
}
|
|
1751
|
+
if (queryParams.limit !== undefined) {
|
|
1752
|
+
localVarQueryParameters['limit'] = models_1.ObjectSerializer.serialize(queryParams.limit, "number");
|
|
1753
|
+
}
|
|
1754
|
+
if (queryParams.offset !== undefined) {
|
|
1755
|
+
localVarQueryParameters['offset'] = models_1.ObjectSerializer.serialize(queryParams.offset, "number");
|
|
1738
1756
|
}
|
|
1739
1757
|
Object.assign(localVarHeaderParams, options.headers);
|
|
1740
1758
|
Object.assign(localVarHeaderParams, this.opts.extraHeaders);
|
|
@@ -1768,7 +1786,7 @@ class OrganizationDataApi {
|
|
|
1768
1786
|
reject(error);
|
|
1769
1787
|
}
|
|
1770
1788
|
else {
|
|
1771
|
-
body = models_1.ObjectSerializer.deserialize(body, "
|
|
1789
|
+
body = models_1.ObjectSerializer.deserialize(body, "GetOrganizationDataItemTransformJobsResponse");
|
|
1772
1790
|
const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
|
|
1773
1791
|
if (typeof body.success === 'boolean' && !body.success) {
|
|
1774
1792
|
reject(new Error(body.error || errString));
|
|
@@ -1785,17 +1803,15 @@ class OrganizationDataApi {
|
|
|
1785
1803
|
});
|
|
1786
1804
|
}
|
|
1787
1805
|
/**
|
|
1788
|
-
*
|
|
1789
|
-
* @summary
|
|
1806
|
+
* Get information about a dataset
|
|
1807
|
+
* @summary Get dataset
|
|
1790
1808
|
* @param organizationId Organization ID
|
|
1791
|
-
* @param dataset
|
|
1792
|
-
* @param filter Data filter in SQL WHERE format, where you can reference \'dataset\', \'bucket\', \'name\', \'total_file_count\', \'total_file_size\', \'created\' and any metadata label through \'metadata->\' (dots are replaced by underscore).
|
|
1793
|
-
* @param limit Maximum number of results
|
|
1794
|
-
* @param offset Offset in results, can be used in conjunction with LimitResultsParameter to implement paging.
|
|
1809
|
+
* @param dataset Dataset name
|
|
1795
1810
|
*/
|
|
1796
|
-
async
|
|
1797
|
-
const localVarPath = this.basePath + '/api/organizations/{organizationId}/
|
|
1798
|
-
.replace('{' + 'organizationId' + '}', encodeURIComponent(String(organizationId)))
|
|
1811
|
+
async getOrganizationDataset(organizationId, dataset, options = { headers: {} }) {
|
|
1812
|
+
const localVarPath = this.basePath + '/api/organizations/{organizationId}/dataset/{dataset}'
|
|
1813
|
+
.replace('{' + 'organizationId' + '}', encodeURIComponent(String(organizationId)))
|
|
1814
|
+
.replace('{' + 'dataset' + '}', encodeURIComponent(String(dataset)));
|
|
1799
1815
|
let localVarQueryParameters = {};
|
|
1800
1816
|
let localVarHeaderParams = Object.assign({
|
|
1801
1817
|
'User-Agent': 'edgeimpulse-api nodejs'
|
|
@@ -1811,19 +1827,11 @@ class OrganizationDataApi {
|
|
|
1811
1827
|
let localVarFormParams = {};
|
|
1812
1828
|
// verify required parameter 'organizationId' is not null or undefined
|
|
1813
1829
|
if (organizationId === null || organizationId === undefined) {
|
|
1814
|
-
throw new Error('Required parameter organizationId was null or undefined when calling
|
|
1815
|
-
}
|
|
1816
|
-
if (queryParams.dataset !== undefined) {
|
|
1817
|
-
localVarQueryParameters['dataset'] = models_1.ObjectSerializer.serialize(queryParams.dataset, "string");
|
|
1818
|
-
}
|
|
1819
|
-
if (queryParams.filter !== undefined) {
|
|
1820
|
-
localVarQueryParameters['filter'] = models_1.ObjectSerializer.serialize(queryParams.filter, "string");
|
|
1821
|
-
}
|
|
1822
|
-
if (queryParams.limit !== undefined) {
|
|
1823
|
-
localVarQueryParameters['limit'] = models_1.ObjectSerializer.serialize(queryParams.limit, "number");
|
|
1830
|
+
throw new Error('Required parameter organizationId was null or undefined when calling getOrganizationDataset.');
|
|
1824
1831
|
}
|
|
1825
|
-
|
|
1826
|
-
|
|
1832
|
+
// verify required parameter 'dataset' is not null or undefined
|
|
1833
|
+
if (dataset === null || dataset === undefined) {
|
|
1834
|
+
throw new Error('Required parameter dataset was null or undefined when calling getOrganizationDataset.');
|
|
1827
1835
|
}
|
|
1828
1836
|
Object.assign(localVarHeaderParams, options.headers);
|
|
1829
1837
|
Object.assign(localVarHeaderParams, this.opts.extraHeaders);
|
|
@@ -1857,7 +1865,7 @@ class OrganizationDataApi {
|
|
|
1857
1865
|
reject(error);
|
|
1858
1866
|
}
|
|
1859
1867
|
else {
|
|
1860
|
-
body = models_1.ObjectSerializer.deserialize(body, "
|
|
1868
|
+
body = models_1.ObjectSerializer.deserialize(body, "GetOrganizationDatasetResponse");
|
|
1861
1869
|
const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
|
|
1862
1870
|
if (typeof body.success === 'boolean' && !body.success) {
|
|
1863
1871
|
reject(new Error(body.error || errString));
|
|
@@ -1874,16 +1882,15 @@ class OrganizationDataApi {
|
|
|
1874
1882
|
});
|
|
1875
1883
|
}
|
|
1876
1884
|
/**
|
|
1877
|
-
*
|
|
1878
|
-
* @summary
|
|
1885
|
+
* Get the number of samples for all or for a specific organization project.
|
|
1886
|
+
* @summary Get projects data count
|
|
1879
1887
|
* @param organizationId Organization ID
|
|
1880
|
-
* @param
|
|
1881
|
-
* @param filter Data filter in SQL WHERE format, where you can reference \'
|
|
1882
|
-
* @param
|
|
1883
|
-
* @param offset Offset in results, can be used in conjunction with LimitResultsParameter to implement paging.
|
|
1888
|
+
* @param projectId Unique identifier of the organizational project from where data samples will be fetched.
|
|
1889
|
+
* @param filter Data filter in SQL WHERE format, where you can reference \'filename\', \'label\', \'project_name\', \'category\', \'sensors\', \'frequency\', and any metadata through \'metadata->\' (dots are replaced by underscore).
|
|
1890
|
+
* @param ids Only include samples with an ID within the given list of IDs, given as a JSON string
|
|
1884
1891
|
*/
|
|
1885
|
-
async
|
|
1886
|
-
const localVarPath = this.basePath + '/api/organizations/{organizationId}/data/
|
|
1892
|
+
async getOrganizationProjectsDataCount(organizationId, queryParams, options = { headers: {} }) {
|
|
1893
|
+
const localVarPath = this.basePath + '/api/organizations/{organizationId}/projects/data/count'
|
|
1887
1894
|
.replace('{' + 'organizationId' + '}', encodeURIComponent(String(organizationId)));
|
|
1888
1895
|
let localVarQueryParameters = {};
|
|
1889
1896
|
let localVarHeaderParams = Object.assign({
|
|
@@ -1900,19 +1907,16 @@ class OrganizationDataApi {
|
|
|
1900
1907
|
let localVarFormParams = {};
|
|
1901
1908
|
// verify required parameter 'organizationId' is not null or undefined
|
|
1902
1909
|
if (organizationId === null || organizationId === undefined) {
|
|
1903
|
-
throw new Error('Required parameter organizationId was null or undefined when calling
|
|
1910
|
+
throw new Error('Required parameter organizationId was null or undefined when calling getOrganizationProjectsDataCount.');
|
|
1904
1911
|
}
|
|
1905
|
-
if (queryParams.
|
|
1906
|
-
localVarQueryParameters['
|
|
1912
|
+
if (queryParams.projectId !== undefined) {
|
|
1913
|
+
localVarQueryParameters['projectId'] = models_1.ObjectSerializer.serialize(queryParams.projectId, "number");
|
|
1907
1914
|
}
|
|
1908
1915
|
if (queryParams.filter !== undefined) {
|
|
1909
1916
|
localVarQueryParameters['filter'] = models_1.ObjectSerializer.serialize(queryParams.filter, "string");
|
|
1910
1917
|
}
|
|
1911
|
-
if (queryParams.
|
|
1912
|
-
localVarQueryParameters['
|
|
1913
|
-
}
|
|
1914
|
-
if (queryParams.offset !== undefined) {
|
|
1915
|
-
localVarQueryParameters['offset'] = models_1.ObjectSerializer.serialize(queryParams.offset, "number");
|
|
1918
|
+
if (queryParams.ids !== undefined) {
|
|
1919
|
+
localVarQueryParameters['ids'] = models_1.ObjectSerializer.serialize(queryParams.ids, "string");
|
|
1916
1920
|
}
|
|
1917
1921
|
Object.assign(localVarHeaderParams, options.headers);
|
|
1918
1922
|
Object.assign(localVarHeaderParams, this.opts.extraHeaders);
|
|
@@ -1946,7 +1950,7 @@ class OrganizationDataApi {
|
|
|
1946
1950
|
reject(error);
|
|
1947
1951
|
}
|
|
1948
1952
|
else {
|
|
1949
|
-
body = models_1.ObjectSerializer.deserialize(body, "
|
|
1953
|
+
body = models_1.ObjectSerializer.deserialize(body, "GetOrganizationProjectsDataCountResponse");
|
|
1950
1954
|
const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
|
|
1951
1955
|
if (typeof body.success === 'boolean' && !body.success) {
|
|
1952
1956
|
reject(new Error(body.error || errString));
|
|
@@ -1963,16 +1967,431 @@ class OrganizationDataApi {
|
|
|
1963
1967
|
});
|
|
1964
1968
|
}
|
|
1965
1969
|
/**
|
|
1966
|
-
*
|
|
1967
|
-
* @summary
|
|
1970
|
+
* Hide a dataset (does not remove underlying data)
|
|
1971
|
+
* @summary Hide dataset
|
|
1968
1972
|
* @param organizationId Organization ID
|
|
1969
|
-
* @param
|
|
1970
|
-
* @param filter Data filter in SQL WHERE format, where you can reference \'filename\', \'label\', \'project_name\', \'category\', \'sensors\', \'frequency\', and any metadata through \'metadata->\' (dots are replaced by underscore).
|
|
1971
|
-
* @param ids Only include samples with an ID within the given list of IDs, given as a JSON string
|
|
1972
|
-
* @param limit Maximum number of results
|
|
1973
|
-
* @param offset Offset in results, can be used in conjunction with LimitResultsParameter to implement paging.
|
|
1973
|
+
* @param dataset Dataset name
|
|
1974
1974
|
*/
|
|
1975
|
-
async
|
|
1975
|
+
async hideOrganizationDataset(organizationId, dataset, options = { headers: {} }) {
|
|
1976
|
+
const localVarPath = this.basePath + '/api/organizations/{organizationId}/dataset/{dataset}/hide'
|
|
1977
|
+
.replace('{' + 'organizationId' + '}', encodeURIComponent(String(organizationId)))
|
|
1978
|
+
.replace('{' + 'dataset' + '}', encodeURIComponent(String(dataset)));
|
|
1979
|
+
let localVarQueryParameters = {};
|
|
1980
|
+
let localVarHeaderParams = Object.assign({
|
|
1981
|
+
'User-Agent': 'edgeimpulse-api nodejs'
|
|
1982
|
+
}, this.defaultHeaders);
|
|
1983
|
+
const produces = ['application/json'];
|
|
1984
|
+
// give precedence to 'application/json'
|
|
1985
|
+
if (produces.indexOf('application/json') >= 0) {
|
|
1986
|
+
localVarHeaderParams.Accept = 'application/json';
|
|
1987
|
+
}
|
|
1988
|
+
else {
|
|
1989
|
+
localVarHeaderParams.Accept = produces.join(',');
|
|
1990
|
+
}
|
|
1991
|
+
let localVarFormParams = {};
|
|
1992
|
+
// verify required parameter 'organizationId' is not null or undefined
|
|
1993
|
+
if (organizationId === null || organizationId === undefined) {
|
|
1994
|
+
throw new Error('Required parameter organizationId was null or undefined when calling hideOrganizationDataset.');
|
|
1995
|
+
}
|
|
1996
|
+
// verify required parameter 'dataset' is not null or undefined
|
|
1997
|
+
if (dataset === null || dataset === undefined) {
|
|
1998
|
+
throw new Error('Required parameter dataset was null or undefined when calling hideOrganizationDataset.');
|
|
1999
|
+
}
|
|
2000
|
+
Object.assign(localVarHeaderParams, options.headers);
|
|
2001
|
+
Object.assign(localVarHeaderParams, this.opts.extraHeaders);
|
|
2002
|
+
let localVarUseFormData = false;
|
|
2003
|
+
let localVarRequestOptions = {
|
|
2004
|
+
method: 'POST',
|
|
2005
|
+
qs: localVarQueryParameters,
|
|
2006
|
+
headers: localVarHeaderParams,
|
|
2007
|
+
uri: localVarPath,
|
|
2008
|
+
useQuerystring: this._useQuerystring,
|
|
2009
|
+
agentOptions: { keepAlive: false },
|
|
2010
|
+
json: true,
|
|
2011
|
+
};
|
|
2012
|
+
let authenticationPromise = Promise.resolve();
|
|
2013
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.ApiKeyAuthentication.applyToRequest(localVarRequestOptions));
|
|
2014
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.JWTAuthentication.applyToRequest(localVarRequestOptions));
|
|
2015
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.JWTHttpHeaderAuthentication.applyToRequest(localVarRequestOptions));
|
|
2016
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
|
|
2017
|
+
return authenticationPromise.then(() => {
|
|
2018
|
+
if (Object.keys(localVarFormParams).length) {
|
|
2019
|
+
if (localVarUseFormData) {
|
|
2020
|
+
localVarRequestOptions.formData = localVarFormParams;
|
|
2021
|
+
}
|
|
2022
|
+
else {
|
|
2023
|
+
localVarRequestOptions.form = localVarFormParams;
|
|
2024
|
+
}
|
|
2025
|
+
}
|
|
2026
|
+
return new Promise((resolve, reject) => {
|
|
2027
|
+
localVarRequest(localVarRequestOptions, (error, response, body) => {
|
|
2028
|
+
if (error) {
|
|
2029
|
+
reject(error);
|
|
2030
|
+
}
|
|
2031
|
+
else {
|
|
2032
|
+
body = models_1.ObjectSerializer.deserialize(body, "GenericApiResponse");
|
|
2033
|
+
const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
|
|
2034
|
+
if (typeof body.success === 'boolean' && !body.success) {
|
|
2035
|
+
reject(new Error(body.error || errString));
|
|
2036
|
+
}
|
|
2037
|
+
else if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
2038
|
+
resolve(body);
|
|
2039
|
+
}
|
|
2040
|
+
else {
|
|
2041
|
+
reject(errString);
|
|
2042
|
+
}
|
|
2043
|
+
}
|
|
2044
|
+
});
|
|
2045
|
+
});
|
|
2046
|
+
});
|
|
2047
|
+
}
|
|
2048
|
+
/**
|
|
2049
|
+
* List all files and directories in specified prefix.
|
|
2050
|
+
* @summary List files in dataset
|
|
2051
|
+
* @param organizationId Organization ID
|
|
2052
|
+
* @param dataset Dataset name
|
|
2053
|
+
* @param listPortalFilesInFolderRequest
|
|
2054
|
+
*/
|
|
2055
|
+
async listDatasetFilesInFolder(organizationId, dataset, listPortalFilesInFolderRequest, options = { headers: {} }) {
|
|
2056
|
+
const localVarPath = this.basePath + '/api/organizations/{organizationId}/dataset/{dataset}/files'
|
|
2057
|
+
.replace('{' + 'organizationId' + '}', encodeURIComponent(String(organizationId)))
|
|
2058
|
+
.replace('{' + 'dataset' + '}', encodeURIComponent(String(dataset)));
|
|
2059
|
+
let localVarQueryParameters = {};
|
|
2060
|
+
let localVarHeaderParams = Object.assign({
|
|
2061
|
+
'User-Agent': 'edgeimpulse-api nodejs'
|
|
2062
|
+
}, this.defaultHeaders);
|
|
2063
|
+
const produces = ['application/json'];
|
|
2064
|
+
// give precedence to 'application/json'
|
|
2065
|
+
if (produces.indexOf('application/json') >= 0) {
|
|
2066
|
+
localVarHeaderParams.Accept = 'application/json';
|
|
2067
|
+
}
|
|
2068
|
+
else {
|
|
2069
|
+
localVarHeaderParams.Accept = produces.join(',');
|
|
2070
|
+
}
|
|
2071
|
+
let localVarFormParams = {};
|
|
2072
|
+
// verify required parameter 'organizationId' is not null or undefined
|
|
2073
|
+
if (organizationId === null || organizationId === undefined) {
|
|
2074
|
+
throw new Error('Required parameter organizationId was null or undefined when calling listDatasetFilesInFolder.');
|
|
2075
|
+
}
|
|
2076
|
+
// verify required parameter 'dataset' is not null or undefined
|
|
2077
|
+
if (dataset === null || dataset === undefined) {
|
|
2078
|
+
throw new Error('Required parameter dataset was null or undefined when calling listDatasetFilesInFolder.');
|
|
2079
|
+
}
|
|
2080
|
+
// verify required parameter 'listPortalFilesInFolderRequest' is not null or undefined
|
|
2081
|
+
if (listPortalFilesInFolderRequest === null || listPortalFilesInFolderRequest === undefined) {
|
|
2082
|
+
throw new Error('Required parameter listPortalFilesInFolderRequest was null or undefined when calling listDatasetFilesInFolder.');
|
|
2083
|
+
}
|
|
2084
|
+
Object.assign(localVarHeaderParams, options.headers);
|
|
2085
|
+
Object.assign(localVarHeaderParams, this.opts.extraHeaders);
|
|
2086
|
+
let localVarUseFormData = false;
|
|
2087
|
+
let localVarRequestOptions = {
|
|
2088
|
+
method: 'POST',
|
|
2089
|
+
qs: localVarQueryParameters,
|
|
2090
|
+
headers: localVarHeaderParams,
|
|
2091
|
+
uri: localVarPath,
|
|
2092
|
+
useQuerystring: this._useQuerystring,
|
|
2093
|
+
agentOptions: { keepAlive: false },
|
|
2094
|
+
json: true,
|
|
2095
|
+
body: models_1.ObjectSerializer.serialize(listPortalFilesInFolderRequest, "ListPortalFilesInFolderRequest")
|
|
2096
|
+
};
|
|
2097
|
+
let authenticationPromise = Promise.resolve();
|
|
2098
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.ApiKeyAuthentication.applyToRequest(localVarRequestOptions));
|
|
2099
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.JWTAuthentication.applyToRequest(localVarRequestOptions));
|
|
2100
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.JWTHttpHeaderAuthentication.applyToRequest(localVarRequestOptions));
|
|
2101
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
|
|
2102
|
+
return authenticationPromise.then(() => {
|
|
2103
|
+
if (Object.keys(localVarFormParams).length) {
|
|
2104
|
+
if (localVarUseFormData) {
|
|
2105
|
+
localVarRequestOptions.formData = localVarFormParams;
|
|
2106
|
+
}
|
|
2107
|
+
else {
|
|
2108
|
+
localVarRequestOptions.form = localVarFormParams;
|
|
2109
|
+
}
|
|
2110
|
+
}
|
|
2111
|
+
return new Promise((resolve, reject) => {
|
|
2112
|
+
localVarRequest(localVarRequestOptions, (error, response, body) => {
|
|
2113
|
+
if (error) {
|
|
2114
|
+
reject(error);
|
|
2115
|
+
}
|
|
2116
|
+
else {
|
|
2117
|
+
body = models_1.ObjectSerializer.deserialize(body, "ListPortalFilesInFolderResponse");
|
|
2118
|
+
const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
|
|
2119
|
+
if (typeof body.success === 'boolean' && !body.success) {
|
|
2120
|
+
reject(new Error(body.error || errString));
|
|
2121
|
+
}
|
|
2122
|
+
else if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
2123
|
+
resolve(body);
|
|
2124
|
+
}
|
|
2125
|
+
else {
|
|
2126
|
+
reject(errString);
|
|
2127
|
+
}
|
|
2128
|
+
}
|
|
2129
|
+
});
|
|
2130
|
+
});
|
|
2131
|
+
});
|
|
2132
|
+
}
|
|
2133
|
+
/**
|
|
2134
|
+
* Retrieve all configured storage buckets. This does not list the secret key.
|
|
2135
|
+
* @summary List storage buckets
|
|
2136
|
+
* @param organizationId Organization ID
|
|
2137
|
+
*/
|
|
2138
|
+
async listOrganizationBuckets(organizationId, options = { headers: {} }) {
|
|
2139
|
+
const localVarPath = this.basePath + '/api/organizations/{organizationId}/buckets'
|
|
2140
|
+
.replace('{' + 'organizationId' + '}', encodeURIComponent(String(organizationId)));
|
|
2141
|
+
let localVarQueryParameters = {};
|
|
2142
|
+
let localVarHeaderParams = Object.assign({
|
|
2143
|
+
'User-Agent': 'edgeimpulse-api nodejs'
|
|
2144
|
+
}, this.defaultHeaders);
|
|
2145
|
+
const produces = ['application/json'];
|
|
2146
|
+
// give precedence to 'application/json'
|
|
2147
|
+
if (produces.indexOf('application/json') >= 0) {
|
|
2148
|
+
localVarHeaderParams.Accept = 'application/json';
|
|
2149
|
+
}
|
|
2150
|
+
else {
|
|
2151
|
+
localVarHeaderParams.Accept = produces.join(',');
|
|
2152
|
+
}
|
|
2153
|
+
let localVarFormParams = {};
|
|
2154
|
+
// verify required parameter 'organizationId' is not null or undefined
|
|
2155
|
+
if (organizationId === null || organizationId === undefined) {
|
|
2156
|
+
throw new Error('Required parameter organizationId was null or undefined when calling listOrganizationBuckets.');
|
|
2157
|
+
}
|
|
2158
|
+
Object.assign(localVarHeaderParams, options.headers);
|
|
2159
|
+
Object.assign(localVarHeaderParams, this.opts.extraHeaders);
|
|
2160
|
+
let localVarUseFormData = false;
|
|
2161
|
+
let localVarRequestOptions = {
|
|
2162
|
+
method: 'GET',
|
|
2163
|
+
qs: localVarQueryParameters,
|
|
2164
|
+
headers: localVarHeaderParams,
|
|
2165
|
+
uri: localVarPath,
|
|
2166
|
+
useQuerystring: this._useQuerystring,
|
|
2167
|
+
agentOptions: { keepAlive: false },
|
|
2168
|
+
json: true,
|
|
2169
|
+
};
|
|
2170
|
+
let authenticationPromise = Promise.resolve();
|
|
2171
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.ApiKeyAuthentication.applyToRequest(localVarRequestOptions));
|
|
2172
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.JWTAuthentication.applyToRequest(localVarRequestOptions));
|
|
2173
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.JWTHttpHeaderAuthentication.applyToRequest(localVarRequestOptions));
|
|
2174
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
|
|
2175
|
+
return authenticationPromise.then(() => {
|
|
2176
|
+
if (Object.keys(localVarFormParams).length) {
|
|
2177
|
+
if (localVarUseFormData) {
|
|
2178
|
+
localVarRequestOptions.formData = localVarFormParams;
|
|
2179
|
+
}
|
|
2180
|
+
else {
|
|
2181
|
+
localVarRequestOptions.form = localVarFormParams;
|
|
2182
|
+
}
|
|
2183
|
+
}
|
|
2184
|
+
return new Promise((resolve, reject) => {
|
|
2185
|
+
localVarRequest(localVarRequestOptions, (error, response, body) => {
|
|
2186
|
+
if (error) {
|
|
2187
|
+
reject(error);
|
|
2188
|
+
}
|
|
2189
|
+
else {
|
|
2190
|
+
body = models_1.ObjectSerializer.deserialize(body, "ListOrganizationBucketsResponse");
|
|
2191
|
+
const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
|
|
2192
|
+
if (typeof body.success === 'boolean' && !body.success) {
|
|
2193
|
+
reject(new Error(body.error || errString));
|
|
2194
|
+
}
|
|
2195
|
+
else if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
2196
|
+
resolve(body);
|
|
2197
|
+
}
|
|
2198
|
+
else {
|
|
2199
|
+
reject(errString);
|
|
2200
|
+
}
|
|
2201
|
+
}
|
|
2202
|
+
});
|
|
2203
|
+
});
|
|
2204
|
+
});
|
|
2205
|
+
}
|
|
2206
|
+
/**
|
|
2207
|
+
* Lists all data items. This can be filtered by the ?filter parameter.
|
|
2208
|
+
* @summary List data
|
|
2209
|
+
* @param organizationId Organization ID
|
|
2210
|
+
* @param dataset Selected dataset
|
|
2211
|
+
* @param filter Data filter in SQL WHERE format, where you can reference \'dataset\', \'bucket\', \'name\', \'total_file_count\', \'total_file_size\', \'created\' and any metadata label through \'metadata->\' (dots are replaced by underscore).
|
|
2212
|
+
* @param limit Maximum number of results
|
|
2213
|
+
* @param offset Offset in results, can be used in conjunction with LimitResultsParameter to implement paging.
|
|
2214
|
+
*/
|
|
2215
|
+
async listOrganizationData(organizationId, queryParams, options = { headers: {} }) {
|
|
2216
|
+
const localVarPath = this.basePath + '/api/organizations/{organizationId}/data'
|
|
2217
|
+
.replace('{' + 'organizationId' + '}', encodeURIComponent(String(organizationId)));
|
|
2218
|
+
let localVarQueryParameters = {};
|
|
2219
|
+
let localVarHeaderParams = Object.assign({
|
|
2220
|
+
'User-Agent': 'edgeimpulse-api nodejs'
|
|
2221
|
+
}, this.defaultHeaders);
|
|
2222
|
+
const produces = ['application/json'];
|
|
2223
|
+
// give precedence to 'application/json'
|
|
2224
|
+
if (produces.indexOf('application/json') >= 0) {
|
|
2225
|
+
localVarHeaderParams.Accept = 'application/json';
|
|
2226
|
+
}
|
|
2227
|
+
else {
|
|
2228
|
+
localVarHeaderParams.Accept = produces.join(',');
|
|
2229
|
+
}
|
|
2230
|
+
let localVarFormParams = {};
|
|
2231
|
+
// verify required parameter 'organizationId' is not null or undefined
|
|
2232
|
+
if (organizationId === null || organizationId === undefined) {
|
|
2233
|
+
throw new Error('Required parameter organizationId was null or undefined when calling listOrganizationData.');
|
|
2234
|
+
}
|
|
2235
|
+
if (queryParams.dataset !== undefined) {
|
|
2236
|
+
localVarQueryParameters['dataset'] = models_1.ObjectSerializer.serialize(queryParams.dataset, "string");
|
|
2237
|
+
}
|
|
2238
|
+
if (queryParams.filter !== undefined) {
|
|
2239
|
+
localVarQueryParameters['filter'] = models_1.ObjectSerializer.serialize(queryParams.filter, "string");
|
|
2240
|
+
}
|
|
2241
|
+
if (queryParams.limit !== undefined) {
|
|
2242
|
+
localVarQueryParameters['limit'] = models_1.ObjectSerializer.serialize(queryParams.limit, "number");
|
|
2243
|
+
}
|
|
2244
|
+
if (queryParams.offset !== undefined) {
|
|
2245
|
+
localVarQueryParameters['offset'] = models_1.ObjectSerializer.serialize(queryParams.offset, "number");
|
|
2246
|
+
}
|
|
2247
|
+
Object.assign(localVarHeaderParams, options.headers);
|
|
2248
|
+
Object.assign(localVarHeaderParams, this.opts.extraHeaders);
|
|
2249
|
+
let localVarUseFormData = false;
|
|
2250
|
+
let localVarRequestOptions = {
|
|
2251
|
+
method: 'GET',
|
|
2252
|
+
qs: localVarQueryParameters,
|
|
2253
|
+
headers: localVarHeaderParams,
|
|
2254
|
+
uri: localVarPath,
|
|
2255
|
+
useQuerystring: this._useQuerystring,
|
|
2256
|
+
agentOptions: { keepAlive: false },
|
|
2257
|
+
json: true,
|
|
2258
|
+
};
|
|
2259
|
+
let authenticationPromise = Promise.resolve();
|
|
2260
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.ApiKeyAuthentication.applyToRequest(localVarRequestOptions));
|
|
2261
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.JWTAuthentication.applyToRequest(localVarRequestOptions));
|
|
2262
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.JWTHttpHeaderAuthentication.applyToRequest(localVarRequestOptions));
|
|
2263
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
|
|
2264
|
+
return authenticationPromise.then(() => {
|
|
2265
|
+
if (Object.keys(localVarFormParams).length) {
|
|
2266
|
+
if (localVarUseFormData) {
|
|
2267
|
+
localVarRequestOptions.formData = localVarFormParams;
|
|
2268
|
+
}
|
|
2269
|
+
else {
|
|
2270
|
+
localVarRequestOptions.form = localVarFormParams;
|
|
2271
|
+
}
|
|
2272
|
+
}
|
|
2273
|
+
return new Promise((resolve, reject) => {
|
|
2274
|
+
localVarRequest(localVarRequestOptions, (error, response, body) => {
|
|
2275
|
+
if (error) {
|
|
2276
|
+
reject(error);
|
|
2277
|
+
}
|
|
2278
|
+
else {
|
|
2279
|
+
body = models_1.ObjectSerializer.deserialize(body, "ListOrganizationDataResponse");
|
|
2280
|
+
const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
|
|
2281
|
+
if (typeof body.success === 'boolean' && !body.success) {
|
|
2282
|
+
reject(new Error(body.error || errString));
|
|
2283
|
+
}
|
|
2284
|
+
else if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
2285
|
+
resolve(body);
|
|
2286
|
+
}
|
|
2287
|
+
else {
|
|
2288
|
+
reject(errString);
|
|
2289
|
+
}
|
|
2290
|
+
}
|
|
2291
|
+
});
|
|
2292
|
+
});
|
|
2293
|
+
});
|
|
2294
|
+
}
|
|
2295
|
+
/**
|
|
2296
|
+
* Lists all files included by the filter.
|
|
2297
|
+
* @summary List files
|
|
2298
|
+
* @param organizationId Organization ID
|
|
2299
|
+
* @param dataset Selected dataset
|
|
2300
|
+
* @param filter Data filter in SQL WHERE format, where you can reference \'dataset\', \'bucket\', \'name\', \'total_file_count\', \'total_file_size\', \'created\' and any metadata label through \'metadata->\' (dots are replaced by underscore).
|
|
2301
|
+
* @param limit Maximum number of results
|
|
2302
|
+
* @param offset Offset in results, can be used in conjunction with LimitResultsParameter to implement paging.
|
|
2303
|
+
*/
|
|
2304
|
+
async listOrganizationFiles(organizationId, queryParams, options = { headers: {} }) {
|
|
2305
|
+
const localVarPath = this.basePath + '/api/organizations/{organizationId}/data/files'
|
|
2306
|
+
.replace('{' + 'organizationId' + '}', encodeURIComponent(String(organizationId)));
|
|
2307
|
+
let localVarQueryParameters = {};
|
|
2308
|
+
let localVarHeaderParams = Object.assign({
|
|
2309
|
+
'User-Agent': 'edgeimpulse-api nodejs'
|
|
2310
|
+
}, this.defaultHeaders);
|
|
2311
|
+
const produces = ['application/json'];
|
|
2312
|
+
// give precedence to 'application/json'
|
|
2313
|
+
if (produces.indexOf('application/json') >= 0) {
|
|
2314
|
+
localVarHeaderParams.Accept = 'application/json';
|
|
2315
|
+
}
|
|
2316
|
+
else {
|
|
2317
|
+
localVarHeaderParams.Accept = produces.join(',');
|
|
2318
|
+
}
|
|
2319
|
+
let localVarFormParams = {};
|
|
2320
|
+
// verify required parameter 'organizationId' is not null or undefined
|
|
2321
|
+
if (organizationId === null || organizationId === undefined) {
|
|
2322
|
+
throw new Error('Required parameter organizationId was null or undefined when calling listOrganizationFiles.');
|
|
2323
|
+
}
|
|
2324
|
+
if (queryParams.dataset !== undefined) {
|
|
2325
|
+
localVarQueryParameters['dataset'] = models_1.ObjectSerializer.serialize(queryParams.dataset, "string");
|
|
2326
|
+
}
|
|
2327
|
+
if (queryParams.filter !== undefined) {
|
|
2328
|
+
localVarQueryParameters['filter'] = models_1.ObjectSerializer.serialize(queryParams.filter, "string");
|
|
2329
|
+
}
|
|
2330
|
+
if (queryParams.limit !== undefined) {
|
|
2331
|
+
localVarQueryParameters['limit'] = models_1.ObjectSerializer.serialize(queryParams.limit, "number");
|
|
2332
|
+
}
|
|
2333
|
+
if (queryParams.offset !== undefined) {
|
|
2334
|
+
localVarQueryParameters['offset'] = models_1.ObjectSerializer.serialize(queryParams.offset, "number");
|
|
2335
|
+
}
|
|
2336
|
+
Object.assign(localVarHeaderParams, options.headers);
|
|
2337
|
+
Object.assign(localVarHeaderParams, this.opts.extraHeaders);
|
|
2338
|
+
let localVarUseFormData = false;
|
|
2339
|
+
let localVarRequestOptions = {
|
|
2340
|
+
method: 'GET',
|
|
2341
|
+
qs: localVarQueryParameters,
|
|
2342
|
+
headers: localVarHeaderParams,
|
|
2343
|
+
uri: localVarPath,
|
|
2344
|
+
useQuerystring: this._useQuerystring,
|
|
2345
|
+
agentOptions: { keepAlive: false },
|
|
2346
|
+
json: true,
|
|
2347
|
+
};
|
|
2348
|
+
let authenticationPromise = Promise.resolve();
|
|
2349
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.ApiKeyAuthentication.applyToRequest(localVarRequestOptions));
|
|
2350
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.JWTAuthentication.applyToRequest(localVarRequestOptions));
|
|
2351
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.JWTHttpHeaderAuthentication.applyToRequest(localVarRequestOptions));
|
|
2352
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
|
|
2353
|
+
return authenticationPromise.then(() => {
|
|
2354
|
+
if (Object.keys(localVarFormParams).length) {
|
|
2355
|
+
if (localVarUseFormData) {
|
|
2356
|
+
localVarRequestOptions.formData = localVarFormParams;
|
|
2357
|
+
}
|
|
2358
|
+
else {
|
|
2359
|
+
localVarRequestOptions.form = localVarFormParams;
|
|
2360
|
+
}
|
|
2361
|
+
}
|
|
2362
|
+
return new Promise((resolve, reject) => {
|
|
2363
|
+
localVarRequest(localVarRequestOptions, (error, response, body) => {
|
|
2364
|
+
if (error) {
|
|
2365
|
+
reject(error);
|
|
2366
|
+
}
|
|
2367
|
+
else {
|
|
2368
|
+
body = models_1.ObjectSerializer.deserialize(body, "ListOrganizationFilesResponse");
|
|
2369
|
+
const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
|
|
2370
|
+
if (typeof body.success === 'boolean' && !body.success) {
|
|
2371
|
+
reject(new Error(body.error || errString));
|
|
2372
|
+
}
|
|
2373
|
+
else if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
2374
|
+
resolve(body);
|
|
2375
|
+
}
|
|
2376
|
+
else {
|
|
2377
|
+
reject(errString);
|
|
2378
|
+
}
|
|
2379
|
+
}
|
|
2380
|
+
});
|
|
2381
|
+
});
|
|
2382
|
+
});
|
|
2383
|
+
}
|
|
2384
|
+
/**
|
|
2385
|
+
* Retrieve all the data samples from organizational projects.
|
|
2386
|
+
* @summary Get projects data
|
|
2387
|
+
* @param organizationId Organization ID
|
|
2388
|
+
* @param projectId Unique identifier of the organizational project from where data samples will be fetched.
|
|
2389
|
+
* @param filter Data filter in SQL WHERE format, where you can reference \'filename\', \'label\', \'project_name\', \'category\', \'sensors\', \'frequency\', and any metadata through \'metadata->\' (dots are replaced by underscore).
|
|
2390
|
+
* @param ids Only include samples with an ID within the given list of IDs, given as a JSON string
|
|
2391
|
+
* @param limit Maximum number of results
|
|
2392
|
+
* @param offset Offset in results, can be used in conjunction with LimitResultsParameter to implement paging.
|
|
2393
|
+
*/
|
|
2394
|
+
async listOrganizationProjectsData(organizationId, queryParams, options = { headers: {} }) {
|
|
1976
2395
|
const localVarPath = this.basePath + '/api/organizations/{organizationId}/projects/data'
|
|
1977
2396
|
.replace('{' + 'organizationId' + '}', encodeURIComponent(String(organizationId)));
|
|
1978
2397
|
let localVarQueryParameters = {};
|
|
@@ -1990,34 +2409,282 @@ class OrganizationDataApi {
|
|
|
1990
2409
|
let localVarFormParams = {};
|
|
1991
2410
|
// verify required parameter 'organizationId' is not null or undefined
|
|
1992
2411
|
if (organizationId === null || organizationId === undefined) {
|
|
1993
|
-
throw new Error('Required parameter organizationId was null or undefined when calling listOrganizationProjectsData.');
|
|
2412
|
+
throw new Error('Required parameter organizationId was null or undefined when calling listOrganizationProjectsData.');
|
|
2413
|
+
}
|
|
2414
|
+
if (queryParams.projectId !== undefined) {
|
|
2415
|
+
localVarQueryParameters['projectId'] = models_1.ObjectSerializer.serialize(queryParams.projectId, "number");
|
|
2416
|
+
}
|
|
2417
|
+
if (queryParams.filter !== undefined) {
|
|
2418
|
+
localVarQueryParameters['filter'] = models_1.ObjectSerializer.serialize(queryParams.filter, "string");
|
|
2419
|
+
}
|
|
2420
|
+
if (queryParams.ids !== undefined) {
|
|
2421
|
+
localVarQueryParameters['ids'] = models_1.ObjectSerializer.serialize(queryParams.ids, "string");
|
|
2422
|
+
}
|
|
2423
|
+
if (queryParams.limit !== undefined) {
|
|
2424
|
+
localVarQueryParameters['limit'] = models_1.ObjectSerializer.serialize(queryParams.limit, "number");
|
|
2425
|
+
}
|
|
2426
|
+
if (queryParams.offset !== undefined) {
|
|
2427
|
+
localVarQueryParameters['offset'] = models_1.ObjectSerializer.serialize(queryParams.offset, "number");
|
|
2428
|
+
}
|
|
2429
|
+
Object.assign(localVarHeaderParams, options.headers);
|
|
2430
|
+
Object.assign(localVarHeaderParams, this.opts.extraHeaders);
|
|
2431
|
+
let localVarUseFormData = false;
|
|
2432
|
+
let localVarRequestOptions = {
|
|
2433
|
+
method: 'GET',
|
|
2434
|
+
qs: localVarQueryParameters,
|
|
2435
|
+
headers: localVarHeaderParams,
|
|
2436
|
+
uri: localVarPath,
|
|
2437
|
+
useQuerystring: this._useQuerystring,
|
|
2438
|
+
agentOptions: { keepAlive: false },
|
|
2439
|
+
json: true,
|
|
2440
|
+
};
|
|
2441
|
+
let authenticationPromise = Promise.resolve();
|
|
2442
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.ApiKeyAuthentication.applyToRequest(localVarRequestOptions));
|
|
2443
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.JWTAuthentication.applyToRequest(localVarRequestOptions));
|
|
2444
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.JWTHttpHeaderAuthentication.applyToRequest(localVarRequestOptions));
|
|
2445
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
|
|
2446
|
+
return authenticationPromise.then(() => {
|
|
2447
|
+
if (Object.keys(localVarFormParams).length) {
|
|
2448
|
+
if (localVarUseFormData) {
|
|
2449
|
+
localVarRequestOptions.formData = localVarFormParams;
|
|
2450
|
+
}
|
|
2451
|
+
else {
|
|
2452
|
+
localVarRequestOptions.form = localVarFormParams;
|
|
2453
|
+
}
|
|
2454
|
+
}
|
|
2455
|
+
return new Promise((resolve, reject) => {
|
|
2456
|
+
localVarRequest(localVarRequestOptions, (error, response, body) => {
|
|
2457
|
+
if (error) {
|
|
2458
|
+
reject(error);
|
|
2459
|
+
}
|
|
2460
|
+
else {
|
|
2461
|
+
body = models_1.ObjectSerializer.deserialize(body, "ListOrganizationProjectsDataResponse");
|
|
2462
|
+
const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
|
|
2463
|
+
if (typeof body.success === 'boolean' && !body.success) {
|
|
2464
|
+
reject(new Error(body.error || errString));
|
|
2465
|
+
}
|
|
2466
|
+
else if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
2467
|
+
resolve(body);
|
|
2468
|
+
}
|
|
2469
|
+
else {
|
|
2470
|
+
reject(errString);
|
|
2471
|
+
}
|
|
2472
|
+
}
|
|
2473
|
+
});
|
|
2474
|
+
});
|
|
2475
|
+
});
|
|
2476
|
+
}
|
|
2477
|
+
/**
|
|
2478
|
+
* Bulk update the metadata of many data items in one go. This requires you to submit a CSV file with headers, one of which the columns should be named \'name\'. The other columns are used as metadata keys.
|
|
2479
|
+
* @summary Bulk update metadata
|
|
2480
|
+
* @param organizationId Organization ID
|
|
2481
|
+
* @param dataset
|
|
2482
|
+
* @param csvFile
|
|
2483
|
+
*/
|
|
2484
|
+
async organizationBulkUpdateMetadata(organizationId, params, options = { headers: {} }) {
|
|
2485
|
+
const localVarPath = this.basePath + '/api/organizations/{organizationId}/data/bulk-metadata'
|
|
2486
|
+
.replace('{' + 'organizationId' + '}', encodeURIComponent(String(organizationId)));
|
|
2487
|
+
let localVarQueryParameters = {};
|
|
2488
|
+
let localVarHeaderParams = Object.assign({
|
|
2489
|
+
'User-Agent': 'edgeimpulse-api nodejs'
|
|
2490
|
+
}, this.defaultHeaders);
|
|
2491
|
+
const produces = ['application/json'];
|
|
2492
|
+
// give precedence to 'application/json'
|
|
2493
|
+
if (produces.indexOf('application/json') >= 0) {
|
|
2494
|
+
localVarHeaderParams.Accept = 'application/json';
|
|
2495
|
+
}
|
|
2496
|
+
else {
|
|
2497
|
+
localVarHeaderParams.Accept = produces.join(',');
|
|
2498
|
+
}
|
|
2499
|
+
let localVarFormParams = {};
|
|
2500
|
+
// verify required parameter 'organizationId' is not null or undefined
|
|
2501
|
+
if (organizationId === null || organizationId === undefined) {
|
|
2502
|
+
throw new Error('Required parameter organizationId was null or undefined when calling organizationBulkUpdateMetadata.');
|
|
2503
|
+
}
|
|
2504
|
+
// verify required parameter 'dataset' is not null or undefined
|
|
2505
|
+
if (params.dataset === null || params.dataset === undefined) {
|
|
2506
|
+
throw new Error('Required parameter params.dataset was null or undefined when calling organizationBulkUpdateMetadata.');
|
|
2507
|
+
}
|
|
2508
|
+
// verify required parameter 'csvFile' is not null or undefined
|
|
2509
|
+
if (params.csvFile === null || params.csvFile === undefined) {
|
|
2510
|
+
throw new Error('Required parameter params.csvFile was null or undefined when calling organizationBulkUpdateMetadata.');
|
|
2511
|
+
}
|
|
2512
|
+
Object.assign(localVarHeaderParams, options.headers);
|
|
2513
|
+
Object.assign(localVarHeaderParams, this.opts.extraHeaders);
|
|
2514
|
+
let localVarUseFormData = false;
|
|
2515
|
+
if (params.dataset !== undefined) {
|
|
2516
|
+
localVarFormParams['dataset'] = models_1.ObjectSerializer.serialize(params.dataset, "string");
|
|
2517
|
+
}
|
|
2518
|
+
if (params.csvFile !== undefined) {
|
|
2519
|
+
localVarFormParams['csvFile'] = params.csvFile;
|
|
2520
|
+
}
|
|
2521
|
+
localVarUseFormData = true;
|
|
2522
|
+
let localVarRequestOptions = {
|
|
2523
|
+
method: 'POST',
|
|
2524
|
+
qs: localVarQueryParameters,
|
|
2525
|
+
headers: localVarHeaderParams,
|
|
2526
|
+
uri: localVarPath,
|
|
2527
|
+
useQuerystring: this._useQuerystring,
|
|
2528
|
+
agentOptions: { keepAlive: false },
|
|
2529
|
+
json: true,
|
|
2530
|
+
};
|
|
2531
|
+
let authenticationPromise = Promise.resolve();
|
|
2532
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.ApiKeyAuthentication.applyToRequest(localVarRequestOptions));
|
|
2533
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.JWTAuthentication.applyToRequest(localVarRequestOptions));
|
|
2534
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.JWTHttpHeaderAuthentication.applyToRequest(localVarRequestOptions));
|
|
2535
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
|
|
2536
|
+
return authenticationPromise.then(() => {
|
|
2537
|
+
if (Object.keys(localVarFormParams).length) {
|
|
2538
|
+
if (localVarUseFormData) {
|
|
2539
|
+
localVarRequestOptions.formData = localVarFormParams;
|
|
2540
|
+
}
|
|
2541
|
+
else {
|
|
2542
|
+
localVarRequestOptions.form = localVarFormParams;
|
|
2543
|
+
}
|
|
2544
|
+
}
|
|
2545
|
+
return new Promise((resolve, reject) => {
|
|
2546
|
+
localVarRequest(localVarRequestOptions, (error, response, body) => {
|
|
2547
|
+
if (error) {
|
|
2548
|
+
reject(error);
|
|
2549
|
+
}
|
|
2550
|
+
else {
|
|
2551
|
+
body = models_1.ObjectSerializer.deserialize(body, "StartJobResponse");
|
|
2552
|
+
const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
|
|
2553
|
+
if (typeof body.success === 'boolean' && !body.success) {
|
|
2554
|
+
reject(new Error(body.error || errString));
|
|
2555
|
+
}
|
|
2556
|
+
else if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
2557
|
+
resolve(body);
|
|
2558
|
+
}
|
|
2559
|
+
else {
|
|
2560
|
+
reject(errString);
|
|
2561
|
+
}
|
|
2562
|
+
}
|
|
2563
|
+
});
|
|
2564
|
+
});
|
|
2565
|
+
});
|
|
2566
|
+
}
|
|
2567
|
+
/**
|
|
2568
|
+
* Batch disable project data samples by dataId
|
|
2569
|
+
* @summary Batch disable data
|
|
2570
|
+
* @param organizationId Organization ID
|
|
2571
|
+
* @param organizationProjectsDataBatchRequest
|
|
2572
|
+
*/
|
|
2573
|
+
async organizationProjectsDataBatchDisable(organizationId, organizationProjectsDataBatchRequest, options = { headers: {} }) {
|
|
2574
|
+
const localVarPath = this.basePath + '/api/organizations/{organizationId}/projects/data/disable'
|
|
2575
|
+
.replace('{' + 'organizationId' + '}', encodeURIComponent(String(organizationId)));
|
|
2576
|
+
let localVarQueryParameters = {};
|
|
2577
|
+
let localVarHeaderParams = Object.assign({
|
|
2578
|
+
'User-Agent': 'edgeimpulse-api nodejs'
|
|
2579
|
+
}, this.defaultHeaders);
|
|
2580
|
+
const produces = ['application/json'];
|
|
2581
|
+
// give precedence to 'application/json'
|
|
2582
|
+
if (produces.indexOf('application/json') >= 0) {
|
|
2583
|
+
localVarHeaderParams.Accept = 'application/json';
|
|
2584
|
+
}
|
|
2585
|
+
else {
|
|
2586
|
+
localVarHeaderParams.Accept = produces.join(',');
|
|
2587
|
+
}
|
|
2588
|
+
let localVarFormParams = {};
|
|
2589
|
+
// verify required parameter 'organizationId' is not null or undefined
|
|
2590
|
+
if (organizationId === null || organizationId === undefined) {
|
|
2591
|
+
throw new Error('Required parameter organizationId was null or undefined when calling organizationProjectsDataBatchDisable.');
|
|
1994
2592
|
}
|
|
1995
|
-
|
|
1996
|
-
|
|
2593
|
+
// verify required parameter 'organizationProjectsDataBatchRequest' is not null or undefined
|
|
2594
|
+
if (organizationProjectsDataBatchRequest === null || organizationProjectsDataBatchRequest === undefined) {
|
|
2595
|
+
throw new Error('Required parameter organizationProjectsDataBatchRequest was null or undefined when calling organizationProjectsDataBatchDisable.');
|
|
1997
2596
|
}
|
|
1998
|
-
|
|
1999
|
-
|
|
2597
|
+
Object.assign(localVarHeaderParams, options.headers);
|
|
2598
|
+
Object.assign(localVarHeaderParams, this.opts.extraHeaders);
|
|
2599
|
+
let localVarUseFormData = false;
|
|
2600
|
+
let localVarRequestOptions = {
|
|
2601
|
+
method: 'POST',
|
|
2602
|
+
qs: localVarQueryParameters,
|
|
2603
|
+
headers: localVarHeaderParams,
|
|
2604
|
+
uri: localVarPath,
|
|
2605
|
+
useQuerystring: this._useQuerystring,
|
|
2606
|
+
agentOptions: { keepAlive: false },
|
|
2607
|
+
json: true,
|
|
2608
|
+
body: models_1.ObjectSerializer.serialize(organizationProjectsDataBatchRequest, "OrganizationProjectsDataBatchRequest")
|
|
2609
|
+
};
|
|
2610
|
+
let authenticationPromise = Promise.resolve();
|
|
2611
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.ApiKeyAuthentication.applyToRequest(localVarRequestOptions));
|
|
2612
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.JWTAuthentication.applyToRequest(localVarRequestOptions));
|
|
2613
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.JWTHttpHeaderAuthentication.applyToRequest(localVarRequestOptions));
|
|
2614
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
|
|
2615
|
+
return authenticationPromise.then(() => {
|
|
2616
|
+
if (Object.keys(localVarFormParams).length) {
|
|
2617
|
+
if (localVarUseFormData) {
|
|
2618
|
+
localVarRequestOptions.formData = localVarFormParams;
|
|
2619
|
+
}
|
|
2620
|
+
else {
|
|
2621
|
+
localVarRequestOptions.form = localVarFormParams;
|
|
2622
|
+
}
|
|
2623
|
+
}
|
|
2624
|
+
return new Promise((resolve, reject) => {
|
|
2625
|
+
localVarRequest(localVarRequestOptions, (error, response, body) => {
|
|
2626
|
+
if (error) {
|
|
2627
|
+
reject(error);
|
|
2628
|
+
}
|
|
2629
|
+
else {
|
|
2630
|
+
body = models_1.ObjectSerializer.deserialize(body, "OrganizationProjectsDataBatchDisableResponse");
|
|
2631
|
+
const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
|
|
2632
|
+
if (typeof body.success === 'boolean' && !body.success) {
|
|
2633
|
+
reject(new Error(body.error || errString));
|
|
2634
|
+
}
|
|
2635
|
+
else if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
2636
|
+
resolve(body);
|
|
2637
|
+
}
|
|
2638
|
+
else {
|
|
2639
|
+
reject(errString);
|
|
2640
|
+
}
|
|
2641
|
+
}
|
|
2642
|
+
});
|
|
2643
|
+
});
|
|
2644
|
+
});
|
|
2645
|
+
}
|
|
2646
|
+
/**
|
|
2647
|
+
* Batch enable project data samples by dataId
|
|
2648
|
+
* @summary Batch enable data
|
|
2649
|
+
* @param organizationId Organization ID
|
|
2650
|
+
* @param organizationProjectsDataBatchRequest
|
|
2651
|
+
*/
|
|
2652
|
+
async organizationProjectsDataBatchEnable(organizationId, organizationProjectsDataBatchRequest, options = { headers: {} }) {
|
|
2653
|
+
const localVarPath = this.basePath + '/api/organizations/{organizationId}/projects/data/enable'
|
|
2654
|
+
.replace('{' + 'organizationId' + '}', encodeURIComponent(String(organizationId)));
|
|
2655
|
+
let localVarQueryParameters = {};
|
|
2656
|
+
let localVarHeaderParams = Object.assign({
|
|
2657
|
+
'User-Agent': 'edgeimpulse-api nodejs'
|
|
2658
|
+
}, this.defaultHeaders);
|
|
2659
|
+
const produces = ['application/json'];
|
|
2660
|
+
// give precedence to 'application/json'
|
|
2661
|
+
if (produces.indexOf('application/json') >= 0) {
|
|
2662
|
+
localVarHeaderParams.Accept = 'application/json';
|
|
2000
2663
|
}
|
|
2001
|
-
|
|
2002
|
-
|
|
2664
|
+
else {
|
|
2665
|
+
localVarHeaderParams.Accept = produces.join(',');
|
|
2003
2666
|
}
|
|
2004
|
-
|
|
2005
|
-
|
|
2667
|
+
let localVarFormParams = {};
|
|
2668
|
+
// verify required parameter 'organizationId' is not null or undefined
|
|
2669
|
+
if (organizationId === null || organizationId === undefined) {
|
|
2670
|
+
throw new Error('Required parameter organizationId was null or undefined when calling organizationProjectsDataBatchEnable.');
|
|
2006
2671
|
}
|
|
2007
|
-
|
|
2008
|
-
|
|
2672
|
+
// verify required parameter 'organizationProjectsDataBatchRequest' is not null or undefined
|
|
2673
|
+
if (organizationProjectsDataBatchRequest === null || organizationProjectsDataBatchRequest === undefined) {
|
|
2674
|
+
throw new Error('Required parameter organizationProjectsDataBatchRequest was null or undefined when calling organizationProjectsDataBatchEnable.');
|
|
2009
2675
|
}
|
|
2010
2676
|
Object.assign(localVarHeaderParams, options.headers);
|
|
2011
2677
|
Object.assign(localVarHeaderParams, this.opts.extraHeaders);
|
|
2012
2678
|
let localVarUseFormData = false;
|
|
2013
2679
|
let localVarRequestOptions = {
|
|
2014
|
-
method: '
|
|
2680
|
+
method: 'POST',
|
|
2015
2681
|
qs: localVarQueryParameters,
|
|
2016
2682
|
headers: localVarHeaderParams,
|
|
2017
2683
|
uri: localVarPath,
|
|
2018
2684
|
useQuerystring: this._useQuerystring,
|
|
2019
2685
|
agentOptions: { keepAlive: false },
|
|
2020
2686
|
json: true,
|
|
2687
|
+
body: models_1.ObjectSerializer.serialize(organizationProjectsDataBatchRequest, "OrganizationProjectsDataBatchRequest")
|
|
2021
2688
|
};
|
|
2022
2689
|
let authenticationPromise = Promise.resolve();
|
|
2023
2690
|
authenticationPromise = authenticationPromise.then(() => this.authentications.ApiKeyAuthentication.applyToRequest(localVarRequestOptions));
|
|
@@ -2039,7 +2706,7 @@ class OrganizationDataApi {
|
|
|
2039
2706
|
reject(error);
|
|
2040
2707
|
}
|
|
2041
2708
|
else {
|
|
2042
|
-
body = models_1.ObjectSerializer.deserialize(body, "
|
|
2709
|
+
body = models_1.ObjectSerializer.deserialize(body, "OrganizationProjectsDataBatchEnableResponse");
|
|
2043
2710
|
const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
|
|
2044
2711
|
if (typeof body.success === 'boolean' && !body.success) {
|
|
2045
2712
|
reject(new Error(body.error || errString));
|
|
@@ -2056,14 +2723,14 @@ class OrganizationDataApi {
|
|
|
2056
2723
|
});
|
|
2057
2724
|
}
|
|
2058
2725
|
/**
|
|
2059
|
-
* Bulk update the metadata of many data items in one go. This requires you to submit a CSV file with headers, one of which the columns should be named \'name\'. The other columns are used as metadata keys.
|
|
2726
|
+
* Bulk update the metadata of many raw data items in one go. This requires you to submit a CSV file with headers, one of which the columns should be named \'name\'. The other columns are used as metadata keys.
|
|
2060
2727
|
* @summary Bulk update metadata
|
|
2061
2728
|
* @param organizationId Organization ID
|
|
2062
|
-
* @param dataset
|
|
2063
2729
|
* @param csvFile
|
|
2730
|
+
* @param projectIds
|
|
2064
2731
|
*/
|
|
2065
|
-
async
|
|
2066
|
-
const localVarPath = this.basePath + '/api/organizations/{organizationId}/data/
|
|
2732
|
+
async organizationProjectsDataBulkUpdateMetadata(organizationId, params, options = { headers: {} }) {
|
|
2733
|
+
const localVarPath = this.basePath + '/api/organizations/{organizationId}/projects/data/metadata'
|
|
2067
2734
|
.replace('{' + 'organizationId' + '}', encodeURIComponent(String(organizationId)));
|
|
2068
2735
|
let localVarQueryParameters = {};
|
|
2069
2736
|
let localVarHeaderParams = Object.assign({
|
|
@@ -2080,21 +2747,17 @@ class OrganizationDataApi {
|
|
|
2080
2747
|
let localVarFormParams = {};
|
|
2081
2748
|
// verify required parameter 'organizationId' is not null or undefined
|
|
2082
2749
|
if (organizationId === null || organizationId === undefined) {
|
|
2083
|
-
throw new Error('Required parameter organizationId was null or undefined when calling
|
|
2084
|
-
}
|
|
2085
|
-
// verify required parameter 'dataset' is not null or undefined
|
|
2086
|
-
if (params.dataset === null || params.dataset === undefined) {
|
|
2087
|
-
throw new Error('Required parameter params.dataset was null or undefined when calling organizationBulkUpdateMetadata.');
|
|
2750
|
+
throw new Error('Required parameter organizationId was null or undefined when calling organizationProjectsDataBulkUpdateMetadata.');
|
|
2088
2751
|
}
|
|
2089
2752
|
// verify required parameter 'csvFile' is not null or undefined
|
|
2090
2753
|
if (params.csvFile === null || params.csvFile === undefined) {
|
|
2091
|
-
throw new Error('Required parameter params.csvFile was null or undefined when calling
|
|
2754
|
+
throw new Error('Required parameter params.csvFile was null or undefined when calling organizationProjectsDataBulkUpdateMetadata.');
|
|
2092
2755
|
}
|
|
2093
2756
|
Object.assign(localVarHeaderParams, options.headers);
|
|
2094
2757
|
Object.assign(localVarHeaderParams, this.opts.extraHeaders);
|
|
2095
2758
|
let localVarUseFormData = false;
|
|
2096
|
-
if (params.
|
|
2097
|
-
localVarFormParams['
|
|
2759
|
+
if (params.projectIds !== undefined) {
|
|
2760
|
+
localVarFormParams['projectIds'] = models_1.ObjectSerializer.serialize(params.projectIds, "Array<number>");
|
|
2098
2761
|
}
|
|
2099
2762
|
if (params.csvFile !== undefined) {
|
|
2100
2763
|
localVarFormParams['csvFile'] = params.csvFile;
|
|
@@ -2146,13 +2809,100 @@ class OrganizationDataApi {
|
|
|
2146
2809
|
});
|
|
2147
2810
|
}
|
|
2148
2811
|
/**
|
|
2149
|
-
*
|
|
2150
|
-
* @summary
|
|
2812
|
+
* Preview a single file from a data item (same as downloadOrganizationDataFile but w/ content-disposition inline).
|
|
2813
|
+
* @summary Preview file
|
|
2151
2814
|
* @param organizationId Organization ID
|
|
2152
|
-
* @param
|
|
2815
|
+
* @param dataId Data ID
|
|
2816
|
+
* @param fileName File name
|
|
2153
2817
|
*/
|
|
2154
|
-
async
|
|
2155
|
-
const localVarPath = this.basePath + '/api/organizations/{organizationId}/
|
|
2818
|
+
async previewOrganizationDataFile(organizationId, dataId, queryParams, options = { headers: {} }) {
|
|
2819
|
+
const localVarPath = this.basePath + '/api/organizations/{organizationId}/data/{dataId}/files/preview'
|
|
2820
|
+
.replace('{' + 'organizationId' + '}', encodeURIComponent(String(organizationId)))
|
|
2821
|
+
.replace('{' + 'dataId' + '}', encodeURIComponent(String(dataId)));
|
|
2822
|
+
let localVarQueryParameters = {};
|
|
2823
|
+
let localVarHeaderParams = Object.assign({
|
|
2824
|
+
'User-Agent': 'edgeimpulse-api nodejs'
|
|
2825
|
+
}, this.defaultHeaders);
|
|
2826
|
+
const produces = ['application/octet-stream'];
|
|
2827
|
+
// give precedence to 'application/json'
|
|
2828
|
+
if (produces.indexOf('application/json') >= 0) {
|
|
2829
|
+
localVarHeaderParams.Accept = 'application/json';
|
|
2830
|
+
}
|
|
2831
|
+
else {
|
|
2832
|
+
localVarHeaderParams.Accept = produces.join(',');
|
|
2833
|
+
}
|
|
2834
|
+
let localVarFormParams = {};
|
|
2835
|
+
// verify required parameter 'organizationId' is not null or undefined
|
|
2836
|
+
if (organizationId === null || organizationId === undefined) {
|
|
2837
|
+
throw new Error('Required parameter organizationId was null or undefined when calling previewOrganizationDataFile.');
|
|
2838
|
+
}
|
|
2839
|
+
// verify required parameter 'dataId' is not null or undefined
|
|
2840
|
+
if (dataId === null || dataId === undefined) {
|
|
2841
|
+
throw new Error('Required parameter dataId was null or undefined when calling previewOrganizationDataFile.');
|
|
2842
|
+
}
|
|
2843
|
+
// verify required parameter 'fileName' is not null or undefined
|
|
2844
|
+
if (queryParams.fileName === null || queryParams.fileName === undefined) {
|
|
2845
|
+
throw new Error('Required parameter queryParams.fileName was null or undefined when calling previewOrganizationDataFile.');
|
|
2846
|
+
}
|
|
2847
|
+
if (queryParams.fileName !== undefined) {
|
|
2848
|
+
localVarQueryParameters['fileName'] = models_1.ObjectSerializer.serialize(queryParams.fileName, "string");
|
|
2849
|
+
}
|
|
2850
|
+
Object.assign(localVarHeaderParams, options.headers);
|
|
2851
|
+
Object.assign(localVarHeaderParams, this.opts.extraHeaders);
|
|
2852
|
+
let localVarUseFormData = false;
|
|
2853
|
+
let localVarRequestOptions = {
|
|
2854
|
+
method: 'GET',
|
|
2855
|
+
qs: localVarQueryParameters,
|
|
2856
|
+
headers: localVarHeaderParams,
|
|
2857
|
+
uri: localVarPath,
|
|
2858
|
+
useQuerystring: this._useQuerystring,
|
|
2859
|
+
agentOptions: { keepAlive: false },
|
|
2860
|
+
encoding: null,
|
|
2861
|
+
};
|
|
2862
|
+
let authenticationPromise = Promise.resolve();
|
|
2863
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.ApiKeyAuthentication.applyToRequest(localVarRequestOptions));
|
|
2864
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.JWTAuthentication.applyToRequest(localVarRequestOptions));
|
|
2865
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.JWTHttpHeaderAuthentication.applyToRequest(localVarRequestOptions));
|
|
2866
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
|
|
2867
|
+
return authenticationPromise.then(() => {
|
|
2868
|
+
if (Object.keys(localVarFormParams).length) {
|
|
2869
|
+
if (localVarUseFormData) {
|
|
2870
|
+
localVarRequestOptions.formData = localVarFormParams;
|
|
2871
|
+
}
|
|
2872
|
+
else {
|
|
2873
|
+
localVarRequestOptions.form = localVarFormParams;
|
|
2874
|
+
}
|
|
2875
|
+
}
|
|
2876
|
+
return new Promise((resolve, reject) => {
|
|
2877
|
+
localVarRequest(localVarRequestOptions, (error, response, body) => {
|
|
2878
|
+
if (error) {
|
|
2879
|
+
reject(error);
|
|
2880
|
+
}
|
|
2881
|
+
else {
|
|
2882
|
+
body = models_1.ObjectSerializer.deserialize(body, "Buffer");
|
|
2883
|
+
const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
|
|
2884
|
+
if (typeof body.success === 'boolean' && !body.success) {
|
|
2885
|
+
reject(new Error(body.error || errString));
|
|
2886
|
+
}
|
|
2887
|
+
else if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
2888
|
+
resolve(body);
|
|
2889
|
+
}
|
|
2890
|
+
else {
|
|
2891
|
+
reject(errString);
|
|
2892
|
+
}
|
|
2893
|
+
}
|
|
2894
|
+
});
|
|
2895
|
+
});
|
|
2896
|
+
});
|
|
2897
|
+
}
|
|
2898
|
+
/**
|
|
2899
|
+
* Update all data items. HEADs all underlying buckets to retrieve the last file information. Use this API after uploading data directly to S3. If your dataset has bucketId and bucketPath set then this will also remove items that have been removed from S3.
|
|
2900
|
+
* @summary Refresh data
|
|
2901
|
+
* @param organizationId Organization ID
|
|
2902
|
+
* @param dataset Selected dataset
|
|
2903
|
+
*/
|
|
2904
|
+
async refreshOrganizationData(organizationId, queryParams, options = { headers: {} }) {
|
|
2905
|
+
const localVarPath = this.basePath + '/api/organizations/{organizationId}/data/refresh'
|
|
2156
2906
|
.replace('{' + 'organizationId' + '}', encodeURIComponent(String(organizationId)));
|
|
2157
2907
|
let localVarQueryParameters = {};
|
|
2158
2908
|
let localVarHeaderParams = Object.assign({
|
|
@@ -2169,11 +2919,14 @@ class OrganizationDataApi {
|
|
|
2169
2919
|
let localVarFormParams = {};
|
|
2170
2920
|
// verify required parameter 'organizationId' is not null or undefined
|
|
2171
2921
|
if (organizationId === null || organizationId === undefined) {
|
|
2172
|
-
throw new Error('Required parameter organizationId was null or undefined when calling
|
|
2922
|
+
throw new Error('Required parameter organizationId was null or undefined when calling refreshOrganizationData.');
|
|
2923
|
+
}
|
|
2924
|
+
// verify required parameter 'dataset' is not null or undefined
|
|
2925
|
+
if (queryParams.dataset === null || queryParams.dataset === undefined) {
|
|
2926
|
+
throw new Error('Required parameter queryParams.dataset was null or undefined when calling refreshOrganizationData.');
|
|
2173
2927
|
}
|
|
2174
|
-
|
|
2175
|
-
|
|
2176
|
-
throw new Error('Required parameter organizationProjectsDataBatchRequest was null or undefined when calling organizationProjectsDataBatchDisable.');
|
|
2928
|
+
if (queryParams.dataset !== undefined) {
|
|
2929
|
+
localVarQueryParameters['dataset'] = models_1.ObjectSerializer.serialize(queryParams.dataset, "string");
|
|
2177
2930
|
}
|
|
2178
2931
|
Object.assign(localVarHeaderParams, options.headers);
|
|
2179
2932
|
Object.assign(localVarHeaderParams, this.opts.extraHeaders);
|
|
@@ -2186,7 +2939,6 @@ class OrganizationDataApi {
|
|
|
2186
2939
|
useQuerystring: this._useQuerystring,
|
|
2187
2940
|
agentOptions: { keepAlive: false },
|
|
2188
2941
|
json: true,
|
|
2189
|
-
body: models_1.ObjectSerializer.serialize(organizationProjectsDataBatchRequest, "OrganizationProjectsDataBatchRequest")
|
|
2190
2942
|
};
|
|
2191
2943
|
let authenticationPromise = Promise.resolve();
|
|
2192
2944
|
authenticationPromise = authenticationPromise.then(() => this.authentications.ApiKeyAuthentication.applyToRequest(localVarRequestOptions));
|
|
@@ -2208,7 +2960,7 @@ class OrganizationDataApi {
|
|
|
2208
2960
|
reject(error);
|
|
2209
2961
|
}
|
|
2210
2962
|
else {
|
|
2211
|
-
body = models_1.ObjectSerializer.deserialize(body, "
|
|
2963
|
+
body = models_1.ObjectSerializer.deserialize(body, "StartJobResponse");
|
|
2212
2964
|
const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
|
|
2213
2965
|
if (typeof body.success === 'boolean' && !body.success) {
|
|
2214
2966
|
reject(new Error(body.error || errString));
|
|
@@ -2225,14 +2977,15 @@ class OrganizationDataApi {
|
|
|
2225
2977
|
});
|
|
2226
2978
|
}
|
|
2227
2979
|
/**
|
|
2228
|
-
*
|
|
2229
|
-
* @summary
|
|
2980
|
+
* Remove a storage bucket. This will render any data in this storage bucket unreachable.
|
|
2981
|
+
* @summary Remove storage bucket
|
|
2230
2982
|
* @param organizationId Organization ID
|
|
2231
|
-
* @param
|
|
2983
|
+
* @param bucketId Bucket ID
|
|
2232
2984
|
*/
|
|
2233
|
-
async
|
|
2234
|
-
const localVarPath = this.basePath + '/api/organizations/{organizationId}/
|
|
2235
|
-
.replace('{' + 'organizationId' + '}', encodeURIComponent(String(organizationId)))
|
|
2985
|
+
async removeOrganizationBucket(organizationId, bucketId, options = { headers: {} }) {
|
|
2986
|
+
const localVarPath = this.basePath + '/api/organizations/{organizationId}/buckets/{bucketId}'
|
|
2987
|
+
.replace('{' + 'organizationId' + '}', encodeURIComponent(String(organizationId)))
|
|
2988
|
+
.replace('{' + 'bucketId' + '}', encodeURIComponent(String(bucketId)));
|
|
2236
2989
|
let localVarQueryParameters = {};
|
|
2237
2990
|
let localVarHeaderParams = Object.assign({
|
|
2238
2991
|
'User-Agent': 'edgeimpulse-api nodejs'
|
|
@@ -2248,24 +3001,23 @@ class OrganizationDataApi {
|
|
|
2248
3001
|
let localVarFormParams = {};
|
|
2249
3002
|
// verify required parameter 'organizationId' is not null or undefined
|
|
2250
3003
|
if (organizationId === null || organizationId === undefined) {
|
|
2251
|
-
throw new Error('Required parameter organizationId was null or undefined when calling
|
|
3004
|
+
throw new Error('Required parameter organizationId was null or undefined when calling removeOrganizationBucket.');
|
|
2252
3005
|
}
|
|
2253
|
-
// verify required parameter '
|
|
2254
|
-
if (
|
|
2255
|
-
throw new Error('Required parameter
|
|
3006
|
+
// verify required parameter 'bucketId' is not null or undefined
|
|
3007
|
+
if (bucketId === null || bucketId === undefined) {
|
|
3008
|
+
throw new Error('Required parameter bucketId was null or undefined when calling removeOrganizationBucket.');
|
|
2256
3009
|
}
|
|
2257
3010
|
Object.assign(localVarHeaderParams, options.headers);
|
|
2258
3011
|
Object.assign(localVarHeaderParams, this.opts.extraHeaders);
|
|
2259
3012
|
let localVarUseFormData = false;
|
|
2260
3013
|
let localVarRequestOptions = {
|
|
2261
|
-
method: '
|
|
3014
|
+
method: 'DELETE',
|
|
2262
3015
|
qs: localVarQueryParameters,
|
|
2263
3016
|
headers: localVarHeaderParams,
|
|
2264
3017
|
uri: localVarPath,
|
|
2265
3018
|
useQuerystring: this._useQuerystring,
|
|
2266
3019
|
agentOptions: { keepAlive: false },
|
|
2267
3020
|
json: true,
|
|
2268
|
-
body: models_1.ObjectSerializer.serialize(organizationProjectsDataBatchRequest, "OrganizationProjectsDataBatchRequest")
|
|
2269
3021
|
};
|
|
2270
3022
|
let authenticationPromise = Promise.resolve();
|
|
2271
3023
|
authenticationPromise = authenticationPromise.then(() => this.authentications.ApiKeyAuthentication.applyToRequest(localVarRequestOptions));
|
|
@@ -2287,7 +3039,7 @@ class OrganizationDataApi {
|
|
|
2287
3039
|
reject(error);
|
|
2288
3040
|
}
|
|
2289
3041
|
else {
|
|
2290
|
-
body = models_1.ObjectSerializer.deserialize(body, "
|
|
3042
|
+
body = models_1.ObjectSerializer.deserialize(body, "GenericApiResponse");
|
|
2291
3043
|
const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
|
|
2292
3044
|
if (typeof body.success === 'boolean' && !body.success) {
|
|
2293
3045
|
reject(new Error(body.error || errString));
|
|
@@ -2304,15 +3056,16 @@ class OrganizationDataApi {
|
|
|
2304
3056
|
});
|
|
2305
3057
|
}
|
|
2306
3058
|
/**
|
|
2307
|
-
*
|
|
2308
|
-
* @summary
|
|
3059
|
+
* Rename a file in a dataset
|
|
3060
|
+
* @summary Rename file from dataset
|
|
2309
3061
|
* @param organizationId Organization ID
|
|
2310
|
-
* @param
|
|
2311
|
-
* @param
|
|
3062
|
+
* @param dataset Dataset name
|
|
3063
|
+
* @param renamePortalFileRequest
|
|
2312
3064
|
*/
|
|
2313
|
-
async
|
|
2314
|
-
const localVarPath = this.basePath + '/api/organizations/{organizationId}/
|
|
2315
|
-
.replace('{' + 'organizationId' + '}', encodeURIComponent(String(organizationId)))
|
|
3065
|
+
async renameDatasetFile(organizationId, dataset, renamePortalFileRequest, options = { headers: {} }) {
|
|
3066
|
+
const localVarPath = this.basePath + '/api/organizations/{organizationId}/dataset/{dataset}/files/rename'
|
|
3067
|
+
.replace('{' + 'organizationId' + '}', encodeURIComponent(String(organizationId)))
|
|
3068
|
+
.replace('{' + 'dataset' + '}', encodeURIComponent(String(dataset)));
|
|
2316
3069
|
let localVarQueryParameters = {};
|
|
2317
3070
|
let localVarHeaderParams = Object.assign({
|
|
2318
3071
|
'User-Agent': 'edgeimpulse-api nodejs'
|
|
@@ -2328,22 +3081,19 @@ class OrganizationDataApi {
|
|
|
2328
3081
|
let localVarFormParams = {};
|
|
2329
3082
|
// verify required parameter 'organizationId' is not null or undefined
|
|
2330
3083
|
if (organizationId === null || organizationId === undefined) {
|
|
2331
|
-
throw new Error('Required parameter organizationId was null or undefined when calling
|
|
3084
|
+
throw new Error('Required parameter organizationId was null or undefined when calling renameDatasetFile.');
|
|
2332
3085
|
}
|
|
2333
|
-
// verify required parameter '
|
|
2334
|
-
if (
|
|
2335
|
-
throw new Error('Required parameter
|
|
3086
|
+
// verify required parameter 'dataset' is not null or undefined
|
|
3087
|
+
if (dataset === null || dataset === undefined) {
|
|
3088
|
+
throw new Error('Required parameter dataset was null or undefined when calling renameDatasetFile.');
|
|
3089
|
+
}
|
|
3090
|
+
// verify required parameter 'renamePortalFileRequest' is not null or undefined
|
|
3091
|
+
if (renamePortalFileRequest === null || renamePortalFileRequest === undefined) {
|
|
3092
|
+
throw new Error('Required parameter renamePortalFileRequest was null or undefined when calling renameDatasetFile.');
|
|
2336
3093
|
}
|
|
2337
3094
|
Object.assign(localVarHeaderParams, options.headers);
|
|
2338
3095
|
Object.assign(localVarHeaderParams, this.opts.extraHeaders);
|
|
2339
3096
|
let localVarUseFormData = false;
|
|
2340
|
-
if (params.projectIds !== undefined) {
|
|
2341
|
-
localVarFormParams['projectIds'] = models_1.ObjectSerializer.serialize(params.projectIds, "Array<number>");
|
|
2342
|
-
}
|
|
2343
|
-
if (params.csvFile !== undefined) {
|
|
2344
|
-
localVarFormParams['csvFile'] = params.csvFile;
|
|
2345
|
-
}
|
|
2346
|
-
localVarUseFormData = true;
|
|
2347
3097
|
let localVarRequestOptions = {
|
|
2348
3098
|
method: 'POST',
|
|
2349
3099
|
qs: localVarQueryParameters,
|
|
@@ -2352,6 +3102,7 @@ class OrganizationDataApi {
|
|
|
2352
3102
|
useQuerystring: this._useQuerystring,
|
|
2353
3103
|
agentOptions: { keepAlive: false },
|
|
2354
3104
|
json: true,
|
|
3105
|
+
body: models_1.ObjectSerializer.serialize(renamePortalFileRequest, "RenamePortalFileRequest")
|
|
2355
3106
|
};
|
|
2356
3107
|
let authenticationPromise = Promise.resolve();
|
|
2357
3108
|
authenticationPromise = authenticationPromise.then(() => this.authentications.ApiKeyAuthentication.applyToRequest(localVarRequestOptions));
|
|
@@ -2373,7 +3124,7 @@ class OrganizationDataApi {
|
|
|
2373
3124
|
reject(error);
|
|
2374
3125
|
}
|
|
2375
3126
|
else {
|
|
2376
|
-
body = models_1.ObjectSerializer.deserialize(body, "
|
|
3127
|
+
body = models_1.ObjectSerializer.deserialize(body, "GenericApiResponse");
|
|
2377
3128
|
const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
|
|
2378
3129
|
if (typeof body.success === 'boolean' && !body.success) {
|
|
2379
3130
|
reject(new Error(body.error || errString));
|
|
@@ -2390,21 +3141,21 @@ class OrganizationDataApi {
|
|
|
2390
3141
|
});
|
|
2391
3142
|
}
|
|
2392
3143
|
/**
|
|
2393
|
-
*
|
|
2394
|
-
* @summary
|
|
3144
|
+
* Updates storage bucket details. This only updates fields that were set in the request body.
|
|
3145
|
+
* @summary Update storage bucket
|
|
2395
3146
|
* @param organizationId Organization ID
|
|
2396
|
-
* @param
|
|
2397
|
-
* @param
|
|
3147
|
+
* @param bucketId Bucket ID
|
|
3148
|
+
* @param updateOrganizationBucketRequest
|
|
2398
3149
|
*/
|
|
2399
|
-
async
|
|
2400
|
-
const localVarPath = this.basePath + '/api/organizations/{organizationId}/
|
|
3150
|
+
async updateOrganizationBucket(organizationId, bucketId, updateOrganizationBucketRequest, options = { headers: {} }) {
|
|
3151
|
+
const localVarPath = this.basePath + '/api/organizations/{organizationId}/buckets/{bucketId}'
|
|
2401
3152
|
.replace('{' + 'organizationId' + '}', encodeURIComponent(String(organizationId)))
|
|
2402
|
-
.replace('{' + '
|
|
3153
|
+
.replace('{' + 'bucketId' + '}', encodeURIComponent(String(bucketId)));
|
|
2403
3154
|
let localVarQueryParameters = {};
|
|
2404
3155
|
let localVarHeaderParams = Object.assign({
|
|
2405
3156
|
'User-Agent': 'edgeimpulse-api nodejs'
|
|
2406
3157
|
}, this.defaultHeaders);
|
|
2407
|
-
const produces = ['application/
|
|
3158
|
+
const produces = ['application/json'];
|
|
2408
3159
|
// give precedence to 'application/json'
|
|
2409
3160
|
if (produces.indexOf('application/json') >= 0) {
|
|
2410
3161
|
localVarHeaderParams.Accept = 'application/json';
|
|
@@ -2415,30 +3166,28 @@ class OrganizationDataApi {
|
|
|
2415
3166
|
let localVarFormParams = {};
|
|
2416
3167
|
// verify required parameter 'organizationId' is not null or undefined
|
|
2417
3168
|
if (organizationId === null || organizationId === undefined) {
|
|
2418
|
-
throw new Error('Required parameter organizationId was null or undefined when calling
|
|
2419
|
-
}
|
|
2420
|
-
// verify required parameter 'dataId' is not null or undefined
|
|
2421
|
-
if (dataId === null || dataId === undefined) {
|
|
2422
|
-
throw new Error('Required parameter dataId was null or undefined when calling previewOrganizationDataFile.');
|
|
3169
|
+
throw new Error('Required parameter organizationId was null or undefined when calling updateOrganizationBucket.');
|
|
2423
3170
|
}
|
|
2424
|
-
// verify required parameter '
|
|
2425
|
-
if (
|
|
2426
|
-
throw new Error('Required parameter
|
|
3171
|
+
// verify required parameter 'bucketId' is not null or undefined
|
|
3172
|
+
if (bucketId === null || bucketId === undefined) {
|
|
3173
|
+
throw new Error('Required parameter bucketId was null or undefined when calling updateOrganizationBucket.');
|
|
2427
3174
|
}
|
|
2428
|
-
|
|
2429
|
-
|
|
3175
|
+
// verify required parameter 'updateOrganizationBucketRequest' is not null or undefined
|
|
3176
|
+
if (updateOrganizationBucketRequest === null || updateOrganizationBucketRequest === undefined) {
|
|
3177
|
+
throw new Error('Required parameter updateOrganizationBucketRequest was null or undefined when calling updateOrganizationBucket.');
|
|
2430
3178
|
}
|
|
2431
3179
|
Object.assign(localVarHeaderParams, options.headers);
|
|
2432
3180
|
Object.assign(localVarHeaderParams, this.opts.extraHeaders);
|
|
2433
3181
|
let localVarUseFormData = false;
|
|
2434
3182
|
let localVarRequestOptions = {
|
|
2435
|
-
method: '
|
|
3183
|
+
method: 'POST',
|
|
2436
3184
|
qs: localVarQueryParameters,
|
|
2437
3185
|
headers: localVarHeaderParams,
|
|
2438
3186
|
uri: localVarPath,
|
|
2439
3187
|
useQuerystring: this._useQuerystring,
|
|
2440
3188
|
agentOptions: { keepAlive: false },
|
|
2441
|
-
|
|
3189
|
+
json: true,
|
|
3190
|
+
body: models_1.ObjectSerializer.serialize(updateOrganizationBucketRequest, "UpdateOrganizationBucketRequest")
|
|
2442
3191
|
};
|
|
2443
3192
|
let authenticationPromise = Promise.resolve();
|
|
2444
3193
|
authenticationPromise = authenticationPromise.then(() => this.authentications.ApiKeyAuthentication.applyToRequest(localVarRequestOptions));
|
|
@@ -2460,7 +3209,7 @@ class OrganizationDataApi {
|
|
|
2460
3209
|
reject(error);
|
|
2461
3210
|
}
|
|
2462
3211
|
else {
|
|
2463
|
-
body = models_1.ObjectSerializer.deserialize(body, "
|
|
3212
|
+
body = models_1.ObjectSerializer.deserialize(body, "GenericApiResponse");
|
|
2464
3213
|
const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
|
|
2465
3214
|
if (typeof body.success === 'boolean' && !body.success) {
|
|
2466
3215
|
reject(new Error(body.error || errString));
|
|
@@ -2477,14 +3226,16 @@ class OrganizationDataApi {
|
|
|
2477
3226
|
});
|
|
2478
3227
|
}
|
|
2479
3228
|
/**
|
|
2480
|
-
* Update
|
|
2481
|
-
* @summary
|
|
3229
|
+
* Update the data item metadata.
|
|
3230
|
+
* @summary Update data metadata
|
|
2482
3231
|
* @param organizationId Organization ID
|
|
2483
|
-
* @param
|
|
3232
|
+
* @param dataId Data ID
|
|
3233
|
+
* @param updateOrganizationDataItemRequest
|
|
2484
3234
|
*/
|
|
2485
|
-
async
|
|
2486
|
-
const localVarPath = this.basePath + '/api/organizations/{organizationId}/data/
|
|
2487
|
-
.replace('{' + 'organizationId' + '}', encodeURIComponent(String(organizationId)))
|
|
3235
|
+
async updateOrganizationDataItem(organizationId, dataId, updateOrganizationDataItemRequest, options = { headers: {} }) {
|
|
3236
|
+
const localVarPath = this.basePath + '/api/organizations/{organizationId}/data/{dataId}'
|
|
3237
|
+
.replace('{' + 'organizationId' + '}', encodeURIComponent(String(organizationId)))
|
|
3238
|
+
.replace('{' + 'dataId' + '}', encodeURIComponent(String(dataId)));
|
|
2488
3239
|
let localVarQueryParameters = {};
|
|
2489
3240
|
let localVarHeaderParams = Object.assign({
|
|
2490
3241
|
'User-Agent': 'edgeimpulse-api nodejs'
|
|
@@ -2500,10 +3251,15 @@ class OrganizationDataApi {
|
|
|
2500
3251
|
let localVarFormParams = {};
|
|
2501
3252
|
// verify required parameter 'organizationId' is not null or undefined
|
|
2502
3253
|
if (organizationId === null || organizationId === undefined) {
|
|
2503
|
-
throw new Error('Required parameter organizationId was null or undefined when calling
|
|
3254
|
+
throw new Error('Required parameter organizationId was null or undefined when calling updateOrganizationDataItem.');
|
|
2504
3255
|
}
|
|
2505
|
-
|
|
2506
|
-
|
|
3256
|
+
// verify required parameter 'dataId' is not null or undefined
|
|
3257
|
+
if (dataId === null || dataId === undefined) {
|
|
3258
|
+
throw new Error('Required parameter dataId was null or undefined when calling updateOrganizationDataItem.');
|
|
3259
|
+
}
|
|
3260
|
+
// verify required parameter 'updateOrganizationDataItemRequest' is not null or undefined
|
|
3261
|
+
if (updateOrganizationDataItemRequest === null || updateOrganizationDataItemRequest === undefined) {
|
|
3262
|
+
throw new Error('Required parameter updateOrganizationDataItemRequest was null or undefined when calling updateOrganizationDataItem.');
|
|
2507
3263
|
}
|
|
2508
3264
|
Object.assign(localVarHeaderParams, options.headers);
|
|
2509
3265
|
Object.assign(localVarHeaderParams, this.opts.extraHeaders);
|
|
@@ -2516,6 +3272,7 @@ class OrganizationDataApi {
|
|
|
2516
3272
|
useQuerystring: this._useQuerystring,
|
|
2517
3273
|
agentOptions: { keepAlive: false },
|
|
2518
3274
|
json: true,
|
|
3275
|
+
body: models_1.ObjectSerializer.serialize(updateOrganizationDataItemRequest, "UpdateOrganizationDataItemRequest")
|
|
2519
3276
|
};
|
|
2520
3277
|
let authenticationPromise = Promise.resolve();
|
|
2521
3278
|
authenticationPromise = authenticationPromise.then(() => this.authentications.ApiKeyAuthentication.applyToRequest(localVarRequestOptions));
|
|
@@ -2537,7 +3294,7 @@ class OrganizationDataApi {
|
|
|
2537
3294
|
reject(error);
|
|
2538
3295
|
}
|
|
2539
3296
|
else {
|
|
2540
|
-
body = models_1.ObjectSerializer.deserialize(body, "
|
|
3297
|
+
body = models_1.ObjectSerializer.deserialize(body, "GenericApiResponse");
|
|
2541
3298
|
const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
|
|
2542
3299
|
if (typeof body.success === 'boolean' && !body.success) {
|
|
2543
3300
|
reject(new Error(body.error || errString));
|
|
@@ -2554,15 +3311,16 @@ class OrganizationDataApi {
|
|
|
2554
3311
|
});
|
|
2555
3312
|
}
|
|
2556
3313
|
/**
|
|
2557
|
-
*
|
|
2558
|
-
* @summary
|
|
3314
|
+
* Set information about a dataset
|
|
3315
|
+
* @summary Update dataset
|
|
2559
3316
|
* @param organizationId Organization ID
|
|
2560
|
-
* @param
|
|
3317
|
+
* @param dataset Dataset name
|
|
3318
|
+
* @param updateOrganizationDatasetRequest
|
|
2561
3319
|
*/
|
|
2562
|
-
async
|
|
2563
|
-
const localVarPath = this.basePath + '/api/organizations/{organizationId}/
|
|
3320
|
+
async updateOrganizationDataset(organizationId, dataset, updateOrganizationDatasetRequest, options = { headers: {} }) {
|
|
3321
|
+
const localVarPath = this.basePath + '/api/organizations/{organizationId}/dataset/{dataset}'
|
|
2564
3322
|
.replace('{' + 'organizationId' + '}', encodeURIComponent(String(organizationId)))
|
|
2565
|
-
.replace('{' + '
|
|
3323
|
+
.replace('{' + 'dataset' + '}', encodeURIComponent(String(dataset)));
|
|
2566
3324
|
let localVarQueryParameters = {};
|
|
2567
3325
|
let localVarHeaderParams = Object.assign({
|
|
2568
3326
|
'User-Agent': 'edgeimpulse-api nodejs'
|
|
@@ -2578,23 +3336,28 @@ class OrganizationDataApi {
|
|
|
2578
3336
|
let localVarFormParams = {};
|
|
2579
3337
|
// verify required parameter 'organizationId' is not null or undefined
|
|
2580
3338
|
if (organizationId === null || organizationId === undefined) {
|
|
2581
|
-
throw new Error('Required parameter organizationId was null or undefined when calling
|
|
3339
|
+
throw new Error('Required parameter organizationId was null or undefined when calling updateOrganizationDataset.');
|
|
2582
3340
|
}
|
|
2583
|
-
// verify required parameter '
|
|
2584
|
-
if (
|
|
2585
|
-
throw new Error('Required parameter
|
|
3341
|
+
// verify required parameter 'dataset' is not null or undefined
|
|
3342
|
+
if (dataset === null || dataset === undefined) {
|
|
3343
|
+
throw new Error('Required parameter dataset was null or undefined when calling updateOrganizationDataset.');
|
|
3344
|
+
}
|
|
3345
|
+
// verify required parameter 'updateOrganizationDatasetRequest' is not null or undefined
|
|
3346
|
+
if (updateOrganizationDatasetRequest === null || updateOrganizationDatasetRequest === undefined) {
|
|
3347
|
+
throw new Error('Required parameter updateOrganizationDatasetRequest was null or undefined when calling updateOrganizationDataset.');
|
|
2586
3348
|
}
|
|
2587
3349
|
Object.assign(localVarHeaderParams, options.headers);
|
|
2588
3350
|
Object.assign(localVarHeaderParams, this.opts.extraHeaders);
|
|
2589
3351
|
let localVarUseFormData = false;
|
|
2590
3352
|
let localVarRequestOptions = {
|
|
2591
|
-
method: '
|
|
3353
|
+
method: 'POST',
|
|
2592
3354
|
qs: localVarQueryParameters,
|
|
2593
3355
|
headers: localVarHeaderParams,
|
|
2594
3356
|
uri: localVarPath,
|
|
2595
3357
|
useQuerystring: this._useQuerystring,
|
|
2596
3358
|
agentOptions: { keepAlive: false },
|
|
2597
3359
|
json: true,
|
|
3360
|
+
body: models_1.ObjectSerializer.serialize(updateOrganizationDatasetRequest, "UpdateOrganizationDatasetRequest")
|
|
2598
3361
|
};
|
|
2599
3362
|
let authenticationPromise = Promise.resolve();
|
|
2600
3363
|
authenticationPromise = authenticationPromise.then(() => this.authentications.ApiKeyAuthentication.applyToRequest(localVarRequestOptions));
|
|
@@ -2633,16 +3396,15 @@ class OrganizationDataApi {
|
|
|
2633
3396
|
});
|
|
2634
3397
|
}
|
|
2635
3398
|
/**
|
|
2636
|
-
*
|
|
2637
|
-
* @summary
|
|
3399
|
+
* Verify whether we can reach a dataset (and return some random files, used for data sources)
|
|
3400
|
+
* @summary Verify dataset
|
|
2638
3401
|
* @param organizationId Organization ID
|
|
2639
|
-
* @param
|
|
2640
|
-
* @param updateOrganizationBucketRequest
|
|
3402
|
+
* @param dataset Dataset name
|
|
2641
3403
|
*/
|
|
2642
|
-
async
|
|
2643
|
-
const localVarPath = this.basePath + '/api/organizations/{organizationId}/
|
|
3404
|
+
async verifyDataset(organizationId, dataset, options = { headers: {} }) {
|
|
3405
|
+
const localVarPath = this.basePath + '/api/organizations/{organizationId}/dataset/{dataset}/verify'
|
|
2644
3406
|
.replace('{' + 'organizationId' + '}', encodeURIComponent(String(organizationId)))
|
|
2645
|
-
.replace('{' + '
|
|
3407
|
+
.replace('{' + 'dataset' + '}', encodeURIComponent(String(dataset)));
|
|
2646
3408
|
let localVarQueryParameters = {};
|
|
2647
3409
|
let localVarHeaderParams = Object.assign({
|
|
2648
3410
|
'User-Agent': 'edgeimpulse-api nodejs'
|
|
@@ -2658,15 +3420,11 @@ class OrganizationDataApi {
|
|
|
2658
3420
|
let localVarFormParams = {};
|
|
2659
3421
|
// verify required parameter 'organizationId' is not null or undefined
|
|
2660
3422
|
if (organizationId === null || organizationId === undefined) {
|
|
2661
|
-
throw new Error('Required parameter organizationId was null or undefined when calling
|
|
2662
|
-
}
|
|
2663
|
-
// verify required parameter 'bucketId' is not null or undefined
|
|
2664
|
-
if (bucketId === null || bucketId === undefined) {
|
|
2665
|
-
throw new Error('Required parameter bucketId was null or undefined when calling updateOrganizationBucket.');
|
|
3423
|
+
throw new Error('Required parameter organizationId was null or undefined when calling verifyDataset.');
|
|
2666
3424
|
}
|
|
2667
|
-
// verify required parameter '
|
|
2668
|
-
if (
|
|
2669
|
-
throw new Error('Required parameter
|
|
3425
|
+
// verify required parameter 'dataset' is not null or undefined
|
|
3426
|
+
if (dataset === null || dataset === undefined) {
|
|
3427
|
+
throw new Error('Required parameter dataset was null or undefined when calling verifyDataset.');
|
|
2670
3428
|
}
|
|
2671
3429
|
Object.assign(localVarHeaderParams, options.headers);
|
|
2672
3430
|
Object.assign(localVarHeaderParams, this.opts.extraHeaders);
|
|
@@ -2679,7 +3437,6 @@ class OrganizationDataApi {
|
|
|
2679
3437
|
useQuerystring: this._useQuerystring,
|
|
2680
3438
|
agentOptions: { keepAlive: false },
|
|
2681
3439
|
json: true,
|
|
2682
|
-
body: models_1.ObjectSerializer.serialize(updateOrganizationBucketRequest, "UpdateOrganizationBucketRequest")
|
|
2683
3440
|
};
|
|
2684
3441
|
let authenticationPromise = Promise.resolve();
|
|
2685
3442
|
authenticationPromise = authenticationPromise.then(() => this.authentications.ApiKeyAuthentication.applyToRequest(localVarRequestOptions));
|
|
@@ -2701,7 +3458,7 @@ class OrganizationDataApi {
|
|
|
2701
3458
|
reject(error);
|
|
2702
3459
|
}
|
|
2703
3460
|
else {
|
|
2704
|
-
body = models_1.ObjectSerializer.deserialize(body, "
|
|
3461
|
+
body = models_1.ObjectSerializer.deserialize(body, "VerifyOrganizationBucketResponse");
|
|
2705
3462
|
const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
|
|
2706
3463
|
if (typeof body.success === 'boolean' && !body.success) {
|
|
2707
3464
|
reject(new Error(body.error || errString));
|
|
@@ -2718,16 +3475,16 @@ class OrganizationDataApi {
|
|
|
2718
3475
|
});
|
|
2719
3476
|
}
|
|
2720
3477
|
/**
|
|
2721
|
-
*
|
|
2722
|
-
* @summary
|
|
3478
|
+
* Verify whether we can reach a bucket before adding it.
|
|
3479
|
+
* @summary Verify existing bucket connectivity
|
|
2723
3480
|
* @param organizationId Organization ID
|
|
2724
|
-
* @param
|
|
2725
|
-
* @param
|
|
3481
|
+
* @param bucketId Bucket ID
|
|
3482
|
+
* @param verifyOrganizationExistingBucketRequest
|
|
2726
3483
|
*/
|
|
2727
|
-
async
|
|
2728
|
-
const localVarPath = this.basePath + '/api/organizations/{organizationId}/
|
|
3484
|
+
async verifyExistingOrganizationBucket(organizationId, bucketId, verifyOrganizationExistingBucketRequest, options = { headers: {} }) {
|
|
3485
|
+
const localVarPath = this.basePath + '/api/organizations/{organizationId}/buckets/{bucketId}/verify'
|
|
2729
3486
|
.replace('{' + 'organizationId' + '}', encodeURIComponent(String(organizationId)))
|
|
2730
|
-
.replace('{' + '
|
|
3487
|
+
.replace('{' + 'bucketId' + '}', encodeURIComponent(String(bucketId)));
|
|
2731
3488
|
let localVarQueryParameters = {};
|
|
2732
3489
|
let localVarHeaderParams = Object.assign({
|
|
2733
3490
|
'User-Agent': 'edgeimpulse-api nodejs'
|
|
@@ -2743,15 +3500,15 @@ class OrganizationDataApi {
|
|
|
2743
3500
|
let localVarFormParams = {};
|
|
2744
3501
|
// verify required parameter 'organizationId' is not null or undefined
|
|
2745
3502
|
if (organizationId === null || organizationId === undefined) {
|
|
2746
|
-
throw new Error('Required parameter organizationId was null or undefined when calling
|
|
3503
|
+
throw new Error('Required parameter organizationId was null or undefined when calling verifyExistingOrganizationBucket.');
|
|
2747
3504
|
}
|
|
2748
|
-
// verify required parameter '
|
|
2749
|
-
if (
|
|
2750
|
-
throw new Error('Required parameter
|
|
3505
|
+
// verify required parameter 'bucketId' is not null or undefined
|
|
3506
|
+
if (bucketId === null || bucketId === undefined) {
|
|
3507
|
+
throw new Error('Required parameter bucketId was null or undefined when calling verifyExistingOrganizationBucket.');
|
|
2751
3508
|
}
|
|
2752
|
-
// verify required parameter '
|
|
2753
|
-
if (
|
|
2754
|
-
throw new Error('Required parameter
|
|
3509
|
+
// verify required parameter 'verifyOrganizationExistingBucketRequest' is not null or undefined
|
|
3510
|
+
if (verifyOrganizationExistingBucketRequest === null || verifyOrganizationExistingBucketRequest === undefined) {
|
|
3511
|
+
throw new Error('Required parameter verifyOrganizationExistingBucketRequest was null or undefined when calling verifyExistingOrganizationBucket.');
|
|
2755
3512
|
}
|
|
2756
3513
|
Object.assign(localVarHeaderParams, options.headers);
|
|
2757
3514
|
Object.assign(localVarHeaderParams, this.opts.extraHeaders);
|
|
@@ -2764,7 +3521,7 @@ class OrganizationDataApi {
|
|
|
2764
3521
|
useQuerystring: this._useQuerystring,
|
|
2765
3522
|
agentOptions: { keepAlive: false },
|
|
2766
3523
|
json: true,
|
|
2767
|
-
body: models_1.ObjectSerializer.serialize(
|
|
3524
|
+
body: models_1.ObjectSerializer.serialize(verifyOrganizationExistingBucketRequest, "VerifyOrganizationExistingBucketRequest")
|
|
2768
3525
|
};
|
|
2769
3526
|
let authenticationPromise = Promise.resolve();
|
|
2770
3527
|
authenticationPromise = authenticationPromise.then(() => this.authentications.ApiKeyAuthentication.applyToRequest(localVarRequestOptions));
|
|
@@ -2786,7 +3543,7 @@ class OrganizationDataApi {
|
|
|
2786
3543
|
reject(error);
|
|
2787
3544
|
}
|
|
2788
3545
|
else {
|
|
2789
|
-
body = models_1.ObjectSerializer.deserialize(body, "
|
|
3546
|
+
body = models_1.ObjectSerializer.deserialize(body, "VerifyOrganizationBucketResponse");
|
|
2790
3547
|
const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
|
|
2791
3548
|
if (typeof body.success === 'boolean' && !body.success) {
|
|
2792
3549
|
reject(new Error(body.error || errString));
|
|
@@ -2803,16 +3560,14 @@ class OrganizationDataApi {
|
|
|
2803
3560
|
});
|
|
2804
3561
|
}
|
|
2805
3562
|
/**
|
|
2806
|
-
*
|
|
2807
|
-
* @summary
|
|
3563
|
+
* Verify whether we can reach a bucket before adding it.
|
|
3564
|
+
* @summary Verify bucket connectivity
|
|
2808
3565
|
* @param organizationId Organization ID
|
|
2809
|
-
* @param
|
|
2810
|
-
* @param updateOrganizationDatasetRequest
|
|
3566
|
+
* @param verifyOrganizationBucketRequest
|
|
2811
3567
|
*/
|
|
2812
|
-
async
|
|
2813
|
-
const localVarPath = this.basePath + '/api/organizations/{organizationId}/
|
|
2814
|
-
.replace('{' + 'organizationId' + '}', encodeURIComponent(String(organizationId)))
|
|
2815
|
-
.replace('{' + 'dataset' + '}', encodeURIComponent(String(dataset)));
|
|
3568
|
+
async verifyOrganizationBucket(organizationId, verifyOrganizationBucketRequest, options = { headers: {} }) {
|
|
3569
|
+
const localVarPath = this.basePath + '/api/organizations/{organizationId}/buckets/verify'
|
|
3570
|
+
.replace('{' + 'organizationId' + '}', encodeURIComponent(String(organizationId)));
|
|
2816
3571
|
let localVarQueryParameters = {};
|
|
2817
3572
|
let localVarHeaderParams = Object.assign({
|
|
2818
3573
|
'User-Agent': 'edgeimpulse-api nodejs'
|
|
@@ -2828,15 +3583,11 @@ class OrganizationDataApi {
|
|
|
2828
3583
|
let localVarFormParams = {};
|
|
2829
3584
|
// verify required parameter 'organizationId' is not null or undefined
|
|
2830
3585
|
if (organizationId === null || organizationId === undefined) {
|
|
2831
|
-
throw new Error('Required parameter organizationId was null or undefined when calling
|
|
2832
|
-
}
|
|
2833
|
-
// verify required parameter 'dataset' is not null or undefined
|
|
2834
|
-
if (dataset === null || dataset === undefined) {
|
|
2835
|
-
throw new Error('Required parameter dataset was null or undefined when calling updateOrganizationDataset.');
|
|
3586
|
+
throw new Error('Required parameter organizationId was null or undefined when calling verifyOrganizationBucket.');
|
|
2836
3587
|
}
|
|
2837
|
-
// verify required parameter '
|
|
2838
|
-
if (
|
|
2839
|
-
throw new Error('Required parameter
|
|
3588
|
+
// verify required parameter 'verifyOrganizationBucketRequest' is not null or undefined
|
|
3589
|
+
if (verifyOrganizationBucketRequest === null || verifyOrganizationBucketRequest === undefined) {
|
|
3590
|
+
throw new Error('Required parameter verifyOrganizationBucketRequest was null or undefined when calling verifyOrganizationBucket.');
|
|
2840
3591
|
}
|
|
2841
3592
|
Object.assign(localVarHeaderParams, options.headers);
|
|
2842
3593
|
Object.assign(localVarHeaderParams, this.opts.extraHeaders);
|
|
@@ -2849,7 +3600,7 @@ class OrganizationDataApi {
|
|
|
2849
3600
|
useQuerystring: this._useQuerystring,
|
|
2850
3601
|
agentOptions: { keepAlive: false },
|
|
2851
3602
|
json: true,
|
|
2852
|
-
body: models_1.ObjectSerializer.serialize(
|
|
3603
|
+
body: models_1.ObjectSerializer.serialize(verifyOrganizationBucketRequest, "VerifyOrganizationBucketRequest")
|
|
2853
3604
|
};
|
|
2854
3605
|
let authenticationPromise = Promise.resolve();
|
|
2855
3606
|
authenticationPromise = authenticationPromise.then(() => this.authentications.ApiKeyAuthentication.applyToRequest(localVarRequestOptions));
|
|
@@ -2871,7 +3622,7 @@ class OrganizationDataApi {
|
|
|
2871
3622
|
reject(error);
|
|
2872
3623
|
}
|
|
2873
3624
|
else {
|
|
2874
|
-
body = models_1.ObjectSerializer.deserialize(body, "
|
|
3625
|
+
body = models_1.ObjectSerializer.deserialize(body, "VerifyOrganizationBucketResponse");
|
|
2875
3626
|
const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
|
|
2876
3627
|
if (typeof body.success === 'boolean' && !body.success) {
|
|
2877
3628
|
reject(new Error(body.error || errString));
|
|
@@ -2888,19 +3639,21 @@ class OrganizationDataApi {
|
|
|
2888
3639
|
});
|
|
2889
3640
|
}
|
|
2890
3641
|
/**
|
|
2891
|
-
*
|
|
2892
|
-
* @summary
|
|
3642
|
+
* View a file that\'s located in a dataset (requires JWT auth).
|
|
3643
|
+
* @summary View file from dataset
|
|
2893
3644
|
* @param organizationId Organization ID
|
|
2894
|
-
* @param
|
|
3645
|
+
* @param dataset Dataset name
|
|
3646
|
+
* @param path Path to file in portal
|
|
2895
3647
|
*/
|
|
2896
|
-
async
|
|
2897
|
-
const localVarPath = this.basePath + '/api/organizations/{organizationId}/
|
|
2898
|
-
.replace('{' + 'organizationId' + '}', encodeURIComponent(String(organizationId)))
|
|
3648
|
+
async viewDatasetFile(organizationId, dataset, queryParams, options = { headers: {} }) {
|
|
3649
|
+
const localVarPath = this.basePath + '/api/organizations/{organizationId}/dataset/{dataset}/files/view'
|
|
3650
|
+
.replace('{' + 'organizationId' + '}', encodeURIComponent(String(organizationId)))
|
|
3651
|
+
.replace('{' + 'dataset' + '}', encodeURIComponent(String(dataset)));
|
|
2899
3652
|
let localVarQueryParameters = {};
|
|
2900
3653
|
let localVarHeaderParams = Object.assign({
|
|
2901
3654
|
'User-Agent': 'edgeimpulse-api nodejs'
|
|
2902
3655
|
}, this.defaultHeaders);
|
|
2903
|
-
const produces = ['application/
|
|
3656
|
+
const produces = ['application/octet-stream'];
|
|
2904
3657
|
// give precedence to 'application/json'
|
|
2905
3658
|
if (produces.indexOf('application/json') >= 0) {
|
|
2906
3659
|
localVarHeaderParams.Accept = 'application/json';
|
|
@@ -2911,24 +3664,30 @@ class OrganizationDataApi {
|
|
|
2911
3664
|
let localVarFormParams = {};
|
|
2912
3665
|
// verify required parameter 'organizationId' is not null or undefined
|
|
2913
3666
|
if (organizationId === null || organizationId === undefined) {
|
|
2914
|
-
throw new Error('Required parameter organizationId was null or undefined when calling
|
|
3667
|
+
throw new Error('Required parameter organizationId was null or undefined when calling viewDatasetFile.');
|
|
2915
3668
|
}
|
|
2916
|
-
// verify required parameter '
|
|
2917
|
-
if (
|
|
2918
|
-
throw new Error('Required parameter
|
|
3669
|
+
// verify required parameter 'dataset' is not null or undefined
|
|
3670
|
+
if (dataset === null || dataset === undefined) {
|
|
3671
|
+
throw new Error('Required parameter dataset was null or undefined when calling viewDatasetFile.');
|
|
3672
|
+
}
|
|
3673
|
+
// verify required parameter 'path' is not null or undefined
|
|
3674
|
+
if (queryParams.path === null || queryParams.path === undefined) {
|
|
3675
|
+
throw new Error('Required parameter queryParams.path was null or undefined when calling viewDatasetFile.');
|
|
3676
|
+
}
|
|
3677
|
+
if (queryParams.path !== undefined) {
|
|
3678
|
+
localVarQueryParameters['path'] = models_1.ObjectSerializer.serialize(queryParams.path, "string");
|
|
2919
3679
|
}
|
|
2920
3680
|
Object.assign(localVarHeaderParams, options.headers);
|
|
2921
3681
|
Object.assign(localVarHeaderParams, this.opts.extraHeaders);
|
|
2922
3682
|
let localVarUseFormData = false;
|
|
2923
3683
|
let localVarRequestOptions = {
|
|
2924
|
-
method: '
|
|
3684
|
+
method: 'GET',
|
|
2925
3685
|
qs: localVarQueryParameters,
|
|
2926
3686
|
headers: localVarHeaderParams,
|
|
2927
3687
|
uri: localVarPath,
|
|
2928
3688
|
useQuerystring: this._useQuerystring,
|
|
2929
3689
|
agentOptions: { keepAlive: false },
|
|
2930
|
-
|
|
2931
|
-
body: models_1.ObjectSerializer.serialize(verifyOrganizationBucketRequest, "VerifyOrganizationBucketRequest")
|
|
3690
|
+
encoding: null,
|
|
2932
3691
|
};
|
|
2933
3692
|
let authenticationPromise = Promise.resolve();
|
|
2934
3693
|
authenticationPromise = authenticationPromise.then(() => this.authentications.ApiKeyAuthentication.applyToRequest(localVarRequestOptions));
|
|
@@ -2950,7 +3709,7 @@ class OrganizationDataApi {
|
|
|
2950
3709
|
reject(error);
|
|
2951
3710
|
}
|
|
2952
3711
|
else {
|
|
2953
|
-
body = models_1.ObjectSerializer.deserialize(body, "
|
|
3712
|
+
body = models_1.ObjectSerializer.deserialize(body, "Buffer");
|
|
2954
3713
|
const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
|
|
2955
3714
|
if (typeof body.success === 'boolean' && !body.success) {
|
|
2956
3715
|
reject(new Error(body.error || errString));
|