edge-impulse-api 1.93.9 → 1.93.11

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 (78) hide show
  1. package/build/browser/edge-impulse-api.d.ts +599 -3
  2. package/build/browser/edge-impulse-api.js +1572 -288
  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/api/organizationCreateProjectApi.d.ts +25 -0
  11. package/build/library/sdk/api/organizationCreateProjectApi.js +136 -0
  12. package/build/library/sdk/api/organizationCreateProjectApi.js.map +1 -1
  13. package/build/library/sdk/api/rawDataApi.d.ts +1 -1
  14. package/build/library/sdk/api/rawDataApi.js +1 -1
  15. package/build/library/sdk/model/createCustomBlockUploadLinkRequest.d.ts +18 -0
  16. package/build/library/sdk/model/createCustomBlockUploadLinkRequest.js +6 -0
  17. package/build/library/sdk/model/createCustomBlockUploadLinkRequest.js.map +1 -0
  18. package/build/library/sdk/model/createCustomBlockUploadLinkResponse.d.ts +22 -0
  19. package/build/library/sdk/model/createCustomBlockUploadLinkResponse.js +4 -0
  20. package/build/library/sdk/model/createCustomBlockUploadLinkResponse.js.map +1 -0
  21. package/build/library/sdk/model/createEventSubscriptionRequest.d.ts +24 -0
  22. package/build/library/sdk/model/createEventSubscriptionRequest.js +4 -0
  23. package/build/library/sdk/model/createEventSubscriptionRequest.js.map +1 -0
  24. package/build/library/sdk/model/createEventSubscriptionResponse.d.ts +12 -0
  25. package/build/library/sdk/model/createEventSubscriptionResponse.js +4 -0
  26. package/build/library/sdk/model/createEventSubscriptionResponse.js.map +1 -0
  27. package/build/library/sdk/model/createWebhookDestinationRequest.d.ts +10 -0
  28. package/build/library/sdk/model/createWebhookDestinationRequest.js +4 -0
  29. package/build/library/sdk/model/createWebhookDestinationRequest.js.map +1 -0
  30. package/build/library/sdk/model/createWebhookDestinationResponse.d.ts +20 -0
  31. package/build/library/sdk/model/createWebhookDestinationResponse.js +4 -0
  32. package/build/library/sdk/model/createWebhookDestinationResponse.js.map +1 -0
  33. package/build/library/sdk/model/eventSubscription.d.ts +32 -0
  34. package/build/library/sdk/model/eventSubscription.js +4 -0
  35. package/build/library/sdk/model/eventSubscription.js.map +1 -0
  36. package/build/library/sdk/model/finalizeCustomBlockUploadRequest.d.ts +22 -0
  37. package/build/library/sdk/model/finalizeCustomBlockUploadRequest.js +6 -0
  38. package/build/library/sdk/model/finalizeCustomBlockUploadRequest.js.map +1 -0
  39. package/build/library/sdk/model/getEventSubscriptionResponse.d.ts +12 -0
  40. package/build/library/sdk/model/getEventSubscriptionResponse.js +4 -0
  41. package/build/library/sdk/model/getEventSubscriptionResponse.js.map +1 -0
  42. package/build/library/sdk/model/getWebhookDestinationResponse.d.ts +12 -0
  43. package/build/library/sdk/model/getWebhookDestinationResponse.js +4 -0
  44. package/build/library/sdk/model/getWebhookDestinationResponse.js.map +1 -0
  45. package/build/library/sdk/model/listEventSubscriptionsResponse.d.ts +12 -0
  46. package/build/library/sdk/model/listEventSubscriptionsResponse.js +4 -0
  47. package/build/library/sdk/model/listEventSubscriptionsResponse.js.map +1 -0
  48. package/build/library/sdk/model/listMonitoringEventsResponse.d.ts +12 -0
  49. package/build/library/sdk/model/listMonitoringEventsResponse.js +4 -0
  50. package/build/library/sdk/model/listMonitoringEventsResponse.js.map +1 -0
  51. package/build/library/sdk/model/listWebhookDestinationsResponse.d.ts +12 -0
  52. package/build/library/sdk/model/listWebhookDestinationsResponse.js +4 -0
  53. package/build/library/sdk/model/listWebhookDestinationsResponse.js.map +1 -0
  54. package/build/library/sdk/model/models.d.ts +19 -0
  55. package/build/library/sdk/model/models.js +19 -0
  56. package/build/library/sdk/model/models.js.map +1 -1
  57. package/build/library/sdk/model/monitoringEvent.d.ts +34 -0
  58. package/build/library/sdk/model/monitoringEvent.js +6 -0
  59. package/build/library/sdk/model/monitoringEvent.js.map +1 -0
  60. package/build/library/sdk/model/oAuthScope.d.ts +1 -1
  61. package/build/library/sdk/model/oAuthScope.js +1 -1
  62. package/build/library/sdk/model/oAuthScope.js.map +1 -1
  63. package/build/library/sdk/model/rotateWebhookDestinationSecretResponse.d.ts +15 -0
  64. package/build/library/sdk/model/rotateWebhookDestinationSecretResponse.js +4 -0
  65. package/build/library/sdk/model/rotateWebhookDestinationSecretResponse.js.map +1 -0
  66. package/build/library/sdk/model/testWebhookDestinationResponse.d.ts +20 -0
  67. package/build/library/sdk/model/testWebhookDestinationResponse.js +4 -0
  68. package/build/library/sdk/model/testWebhookDestinationResponse.js.map +1 -0
  69. package/build/library/sdk/model/updateEventSubscriptionRequest.d.ts +24 -0
  70. package/build/library/sdk/model/updateEventSubscriptionRequest.js +4 -0
  71. package/build/library/sdk/model/updateEventSubscriptionRequest.js.map +1 -0
  72. package/build/library/sdk/model/updateWebhookDestinationRequest.d.ts +14 -0
  73. package/build/library/sdk/model/updateWebhookDestinationRequest.js +4 -0
  74. package/build/library/sdk/model/updateWebhookDestinationRequest.js.map +1 -0
  75. package/build/library/sdk/model/webhookDestination.d.ts +26 -0
  76. package/build/library/sdk/model/webhookDestination.js +4 -0
  77. package/build/library/sdk/model/webhookDestination.js.map +1 -0
  78. 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)
@@ -5259,6 +5448,17 @@ export class OrganizationCreateProjectApi {
5259
5448
  [name: string]: string;
5260
5449
  };
5261
5450
  }): Promise<GenericApiResponse>;
5451
+ /**
5452
+ * Creates a signed link to securely upload a custom block archive directly to S3.
5453
+ * @summary Create pre-signed S3 upload link for a custom block archive
5454
+ * @param organizationId Organization ID
5455
+ * @param createCustomBlockUploadLinkRequest
5456
+ */
5457
+ createCustomBlockUploadLink(organizationId: number, createCustomBlockUploadLinkRequest: CreateCustomBlockUploadLinkRequest, options?: {
5458
+ headers: {
5459
+ [name: string]: string;
5460
+ };
5461
+ }): Promise<CreateCustomBlockUploadLinkResponse>;
5262
5462
  /**
5263
5463
  * Remove a transformation job. This will stop all running jobs.
5264
5464
  * @summary Delete transformation job
@@ -5282,6 +5482,17 @@ export class OrganizationCreateProjectApi {
5282
5482
  [name: string]: string;
5283
5483
  };
5284
5484
  }): Promise<GenericApiResponse>;
5485
+ /**
5486
+ * Verifies a staged custom block archive and starts a custom block build job.
5487
+ * @summary Finalize custom block upload
5488
+ * @param organizationId Organization ID
5489
+ * @param finalizeCustomBlockUploadRequest
5490
+ */
5491
+ finalizeCustomBlockUpload(organizationId: number, finalizeCustomBlockUploadRequest: FinalizeCustomBlockUploadRequest, options?: {
5492
+ headers: {
5493
+ [name: string]: string;
5494
+ };
5495
+ }): Promise<StartJobResponse>;
5285
5496
  /**
5286
5497
  * Get the current status of a transformation job job.
5287
5498
  * @summary Get transformation job status
@@ -9926,7 +10137,7 @@ export class RawDataApi {
9926
10137
  };
9927
10138
  }): Promise<RebalanceDatasetResponse>;
9928
10139
  /**
9929
- * Rebalances the dataset over training / testing categories. This resets the category for all data and splits it 80%/20% between training and testing. This is a deterministic process based on the hash of the name of the data. Returns immediately on small datasets, or starts a job on larger datasets. To get the dataset ratio (as returned by the v1 endpoint), use getDatasetRatio.
10140
+ * Rebalances the dataset over training / testing categories. This resets the category for all data and splits it 80%/20% between training and testing. This is a deterministic process based on the hash of the name of the data. Returns immediately on small datasets, or starts a job on larger datasets. To get the dataset ratio (as returned by the v1 endpoint), use getDatasetRatio. For richer, more powerful dataset splitting with configurable ratios, stratification, and grouping, use splitDataset (`/v1/api/{projectId}/split`).
9930
10141
  * @summary Rebalance dataset
9931
10142
  * @param projectId Project ID
9932
10143
  */
@@ -13841,6 +14052,50 @@ export type CountSamplesResponse = {
13841
14052
  };
13842
14053
 
13843
14054
 
14055
+ export type CreateCustomBlockUploadLinkRequest = {
14056
+ /**
14057
+ * file name
14058
+ */
14059
+ fileName: string;
14060
+ /**
14061
+ * file size in bytes
14062
+ */
14063
+ fileSize: number;
14064
+ /**
14065
+ * hash to identify file changes
14066
+ */
14067
+ fileHash: string;
14068
+ type: CreateCustomBlockUploadLinkRequestTypeEnum;
14069
+ blockId: number;
14070
+ };
14071
+ export type CreateCustomBlockUploadLinkRequestTypeEnum = 'transform' | 'deploy' | 'dsp' | 'transferLearning';
14072
+ export const CreateCustomBlockUploadLinkRequestTypeEnumValues: string[];
14073
+
14074
+
14075
+ export type CreateCustomBlockUploadLinkResponse = {
14076
+ /**
14077
+ * Whether the operation succeeded
14078
+ */
14079
+ success: boolean;
14080
+ /**
14081
+ * Optional error description (set if 'success' was false)
14082
+ */
14083
+ error?: string;
14084
+ /**
14085
+ * S3 Upload Link
14086
+ */
14087
+ url?: string;
14088
+ /**
14089
+ * S3 File Tag
14090
+ */
14091
+ ETag?: string;
14092
+ /**
14093
+ * S3 object key for the staged upload
14094
+ */
14095
+ uploadKey: string;
14096
+ };
14097
+
14098
+
13844
14099
  export type CreateDeveloperProfileResponse = {
13845
14100
  /**
13846
14101
  * Whether the operation succeeded
@@ -13982,6 +14237,45 @@ export type CreateEnterpriseTrialUserRequestUserHasMLModelsInProductionEnum = 'y
13982
14237
  export const CreateEnterpriseTrialUserRequestUserHasMLModelsInProductionEnumValues: string[];
13983
14238
 
13984
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
+
13985
14279
  export type CreateImpulseRequest = {
13986
14280
  /**
13987
14281
  * Name for this impulse (optional). If no name is provided one is created based on your blocks.
@@ -14527,6 +14821,40 @@ export type CreateUserThirdPartyResponseStatusEnum = 'userWasCreated' | 'userNot
14527
14821
  export const CreateUserThirdPartyResponseStatusEnumValues: string[];
14528
14822
 
14529
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
+
14530
14858
  export type CreateWhitelabelRequest = {
14531
14859
  /**
14532
14860
  * The name of the white label.
@@ -16658,6 +16986,40 @@ export type EvaluateResultValue = {
16658
16986
  };
16659
16987
 
16660
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
+
16661
17023
  /**
16662
17024
  * EXPERIMENTAL: Training processor for the impulse-specific-gpu rollout. This field is currently gated by a project
16663
17025
  * experiment and may change in future API versions.
@@ -16755,6 +17117,30 @@ export type Feature = 'signup-thank-you-page' | 'stripe-live-mode' | 'azure-stor
16755
17117
  export const FeatureValues: string[];
16756
17118
 
16757
17119
 
17120
+ export type FinalizeCustomBlockUploadRequest = {
17121
+ /**
17122
+ * S3 object key for the staged upload
17123
+ */
17124
+ uploadKey: string;
17125
+ /**
17126
+ * file name
17127
+ */
17128
+ fileName: string;
17129
+ /**
17130
+ * file size in bytes
17131
+ */
17132
+ fileSize: number;
17133
+ /**
17134
+ * hash to identify file changes
17135
+ */
17136
+ fileHash: string;
17137
+ type: FinalizeCustomBlockUploadRequestTypeEnum;
17138
+ blockId: number;
17139
+ };
17140
+ export type FinalizeCustomBlockUploadRequestTypeEnum = 'transform' | 'deploy' | 'dsp' | 'transferLearning';
17141
+ export const FinalizeCustomBlockUploadRequestTypeEnumValues: string[];
17142
+
17143
+
16758
17144
  export type FindSegmentSampleRequest = {
16759
17145
  /**
16760
17146
  * If set, the segments are automatically shifted randomly, to make the dataset distribution more uniform.
@@ -17254,6 +17640,19 @@ export type GetEmailVerificationStatusResponse = {
17254
17640
  };
17255
17641
 
17256
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
+
17257
17656
  export type GetFeatureFlagsResponse = {
17258
17657
  /**
17259
17658
  * Whether the operation succeeded
@@ -18569,6 +18968,19 @@ export type GetUserResponse = {
18569
18968
  };
18570
18969
 
18571
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
+
18572
18984
  export type GetWhitelabelDomainResponse = {
18573
18985
  /**
18574
18986
  * Whether the operation succeeded
@@ -19985,6 +20397,19 @@ export type ListEnterpriseTrialsResponse = {
19985
20397
  };
19986
20398
 
19987
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
+
19988
20413
  export type ListHmacKeysResponse = {
19989
20414
  /**
19990
20415
  * Whether the operation succeeded
@@ -20034,6 +20459,19 @@ export type ListModelsResponse = {
20034
20459
  };
20035
20460
 
20036
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
+
20037
20475
  export type ListOrganizationApiKeysResponse = {
20038
20476
  /**
20039
20477
  * Whether the operation succeeded
@@ -20518,6 +20956,19 @@ export type ListVersionsResponse = {
20518
20956
  };
20519
20957
 
20520
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
+
20521
20972
  export type LogAnalyticsEventRequest = {
20522
20973
  /**
20523
20974
  * Optional session ID for users who have not signed in yet. Helps match anonymous activity with user activity once
@@ -20740,6 +21191,42 @@ export type ModelVariantStats = {
20740
21191
  };
20741
21192
 
20742
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
+
20743
21230
  export type MoveRawDataRequest = {
20744
21231
  newCategory: RawDataCategory;
20745
21232
  };
@@ -20804,7 +21291,7 @@ export type NeighborsScore = {
20804
21291
  };
20805
21292
 
20806
21293
 
20807
- 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';
20808
21295
  export const OAuthScopeValues: string[];
20809
21296
 
20810
21297
 
@@ -24614,6 +25101,23 @@ export type RestoreProjectRequest = {
24614
25101
  };
24615
25102
 
24616
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
+
24617
25121
  export type RunOrganizationPipelineResponse = {
24618
25122
  /**
24619
25123
  * Whether the operation succeeded
@@ -25775,6 +26279,28 @@ export type TestPretrainedModelResponseAllOfFreeformResultOutputTensorsDataTypeE
25775
26279
  export const TestPretrainedModelResponseAllOfFreeformResultOutputTensorsDataTypeEnumValues: string[];
25776
26280
 
25777
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
+
25778
26304
  export type Theme = {
25779
26305
  id: number;
25780
26306
  ownerUserId?: number;
@@ -26184,6 +26710,32 @@ export type UpdateDatasetVersionRequest = {
26184
26710
  };
26185
26711
 
26186
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
+
26187
26739
  export type UpdateImpulseRequest = {
26188
26740
  name?: string;
26189
26741
  tags?: string[];
@@ -26841,6 +27393,22 @@ export type UpdateVersionRequest = {
26841
27393
  };
26842
27394
 
26843
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
+
26844
27412
  export type UpdateWhitelabelDefaultDeploymentTargetRequest = {
26845
27413
  /**
26846
27414
  * Name of the default deployment target
@@ -27755,6 +28323,34 @@ export type VlmPromptConfigParameters = {
27755
28323
  export type VlmSetConfigResponse = GenericApiResponse;
27756
28324
 
27757
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
+
27758
28354
  export type Whitelabel = {
27759
28355
  id: number;
27760
28356
  name: string;