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.
- package/build/browser/edge-impulse-api.d.ts +508 -2
- package/build/browser/edge-impulse-api.js +1250 -130
- package/build/browser/edge-impulse-api.js.map +1 -1
- package/build/library/sdk/api/apis.d.ts +3 -1
- package/build/library/sdk/api/apis.js +3 -1
- package/build/library/sdk/api/apis.js.map +1 -1
- package/build/library/sdk/api/monitoringApi.d.ts +204 -0
- package/build/library/sdk/api/monitoringApi.js +985 -0
- package/build/library/sdk/api/monitoringApi.js.map +1 -0
- package/build/library/sdk/model/createEventSubscriptionRequest.d.ts +24 -0
- package/build/library/sdk/model/createEventSubscriptionRequest.js +4 -0
- package/build/library/sdk/model/createEventSubscriptionRequest.js.map +1 -0
- package/build/library/sdk/model/createEventSubscriptionResponse.d.ts +12 -0
- package/build/library/sdk/model/createEventSubscriptionResponse.js +4 -0
- package/build/library/sdk/model/createEventSubscriptionResponse.js.map +1 -0
- package/build/library/sdk/model/createWebhookDestinationRequest.d.ts +10 -0
- package/build/library/sdk/model/createWebhookDestinationRequest.js +4 -0
- package/build/library/sdk/model/createWebhookDestinationRequest.js.map +1 -0
- package/build/library/sdk/model/createWebhookDestinationResponse.d.ts +20 -0
- package/build/library/sdk/model/createWebhookDestinationResponse.js +4 -0
- package/build/library/sdk/model/createWebhookDestinationResponse.js.map +1 -0
- package/build/library/sdk/model/eventSubscription.d.ts +32 -0
- package/build/library/sdk/model/eventSubscription.js +4 -0
- package/build/library/sdk/model/eventSubscription.js.map +1 -0
- package/build/library/sdk/model/getEventSubscriptionResponse.d.ts +12 -0
- package/build/library/sdk/model/getEventSubscriptionResponse.js +4 -0
- package/build/library/sdk/model/getEventSubscriptionResponse.js.map +1 -0
- package/build/library/sdk/model/getWebhookDestinationResponse.d.ts +12 -0
- package/build/library/sdk/model/getWebhookDestinationResponse.js +4 -0
- package/build/library/sdk/model/getWebhookDestinationResponse.js.map +1 -0
- package/build/library/sdk/model/listEventSubscriptionsResponse.d.ts +12 -0
- package/build/library/sdk/model/listEventSubscriptionsResponse.js +4 -0
- package/build/library/sdk/model/listEventSubscriptionsResponse.js.map +1 -0
- package/build/library/sdk/model/listMonitoringEventsResponse.d.ts +12 -0
- package/build/library/sdk/model/listMonitoringEventsResponse.js +4 -0
- package/build/library/sdk/model/listMonitoringEventsResponse.js.map +1 -0
- package/build/library/sdk/model/listWebhookDestinationsResponse.d.ts +12 -0
- package/build/library/sdk/model/listWebhookDestinationsResponse.js +4 -0
- package/build/library/sdk/model/listWebhookDestinationsResponse.js.map +1 -0
- package/build/library/sdk/model/models.d.ts +16 -0
- package/build/library/sdk/model/models.js +16 -0
- package/build/library/sdk/model/models.js.map +1 -1
- package/build/library/sdk/model/monitoringEvent.d.ts +34 -0
- package/build/library/sdk/model/monitoringEvent.js +6 -0
- package/build/library/sdk/model/monitoringEvent.js.map +1 -0
- 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/rotateWebhookDestinationSecretResponse.d.ts +15 -0
- package/build/library/sdk/model/rotateWebhookDestinationSecretResponse.js +4 -0
- package/build/library/sdk/model/rotateWebhookDestinationSecretResponse.js.map +1 -0
- package/build/library/sdk/model/testWebhookDestinationResponse.d.ts +20 -0
- package/build/library/sdk/model/testWebhookDestinationResponse.js +4 -0
- package/build/library/sdk/model/testWebhookDestinationResponse.js.map +1 -0
- package/build/library/sdk/model/updateEventSubscriptionRequest.d.ts +24 -0
- package/build/library/sdk/model/updateEventSubscriptionRequest.js +4 -0
- package/build/library/sdk/model/updateEventSubscriptionRequest.js.map +1 -0
- package/build/library/sdk/model/updateWebhookDestinationRequest.d.ts +14 -0
- package/build/library/sdk/model/updateWebhookDestinationRequest.js +4 -0
- package/build/library/sdk/model/updateWebhookDestinationRequest.js.map +1 -0
- package/build/library/sdk/model/webhookDestination.d.ts +26 -0
- package/build/library/sdk/model/webhookDestination.js +4 -0
- package/build/library/sdk/model/webhookDestination.js.map +1 -0
- package/package.json +1 -1
|
@@ -39,6 +39,8 @@ export * from './loginApi';
|
|
|
39
39
|
import { LoginApi } from './loginApi';
|
|
40
40
|
export * from './metricsApi';
|
|
41
41
|
import { MetricsApi } from './metricsApi';
|
|
42
|
+
export * from './monitoringApi';
|
|
43
|
+
import { MonitoringApi } from './monitoringApi';
|
|
42
44
|
export * from './optimizationApi';
|
|
43
45
|
import { OptimizationApi } from './optimizationApi';
|
|
44
46
|
export * from './organizationBlocksApi';
|
|
@@ -94,4 +96,4 @@ export interface RequestDetailedFile {
|
|
|
94
96
|
};
|
|
95
97
|
}
|
|
96
98
|
export type RequestFile = RequestDetailedFile;
|
|
97
|
-
export declare 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)[];
|
|
99
|
+
export declare 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)[];
|
|
@@ -53,6 +53,8 @@ __exportStar(require("./loginApi"), exports);
|
|
|
53
53
|
const loginApi_1 = require("./loginApi");
|
|
54
54
|
__exportStar(require("./metricsApi"), exports);
|
|
55
55
|
const metricsApi_1 = require("./metricsApi");
|
|
56
|
+
__exportStar(require("./monitoringApi"), exports);
|
|
57
|
+
const monitoringApi_1 = require("./monitoringApi");
|
|
56
58
|
__exportStar(require("./optimizationApi"), exports);
|
|
57
59
|
const optimizationApi_1 = require("./optimizationApi");
|
|
58
60
|
__exportStar(require("./organizationBlocksApi"), exports);
|
|
@@ -103,5 +105,5 @@ class HttpError extends Error {
|
|
|
103
105
|
}
|
|
104
106
|
}
|
|
105
107
|
exports.HttpError = HttpError;
|
|
106
|
-
exports.APIS = [adminApi_1.AdminApi, authApi_1.AuthApi, cDNApi_1.CDNApi, canaryApi_1.CanaryApi, classifyApi_1.ClassifyApi, dSPApi_1.DSPApi, datasetVersionsApi_1.DatasetVersionsApi, deploymentApi_1.DeploymentApi, devicesApi_1.DevicesApi, emailVerificationApi_1.EmailVerificationApi, exportApi_1.ExportApi, featureFlagsApi_1.FeatureFlagsApi, healthApi_1.HealthApi, impulseApi_1.ImpulseApi, integrationsApi_1.IntegrationsApi, jobsApi_1.JobsApi, learnApi_1.LearnApi, loginApi_1.LoginApi, metricsApi_1.MetricsApi, optimizationApi_1.OptimizationApi, organizationBlocksApi_1.OrganizationBlocksApi, organizationCreateProjectApi_1.OrganizationCreateProjectApi, organizationDataApi_1.OrganizationDataApi, organizationDataCampaignsApi_1.OrganizationDataCampaignsApi, organizationJobsApi_1.OrganizationJobsApi, organizationPipelinesApi_1.OrganizationPipelinesApi, organizationPortalsApi_1.OrganizationPortalsApi, organizationsApi_1.OrganizationsApi, performanceCalibrationApi_1.PerformanceCalibrationApi, postProcessingApi_1.PostProcessingApi, projectsApi_1.ProjectsApi, rawDataApi_1.RawDataApi, testApi_1.TestApi, themesApi_1.ThemesApi, thirdPartyAuthApi_1.ThirdPartyAuthApi, uploadPortalApi_1.UploadPortalApi, userApi_1.UserApi, vlmApi_1.VlmApi, whitelabelsApi_1.WhitelabelsApi];
|
|
108
|
+
exports.APIS = [adminApi_1.AdminApi, authApi_1.AuthApi, cDNApi_1.CDNApi, canaryApi_1.CanaryApi, classifyApi_1.ClassifyApi, dSPApi_1.DSPApi, datasetVersionsApi_1.DatasetVersionsApi, deploymentApi_1.DeploymentApi, devicesApi_1.DevicesApi, emailVerificationApi_1.EmailVerificationApi, exportApi_1.ExportApi, featureFlagsApi_1.FeatureFlagsApi, healthApi_1.HealthApi, impulseApi_1.ImpulseApi, integrationsApi_1.IntegrationsApi, jobsApi_1.JobsApi, learnApi_1.LearnApi, loginApi_1.LoginApi, metricsApi_1.MetricsApi, monitoringApi_1.MonitoringApi, optimizationApi_1.OptimizationApi, organizationBlocksApi_1.OrganizationBlocksApi, organizationCreateProjectApi_1.OrganizationCreateProjectApi, organizationDataApi_1.OrganizationDataApi, organizationDataCampaignsApi_1.OrganizationDataCampaignsApi, organizationJobsApi_1.OrganizationJobsApi, organizationPipelinesApi_1.OrganizationPipelinesApi, organizationPortalsApi_1.OrganizationPortalsApi, organizationsApi_1.OrganizationsApi, performanceCalibrationApi_1.PerformanceCalibrationApi, postProcessingApi_1.PostProcessingApi, projectsApi_1.ProjectsApi, rawDataApi_1.RawDataApi, testApi_1.TestApi, themesApi_1.ThemesApi, thirdPartyAuthApi_1.ThirdPartyAuthApi, uploadPortalApi_1.UploadPortalApi, userApi_1.UserApi, vlmApi_1.VlmApi, whitelabelsApi_1.WhitelabelsApi];
|
|
107
109
|
//# sourceMappingURL=apis.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"apis.js","sourceRoot":"","sources":["../../../../library/sdk/api/apis.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAAA,6CAA2B;AAC3B,yCAAsC;AACtC,4CAA0B;AAC1B,uCAAoC;AACpC,2CAAyB;AACzB,qCAAkC;AAClC,8CAA4B;AAC5B,2CAAwC;AACxC,gDAA8B;AAC9B,+CAA4C;AAC5C,2CAAyB;AACzB,qCAAkC;AAClC,uDAAqC;AACrC,6DAA0D;AAC1D,kDAAgC;AAChC,mDAAgD;AAChD,+CAA6B;AAC7B,6CAA0C;AAC1C,yDAAuC;AACvC,iEAA8D;AAC9D,8CAA4B;AAC5B,2CAAwC;AACxC,oDAAkC;AAClC,uDAAoD;AACpD,8CAA4B;AAC5B,2CAAwC;AACxC,+CAA6B;AAC7B,6CAA0C;AAC1C,oDAAkC;AAClC,uDAAoD;AACpD,4CAA0B;AAC1B,uCAAoC;AACpC,6CAA2B;AAC3B,yCAAsC;AACtC,6CAA2B;AAC3B,yCAAsC;AACtC,+CAA6B;AAC7B,6CAA0C;AAC1C,oDAAkC;AAClC,uDAAoD;AACpD,0DAAwC;AACxC,mEAAgE;AAChE,iEAA+C;AAC/C,iFAA8E;AAC9E,wDAAsC;AACtC,+DAA4D;AAC5D,iEAA+C;AAC/C,iFAA8E;AAC9E,wDAAsC;AACtC,+DAA4D;AAC5D,6DAA2C;AAC3C,yEAAsE;AACtE,2DAAyC;AACzC,qEAAkE;AAClE,qDAAmC;AACnC,yDAAsD;AACtD,8DAA4C;AAC5C,2EAAwE;AACxE,sDAAoC;AACpC,2DAAwD;AACxD,gDAA8B;AAC9B,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EAAS,UAAmB;QAC5F,KAAK,CAAC,qBAAqB,CAAC,CAAC;QADb,aAAQ,GAAR,QAAQ,CAAsB;QAAS,SAAI,GAAJ,IAAI,CAAK;QAAS,eAAU,GAAV,UAAU,CAAS;QAE5F,IAAI,CAAC,IAAI,GAAG,WAAW,CAAC;IAC5B,CAAC;CACJ;AALD,8BAKC;AAYY,QAAA,IAAI,GAAG,CAAC,mBAAQ,EAAE,iBAAO,EAAE,eAAM,EAAE,qBAAS,EAAE,yBAAW,EAAE,eAAM,EAAE,uCAAkB,EAAE,6BAAa,EAAE,uBAAU,EAAE,2CAAoB,EAAE,qBAAS,EAAE,iCAAe,EAAE,qBAAS,EAAE,uBAAU,EAAE,iCAAe,EAAE,iBAAO,EAAE,mBAAQ,EAAE,mBAAQ,EAAE,uBAAU,EAAE,6BAAa,EAAE,iCAAe,EAAE,6CAAqB,EAAE,2DAA4B,EAAE,yCAAmB,EAAE,2DAA4B,EAAE,yCAAmB,EAAE,mDAAwB,EAAE,+CAAsB,EAAE,mCAAgB,EAAE,qDAAyB,EAAE,qCAAiB,EAAE,yBAAW,EAAE,uBAAU,EAAE,iBAAO,EAAE,qBAAS,EAAE,qCAAiB,EAAE,iCAAe,EAAE,iBAAO,EAAE,eAAM,EAAE,+BAAc,CAAC,CAAC"}
|
|
@@ -0,0 +1,204 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Edge Impulse API
|
|
3
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import type { Response as UndiciResponse } from 'undici-types';
|
|
13
|
+
import { CreateEventSubscriptionRequest } from '../model/createEventSubscriptionRequest';
|
|
14
|
+
import { CreateEventSubscriptionResponse } from '../model/createEventSubscriptionResponse';
|
|
15
|
+
import { CreateWebhookDestinationRequest } from '../model/createWebhookDestinationRequest';
|
|
16
|
+
import { CreateWebhookDestinationResponse } from '../model/createWebhookDestinationResponse';
|
|
17
|
+
import { GenericApiResponse } from '../model/genericApiResponse';
|
|
18
|
+
import { GetEventSubscriptionResponse } from '../model/getEventSubscriptionResponse';
|
|
19
|
+
import { GetWebhookDestinationResponse } from '../model/getWebhookDestinationResponse';
|
|
20
|
+
import { ListEventSubscriptionsResponse } from '../model/listEventSubscriptionsResponse';
|
|
21
|
+
import { ListMonitoringEventsResponse } from '../model/listMonitoringEventsResponse';
|
|
22
|
+
import { ListWebhookDestinationsResponse } from '../model/listWebhookDestinationsResponse';
|
|
23
|
+
import { RotateWebhookDestinationSecretResponse } from '../model/rotateWebhookDestinationSecretResponse';
|
|
24
|
+
import { TestWebhookDestinationResponse } from '../model/testWebhookDestinationResponse';
|
|
25
|
+
import { UpdateEventSubscriptionRequest } from '../model/updateEventSubscriptionRequest';
|
|
26
|
+
import { UpdateWebhookDestinationRequest } from '../model/updateWebhookDestinationRequest';
|
|
27
|
+
import { Authentication } from '../model/models';
|
|
28
|
+
import { ApiKeyAuth, OAuth } from '../model/models';
|
|
29
|
+
export declare enum MonitoringApiApiKeys {
|
|
30
|
+
ApiKeyAuthentication = 0,
|
|
31
|
+
JWTAuthentication = 1,
|
|
32
|
+
JWTHttpHeaderAuthentication = 2
|
|
33
|
+
}
|
|
34
|
+
type listMonitoringEventsQueryParams = {
|
|
35
|
+
limit?: number;
|
|
36
|
+
};
|
|
37
|
+
export type MonitoringApiOpts = {
|
|
38
|
+
extraHeaders?: Record<string, string>;
|
|
39
|
+
};
|
|
40
|
+
export declare class MonitoringApi {
|
|
41
|
+
protected _basePath: string;
|
|
42
|
+
protected defaultHeaders: Record<string, string>;
|
|
43
|
+
protected _opts: MonitoringApiOpts;
|
|
44
|
+
protected authentications: {
|
|
45
|
+
default: Authentication;
|
|
46
|
+
ApiKeyAuthentication: ApiKeyAuth;
|
|
47
|
+
OAuth2: OAuth;
|
|
48
|
+
JWTAuthentication: ApiKeyAuth;
|
|
49
|
+
JWTHttpHeaderAuthentication: ApiKeyAuth;
|
|
50
|
+
};
|
|
51
|
+
protected handleResponse(response: Response | UndiciResponse, returnType: string | undefined): Promise<any>;
|
|
52
|
+
constructor(basePath?: string, opts?: MonitoringApiOpts);
|
|
53
|
+
set basePath(basePath: string);
|
|
54
|
+
get basePath(): string;
|
|
55
|
+
set opts(opts: MonitoringApiOpts);
|
|
56
|
+
get opts(): MonitoringApiOpts;
|
|
57
|
+
setDefaultAuthentication(auth: Authentication): void;
|
|
58
|
+
setApiKey(key: MonitoringApiApiKeys, value: string | undefined): void;
|
|
59
|
+
set accessToken(token: string);
|
|
60
|
+
/**
|
|
61
|
+
* Create a monitoring event subscription for this project.
|
|
62
|
+
* @summary Create event subscription
|
|
63
|
+
* @param projectId Project ID
|
|
64
|
+
* @param createEventSubscriptionRequest
|
|
65
|
+
*/
|
|
66
|
+
createEventSubscription(projectId: number, createEventSubscriptionRequest: CreateEventSubscriptionRequest, options?: {
|
|
67
|
+
headers: {
|
|
68
|
+
[name: string]: string;
|
|
69
|
+
};
|
|
70
|
+
}): Promise<CreateEventSubscriptionResponse>;
|
|
71
|
+
/**
|
|
72
|
+
* Create a new webhook destination for this project.
|
|
73
|
+
* @summary Create a new webhook destination
|
|
74
|
+
* @param projectId Project ID
|
|
75
|
+
* @param createWebhookDestinationRequest
|
|
76
|
+
*/
|
|
77
|
+
createWebhookDestination(projectId: number, createWebhookDestinationRequest: CreateWebhookDestinationRequest, options?: {
|
|
78
|
+
headers: {
|
|
79
|
+
[name: string]: string;
|
|
80
|
+
};
|
|
81
|
+
}): Promise<CreateWebhookDestinationResponse>;
|
|
82
|
+
/**
|
|
83
|
+
* Delete a monitoring event subscription.
|
|
84
|
+
* @summary Delete event subscription
|
|
85
|
+
* @param projectId Project ID
|
|
86
|
+
* @param eventSubscriptionId Event subscription ID
|
|
87
|
+
*/
|
|
88
|
+
deleteEventSubscription(projectId: number, eventSubscriptionId: number, options?: {
|
|
89
|
+
headers: {
|
|
90
|
+
[name: string]: string;
|
|
91
|
+
};
|
|
92
|
+
}): Promise<GenericApiResponse>;
|
|
93
|
+
/**
|
|
94
|
+
* Delete a webhook destination.
|
|
95
|
+
* @summary Delete webhook destination
|
|
96
|
+
* @param projectId Project ID
|
|
97
|
+
* @param webhookId Webhook destination ID
|
|
98
|
+
*/
|
|
99
|
+
deleteWebhookDestination(projectId: number, webhookId: string, options?: {
|
|
100
|
+
headers: {
|
|
101
|
+
[name: string]: string;
|
|
102
|
+
};
|
|
103
|
+
}): Promise<GenericApiResponse>;
|
|
104
|
+
/**
|
|
105
|
+
* Get details about a monitoring event subscription.
|
|
106
|
+
* @summary Get event subscription
|
|
107
|
+
* @param projectId Project ID
|
|
108
|
+
* @param eventSubscriptionId Event subscription ID
|
|
109
|
+
*/
|
|
110
|
+
getEventSubscription(projectId: number, eventSubscriptionId: number, options?: {
|
|
111
|
+
headers: {
|
|
112
|
+
[name: string]: string;
|
|
113
|
+
};
|
|
114
|
+
}): Promise<GetEventSubscriptionResponse>;
|
|
115
|
+
/**
|
|
116
|
+
* Get details about a webhook destination.
|
|
117
|
+
* @summary Get webhook destination
|
|
118
|
+
* @param projectId Project ID
|
|
119
|
+
* @param webhookId Webhook destination ID
|
|
120
|
+
*/
|
|
121
|
+
getWebhookDestination(projectId: number, webhookId: string, options?: {
|
|
122
|
+
headers: {
|
|
123
|
+
[name: string]: string;
|
|
124
|
+
};
|
|
125
|
+
}): Promise<GetWebhookDestinationResponse>;
|
|
126
|
+
/**
|
|
127
|
+
* List all monitoring event subscriptions for this project.
|
|
128
|
+
* @summary List event subscriptions
|
|
129
|
+
* @param projectId Project ID
|
|
130
|
+
*/
|
|
131
|
+
listEventSubscriptions(projectId: number, options?: {
|
|
132
|
+
headers: {
|
|
133
|
+
[name: string]: string;
|
|
134
|
+
};
|
|
135
|
+
}): Promise<ListEventSubscriptionsResponse>;
|
|
136
|
+
/**
|
|
137
|
+
* List recent monitoring events generated for this project.
|
|
138
|
+
* @summary List recent monitoring events
|
|
139
|
+
* @param projectId Project ID
|
|
140
|
+
* @param limit Number of recent events to fetch. Maximum is 100. Defaults to 20.
|
|
141
|
+
*/
|
|
142
|
+
listMonitoringEvents(projectId: number, queryParams?: listMonitoringEventsQueryParams, options?: {
|
|
143
|
+
headers: {
|
|
144
|
+
[name: string]: string;
|
|
145
|
+
};
|
|
146
|
+
}): Promise<ListMonitoringEventsResponse>;
|
|
147
|
+
/**
|
|
148
|
+
* List all webhook destinations for this project.
|
|
149
|
+
* @summary List webhook destinations
|
|
150
|
+
* @param projectId Project ID
|
|
151
|
+
*/
|
|
152
|
+
listWebhookDestinations(projectId: number, options?: {
|
|
153
|
+
headers: {
|
|
154
|
+
[name: string]: string;
|
|
155
|
+
};
|
|
156
|
+
}): Promise<ListWebhookDestinationsResponse>;
|
|
157
|
+
/**
|
|
158
|
+
* 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.
|
|
159
|
+
* @summary Rotate webhook destination secret
|
|
160
|
+
* @param projectId Project ID
|
|
161
|
+
* @param webhookId Webhook destination ID
|
|
162
|
+
*/
|
|
163
|
+
rotateWebhookDestinationSecret(projectId: number, webhookId: string, options?: {
|
|
164
|
+
headers: {
|
|
165
|
+
[name: string]: string;
|
|
166
|
+
};
|
|
167
|
+
}): Promise<RotateWebhookDestinationSecretResponse>;
|
|
168
|
+
/**
|
|
169
|
+
* Send a test webhook to the configured URL for this destination. This is useful for testing if the webhook is configured correctly.
|
|
170
|
+
* @summary Test webhook destination
|
|
171
|
+
* @param projectId Project ID
|
|
172
|
+
* @param webhookId Webhook destination ID
|
|
173
|
+
*/
|
|
174
|
+
testWebhookDestination(projectId: number, webhookId: string, options?: {
|
|
175
|
+
headers: {
|
|
176
|
+
[name: string]: string;
|
|
177
|
+
};
|
|
178
|
+
}): Promise<TestWebhookDestinationResponse>;
|
|
179
|
+
/**
|
|
180
|
+
* Update a monitoring event subscription.
|
|
181
|
+
* @summary Update event subscription
|
|
182
|
+
* @param projectId Project ID
|
|
183
|
+
* @param eventSubscriptionId Event subscription ID
|
|
184
|
+
* @param updateEventSubscriptionRequest
|
|
185
|
+
*/
|
|
186
|
+
updateEventSubscription(projectId: number, eventSubscriptionId: number, updateEventSubscriptionRequest: UpdateEventSubscriptionRequest, options?: {
|
|
187
|
+
headers: {
|
|
188
|
+
[name: string]: string;
|
|
189
|
+
};
|
|
190
|
+
}): Promise<GenericApiResponse>;
|
|
191
|
+
/**
|
|
192
|
+
* 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.
|
|
193
|
+
* @summary Update webhook destination
|
|
194
|
+
* @param projectId Project ID
|
|
195
|
+
* @param webhookId Webhook destination ID
|
|
196
|
+
* @param updateWebhookDestinationRequest
|
|
197
|
+
*/
|
|
198
|
+
updateWebhookDestination(projectId: number, webhookId: string, updateWebhookDestinationRequest: UpdateWebhookDestinationRequest, options?: {
|
|
199
|
+
headers: {
|
|
200
|
+
[name: string]: string;
|
|
201
|
+
};
|
|
202
|
+
}): Promise<GenericApiResponse>;
|
|
203
|
+
}
|
|
204
|
+
export {};
|