edge-impulse-api 1.93.26 → 1.93.27
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/browser/edge-impulse-api.d.ts +2385 -12
- package/build/browser/edge-impulse-api.js +7228 -803
- package/build/browser/edge-impulse-api.js.map +1 -1
- package/build/library/sdk/api/adminApi.d.ts +297 -0
- package/build/library/sdk/api/adminApi.js +891 -99
- package/build/library/sdk/api/adminApi.js.map +1 -1
- package/build/library/sdk/api/authApi.d.ts +3 -0
- package/build/library/sdk/api/authApi.js +9 -1
- package/build/library/sdk/api/authApi.js.map +1 -1
- package/build/library/sdk/api/cDNApi.d.ts +3 -0
- package/build/library/sdk/api/cDNApi.js +9 -1
- package/build/library/sdk/api/cDNApi.js.map +1 -1
- package/build/library/sdk/api/canaryApi.d.ts +3 -0
- package/build/library/sdk/api/canaryApi.js +9 -1
- package/build/library/sdk/api/canaryApi.js.map +1 -1
- package/build/library/sdk/api/classifyApi.d.ts +30 -0
- package/build/library/sdk/api/classifyApi.js +90 -10
- package/build/library/sdk/api/classifyApi.js.map +1 -1
- package/build/library/sdk/api/dSPApi.d.ts +57 -0
- package/build/library/sdk/api/dSPApi.js +171 -19
- package/build/library/sdk/api/dSPApi.js.map +1 -1
- package/build/library/sdk/api/datasetVersionsApi.d.ts +18 -0
- package/build/library/sdk/api/datasetVersionsApi.js +54 -6
- package/build/library/sdk/api/datasetVersionsApi.js.map +1 -1
- package/build/library/sdk/api/deploymentApi.d.ts +51 -0
- package/build/library/sdk/api/deploymentApi.js +153 -17
- package/build/library/sdk/api/deploymentApi.js.map +1 -1
- package/build/library/sdk/api/devicesApi.d.ts +48 -0
- package/build/library/sdk/api/devicesApi.js +144 -16
- package/build/library/sdk/api/devicesApi.js.map +1 -1
- package/build/library/sdk/api/emailVerificationApi.d.ts +12 -0
- package/build/library/sdk/api/emailVerificationApi.js +36 -4
- package/build/library/sdk/api/emailVerificationApi.js.map +1 -1
- package/build/library/sdk/api/exportApi.d.ts +6 -0
- package/build/library/sdk/api/exportApi.js +18 -2
- package/build/library/sdk/api/exportApi.js.map +1 -1
- package/build/library/sdk/api/featureFlagsApi.d.ts +3 -0
- package/build/library/sdk/api/featureFlagsApi.js +9 -1
- package/build/library/sdk/api/featureFlagsApi.js.map +1 -1
- package/build/library/sdk/api/healthApi.d.ts +6 -0
- package/build/library/sdk/api/healthApi.js +18 -2
- package/build/library/sdk/api/healthApi.js.map +1 -1
- package/build/library/sdk/api/impulseApi.d.ts +54 -0
- package/build/library/sdk/api/impulseApi.js +162 -18
- package/build/library/sdk/api/impulseApi.js.map +1 -1
- package/build/library/sdk/api/integrationsApi.d.ts +6 -0
- package/build/library/sdk/api/integrationsApi.js +18 -2
- package/build/library/sdk/api/integrationsApi.js.map +1 -1
- package/build/library/sdk/api/jobsApi.d.ts +135 -0
- package/build/library/sdk/api/jobsApi.js +409 -45
- package/build/library/sdk/api/jobsApi.js.map +1 -1
- package/build/library/sdk/api/learnApi.d.ts +87 -0
- package/build/library/sdk/api/learnApi.js +261 -29
- package/build/library/sdk/api/learnApi.js.map +1 -1
- package/build/library/sdk/api/loginApi.d.ts +6 -0
- package/build/library/sdk/api/loginApi.js +18 -2
- package/build/library/sdk/api/loginApi.js.map +1 -1
- package/build/library/sdk/api/metricsApi.d.ts +9 -0
- package/build/library/sdk/api/metricsApi.js +27 -3
- package/build/library/sdk/api/metricsApi.js.map +1 -1
- package/build/library/sdk/api/monitoringApi.d.ts +39 -0
- package/build/library/sdk/api/monitoringApi.js +117 -13
- package/build/library/sdk/api/monitoringApi.js.map +1 -1
- package/build/library/sdk/api/optimizationApi.d.ts +51 -0
- package/build/library/sdk/api/optimizationApi.js +153 -17
- package/build/library/sdk/api/optimizationApi.js.map +1 -1
- package/build/library/sdk/api/organizationBlocksApi.d.ts +105 -0
- package/build/library/sdk/api/organizationBlocksApi.js +315 -35
- package/build/library/sdk/api/organizationBlocksApi.js.map +1 -1
- package/build/library/sdk/api/organizationCreateProjectApi.d.ts +45 -0
- package/build/library/sdk/api/organizationCreateProjectApi.js +135 -15
- package/build/library/sdk/api/organizationCreateProjectApi.js.map +1 -1
- package/build/library/sdk/api/organizationDataApi.d.ts +120 -0
- package/build/library/sdk/api/organizationDataApi.js +360 -40
- package/build/library/sdk/api/organizationDataApi.js.map +1 -1
- package/build/library/sdk/api/organizationDataCampaignsApi.d.ts +36 -0
- package/build/library/sdk/api/organizationDataCampaignsApi.js +108 -12
- package/build/library/sdk/api/organizationDataCampaignsApi.js.map +1 -1
- package/build/library/sdk/api/organizationJobsApi.d.ts +24 -0
- package/build/library/sdk/api/organizationJobsApi.js +72 -8
- package/build/library/sdk/api/organizationJobsApi.js.map +1 -1
- package/build/library/sdk/api/organizationPipelinesApi.d.ts +24 -0
- package/build/library/sdk/api/organizationPipelinesApi.js +72 -8
- package/build/library/sdk/api/organizationPipelinesApi.js.map +1 -1
- package/build/library/sdk/api/organizationPortalsApi.d.ts +21 -0
- package/build/library/sdk/api/organizationPortalsApi.js +63 -7
- package/build/library/sdk/api/organizationPortalsApi.js.map +1 -1
- package/build/library/sdk/api/organizationsApi.d.ts +242 -2
- package/build/library/sdk/api/organizationsApi.js +722 -82
- package/build/library/sdk/api/organizationsApi.js.map +1 -1
- package/build/library/sdk/api/performanceCalibrationApi.d.ts +33 -0
- package/build/library/sdk/api/performanceCalibrationApi.js +99 -11
- package/build/library/sdk/api/performanceCalibrationApi.js.map +1 -1
- package/build/library/sdk/api/postProcessingApi.d.ts +15 -0
- package/build/library/sdk/api/postProcessingApi.js +45 -5
- package/build/library/sdk/api/postProcessingApi.js.map +1 -1
- package/build/library/sdk/api/projectsApi.d.ts +282 -1
- package/build/library/sdk/api/projectsApi.js +991 -66
- package/build/library/sdk/api/projectsApi.js.map +1 -1
- package/build/library/sdk/api/rawDataApi.d.ts +207 -0
- package/build/library/sdk/api/rawDataApi.js +621 -69
- package/build/library/sdk/api/rawDataApi.js.map +1 -1
- package/build/library/sdk/api/testApi.d.ts +12 -0
- package/build/library/sdk/api/testApi.js +36 -4
- package/build/library/sdk/api/testApi.js.map +1 -1
- package/build/library/sdk/api/themesApi.d.ts +18 -0
- package/build/library/sdk/api/themesApi.js +54 -6
- package/build/library/sdk/api/themesApi.js.map +1 -1
- package/build/library/sdk/api/thirdPartyAuthApi.d.ts +21 -0
- package/build/library/sdk/api/thirdPartyAuthApi.js +63 -7
- package/build/library/sdk/api/thirdPartyAuthApi.js.map +1 -1
- package/build/library/sdk/api/uploadPortalApi.d.ts +21 -0
- package/build/library/sdk/api/uploadPortalApi.js +63 -7
- package/build/library/sdk/api/uploadPortalApi.js.map +1 -1
- package/build/library/sdk/api/userApi.d.ts +147 -0
- package/build/library/sdk/api/userApi.js +441 -49
- package/build/library/sdk/api/userApi.js.map +1 -1
- package/build/library/sdk/api/vlmApi.d.ts +15 -0
- package/build/library/sdk/api/vlmApi.js +45 -5
- package/build/library/sdk/api/vlmApi.js.map +1 -1
- package/build/library/sdk/api/whitelabelsApi.d.ts +24 -0
- package/build/library/sdk/api/whitelabelsApi.js +72 -8
- package/build/library/sdk/api/whitelabelsApi.js.map +1 -1
- package/build/library/sdk/model/getExtensionSharedStateListResponse.d.ts +14 -0
- package/build/library/sdk/model/getExtensionSharedStateListResponse.js +4 -0
- package/build/library/sdk/model/getExtensionSharedStateListResponse.js.map +1 -0
- package/build/library/sdk/model/models.d.ts +3 -0
- package/build/library/sdk/model/models.js +3 -0
- package/build/library/sdk/model/models.js.map +1 -1
- package/build/library/sdk/model/oAuthScope.d.ts +1 -1
- package/build/library/sdk/model/oAuthScope.js +1 -1
- package/build/library/sdk/model/oAuthScope.js.map +1 -1
- package/build/library/sdk/model/setExtensionSharedStateRequest.d.ts +13 -0
- package/build/library/sdk/model/setExtensionSharedStateRequest.js +4 -0
- package/build/library/sdk/model/setExtensionSharedStateRequest.js.map +1 -0
- package/build/library/sdk/model/setExtensionSharedStateResponse.d.ts +11 -0
- package/build/library/sdk/model/setExtensionSharedStateResponse.js +4 -0
- package/build/library/sdk/model/setExtensionSharedStateResponse.js.map +1 -0
- package/package.json +1 -1
|
@@ -100,6 +100,9 @@ export declare class DSPApi {
|
|
|
100
100
|
headers: {
|
|
101
101
|
[name: string]: string;
|
|
102
102
|
};
|
|
103
|
+
responseHeadersCallback?: (headers: {
|
|
104
|
+
[name: string]: string;
|
|
105
|
+
}) => void;
|
|
103
106
|
}): Promise<GenericApiResponse>;
|
|
104
107
|
/**
|
|
105
108
|
* Download an artifact from a DSP block for debugging. This is an internal API.
|
|
@@ -112,6 +115,9 @@ export declare class DSPApi {
|
|
|
112
115
|
headers: {
|
|
113
116
|
[name: string]: string;
|
|
114
117
|
};
|
|
118
|
+
responseHeadersCallback?: (headers: {
|
|
119
|
+
[name: string]: string;
|
|
120
|
+
}) => void;
|
|
115
121
|
}): Promise<Buffer>;
|
|
116
122
|
/**
|
|
117
123
|
* Download output from a DSP block over all data in the selected category, already sliced in windows. In Numpy binary format.
|
|
@@ -125,6 +131,9 @@ export declare class DSPApi {
|
|
|
125
131
|
headers: {
|
|
126
132
|
[name: string]: string;
|
|
127
133
|
};
|
|
134
|
+
responseHeadersCallback?: (headers: {
|
|
135
|
+
[name: string]: string;
|
|
136
|
+
}) => void;
|
|
128
137
|
}): Promise<Buffer>;
|
|
129
138
|
/**
|
|
130
139
|
* Download labels for a DSP block over all data in the selected category, already sliced in windows.
|
|
@@ -137,6 +146,9 @@ export declare class DSPApi {
|
|
|
137
146
|
headers: {
|
|
138
147
|
[name: string]: string;
|
|
139
148
|
};
|
|
149
|
+
responseHeadersCallback?: (headers: {
|
|
150
|
+
[name: string]: string;
|
|
151
|
+
}) => void;
|
|
140
152
|
}): Promise<Buffer>;
|
|
141
153
|
/**
|
|
142
154
|
* Runs the DSP block against a sample. This will move the sliding window (dependent on the sliding window length and the sliding window increase parameters in the impulse) over the complete file, and run the DSP function for every window that is extracted.
|
|
@@ -149,6 +161,9 @@ export declare class DSPApi {
|
|
|
149
161
|
headers: {
|
|
150
162
|
[name: string]: string;
|
|
151
163
|
};
|
|
164
|
+
responseHeadersCallback?: (headers: {
|
|
165
|
+
[name: string]: string;
|
|
166
|
+
}) => void;
|
|
152
167
|
}): Promise<DspSampleFeaturesResponse>;
|
|
153
168
|
/**
|
|
154
169
|
* Get a sample of trained features, this extracts a number of samples and their labels. Used to visualize the current training set.
|
|
@@ -164,6 +179,9 @@ export declare class DSPApi {
|
|
|
164
179
|
headers: {
|
|
165
180
|
[name: string]: string;
|
|
166
181
|
};
|
|
182
|
+
responseHeadersCallback?: (headers: {
|
|
183
|
+
[name: string]: string;
|
|
184
|
+
}) => void;
|
|
167
185
|
}): Promise<DspTrainedFeaturesResponse>;
|
|
168
186
|
/**
|
|
169
187
|
* Get a set of parameters, found as a result of running the DSP autotuner.
|
|
@@ -175,6 +193,9 @@ export declare class DSPApi {
|
|
|
175
193
|
headers: {
|
|
176
194
|
[name: string]: string;
|
|
177
195
|
};
|
|
196
|
+
responseHeadersCallback?: (headers: {
|
|
197
|
+
[name: string]: string;
|
|
198
|
+
}) => void;
|
|
178
199
|
}): Promise<DspAutotunerResults>;
|
|
179
200
|
/**
|
|
180
201
|
* Retrieve the configuration parameters for the DSP block. Use the impulse functions to retrieve all DSP blocks.
|
|
@@ -186,6 +207,9 @@ export declare class DSPApi {
|
|
|
186
207
|
headers: {
|
|
187
208
|
[name: string]: string;
|
|
188
209
|
};
|
|
210
|
+
responseHeadersCallback?: (headers: {
|
|
211
|
+
[name: string]: string;
|
|
212
|
+
}) => void;
|
|
189
213
|
}): Promise<DSPConfigResponse>;
|
|
190
214
|
/**
|
|
191
215
|
* Retrieve the feature importance for a DSP block (only available for blocks where dimensionalityReduction is not enabled)
|
|
@@ -197,6 +221,9 @@ export declare class DSPApi {
|
|
|
197
221
|
headers: {
|
|
198
222
|
[name: string]: string;
|
|
199
223
|
};
|
|
224
|
+
responseHeadersCallback?: (headers: {
|
|
225
|
+
[name: string]: string;
|
|
226
|
+
}) => void;
|
|
200
227
|
}): Promise<DspFeatureImportanceResponse>;
|
|
201
228
|
/**
|
|
202
229
|
* Retrieve the names of the features the DSP block generates
|
|
@@ -208,6 +235,9 @@ export declare class DSPApi {
|
|
|
208
235
|
headers: {
|
|
209
236
|
[name: string]: string;
|
|
210
237
|
};
|
|
238
|
+
responseHeadersCallback?: (headers: {
|
|
239
|
+
[name: string]: string;
|
|
240
|
+
}) => void;
|
|
211
241
|
}): Promise<DspFeatureLabelsResponse>;
|
|
212
242
|
/**
|
|
213
243
|
* Retrieve the metadata from a generated DSP block.
|
|
@@ -221,6 +251,9 @@ export declare class DSPApi {
|
|
|
221
251
|
headers: {
|
|
222
252
|
[name: string]: string;
|
|
223
253
|
};
|
|
254
|
+
responseHeadersCallback?: (headers: {
|
|
255
|
+
[name: string]: string;
|
|
256
|
+
}) => void;
|
|
224
257
|
}): Promise<DSPMetadataResponse>;
|
|
225
258
|
/**
|
|
226
259
|
* Get raw sample data, but with only the axes selected by the DSP block. E.g. if you have selected only accX and accY as inputs for the DSP block, but the raw sample also contains accZ, accZ is filtered out. If you pass dspId = 0 this will return a raw graph without any processing.
|
|
@@ -236,6 +269,9 @@ export declare class DSPApi {
|
|
|
236
269
|
headers: {
|
|
237
270
|
[name: string]: string;
|
|
238
271
|
};
|
|
272
|
+
responseHeadersCallback?: (headers: {
|
|
273
|
+
[name: string]: string;
|
|
274
|
+
}) => void;
|
|
239
275
|
}): Promise<GetSampleDspResponse>;
|
|
240
276
|
/**
|
|
241
277
|
* Get slice of raw sample data, but with only the axes selected by the DSP block. E.g. if you have selected only accX and accY as inputs for the DSP block, but the raw sample also contains accZ, accZ is filtered out.
|
|
@@ -251,6 +287,9 @@ export declare class DSPApi {
|
|
|
251
287
|
headers: {
|
|
252
288
|
[name: string]: string;
|
|
253
289
|
};
|
|
290
|
+
responseHeadersCallback?: (headers: {
|
|
291
|
+
[name: string]: string;
|
|
292
|
+
}) => void;
|
|
254
293
|
}): Promise<GetSampleDspResponse>;
|
|
255
294
|
/**
|
|
256
295
|
* Get estimated performance (latency and RAM) for the DSP block, for all supported project latency devices.
|
|
@@ -262,6 +301,9 @@ export declare class DSPApi {
|
|
|
262
301
|
headers: {
|
|
263
302
|
[name: string]: string;
|
|
264
303
|
};
|
|
304
|
+
responseHeadersCallback?: (headers: {
|
|
305
|
+
[name: string]: string;
|
|
306
|
+
}) => void;
|
|
265
307
|
}): Promise<DspPerformanceAllVariantsResponse>;
|
|
266
308
|
/**
|
|
267
309
|
* Takes in a features array and runs it through the DSP block. This data should have the same frequency as set in the input block in your impulse.
|
|
@@ -274,6 +316,9 @@ export declare class DSPApi {
|
|
|
274
316
|
headers: {
|
|
275
317
|
[name: string]: string;
|
|
276
318
|
};
|
|
319
|
+
responseHeadersCallback?: (headers: {
|
|
320
|
+
[name: string]: string;
|
|
321
|
+
}) => void;
|
|
277
322
|
}): Promise<DspRunResponse>;
|
|
278
323
|
/**
|
|
279
324
|
* Get slice of sample data, and run it through the DSP block. This only the axes selected by the DSP block. E.g. if you have selected only accX and accY as inputs for the DSP block, but the raw sample also contains accZ, accZ is filtered out.
|
|
@@ -289,6 +334,9 @@ export declare class DSPApi {
|
|
|
289
334
|
headers: {
|
|
290
335
|
[name: string]: string;
|
|
291
336
|
};
|
|
337
|
+
responseHeadersCallback?: (headers: {
|
|
338
|
+
[name: string]: string;
|
|
339
|
+
}) => void;
|
|
292
340
|
}): Promise<DspRunResponseWithSample>;
|
|
293
341
|
/**
|
|
294
342
|
* Get slice of sample data, and run it through the DSP block. This only the axes selected by the DSP block. E.g. if you have selected only accX and accY as inputs for the DSP block, but the raw sample also contains accZ, accZ is filtered out.
|
|
@@ -303,6 +351,9 @@ export declare class DSPApi {
|
|
|
303
351
|
headers: {
|
|
304
352
|
[name: string]: string;
|
|
305
353
|
};
|
|
354
|
+
responseHeadersCallback?: (headers: {
|
|
355
|
+
[name: string]: string;
|
|
356
|
+
}) => void;
|
|
306
357
|
}): Promise<DspRunResponseWithSample>;
|
|
307
358
|
/**
|
|
308
359
|
* Set configuration parameters for the DSP block. Only values set in the body will be overwritten.
|
|
@@ -315,6 +366,9 @@ export declare class DSPApi {
|
|
|
315
366
|
headers: {
|
|
316
367
|
[name: string]: string;
|
|
317
368
|
};
|
|
369
|
+
responseHeadersCallback?: (headers: {
|
|
370
|
+
[name: string]: string;
|
|
371
|
+
}) => void;
|
|
318
372
|
}): Promise<GenericApiResponse>;
|
|
319
373
|
/**
|
|
320
374
|
* Returns performance characteristics for a custom DSP block (needs `hasTfliteImplementation`). Updates are streamed over the websocket API (or can be retrieved through the /stdout endpoint). Use getProfileTfliteJobResult to get the results when the job is completed.
|
|
@@ -327,6 +381,9 @@ export declare class DSPApi {
|
|
|
327
381
|
headers: {
|
|
328
382
|
[name: string]: string;
|
|
329
383
|
};
|
|
384
|
+
responseHeadersCallback?: (headers: {
|
|
385
|
+
[name: string]: string;
|
|
386
|
+
}) => void;
|
|
330
387
|
}): Promise<StartJobResponse>;
|
|
331
388
|
}
|
|
332
389
|
export {};
|
|
@@ -164,7 +164,15 @@ class DSPApi {
|
|
|
164
164
|
url = authDefault.url;
|
|
165
165
|
(0, models_1.applyFormParams)(requestOptions, localVarFormParams);
|
|
166
166
|
const response = await fetch(url, requestOptions);
|
|
167
|
-
|
|
167
|
+
const resp = this.handleResponse(response, 'GenericApiResponse');
|
|
168
|
+
if (options === null || options === void 0 ? void 0 : options.responseHeadersCallback) {
|
|
169
|
+
const headerCb = options.responseHeadersCallback;
|
|
170
|
+
// on next tick, so we have time to handle the response
|
|
171
|
+
setTimeout(() => {
|
|
172
|
+
headerCb(Object.fromEntries(response.headers.entries()));
|
|
173
|
+
}, 0);
|
|
174
|
+
}
|
|
175
|
+
return resp;
|
|
168
176
|
}
|
|
169
177
|
/**
|
|
170
178
|
* Download an artifact from a DSP block for debugging. This is an internal API.
|
|
@@ -238,7 +246,15 @@ class DSPApi {
|
|
|
238
246
|
url = authDefault.url;
|
|
239
247
|
(0, models_1.applyFormParams)(requestOptions, localVarFormParams);
|
|
240
248
|
const response = await fetch(url, requestOptions);
|
|
241
|
-
|
|
249
|
+
const resp = this.handleResponse(response, 'Buffer');
|
|
250
|
+
if (options === null || options === void 0 ? void 0 : options.responseHeadersCallback) {
|
|
251
|
+
const headerCb = options.responseHeadersCallback;
|
|
252
|
+
// on next tick, so we have time to handle the response
|
|
253
|
+
setTimeout(() => {
|
|
254
|
+
headerCb(Object.fromEntries(response.headers.entries()));
|
|
255
|
+
}, 0);
|
|
256
|
+
}
|
|
257
|
+
return resp;
|
|
242
258
|
}
|
|
243
259
|
/**
|
|
244
260
|
* Download output from a DSP block over all data in the selected category, already sliced in windows. In Numpy binary format.
|
|
@@ -316,7 +332,15 @@ class DSPApi {
|
|
|
316
332
|
url = authDefault.url;
|
|
317
333
|
(0, models_1.applyFormParams)(requestOptions, localVarFormParams);
|
|
318
334
|
const response = await fetch(url, requestOptions);
|
|
319
|
-
|
|
335
|
+
const resp = this.handleResponse(response, 'Buffer');
|
|
336
|
+
if (options === null || options === void 0 ? void 0 : options.responseHeadersCallback) {
|
|
337
|
+
const headerCb = options.responseHeadersCallback;
|
|
338
|
+
// on next tick, so we have time to handle the response
|
|
339
|
+
setTimeout(() => {
|
|
340
|
+
headerCb(Object.fromEntries(response.headers.entries()));
|
|
341
|
+
}, 0);
|
|
342
|
+
}
|
|
343
|
+
return resp;
|
|
320
344
|
}
|
|
321
345
|
/**
|
|
322
346
|
* Download labels for a DSP block over all data in the selected category, already sliced in windows.
|
|
@@ -390,7 +414,15 @@ class DSPApi {
|
|
|
390
414
|
url = authDefault.url;
|
|
391
415
|
(0, models_1.applyFormParams)(requestOptions, localVarFormParams);
|
|
392
416
|
const response = await fetch(url, requestOptions);
|
|
393
|
-
|
|
417
|
+
const resp = this.handleResponse(response, 'Buffer');
|
|
418
|
+
if (options === null || options === void 0 ? void 0 : options.responseHeadersCallback) {
|
|
419
|
+
const headerCb = options.responseHeadersCallback;
|
|
420
|
+
// on next tick, so we have time to handle the response
|
|
421
|
+
setTimeout(() => {
|
|
422
|
+
headerCb(Object.fromEntries(response.headers.entries()));
|
|
423
|
+
}, 0);
|
|
424
|
+
}
|
|
425
|
+
return resp;
|
|
394
426
|
}
|
|
395
427
|
/**
|
|
396
428
|
* Runs the DSP block against a sample. This will move the sliding window (dependent on the sliding window length and the sliding window increase parameters in the impulse) over the complete file, and run the DSP function for every window that is extracted.
|
|
@@ -464,7 +496,15 @@ class DSPApi {
|
|
|
464
496
|
url = authDefault.url;
|
|
465
497
|
(0, models_1.applyFormParams)(requestOptions, localVarFormParams);
|
|
466
498
|
const response = await fetch(url, requestOptions);
|
|
467
|
-
|
|
499
|
+
const resp = this.handleResponse(response, 'DspSampleFeaturesResponse');
|
|
500
|
+
if (options === null || options === void 0 ? void 0 : options.responseHeadersCallback) {
|
|
501
|
+
const headerCb = options.responseHeadersCallback;
|
|
502
|
+
// on next tick, so we have time to handle the response
|
|
503
|
+
setTimeout(() => {
|
|
504
|
+
headerCb(Object.fromEntries(response.headers.entries()));
|
|
505
|
+
}, 0);
|
|
506
|
+
}
|
|
507
|
+
return resp;
|
|
468
508
|
}
|
|
469
509
|
/**
|
|
470
510
|
* Get a sample of trained features, this extracts a number of samples and their labels. Used to visualize the current training set.
|
|
@@ -562,7 +602,15 @@ class DSPApi {
|
|
|
562
602
|
url = authDefault.url;
|
|
563
603
|
(0, models_1.applyFormParams)(requestOptions, localVarFormParams);
|
|
564
604
|
const response = await fetch(url, requestOptions);
|
|
565
|
-
|
|
605
|
+
const resp = this.handleResponse(response, 'DspTrainedFeaturesResponse');
|
|
606
|
+
if (options === null || options === void 0 ? void 0 : options.responseHeadersCallback) {
|
|
607
|
+
const headerCb = options.responseHeadersCallback;
|
|
608
|
+
// on next tick, so we have time to handle the response
|
|
609
|
+
setTimeout(() => {
|
|
610
|
+
headerCb(Object.fromEntries(response.headers.entries()));
|
|
611
|
+
}, 0);
|
|
612
|
+
}
|
|
613
|
+
return resp;
|
|
566
614
|
}
|
|
567
615
|
/**
|
|
568
616
|
* Get a set of parameters, found as a result of running the DSP autotuner.
|
|
@@ -630,7 +678,15 @@ class DSPApi {
|
|
|
630
678
|
url = authDefault.url;
|
|
631
679
|
(0, models_1.applyFormParams)(requestOptions, localVarFormParams);
|
|
632
680
|
const response = await fetch(url, requestOptions);
|
|
633
|
-
|
|
681
|
+
const resp = this.handleResponse(response, 'DspAutotunerResults');
|
|
682
|
+
if (options === null || options === void 0 ? void 0 : options.responseHeadersCallback) {
|
|
683
|
+
const headerCb = options.responseHeadersCallback;
|
|
684
|
+
// on next tick, so we have time to handle the response
|
|
685
|
+
setTimeout(() => {
|
|
686
|
+
headerCb(Object.fromEntries(response.headers.entries()));
|
|
687
|
+
}, 0);
|
|
688
|
+
}
|
|
689
|
+
return resp;
|
|
634
690
|
}
|
|
635
691
|
/**
|
|
636
692
|
* Retrieve the configuration parameters for the DSP block. Use the impulse functions to retrieve all DSP blocks.
|
|
@@ -698,7 +754,15 @@ class DSPApi {
|
|
|
698
754
|
url = authDefault.url;
|
|
699
755
|
(0, models_1.applyFormParams)(requestOptions, localVarFormParams);
|
|
700
756
|
const response = await fetch(url, requestOptions);
|
|
701
|
-
|
|
757
|
+
const resp = this.handleResponse(response, 'DSPConfigResponse');
|
|
758
|
+
if (options === null || options === void 0 ? void 0 : options.responseHeadersCallback) {
|
|
759
|
+
const headerCb = options.responseHeadersCallback;
|
|
760
|
+
// on next tick, so we have time to handle the response
|
|
761
|
+
setTimeout(() => {
|
|
762
|
+
headerCb(Object.fromEntries(response.headers.entries()));
|
|
763
|
+
}, 0);
|
|
764
|
+
}
|
|
765
|
+
return resp;
|
|
702
766
|
}
|
|
703
767
|
/**
|
|
704
768
|
* Retrieve the feature importance for a DSP block (only available for blocks where dimensionalityReduction is not enabled)
|
|
@@ -766,7 +830,15 @@ class DSPApi {
|
|
|
766
830
|
url = authDefault.url;
|
|
767
831
|
(0, models_1.applyFormParams)(requestOptions, localVarFormParams);
|
|
768
832
|
const response = await fetch(url, requestOptions);
|
|
769
|
-
|
|
833
|
+
const resp = this.handleResponse(response, 'DspFeatureImportanceResponse');
|
|
834
|
+
if (options === null || options === void 0 ? void 0 : options.responseHeadersCallback) {
|
|
835
|
+
const headerCb = options.responseHeadersCallback;
|
|
836
|
+
// on next tick, so we have time to handle the response
|
|
837
|
+
setTimeout(() => {
|
|
838
|
+
headerCb(Object.fromEntries(response.headers.entries()));
|
|
839
|
+
}, 0);
|
|
840
|
+
}
|
|
841
|
+
return resp;
|
|
770
842
|
}
|
|
771
843
|
/**
|
|
772
844
|
* Retrieve the names of the features the DSP block generates
|
|
@@ -834,7 +906,15 @@ class DSPApi {
|
|
|
834
906
|
url = authDefault.url;
|
|
835
907
|
(0, models_1.applyFormParams)(requestOptions, localVarFormParams);
|
|
836
908
|
const response = await fetch(url, requestOptions);
|
|
837
|
-
|
|
909
|
+
const resp = this.handleResponse(response, 'DspFeatureLabelsResponse');
|
|
910
|
+
if (options === null || options === void 0 ? void 0 : options.responseHeadersCallback) {
|
|
911
|
+
const headerCb = options.responseHeadersCallback;
|
|
912
|
+
// on next tick, so we have time to handle the response
|
|
913
|
+
setTimeout(() => {
|
|
914
|
+
headerCb(Object.fromEntries(response.headers.entries()));
|
|
915
|
+
}, 0);
|
|
916
|
+
}
|
|
917
|
+
return resp;
|
|
838
918
|
}
|
|
839
919
|
/**
|
|
840
920
|
* Retrieve the metadata from a generated DSP block.
|
|
@@ -910,7 +990,15 @@ class DSPApi {
|
|
|
910
990
|
url = authDefault.url;
|
|
911
991
|
(0, models_1.applyFormParams)(requestOptions, localVarFormParams);
|
|
912
992
|
const response = await fetch(url, requestOptions);
|
|
913
|
-
|
|
993
|
+
const resp = this.handleResponse(response, 'DSPMetadataResponse');
|
|
994
|
+
if (options === null || options === void 0 ? void 0 : options.responseHeadersCallback) {
|
|
995
|
+
const headerCb = options.responseHeadersCallback;
|
|
996
|
+
// on next tick, so we have time to handle the response
|
|
997
|
+
setTimeout(() => {
|
|
998
|
+
headerCb(Object.fromEntries(response.headers.entries()));
|
|
999
|
+
}, 0);
|
|
1000
|
+
}
|
|
1001
|
+
return resp;
|
|
914
1002
|
}
|
|
915
1003
|
/**
|
|
916
1004
|
* Get raw sample data, but with only the axes selected by the DSP block. E.g. if you have selected only accX and accY as inputs for the DSP block, but the raw sample also contains accZ, accZ is filtered out. If you pass dspId = 0 this will return a raw graph without any processing.
|
|
@@ -996,7 +1084,15 @@ class DSPApi {
|
|
|
996
1084
|
url = authDefault.url;
|
|
997
1085
|
(0, models_1.applyFormParams)(requestOptions, localVarFormParams);
|
|
998
1086
|
const response = await fetch(url, requestOptions);
|
|
999
|
-
|
|
1087
|
+
const resp = this.handleResponse(response, 'GetSampleDspResponse');
|
|
1088
|
+
if (options === null || options === void 0 ? void 0 : options.responseHeadersCallback) {
|
|
1089
|
+
const headerCb = options.responseHeadersCallback;
|
|
1090
|
+
// on next tick, so we have time to handle the response
|
|
1091
|
+
setTimeout(() => {
|
|
1092
|
+
headerCb(Object.fromEntries(response.headers.entries()));
|
|
1093
|
+
}, 0);
|
|
1094
|
+
}
|
|
1095
|
+
return resp;
|
|
1000
1096
|
}
|
|
1001
1097
|
/**
|
|
1002
1098
|
* Get slice of raw sample data, but with only the axes selected by the DSP block. E.g. if you have selected only accX and accY as inputs for the DSP block, but the raw sample also contains accZ, accZ is filtered out.
|
|
@@ -1086,7 +1182,15 @@ class DSPApi {
|
|
|
1086
1182
|
url = authDefault.url;
|
|
1087
1183
|
(0, models_1.applyFormParams)(requestOptions, localVarFormParams);
|
|
1088
1184
|
const response = await fetch(url, requestOptions);
|
|
1089
|
-
|
|
1185
|
+
const resp = this.handleResponse(response, 'GetSampleDspResponse');
|
|
1186
|
+
if (options === null || options === void 0 ? void 0 : options.responseHeadersCallback) {
|
|
1187
|
+
const headerCb = options.responseHeadersCallback;
|
|
1188
|
+
// on next tick, so we have time to handle the response
|
|
1189
|
+
setTimeout(() => {
|
|
1190
|
+
headerCb(Object.fromEntries(response.headers.entries()));
|
|
1191
|
+
}, 0);
|
|
1192
|
+
}
|
|
1193
|
+
return resp;
|
|
1090
1194
|
}
|
|
1091
1195
|
/**
|
|
1092
1196
|
* Get estimated performance (latency and RAM) for the DSP block, for all supported project latency devices.
|
|
@@ -1154,7 +1258,15 @@ class DSPApi {
|
|
|
1154
1258
|
url = authDefault.url;
|
|
1155
1259
|
(0, models_1.applyFormParams)(requestOptions, localVarFormParams);
|
|
1156
1260
|
const response = await fetch(url, requestOptions);
|
|
1157
|
-
|
|
1261
|
+
const resp = this.handleResponse(response, 'DspPerformanceAllVariantsResponse');
|
|
1262
|
+
if (options === null || options === void 0 ? void 0 : options.responseHeadersCallback) {
|
|
1263
|
+
const headerCb = options.responseHeadersCallback;
|
|
1264
|
+
// on next tick, so we have time to handle the response
|
|
1265
|
+
setTimeout(() => {
|
|
1266
|
+
headerCb(Object.fromEntries(response.headers.entries()));
|
|
1267
|
+
}, 0);
|
|
1268
|
+
}
|
|
1269
|
+
return resp;
|
|
1158
1270
|
}
|
|
1159
1271
|
/**
|
|
1160
1272
|
* Takes in a features array and runs it through the DSP block. This data should have the same frequency as set in the input block in your impulse.
|
|
@@ -1228,7 +1340,15 @@ class DSPApi {
|
|
|
1228
1340
|
url = authDefault.url;
|
|
1229
1341
|
(0, models_1.applyFormParams)(requestOptions, localVarFormParams);
|
|
1230
1342
|
const response = await fetch(url, requestOptions);
|
|
1231
|
-
|
|
1343
|
+
const resp = this.handleResponse(response, 'DspRunResponse');
|
|
1344
|
+
if (options === null || options === void 0 ? void 0 : options.responseHeadersCallback) {
|
|
1345
|
+
const headerCb = options.responseHeadersCallback;
|
|
1346
|
+
// on next tick, so we have time to handle the response
|
|
1347
|
+
setTimeout(() => {
|
|
1348
|
+
headerCb(Object.fromEntries(response.headers.entries()));
|
|
1349
|
+
}, 0);
|
|
1350
|
+
}
|
|
1351
|
+
return resp;
|
|
1232
1352
|
}
|
|
1233
1353
|
/**
|
|
1234
1354
|
* Get slice of sample data, and run it through the DSP block. This only the axes selected by the DSP block. E.g. if you have selected only accX and accY as inputs for the DSP block, but the raw sample also contains accZ, accZ is filtered out.
|
|
@@ -1320,7 +1440,15 @@ class DSPApi {
|
|
|
1320
1440
|
url = authDefault.url;
|
|
1321
1441
|
(0, models_1.applyFormParams)(requestOptions, localVarFormParams);
|
|
1322
1442
|
const response = await fetch(url, requestOptions);
|
|
1323
|
-
|
|
1443
|
+
const resp = this.handleResponse(response, 'DspRunResponseWithSample');
|
|
1444
|
+
if (options === null || options === void 0 ? void 0 : options.responseHeadersCallback) {
|
|
1445
|
+
const headerCb = options.responseHeadersCallback;
|
|
1446
|
+
// on next tick, so we have time to handle the response
|
|
1447
|
+
setTimeout(() => {
|
|
1448
|
+
headerCb(Object.fromEntries(response.headers.entries()));
|
|
1449
|
+
}, 0);
|
|
1450
|
+
}
|
|
1451
|
+
return resp;
|
|
1324
1452
|
}
|
|
1325
1453
|
/**
|
|
1326
1454
|
* Get slice of sample data, and run it through the DSP block. This only the axes selected by the DSP block. E.g. if you have selected only accX and accY as inputs for the DSP block, but the raw sample also contains accZ, accZ is filtered out.
|
|
@@ -1406,7 +1534,15 @@ class DSPApi {
|
|
|
1406
1534
|
url = authDefault.url;
|
|
1407
1535
|
(0, models_1.applyFormParams)(requestOptions, localVarFormParams);
|
|
1408
1536
|
const response = await fetch(url, requestOptions);
|
|
1409
|
-
|
|
1537
|
+
const resp = this.handleResponse(response, 'DspRunResponseWithSample');
|
|
1538
|
+
if (options === null || options === void 0 ? void 0 : options.responseHeadersCallback) {
|
|
1539
|
+
const headerCb = options.responseHeadersCallback;
|
|
1540
|
+
// on next tick, so we have time to handle the response
|
|
1541
|
+
setTimeout(() => {
|
|
1542
|
+
headerCb(Object.fromEntries(response.headers.entries()));
|
|
1543
|
+
}, 0);
|
|
1544
|
+
}
|
|
1545
|
+
return resp;
|
|
1410
1546
|
}
|
|
1411
1547
|
/**
|
|
1412
1548
|
* Set configuration parameters for the DSP block. Only values set in the body will be overwritten.
|
|
@@ -1480,7 +1616,15 @@ class DSPApi {
|
|
|
1480
1616
|
url = authDefault.url;
|
|
1481
1617
|
(0, models_1.applyFormParams)(requestOptions, localVarFormParams);
|
|
1482
1618
|
const response = await fetch(url, requestOptions);
|
|
1483
|
-
|
|
1619
|
+
const resp = this.handleResponse(response, 'GenericApiResponse');
|
|
1620
|
+
if (options === null || options === void 0 ? void 0 : options.responseHeadersCallback) {
|
|
1621
|
+
const headerCb = options.responseHeadersCallback;
|
|
1622
|
+
// on next tick, so we have time to handle the response
|
|
1623
|
+
setTimeout(() => {
|
|
1624
|
+
headerCb(Object.fromEntries(response.headers.entries()));
|
|
1625
|
+
}, 0);
|
|
1626
|
+
}
|
|
1627
|
+
return resp;
|
|
1484
1628
|
}
|
|
1485
1629
|
/**
|
|
1486
1630
|
* Returns performance characteristics for a custom DSP block (needs `hasTfliteImplementation`). Updates are streamed over the websocket API (or can be retrieved through the /stdout endpoint). Use getProfileTfliteJobResult to get the results when the job is completed.
|
|
@@ -1554,7 +1698,15 @@ class DSPApi {
|
|
|
1554
1698
|
url = authDefault.url;
|
|
1555
1699
|
(0, models_1.applyFormParams)(requestOptions, localVarFormParams);
|
|
1556
1700
|
const response = await fetch(url, requestOptions);
|
|
1557
|
-
|
|
1701
|
+
const resp = this.handleResponse(response, 'StartJobResponse');
|
|
1702
|
+
if (options === null || options === void 0 ? void 0 : options.responseHeadersCallback) {
|
|
1703
|
+
const headerCb = options.responseHeadersCallback;
|
|
1704
|
+
// on next tick, so we have time to handle the response
|
|
1705
|
+
setTimeout(() => {
|
|
1706
|
+
headerCb(Object.fromEntries(response.headers.entries()));
|
|
1707
|
+
}, 0);
|
|
1708
|
+
}
|
|
1709
|
+
return resp;
|
|
1558
1710
|
}
|
|
1559
1711
|
}
|
|
1560
1712
|
exports.DSPApi = DSPApi;
|