edge-impulse-linux 1.25.2 → 1.25.4

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