edge-impulse-api 1.95.3 → 1.95.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.
@@ -5427,6 +5427,12 @@ export enum MonitoringApiApiKeys {
5427
5427
  }
5428
5428
  type listMonitoringEventsQueryParams = {
5429
5429
  limit?: number;
5430
+ offset?: number;
5431
+ startTimestamp?: number;
5432
+ endTimestamp?: number;
5433
+ eventType?: MonitoringEventType;
5434
+ status?: 'pending' | 'processing' | 'delivered' | 'failed' | 'cancelled';
5435
+ alertSubscriptionIds?: string;
5430
5436
  };
5431
5437
  export type MonitoringApiOpts = {
5432
5438
  extraHeaders?: Record<string, string>;
@@ -5549,10 +5555,16 @@ export class MonitoringApi {
5549
5555
  }) => void;
5550
5556
  }): Promise<ListEventSubscriptionsResponse>;
5551
5557
  /**
5552
- * List recent monitoring events generated for this project.
5553
- * @summary List recent monitoring events
5558
+ * List monitoring events generated for this project.
5559
+ * @summary List monitoring events
5554
5560
  * @param projectId Project ID
5555
- * @param limit Number of recent events to fetch. Maximum is 100. Defaults to 20.
5561
+ * @param limit Maximum number of events to return. Maximum is 100. Defaults to 20.
5562
+ * @param offset Offset in results, can be used in conjunction with LimitResultsParameter to implement paging.
5563
+ * @param startTimestamp
5564
+ * @param endTimestamp
5565
+ * @param eventType Only include events with this event type.
5566
+ * @param status Only include events with this computed delivery status.
5567
+ * @param alertSubscriptionIds Only include events matching these alert subscription IDs (comma-separated list).
5556
5568
  */
5557
5569
  listMonitoringEvents(projectId: number, queryParams?: listMonitoringEventsQueryParams, options?: {
5558
5570
  headers: {
@@ -16944,10 +16956,7 @@ export const CreateEnterpriseTrialUserRequestUserHasMLModelsInProductionEnumValu
16944
16956
 
16945
16957
 
16946
16958
  export type CreateEventSubscriptionRequest = {
16947
- /**
16948
- * Monitoring event type to subscribe to.
16949
- */
16950
- eventType: string;
16959
+ eventType: MonitoringEventType;
16951
16960
  /**
16952
16961
  * Optional webhook destination ID to route this event subscription to. Set to null to detach.
16953
16962
  */
@@ -19688,10 +19697,7 @@ export type EventSubscription = {
19688
19697
  * Numeric ID of the event subscription.
19689
19698
  */
19690
19699
  id: number;
19691
- /**
19692
- * Monitoring event type.
19693
- */
19694
- eventType: string;
19700
+ eventType: MonitoringEventType;
19695
19701
  /**
19696
19702
  * Optional webhook destination ID this event subscription is attached to.
19697
19703
  */
@@ -19852,7 +19858,7 @@ export const ExtensionVisibilityValues: string[];
19852
19858
  /**
19853
19859
  * Known feature identifiers.
19854
19860
  */
19855
- export type Feature = 'signup-thank-you-page' | 'stripe-live-mode' | 'azure-storage' | 'monthly-compute-limit-enforcement' | 'pay-as-you-go' | 'user-screening-check' | 'oauth2' | 'external-apps-redirect-flow' | 'dataset-versioning' | 'oauth2-self-serve';
19861
+ export type Feature = 'signup-thank-you-page' | 'stripe-live-mode' | 'azure-storage' | 'monthly-compute-limit-enforcement' | 'pay-as-you-go' | 'user-screening-check' | 'oauth2' | 'oauth2-introspection' | 'external-apps-redirect-flow' | 'dataset-versioning' | 'oauth2-self-serve';
19856
19862
  export const FeatureValues: string[];
19857
19863
 
19858
19864
 
@@ -23295,6 +23301,18 @@ export type ListMonitoringEventsResponse = {
23295
23301
  */
23296
23302
  error?: string;
23297
23303
  events: MonitoringEvent[];
23304
+ /**
23305
+ * Total number of matching events across all pages.
23306
+ */
23307
+ totalCount: number;
23308
+ /**
23309
+ * Applied page size.
23310
+ */
23311
+ limit: number;
23312
+ /**
23313
+ * Applied result offset.
23314
+ */
23315
+ offset: number;
23298
23316
  };
23299
23317
 
23300
23318
 
@@ -24060,10 +24078,7 @@ export type MonitoringEvent = {
24060
24078
  * Stable event identifier.
24061
24079
  */
24062
24080
  eventId: string;
24063
- /**
24064
- * Monitoring event type.
24065
- */
24066
- eventType: string;
24081
+ eventType: MonitoringEventType;
24067
24082
  /**
24068
24083
  * Event payload.
24069
24084
  */
@@ -24082,11 +24097,22 @@ export type MonitoringEvent = {
24082
24097
  * Timestamp of when this event was processed.
24083
24098
  */
24084
24099
  processedAt?: Date | null;
24100
+ /**
24101
+ * Alert subscription IDs currently matching this event payload.
24102
+ */
24103
+ matchedAlertSubscriptionIds?: number[];
24085
24104
  };
24086
24105
  export type MonitoringEventStatusEnum = 'pending' | 'processing' | 'delivered' | 'failed' | 'cancelled';
24087
24106
  export const MonitoringEventStatusEnumValues: string[];
24088
24107
 
24089
24108
 
24109
+ /**
24110
+ * Type of model monitoring event.
24111
+ */
24112
+ export type MonitoringEventType = 'monitoring.confidence.degraded' | 'monitoring.device.health_changed' | 'monitoring.anomaly.detected' | 'monitoring.model.performance_changed';
24113
+ export const MonitoringEventTypeValues: string[];
24114
+
24115
+
24090
24116
  export type MoveRawDataRequest = {
24091
24117
  newCategory: RawDataCategory;
24092
24118
  };
@@ -29763,10 +29789,7 @@ export type UpdateDatasetVersionRequest = {
29763
29789
 
29764
29790
 
29765
29791
  export type UpdateEventSubscriptionRequest = {
29766
- /**
29767
- * Monitoring event type to subscribe to.
29768
- */
29769
- eventType?: string;
29792
+ eventType?: MonitoringEventType;
29770
29793
  /**
29771
29794
  * Optional webhook destination ID to route this event subscription to. Set to null to detach.
29772
29795
  */
@@ -25277,10 +25277,16 @@ class MonitoringApi {
25277
25277
  return resp;
25278
25278
  }
25279
25279
  /**
25280
- * List recent monitoring events generated for this project.
25281
- * @summary List recent monitoring events
25280
+ * List monitoring events generated for this project.
25281
+ * @summary List monitoring events
25282
25282
  * @param projectId Project ID
25283
- * @param limit Number of recent events to fetch. Maximum is 100. Defaults to 20.
25283
+ * @param limit Maximum number of events to return. Maximum is 100. Defaults to 20.
25284
+ * @param offset Offset in results, can be used in conjunction with LimitResultsParameter to implement paging.
25285
+ * @param startTimestamp
25286
+ * @param endTimestamp
25287
+ * @param eventType Only include events with this event type.
25288
+ * @param status Only include events with this computed delivery status.
25289
+ * @param alertSubscriptionIds Only include events matching these alert subscription IDs (comma-separated list).
25284
25290
  */
25285
25291
  async listMonitoringEvents(projectId, queryParams, options = { headers: {} }) {
25286
25292
  const localVarPath = this.basePath + '/api/{projectId}/monitoring/events'
@@ -25307,6 +25313,24 @@ class MonitoringApi {
25307
25313
  if (typeof (queryParams === null || queryParams === void 0 ? void 0 : queryParams.limit) !== 'undefined' && (queryParams === null || queryParams === void 0 ? void 0 : queryParams.limit) !== null) {
25308
25314
  queryParameters['limit'] = queryParams.limit;
25309
25315
  }
25316
+ if (typeof (queryParams === null || queryParams === void 0 ? void 0 : queryParams.offset) !== 'undefined' && (queryParams === null || queryParams === void 0 ? void 0 : queryParams.offset) !== null) {
25317
+ queryParameters['offset'] = queryParams.offset;
25318
+ }
25319
+ if (typeof (queryParams === null || queryParams === void 0 ? void 0 : queryParams.startTimestamp) !== 'undefined' && (queryParams === null || queryParams === void 0 ? void 0 : queryParams.startTimestamp) !== null) {
25320
+ queryParameters['startTimestamp'] = queryParams.startTimestamp;
25321
+ }
25322
+ if (typeof (queryParams === null || queryParams === void 0 ? void 0 : queryParams.endTimestamp) !== 'undefined' && (queryParams === null || queryParams === void 0 ? void 0 : queryParams.endTimestamp) !== null) {
25323
+ queryParameters['endTimestamp'] = queryParams.endTimestamp;
25324
+ }
25325
+ if (typeof (queryParams === null || queryParams === void 0 ? void 0 : queryParams.eventType) !== 'undefined' && (queryParams === null || queryParams === void 0 ? void 0 : queryParams.eventType) !== null) {
25326
+ queryParameters['eventType'] = queryParams.eventType;
25327
+ }
25328
+ if (typeof (queryParams === null || queryParams === void 0 ? void 0 : queryParams.status) !== 'undefined' && (queryParams === null || queryParams === void 0 ? void 0 : queryParams.status) !== null) {
25329
+ queryParameters['status'] = queryParams.status;
25330
+ }
25331
+ if (typeof (queryParams === null || queryParams === void 0 ? void 0 : queryParams.alertSubscriptionIds) !== 'undefined' && (queryParams === null || queryParams === void 0 ? void 0 : queryParams.alertSubscriptionIds) !== null) {
25332
+ queryParameters['alertSubscriptionIds'] = queryParams.alertSubscriptionIds;
25333
+ }
25310
25334
  localVarHeaderParams = {
25311
25335
  ...localVarHeaderParams,
25312
25336
  ...options.headers,
@@ -67021,7 +67045,7 @@ define("library/sdk/model/feature", ["require", "exports"], function (require, e
67021
67045
  // Generated by studio/openapi/generate-models/convert.ts
67022
67046
  Object.defineProperty(exports, "__esModule", { value: true });
67023
67047
  exports.FeatureValues = void 0;
67024
- exports.FeatureValues = ['signup-thank-you-page', 'stripe-live-mode', 'azure-storage', 'monthly-compute-limit-enforcement', 'pay-as-you-go', 'user-screening-check', 'oauth2', 'external-apps-redirect-flow', 'dataset-versioning', 'oauth2-self-serve'];
67048
+ exports.FeatureValues = ['signup-thank-you-page', 'stripe-live-mode', 'azure-storage', 'monthly-compute-limit-enforcement', 'pay-as-you-go', 'user-screening-check', 'oauth2', 'oauth2-introspection', 'external-apps-redirect-flow', 'dataset-versioning', 'oauth2-self-serve'];
67025
67049
  });
67026
67050
 
67027
67051
 
@@ -69138,6 +69162,7 @@ __exportStar(require("./modelPrediction"), exports);
69138
69162
  __exportStar(require("./modelResult"), exports);
69139
69163
  __exportStar(require("./modelVariantStats"), exports);
69140
69164
  __exportStar(require("./monitoringEvent"), exports);
69165
+ __exportStar(require("./monitoringEventType"), exports);
69141
69166
  __exportStar(require("./moveRawDataRequest"), exports);
69142
69167
  __exportStar(require("./neighborsData"), exports);
69143
69168
  __exportStar(require("./neighborsScore"), exports);
@@ -69697,6 +69722,15 @@ exports.MonitoringEventStatusEnumValues = ['pending', 'processing', 'delivered',
69697
69722
  });
69698
69723
 
69699
69724
 
69725
+ define("library/sdk/model/monitoringEventType", ["require", "exports"], function (require, exports) {
69726
+ "use strict";
69727
+ // Generated by studio/openapi/generate-models/convert.ts
69728
+ Object.defineProperty(exports, "__esModule", { value: true });
69729
+ exports.MonitoringEventTypeValues = void 0;
69730
+ exports.MonitoringEventTypeValues = ['monitoring.confidence.degraded', 'monitoring.device.health_changed', 'monitoring.anomaly.detected', 'monitoring.model.performance_changed'];
69731
+ });
69732
+
69733
+
69700
69734
  define("library/sdk/model/moveRawDataRequest", ["require", "exports"], function (require, exports) {
69701
69735
  "use strict";
69702
69736
  // Generated by studio/openapi/generate-models/convert.ts