edge-impulse-linux 1.11.0 → 1.13.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/cli/linux/linux-device.d.ts +2 -1
- package/build/cli/linux/linux-device.js +12 -1
- package/build/cli/linux/linux-device.js.map +1 -1
- package/build/cli/linux/runner-downloader.d.ts +10 -9
- package/build/cli/linux/runner-downloader.js +38 -38
- package/build/cli/linux/runner-downloader.js.map +1 -1
- package/build/cli/linux/runner-utils.js +4 -4
- package/build/cli/linux/runner-utils.js.map +1 -1
- package/build/cli/linux/runner.js +200 -11
- package/build/cli/linux/runner.js.map +1 -1
- package/build/cli-common/aws-iotcore-connector.d.ts +97 -6
- package/build/cli-common/aws-iotcore-connector.js +952 -61
- package/build/cli-common/aws-iotcore-connector.js.map +1 -1
- package/build/cli-common/config.d.ts +8 -0
- package/build/cli-common/config.js +15 -0
- package/build/cli-common/config.js.map +1 -1
- package/build/cli-common/init-cli-app.js +5 -3
- package/build/cli-common/init-cli-app.js.map +1 -1
- package/build/cli-common/make-image.js +1 -0
- package/build/cli-common/make-image.js.map +1 -1
- package/build/cli-common/remote-mgmt-service.d.ts +1 -1
- package/build/cli-common/remote-mgmt-service.js +2 -2
- package/build/cli-common/remote-mgmt-service.js.map +1 -1
- package/build/library/sensors/gstreamer.d.ts +1 -0
- package/build/library/sensors/gstreamer.js +38 -8
- package/build/library/sensors/gstreamer.js.map +1 -1
- package/build/sdk/studio/sdk/api/adminApi.d.ts +187 -8
- package/build/sdk/studio/sdk/api/adminApi.js +1125 -79
- package/build/sdk/studio/sdk/api/adminApi.js.map +1 -1
- package/build/sdk/studio/sdk/api/authApi.js +4 -2
- package/build/sdk/studio/sdk/api/authApi.js.map +1 -1
- package/build/sdk/studio/sdk/api/cDNApi.js +2 -1
- package/build/sdk/studio/sdk/api/cDNApi.js.map +1 -1
- package/build/sdk/studio/sdk/api/canaryApi.js +2 -1
- package/build/sdk/studio/sdk/api/canaryApi.js.map +1 -1
- package/build/sdk/studio/sdk/api/classifyApi.js +20 -10
- package/build/sdk/studio/sdk/api/classifyApi.js.map +1 -1
- package/build/sdk/studio/sdk/api/dSPApi.js +38 -19
- package/build/sdk/studio/sdk/api/dSPApi.js.map +1 -1
- package/build/sdk/studio/sdk/api/deploymentApi.js +22 -11
- package/build/sdk/studio/sdk/api/deploymentApi.js.map +1 -1
- package/build/sdk/studio/sdk/api/devicesApi.js +24 -12
- package/build/sdk/studio/sdk/api/devicesApi.js.map +1 -1
- package/build/sdk/studio/sdk/api/emailVerificationApi.js +8 -4
- package/build/sdk/studio/sdk/api/emailVerificationApi.js.map +1 -1
- package/build/sdk/studio/sdk/api/exportApi.js +2 -1
- package/build/sdk/studio/sdk/api/exportApi.js.map +1 -1
- package/build/sdk/studio/sdk/api/featureFlagsApi.js +2 -1
- package/build/sdk/studio/sdk/api/featureFlagsApi.js.map +1 -1
- package/build/sdk/studio/sdk/api/healthApi.js +4 -2
- package/build/sdk/studio/sdk/api/healthApi.js.map +1 -1
- package/build/sdk/studio/sdk/api/impulseApi.js +30 -15
- package/build/sdk/studio/sdk/api/impulseApi.js.map +1 -1
- package/build/sdk/studio/sdk/api/jobsApi.js +86 -43
- package/build/sdk/studio/sdk/api/jobsApi.js.map +1 -1
- package/build/sdk/studio/sdk/api/learnApi.d.ts +5 -1
- package/build/sdk/studio/sdk/api/learnApi.js +51 -24
- package/build/sdk/studio/sdk/api/learnApi.js.map +1 -1
- package/build/sdk/studio/sdk/api/loginApi.js +2 -1
- package/build/sdk/studio/sdk/api/loginApi.js.map +1 -1
- package/build/sdk/studio/sdk/api/metricsApi.js +6 -3
- package/build/sdk/studio/sdk/api/metricsApi.js.map +1 -1
- package/build/sdk/studio/sdk/api/optimizationApi.js +34 -17
- package/build/sdk/studio/sdk/api/optimizationApi.js.map +1 -1
- package/build/sdk/studio/sdk/api/organizationBlocksApi.d.ts +6 -10
- package/build/sdk/studio/sdk/api/organizationBlocksApi.js +65 -35
- package/build/sdk/studio/sdk/api/organizationBlocksApi.js.map +1 -1
- package/build/sdk/studio/sdk/api/organizationCreateProjectApi.js +26 -13
- package/build/sdk/studio/sdk/api/organizationCreateProjectApi.js.map +1 -1
- package/build/sdk/studio/sdk/api/organizationDataApi.d.ts +3 -2
- package/build/sdk/studio/sdk/api/organizationDataApi.js +80 -41
- package/build/sdk/studio/sdk/api/organizationDataApi.js.map +1 -1
- package/build/sdk/studio/sdk/api/organizationDataCampaignsApi.js +24 -12
- package/build/sdk/studio/sdk/api/organizationDataCampaignsApi.js.map +1 -1
- package/build/sdk/studio/sdk/api/organizationJobsApi.js +16 -8
- package/build/sdk/studio/sdk/api/organizationJobsApi.js.map +1 -1
- package/build/sdk/studio/sdk/api/organizationPipelinesApi.d.ts +2 -2
- package/build/sdk/studio/sdk/api/organizationPipelinesApi.js +17 -9
- package/build/sdk/studio/sdk/api/organizationPipelinesApi.js.map +1 -1
- package/build/sdk/studio/sdk/api/organizationPortalsApi.js +14 -7
- package/build/sdk/studio/sdk/api/organizationPortalsApi.js.map +1 -1
- package/build/sdk/studio/sdk/api/organizationsApi.d.ts +11 -10
- package/build/sdk/studio/sdk/api/organizationsApi.js +164 -86
- package/build/sdk/studio/sdk/api/organizationsApi.js.map +1 -1
- package/build/sdk/studio/sdk/api/performanceCalibrationApi.js +22 -11
- package/build/sdk/studio/sdk/api/performanceCalibrationApi.js.map +1 -1
- package/build/sdk/studio/sdk/api/projectsApi.d.ts +21 -5
- package/build/sdk/studio/sdk/api/projectsApi.js +197 -59
- package/build/sdk/studio/sdk/api/projectsApi.js.map +1 -1
- package/build/sdk/studio/sdk/api/rawDataApi.d.ts +42 -2
- package/build/sdk/studio/sdk/api/rawDataApi.js +194 -58
- package/build/sdk/studio/sdk/api/rawDataApi.js.map +1 -1
- package/build/sdk/studio/sdk/api/themesApi.js +12 -6
- package/build/sdk/studio/sdk/api/themesApi.js.map +1 -1
- package/build/sdk/studio/sdk/api/thirdPartyAuthApi.js +14 -7
- package/build/sdk/studio/sdk/api/thirdPartyAuthApi.js.map +1 -1
- package/build/sdk/studio/sdk/api/uploadPortalApi.js +14 -7
- package/build/sdk/studio/sdk/api/uploadPortalApi.js.map +1 -1
- package/build/sdk/studio/sdk/api/userApi.d.ts +4 -4
- package/build/sdk/studio/sdk/api/userApi.js +100 -52
- package/build/sdk/studio/sdk/api/userApi.js.map +1 -1
- package/build/sdk/studio/sdk/api/whitelabelsApi.js +16 -8
- package/build/sdk/studio/sdk/api/whitelabelsApi.js.map +1 -1
- package/build/sdk/studio/sdk/model/addApiKeyRequest.d.ts +2 -2
- package/build/sdk/studio/sdk/model/{addOrganizationSecretResponse.d.ts → addApiKeyResponse.d.ts} +6 -2
- package/build/sdk/studio/sdk/model/{createPipelineResponse.js → addApiKeyResponse.js} +12 -7
- package/build/sdk/studio/sdk/model/addApiKeyResponse.js.map +1 -0
- package/build/sdk/studio/sdk/model/{createPipelineResponse.d.ts → addApiKeyResponseAllOf.d.ts} +5 -6
- package/build/sdk/studio/sdk/model/{addOrganizationSecretResponseAllOf.js → addApiKeyResponseAllOf.js} +12 -7
- package/build/sdk/studio/sdk/model/addApiKeyResponseAllOf.js.map +1 -0
- package/build/sdk/studio/sdk/model/addOrganizationApiKeyRequest.d.ts +2 -2
- package/build/sdk/studio/sdk/model/addProjectApiKeyRequest.d.ts +2 -2
- package/build/sdk/studio/sdk/model/adminAddOrganizationApiKeyRequest.d.ts +2 -2
- package/build/sdk/studio/sdk/model/adminAddProjectApiKeyRequest.d.ts +2 -2
- package/build/sdk/studio/sdk/model/adminApiOrganization.d.ts +4 -0
- package/build/sdk/studio/sdk/model/adminApiOrganization.js +5 -0
- package/build/sdk/studio/sdk/model/adminApiOrganization.js.map +1 -1
- package/build/sdk/studio/sdk/model/adminApiProject.d.ts +1 -0
- package/build/sdk/studio/sdk/model/adminApiProject.js +5 -0
- package/build/sdk/studio/sdk/model/adminApiProject.js.map +1 -1
- package/build/sdk/studio/sdk/model/{addOrganizationTransferLearningBlockResponse.d.ts → adminGetTrashBinResponse.d.ts} +7 -2
- package/build/sdk/studio/sdk/model/{addOrganizationDeployBlockResponse.js → adminGetTrashBinResponse.js} +14 -9
- package/build/sdk/studio/sdk/model/adminGetTrashBinResponse.js.map +1 -0
- package/build/sdk/studio/sdk/model/adminGetTrashBinResponseAllOf.d.ts +33 -0
- package/build/sdk/studio/sdk/model/adminGetTrashBinResponseAllOf.js +37 -0
- package/build/sdk/studio/sdk/model/adminGetTrashBinResponseAllOf.js.map +1 -0
- package/build/sdk/studio/sdk/model/adminGetUsersResponseAllOfUsers.d.ts +1 -0
- package/build/sdk/studio/sdk/model/adminGetUsersResponseAllOfUsers.js +5 -0
- package/build/sdk/studio/sdk/model/adminGetUsersResponseAllOfUsers.js.map +1 -1
- package/build/sdk/studio/sdk/model/{addOrganizationDeployBlockResponse.d.ts → adminProjectInfoResponse.d.ts} +3 -2
- package/build/sdk/studio/sdk/model/{createAIActionResponse.js → adminProjectInfoResponse.js} +10 -10
- package/build/sdk/studio/sdk/model/adminProjectInfoResponse.js.map +1 -0
- package/build/sdk/studio/sdk/model/{addOrganizationSecretResponseAllOf.d.ts → adminProjectInfoResponseAllOf.d.ts} +3 -5
- package/build/sdk/studio/sdk/model/adminProjectInfoResponseAllOf.js +29 -0
- package/build/sdk/studio/sdk/model/adminProjectInfoResponseAllOf.js.map +1 -0
- package/build/sdk/studio/sdk/model/adminUpdateUserRequest.d.ts +4 -0
- package/build/sdk/studio/sdk/model/adminUpdateUserRequest.js +5 -0
- package/build/sdk/studio/sdk/model/adminUpdateUserRequest.js.map +1 -1
- package/build/sdk/studio/sdk/model/convertParquetToCsvRequest.d.ts +33 -0
- package/build/sdk/studio/sdk/model/convertParquetToCsvRequest.js +29 -0
- package/build/sdk/studio/sdk/model/convertParquetToCsvRequest.js.map +1 -0
- package/build/sdk/studio/sdk/model/{developmentBoardCreatedResponse.d.ts → convertParquetToCsvResponse.d.ts} +2 -2
- package/build/sdk/studio/sdk/model/{addOrganizationSecretResponse.js → convertParquetToCsvResponse.js} +10 -10
- package/build/sdk/studio/sdk/model/convertParquetToCsvResponse.js.map +1 -0
- package/build/sdk/studio/sdk/model/{dspRunResponseAllOfPerformance.d.ts → convertParquetToCsvResponseAllOf.d.ts} +2 -3
- package/build/sdk/studio/sdk/model/convertParquetToCsvResponseAllOf.js +29 -0
- package/build/sdk/studio/sdk/model/convertParquetToCsvResponseAllOf.js.map +1 -0
- package/build/sdk/studio/sdk/model/convertUserRequest.d.ts +4 -0
- package/build/sdk/studio/sdk/model/convertUserRequest.js +5 -0
- package/build/sdk/studio/sdk/model/convertUserRequest.js.map +1 -1
- package/build/sdk/studio/sdk/model/createEnterpriseTrialResponse.d.ts +2 -2
- package/build/sdk/studio/sdk/model/createEnterpriseTrialUserRequest.d.ts +4 -0
- package/build/sdk/studio/sdk/model/createEnterpriseTrialUserRequest.js +5 -0
- package/build/sdk/studio/sdk/model/createEnterpriseTrialUserRequest.js.map +1 -1
- package/build/sdk/studio/sdk/model/createEnterpriseTrialUserRequestAllOf.d.ts +4 -0
- package/build/sdk/studio/sdk/model/createEnterpriseTrialUserRequestAllOf.js +5 -0
- package/build/sdk/studio/sdk/model/createEnterpriseTrialUserRequestAllOf.js.map +1 -1
- package/build/sdk/studio/sdk/model/createProTierUserRequest.d.ts +4 -0
- package/build/sdk/studio/sdk/model/createProTierUserRequest.js +5 -0
- package/build/sdk/studio/sdk/model/createProTierUserRequest.js.map +1 -1
- package/build/sdk/studio/sdk/model/createUserRequest.d.ts +4 -0
- package/build/sdk/studio/sdk/model/createUserRequest.js +5 -0
- package/build/sdk/studio/sdk/model/createUserRequest.js.map +1 -1
- package/build/sdk/studio/sdk/model/dSPBlock.d.ts +4 -0
- package/build/sdk/studio/sdk/model/dSPBlock.js +5 -0
- package/build/sdk/studio/sdk/model/dSPBlock.js.map +1 -1
- package/build/sdk/studio/sdk/model/dSPConfig.d.ts +1 -1
- package/build/sdk/studio/sdk/model/dSPConfigResponse.d.ts +1 -1
- package/build/sdk/studio/sdk/model/dSPInfo.d.ts +2 -2
- package/build/sdk/studio/sdk/model/dSPInfo.js +1 -1
- package/build/sdk/studio/sdk/model/dSPInfo.js.map +1 -1
- package/build/sdk/studio/sdk/model/deploymentTarget.d.ts +6 -0
- package/build/sdk/studio/sdk/model/deploymentTarget.js +10 -0
- package/build/sdk/studio/sdk/model/deploymentTarget.js.map +1 -1
- package/build/sdk/studio/sdk/model/deploymentTargetEngine.d.ts +1 -1
- package/build/sdk/studio/sdk/model/deploymentTargetEngine.js +1 -1
- package/build/sdk/studio/sdk/model/deploymentTargetEngine.js.map +1 -1
- package/build/sdk/studio/sdk/model/{jobCreatedByUser.d.ts → deploymentTargetVariant.d.ts} +5 -5
- package/build/sdk/studio/sdk/model/deploymentTargetVariant.js +39 -0
- package/build/sdk/studio/sdk/model/deploymentTargetVariant.js.map +1 -0
- package/build/sdk/studio/sdk/model/detailedImpulse.d.ts +10 -0
- package/build/sdk/studio/sdk/model/detailedImpulse.js +15 -0
- package/build/sdk/studio/sdk/model/detailedImpulse.js.map +1 -1
- package/build/sdk/studio/sdk/model/{addOrganizationDspBlockResponse.d.ts → dspPerformance.d.ts} +5 -8
- package/build/sdk/studio/sdk/model/{dspRunResponseAllOfPerformance.js → dspPerformance.js} +12 -7
- package/build/sdk/studio/sdk/model/dspPerformance.js.map +1 -0
- package/build/sdk/studio/sdk/model/dspRunResponse.d.ts +2 -2
- package/build/sdk/studio/sdk/model/dspRunResponse.js +1 -1
- package/build/sdk/studio/sdk/model/dspRunResponse.js.map +1 -1
- package/build/sdk/studio/sdk/model/dspRunResponseAllOf.d.ts +2 -2
- package/build/sdk/studio/sdk/model/dspRunResponseAllOf.js +1 -1
- package/build/sdk/studio/sdk/model/dspRunResponseAllOf.js.map +1 -1
- package/build/sdk/studio/sdk/model/dspRunResponseWithSample.d.ts +2 -2
- package/build/sdk/studio/sdk/model/dspRunResponseWithSample.js +1 -1
- package/build/sdk/studio/sdk/model/dspRunResponseWithSample.js.map +1 -1
- package/build/sdk/studio/sdk/model/dspRunResponseWithSampleAllOf.d.ts +2 -2
- package/build/sdk/studio/sdk/model/dspRunResponseWithSampleAllOf.js +1 -1
- package/build/sdk/studio/sdk/model/dspRunResponseWithSampleAllOf.js.map +1 -1
- package/build/sdk/studio/sdk/model/entityCreatedResponse.d.ts +2 -2
- package/build/sdk/studio/sdk/model/entityCreatedResponseAllOf.d.ts +2 -2
- package/build/sdk/studio/sdk/model/feature.d.ts +1 -1
- package/build/sdk/studio/sdk/model/feature.js +1 -1
- package/build/sdk/studio/sdk/model/feature.js.map +1 -1
- package/build/sdk/studio/sdk/model/findSyntiantPosteriorRequest.d.ts +1 -1
- package/build/sdk/studio/sdk/model/findSyntiantPosteriorRequest.js +1 -1
- package/build/sdk/studio/sdk/model/findSyntiantPosteriorRequest.js.map +1 -1
- package/build/sdk/studio/sdk/model/getUserResponse.d.ts +4 -0
- package/build/sdk/studio/sdk/model/getUserResponse.js +5 -0
- package/build/sdk/studio/sdk/model/getUserResponse.js.map +1 -1
- package/build/sdk/studio/sdk/model/getUserResponseAllOf.d.ts +4 -0
- package/build/sdk/studio/sdk/model/getUserResponseAllOf.js +5 -0
- package/build/sdk/studio/sdk/model/getUserResponseAllOf.js.map +1 -1
- package/build/sdk/studio/sdk/model/job.d.ts +2 -2
- package/build/sdk/studio/sdk/model/job.js +1 -1
- package/build/sdk/studio/sdk/model/job.js.map +1 -1
- package/build/sdk/studio/sdk/model/jobDetails.d.ts +2 -2
- package/build/sdk/studio/sdk/model/jobDetails.js +1 -1
- package/build/sdk/studio/sdk/model/jobDetails.js.map +1 -1
- package/build/sdk/studio/sdk/model/learnBlock.d.ts +4 -0
- package/build/sdk/studio/sdk/model/learnBlock.js +5 -0
- package/build/sdk/studio/sdk/model/learnBlock.js.map +1 -1
- package/build/sdk/studio/sdk/model/models.d.ts +15 -12
- package/build/sdk/studio/sdk/model/models.js +48 -36
- package/build/sdk/studio/sdk/model/models.js.map +1 -1
- package/build/sdk/studio/sdk/model/objectDetectionLabelQueueResponse.d.ts +2 -2
- package/build/sdk/studio/sdk/model/objectDetectionLabelQueueResponse.js +1 -1
- package/build/sdk/studio/sdk/model/objectDetectionLabelQueueResponse.js.map +1 -1
- package/build/sdk/studio/sdk/model/objectDetectionLabelQueueResponseAllOf.d.ts +2 -2
- package/build/sdk/studio/sdk/model/objectDetectionLabelQueueResponseAllOf.js +1 -1
- package/build/sdk/studio/sdk/model/objectDetectionLabelQueueResponseAllOf.js.map +1 -1
- package/build/sdk/studio/sdk/model/{addOrganizationTransformationBlockResponseAllOf.d.ts → objectDetectionLabelQueueResponseAllOfSamples.d.ts} +1 -1
- package/build/sdk/studio/sdk/model/{addOrganizationTransformationBlockResponseAllOf.js → objectDetectionLabelQueueResponseAllOfSamples.js} +7 -7
- package/build/sdk/studio/sdk/model/objectDetectionLabelQueueResponseAllOfSamples.js.map +1 -0
- package/build/sdk/studio/sdk/model/optimizeConfig.d.ts +13 -2
- package/build/sdk/studio/sdk/model/optimizeConfig.js +16 -1
- package/build/sdk/studio/sdk/model/optimizeConfig.js.map +1 -1
- package/build/sdk/studio/sdk/model/{createAIActionResponse.d.ts → optimizeConfigOptimizationObjectives.d.ts} +9 -6
- package/build/sdk/studio/sdk/model/optimizeConfigOptimizationObjectives.js +39 -0
- package/build/sdk/studio/sdk/model/optimizeConfigOptimizationObjectives.js.map +1 -0
- package/build/sdk/studio/sdk/model/optimizeConfigResponse.d.ts +13 -2
- package/build/sdk/studio/sdk/model/optimizeConfigResponse.js +16 -1
- package/build/sdk/studio/sdk/model/optimizeConfigResponse.js.map +1 -1
- package/build/sdk/studio/sdk/model/optimizeConfigSearchSpaceSource.d.ts +45 -0
- package/build/sdk/studio/sdk/model/optimizeConfigSearchSpaceSource.js +48 -0
- package/build/sdk/studio/sdk/model/optimizeConfigSearchSpaceSource.js.map +1 -0
- package/build/sdk/studio/sdk/model/optimizeStateResponse.d.ts +7 -0
- package/build/sdk/studio/sdk/model/optimizeStateResponse.js +12 -1
- package/build/sdk/studio/sdk/model/optimizeStateResponse.js.map +1 -1
- package/build/sdk/studio/sdk/model/optimizeStateResponseAllOf.d.ts +7 -0
- package/build/sdk/studio/sdk/model/optimizeStateResponseAllOf.js +12 -1
- package/build/sdk/studio/sdk/model/optimizeStateResponseAllOf.js.map +1 -1
- package/build/sdk/studio/sdk/model/organization.d.ts +4 -0
- package/build/sdk/studio/sdk/model/organization.js +5 -0
- package/build/sdk/studio/sdk/model/organization.js.map +1 -1
- package/build/sdk/studio/sdk/model/organizationDataExport.d.ts +2 -2
- package/build/sdk/studio/sdk/model/organizationDataExport.js +1 -1
- package/build/sdk/studio/sdk/model/organizationDataExport.js.map +1 -1
- package/build/sdk/studio/sdk/model/permission.d.ts +1 -1
- package/build/sdk/studio/sdk/model/permission.js +1 -1
- package/build/sdk/studio/sdk/model/permission.js.map +1 -1
- package/build/sdk/studio/sdk/model/project.d.ts +7 -0
- package/build/sdk/studio/sdk/model/project.js +20 -0
- package/build/sdk/studio/sdk/model/project.js.map +1 -1
- package/build/sdk/studio/sdk/model/projectDeploymentTarget.d.ts +6 -0
- package/build/sdk/studio/sdk/model/projectDeploymentTarget.js +10 -0
- package/build/sdk/studio/sdk/model/projectDeploymentTarget.js.map +1 -1
- package/build/sdk/studio/sdk/model/report.d.ts +2 -2
- package/build/sdk/studio/sdk/model/report.js +1 -1
- package/build/sdk/studio/sdk/model/report.js.map +1 -1
- package/build/sdk/studio/sdk/model/socketTokenResponse.d.ts +1 -1
- package/build/sdk/studio/sdk/model/socketTokenResponseAllOf.d.ts +1 -1
- package/build/sdk/studio/sdk/model/trashBinEntity.d.ts +55 -0
- package/build/sdk/studio/sdk/model/trashBinEntity.js +62 -0
- package/build/sdk/studio/sdk/model/trashBinEntity.js.map +1 -0
- package/build/sdk/studio/sdk/model/tunerRun.d.ts +1 -0
- package/build/sdk/studio/sdk/model/tunerRun.js +5 -0
- package/build/sdk/studio/sdk/model/tunerRun.js.map +1 -1
- package/build/shared/viewmodels/init.d.ts +1 -0
- package/build/shared/viewmodels/init.js +1 -0
- package/build/shared/viewmodels/init.js.map +1 -1
- package/package.json +5 -1
- package/test/gstreamer.test.ts +189 -0
- package/test/qualcomm-rb3-inspect-qtiqmmfsrc.txt +358 -0
- package/test/qualcomm-rb3-inspect.txt +815 -0
- package/test/qualcomm-rb3-monitor-brio.txt +561 -0
- package/build/sdk/studio/sdk/model/addOrganizationDeployBlockResponse.js.map +0 -1
- package/build/sdk/studio/sdk/model/addOrganizationDspBlockResponse.js +0 -39
- package/build/sdk/studio/sdk/model/addOrganizationDspBlockResponse.js.map +0 -1
- package/build/sdk/studio/sdk/model/addOrganizationSecretResponse.js.map +0 -1
- package/build/sdk/studio/sdk/model/addOrganizationSecretResponseAllOf.js.map +0 -1
- package/build/sdk/studio/sdk/model/addOrganizationTransferLearningBlockResponse.js +0 -39
- package/build/sdk/studio/sdk/model/addOrganizationTransferLearningBlockResponse.js.map +0 -1
- package/build/sdk/studio/sdk/model/addOrganizationTransformationBlockResponse.d.ts +0 -33
- package/build/sdk/studio/sdk/model/addOrganizationTransformationBlockResponse.js +0 -39
- package/build/sdk/studio/sdk/model/addOrganizationTransformationBlockResponse.js.map +0 -1
- package/build/sdk/studio/sdk/model/addOrganizationTransformationBlockResponseAllOf.js.map +0 -1
- package/build/sdk/studio/sdk/model/createAIActionResponse.js.map +0 -1
- package/build/sdk/studio/sdk/model/createPipelineResponse.js.map +0 -1
- package/build/sdk/studio/sdk/model/developmentBoardCreatedResponse.js +0 -39
- package/build/sdk/studio/sdk/model/developmentBoardCreatedResponse.js.map +0 -1
- package/build/sdk/studio/sdk/model/dspRunResponseAllOfPerformance.js.map +0 -1
- package/build/sdk/studio/sdk/model/jobCreatedByUser.js +0 -44
- package/build/sdk/studio/sdk/model/jobCreatedByUser.js.map +0 -1
|
@@ -132,14 +132,15 @@ class AdminApi {
|
|
|
132
132
|
}
|
|
133
133
|
else {
|
|
134
134
|
body = models_1.ObjectSerializer.deserialize(body, "GenericApiResponse");
|
|
135
|
-
const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
|
|
136
135
|
if (typeof body.success === 'boolean' && !body.success) {
|
|
136
|
+
const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
|
|
137
137
|
reject(new Error(body.error || errString));
|
|
138
138
|
}
|
|
139
139
|
else if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
140
140
|
resolve(body);
|
|
141
141
|
}
|
|
142
142
|
else {
|
|
143
|
+
const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
|
|
143
144
|
reject(errString);
|
|
144
145
|
}
|
|
145
146
|
}
|
|
@@ -211,14 +212,15 @@ class AdminApi {
|
|
|
211
212
|
}
|
|
212
213
|
else {
|
|
213
214
|
body = models_1.ObjectSerializer.deserialize(body, "GenericApiResponse");
|
|
214
|
-
const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
|
|
215
215
|
if (typeof body.success === 'boolean' && !body.success) {
|
|
216
|
+
const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
|
|
216
217
|
reject(new Error(body.error || errString));
|
|
217
218
|
}
|
|
218
219
|
else if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
219
220
|
resolve(body);
|
|
220
221
|
}
|
|
221
222
|
else {
|
|
223
|
+
const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
|
|
222
224
|
reject(errString);
|
|
223
225
|
}
|
|
224
226
|
}
|
|
@@ -290,14 +292,15 @@ class AdminApi {
|
|
|
290
292
|
}
|
|
291
293
|
else {
|
|
292
294
|
body = models_1.ObjectSerializer.deserialize(body, "GenericApiResponse");
|
|
293
|
-
const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
|
|
294
295
|
if (typeof body.success === 'boolean' && !body.success) {
|
|
296
|
+
const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
|
|
295
297
|
reject(new Error(body.error || errString));
|
|
296
298
|
}
|
|
297
299
|
else if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
298
300
|
resolve(body);
|
|
299
301
|
}
|
|
300
302
|
else {
|
|
303
|
+
const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
|
|
301
304
|
reject(errString);
|
|
302
305
|
}
|
|
303
306
|
}
|
|
@@ -369,14 +372,15 @@ class AdminApi {
|
|
|
369
372
|
}
|
|
370
373
|
else {
|
|
371
374
|
body = models_1.ObjectSerializer.deserialize(body, "GenericApiResponse");
|
|
372
|
-
const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
|
|
373
375
|
if (typeof body.success === 'boolean' && !body.success) {
|
|
376
|
+
const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
|
|
374
377
|
reject(new Error(body.error || errString));
|
|
375
378
|
}
|
|
376
379
|
else if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
377
380
|
resolve(body);
|
|
378
381
|
}
|
|
379
382
|
else {
|
|
383
|
+
const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
|
|
380
384
|
reject(errString);
|
|
381
385
|
}
|
|
382
386
|
}
|
|
@@ -442,14 +446,15 @@ class AdminApi {
|
|
|
442
446
|
}
|
|
443
447
|
else {
|
|
444
448
|
body = models_1.ObjectSerializer.deserialize(body, "GenericApiResponse");
|
|
445
|
-
const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
|
|
446
449
|
if (typeof body.success === 'boolean' && !body.success) {
|
|
450
|
+
const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
|
|
447
451
|
reject(new Error(body.error || errString));
|
|
448
452
|
}
|
|
449
453
|
else if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
450
454
|
resolve(body);
|
|
451
455
|
}
|
|
452
456
|
else {
|
|
457
|
+
const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
|
|
453
458
|
reject(errString);
|
|
454
459
|
}
|
|
455
460
|
}
|
|
@@ -525,14 +530,15 @@ class AdminApi {
|
|
|
525
530
|
}
|
|
526
531
|
else {
|
|
527
532
|
body = models_1.ObjectSerializer.deserialize(body, "StartJobResponse");
|
|
528
|
-
const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
|
|
529
533
|
if (typeof body.success === 'boolean' && !body.success) {
|
|
534
|
+
const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
|
|
530
535
|
reject(new Error(body.error || errString));
|
|
531
536
|
}
|
|
532
537
|
else if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
533
538
|
resolve(body);
|
|
534
539
|
}
|
|
535
540
|
else {
|
|
541
|
+
const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
|
|
536
542
|
reject(errString);
|
|
537
543
|
}
|
|
538
544
|
}
|
|
@@ -598,14 +604,15 @@ class AdminApi {
|
|
|
598
604
|
}
|
|
599
605
|
else {
|
|
600
606
|
body = models_1.ObjectSerializer.deserialize(body, "CreateOrganizationResponse");
|
|
601
|
-
const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
|
|
602
607
|
if (typeof body.success === 'boolean' && !body.success) {
|
|
608
|
+
const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
|
|
603
609
|
reject(new Error(body.error || errString));
|
|
604
610
|
}
|
|
605
611
|
else if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
606
612
|
resolve(body);
|
|
607
613
|
}
|
|
608
614
|
else {
|
|
615
|
+
const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
|
|
609
616
|
reject(errString);
|
|
610
617
|
}
|
|
611
618
|
}
|
|
@@ -677,14 +684,15 @@ class AdminApi {
|
|
|
677
684
|
}
|
|
678
685
|
else {
|
|
679
686
|
body = models_1.ObjectSerializer.deserialize(body, "StartJobResponse");
|
|
680
|
-
const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
|
|
681
687
|
if (typeof body.success === 'boolean' && !body.success) {
|
|
688
|
+
const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
|
|
682
689
|
reject(new Error(body.error || errString));
|
|
683
690
|
}
|
|
684
691
|
else if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
685
692
|
resolve(body);
|
|
686
693
|
}
|
|
687
694
|
else {
|
|
695
|
+
const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
|
|
688
696
|
reject(errString);
|
|
689
697
|
}
|
|
690
698
|
}
|
|
@@ -756,14 +764,15 @@ class AdminApi {
|
|
|
756
764
|
}
|
|
757
765
|
else {
|
|
758
766
|
body = models_1.ObjectSerializer.deserialize(body, "CreateProjectResponse");
|
|
759
|
-
const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
|
|
760
767
|
if (typeof body.success === 'boolean' && !body.success) {
|
|
768
|
+
const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
|
|
761
769
|
reject(new Error(body.error || errString));
|
|
762
770
|
}
|
|
763
771
|
else if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
764
772
|
resolve(body);
|
|
765
773
|
}
|
|
766
774
|
else {
|
|
775
|
+
const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
|
|
767
776
|
reject(errString);
|
|
768
777
|
}
|
|
769
778
|
}
|
|
@@ -845,14 +854,15 @@ class AdminApi {
|
|
|
845
854
|
}
|
|
846
855
|
else {
|
|
847
856
|
body = models_1.ObjectSerializer.deserialize(body, "StartJobResponse");
|
|
848
|
-
const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
|
|
849
857
|
if (typeof body.success === 'boolean' && !body.success) {
|
|
858
|
+
const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
|
|
850
859
|
reject(new Error(body.error || errString));
|
|
851
860
|
}
|
|
852
861
|
else if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
853
862
|
resolve(body);
|
|
854
863
|
}
|
|
855
864
|
else {
|
|
865
|
+
const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
|
|
856
866
|
reject(errString);
|
|
857
867
|
}
|
|
858
868
|
}
|
|
@@ -918,14 +928,15 @@ class AdminApi {
|
|
|
918
928
|
}
|
|
919
929
|
else {
|
|
920
930
|
body = models_1.ObjectSerializer.deserialize(body, "CreateProjectResponse");
|
|
921
|
-
const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
|
|
922
931
|
if (typeof body.success === 'boolean' && !body.success) {
|
|
932
|
+
const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
|
|
923
933
|
reject(new Error(body.error || errString));
|
|
924
934
|
}
|
|
925
935
|
else if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
926
936
|
resolve(body);
|
|
927
937
|
}
|
|
928
938
|
else {
|
|
939
|
+
const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
|
|
929
940
|
reject(errString);
|
|
930
941
|
}
|
|
931
942
|
}
|
|
@@ -991,14 +1002,15 @@ class AdminApi {
|
|
|
991
1002
|
}
|
|
992
1003
|
else {
|
|
993
1004
|
body = models_1.ObjectSerializer.deserialize(body, "EntityCreatedResponse");
|
|
994
|
-
const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
|
|
995
1005
|
if (typeof body.success === 'boolean' && !body.success) {
|
|
1006
|
+
const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
|
|
996
1007
|
reject(new Error(body.error || errString));
|
|
997
1008
|
}
|
|
998
1009
|
else if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
999
1010
|
resolve(body);
|
|
1000
1011
|
}
|
|
1001
1012
|
else {
|
|
1013
|
+
const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
|
|
1002
1014
|
reject(errString);
|
|
1003
1015
|
}
|
|
1004
1016
|
}
|
|
@@ -1064,14 +1076,15 @@ class AdminApi {
|
|
|
1064
1076
|
}
|
|
1065
1077
|
else {
|
|
1066
1078
|
body = models_1.ObjectSerializer.deserialize(body, "GenericApiResponse");
|
|
1067
|
-
const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
|
|
1068
1079
|
if (typeof body.success === 'boolean' && !body.success) {
|
|
1080
|
+
const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
|
|
1069
1081
|
reject(new Error(body.error || errString));
|
|
1070
1082
|
}
|
|
1071
1083
|
else if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
1072
1084
|
resolve(body);
|
|
1073
1085
|
}
|
|
1074
1086
|
else {
|
|
1087
|
+
const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
|
|
1075
1088
|
reject(errString);
|
|
1076
1089
|
}
|
|
1077
1090
|
}
|
|
@@ -1137,14 +1150,15 @@ class AdminApi {
|
|
|
1137
1150
|
}
|
|
1138
1151
|
else {
|
|
1139
1152
|
body = models_1.ObjectSerializer.deserialize(body, "GenericApiResponse");
|
|
1140
|
-
const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
|
|
1141
1153
|
if (typeof body.success === 'boolean' && !body.success) {
|
|
1154
|
+
const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
|
|
1142
1155
|
reject(new Error(body.error || errString));
|
|
1143
1156
|
}
|
|
1144
1157
|
else if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
1145
1158
|
resolve(body);
|
|
1146
1159
|
}
|
|
1147
1160
|
else {
|
|
1161
|
+
const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
|
|
1148
1162
|
reject(errString);
|
|
1149
1163
|
}
|
|
1150
1164
|
}
|
|
@@ -1153,10 +1167,10 @@ class AdminApi {
|
|
|
1153
1167
|
});
|
|
1154
1168
|
}
|
|
1155
1169
|
/**
|
|
1156
|
-
* Admin-only API to delete an organization.
|
|
1170
|
+
* Admin-only API to delete an organization. The deletion process varies based on the `fullDelete` parameter: **Soft Delete** (default, `fullDelete=false`): - Organization is marked as deleted in the database - Organization remains hidden from the product - All data is preserved and recoverable - No data is removed from S3 or FSx **Full Delete** (`fullDelete=true`): 1. Immediate soft deletion - Organization is marked as deleted and hidden from the product - Access is immediately revoked for all organization members 2. Data preservation - S3 and FSx assets are moved to a trash bin 3. Scheduled permanent deletion - A 30-day grace period begins - After 30 days, all organization data and S3 and FSx assets are permanently deleted - During the grace period: - Deletion can be cancelled by administrators - Data can be recovered if needed - Progress can be monitored via admin API
|
|
1157
1171
|
* @summary Delete an organization
|
|
1158
1172
|
* @param organizationId Organization ID
|
|
1159
|
-
* @param fullDeletion Set to true
|
|
1173
|
+
* @param fullDeletion Set to true to schedule permanent deletion
|
|
1160
1174
|
*/
|
|
1161
1175
|
async adminDeleteOrganization(organizationId, queryParams, options = { headers: {} }) {
|
|
1162
1176
|
const localVarPath = this.basePath + '/api/admin/organizations/{organizationId}'
|
|
@@ -1213,15 +1227,16 @@ class AdminApi {
|
|
|
1213
1227
|
reject(error);
|
|
1214
1228
|
}
|
|
1215
1229
|
else {
|
|
1216
|
-
body = models_1.ObjectSerializer.deserialize(body, "
|
|
1217
|
-
const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
|
|
1230
|
+
body = models_1.ObjectSerializer.deserialize(body, "StartJobResponse");
|
|
1218
1231
|
if (typeof body.success === 'boolean' && !body.success) {
|
|
1232
|
+
const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
|
|
1219
1233
|
reject(new Error(body.error || errString));
|
|
1220
1234
|
}
|
|
1221
1235
|
else if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
1222
1236
|
resolve(body);
|
|
1223
1237
|
}
|
|
1224
1238
|
else {
|
|
1239
|
+
const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
|
|
1225
1240
|
reject(errString);
|
|
1226
1241
|
}
|
|
1227
1242
|
}
|
|
@@ -1293,14 +1308,15 @@ class AdminApi {
|
|
|
1293
1308
|
}
|
|
1294
1309
|
else {
|
|
1295
1310
|
body = models_1.ObjectSerializer.deserialize(body, "GenericApiResponse");
|
|
1296
|
-
const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
|
|
1297
1311
|
if (typeof body.success === 'boolean' && !body.success) {
|
|
1312
|
+
const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
|
|
1298
1313
|
reject(new Error(body.error || errString));
|
|
1299
1314
|
}
|
|
1300
1315
|
else if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
1301
1316
|
resolve(body);
|
|
1302
1317
|
}
|
|
1303
1318
|
else {
|
|
1319
|
+
const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
|
|
1304
1320
|
reject(errString);
|
|
1305
1321
|
}
|
|
1306
1322
|
}
|
|
@@ -1372,14 +1388,15 @@ class AdminApi {
|
|
|
1372
1388
|
}
|
|
1373
1389
|
else {
|
|
1374
1390
|
body = models_1.ObjectSerializer.deserialize(body, "GenericApiResponse");
|
|
1375
|
-
const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
|
|
1376
1391
|
if (typeof body.success === 'boolean' && !body.success) {
|
|
1392
|
+
const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
|
|
1377
1393
|
reject(new Error(body.error || errString));
|
|
1378
1394
|
}
|
|
1379
1395
|
else if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
1380
1396
|
resolve(body);
|
|
1381
1397
|
}
|
|
1382
1398
|
else {
|
|
1399
|
+
const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
|
|
1383
1400
|
reject(errString);
|
|
1384
1401
|
}
|
|
1385
1402
|
}
|
|
@@ -1391,8 +1408,9 @@ class AdminApi {
|
|
|
1391
1408
|
* Admin-only API to delete a project.
|
|
1392
1409
|
* @summary Delete a project
|
|
1393
1410
|
* @param projectId Project ID
|
|
1411
|
+
* @param fullDeletion Set to true to schedule permanent deletion
|
|
1394
1412
|
*/
|
|
1395
|
-
async adminDeleteProject(projectId, options = { headers: {} }) {
|
|
1413
|
+
async adminDeleteProject(projectId, queryParams, options = { headers: {} }) {
|
|
1396
1414
|
const localVarPath = this.basePath + '/api/admin/projects/{projectId}'
|
|
1397
1415
|
.replace('{' + 'projectId' + '}', encodeURIComponent(String(projectId)));
|
|
1398
1416
|
let localVarQueryParameters = {};
|
|
@@ -1412,6 +1430,9 @@ class AdminApi {
|
|
|
1412
1430
|
if (projectId === null || projectId === undefined) {
|
|
1413
1431
|
throw new Error('Required parameter projectId was null or undefined when calling adminDeleteProject.');
|
|
1414
1432
|
}
|
|
1433
|
+
if ((queryParams === null || queryParams === void 0 ? void 0 : queryParams.fullDeletion) !== undefined) {
|
|
1434
|
+
localVarQueryParameters['fullDeletion'] = models_1.ObjectSerializer.serialize(queryParams.fullDeletion, "boolean");
|
|
1435
|
+
}
|
|
1415
1436
|
Object.assign(localVarHeaderParams, options.headers);
|
|
1416
1437
|
Object.assign(localVarHeaderParams, this.opts.extraHeaders);
|
|
1417
1438
|
let localVarUseFormData = false;
|
|
@@ -1445,14 +1466,15 @@ class AdminApi {
|
|
|
1445
1466
|
}
|
|
1446
1467
|
else {
|
|
1447
1468
|
body = models_1.ObjectSerializer.deserialize(body, "GenericApiResponse");
|
|
1448
|
-
const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
|
|
1449
1469
|
if (typeof body.success === 'boolean' && !body.success) {
|
|
1470
|
+
const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
|
|
1450
1471
|
reject(new Error(body.error || errString));
|
|
1451
1472
|
}
|
|
1452
1473
|
else if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
1453
1474
|
resolve(body);
|
|
1454
1475
|
}
|
|
1455
1476
|
else {
|
|
1477
|
+
const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
|
|
1456
1478
|
reject(errString);
|
|
1457
1479
|
}
|
|
1458
1480
|
}
|
|
@@ -1518,14 +1540,15 @@ class AdminApi {
|
|
|
1518
1540
|
}
|
|
1519
1541
|
else {
|
|
1520
1542
|
body = models_1.ObjectSerializer.deserialize(body, "GenericApiResponse");
|
|
1521
|
-
const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
|
|
1522
1543
|
if (typeof body.success === 'boolean' && !body.success) {
|
|
1544
|
+
const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
|
|
1523
1545
|
reject(new Error(body.error || errString));
|
|
1524
1546
|
}
|
|
1525
1547
|
else if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
1526
1548
|
resolve(body);
|
|
1527
1549
|
}
|
|
1528
1550
|
else {
|
|
1551
|
+
const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
|
|
1529
1552
|
reject(errString);
|
|
1530
1553
|
}
|
|
1531
1554
|
}
|
|
@@ -1591,14 +1614,15 @@ class AdminApi {
|
|
|
1591
1614
|
}
|
|
1592
1615
|
else {
|
|
1593
1616
|
body = models_1.ObjectSerializer.deserialize(body, "GenericApiResponse");
|
|
1594
|
-
const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
|
|
1595
1617
|
if (typeof body.success === 'boolean' && !body.success) {
|
|
1618
|
+
const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
|
|
1596
1619
|
reject(new Error(body.error || errString));
|
|
1597
1620
|
}
|
|
1598
1621
|
else if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
1599
1622
|
resolve(body);
|
|
1600
1623
|
}
|
|
1601
1624
|
else {
|
|
1625
|
+
const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
|
|
1602
1626
|
reject(errString);
|
|
1603
1627
|
}
|
|
1604
1628
|
}
|
|
@@ -1664,14 +1688,15 @@ class AdminApi {
|
|
|
1664
1688
|
}
|
|
1665
1689
|
else {
|
|
1666
1690
|
body = models_1.ObjectSerializer.deserialize(body, "GenericApiResponse");
|
|
1667
|
-
const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
|
|
1668
1691
|
if (typeof body.success === 'boolean' && !body.success) {
|
|
1692
|
+
const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
|
|
1669
1693
|
reject(new Error(body.error || errString));
|
|
1670
1694
|
}
|
|
1671
1695
|
else if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
1672
1696
|
resolve(body);
|
|
1673
1697
|
}
|
|
1674
1698
|
else {
|
|
1699
|
+
const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
|
|
1675
1700
|
reject(errString);
|
|
1676
1701
|
}
|
|
1677
1702
|
}
|
|
@@ -1680,11 +1705,13 @@ class AdminApi {
|
|
|
1680
1705
|
});
|
|
1681
1706
|
}
|
|
1682
1707
|
/**
|
|
1683
|
-
* Admin-only API to delete a user.
|
|
1708
|
+
* Admin-only API to delete a user. The deletion process varies based on the `fullDelete` parameter: **Soft Delete** (default, `fullDelete=false`): - User is marked as deleted in the database - User remains hidden from the product - All data is preserved and recoverable - No data is removed from S3 or FSx - User is unsubscribed from marketing communications - Any active subscriptions are cancelled **Full Delete** (`fullDelete=true`): 1. Immediate soft deletion - User is marked as deleted and hidden from the product - Access is immediately revoked - User is unsubscribed from marketing communications - Any active subscriptions are cancelled 2. Data preservation - S3 and FSx assets are moved to a trash bin 3. Scheduled permanent deletion - A 30-day grace period begins - After 30 days, all user data and S3 and FSx assets are permanently deleted - During the grace period: - Deletion can be cancelled by administrators - Data can be recovered if needed - Progress can be monitored via admin API
|
|
1684
1709
|
* @summary Delete a user
|
|
1685
1710
|
* @param userId User ID
|
|
1711
|
+
* @param fullDeletion Set to true to schedule permanent deletion
|
|
1712
|
+
* @param skipUserNotification If set to true, skips sending email notifications to users about their account/entity deletion. This is typically used for maintenance activities where notification is not needed or desired.
|
|
1686
1713
|
*/
|
|
1687
|
-
async adminDeleteUser(userId, options = { headers: {} }) {
|
|
1714
|
+
async adminDeleteUser(userId, queryParams, options = { headers: {} }) {
|
|
1688
1715
|
const localVarPath = this.basePath + '/api/admin/users/{userId}'
|
|
1689
1716
|
.replace('{' + 'userId' + '}', encodeURIComponent(String(userId)));
|
|
1690
1717
|
let localVarQueryParameters = {};
|
|
@@ -1704,6 +1731,12 @@ class AdminApi {
|
|
|
1704
1731
|
if (userId === null || userId === undefined) {
|
|
1705
1732
|
throw new Error('Required parameter userId was null or undefined when calling adminDeleteUser.');
|
|
1706
1733
|
}
|
|
1734
|
+
if ((queryParams === null || queryParams === void 0 ? void 0 : queryParams.fullDeletion) !== undefined) {
|
|
1735
|
+
localVarQueryParameters['fullDeletion'] = models_1.ObjectSerializer.serialize(queryParams.fullDeletion, "boolean");
|
|
1736
|
+
}
|
|
1737
|
+
if ((queryParams === null || queryParams === void 0 ? void 0 : queryParams.skipUserNotification) !== undefined) {
|
|
1738
|
+
localVarQueryParameters['skipUserNotification'] = models_1.ObjectSerializer.serialize(queryParams.skipUserNotification, "boolean");
|
|
1739
|
+
}
|
|
1707
1740
|
Object.assign(localVarHeaderParams, options.headers);
|
|
1708
1741
|
Object.assign(localVarHeaderParams, this.opts.extraHeaders);
|
|
1709
1742
|
let localVarUseFormData = false;
|
|
@@ -1737,14 +1770,15 @@ class AdminApi {
|
|
|
1737
1770
|
}
|
|
1738
1771
|
else {
|
|
1739
1772
|
body = models_1.ObjectSerializer.deserialize(body, "StartJobResponse");
|
|
1740
|
-
const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
|
|
1741
1773
|
if (typeof body.success === 'boolean' && !body.success) {
|
|
1774
|
+
const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
|
|
1742
1775
|
reject(new Error(body.error || errString));
|
|
1743
1776
|
}
|
|
1744
1777
|
else if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
1745
1778
|
resolve(body);
|
|
1746
1779
|
}
|
|
1747
1780
|
else {
|
|
1781
|
+
const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
|
|
1748
1782
|
reject(errString);
|
|
1749
1783
|
}
|
|
1750
1784
|
}
|
|
@@ -1810,14 +1844,15 @@ class AdminApi {
|
|
|
1810
1844
|
}
|
|
1811
1845
|
else {
|
|
1812
1846
|
body = models_1.ObjectSerializer.deserialize(body, "GenericApiResponse");
|
|
1813
|
-
const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
|
|
1814
1847
|
if (typeof body.success === 'boolean' && !body.success) {
|
|
1848
|
+
const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
|
|
1815
1849
|
reject(new Error(body.error || errString));
|
|
1816
1850
|
}
|
|
1817
1851
|
else if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
1818
1852
|
resolve(body);
|
|
1819
1853
|
}
|
|
1820
1854
|
else {
|
|
1855
|
+
const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
|
|
1821
1856
|
reject(errString);
|
|
1822
1857
|
}
|
|
1823
1858
|
}
|
|
@@ -1874,14 +1909,15 @@ class AdminApi {
|
|
|
1874
1909
|
reject(error);
|
|
1875
1910
|
}
|
|
1876
1911
|
else {
|
|
1877
|
-
const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
|
|
1878
1912
|
if (typeof body.success === 'boolean' && !body.success) {
|
|
1913
|
+
const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
|
|
1879
1914
|
reject(new Error(body.error || errString));
|
|
1880
1915
|
}
|
|
1881
1916
|
else if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
1882
1917
|
resolve(body);
|
|
1883
1918
|
}
|
|
1884
1919
|
else {
|
|
1920
|
+
const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
|
|
1885
1921
|
reject(errString);
|
|
1886
1922
|
}
|
|
1887
1923
|
}
|
|
@@ -1944,14 +1980,83 @@ class AdminApi {
|
|
|
1944
1980
|
reject(error);
|
|
1945
1981
|
}
|
|
1946
1982
|
else {
|
|
1947
|
-
const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
|
|
1948
1983
|
if (typeof body.success === 'boolean' && !body.success) {
|
|
1984
|
+
const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
|
|
1985
|
+
reject(new Error(body.error || errString));
|
|
1986
|
+
}
|
|
1987
|
+
else if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
1988
|
+
resolve(body);
|
|
1989
|
+
}
|
|
1990
|
+
else {
|
|
1991
|
+
const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
|
|
1992
|
+
reject(errString);
|
|
1993
|
+
}
|
|
1994
|
+
}
|
|
1995
|
+
});
|
|
1996
|
+
});
|
|
1997
|
+
});
|
|
1998
|
+
}
|
|
1999
|
+
/**
|
|
2000
|
+
* ⚠️ DANGER: This is a highly destructive maintenance endpoint that forcefully deletes all content from the trash bin, regardless of grace period status. This should only be used for: - Internal testing purposes - Manual maintenance tasks - Emergency cleanup operations Unlike the normal automatic deletion process which respects the 30-day grace period, this endpoint: - Immediately and permanently deletes ALL data in the trash bin - Bypasses the standard grace period checks - Cannot be undone - May delete data that would otherwise be recoverable The normal trash bin system works as follows: 1. When users/organizations are deleted with `fullDelete=true`: - Their data is moved to the trash bin - A 30-day grace period begins - The data remains recoverable during this period 2. During the 30-day grace period: - Data is preserved in its original structure - Administrators can recover data if needed - The deletion can be cancelled - Storage costs continue to accrue ⚠️ WARNING: - This endpoint bypasses all safety mechanisms - Data deletion is immediate and irreversible - Should not be used in normal operations - Requires explicit admin permissions - Consider using targeted deletion endpoints instead (i.e. /api/admin/trashbin/organizations/:id) Note: The system runs automated cleanup jobs periodically for normal maintenance. This endpoint should only be used in exceptional circumstances by authorized administrators.
|
|
2001
|
+
* @summary Empty all trashbin content
|
|
2002
|
+
*/
|
|
2003
|
+
async adminEmptyTrashbin(options = { headers: {} }) {
|
|
2004
|
+
const localVarPath = this.basePath + '/api/admin/trashbin';
|
|
2005
|
+
let localVarQueryParameters = {};
|
|
2006
|
+
let localVarHeaderParams = Object.assign({
|
|
2007
|
+
'User-Agent': 'edgeimpulse-api nodejs'
|
|
2008
|
+
}, this.defaultHeaders);
|
|
2009
|
+
const produces = ['application/json'];
|
|
2010
|
+
// give precedence to 'application/json'
|
|
2011
|
+
if (produces.indexOf('application/json') >= 0) {
|
|
2012
|
+
localVarHeaderParams.Accept = 'application/json';
|
|
2013
|
+
}
|
|
2014
|
+
else {
|
|
2015
|
+
localVarHeaderParams.Accept = produces.join(',');
|
|
2016
|
+
}
|
|
2017
|
+
let localVarFormParams = {};
|
|
2018
|
+
Object.assign(localVarHeaderParams, options.headers);
|
|
2019
|
+
Object.assign(localVarHeaderParams, this.opts.extraHeaders);
|
|
2020
|
+
let localVarUseFormData = false;
|
|
2021
|
+
let localVarRequestOptions = {
|
|
2022
|
+
method: 'DELETE',
|
|
2023
|
+
qs: localVarQueryParameters,
|
|
2024
|
+
headers: localVarHeaderParams,
|
|
2025
|
+
uri: localVarPath,
|
|
2026
|
+
useQuerystring: this._useQuerystring,
|
|
2027
|
+
agentOptions: { keepAlive: false },
|
|
2028
|
+
json: true,
|
|
2029
|
+
};
|
|
2030
|
+
let authenticationPromise = Promise.resolve();
|
|
2031
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.ApiKeyAuthentication.applyToRequest(localVarRequestOptions));
|
|
2032
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.JWTAuthentication.applyToRequest(localVarRequestOptions));
|
|
2033
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.JWTHttpHeaderAuthentication.applyToRequest(localVarRequestOptions));
|
|
2034
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
|
|
2035
|
+
return authenticationPromise.then(() => {
|
|
2036
|
+
if (Object.keys(localVarFormParams).length) {
|
|
2037
|
+
if (localVarUseFormData) {
|
|
2038
|
+
localVarRequestOptions.formData = localVarFormParams;
|
|
2039
|
+
}
|
|
2040
|
+
else {
|
|
2041
|
+
localVarRequestOptions.form = localVarFormParams;
|
|
2042
|
+
}
|
|
2043
|
+
}
|
|
2044
|
+
return new Promise((resolve, reject) => {
|
|
2045
|
+
localVarRequest(localVarRequestOptions, (error, response, body) => {
|
|
2046
|
+
if (error) {
|
|
2047
|
+
reject(error);
|
|
2048
|
+
}
|
|
2049
|
+
else {
|
|
2050
|
+
body = models_1.ObjectSerializer.deserialize(body, "StartJobResponse");
|
|
2051
|
+
if (typeof body.success === 'boolean' && !body.success) {
|
|
2052
|
+
const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
|
|
1949
2053
|
reject(new Error(body.error || errString));
|
|
1950
2054
|
}
|
|
1951
2055
|
else if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
1952
2056
|
resolve(body);
|
|
1953
2057
|
}
|
|
1954
2058
|
else {
|
|
2059
|
+
const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
|
|
1955
2060
|
reject(errString);
|
|
1956
2061
|
}
|
|
1957
2062
|
}
|
|
@@ -2017,14 +2122,15 @@ class AdminApi {
|
|
|
2017
2122
|
}
|
|
2018
2123
|
else {
|
|
2019
2124
|
body = models_1.ObjectSerializer.deserialize(body, "GenericApiResponse");
|
|
2020
|
-
const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
|
|
2021
2125
|
if (typeof body.success === 'boolean' && !body.success) {
|
|
2126
|
+
const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
|
|
2022
2127
|
reject(new Error(body.error || errString));
|
|
2023
2128
|
}
|
|
2024
2129
|
else if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
2025
2130
|
resolve(body);
|
|
2026
2131
|
}
|
|
2027
2132
|
else {
|
|
2133
|
+
const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
|
|
2028
2134
|
reject(errString);
|
|
2029
2135
|
}
|
|
2030
2136
|
}
|
|
@@ -2092,14 +2198,15 @@ class AdminApi {
|
|
|
2092
2198
|
}
|
|
2093
2199
|
else {
|
|
2094
2200
|
body = models_1.ObjectSerializer.deserialize(body, "FindUserResponse");
|
|
2095
|
-
const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
|
|
2096
2201
|
if (typeof body.success === 'boolean' && !body.success) {
|
|
2202
|
+
const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
|
|
2097
2203
|
reject(new Error(body.error || errString));
|
|
2098
2204
|
}
|
|
2099
2205
|
else if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
2100
2206
|
resolve(body);
|
|
2101
2207
|
}
|
|
2102
2208
|
else {
|
|
2209
|
+
const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
|
|
2103
2210
|
reject(errString);
|
|
2104
2211
|
}
|
|
2105
2212
|
}
|
|
@@ -2159,14 +2266,15 @@ class AdminApi {
|
|
|
2159
2266
|
}
|
|
2160
2267
|
else {
|
|
2161
2268
|
body = models_1.ObjectSerializer.deserialize(body, "AdminGetUserIdsResponse");
|
|
2162
|
-
const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
|
|
2163
2269
|
if (typeof body.success === 'boolean' && !body.success) {
|
|
2270
|
+
const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
|
|
2164
2271
|
reject(new Error(body.error || errString));
|
|
2165
2272
|
}
|
|
2166
2273
|
else if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
2167
2274
|
resolve(body);
|
|
2168
2275
|
}
|
|
2169
2276
|
else {
|
|
2277
|
+
const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
|
|
2170
2278
|
reject(errString);
|
|
2171
2279
|
}
|
|
2172
2280
|
}
|
|
@@ -2226,14 +2334,15 @@ class AdminApi {
|
|
|
2226
2334
|
}
|
|
2227
2335
|
else {
|
|
2228
2336
|
body = models_1.ObjectSerializer.deserialize(body, "AdminGetUserIdsResponse");
|
|
2229
|
-
const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
|
|
2230
2337
|
if (typeof body.success === 'boolean' && !body.success) {
|
|
2338
|
+
const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
|
|
2231
2339
|
reject(new Error(body.error || errString));
|
|
2232
2340
|
}
|
|
2233
2341
|
else if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
2234
2342
|
resolve(body);
|
|
2235
2343
|
}
|
|
2236
2344
|
else {
|
|
2345
|
+
const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
|
|
2237
2346
|
reject(errString);
|
|
2238
2347
|
}
|
|
2239
2348
|
}
|
|
@@ -2299,14 +2408,15 @@ class AdminApi {
|
|
|
2299
2408
|
}
|
|
2300
2409
|
else {
|
|
2301
2410
|
body = models_1.ObjectSerializer.deserialize(body, "AdminGetDataMigrationResponse");
|
|
2302
|
-
const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
|
|
2303
2411
|
if (typeof body.success === 'boolean' && !body.success) {
|
|
2412
|
+
const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
|
|
2304
2413
|
reject(new Error(body.error || errString));
|
|
2305
2414
|
}
|
|
2306
2415
|
else if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
2307
2416
|
resolve(body);
|
|
2308
2417
|
}
|
|
2309
2418
|
else {
|
|
2419
|
+
const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
|
|
2310
2420
|
reject(errString);
|
|
2311
2421
|
}
|
|
2312
2422
|
}
|
|
@@ -2366,14 +2476,15 @@ class AdminApi {
|
|
|
2366
2476
|
}
|
|
2367
2477
|
else {
|
|
2368
2478
|
body = models_1.ObjectSerializer.deserialize(body, "AdminGetDataMigrationsResponse");
|
|
2369
|
-
const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
|
|
2370
2479
|
if (typeof body.success === 'boolean' && !body.success) {
|
|
2480
|
+
const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
|
|
2371
2481
|
reject(new Error(body.error || errString));
|
|
2372
2482
|
}
|
|
2373
2483
|
else if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
2374
2484
|
resolve(body);
|
|
2375
2485
|
}
|
|
2376
2486
|
else {
|
|
2487
|
+
const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
|
|
2377
2488
|
reject(errString);
|
|
2378
2489
|
}
|
|
2379
2490
|
}
|
|
@@ -2433,14 +2544,15 @@ class AdminApi {
|
|
|
2433
2544
|
}
|
|
2434
2545
|
else {
|
|
2435
2546
|
body = models_1.ObjectSerializer.deserialize(body, "AdminGetDisallowedEmailDomainsResponse");
|
|
2436
|
-
const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
|
|
2437
2547
|
if (typeof body.success === 'boolean' && !body.success) {
|
|
2548
|
+
const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
|
|
2438
2549
|
reject(new Error(body.error || errString));
|
|
2439
2550
|
}
|
|
2440
2551
|
else if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
2441
2552
|
resolve(body);
|
|
2442
2553
|
}
|
|
2443
2554
|
else {
|
|
2555
|
+
const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
|
|
2444
2556
|
reject(errString);
|
|
2445
2557
|
}
|
|
2446
2558
|
}
|
|
@@ -2506,14 +2618,15 @@ class AdminApi {
|
|
|
2506
2618
|
}
|
|
2507
2619
|
else {
|
|
2508
2620
|
body = models_1.ObjectSerializer.deserialize(body, "GetEmailVerificationCodeResponse");
|
|
2509
|
-
const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
|
|
2510
2621
|
if (typeof body.success === 'boolean' && !body.success) {
|
|
2622
|
+
const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
|
|
2511
2623
|
reject(new Error(body.error || errString));
|
|
2512
2624
|
}
|
|
2513
2625
|
else if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
2514
2626
|
resolve(body);
|
|
2515
2627
|
}
|
|
2516
2628
|
else {
|
|
2629
|
+
const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
|
|
2517
2630
|
reject(errString);
|
|
2518
2631
|
}
|
|
2519
2632
|
}
|
|
@@ -2573,14 +2686,15 @@ class AdminApi {
|
|
|
2573
2686
|
}
|
|
2574
2687
|
else {
|
|
2575
2688
|
body = models_1.ObjectSerializer.deserialize(body, "GetFeatureFlagsResponse");
|
|
2576
|
-
const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
|
|
2577
2689
|
if (typeof body.success === 'boolean' && !body.success) {
|
|
2690
|
+
const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
|
|
2578
2691
|
reject(new Error(body.error || errString));
|
|
2579
2692
|
}
|
|
2580
2693
|
else if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
2581
2694
|
resolve(body);
|
|
2582
2695
|
}
|
|
2583
2696
|
else {
|
|
2697
|
+
const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
|
|
2584
2698
|
reject(errString);
|
|
2585
2699
|
}
|
|
2586
2700
|
}
|
|
@@ -2658,14 +2772,15 @@ class AdminApi {
|
|
|
2658
2772
|
}
|
|
2659
2773
|
else {
|
|
2660
2774
|
body = models_1.ObjectSerializer.deserialize(body, "JobDetailsResponse");
|
|
2661
|
-
const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
|
|
2662
2775
|
if (typeof body.success === 'boolean' && !body.success) {
|
|
2776
|
+
const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
|
|
2663
2777
|
reject(new Error(body.error || errString));
|
|
2664
2778
|
}
|
|
2665
2779
|
else if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
2666
2780
|
resolve(body);
|
|
2667
2781
|
}
|
|
2668
2782
|
else {
|
|
2783
|
+
const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
|
|
2669
2784
|
reject(errString);
|
|
2670
2785
|
}
|
|
2671
2786
|
}
|
|
@@ -2755,14 +2870,15 @@ class AdminApi {
|
|
|
2755
2870
|
}
|
|
2756
2871
|
else {
|
|
2757
2872
|
body = models_1.ObjectSerializer.deserialize(body, "JobLogsResponse");
|
|
2758
|
-
const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
|
|
2759
2873
|
if (typeof body.success === 'boolean' && !body.success) {
|
|
2874
|
+
const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
|
|
2760
2875
|
reject(new Error(body.error || errString));
|
|
2761
2876
|
}
|
|
2762
2877
|
else if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
2763
2878
|
resolve(body);
|
|
2764
2879
|
}
|
|
2765
2880
|
else {
|
|
2881
|
+
const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
|
|
2766
2882
|
reject(errString);
|
|
2767
2883
|
}
|
|
2768
2884
|
}
|
|
@@ -2836,14 +2952,15 @@ class AdminApi {
|
|
|
2836
2952
|
}
|
|
2837
2953
|
else {
|
|
2838
2954
|
body = models_1.ObjectSerializer.deserialize(body, "JobMetricsResponse");
|
|
2839
|
-
const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
|
|
2840
2955
|
if (typeof body.success === 'boolean' && !body.success) {
|
|
2956
|
+
const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
|
|
2841
2957
|
reject(new Error(body.error || errString));
|
|
2842
2958
|
}
|
|
2843
2959
|
else if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
2844
2960
|
resolve(body);
|
|
2845
2961
|
}
|
|
2846
2962
|
else {
|
|
2963
|
+
const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
|
|
2847
2964
|
reject(errString);
|
|
2848
2965
|
}
|
|
2849
2966
|
}
|
|
@@ -2903,14 +3020,15 @@ class AdminApi {
|
|
|
2903
3020
|
}
|
|
2904
3021
|
else {
|
|
2905
3022
|
body = models_1.ObjectSerializer.deserialize(body, "AdminGetMetricsResponse");
|
|
2906
|
-
const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
|
|
2907
3023
|
if (typeof body.success === 'boolean' && !body.success) {
|
|
3024
|
+
const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
|
|
2908
3025
|
reject(new Error(body.error || errString));
|
|
2909
3026
|
}
|
|
2910
3027
|
else if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
2911
3028
|
resolve(body);
|
|
2912
3029
|
}
|
|
2913
3030
|
else {
|
|
3031
|
+
const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
|
|
2914
3032
|
reject(errString);
|
|
2915
3033
|
}
|
|
2916
3034
|
}
|
|
@@ -2976,14 +3094,15 @@ class AdminApi {
|
|
|
2976
3094
|
}
|
|
2977
3095
|
else {
|
|
2978
3096
|
body = models_1.ObjectSerializer.deserialize(body, "AdminGetReportResponse");
|
|
2979
|
-
const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
|
|
2980
3097
|
if (typeof body.success === 'boolean' && !body.success) {
|
|
3098
|
+
const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
|
|
2981
3099
|
reject(new Error(body.error || errString));
|
|
2982
3100
|
}
|
|
2983
3101
|
else if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
2984
3102
|
resolve(body);
|
|
2985
3103
|
}
|
|
2986
3104
|
else {
|
|
3105
|
+
const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
|
|
2987
3106
|
reject(errString);
|
|
2988
3107
|
}
|
|
2989
3108
|
}
|
|
@@ -3051,14 +3170,15 @@ class AdminApi {
|
|
|
3051
3170
|
}
|
|
3052
3171
|
else {
|
|
3053
3172
|
body = models_1.ObjectSerializer.deserialize(body, "AdminGetReportsResponse");
|
|
3054
|
-
const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
|
|
3055
3173
|
if (typeof body.success === 'boolean' && !body.success) {
|
|
3174
|
+
const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
|
|
3056
3175
|
reject(new Error(body.error || errString));
|
|
3057
3176
|
}
|
|
3058
3177
|
else if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
3059
3178
|
resolve(body);
|
|
3060
3179
|
}
|
|
3061
3180
|
else {
|
|
3181
|
+
const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
|
|
3062
3182
|
reject(errString);
|
|
3063
3183
|
}
|
|
3064
3184
|
}
|
|
@@ -3140,14 +3260,15 @@ class AdminApi {
|
|
|
3140
3260
|
}
|
|
3141
3261
|
else {
|
|
3142
3262
|
body = models_1.ObjectSerializer.deserialize(body, "AdminGetOrganizationComputeTimeUsageResponse");
|
|
3143
|
-
const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
|
|
3144
3263
|
if (typeof body.success === 'boolean' && !body.success) {
|
|
3264
|
+
const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
|
|
3145
3265
|
reject(new Error(body.error || errString));
|
|
3146
3266
|
}
|
|
3147
3267
|
else if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
3148
3268
|
resolve(body);
|
|
3149
3269
|
}
|
|
3150
3270
|
else {
|
|
3271
|
+
const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
|
|
3151
3272
|
reject(errString);
|
|
3152
3273
|
}
|
|
3153
3274
|
}
|
|
@@ -3219,14 +3340,15 @@ class AdminApi {
|
|
|
3219
3340
|
}
|
|
3220
3341
|
else {
|
|
3221
3342
|
body = models_1.ObjectSerializer.deserialize(body, "GetOrganizationDataExportResponse");
|
|
3222
|
-
const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
|
|
3223
3343
|
if (typeof body.success === 'boolean' && !body.success) {
|
|
3344
|
+
const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
|
|
3224
3345
|
reject(new Error(body.error || errString));
|
|
3225
3346
|
}
|
|
3226
3347
|
else if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
3227
3348
|
resolve(body);
|
|
3228
3349
|
}
|
|
3229
3350
|
else {
|
|
3351
|
+
const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
|
|
3230
3352
|
reject(errString);
|
|
3231
3353
|
}
|
|
3232
3354
|
}
|
|
@@ -3300,14 +3422,15 @@ class AdminApi {
|
|
|
3300
3422
|
}
|
|
3301
3423
|
else {
|
|
3302
3424
|
body = models_1.ObjectSerializer.deserialize(body, "GetOrganizationDataExportsResponse");
|
|
3303
|
-
const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
|
|
3304
3425
|
if (typeof body.success === 'boolean' && !body.success) {
|
|
3426
|
+
const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
|
|
3305
3427
|
reject(new Error(body.error || errString));
|
|
3306
3428
|
}
|
|
3307
3429
|
else if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
3308
3430
|
resolve(body);
|
|
3309
3431
|
}
|
|
3310
3432
|
else {
|
|
3433
|
+
const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
|
|
3311
3434
|
reject(errString);
|
|
3312
3435
|
}
|
|
3313
3436
|
}
|
|
@@ -3377,14 +3500,15 @@ class AdminApi {
|
|
|
3377
3500
|
}
|
|
3378
3501
|
else {
|
|
3379
3502
|
body = models_1.ObjectSerializer.deserialize(body, "AdminOrganizationInfoResponse");
|
|
3380
|
-
const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
|
|
3381
3503
|
if (typeof body.success === 'boolean' && !body.success) {
|
|
3504
|
+
const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
|
|
3382
3505
|
reject(new Error(body.error || errString));
|
|
3383
3506
|
}
|
|
3384
3507
|
else if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
3385
3508
|
resolve(body);
|
|
3386
3509
|
}
|
|
3387
3510
|
else {
|
|
3511
|
+
const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
|
|
3388
3512
|
reject(errString);
|
|
3389
3513
|
}
|
|
3390
3514
|
}
|
|
@@ -3458,14 +3582,15 @@ class AdminApi {
|
|
|
3458
3582
|
}
|
|
3459
3583
|
else {
|
|
3460
3584
|
body = models_1.ObjectSerializer.deserialize(body, "ListJobsResponse");
|
|
3461
|
-
const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
|
|
3462
3585
|
if (typeof body.success === 'boolean' && !body.success) {
|
|
3586
|
+
const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
|
|
3463
3587
|
reject(new Error(body.error || errString));
|
|
3464
3588
|
}
|
|
3465
3589
|
else if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
3466
3590
|
resolve(body);
|
|
3467
3591
|
}
|
|
3468
3592
|
else {
|
|
3593
|
+
const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
|
|
3469
3594
|
reject(errString);
|
|
3470
3595
|
}
|
|
3471
3596
|
}
|
|
@@ -3537,14 +3662,15 @@ class AdminApi {
|
|
|
3537
3662
|
}
|
|
3538
3663
|
else {
|
|
3539
3664
|
body = models_1.ObjectSerializer.deserialize(body, "AdminGetReportResponse");
|
|
3540
|
-
const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
|
|
3541
3665
|
if (typeof body.success === 'boolean' && !body.success) {
|
|
3666
|
+
const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
|
|
3542
3667
|
reject(new Error(body.error || errString));
|
|
3543
3668
|
}
|
|
3544
3669
|
else if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
3545
3670
|
resolve(body);
|
|
3546
3671
|
}
|
|
3547
3672
|
else {
|
|
3673
|
+
const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
|
|
3548
3674
|
reject(errString);
|
|
3549
3675
|
}
|
|
3550
3676
|
}
|
|
@@ -3618,14 +3744,15 @@ class AdminApi {
|
|
|
3618
3744
|
}
|
|
3619
3745
|
else {
|
|
3620
3746
|
body = models_1.ObjectSerializer.deserialize(body, "AdminGetReportsResponse");
|
|
3621
|
-
const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
|
|
3622
3747
|
if (typeof body.success === 'boolean' && !body.success) {
|
|
3748
|
+
const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
|
|
3623
3749
|
reject(new Error(body.error || errString));
|
|
3624
3750
|
}
|
|
3625
3751
|
else if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
3626
3752
|
resolve(body);
|
|
3627
3753
|
}
|
|
3628
3754
|
else {
|
|
3755
|
+
const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
|
|
3629
3756
|
reject(errString);
|
|
3630
3757
|
}
|
|
3631
3758
|
}
|
|
@@ -3713,14 +3840,15 @@ class AdminApi {
|
|
|
3713
3840
|
}
|
|
3714
3841
|
else {
|
|
3715
3842
|
body = models_1.ObjectSerializer.deserialize(body, "AdminGetOrganizationsResponse");
|
|
3716
|
-
const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
|
|
3717
3843
|
if (typeof body.success === 'boolean' && !body.success) {
|
|
3844
|
+
const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
|
|
3718
3845
|
reject(new Error(body.error || errString));
|
|
3719
3846
|
}
|
|
3720
3847
|
else if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
3721
3848
|
resolve(body);
|
|
3722
3849
|
}
|
|
3723
3850
|
else {
|
|
3851
|
+
const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
|
|
3724
3852
|
reject(errString);
|
|
3725
3853
|
}
|
|
3726
3854
|
}
|
|
@@ -3785,15 +3913,16 @@ class AdminApi {
|
|
|
3785
3913
|
reject(error);
|
|
3786
3914
|
}
|
|
3787
3915
|
else {
|
|
3788
|
-
body = models_1.ObjectSerializer.deserialize(body, "
|
|
3789
|
-
const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
|
|
3916
|
+
body = models_1.ObjectSerializer.deserialize(body, "AdminProjectInfoResponse");
|
|
3790
3917
|
if (typeof body.success === 'boolean' && !body.success) {
|
|
3918
|
+
const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
|
|
3791
3919
|
reject(new Error(body.error || errString));
|
|
3792
3920
|
}
|
|
3793
3921
|
else if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
3794
3922
|
resolve(body);
|
|
3795
3923
|
}
|
|
3796
3924
|
else {
|
|
3925
|
+
const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
|
|
3797
3926
|
reject(errString);
|
|
3798
3927
|
}
|
|
3799
3928
|
}
|
|
@@ -3867,14 +3996,15 @@ class AdminApi {
|
|
|
3867
3996
|
}
|
|
3868
3997
|
else {
|
|
3869
3998
|
body = models_1.ObjectSerializer.deserialize(body, "ListJobsResponse");
|
|
3870
|
-
const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
|
|
3871
3999
|
if (typeof body.success === 'boolean' && !body.success) {
|
|
4000
|
+
const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
|
|
3872
4001
|
reject(new Error(body.error || errString));
|
|
3873
4002
|
}
|
|
3874
4003
|
else if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
3875
4004
|
resolve(body);
|
|
3876
4005
|
}
|
|
3877
4006
|
else {
|
|
4007
|
+
const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
|
|
3878
4008
|
reject(errString);
|
|
3879
4009
|
}
|
|
3880
4010
|
}
|
|
@@ -3958,14 +4088,15 @@ class AdminApi {
|
|
|
3958
4088
|
}
|
|
3959
4089
|
else {
|
|
3960
4090
|
body = models_1.ObjectSerializer.deserialize(body, "AdminListProjectsResponse");
|
|
3961
|
-
const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
|
|
3962
4091
|
if (typeof body.success === 'boolean' && !body.success) {
|
|
4092
|
+
const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
|
|
3963
4093
|
reject(new Error(body.error || errString));
|
|
3964
4094
|
}
|
|
3965
4095
|
else if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
3966
4096
|
resolve(body);
|
|
3967
4097
|
}
|
|
3968
4098
|
else {
|
|
4099
|
+
const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
|
|
3969
4100
|
reject(errString);
|
|
3970
4101
|
}
|
|
3971
4102
|
}
|
|
@@ -4031,14 +4162,15 @@ class AdminApi {
|
|
|
4031
4162
|
}
|
|
4032
4163
|
else {
|
|
4033
4164
|
body = models_1.ObjectSerializer.deserialize(body, "AdminGetSSODomainIdPsResponse");
|
|
4034
|
-
const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
|
|
4035
4165
|
if (typeof body.success === 'boolean' && !body.success) {
|
|
4166
|
+
const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
|
|
4036
4167
|
reject(new Error(body.error || errString));
|
|
4037
4168
|
}
|
|
4038
4169
|
else if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
4039
4170
|
resolve(body);
|
|
4040
4171
|
}
|
|
4041
4172
|
else {
|
|
4173
|
+
const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
|
|
4042
4174
|
reject(errString);
|
|
4043
4175
|
}
|
|
4044
4176
|
}
|
|
@@ -4098,14 +4230,15 @@ class AdminApi {
|
|
|
4098
4230
|
}
|
|
4099
4231
|
else {
|
|
4100
4232
|
body = models_1.ObjectSerializer.deserialize(body, "AdminGetSSOSettingsResponse");
|
|
4101
|
-
const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
|
|
4102
4233
|
if (typeof body.success === 'boolean' && !body.success) {
|
|
4234
|
+
const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
|
|
4103
4235
|
reject(new Error(body.error || errString));
|
|
4104
4236
|
}
|
|
4105
4237
|
else if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
4106
4238
|
resolve(body);
|
|
4107
4239
|
}
|
|
4108
4240
|
else {
|
|
4241
|
+
const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
|
|
4109
4242
|
reject(errString);
|
|
4110
4243
|
}
|
|
4111
4244
|
}
|
|
@@ -4165,14 +4298,195 @@ class AdminApi {
|
|
|
4165
4298
|
}
|
|
4166
4299
|
else {
|
|
4167
4300
|
body = models_1.ObjectSerializer.deserialize(body, "GetStudioConfigResponse");
|
|
4168
|
-
const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
|
|
4169
4301
|
if (typeof body.success === 'boolean' && !body.success) {
|
|
4302
|
+
const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
|
|
4303
|
+
reject(new Error(body.error || errString));
|
|
4304
|
+
}
|
|
4305
|
+
else if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
4306
|
+
resolve(body);
|
|
4307
|
+
}
|
|
4308
|
+
else {
|
|
4309
|
+
const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
|
|
4310
|
+
reject(errString);
|
|
4311
|
+
}
|
|
4312
|
+
}
|
|
4313
|
+
});
|
|
4314
|
+
});
|
|
4315
|
+
});
|
|
4316
|
+
}
|
|
4317
|
+
/**
|
|
4318
|
+
* Retrieves a list of all organizations, projects and users that have been moved to the trash bin and are awaiting permanent deletion. The trash bin system works as follows: 1. When entities are deleted with `fullDelete=true`: - They are moved to the trash bin - A 30-day grace period begins - Data remains recoverable during this period 2. During the grace period: - Entities are hidden from normal operations - Administrators can monitor deletion progress - Data can be recovered if needed - Storage costs continue to accrue 3. After 30 days: - Entities are permanently deleted - All associated data is removed - The deletion becomes irreversible
|
|
4319
|
+
* @summary Get the entities in the trashbin
|
|
4320
|
+
* @param sort Fields and order to sort query by
|
|
4321
|
+
* @param filters
|
|
4322
|
+
* @param limit Maximum number of results
|
|
4323
|
+
* @param offset Offset in results, can be used in conjunction with LimitResultsParameter to implement paging.
|
|
4324
|
+
* @param search Search query
|
|
4325
|
+
*/
|
|
4326
|
+
async adminGetTrashbin(queryParams, options = { headers: {} }) {
|
|
4327
|
+
const localVarPath = this.basePath + '/api/admin/trashbin';
|
|
4328
|
+
let localVarQueryParameters = {};
|
|
4329
|
+
let localVarHeaderParams = Object.assign({
|
|
4330
|
+
'User-Agent': 'edgeimpulse-api nodejs'
|
|
4331
|
+
}, this.defaultHeaders);
|
|
4332
|
+
const produces = ['application/json'];
|
|
4333
|
+
// give precedence to 'application/json'
|
|
4334
|
+
if (produces.indexOf('application/json') >= 0) {
|
|
4335
|
+
localVarHeaderParams.Accept = 'application/json';
|
|
4336
|
+
}
|
|
4337
|
+
else {
|
|
4338
|
+
localVarHeaderParams.Accept = produces.join(',');
|
|
4339
|
+
}
|
|
4340
|
+
let localVarFormParams = {};
|
|
4341
|
+
if ((queryParams === null || queryParams === void 0 ? void 0 : queryParams.sort) !== undefined) {
|
|
4342
|
+
localVarQueryParameters['sort'] = models_1.ObjectSerializer.serialize(queryParams.sort, "string");
|
|
4343
|
+
}
|
|
4344
|
+
if ((queryParams === null || queryParams === void 0 ? void 0 : queryParams.filters) !== undefined) {
|
|
4345
|
+
localVarQueryParameters['filters'] = models_1.ObjectSerializer.serialize(queryParams.filters, "string");
|
|
4346
|
+
}
|
|
4347
|
+
if ((queryParams === null || queryParams === void 0 ? void 0 : queryParams.limit) !== undefined) {
|
|
4348
|
+
localVarQueryParameters['limit'] = models_1.ObjectSerializer.serialize(queryParams.limit, "number");
|
|
4349
|
+
}
|
|
4350
|
+
if ((queryParams === null || queryParams === void 0 ? void 0 : queryParams.offset) !== undefined) {
|
|
4351
|
+
localVarQueryParameters['offset'] = models_1.ObjectSerializer.serialize(queryParams.offset, "number");
|
|
4352
|
+
}
|
|
4353
|
+
if ((queryParams === null || queryParams === void 0 ? void 0 : queryParams.search) !== undefined) {
|
|
4354
|
+
localVarQueryParameters['search'] = models_1.ObjectSerializer.serialize(queryParams.search, "string");
|
|
4355
|
+
}
|
|
4356
|
+
Object.assign(localVarHeaderParams, options.headers);
|
|
4357
|
+
Object.assign(localVarHeaderParams, this.opts.extraHeaders);
|
|
4358
|
+
let localVarUseFormData = false;
|
|
4359
|
+
let localVarRequestOptions = {
|
|
4360
|
+
method: 'GET',
|
|
4361
|
+
qs: localVarQueryParameters,
|
|
4362
|
+
headers: localVarHeaderParams,
|
|
4363
|
+
uri: localVarPath,
|
|
4364
|
+
useQuerystring: this._useQuerystring,
|
|
4365
|
+
agentOptions: { keepAlive: false },
|
|
4366
|
+
json: true,
|
|
4367
|
+
};
|
|
4368
|
+
let authenticationPromise = Promise.resolve();
|
|
4369
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.ApiKeyAuthentication.applyToRequest(localVarRequestOptions));
|
|
4370
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.JWTAuthentication.applyToRequest(localVarRequestOptions));
|
|
4371
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.JWTHttpHeaderAuthentication.applyToRequest(localVarRequestOptions));
|
|
4372
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
|
|
4373
|
+
return authenticationPromise.then(() => {
|
|
4374
|
+
if (Object.keys(localVarFormParams).length) {
|
|
4375
|
+
if (localVarUseFormData) {
|
|
4376
|
+
localVarRequestOptions.formData = localVarFormParams;
|
|
4377
|
+
}
|
|
4378
|
+
else {
|
|
4379
|
+
localVarRequestOptions.form = localVarFormParams;
|
|
4380
|
+
}
|
|
4381
|
+
}
|
|
4382
|
+
return new Promise((resolve, reject) => {
|
|
4383
|
+
localVarRequest(localVarRequestOptions, (error, response, body) => {
|
|
4384
|
+
if (error) {
|
|
4385
|
+
reject(error);
|
|
4386
|
+
}
|
|
4387
|
+
else {
|
|
4388
|
+
body = models_1.ObjectSerializer.deserialize(body, "AdminGetTrashBinResponse");
|
|
4389
|
+
if (typeof body.success === 'boolean' && !body.success) {
|
|
4390
|
+
const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
|
|
4391
|
+
reject(new Error(body.error || errString));
|
|
4392
|
+
}
|
|
4393
|
+
else if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
4394
|
+
resolve(body);
|
|
4395
|
+
}
|
|
4396
|
+
else {
|
|
4397
|
+
const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
|
|
4398
|
+
reject(errString);
|
|
4399
|
+
}
|
|
4400
|
+
}
|
|
4401
|
+
});
|
|
4402
|
+
});
|
|
4403
|
+
});
|
|
4404
|
+
}
|
|
4405
|
+
/**
|
|
4406
|
+
* Admin-only API to retrieve a paginated list of trash bin related jobs. Jobs can be filtered by job key The response is paginated and can be controlled using: - limit: Maximum number of jobs to return - offset: Number of jobs to skip Results are ordered by creation date (newest first), or custom sort. Note: This endpoint requires admin:jobs:read permission.
|
|
4407
|
+
* @summary Get a list of trash bin related jobs
|
|
4408
|
+
* @param startDate Start date
|
|
4409
|
+
* @param endDate End date
|
|
4410
|
+
* @param limit Maximum number of results
|
|
4411
|
+
* @param offset Offset in results, can be used in conjunction with LimitResultsParameter to implement paging.
|
|
4412
|
+
* @param sort Fields and order to sort query by
|
|
4413
|
+
* @param key Job key to filter on
|
|
4414
|
+
*/
|
|
4415
|
+
async adminGetTrashbinJobs(queryParams, options = { headers: {} }) {
|
|
4416
|
+
const localVarPath = this.basePath + '/api/admin/trashbin/jobs';
|
|
4417
|
+
let localVarQueryParameters = {};
|
|
4418
|
+
let localVarHeaderParams = Object.assign({
|
|
4419
|
+
'User-Agent': 'edgeimpulse-api nodejs'
|
|
4420
|
+
}, this.defaultHeaders);
|
|
4421
|
+
const produces = ['application/json'];
|
|
4422
|
+
// give precedence to 'application/json'
|
|
4423
|
+
if (produces.indexOf('application/json') >= 0) {
|
|
4424
|
+
localVarHeaderParams.Accept = 'application/json';
|
|
4425
|
+
}
|
|
4426
|
+
else {
|
|
4427
|
+
localVarHeaderParams.Accept = produces.join(',');
|
|
4428
|
+
}
|
|
4429
|
+
let localVarFormParams = {};
|
|
4430
|
+
if ((queryParams === null || queryParams === void 0 ? void 0 : queryParams.startDate) !== undefined) {
|
|
4431
|
+
localVarQueryParameters['startDate'] = models_1.ObjectSerializer.serialize(queryParams.startDate, "Date");
|
|
4432
|
+
}
|
|
4433
|
+
if ((queryParams === null || queryParams === void 0 ? void 0 : queryParams.endDate) !== undefined) {
|
|
4434
|
+
localVarQueryParameters['endDate'] = models_1.ObjectSerializer.serialize(queryParams.endDate, "Date");
|
|
4435
|
+
}
|
|
4436
|
+
if ((queryParams === null || queryParams === void 0 ? void 0 : queryParams.limit) !== undefined) {
|
|
4437
|
+
localVarQueryParameters['limit'] = models_1.ObjectSerializer.serialize(queryParams.limit, "number");
|
|
4438
|
+
}
|
|
4439
|
+
if ((queryParams === null || queryParams === void 0 ? void 0 : queryParams.offset) !== undefined) {
|
|
4440
|
+
localVarQueryParameters['offset'] = models_1.ObjectSerializer.serialize(queryParams.offset, "number");
|
|
4441
|
+
}
|
|
4442
|
+
if ((queryParams === null || queryParams === void 0 ? void 0 : queryParams.sort) !== undefined) {
|
|
4443
|
+
localVarQueryParameters['sort'] = models_1.ObjectSerializer.serialize(queryParams.sort, "string");
|
|
4444
|
+
}
|
|
4445
|
+
if ((queryParams === null || queryParams === void 0 ? void 0 : queryParams.key) !== undefined) {
|
|
4446
|
+
localVarQueryParameters['key'] = models_1.ObjectSerializer.serialize(queryParams.key, "string");
|
|
4447
|
+
}
|
|
4448
|
+
Object.assign(localVarHeaderParams, options.headers);
|
|
4449
|
+
Object.assign(localVarHeaderParams, this.opts.extraHeaders);
|
|
4450
|
+
let localVarUseFormData = false;
|
|
4451
|
+
let localVarRequestOptions = {
|
|
4452
|
+
method: 'GET',
|
|
4453
|
+
qs: localVarQueryParameters,
|
|
4454
|
+
headers: localVarHeaderParams,
|
|
4455
|
+
uri: localVarPath,
|
|
4456
|
+
useQuerystring: this._useQuerystring,
|
|
4457
|
+
agentOptions: { keepAlive: false },
|
|
4458
|
+
json: true,
|
|
4459
|
+
};
|
|
4460
|
+
let authenticationPromise = Promise.resolve();
|
|
4461
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.ApiKeyAuthentication.applyToRequest(localVarRequestOptions));
|
|
4462
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.JWTAuthentication.applyToRequest(localVarRequestOptions));
|
|
4463
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.JWTHttpHeaderAuthentication.applyToRequest(localVarRequestOptions));
|
|
4464
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
|
|
4465
|
+
return authenticationPromise.then(() => {
|
|
4466
|
+
if (Object.keys(localVarFormParams).length) {
|
|
4467
|
+
if (localVarUseFormData) {
|
|
4468
|
+
localVarRequestOptions.formData = localVarFormParams;
|
|
4469
|
+
}
|
|
4470
|
+
else {
|
|
4471
|
+
localVarRequestOptions.form = localVarFormParams;
|
|
4472
|
+
}
|
|
4473
|
+
}
|
|
4474
|
+
return new Promise((resolve, reject) => {
|
|
4475
|
+
localVarRequest(localVarRequestOptions, (error, response, body) => {
|
|
4476
|
+
if (error) {
|
|
4477
|
+
reject(error);
|
|
4478
|
+
}
|
|
4479
|
+
else {
|
|
4480
|
+
body = models_1.ObjectSerializer.deserialize(body, "ListJobsResponse");
|
|
4481
|
+
if (typeof body.success === 'boolean' && !body.success) {
|
|
4482
|
+
const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
|
|
4170
4483
|
reject(new Error(body.error || errString));
|
|
4171
4484
|
}
|
|
4172
4485
|
else if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
4173
4486
|
resolve(body);
|
|
4174
4487
|
}
|
|
4175
4488
|
else {
|
|
4489
|
+
const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
|
|
4176
4490
|
reject(errString);
|
|
4177
4491
|
}
|
|
4178
4492
|
}
|
|
@@ -4238,14 +4552,15 @@ class AdminApi {
|
|
|
4238
4552
|
}
|
|
4239
4553
|
else {
|
|
4240
4554
|
body = models_1.ObjectSerializer.deserialize(body, "AdminGetTrialResponse");
|
|
4241
|
-
const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
|
|
4242
4555
|
if (typeof body.success === 'boolean' && !body.success) {
|
|
4556
|
+
const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
|
|
4243
4557
|
reject(new Error(body.error || errString));
|
|
4244
4558
|
}
|
|
4245
4559
|
else if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
4246
4560
|
resolve(body);
|
|
4247
4561
|
}
|
|
4248
4562
|
else {
|
|
4563
|
+
const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
|
|
4249
4564
|
reject(errString);
|
|
4250
4565
|
}
|
|
4251
4566
|
}
|
|
@@ -4311,14 +4626,15 @@ class AdminApi {
|
|
|
4311
4626
|
}
|
|
4312
4627
|
else {
|
|
4313
4628
|
body = models_1.ObjectSerializer.deserialize(body, "AdminGetUserResponse");
|
|
4314
|
-
const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
|
|
4315
4629
|
if (typeof body.success === 'boolean' && !body.success) {
|
|
4630
|
+
const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
|
|
4316
4631
|
reject(new Error(body.error || errString));
|
|
4317
4632
|
}
|
|
4318
4633
|
else if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
4319
4634
|
resolve(body);
|
|
4320
4635
|
}
|
|
4321
4636
|
else {
|
|
4637
|
+
const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
|
|
4322
4638
|
reject(errString);
|
|
4323
4639
|
}
|
|
4324
4640
|
}
|
|
@@ -4392,14 +4708,15 @@ class AdminApi {
|
|
|
4392
4708
|
}
|
|
4393
4709
|
else {
|
|
4394
4710
|
body = models_1.ObjectSerializer.deserialize(body, "ListJobsResponse");
|
|
4395
|
-
const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
|
|
4396
4711
|
if (typeof body.success === 'boolean' && !body.success) {
|
|
4712
|
+
const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
|
|
4397
4713
|
reject(new Error(body.error || errString));
|
|
4398
4714
|
}
|
|
4399
4715
|
else if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
4400
4716
|
resolve(body);
|
|
4401
4717
|
}
|
|
4402
4718
|
else {
|
|
4719
|
+
const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
|
|
4403
4720
|
reject(errString);
|
|
4404
4721
|
}
|
|
4405
4722
|
}
|
|
@@ -4465,14 +4782,15 @@ class AdminApi {
|
|
|
4465
4782
|
}
|
|
4466
4783
|
else {
|
|
4467
4784
|
body = models_1.ObjectSerializer.deserialize(body, "AdminGetUserMetricsResponse");
|
|
4468
|
-
const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
|
|
4469
4785
|
if (typeof body.success === 'boolean' && !body.success) {
|
|
4786
|
+
const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
|
|
4470
4787
|
reject(new Error(body.error || errString));
|
|
4471
4788
|
}
|
|
4472
4789
|
else if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
4473
4790
|
resolve(body);
|
|
4474
4791
|
}
|
|
4475
4792
|
else {
|
|
4793
|
+
const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
|
|
4476
4794
|
reject(errString);
|
|
4477
4795
|
}
|
|
4478
4796
|
}
|
|
@@ -4564,14 +4882,729 @@ class AdminApi {
|
|
|
4564
4882
|
}
|
|
4565
4883
|
else {
|
|
4566
4884
|
body = models_1.ObjectSerializer.deserialize(body, "AdminGetUsersResponse");
|
|
4567
|
-
const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
|
|
4568
4885
|
if (typeof body.success === 'boolean' && !body.success) {
|
|
4886
|
+
const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
|
|
4887
|
+
reject(new Error(body.error || errString));
|
|
4888
|
+
}
|
|
4889
|
+
else if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
4890
|
+
resolve(body);
|
|
4891
|
+
}
|
|
4892
|
+
else {
|
|
4893
|
+
const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
|
|
4894
|
+
reject(errString);
|
|
4895
|
+
}
|
|
4896
|
+
}
|
|
4897
|
+
});
|
|
4898
|
+
});
|
|
4899
|
+
});
|
|
4900
|
+
}
|
|
4901
|
+
/**
|
|
4902
|
+
* List files in the trashbin FSx for a given organization.
|
|
4903
|
+
* @summary List organization FSx files in the trash bin
|
|
4904
|
+
* @param organizationId Organization ID
|
|
4905
|
+
*/
|
|
4906
|
+
async adminListTrashbinOrganizationFSxFiles(organizationId, options = { headers: {} }) {
|
|
4907
|
+
const localVarPath = this.basePath + '/api/admin/trashbin/organizations/{organizationId}/fsx'
|
|
4908
|
+
.replace('{' + 'organizationId' + '}', encodeURIComponent(String(organizationId)));
|
|
4909
|
+
let localVarQueryParameters = {};
|
|
4910
|
+
let localVarHeaderParams = Object.assign({
|
|
4911
|
+
'User-Agent': 'edgeimpulse-api nodejs'
|
|
4912
|
+
}, this.defaultHeaders);
|
|
4913
|
+
const produces = ['application/json'];
|
|
4914
|
+
// give precedence to 'application/json'
|
|
4915
|
+
if (produces.indexOf('application/json') >= 0) {
|
|
4916
|
+
localVarHeaderParams.Accept = 'application/json';
|
|
4917
|
+
}
|
|
4918
|
+
else {
|
|
4919
|
+
localVarHeaderParams.Accept = produces.join(',');
|
|
4920
|
+
}
|
|
4921
|
+
let localVarFormParams = {};
|
|
4922
|
+
// verify required parameter 'organizationId' is not null or undefined
|
|
4923
|
+
if (organizationId === null || organizationId === undefined) {
|
|
4924
|
+
throw new Error('Required parameter organizationId was null or undefined when calling adminListTrashbinOrganizationFSxFiles.');
|
|
4925
|
+
}
|
|
4926
|
+
Object.assign(localVarHeaderParams, options.headers);
|
|
4927
|
+
Object.assign(localVarHeaderParams, this.opts.extraHeaders);
|
|
4928
|
+
let localVarUseFormData = false;
|
|
4929
|
+
let localVarRequestOptions = {
|
|
4930
|
+
method: 'GET',
|
|
4931
|
+
qs: localVarQueryParameters,
|
|
4932
|
+
headers: localVarHeaderParams,
|
|
4933
|
+
uri: localVarPath,
|
|
4934
|
+
useQuerystring: this._useQuerystring,
|
|
4935
|
+
agentOptions: { keepAlive: false },
|
|
4936
|
+
json: true,
|
|
4937
|
+
};
|
|
4938
|
+
let authenticationPromise = Promise.resolve();
|
|
4939
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.ApiKeyAuthentication.applyToRequest(localVarRequestOptions));
|
|
4940
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.JWTAuthentication.applyToRequest(localVarRequestOptions));
|
|
4941
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.JWTHttpHeaderAuthentication.applyToRequest(localVarRequestOptions));
|
|
4942
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
|
|
4943
|
+
return authenticationPromise.then(() => {
|
|
4944
|
+
if (Object.keys(localVarFormParams).length) {
|
|
4945
|
+
if (localVarUseFormData) {
|
|
4946
|
+
localVarRequestOptions.formData = localVarFormParams;
|
|
4947
|
+
}
|
|
4948
|
+
else {
|
|
4949
|
+
localVarRequestOptions.form = localVarFormParams;
|
|
4950
|
+
}
|
|
4951
|
+
}
|
|
4952
|
+
return new Promise((resolve, reject) => {
|
|
4953
|
+
localVarRequest(localVarRequestOptions, (error, response, body) => {
|
|
4954
|
+
if (error) {
|
|
4955
|
+
reject(error);
|
|
4956
|
+
}
|
|
4957
|
+
else {
|
|
4958
|
+
body = models_1.ObjectSerializer.deserialize(body, "ListPortalFilesInFolderResponse");
|
|
4959
|
+
if (typeof body.success === 'boolean' && !body.success) {
|
|
4960
|
+
const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
|
|
4961
|
+
reject(new Error(body.error || errString));
|
|
4962
|
+
}
|
|
4963
|
+
else if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
4964
|
+
resolve(body);
|
|
4965
|
+
}
|
|
4966
|
+
else {
|
|
4967
|
+
const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
|
|
4968
|
+
reject(errString);
|
|
4969
|
+
}
|
|
4970
|
+
}
|
|
4971
|
+
});
|
|
4972
|
+
});
|
|
4973
|
+
});
|
|
4974
|
+
}
|
|
4975
|
+
/**
|
|
4976
|
+
* Lists files in the trash bin S3 bucket for a given organization. Files are organized by their original source bucket. The `sourceBucket` parameter specifies which bucket to list files from: - ingestion: Lists files from the ingestion bucket - cdn: Lists files from the CDN bucket - user-data: Lists files from the user data bucket Optionally, use the `filePrefix` parameter to filter results to a specific path or filename pattern. The response is paginated and returns up to 1000 files per request. To retrieve additional pages: 1. Make the initial request without a continuation token 2. If more files exist, the response will include a `continuationToken` 3. Make subsequent requests with the provided token to retrieve the next page 4. Repeat until no continuation token is returned Note: Files remain in the trash bin for 30 days before permanent deletion.
|
|
4977
|
+
* @summary List organization S3 files in the trash bin
|
|
4978
|
+
* @param organizationId Organization ID
|
|
4979
|
+
* @param sourceBucket Specifies which source bucket to list deleted files from. Options are: - ingestion: Files uploaded through data ingestion - cdn: Files stored in the CDN - user-data: User-generated or uploaded content
|
|
4980
|
+
* @param prefix Directory path prefix to filter results. For example: - Empty string or \"/\" lists files in the root directory - \"docs/\" lists files in the docs directory - \"docs/images/\" lists files in the docs/images subdirectory
|
|
4981
|
+
* @param continuationToken Token for paginating through results. When a list operation returns more results than can fit in a single response, the response will include a continuationToken. Pass this token in your next request to get the next page of results. If not provided, returns the first page of results. When there are no more results, the response will not include a continuationToken. Note: When backed by S3, this maps directly to S3\'s NextContinuationToken.
|
|
4982
|
+
*/
|
|
4983
|
+
async adminListTrashbinOrganizationS3Files(organizationId, queryParams, options = { headers: {} }) {
|
|
4984
|
+
const localVarPath = this.basePath + '/api/admin/trashbin/organizations/{organizationId}/s3'
|
|
4985
|
+
.replace('{' + 'organizationId' + '}', encodeURIComponent(String(organizationId)));
|
|
4986
|
+
let localVarQueryParameters = {};
|
|
4987
|
+
let localVarHeaderParams = Object.assign({
|
|
4988
|
+
'User-Agent': 'edgeimpulse-api nodejs'
|
|
4989
|
+
}, this.defaultHeaders);
|
|
4990
|
+
const produces = ['application/json'];
|
|
4991
|
+
// give precedence to 'application/json'
|
|
4992
|
+
if (produces.indexOf('application/json') >= 0) {
|
|
4993
|
+
localVarHeaderParams.Accept = 'application/json';
|
|
4994
|
+
}
|
|
4995
|
+
else {
|
|
4996
|
+
localVarHeaderParams.Accept = produces.join(',');
|
|
4997
|
+
}
|
|
4998
|
+
let localVarFormParams = {};
|
|
4999
|
+
// verify required parameter 'organizationId' is not null or undefined
|
|
5000
|
+
if (organizationId === null || organizationId === undefined) {
|
|
5001
|
+
throw new Error('Required parameter organizationId was null or undefined when calling adminListTrashbinOrganizationS3Files.');
|
|
5002
|
+
}
|
|
5003
|
+
// verify required parameter 'sourceBucket' is not null or undefined
|
|
5004
|
+
if (queryParams.sourceBucket === null || queryParams.sourceBucket === undefined) {
|
|
5005
|
+
throw new Error('Required parameter queryParams.sourceBucket was null or undefined when calling adminListTrashbinOrganizationS3Files.');
|
|
5006
|
+
}
|
|
5007
|
+
if ((queryParams === null || queryParams === void 0 ? void 0 : queryParams.prefix) !== undefined) {
|
|
5008
|
+
localVarQueryParameters['prefix'] = models_1.ObjectSerializer.serialize(queryParams.prefix, "string");
|
|
5009
|
+
}
|
|
5010
|
+
if ((queryParams === null || queryParams === void 0 ? void 0 : queryParams.sourceBucket) !== undefined) {
|
|
5011
|
+
localVarQueryParameters['sourceBucket'] = models_1.ObjectSerializer.serialize(queryParams.sourceBucket, "'ingestion' | 'cdn' | 'user-data'");
|
|
5012
|
+
}
|
|
5013
|
+
if ((queryParams === null || queryParams === void 0 ? void 0 : queryParams.continuationToken) !== undefined) {
|
|
5014
|
+
localVarQueryParameters['continuationToken'] = models_1.ObjectSerializer.serialize(queryParams.continuationToken, "string");
|
|
5015
|
+
}
|
|
5016
|
+
Object.assign(localVarHeaderParams, options.headers);
|
|
5017
|
+
Object.assign(localVarHeaderParams, this.opts.extraHeaders);
|
|
5018
|
+
let localVarUseFormData = false;
|
|
5019
|
+
let localVarRequestOptions = {
|
|
5020
|
+
method: 'GET',
|
|
5021
|
+
qs: localVarQueryParameters,
|
|
5022
|
+
headers: localVarHeaderParams,
|
|
5023
|
+
uri: localVarPath,
|
|
5024
|
+
useQuerystring: this._useQuerystring,
|
|
5025
|
+
agentOptions: { keepAlive: false },
|
|
5026
|
+
json: true,
|
|
5027
|
+
};
|
|
5028
|
+
let authenticationPromise = Promise.resolve();
|
|
5029
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.ApiKeyAuthentication.applyToRequest(localVarRequestOptions));
|
|
5030
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.JWTAuthentication.applyToRequest(localVarRequestOptions));
|
|
5031
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.JWTHttpHeaderAuthentication.applyToRequest(localVarRequestOptions));
|
|
5032
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
|
|
5033
|
+
return authenticationPromise.then(() => {
|
|
5034
|
+
if (Object.keys(localVarFormParams).length) {
|
|
5035
|
+
if (localVarUseFormData) {
|
|
5036
|
+
localVarRequestOptions.formData = localVarFormParams;
|
|
5037
|
+
}
|
|
5038
|
+
else {
|
|
5039
|
+
localVarRequestOptions.form = localVarFormParams;
|
|
5040
|
+
}
|
|
5041
|
+
}
|
|
5042
|
+
return new Promise((resolve, reject) => {
|
|
5043
|
+
localVarRequest(localVarRequestOptions, (error, response, body) => {
|
|
5044
|
+
if (error) {
|
|
5045
|
+
reject(error);
|
|
5046
|
+
}
|
|
5047
|
+
else {
|
|
5048
|
+
body = models_1.ObjectSerializer.deserialize(body, "ListPortalFilesInFolderResponse");
|
|
5049
|
+
if (typeof body.success === 'boolean' && !body.success) {
|
|
5050
|
+
const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
|
|
5051
|
+
reject(new Error(body.error || errString));
|
|
5052
|
+
}
|
|
5053
|
+
else if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
5054
|
+
resolve(body);
|
|
5055
|
+
}
|
|
5056
|
+
else {
|
|
5057
|
+
const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
|
|
5058
|
+
reject(errString);
|
|
5059
|
+
}
|
|
5060
|
+
}
|
|
5061
|
+
});
|
|
5062
|
+
});
|
|
5063
|
+
});
|
|
5064
|
+
}
|
|
5065
|
+
/**
|
|
5066
|
+
* List files in the trashbin FSx for a given project.
|
|
5067
|
+
* @summary List project FSx files in the trash bin
|
|
5068
|
+
* @param projectId Project ID
|
|
5069
|
+
*/
|
|
5070
|
+
async adminListTrashbinProjectFSxFiles(projectId, options = { headers: {} }) {
|
|
5071
|
+
const localVarPath = this.basePath + '/api/admin/trashbin/projects/{projectId}/fsx'
|
|
5072
|
+
.replace('{' + 'projectId' + '}', encodeURIComponent(String(projectId)));
|
|
5073
|
+
let localVarQueryParameters = {};
|
|
5074
|
+
let localVarHeaderParams = Object.assign({
|
|
5075
|
+
'User-Agent': 'edgeimpulse-api nodejs'
|
|
5076
|
+
}, this.defaultHeaders);
|
|
5077
|
+
const produces = ['application/json'];
|
|
5078
|
+
// give precedence to 'application/json'
|
|
5079
|
+
if (produces.indexOf('application/json') >= 0) {
|
|
5080
|
+
localVarHeaderParams.Accept = 'application/json';
|
|
5081
|
+
}
|
|
5082
|
+
else {
|
|
5083
|
+
localVarHeaderParams.Accept = produces.join(',');
|
|
5084
|
+
}
|
|
5085
|
+
let localVarFormParams = {};
|
|
5086
|
+
// verify required parameter 'projectId' is not null or undefined
|
|
5087
|
+
if (projectId === null || projectId === undefined) {
|
|
5088
|
+
throw new Error('Required parameter projectId was null or undefined when calling adminListTrashbinProjectFSxFiles.');
|
|
5089
|
+
}
|
|
5090
|
+
Object.assign(localVarHeaderParams, options.headers);
|
|
5091
|
+
Object.assign(localVarHeaderParams, this.opts.extraHeaders);
|
|
5092
|
+
let localVarUseFormData = false;
|
|
5093
|
+
let localVarRequestOptions = {
|
|
5094
|
+
method: 'GET',
|
|
5095
|
+
qs: localVarQueryParameters,
|
|
5096
|
+
headers: localVarHeaderParams,
|
|
5097
|
+
uri: localVarPath,
|
|
5098
|
+
useQuerystring: this._useQuerystring,
|
|
5099
|
+
agentOptions: { keepAlive: false },
|
|
5100
|
+
json: true,
|
|
5101
|
+
};
|
|
5102
|
+
let authenticationPromise = Promise.resolve();
|
|
5103
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.ApiKeyAuthentication.applyToRequest(localVarRequestOptions));
|
|
5104
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.JWTAuthentication.applyToRequest(localVarRequestOptions));
|
|
5105
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.JWTHttpHeaderAuthentication.applyToRequest(localVarRequestOptions));
|
|
5106
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
|
|
5107
|
+
return authenticationPromise.then(() => {
|
|
5108
|
+
if (Object.keys(localVarFormParams).length) {
|
|
5109
|
+
if (localVarUseFormData) {
|
|
5110
|
+
localVarRequestOptions.formData = localVarFormParams;
|
|
5111
|
+
}
|
|
5112
|
+
else {
|
|
5113
|
+
localVarRequestOptions.form = localVarFormParams;
|
|
5114
|
+
}
|
|
5115
|
+
}
|
|
5116
|
+
return new Promise((resolve, reject) => {
|
|
5117
|
+
localVarRequest(localVarRequestOptions, (error, response, body) => {
|
|
5118
|
+
if (error) {
|
|
5119
|
+
reject(error);
|
|
5120
|
+
}
|
|
5121
|
+
else {
|
|
5122
|
+
body = models_1.ObjectSerializer.deserialize(body, "ListPortalFilesInFolderResponse");
|
|
5123
|
+
if (typeof body.success === 'boolean' && !body.success) {
|
|
5124
|
+
const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
|
|
5125
|
+
reject(new Error(body.error || errString));
|
|
5126
|
+
}
|
|
5127
|
+
else if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
5128
|
+
resolve(body);
|
|
5129
|
+
}
|
|
5130
|
+
else {
|
|
5131
|
+
const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
|
|
5132
|
+
reject(errString);
|
|
5133
|
+
}
|
|
5134
|
+
}
|
|
5135
|
+
});
|
|
5136
|
+
});
|
|
5137
|
+
});
|
|
5138
|
+
}
|
|
5139
|
+
/**
|
|
5140
|
+
* Lists files in the trash bin S3 bucket for a given project. Files are organized by their original source bucket. The `sourceBucket` parameter specifies which bucket to list files from: - ingestion: Lists files from the ingestion bucket - cdn: Lists files from the CDN bucket - user-data: Lists files from the user data bucket Optionally, use the `filePrefix` parameter to filter results to a specific path or filename pattern. The response is paginated and returns up to 1000 files per request. To retrieve additional pages: 1. Make the initial request without a continuation token 2. If more files exist, the response will include a `continuationToken` 3. Make subsequent requests with the provided token to retrieve the next page 4. Repeat until no continuation token is returned Note: Files remain in the trash bin for 30 days before permanent deletion.
|
|
5141
|
+
* @summary List project S3 files in the trash bin
|
|
5142
|
+
* @param projectId Project ID
|
|
5143
|
+
* @param sourceBucket Specifies which source bucket to list deleted files from. Options are: - ingestion: Files uploaded through data ingestion - cdn: Files stored in the CDN - user-data: User-generated or uploaded content
|
|
5144
|
+
* @param prefix Directory path prefix to filter results. For example: - Empty string or \"/\" lists files in the root directory - \"docs/\" lists files in the docs directory - \"docs/images/\" lists files in the docs/images subdirectory
|
|
5145
|
+
* @param continuationToken Token for paginating through results. When a list operation returns more results than can fit in a single response, the response will include a continuationToken. Pass this token in your next request to get the next page of results. If not provided, returns the first page of results. When there are no more results, the response will not include a continuationToken. Note: When backed by S3, this maps directly to S3\'s NextContinuationToken.
|
|
5146
|
+
*/
|
|
5147
|
+
async adminListTrashbinProjectS3Files(projectId, queryParams, options = { headers: {} }) {
|
|
5148
|
+
const localVarPath = this.basePath + '/api/admin/trashbin/projects/{projectId}/s3'
|
|
5149
|
+
.replace('{' + 'projectId' + '}', encodeURIComponent(String(projectId)));
|
|
5150
|
+
let localVarQueryParameters = {};
|
|
5151
|
+
let localVarHeaderParams = Object.assign({
|
|
5152
|
+
'User-Agent': 'edgeimpulse-api nodejs'
|
|
5153
|
+
}, this.defaultHeaders);
|
|
5154
|
+
const produces = ['application/json'];
|
|
5155
|
+
// give precedence to 'application/json'
|
|
5156
|
+
if (produces.indexOf('application/json') >= 0) {
|
|
5157
|
+
localVarHeaderParams.Accept = 'application/json';
|
|
5158
|
+
}
|
|
5159
|
+
else {
|
|
5160
|
+
localVarHeaderParams.Accept = produces.join(',');
|
|
5161
|
+
}
|
|
5162
|
+
let localVarFormParams = {};
|
|
5163
|
+
// verify required parameter 'projectId' is not null or undefined
|
|
5164
|
+
if (projectId === null || projectId === undefined) {
|
|
5165
|
+
throw new Error('Required parameter projectId was null or undefined when calling adminListTrashbinProjectS3Files.');
|
|
5166
|
+
}
|
|
5167
|
+
// verify required parameter 'sourceBucket' is not null or undefined
|
|
5168
|
+
if (queryParams.sourceBucket === null || queryParams.sourceBucket === undefined) {
|
|
5169
|
+
throw new Error('Required parameter queryParams.sourceBucket was null or undefined when calling adminListTrashbinProjectS3Files.');
|
|
5170
|
+
}
|
|
5171
|
+
if ((queryParams === null || queryParams === void 0 ? void 0 : queryParams.prefix) !== undefined) {
|
|
5172
|
+
localVarQueryParameters['prefix'] = models_1.ObjectSerializer.serialize(queryParams.prefix, "string");
|
|
5173
|
+
}
|
|
5174
|
+
if ((queryParams === null || queryParams === void 0 ? void 0 : queryParams.sourceBucket) !== undefined) {
|
|
5175
|
+
localVarQueryParameters['sourceBucket'] = models_1.ObjectSerializer.serialize(queryParams.sourceBucket, "'ingestion' | 'cdn' | 'user-data'");
|
|
5176
|
+
}
|
|
5177
|
+
if ((queryParams === null || queryParams === void 0 ? void 0 : queryParams.continuationToken) !== undefined) {
|
|
5178
|
+
localVarQueryParameters['continuationToken'] = models_1.ObjectSerializer.serialize(queryParams.continuationToken, "string");
|
|
5179
|
+
}
|
|
5180
|
+
Object.assign(localVarHeaderParams, options.headers);
|
|
5181
|
+
Object.assign(localVarHeaderParams, this.opts.extraHeaders);
|
|
5182
|
+
let localVarUseFormData = false;
|
|
5183
|
+
let localVarRequestOptions = {
|
|
5184
|
+
method: 'GET',
|
|
5185
|
+
qs: localVarQueryParameters,
|
|
5186
|
+
headers: localVarHeaderParams,
|
|
5187
|
+
uri: localVarPath,
|
|
5188
|
+
useQuerystring: this._useQuerystring,
|
|
5189
|
+
agentOptions: { keepAlive: false },
|
|
5190
|
+
json: true,
|
|
5191
|
+
};
|
|
5192
|
+
let authenticationPromise = Promise.resolve();
|
|
5193
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.ApiKeyAuthentication.applyToRequest(localVarRequestOptions));
|
|
5194
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.JWTAuthentication.applyToRequest(localVarRequestOptions));
|
|
5195
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.JWTHttpHeaderAuthentication.applyToRequest(localVarRequestOptions));
|
|
5196
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
|
|
5197
|
+
return authenticationPromise.then(() => {
|
|
5198
|
+
if (Object.keys(localVarFormParams).length) {
|
|
5199
|
+
if (localVarUseFormData) {
|
|
5200
|
+
localVarRequestOptions.formData = localVarFormParams;
|
|
5201
|
+
}
|
|
5202
|
+
else {
|
|
5203
|
+
localVarRequestOptions.form = localVarFormParams;
|
|
5204
|
+
}
|
|
5205
|
+
}
|
|
5206
|
+
return new Promise((resolve, reject) => {
|
|
5207
|
+
localVarRequest(localVarRequestOptions, (error, response, body) => {
|
|
5208
|
+
if (error) {
|
|
5209
|
+
reject(error);
|
|
5210
|
+
}
|
|
5211
|
+
else {
|
|
5212
|
+
body = models_1.ObjectSerializer.deserialize(body, "ListPortalFilesInFolderResponse");
|
|
5213
|
+
if (typeof body.success === 'boolean' && !body.success) {
|
|
5214
|
+
const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
|
|
5215
|
+
reject(new Error(body.error || errString));
|
|
5216
|
+
}
|
|
5217
|
+
else if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
5218
|
+
resolve(body);
|
|
5219
|
+
}
|
|
5220
|
+
else {
|
|
5221
|
+
const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
|
|
5222
|
+
reject(errString);
|
|
5223
|
+
}
|
|
5224
|
+
}
|
|
5225
|
+
});
|
|
5226
|
+
});
|
|
5227
|
+
});
|
|
5228
|
+
}
|
|
5229
|
+
/**
|
|
5230
|
+
* List files in the trashbin FSx for a given user.
|
|
5231
|
+
* @summary List user FSx files in the trash bin
|
|
5232
|
+
* @param userId User ID
|
|
5233
|
+
*/
|
|
5234
|
+
async adminListTrashbinUserFSxFiles(userId, options = { headers: {} }) {
|
|
5235
|
+
const localVarPath = this.basePath + '/api/admin/trashbin/users/{userId}/fsx'
|
|
5236
|
+
.replace('{' + 'userId' + '}', encodeURIComponent(String(userId)));
|
|
5237
|
+
let localVarQueryParameters = {};
|
|
5238
|
+
let localVarHeaderParams = Object.assign({
|
|
5239
|
+
'User-Agent': 'edgeimpulse-api nodejs'
|
|
5240
|
+
}, this.defaultHeaders);
|
|
5241
|
+
const produces = ['application/json'];
|
|
5242
|
+
// give precedence to 'application/json'
|
|
5243
|
+
if (produces.indexOf('application/json') >= 0) {
|
|
5244
|
+
localVarHeaderParams.Accept = 'application/json';
|
|
5245
|
+
}
|
|
5246
|
+
else {
|
|
5247
|
+
localVarHeaderParams.Accept = produces.join(',');
|
|
5248
|
+
}
|
|
5249
|
+
let localVarFormParams = {};
|
|
5250
|
+
// verify required parameter 'userId' is not null or undefined
|
|
5251
|
+
if (userId === null || userId === undefined) {
|
|
5252
|
+
throw new Error('Required parameter userId was null or undefined when calling adminListTrashbinUserFSxFiles.');
|
|
5253
|
+
}
|
|
5254
|
+
Object.assign(localVarHeaderParams, options.headers);
|
|
5255
|
+
Object.assign(localVarHeaderParams, this.opts.extraHeaders);
|
|
5256
|
+
let localVarUseFormData = false;
|
|
5257
|
+
let localVarRequestOptions = {
|
|
5258
|
+
method: 'GET',
|
|
5259
|
+
qs: localVarQueryParameters,
|
|
5260
|
+
headers: localVarHeaderParams,
|
|
5261
|
+
uri: localVarPath,
|
|
5262
|
+
useQuerystring: this._useQuerystring,
|
|
5263
|
+
agentOptions: { keepAlive: false },
|
|
5264
|
+
json: true,
|
|
5265
|
+
};
|
|
5266
|
+
let authenticationPromise = Promise.resolve();
|
|
5267
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.ApiKeyAuthentication.applyToRequest(localVarRequestOptions));
|
|
5268
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.JWTAuthentication.applyToRequest(localVarRequestOptions));
|
|
5269
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.JWTHttpHeaderAuthentication.applyToRequest(localVarRequestOptions));
|
|
5270
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
|
|
5271
|
+
return authenticationPromise.then(() => {
|
|
5272
|
+
if (Object.keys(localVarFormParams).length) {
|
|
5273
|
+
if (localVarUseFormData) {
|
|
5274
|
+
localVarRequestOptions.formData = localVarFormParams;
|
|
5275
|
+
}
|
|
5276
|
+
else {
|
|
5277
|
+
localVarRequestOptions.form = localVarFormParams;
|
|
5278
|
+
}
|
|
5279
|
+
}
|
|
5280
|
+
return new Promise((resolve, reject) => {
|
|
5281
|
+
localVarRequest(localVarRequestOptions, (error, response, body) => {
|
|
5282
|
+
if (error) {
|
|
5283
|
+
reject(error);
|
|
5284
|
+
}
|
|
5285
|
+
else {
|
|
5286
|
+
body = models_1.ObjectSerializer.deserialize(body, "ListPortalFilesInFolderResponse");
|
|
5287
|
+
if (typeof body.success === 'boolean' && !body.success) {
|
|
5288
|
+
const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
|
|
5289
|
+
reject(new Error(body.error || errString));
|
|
5290
|
+
}
|
|
5291
|
+
else if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
5292
|
+
resolve(body);
|
|
5293
|
+
}
|
|
5294
|
+
else {
|
|
5295
|
+
const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
|
|
5296
|
+
reject(errString);
|
|
5297
|
+
}
|
|
5298
|
+
}
|
|
5299
|
+
});
|
|
5300
|
+
});
|
|
5301
|
+
});
|
|
5302
|
+
}
|
|
5303
|
+
/**
|
|
5304
|
+
* Lists files in the trash bin S3 bucket for a given user. Files are organized by their original source bucket. The `sourceBucket` parameter specifies which bucket to list files from: - ingestion: Lists files from the ingestion bucket - cdn: Lists files from the CDN bucket - user-data: Lists files from the user data bucket Optionally, use the `filePrefix` parameter to filter results to a specific path or filename pattern. The response is paginated and returns up to 1000 files per request. To retrieve additional pages: 1. Make the initial request without a continuation token 2. If more files exist, the response will include a `continuationToken` 3. Make subsequent requests with the provided token to retrieve the next page 4. Repeat until no continuation token is returned Note: Files remain in the trash bin for 30 days before permanent deletion.
|
|
5305
|
+
* @summary List user S3 files in the trash bin
|
|
5306
|
+
* @param userId User ID
|
|
5307
|
+
* @param sourceBucket Specifies which source bucket to list deleted files from. Options are: - ingestion: Files uploaded through data ingestion - cdn: Files stored in the CDN - user-data: User-generated or uploaded content
|
|
5308
|
+
* @param prefix Directory path prefix to filter results. For example: - Empty string or \"/\" lists files in the root directory - \"docs/\" lists files in the docs directory - \"docs/images/\" lists files in the docs/images subdirectory
|
|
5309
|
+
* @param continuationToken Token for paginating through results. When a list operation returns more results than can fit in a single response, the response will include a continuationToken. Pass this token in your next request to get the next page of results. If not provided, returns the first page of results. When there are no more results, the response will not include a continuationToken. Note: When backed by S3, this maps directly to S3\'s NextContinuationToken.
|
|
5310
|
+
*/
|
|
5311
|
+
async adminListTrashbinUserS3Files(userId, queryParams, options = { headers: {} }) {
|
|
5312
|
+
const localVarPath = this.basePath + '/api/admin/trashbin/users/{userId}/s3'
|
|
5313
|
+
.replace('{' + 'userId' + '}', encodeURIComponent(String(userId)));
|
|
5314
|
+
let localVarQueryParameters = {};
|
|
5315
|
+
let localVarHeaderParams = Object.assign({
|
|
5316
|
+
'User-Agent': 'edgeimpulse-api nodejs'
|
|
5317
|
+
}, this.defaultHeaders);
|
|
5318
|
+
const produces = ['application/json'];
|
|
5319
|
+
// give precedence to 'application/json'
|
|
5320
|
+
if (produces.indexOf('application/json') >= 0) {
|
|
5321
|
+
localVarHeaderParams.Accept = 'application/json';
|
|
5322
|
+
}
|
|
5323
|
+
else {
|
|
5324
|
+
localVarHeaderParams.Accept = produces.join(',');
|
|
5325
|
+
}
|
|
5326
|
+
let localVarFormParams = {};
|
|
5327
|
+
// verify required parameter 'userId' is not null or undefined
|
|
5328
|
+
if (userId === null || userId === undefined) {
|
|
5329
|
+
throw new Error('Required parameter userId was null or undefined when calling adminListTrashbinUserS3Files.');
|
|
5330
|
+
}
|
|
5331
|
+
// verify required parameter 'sourceBucket' is not null or undefined
|
|
5332
|
+
if (queryParams.sourceBucket === null || queryParams.sourceBucket === undefined) {
|
|
5333
|
+
throw new Error('Required parameter queryParams.sourceBucket was null or undefined when calling adminListTrashbinUserS3Files.');
|
|
5334
|
+
}
|
|
5335
|
+
if ((queryParams === null || queryParams === void 0 ? void 0 : queryParams.prefix) !== undefined) {
|
|
5336
|
+
localVarQueryParameters['prefix'] = models_1.ObjectSerializer.serialize(queryParams.prefix, "string");
|
|
5337
|
+
}
|
|
5338
|
+
if ((queryParams === null || queryParams === void 0 ? void 0 : queryParams.sourceBucket) !== undefined) {
|
|
5339
|
+
localVarQueryParameters['sourceBucket'] = models_1.ObjectSerializer.serialize(queryParams.sourceBucket, "'ingestion' | 'cdn' | 'user-data'");
|
|
5340
|
+
}
|
|
5341
|
+
if ((queryParams === null || queryParams === void 0 ? void 0 : queryParams.continuationToken) !== undefined) {
|
|
5342
|
+
localVarQueryParameters['continuationToken'] = models_1.ObjectSerializer.serialize(queryParams.continuationToken, "string");
|
|
5343
|
+
}
|
|
5344
|
+
Object.assign(localVarHeaderParams, options.headers);
|
|
5345
|
+
Object.assign(localVarHeaderParams, this.opts.extraHeaders);
|
|
5346
|
+
let localVarUseFormData = false;
|
|
5347
|
+
let localVarRequestOptions = {
|
|
5348
|
+
method: 'GET',
|
|
5349
|
+
qs: localVarQueryParameters,
|
|
5350
|
+
headers: localVarHeaderParams,
|
|
5351
|
+
uri: localVarPath,
|
|
5352
|
+
useQuerystring: this._useQuerystring,
|
|
5353
|
+
agentOptions: { keepAlive: false },
|
|
5354
|
+
json: true,
|
|
5355
|
+
};
|
|
5356
|
+
let authenticationPromise = Promise.resolve();
|
|
5357
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.ApiKeyAuthentication.applyToRequest(localVarRequestOptions));
|
|
5358
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.JWTAuthentication.applyToRequest(localVarRequestOptions));
|
|
5359
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.JWTHttpHeaderAuthentication.applyToRequest(localVarRequestOptions));
|
|
5360
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
|
|
5361
|
+
return authenticationPromise.then(() => {
|
|
5362
|
+
if (Object.keys(localVarFormParams).length) {
|
|
5363
|
+
if (localVarUseFormData) {
|
|
5364
|
+
localVarRequestOptions.formData = localVarFormParams;
|
|
5365
|
+
}
|
|
5366
|
+
else {
|
|
5367
|
+
localVarRequestOptions.form = localVarFormParams;
|
|
5368
|
+
}
|
|
5369
|
+
}
|
|
5370
|
+
return new Promise((resolve, reject) => {
|
|
5371
|
+
localVarRequest(localVarRequestOptions, (error, response, body) => {
|
|
5372
|
+
if (error) {
|
|
5373
|
+
reject(error);
|
|
5374
|
+
}
|
|
5375
|
+
else {
|
|
5376
|
+
body = models_1.ObjectSerializer.deserialize(body, "ListPortalFilesInFolderResponse");
|
|
5377
|
+
if (typeof body.success === 'boolean' && !body.success) {
|
|
5378
|
+
const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
|
|
5379
|
+
reject(new Error(body.error || errString));
|
|
5380
|
+
}
|
|
5381
|
+
else if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
5382
|
+
resolve(body);
|
|
5383
|
+
}
|
|
5384
|
+
else {
|
|
5385
|
+
const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
|
|
5386
|
+
reject(errString);
|
|
5387
|
+
}
|
|
5388
|
+
}
|
|
5389
|
+
});
|
|
5390
|
+
});
|
|
5391
|
+
});
|
|
5392
|
+
}
|
|
5393
|
+
/**
|
|
5394
|
+
* Permanently delete an organization from the trash bin. This is the final step in the deletion process and cannot be undone. The trash bin process works as follows: 1. When an organization is initially deleted with `fullDelete=true`, its data is moved to the trash bin 2. The organization remains in the trash bin for 30 days 3. During this period: - Data can be recovered if needed - The deletion can be cancelled - All files remain in their original structure 4. Using this endpoint will: - Permanently delete all organization data - Remove all files from S3/FSx storage - This action is irreversible Note: Only use this endpoint after the 30-day grace period or when permanent deletion is absolutely necessary.
|
|
5395
|
+
* @summary Permanently delete an organization
|
|
5396
|
+
* @param organizationId Organization ID
|
|
5397
|
+
*/
|
|
5398
|
+
async adminPermanentlyDeleteOrganization(organizationId, options = { headers: {} }) {
|
|
5399
|
+
const localVarPath = this.basePath + '/api/admin/trashbin/organizations/{organizationId}'
|
|
5400
|
+
.replace('{' + 'organizationId' + '}', encodeURIComponent(String(organizationId)));
|
|
5401
|
+
let localVarQueryParameters = {};
|
|
5402
|
+
let localVarHeaderParams = Object.assign({
|
|
5403
|
+
'User-Agent': 'edgeimpulse-api nodejs'
|
|
5404
|
+
}, this.defaultHeaders);
|
|
5405
|
+
const produces = ['application/json'];
|
|
5406
|
+
// give precedence to 'application/json'
|
|
5407
|
+
if (produces.indexOf('application/json') >= 0) {
|
|
5408
|
+
localVarHeaderParams.Accept = 'application/json';
|
|
5409
|
+
}
|
|
5410
|
+
else {
|
|
5411
|
+
localVarHeaderParams.Accept = produces.join(',');
|
|
5412
|
+
}
|
|
5413
|
+
let localVarFormParams = {};
|
|
5414
|
+
// verify required parameter 'organizationId' is not null or undefined
|
|
5415
|
+
if (organizationId === null || organizationId === undefined) {
|
|
5416
|
+
throw new Error('Required parameter organizationId was null or undefined when calling adminPermanentlyDeleteOrganization.');
|
|
5417
|
+
}
|
|
5418
|
+
Object.assign(localVarHeaderParams, options.headers);
|
|
5419
|
+
Object.assign(localVarHeaderParams, this.opts.extraHeaders);
|
|
5420
|
+
let localVarUseFormData = false;
|
|
5421
|
+
let localVarRequestOptions = {
|
|
5422
|
+
method: 'DELETE',
|
|
5423
|
+
qs: localVarQueryParameters,
|
|
5424
|
+
headers: localVarHeaderParams,
|
|
5425
|
+
uri: localVarPath,
|
|
5426
|
+
useQuerystring: this._useQuerystring,
|
|
5427
|
+
agentOptions: { keepAlive: false },
|
|
5428
|
+
json: true,
|
|
5429
|
+
};
|
|
5430
|
+
let authenticationPromise = Promise.resolve();
|
|
5431
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.ApiKeyAuthentication.applyToRequest(localVarRequestOptions));
|
|
5432
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.JWTAuthentication.applyToRequest(localVarRequestOptions));
|
|
5433
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.JWTHttpHeaderAuthentication.applyToRequest(localVarRequestOptions));
|
|
5434
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
|
|
5435
|
+
return authenticationPromise.then(() => {
|
|
5436
|
+
if (Object.keys(localVarFormParams).length) {
|
|
5437
|
+
if (localVarUseFormData) {
|
|
5438
|
+
localVarRequestOptions.formData = localVarFormParams;
|
|
5439
|
+
}
|
|
5440
|
+
else {
|
|
5441
|
+
localVarRequestOptions.form = localVarFormParams;
|
|
5442
|
+
}
|
|
5443
|
+
}
|
|
5444
|
+
return new Promise((resolve, reject) => {
|
|
5445
|
+
localVarRequest(localVarRequestOptions, (error, response, body) => {
|
|
5446
|
+
if (error) {
|
|
5447
|
+
reject(error);
|
|
5448
|
+
}
|
|
5449
|
+
else {
|
|
5450
|
+
body = models_1.ObjectSerializer.deserialize(body, "StartJobResponse");
|
|
5451
|
+
if (typeof body.success === 'boolean' && !body.success) {
|
|
5452
|
+
const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
|
|
5453
|
+
reject(new Error(body.error || errString));
|
|
5454
|
+
}
|
|
5455
|
+
else if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
5456
|
+
resolve(body);
|
|
5457
|
+
}
|
|
5458
|
+
else {
|
|
5459
|
+
const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
|
|
5460
|
+
reject(errString);
|
|
5461
|
+
}
|
|
5462
|
+
}
|
|
5463
|
+
});
|
|
5464
|
+
});
|
|
5465
|
+
});
|
|
5466
|
+
}
|
|
5467
|
+
/**
|
|
5468
|
+
* Permanently delete a project from the trash bin. This is the final step in the deletion process and cannot be undone. The trash bin process works as follows: 1. When a project is initially deleted with `fullDelete=true`, its data is moved to the trash bin 2. The project remains in the trash bin for 30 days 3. During this period: - Data can be recovered if needed - The deletion can be cancelled - All files remain in their original structure 4. Using this endpoint will: - Permanently delete all project data - Remove all files from S3/FSx storage - This action is irreversible Note: Only use this endpoint after the 30-day grace period or when permanent deletion is absolutely necessary.
|
|
5469
|
+
* @summary Permanently delete a project
|
|
5470
|
+
* @param projectId Project ID
|
|
5471
|
+
*/
|
|
5472
|
+
async adminPermanentlyDeleteProject(projectId, options = { headers: {} }) {
|
|
5473
|
+
const localVarPath = this.basePath + '/api/admin/trashbin/projects/{projectId}'
|
|
5474
|
+
.replace('{' + 'projectId' + '}', encodeURIComponent(String(projectId)));
|
|
5475
|
+
let localVarQueryParameters = {};
|
|
5476
|
+
let localVarHeaderParams = Object.assign({
|
|
5477
|
+
'User-Agent': 'edgeimpulse-api nodejs'
|
|
5478
|
+
}, this.defaultHeaders);
|
|
5479
|
+
const produces = ['application/json'];
|
|
5480
|
+
// give precedence to 'application/json'
|
|
5481
|
+
if (produces.indexOf('application/json') >= 0) {
|
|
5482
|
+
localVarHeaderParams.Accept = 'application/json';
|
|
5483
|
+
}
|
|
5484
|
+
else {
|
|
5485
|
+
localVarHeaderParams.Accept = produces.join(',');
|
|
5486
|
+
}
|
|
5487
|
+
let localVarFormParams = {};
|
|
5488
|
+
// verify required parameter 'projectId' is not null or undefined
|
|
5489
|
+
if (projectId === null || projectId === undefined) {
|
|
5490
|
+
throw new Error('Required parameter projectId was null or undefined when calling adminPermanentlyDeleteProject.');
|
|
5491
|
+
}
|
|
5492
|
+
Object.assign(localVarHeaderParams, options.headers);
|
|
5493
|
+
Object.assign(localVarHeaderParams, this.opts.extraHeaders);
|
|
5494
|
+
let localVarUseFormData = false;
|
|
5495
|
+
let localVarRequestOptions = {
|
|
5496
|
+
method: 'DELETE',
|
|
5497
|
+
qs: localVarQueryParameters,
|
|
5498
|
+
headers: localVarHeaderParams,
|
|
5499
|
+
uri: localVarPath,
|
|
5500
|
+
useQuerystring: this._useQuerystring,
|
|
5501
|
+
agentOptions: { keepAlive: false },
|
|
5502
|
+
json: true,
|
|
5503
|
+
};
|
|
5504
|
+
let authenticationPromise = Promise.resolve();
|
|
5505
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.ApiKeyAuthentication.applyToRequest(localVarRequestOptions));
|
|
5506
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.JWTAuthentication.applyToRequest(localVarRequestOptions));
|
|
5507
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.JWTHttpHeaderAuthentication.applyToRequest(localVarRequestOptions));
|
|
5508
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
|
|
5509
|
+
return authenticationPromise.then(() => {
|
|
5510
|
+
if (Object.keys(localVarFormParams).length) {
|
|
5511
|
+
if (localVarUseFormData) {
|
|
5512
|
+
localVarRequestOptions.formData = localVarFormParams;
|
|
5513
|
+
}
|
|
5514
|
+
else {
|
|
5515
|
+
localVarRequestOptions.form = localVarFormParams;
|
|
5516
|
+
}
|
|
5517
|
+
}
|
|
5518
|
+
return new Promise((resolve, reject) => {
|
|
5519
|
+
localVarRequest(localVarRequestOptions, (error, response, body) => {
|
|
5520
|
+
if (error) {
|
|
5521
|
+
reject(error);
|
|
5522
|
+
}
|
|
5523
|
+
else {
|
|
5524
|
+
body = models_1.ObjectSerializer.deserialize(body, "StartJobResponse");
|
|
5525
|
+
if (typeof body.success === 'boolean' && !body.success) {
|
|
5526
|
+
const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
|
|
5527
|
+
reject(new Error(body.error || errString));
|
|
5528
|
+
}
|
|
5529
|
+
else if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
5530
|
+
resolve(body);
|
|
5531
|
+
}
|
|
5532
|
+
else {
|
|
5533
|
+
const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
|
|
5534
|
+
reject(errString);
|
|
5535
|
+
}
|
|
5536
|
+
}
|
|
5537
|
+
});
|
|
5538
|
+
});
|
|
5539
|
+
});
|
|
5540
|
+
}
|
|
5541
|
+
/**
|
|
5542
|
+
* Permanently delete a user from the trash bin. This is the final step in the deletion process and cannot be undone. The trash bin process works as follows: 1. When a user is initially deleted with `fullDelete=true`, their data is moved to the trash bin 2. The user remains in the trash bin for 30 days 3. During this period: - Data can be recovered if needed - The deletion can be cancelled - All files remain in their original structure 4. Using this endpoint will: - Permanently delete all user data - Remove all files from S3/FSx storage - This action is irreversible Note: Only use this endpoint after the 30-day grace period or when permanent deletion is absolutely necessary.
|
|
5543
|
+
* @summary Permanently delete a user
|
|
5544
|
+
* @param userId User ID
|
|
5545
|
+
*/
|
|
5546
|
+
async adminPermanentlyDeleteUser(userId, options = { headers: {} }) {
|
|
5547
|
+
const localVarPath = this.basePath + '/api/admin/trashbin/users/{userId}'
|
|
5548
|
+
.replace('{' + 'userId' + '}', encodeURIComponent(String(userId)));
|
|
5549
|
+
let localVarQueryParameters = {};
|
|
5550
|
+
let localVarHeaderParams = Object.assign({
|
|
5551
|
+
'User-Agent': 'edgeimpulse-api nodejs'
|
|
5552
|
+
}, this.defaultHeaders);
|
|
5553
|
+
const produces = ['application/json'];
|
|
5554
|
+
// give precedence to 'application/json'
|
|
5555
|
+
if (produces.indexOf('application/json') >= 0) {
|
|
5556
|
+
localVarHeaderParams.Accept = 'application/json';
|
|
5557
|
+
}
|
|
5558
|
+
else {
|
|
5559
|
+
localVarHeaderParams.Accept = produces.join(',');
|
|
5560
|
+
}
|
|
5561
|
+
let localVarFormParams = {};
|
|
5562
|
+
// verify required parameter 'userId' is not null or undefined
|
|
5563
|
+
if (userId === null || userId === undefined) {
|
|
5564
|
+
throw new Error('Required parameter userId was null or undefined when calling adminPermanentlyDeleteUser.');
|
|
5565
|
+
}
|
|
5566
|
+
Object.assign(localVarHeaderParams, options.headers);
|
|
5567
|
+
Object.assign(localVarHeaderParams, this.opts.extraHeaders);
|
|
5568
|
+
let localVarUseFormData = false;
|
|
5569
|
+
let localVarRequestOptions = {
|
|
5570
|
+
method: 'DELETE',
|
|
5571
|
+
qs: localVarQueryParameters,
|
|
5572
|
+
headers: localVarHeaderParams,
|
|
5573
|
+
uri: localVarPath,
|
|
5574
|
+
useQuerystring: this._useQuerystring,
|
|
5575
|
+
agentOptions: { keepAlive: false },
|
|
5576
|
+
json: true,
|
|
5577
|
+
};
|
|
5578
|
+
let authenticationPromise = Promise.resolve();
|
|
5579
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.ApiKeyAuthentication.applyToRequest(localVarRequestOptions));
|
|
5580
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.JWTAuthentication.applyToRequest(localVarRequestOptions));
|
|
5581
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.JWTHttpHeaderAuthentication.applyToRequest(localVarRequestOptions));
|
|
5582
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
|
|
5583
|
+
return authenticationPromise.then(() => {
|
|
5584
|
+
if (Object.keys(localVarFormParams).length) {
|
|
5585
|
+
if (localVarUseFormData) {
|
|
5586
|
+
localVarRequestOptions.formData = localVarFormParams;
|
|
5587
|
+
}
|
|
5588
|
+
else {
|
|
5589
|
+
localVarRequestOptions.form = localVarFormParams;
|
|
5590
|
+
}
|
|
5591
|
+
}
|
|
5592
|
+
return new Promise((resolve, reject) => {
|
|
5593
|
+
localVarRequest(localVarRequestOptions, (error, response, body) => {
|
|
5594
|
+
if (error) {
|
|
5595
|
+
reject(error);
|
|
5596
|
+
}
|
|
5597
|
+
else {
|
|
5598
|
+
body = models_1.ObjectSerializer.deserialize(body, "StartJobResponse");
|
|
5599
|
+
if (typeof body.success === 'boolean' && !body.success) {
|
|
5600
|
+
const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
|
|
4569
5601
|
reject(new Error(body.error || errString));
|
|
4570
5602
|
}
|
|
4571
5603
|
else if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
4572
5604
|
resolve(body);
|
|
4573
5605
|
}
|
|
4574
5606
|
else {
|
|
5607
|
+
const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
|
|
4575
5608
|
reject(errString);
|
|
4576
5609
|
}
|
|
4577
5610
|
}
|
|
@@ -4643,14 +5676,15 @@ class AdminApi {
|
|
|
4643
5676
|
}
|
|
4644
5677
|
else {
|
|
4645
5678
|
body = models_1.ObjectSerializer.deserialize(body, "GenericApiResponse");
|
|
4646
|
-
const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
|
|
4647
5679
|
if (typeof body.success === 'boolean' && !body.success) {
|
|
5680
|
+
const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
|
|
4648
5681
|
reject(new Error(body.error || errString));
|
|
4649
5682
|
}
|
|
4650
5683
|
else if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
4651
5684
|
resolve(body);
|
|
4652
5685
|
}
|
|
4653
5686
|
else {
|
|
5687
|
+
const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
|
|
4654
5688
|
reject(errString);
|
|
4655
5689
|
}
|
|
4656
5690
|
}
|
|
@@ -4722,14 +5756,15 @@ class AdminApi {
|
|
|
4722
5756
|
}
|
|
4723
5757
|
else {
|
|
4724
5758
|
body = models_1.ObjectSerializer.deserialize(body, "GenericApiResponse");
|
|
4725
|
-
const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
|
|
4726
5759
|
if (typeof body.success === 'boolean' && !body.success) {
|
|
5760
|
+
const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
|
|
4727
5761
|
reject(new Error(body.error || errString));
|
|
4728
5762
|
}
|
|
4729
5763
|
else if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
4730
5764
|
resolve(body);
|
|
4731
5765
|
}
|
|
4732
5766
|
else {
|
|
5767
|
+
const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
|
|
4733
5768
|
reject(errString);
|
|
4734
5769
|
}
|
|
4735
5770
|
}
|
|
@@ -4795,14 +5830,15 @@ class AdminApi {
|
|
|
4795
5830
|
}
|
|
4796
5831
|
else {
|
|
4797
5832
|
body = models_1.ObjectSerializer.deserialize(body, "GenericApiResponse");
|
|
4798
|
-
const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
|
|
4799
5833
|
if (typeof body.success === 'boolean' && !body.success) {
|
|
5834
|
+
const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
|
|
4800
5835
|
reject(new Error(body.error || errString));
|
|
4801
5836
|
}
|
|
4802
5837
|
else if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
4803
5838
|
resolve(body);
|
|
4804
5839
|
}
|
|
4805
5840
|
else {
|
|
5841
|
+
const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
|
|
4806
5842
|
reject(errString);
|
|
4807
5843
|
}
|
|
4808
5844
|
}
|
|
@@ -4868,14 +5904,15 @@ class AdminApi {
|
|
|
4868
5904
|
}
|
|
4869
5905
|
else {
|
|
4870
5906
|
body = models_1.ObjectSerializer.deserialize(body, "GenericApiResponse");
|
|
4871
|
-
const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
|
|
4872
5907
|
if (typeof body.success === 'boolean' && !body.success) {
|
|
5908
|
+
const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
|
|
4873
5909
|
reject(new Error(body.error || errString));
|
|
4874
5910
|
}
|
|
4875
5911
|
else if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
4876
5912
|
resolve(body);
|
|
4877
5913
|
}
|
|
4878
5914
|
else {
|
|
5915
|
+
const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
|
|
4879
5916
|
reject(errString);
|
|
4880
5917
|
}
|
|
4881
5918
|
}
|
|
@@ -4947,14 +5984,15 @@ class AdminApi {
|
|
|
4947
5984
|
}
|
|
4948
5985
|
else {
|
|
4949
5986
|
body = models_1.ObjectSerializer.deserialize(body, "GenericApiResponse");
|
|
4950
|
-
const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
|
|
4951
5987
|
if (typeof body.success === 'boolean' && !body.success) {
|
|
5988
|
+
const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
|
|
4952
5989
|
reject(new Error(body.error || errString));
|
|
4953
5990
|
}
|
|
4954
5991
|
else if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
4955
5992
|
resolve(body);
|
|
4956
5993
|
}
|
|
4957
5994
|
else {
|
|
5995
|
+
const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
|
|
4958
5996
|
reject(errString);
|
|
4959
5997
|
}
|
|
4960
5998
|
}
|
|
@@ -5026,14 +6064,15 @@ class AdminApi {
|
|
|
5026
6064
|
}
|
|
5027
6065
|
else {
|
|
5028
6066
|
body = models_1.ObjectSerializer.deserialize(body, "GenericApiResponse");
|
|
5029
|
-
const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
|
|
5030
6067
|
if (typeof body.success === 'boolean' && !body.success) {
|
|
6068
|
+
const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
|
|
5031
6069
|
reject(new Error(body.error || errString));
|
|
5032
6070
|
}
|
|
5033
6071
|
else if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
5034
6072
|
resolve(body);
|
|
5035
6073
|
}
|
|
5036
6074
|
else {
|
|
6075
|
+
const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
|
|
5037
6076
|
reject(errString);
|
|
5038
6077
|
}
|
|
5039
6078
|
}
|
|
@@ -5105,14 +6144,15 @@ class AdminApi {
|
|
|
5105
6144
|
}
|
|
5106
6145
|
else {
|
|
5107
6146
|
body = models_1.ObjectSerializer.deserialize(body, "GenericApiResponse");
|
|
5108
|
-
const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
|
|
5109
6147
|
if (typeof body.success === 'boolean' && !body.success) {
|
|
6148
|
+
const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
|
|
5110
6149
|
reject(new Error(body.error || errString));
|
|
5111
6150
|
}
|
|
5112
6151
|
else if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
5113
6152
|
resolve(body);
|
|
5114
6153
|
}
|
|
5115
6154
|
else {
|
|
6155
|
+
const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
|
|
5116
6156
|
reject(errString);
|
|
5117
6157
|
}
|
|
5118
6158
|
}
|
|
@@ -5190,14 +6230,15 @@ class AdminApi {
|
|
|
5190
6230
|
}
|
|
5191
6231
|
else {
|
|
5192
6232
|
body = models_1.ObjectSerializer.deserialize(body, "GenericApiResponse");
|
|
5193
|
-
const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
|
|
5194
6233
|
if (typeof body.success === 'boolean' && !body.success) {
|
|
6234
|
+
const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
|
|
5195
6235
|
reject(new Error(body.error || errString));
|
|
5196
6236
|
}
|
|
5197
6237
|
else if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
5198
6238
|
resolve(body);
|
|
5199
6239
|
}
|
|
5200
6240
|
else {
|
|
6241
|
+
const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
|
|
5201
6242
|
reject(errString);
|
|
5202
6243
|
}
|
|
5203
6244
|
}
|
|
@@ -5269,14 +6310,15 @@ class AdminApi {
|
|
|
5269
6310
|
}
|
|
5270
6311
|
else {
|
|
5271
6312
|
body = models_1.ObjectSerializer.deserialize(body, "GenericApiResponse");
|
|
5272
|
-
const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
|
|
5273
6313
|
if (typeof body.success === 'boolean' && !body.success) {
|
|
6314
|
+
const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
|
|
5274
6315
|
reject(new Error(body.error || errString));
|
|
5275
6316
|
}
|
|
5276
6317
|
else if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
5277
6318
|
resolve(body);
|
|
5278
6319
|
}
|
|
5279
6320
|
else {
|
|
6321
|
+
const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
|
|
5280
6322
|
reject(errString);
|
|
5281
6323
|
}
|
|
5282
6324
|
}
|
|
@@ -5348,14 +6390,15 @@ class AdminApi {
|
|
|
5348
6390
|
}
|
|
5349
6391
|
else {
|
|
5350
6392
|
body = models_1.ObjectSerializer.deserialize(body, "GenericApiResponse");
|
|
5351
|
-
const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
|
|
5352
6393
|
if (typeof body.success === 'boolean' && !body.success) {
|
|
6394
|
+
const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
|
|
5353
6395
|
reject(new Error(body.error || errString));
|
|
5354
6396
|
}
|
|
5355
6397
|
else if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
5356
6398
|
resolve(body);
|
|
5357
6399
|
}
|
|
5358
6400
|
else {
|
|
6401
|
+
const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
|
|
5359
6402
|
reject(errString);
|
|
5360
6403
|
}
|
|
5361
6404
|
}
|
|
@@ -5427,14 +6470,15 @@ class AdminApi {
|
|
|
5427
6470
|
}
|
|
5428
6471
|
else {
|
|
5429
6472
|
body = models_1.ObjectSerializer.deserialize(body, "GenericApiResponse");
|
|
5430
|
-
const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
|
|
5431
6473
|
if (typeof body.success === 'boolean' && !body.success) {
|
|
6474
|
+
const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
|
|
5432
6475
|
reject(new Error(body.error || errString));
|
|
5433
6476
|
}
|
|
5434
6477
|
else if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
5435
6478
|
resolve(body);
|
|
5436
6479
|
}
|
|
5437
6480
|
else {
|
|
6481
|
+
const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
|
|
5438
6482
|
reject(errString);
|
|
5439
6483
|
}
|
|
5440
6484
|
}
|
|
@@ -5506,14 +6550,15 @@ class AdminApi {
|
|
|
5506
6550
|
}
|
|
5507
6551
|
else {
|
|
5508
6552
|
body = models_1.ObjectSerializer.deserialize(body, "GenericApiResponse");
|
|
5509
|
-
const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
|
|
5510
6553
|
if (typeof body.success === 'boolean' && !body.success) {
|
|
6554
|
+
const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
|
|
5511
6555
|
reject(new Error(body.error || errString));
|
|
5512
6556
|
}
|
|
5513
6557
|
else if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
5514
6558
|
resolve(body);
|
|
5515
6559
|
}
|
|
5516
6560
|
else {
|
|
6561
|
+
const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
|
|
5517
6562
|
reject(errString);
|
|
5518
6563
|
}
|
|
5519
6564
|
}
|
|
@@ -5579,14 +6624,15 @@ class AdminApi {
|
|
|
5579
6624
|
}
|
|
5580
6625
|
else {
|
|
5581
6626
|
body = models_1.ObjectSerializer.deserialize(body, "GenericApiResponse");
|
|
5582
|
-
const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
|
|
5583
6627
|
if (typeof body.success === 'boolean' && !body.success) {
|
|
6628
|
+
const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
|
|
5584
6629
|
reject(new Error(body.error || errString));
|
|
5585
6630
|
}
|
|
5586
6631
|
else if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
5587
6632
|
resolve(body);
|
|
5588
6633
|
}
|
|
5589
6634
|
else {
|
|
6635
|
+
const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
|
|
5590
6636
|
reject(errString);
|
|
5591
6637
|
}
|
|
5592
6638
|
}
|