edge-impulse-api 1.93.10 → 1.93.12

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 (64) hide show
  1. package/build/browser/edge-impulse-api.d.ts +508 -2
  2. package/build/browser/edge-impulse-api.js +1250 -130
  3. package/build/browser/edge-impulse-api.js.map +1 -1
  4. package/build/library/sdk/api/apis.d.ts +3 -1
  5. package/build/library/sdk/api/apis.js +3 -1
  6. package/build/library/sdk/api/apis.js.map +1 -1
  7. package/build/library/sdk/api/monitoringApi.d.ts +204 -0
  8. package/build/library/sdk/api/monitoringApi.js +985 -0
  9. package/build/library/sdk/api/monitoringApi.js.map +1 -0
  10. package/build/library/sdk/model/createEventSubscriptionRequest.d.ts +24 -0
  11. package/build/library/sdk/model/createEventSubscriptionRequest.js +4 -0
  12. package/build/library/sdk/model/createEventSubscriptionRequest.js.map +1 -0
  13. package/build/library/sdk/model/createEventSubscriptionResponse.d.ts +12 -0
  14. package/build/library/sdk/model/createEventSubscriptionResponse.js +4 -0
  15. package/build/library/sdk/model/createEventSubscriptionResponse.js.map +1 -0
  16. package/build/library/sdk/model/createWebhookDestinationRequest.d.ts +10 -0
  17. package/build/library/sdk/model/createWebhookDestinationRequest.js +4 -0
  18. package/build/library/sdk/model/createWebhookDestinationRequest.js.map +1 -0
  19. package/build/library/sdk/model/createWebhookDestinationResponse.d.ts +20 -0
  20. package/build/library/sdk/model/createWebhookDestinationResponse.js +4 -0
  21. package/build/library/sdk/model/createWebhookDestinationResponse.js.map +1 -0
  22. package/build/library/sdk/model/eventSubscription.d.ts +32 -0
  23. package/build/library/sdk/model/eventSubscription.js +4 -0
  24. package/build/library/sdk/model/eventSubscription.js.map +1 -0
  25. package/build/library/sdk/model/getEventSubscriptionResponse.d.ts +12 -0
  26. package/build/library/sdk/model/getEventSubscriptionResponse.js +4 -0
  27. package/build/library/sdk/model/getEventSubscriptionResponse.js.map +1 -0
  28. package/build/library/sdk/model/getWebhookDestinationResponse.d.ts +12 -0
  29. package/build/library/sdk/model/getWebhookDestinationResponse.js +4 -0
  30. package/build/library/sdk/model/getWebhookDestinationResponse.js.map +1 -0
  31. package/build/library/sdk/model/listEventSubscriptionsResponse.d.ts +12 -0
  32. package/build/library/sdk/model/listEventSubscriptionsResponse.js +4 -0
  33. package/build/library/sdk/model/listEventSubscriptionsResponse.js.map +1 -0
  34. package/build/library/sdk/model/listMonitoringEventsResponse.d.ts +12 -0
  35. package/build/library/sdk/model/listMonitoringEventsResponse.js +4 -0
  36. package/build/library/sdk/model/listMonitoringEventsResponse.js.map +1 -0
  37. package/build/library/sdk/model/listWebhookDestinationsResponse.d.ts +12 -0
  38. package/build/library/sdk/model/listWebhookDestinationsResponse.js +4 -0
  39. package/build/library/sdk/model/listWebhookDestinationsResponse.js.map +1 -0
  40. package/build/library/sdk/model/models.d.ts +16 -0
  41. package/build/library/sdk/model/models.js +16 -0
  42. package/build/library/sdk/model/models.js.map +1 -1
  43. package/build/library/sdk/model/monitoringEvent.d.ts +34 -0
  44. package/build/library/sdk/model/monitoringEvent.js +6 -0
  45. package/build/library/sdk/model/monitoringEvent.js.map +1 -0
  46. package/build/library/sdk/model/oAuthScope.d.ts +1 -1
  47. package/build/library/sdk/model/oAuthScope.js +1 -1
  48. package/build/library/sdk/model/oAuthScope.js.map +1 -1
  49. package/build/library/sdk/model/rotateWebhookDestinationSecretResponse.d.ts +15 -0
  50. package/build/library/sdk/model/rotateWebhookDestinationSecretResponse.js +4 -0
  51. package/build/library/sdk/model/rotateWebhookDestinationSecretResponse.js.map +1 -0
  52. package/build/library/sdk/model/testWebhookDestinationResponse.d.ts +20 -0
  53. package/build/library/sdk/model/testWebhookDestinationResponse.js +4 -0
  54. package/build/library/sdk/model/testWebhookDestinationResponse.js.map +1 -0
  55. package/build/library/sdk/model/updateEventSubscriptionRequest.d.ts +24 -0
  56. package/build/library/sdk/model/updateEventSubscriptionRequest.js +4 -0
  57. package/build/library/sdk/model/updateEventSubscriptionRequest.js.map +1 -0
  58. package/build/library/sdk/model/updateWebhookDestinationRequest.d.ts +14 -0
  59. package/build/library/sdk/model/updateWebhookDestinationRequest.js +4 -0
  60. package/build/library/sdk/model/updateWebhookDestinationRequest.js.map +1 -0
  61. package/build/library/sdk/model/webhookDestination.d.ts +26 -0
  62. package/build/library/sdk/model/webhookDestination.js +4 -0
  63. package/build/library/sdk/model/webhookDestination.js.map +1 -0
  64. package/package.json +1 -1
@@ -95,7 +95,7 @@ export interface RequestDetailedFile {
95
95
  };
96
96
  }
97
97
  export type RequestFile = RequestDetailedFile;
98
- export const APIS: (typeof AdminApi | typeof AuthApi | typeof CDNApi | typeof CanaryApi | typeof ClassifyApi | typeof DSPApi | typeof DatasetVersionsApi | typeof DeploymentApi | typeof DevicesApi | typeof EmailVerificationApi | typeof ExportApi | typeof FeatureFlagsApi | typeof HealthApi | typeof ImpulseApi | typeof IntegrationsApi | typeof JobsApi | typeof LearnApi | typeof LoginApi | typeof MetricsApi | typeof OptimizationApi | typeof OrganizationBlocksApi | typeof OrganizationCreateProjectApi | typeof OrganizationDataApi | typeof OrganizationDataCampaignsApi | typeof OrganizationJobsApi | typeof OrganizationPipelinesApi | typeof OrganizationPortalsApi | typeof OrganizationsApi | typeof PerformanceCalibrationApi | typeof PostProcessingApi | typeof ProjectsApi | typeof RawDataApi | typeof TestApi | typeof ThemesApi | typeof ThirdPartyAuthApi | typeof UploadPortalApi | typeof UserApi | typeof VlmApi | typeof WhitelabelsApi)[];
98
+ export const APIS: (typeof AdminApi | typeof AuthApi | typeof CDNApi | typeof CanaryApi | typeof ClassifyApi | typeof DSPApi | typeof DatasetVersionsApi | typeof DeploymentApi | typeof DevicesApi | typeof EmailVerificationApi | typeof ExportApi | typeof FeatureFlagsApi | typeof HealthApi | typeof ImpulseApi | typeof IntegrationsApi | typeof JobsApi | typeof LearnApi | typeof LoginApi | typeof MetricsApi | typeof MonitoringApi | typeof OptimizationApi | typeof OrganizationBlocksApi | typeof OrganizationCreateProjectApi | typeof OrganizationDataApi | typeof OrganizationDataCampaignsApi | typeof OrganizationJobsApi | typeof OrganizationPipelinesApi | typeof OrganizationPortalsApi | typeof OrganizationsApi | typeof PerformanceCalibrationApi | typeof PostProcessingApi | typeof ProjectsApi | typeof RawDataApi | typeof TestApi | typeof ThemesApi | typeof ThirdPartyAuthApi | typeof UploadPortalApi | typeof UserApi | typeof VlmApi | typeof WhitelabelsApi)[];
99
99
 
100
100
 
101
101
  /**
@@ -4524,6 +4524,195 @@ export class MetricsApi {
4524
4524
  }
4525
4525
 
4526
4526
 
4527
+ /**
4528
+ * Edge Impulse API
4529
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
4530
+ *
4531
+ * The version of the OpenAPI document: 1.0.0
4532
+ *
4533
+ *
4534
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
4535
+ * https://openapi-generator.tech
4536
+ * Do not edit the class manually.
4537
+ */
4538
+ export enum MonitoringApiApiKeys {
4539
+ ApiKeyAuthentication = 0,
4540
+ JWTAuthentication = 1,
4541
+ JWTHttpHeaderAuthentication = 2
4542
+ }
4543
+ type listMonitoringEventsQueryParams = {
4544
+ limit?: number;
4545
+ };
4546
+ export type MonitoringApiOpts = {
4547
+ extraHeaders?: Record<string, string>;
4548
+ };
4549
+ export class MonitoringApi {
4550
+ protected _basePath: string;
4551
+ protected defaultHeaders: Record<string, string>;
4552
+ protected _opts: MonitoringApiOpts;
4553
+ protected authentications: {
4554
+ default: Authentication;
4555
+ ApiKeyAuthentication: ApiKeyAuth;
4556
+ OAuth2: OAuth;
4557
+ JWTAuthentication: ApiKeyAuth;
4558
+ JWTHttpHeaderAuthentication: ApiKeyAuth;
4559
+ };
4560
+ protected handleResponse(response: Response | Response, returnType: string | undefined): Promise<any>;
4561
+ constructor(basePath?: string, opts?: MonitoringApiOpts);
4562
+ set basePath(basePath: string);
4563
+ get basePath(): string;
4564
+ set opts(opts: MonitoringApiOpts);
4565
+ get opts(): MonitoringApiOpts;
4566
+ setDefaultAuthentication(auth: Authentication): void;
4567
+ setApiKey(key: MonitoringApiApiKeys, value: string | undefined): void;
4568
+ set accessToken(token: string);
4569
+ /**
4570
+ * Create a monitoring event subscription for this project.
4571
+ * @summary Create event subscription
4572
+ * @param projectId Project ID
4573
+ * @param createEventSubscriptionRequest
4574
+ */
4575
+ createEventSubscription(projectId: number, createEventSubscriptionRequest: CreateEventSubscriptionRequest, options?: {
4576
+ headers: {
4577
+ [name: string]: string;
4578
+ };
4579
+ }): Promise<CreateEventSubscriptionResponse>;
4580
+ /**
4581
+ * Create a new webhook destination for this project.
4582
+ * @summary Create a new webhook destination
4583
+ * @param projectId Project ID
4584
+ * @param createWebhookDestinationRequest
4585
+ */
4586
+ createWebhookDestination(projectId: number, createWebhookDestinationRequest: CreateWebhookDestinationRequest, options?: {
4587
+ headers: {
4588
+ [name: string]: string;
4589
+ };
4590
+ }): Promise<CreateWebhookDestinationResponse>;
4591
+ /**
4592
+ * Delete a monitoring event subscription.
4593
+ * @summary Delete event subscription
4594
+ * @param projectId Project ID
4595
+ * @param eventSubscriptionId Event subscription ID
4596
+ */
4597
+ deleteEventSubscription(projectId: number, eventSubscriptionId: number, options?: {
4598
+ headers: {
4599
+ [name: string]: string;
4600
+ };
4601
+ }): Promise<GenericApiResponse>;
4602
+ /**
4603
+ * Delete a webhook destination.
4604
+ * @summary Delete webhook destination
4605
+ * @param projectId Project ID
4606
+ * @param webhookId Webhook destination ID
4607
+ */
4608
+ deleteWebhookDestination(projectId: number, webhookId: string, options?: {
4609
+ headers: {
4610
+ [name: string]: string;
4611
+ };
4612
+ }): Promise<GenericApiResponse>;
4613
+ /**
4614
+ * Get details about a monitoring event subscription.
4615
+ * @summary Get event subscription
4616
+ * @param projectId Project ID
4617
+ * @param eventSubscriptionId Event subscription ID
4618
+ */
4619
+ getEventSubscription(projectId: number, eventSubscriptionId: number, options?: {
4620
+ headers: {
4621
+ [name: string]: string;
4622
+ };
4623
+ }): Promise<GetEventSubscriptionResponse>;
4624
+ /**
4625
+ * Get details about a webhook destination.
4626
+ * @summary Get webhook destination
4627
+ * @param projectId Project ID
4628
+ * @param webhookId Webhook destination ID
4629
+ */
4630
+ getWebhookDestination(projectId: number, webhookId: string, options?: {
4631
+ headers: {
4632
+ [name: string]: string;
4633
+ };
4634
+ }): Promise<GetWebhookDestinationResponse>;
4635
+ /**
4636
+ * List all monitoring event subscriptions for this project.
4637
+ * @summary List event subscriptions
4638
+ * @param projectId Project ID
4639
+ */
4640
+ listEventSubscriptions(projectId: number, options?: {
4641
+ headers: {
4642
+ [name: string]: string;
4643
+ };
4644
+ }): Promise<ListEventSubscriptionsResponse>;
4645
+ /**
4646
+ * List recent monitoring events generated for this project.
4647
+ * @summary List recent monitoring events
4648
+ * @param projectId Project ID
4649
+ * @param limit Number of recent events to fetch. Maximum is 100. Defaults to 20.
4650
+ */
4651
+ listMonitoringEvents(projectId: number, queryParams?: listMonitoringEventsQueryParams, options?: {
4652
+ headers: {
4653
+ [name: string]: string;
4654
+ };
4655
+ }): Promise<ListMonitoringEventsResponse>;
4656
+ /**
4657
+ * List all webhook destinations for this project.
4658
+ * @summary List webhook destinations
4659
+ * @param projectId Project ID
4660
+ */
4661
+ listWebhookDestinations(projectId: number, options?: {
4662
+ headers: {
4663
+ [name: string]: string;
4664
+ };
4665
+ }): Promise<ListWebhookDestinationsResponse>;
4666
+ /**
4667
+ * Rotate the signing secret for a webhook destination. Note that rotating the secret does not reset consecutive_failures, and does not re-enable a disabled webhook. Use the update endpoint for that.
4668
+ * @summary Rotate webhook destination secret
4669
+ * @param projectId Project ID
4670
+ * @param webhookId Webhook destination ID
4671
+ */
4672
+ rotateWebhookDestinationSecret(projectId: number, webhookId: string, options?: {
4673
+ headers: {
4674
+ [name: string]: string;
4675
+ };
4676
+ }): Promise<RotateWebhookDestinationSecretResponse>;
4677
+ /**
4678
+ * Send a test webhook to the configured URL for this destination. This is useful for testing if the webhook is configured correctly.
4679
+ * @summary Test webhook destination
4680
+ * @param projectId Project ID
4681
+ * @param webhookId Webhook destination ID
4682
+ */
4683
+ testWebhookDestination(projectId: number, webhookId: string, options?: {
4684
+ headers: {
4685
+ [name: string]: string;
4686
+ };
4687
+ }): Promise<TestWebhookDestinationResponse>;
4688
+ /**
4689
+ * Update a monitoring event subscription.
4690
+ * @summary Update event subscription
4691
+ * @param projectId Project ID
4692
+ * @param eventSubscriptionId Event subscription ID
4693
+ * @param updateEventSubscriptionRequest
4694
+ */
4695
+ updateEventSubscription(projectId: number, eventSubscriptionId: number, updateEventSubscriptionRequest: UpdateEventSubscriptionRequest, options?: {
4696
+ headers: {
4697
+ [name: string]: string;
4698
+ };
4699
+ }): Promise<GenericApiResponse>;
4700
+ /**
4701
+ * Update the details of a webhook destination. Note that re-enabling a previously auto-disabled webhook resets consecutive_failures to 0. Note that only the rotate-secret endpoint can update the signing secret.
4702
+ * @summary Update webhook destination
4703
+ * @param projectId Project ID
4704
+ * @param webhookId Webhook destination ID
4705
+ * @param updateWebhookDestinationRequest
4706
+ */
4707
+ updateWebhookDestination(projectId: number, webhookId: string, updateWebhookDestinationRequest: UpdateWebhookDestinationRequest, options?: {
4708
+ headers: {
4709
+ [name: string]: string;
4710
+ };
4711
+ }): Promise<GenericApiResponse>;
4712
+ }
4713
+ export {};
4714
+
4715
+
4527
4716
  /**
4528
4717
  * Edge Impulse API
4529
4718
  * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
@@ -14048,6 +14237,45 @@ export type CreateEnterpriseTrialUserRequestUserHasMLModelsInProductionEnum = 'y
14048
14237
  export const CreateEnterpriseTrialUserRequestUserHasMLModelsInProductionEnumValues: string[];
14049
14238
 
14050
14239
 
14240
+ export type CreateEventSubscriptionRequest = {
14241
+ /**
14242
+ * Monitoring event type to subscribe to.
14243
+ */
14244
+ eventType: string;
14245
+ /**
14246
+ * Optional webhook destination ID to route this event subscription to. Set to null to detach.
14247
+ */
14248
+ webhookId?: string | null;
14249
+ /**
14250
+ * Optional description for this event subscription.
14251
+ */
14252
+ description?: string;
14253
+ /**
14254
+ * Whether this event subscription is enabled. If not set, it will default to true.
14255
+ */
14256
+ enabled?: boolean;
14257
+ /**
14258
+ * Optional key-value pair filters applied to event metadata for this destination.
14259
+ */
14260
+ metadataFilters?: {
14261
+ [key: string]: string;
14262
+ };
14263
+ };
14264
+
14265
+
14266
+ export type CreateEventSubscriptionResponse = {
14267
+ /**
14268
+ * Whether the operation succeeded
14269
+ */
14270
+ success: boolean;
14271
+ /**
14272
+ * Optional error description (set if 'success' was false)
14273
+ */
14274
+ error?: string;
14275
+ subscription: EventSubscription;
14276
+ };
14277
+
14278
+
14051
14279
  export type CreateImpulseRequest = {
14052
14280
  /**
14053
14281
  * Name for this impulse (optional). If no name is provided one is created based on your blocks.
@@ -14593,6 +14821,40 @@ export type CreateUserThirdPartyResponseStatusEnum = 'userWasCreated' | 'userNot
14593
14821
  export const CreateUserThirdPartyResponseStatusEnumValues: string[];
14594
14822
 
14595
14823
 
14824
+ export type CreateWebhookDestinationRequest = {
14825
+ /**
14826
+ * The URL to send the webhook POST requests to. Must start with https://.
14827
+ */
14828
+ url: string;
14829
+ /**
14830
+ * Optional description for the webhook destination.
14831
+ */
14832
+ description?: string;
14833
+ };
14834
+
14835
+
14836
+ export type CreateWebhookDestinationResponse = {
14837
+ /**
14838
+ * Whether the operation succeeded
14839
+ */
14840
+ success: boolean;
14841
+ /**
14842
+ * Optional error description (set if 'success' was false)
14843
+ */
14844
+ error?: string;
14845
+ /**
14846
+ * The unique identifier of the created webhook destination. This ID is used to manage the destination (e.g., update
14847
+ * or delete it).
14848
+ */
14849
+ id: string;
14850
+ /**
14851
+ * A secret key used to verify the authenticity of the webhook requests sent to the specified URL. It can only be
14852
+ * retrieved once at the time of subscription creation, so make sure to store it securely.
14853
+ */
14854
+ signingSecret: string;
14855
+ };
14856
+
14857
+
14596
14858
  export type CreateWhitelabelRequest = {
14597
14859
  /**
14598
14860
  * The name of the white label.
@@ -16724,6 +16986,40 @@ export type EvaluateResultValue = {
16724
16986
  };
16725
16987
 
16726
16988
 
16989
+ export type EventSubscription = {
16990
+ /**
16991
+ * Numeric ID of the event subscription.
16992
+ */
16993
+ id: number;
16994
+ /**
16995
+ * Monitoring event type.
16996
+ */
16997
+ eventType: string;
16998
+ /**
16999
+ * Optional webhook destination ID this event subscription is attached to.
17000
+ */
17001
+ webhookId?: string | null;
17002
+ /**
17003
+ * Optional description for this event subscription.
17004
+ */
17005
+ description?: string;
17006
+ /**
17007
+ * Whether this event subscription is enabled.
17008
+ */
17009
+ enabled: boolean;
17010
+ /**
17011
+ * Timestamp of when the event subscription was created.
17012
+ */
17013
+ created: Date;
17014
+ /**
17015
+ * Optional key-value pair filters applied to event metadata for this destination.
17016
+ */
17017
+ metadataFilters?: {
17018
+ [key: string]: string;
17019
+ };
17020
+ };
17021
+
17022
+
16727
17023
  /**
16728
17024
  * EXPERIMENTAL: Training processor for the impulse-specific-gpu rollout. This field is currently gated by a project
16729
17025
  * experiment and may change in future API versions.
@@ -17344,6 +17640,19 @@ export type GetEmailVerificationStatusResponse = {
17344
17640
  };
17345
17641
 
17346
17642
 
17643
+ export type GetEventSubscriptionResponse = {
17644
+ /**
17645
+ * Whether the operation succeeded
17646
+ */
17647
+ success: boolean;
17648
+ /**
17649
+ * Optional error description (set if 'success' was false)
17650
+ */
17651
+ error?: string;
17652
+ subscription: EventSubscription;
17653
+ };
17654
+
17655
+
17347
17656
  export type GetFeatureFlagsResponse = {
17348
17657
  /**
17349
17658
  * Whether the operation succeeded
@@ -18659,6 +18968,19 @@ export type GetUserResponse = {
18659
18968
  };
18660
18969
 
18661
18970
 
18971
+ export type GetWebhookDestinationResponse = {
18972
+ /**
18973
+ * Whether the operation succeeded
18974
+ */
18975
+ success: boolean;
18976
+ /**
18977
+ * Optional error description (set if 'success' was false)
18978
+ */
18979
+ error?: string;
18980
+ webhook: WebhookDestination;
18981
+ };
18982
+
18983
+
18662
18984
  export type GetWhitelabelDomainResponse = {
18663
18985
  /**
18664
18986
  * Whether the operation succeeded
@@ -20075,6 +20397,19 @@ export type ListEnterpriseTrialsResponse = {
20075
20397
  };
20076
20398
 
20077
20399
 
20400
+ export type ListEventSubscriptionsResponse = {
20401
+ /**
20402
+ * Whether the operation succeeded
20403
+ */
20404
+ success: boolean;
20405
+ /**
20406
+ * Optional error description (set if 'success' was false)
20407
+ */
20408
+ error?: string;
20409
+ subscriptions: EventSubscription[];
20410
+ };
20411
+
20412
+
20078
20413
  export type ListHmacKeysResponse = {
20079
20414
  /**
20080
20415
  * Whether the operation succeeded
@@ -20124,6 +20459,19 @@ export type ListModelsResponse = {
20124
20459
  };
20125
20460
 
20126
20461
 
20462
+ export type ListMonitoringEventsResponse = {
20463
+ /**
20464
+ * Whether the operation succeeded
20465
+ */
20466
+ success: boolean;
20467
+ /**
20468
+ * Optional error description (set if 'success' was false)
20469
+ */
20470
+ error?: string;
20471
+ events: MonitoringEvent[];
20472
+ };
20473
+
20474
+
20127
20475
  export type ListOrganizationApiKeysResponse = {
20128
20476
  /**
20129
20477
  * Whether the operation succeeded
@@ -20608,6 +20956,19 @@ export type ListVersionsResponse = {
20608
20956
  };
20609
20957
 
20610
20958
 
20959
+ export type ListWebhookDestinationsResponse = {
20960
+ /**
20961
+ * Whether the operation succeeded
20962
+ */
20963
+ success: boolean;
20964
+ /**
20965
+ * Optional error description (set if 'success' was false)
20966
+ */
20967
+ error?: string;
20968
+ webhooks: WebhookDestination[];
20969
+ };
20970
+
20971
+
20611
20972
  export type LogAnalyticsEventRequest = {
20612
20973
  /**
20613
20974
  * Optional session ID for users who have not signed in yet. Helps match anonymous activity with user activity once
@@ -20830,6 +21191,42 @@ export type ModelVariantStats = {
20830
21191
  };
20831
21192
 
20832
21193
 
21194
+ export type MonitoringEvent = {
21195
+ /**
21196
+ * Numeric ID of the monitoring event row.
21197
+ */
21198
+ id: number;
21199
+ /**
21200
+ * Stable event identifier.
21201
+ */
21202
+ eventId: string;
21203
+ /**
21204
+ * Monitoring event type.
21205
+ */
21206
+ eventType: string;
21207
+ /**
21208
+ * Event payload.
21209
+ */
21210
+ payload: {
21211
+ [key: string]: object;
21212
+ };
21213
+ /**
21214
+ * Processing status for this event.
21215
+ */
21216
+ status: MonitoringEventStatusEnum;
21217
+ /**
21218
+ * Timestamp of when this event was created.
21219
+ */
21220
+ created: Date;
21221
+ /**
21222
+ * Timestamp of when this event was processed.
21223
+ */
21224
+ processedAt?: Date | null;
21225
+ };
21226
+ export type MonitoringEventStatusEnum = 'pending' | 'processing' | 'delivered' | 'failed';
21227
+ export const MonitoringEventStatusEnumValues: string[];
21228
+
21229
+
20833
21230
  export type MoveRawDataRequest = {
20834
21231
  newCategory: RawDataCategory;
20835
21232
  };
@@ -20894,7 +21291,7 @@ export type NeighborsScore = {
20894
21291
  };
20895
21292
 
20896
21293
 
20897
- export type OAuthScope = 'deployments:create' | 'deployments:delete' | 'deployments:read' | 'deployments:update' | 'devices:create' | 'devices:delete' | 'devices:read' | 'devices:update' | 'jobs:read' | 'organizations:read' | 'projects:apikeys:ingestiononly:create' | 'projects:apikeys:ingestiononly:delete' | 'projects:create' | 'projects:delete' | 'projects:read' | 'projects:update' | 'user:read' | 'user:update';
21294
+ export type OAuthScope = 'deployments:create' | 'deployments:delete' | 'deployments:read' | 'deployments:update' | 'devices:create' | 'devices:delete' | 'devices:read' | 'devices:update' | 'jobs:read' | 'organizations:read' | 'projects:apikeys:ingestiononly:create' | 'projects:apikeys:ingestiononly:delete' | 'projects:create' | 'projects:delete' | 'projects:monitoring:write' | 'projects:monitoring:update' | 'projects:monitoring:read' | 'projects:monitoring:delete' | 'projects:read' | 'projects:update' | 'user:read' | 'user:update';
20898
21295
  export const OAuthScopeValues: string[];
20899
21296
 
20900
21297
 
@@ -24704,6 +25101,23 @@ export type RestoreProjectRequest = {
24704
25101
  };
24705
25102
 
24706
25103
 
25104
+ export type RotateWebhookDestinationSecretResponse = {
25105
+ /**
25106
+ * Whether the operation succeeded
25107
+ */
25108
+ success: boolean;
25109
+ /**
25110
+ * Optional error description (set if 'success' was false)
25111
+ */
25112
+ error?: string;
25113
+ /**
25114
+ * A new secret key used to verify the authenticity of the webhook requests sent to the specified URL. It can only be
25115
+ * retrieved once at the time of rotation, so make sure to store it securely.
25116
+ */
25117
+ signingSecret: string;
25118
+ };
25119
+
25120
+
24707
25121
  export type RunOrganizationPipelineResponse = {
24708
25122
  /**
24709
25123
  * Whether the operation succeeded
@@ -25865,6 +26279,28 @@ export type TestPretrainedModelResponseAllOfFreeformResultOutputTensorsDataTypeE
25865
26279
  export const TestPretrainedModelResponseAllOfFreeformResultOutputTensorsDataTypeEnumValues: string[];
25866
26280
 
25867
26281
 
26282
+ export type TestWebhookDestinationResponse = {
26283
+ /**
26284
+ * Whether the test webhook request was successfully sent and received by the endpoint.
26285
+ */
26286
+ success: boolean;
26287
+ /**
26288
+ * If the test webhook request failed, this field contains the error message or reason for failure.
26289
+ */
26290
+ error?: string;
26291
+ /**
26292
+ * The delivery status of the test webhook request (e.g., 200 for success, 400 for bad request, etc.). If the request
26293
+ * failed to be sent at all (e.g., due to network error), this field may be null and the 'error' field will contain
26294
+ * the error message.
26295
+ */
26296
+ deliveryStatus: number;
26297
+ /**
26298
+ * The response time of the endpoint in milliseconds.
26299
+ */
26300
+ responseTimeMs: number;
26301
+ };
26302
+
26303
+
25868
26304
  export type Theme = {
25869
26305
  id: number;
25870
26306
  ownerUserId?: number;
@@ -26274,6 +26710,32 @@ export type UpdateDatasetVersionRequest = {
26274
26710
  };
26275
26711
 
26276
26712
 
26713
+ export type UpdateEventSubscriptionRequest = {
26714
+ /**
26715
+ * Monitoring event type to subscribe to.
26716
+ */
26717
+ eventType?: string;
26718
+ /**
26719
+ * Optional webhook destination ID to route this event subscription to. Set to null to detach.
26720
+ */
26721
+ webhookId?: string | null;
26722
+ /**
26723
+ * Optional description for this event subscription.
26724
+ */
26725
+ description?: string;
26726
+ /**
26727
+ * Whether this event subscription is enabled.
26728
+ */
26729
+ enabled?: boolean;
26730
+ /**
26731
+ * Optional key-value pair filters applied to event metadata for this destination.
26732
+ */
26733
+ metadataFilters?: {
26734
+ [key: string]: string;
26735
+ };
26736
+ };
26737
+
26738
+
26277
26739
  export type UpdateImpulseRequest = {
26278
26740
  name?: string;
26279
26741
  tags?: string[];
@@ -26931,6 +27393,22 @@ export type UpdateVersionRequest = {
26931
27393
  };
26932
27394
 
26933
27395
 
27396
+ export type UpdateWebhookDestinationRequest = {
27397
+ /**
27398
+ * The URL to send the webhook POST requests to. Must start with https://.
27399
+ */
27400
+ url?: string;
27401
+ /**
27402
+ * Optional description for the webhook destination.
27403
+ */
27404
+ description?: string;
27405
+ /**
27406
+ * Whether the webhook destination is currently enabled.
27407
+ */
27408
+ enabled?: boolean;
27409
+ };
27410
+
27411
+
26934
27412
  export type UpdateWhitelabelDefaultDeploymentTargetRequest = {
26935
27413
  /**
26936
27414
  * Name of the default deployment target
@@ -27845,6 +28323,34 @@ export type VlmPromptConfigParameters = {
27845
28323
  export type VlmSetConfigResponse = GenericApiResponse;
27846
28324
 
27847
28325
 
28326
+ export type WebhookDestination = {
28327
+ /**
28328
+ * The unique identifier of the webhook destination.
28329
+ */
28330
+ id: string;
28331
+ /**
28332
+ * The URL to which the webhook POST requests are sent.
28333
+ */
28334
+ url: string;
28335
+ /**
28336
+ * Description for the webhook destination.
28337
+ */
28338
+ description?: string;
28339
+ /**
28340
+ * Whether the webhook destination is currently enabled.
28341
+ */
28342
+ enabled?: boolean;
28343
+ /**
28344
+ * Number of consecutive failed webhook deliveries. This can be used to monitor the health of the webhook endpoint.
28345
+ */
28346
+ consecutiveFailures?: number;
28347
+ /**
28348
+ * Timestamp of when the webhook destination was created.
28349
+ */
28350
+ created?: Date;
28351
+ };
28352
+
28353
+
27848
28354
  export type Whitelabel = {
27849
28355
  id: number;
27850
28356
  name: string;