@honeyhive/control-plane-sdk 1.0.0-rc.1

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.
@@ -0,0 +1,410 @@
1
+ export interface ListAlertsRequest {
2
+ /** @description The unique identifier of the project whose alerts are listed */
3
+ project_id: string;
4
+ /** @description 1-indexed page number */
5
+ page?: number;
6
+ /** @description Number of alerts to return per page */
7
+ limit?: number;
8
+ /** @description Only return alerts in this status */
9
+ status?: 'ACTIVE' | 'TRIGGERED' | 'PAUSED' | 'RESOLVED';
10
+ /** @description Field to sort results by */
11
+ sort_by?: 'created_at' | 'updated_at' | 'name' | 'status' | 'frequency' | 'last_triggered';
12
+ /** @description Sort order */
13
+ sort_order?: 'asc' | 'desc';
14
+ }
15
+ export interface CreateAlertRequest {
16
+ /** @description The unique identifier of the project the alert is created in */
17
+ project_id: string;
18
+ name: string;
19
+ description?: string;
20
+ /** @enum {string} */
21
+ frequency: 'HOURLY' | 'DAILY' | 'WEEKLY' | 'MONTHLY';
22
+ /** @default 0 */
23
+ minimum_sample_size?: number;
24
+ /**
25
+ * @default AGGREGATE
26
+ * @enum {string}
27
+ */
28
+ alert_type?: 'DRIFT' | 'AGGREGATE' | 'PER_EVENT';
29
+ /**
30
+ * @default AVERAGE
31
+ * @enum {string}
32
+ */
33
+ aggregation?: 'AVERAGE' | 'COUNT' | 'SUM' | 'MIN' | 'MAX' | 'P90' | 'P95' | 'P99' | 'MEDIAN';
34
+ thresholds: PostAlertRequestThresholds;
35
+ filters: SingleFilter[];
36
+ projections: string[];
37
+ notification_details: PostAlertRequestNotificationDetails;
38
+ /** @enum {string} */
39
+ status?: 'ACTIVE' | 'TRIGGERED' | 'PAUSED' | 'RESOLVED';
40
+ }
41
+ export interface GetAlertRequest {
42
+ /** @description The unique identifier of the project the alert belongs to */
43
+ project_id: string;
44
+ /** @description The unique identifier of the alert to retrieve */
45
+ alert_id: string;
46
+ }
47
+ export interface CreateProjectRequest {
48
+ /** @description The unique identifier of the workspace the project is created in */
49
+ workspace_id: string;
50
+ /** @description Project display name */
51
+ name: string;
52
+ /** @description Project description */
53
+ description?: string;
54
+ /**
55
+ * Format: email
56
+ * @description Email of the user to grant the project-creator membership to (API key actors only)
57
+ */
58
+ project_creator?: string;
59
+ }
60
+ export interface GetProjectRequest {
61
+ /** @description The unique identifier of the project to retrieve */
62
+ project_id: string;
63
+ }
64
+ export interface UpdateProjectRequest {
65
+ /** @description The unique identifier of the project to update */
66
+ project_id: string;
67
+ /** @description Project display name */
68
+ name?: string;
69
+ /** @description Project description */
70
+ description?: string;
71
+ }
72
+ export interface DeleteProjectRequest {
73
+ /** @description The unique identifier of the project to delete */
74
+ project_id: string;
75
+ }
76
+ /**
77
+ * @description A paginated list of alerts
78
+ */
79
+ export type ListAlertsResponse = {
80
+ /** @enum {boolean} */
81
+ success: true;
82
+ data: AlertItem[];
83
+ pagination: Pagination;
84
+ };
85
+ /**
86
+ * @description The created alert
87
+ */
88
+ export type CreateAlertResponse = {
89
+ /** @enum {boolean} */
90
+ success: true;
91
+ data: AlertItem;
92
+ };
93
+ /**
94
+ * @description A single alert
95
+ */
96
+ export type GetAlertResponse = {
97
+ /** @enum {boolean} */
98
+ success: true;
99
+ data: AlertItem;
100
+ };
101
+ /**
102
+ * @description The created project
103
+ */
104
+ export type CreateProjectResponse = {
105
+ success: boolean;
106
+ data: ProjectItem;
107
+ };
108
+ /**
109
+ * @description A single project
110
+ */
111
+ export type GetProjectResponse = {
112
+ success: boolean;
113
+ data: ProjectItem;
114
+ };
115
+ /**
116
+ * @description The updated project
117
+ */
118
+ export type UpdateProjectResponse = {
119
+ success: boolean;
120
+ data: ProjectItem;
121
+ };
122
+ /**
123
+ * @description The deleted (archived) project
124
+ */
125
+ export type DeleteProjectResponse = {
126
+ success: boolean;
127
+ data: ProjectItem;
128
+ };
129
+ /**
130
+ * @description Alert object
131
+ * @inline
132
+ */
133
+ export type AlertItem = {
134
+ id: string;
135
+ name: string;
136
+ description?: string | null;
137
+ /** @enum {string} */
138
+ status: 'ACTIVE' | 'TRIGGERED' | 'PAUSED' | 'RESOLVED';
139
+ /** @enum {string} */
140
+ frequency: 'HOURLY' | 'DAILY' | 'WEEKLY' | 'MONTHLY';
141
+ minimum_sample_size: number;
142
+ /** @enum {string} */
143
+ alert_type: 'DRIFT' | 'AGGREGATE' | 'PER_EVENT';
144
+ aggregation: string;
145
+ event_filters: AlertEventFilter[];
146
+ event_metrics: AlertEventMetric[];
147
+ thresholds: AlertItemThresholds;
148
+ last_run_at?: string | null;
149
+ last_result?: ({
150
+ current_bucket_score?: number | boolean;
151
+ previous_bucket_score?: number | boolean;
152
+ last_triggered_baseline?: number | boolean;
153
+ drift_percentage?: number;
154
+ thresholds?: AlertItemLastResultThresholds;
155
+ event_filters?: unknown[];
156
+ event_metrics?: unknown[];
157
+ aggregation?: string;
158
+ } & {
159
+ [key: string]: unknown;
160
+ }) | null;
161
+ trigger_error?: string | null;
162
+ is_active: boolean;
163
+ is_muted: boolean;
164
+ created_at: string;
165
+ updated_at?: string | null;
166
+ last_trigger_id?: string | null;
167
+ scope_type: string;
168
+ scope_id: string;
169
+ created_by?: string | null;
170
+ last_trigger?: AlertTrigger;
171
+ triggers?: AlertTrigger[];
172
+ notifications?: AlertNotification[];
173
+ };
174
+ /**
175
+ * @inline
176
+ */
177
+ export type AlertEventFilter = {
178
+ filter: SingleFilter;
179
+ /** @enum {string} */
180
+ type: 'float' | 'numeric' | 'boolean' | 'string' | 'null';
181
+ };
182
+ /**
183
+ * @inline
184
+ */
185
+ export type SingleFilter = {
186
+ field: string;
187
+ /** @enum {string} */
188
+ operator: 'exists' | 'not exists' | 'is' | 'is not' | 'contains' | 'not contains' | 'greater than' | 'less than' | 'after' | 'before';
189
+ value: string | number | boolean | null;
190
+ /** @enum {string} */
191
+ type: 'string' | 'number' | 'boolean' | 'datetime';
192
+ };
193
+ /**
194
+ * @inline
195
+ */
196
+ export type AlertEventMetric = {
197
+ /** @description Projected field or metric for this entry */
198
+ projection: string;
199
+ /** @enum {string} */
200
+ type: 'float' | 'numeric' | 'boolean' | 'string' | 'null';
201
+ };
202
+ /**
203
+ * @inline
204
+ */
205
+ export type AlertTrigger = {
206
+ id: string;
207
+ alert_id: string;
208
+ result: AlertTriggerResult;
209
+ muted: boolean;
210
+ notification_sent: boolean;
211
+ triggered_time: string;
212
+ resolved_time: string | null;
213
+ resolved_by: string | null;
214
+ created_at: string;
215
+ updated_at: string;
216
+ };
217
+ /**
218
+ * @inline
219
+ */
220
+ export type AlertNotification = {
221
+ id: string;
222
+ alert_id: string;
223
+ /** @enum {string} */
224
+ stage: 'CRITICAL' | 'RESOLUTION';
225
+ /** @enum {string} */
226
+ channel: 'EMAIL' | 'SLACK' | 'WEBHOOK';
227
+ /** @enum {string} */
228
+ scope: 'ALL_PROJECT_MEMBERS' | 'SPECIFIC_MEMBER';
229
+ membership_id?: string | null;
230
+ metadata?: {
231
+ [key: string]: unknown;
232
+ } | null;
233
+ last_sent_at?: string | null;
234
+ created_at: string;
235
+ membership?: {
236
+ user: AlertNotificationMembershipUser;
237
+ } | null;
238
+ };
239
+ /**
240
+ * @inline
241
+ */
242
+ export type Pagination = {
243
+ page: number;
244
+ limit: number;
245
+ total: number;
246
+ total_unfiltered: number;
247
+ total_pages: number;
248
+ has_next: boolean;
249
+ has_prev: boolean;
250
+ };
251
+ /**
252
+ * @description Project object
253
+ * @inline
254
+ */
255
+ export type ProjectItem = {
256
+ id: string;
257
+ /** @description Project display name */
258
+ name: string;
259
+ /** @description Project description */
260
+ description: string;
261
+ created_at: string;
262
+ updated_at?: string | null;
263
+ };
264
+ /**
265
+ * @inline
266
+ */
267
+ export type AlertItemThresholdsCritical = {
268
+ /** @enum {string} */
269
+ operator: 'greater_than' | 'less_than' | 'equal_to';
270
+ value: number;
271
+ };
272
+ /**
273
+ * @inline
274
+ */
275
+ export type AlertItemThresholdsResolved = {
276
+ /** @enum {string} */
277
+ operator: 'greater_than' | 'less_than' | 'equal_to';
278
+ value: number;
279
+ };
280
+ /**
281
+ * @inline
282
+ */
283
+ export type AlertItemThresholds = {
284
+ critical: AlertItemThresholdsCritical;
285
+ resolved: AlertItemThresholdsResolved;
286
+ };
287
+ /**
288
+ * @inline
289
+ */
290
+ export type AlertItemLastResultThresholdsCritical = {
291
+ /** @enum {string} */
292
+ operator: 'greater_than' | 'less_than' | 'equal_to';
293
+ value: number;
294
+ };
295
+ /**
296
+ * @inline
297
+ */
298
+ export type AlertItemLastResultThresholdsResolved = {
299
+ /** @enum {string} */
300
+ operator: 'greater_than' | 'less_than' | 'equal_to';
301
+ value: number;
302
+ };
303
+ /**
304
+ * @inline
305
+ */
306
+ export type AlertItemLastResultThresholds = {
307
+ critical: AlertItemLastResultThresholdsCritical;
308
+ resolved: AlertItemLastResultThresholdsResolved;
309
+ };
310
+ /**
311
+ * @inline
312
+ */
313
+ export type AlertTriggerResultThresholdsCritical = {
314
+ /** @enum {string} */
315
+ operator: 'greater_than' | 'less_than' | 'equal_to';
316
+ value: number;
317
+ };
318
+ /**
319
+ * @inline
320
+ */
321
+ export type AlertTriggerResultThresholdsResolved = {
322
+ /** @enum {string} */
323
+ operator: 'greater_than' | 'less_than' | 'equal_to';
324
+ value: number;
325
+ };
326
+ /**
327
+ * @inline
328
+ */
329
+ export type AlertTriggerResultThresholds = {
330
+ critical: AlertTriggerResultThresholdsCritical;
331
+ resolved: AlertTriggerResultThresholdsResolved;
332
+ };
333
+ /**
334
+ * @inline
335
+ */
336
+ export type AlertTriggerResult = {
337
+ current_bucket_score?: number | boolean;
338
+ previous_bucket_score?: number | boolean;
339
+ last_triggered_baseline?: number | boolean;
340
+ drift_percentage?: number;
341
+ thresholds?: AlertTriggerResultThresholds;
342
+ event_filters?: unknown[];
343
+ event_metrics?: unknown[];
344
+ aggregation?: string;
345
+ } & {
346
+ [key: string]: unknown;
347
+ };
348
+ /**
349
+ * @inline
350
+ */
351
+ export type AlertNotificationMembershipUser = {
352
+ id: string;
353
+ };
354
+ /**
355
+ * @inline
356
+ */
357
+ export type PostAlertRequestThresholdsCritical = {
358
+ /** @enum {string} */
359
+ operator: 'greater_than' | 'less_than' | 'equal_to';
360
+ value: number;
361
+ };
362
+ /**
363
+ * @inline
364
+ */
365
+ export type PostAlertRequestThresholdsResolved = {
366
+ /** @enum {string} */
367
+ operator: 'greater_than' | 'less_than' | 'equal_to';
368
+ value: number;
369
+ };
370
+ /**
371
+ * @inline
372
+ */
373
+ export type PostAlertRequestThresholds = {
374
+ critical: PostAlertRequestThresholdsCritical;
375
+ resolved: PostAlertRequestThresholdsResolved;
376
+ };
377
+ /**
378
+ * @inline
379
+ */
380
+ export type PostAlertRequestNotificationDetailsCritical = {
381
+ /** @enum {string} */
382
+ channel: 'EMAIL' | 'SLACK' | 'WEBHOOK';
383
+ /** @enum {string} */
384
+ scope: 'ALL_PROJECT_MEMBERS' | 'SPECIFIC_MEMBER';
385
+ user_ids?: string[];
386
+ metadata: {
387
+ [key: string]: unknown;
388
+ };
389
+ };
390
+ /**
391
+ * @inline
392
+ */
393
+ export type PostAlertRequestNotificationDetailsResolved = {
394
+ /** @enum {string} */
395
+ channel: 'EMAIL' | 'SLACK' | 'WEBHOOK';
396
+ /** @enum {string} */
397
+ scope: 'ALL_PROJECT_MEMBERS' | 'SPECIFIC_MEMBER';
398
+ user_ids?: string[];
399
+ metadata: {
400
+ [key: string]: unknown;
401
+ };
402
+ };
403
+ /**
404
+ * @inline
405
+ */
406
+ export type PostAlertRequestNotificationDetails = {
407
+ critical: PostAlertRequestNotificationDetailsCritical;
408
+ resolved: PostAlertRequestNotificationDetailsResolved;
409
+ };
410
+ //# sourceMappingURL=apiTypes.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"apiTypes.d.ts","sourceRoot":"","sources":["../../src/generated/apiTypes.ts"],"names":[],"mappings":"AAIA,MAAM,WAAW,iBAAiB;IAChC,gFAAgF;IAChF,UAAU,EAAE,MAAM,CAAC;IACnB,yCAAyC;IACzC,IAAI,CAA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EAAE,MAAM,CAAC;CACf,CAAC;AAEF;;GAEG;AACH,MAAM,MAAM,0BAA0B,GAAG;IACvC,QAAQ,EAAE,kCAAkC,CAAC;IAC7C,QAAQ,EAAE,kCAAkC,CAAC;CAC9C,CAAC;AAEF;;GAEG;AACH,MAAM,MAAM,2CAA2C,GAAG;IACxD,qBAAqB;IACrB,OAAO,EAAE,OAAO,GAAG,OAAO,GAAG,SAAS,CAAC;IACvC,qBAAqB;IACrB,KAAK,EAAE,qBAAqB,GAAG,iBAAiB,CAAC;IACjD,QAAQ,CAAC,EAAE,MAAM,EAAE,CAAC;IACpB,QAAQ,EAAE;QACR,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC;KACxB,CAAC;CACH,CAAC;AAEF;;GAEG;AACH,MAAM,MAAM,2CAA2C,GAAG;IACxD,qBAAqB;IACrB,OAAO,EAAE,OAAO,GAAG,OAAO,GAAG,SAAS,CAAC;IACvC,qBAAqB;IACrB,KAAK,EAAE,qBAAqB,GAAG,iBAAiB,CAAC;IACjD,QAAQ,CAAC,EAAE,MAAM,EAAE,CAAC;IACpB,QAAQ,EAAE;QACR,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC;KACxB,CAAC;CACH,CAAC;AAEF;;GAEG;AACH,MAAM,MAAM,mCAAmC,GAAG;IAChD,QAAQ,EAAE,2CAA2C,CAAC;IACtD,QAAQ,EAAE,2CAA2C,CAAC;CACvD,CAAC"}
@@ -0,0 +1,3 @@
1
+ // AUTO-GENERATED — do not edit manually. Run `pnpm turbo run generate` to regenerate.
2
+ export {};
3
+ //# sourceMappingURL=apiTypes.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"apiTypes.js","sourceRoot":"","sources":["../../src/generated/apiTypes.ts"],"names":[],"mappings":"AAAA,sFAAsF"}
@@ -0,0 +1,83 @@
1
+ import { type paths } from './types.js';
2
+ import { type ListAlertsRequest, type CreateAlertRequest, type GetAlertRequest, type CreateProjectRequest, type GetProjectRequest, type UpdateProjectRequest, type DeleteProjectRequest, type ListAlertsResponse, type CreateAlertResponse, type GetAlertResponse, type CreateProjectResponse, type GetProjectResponse, type UpdateProjectResponse, type DeleteProjectResponse } from './apiTypes.js';
3
+ import { type ClientConfig, type FetchOptions, createApiClient } from '../util.js';
4
+ /** @inline */
5
+ declare class AlertsNamespace {
6
+ #private;
7
+ constructor(client: ReturnType<typeof createApiClient<paths>>);
8
+ /**
9
+ * List alerts
10
+ *
11
+ * List the alerts in a project. The project is identified by the `project_id` path parameter
12
+ * alone; the `x-hh-project-id` header does not participate. Supports offset pagination, an
13
+ * optional status filter, and sorting (defaults to most recently created first).
14
+ */
15
+ list(request: ListAlertsRequest, options?: FetchOptions): Promise<ListAlertsResponse>;
16
+ /**
17
+ * Create an alert
18
+ *
19
+ * Create an alert in a project. The project is identified by the `project_id` path parameter
20
+ * alone; the `x-hh-project-id` header does not participate. The alert's `filters` and
21
+ * `projections` (metrics) are mapped against the project's logged-event schema; if no schema
22
+ * data matches them — e.g. no events have been logged to the project yet — the request fails
23
+ * with a 400.
24
+ */
25
+ create(request: CreateAlertRequest, options?: FetchOptions): Promise<CreateAlertResponse>;
26
+ /**
27
+ * Get an alert
28
+ *
29
+ * Retrieve a single alert by id, including its thresholds, triggers, and notification
30
+ * configuration. The alert's project is identified by the `project_id` path parameter alone;
31
+ * the `x-hh-project-id` header does not participate.
32
+ */
33
+ get(request: GetAlertRequest, options?: FetchOptions): Promise<GetAlertResponse>;
34
+ }
35
+ /** @inline */
36
+ declare class ProjectsNamespace {
37
+ #private;
38
+ constructor(client: ReturnType<typeof createApiClient<paths>>);
39
+ /**
40
+ * Create a project
41
+ *
42
+ * Create a project in a workspace. The parent workspace is identified by the `workspace_id`
43
+ * path parameter alone; the `x-hh-workspace-id` header does not participate.
44
+ *
45
+ * The optional `project_creator` field names the user (by email) who receives the
46
+ * project-creator membership on the new project. The named user must already be a member of
47
+ * the workspace. When omitted, the project is created without any membership. The field is
48
+ * only accepted on API-key-initiated requests — user-initiated creation always makes the
49
+ * calling user the creator and rejects the field with a 400.
50
+ */
51
+ create(request: CreateProjectRequest, options?: FetchOptions): Promise<CreateProjectResponse>;
52
+ /**
53
+ * Get a project
54
+ *
55
+ * Retrieve a single project by id. The project is identified by the `project_id` path
56
+ * parameter alone; the `x-hh-project-id` header does not participate.
57
+ */
58
+ get(request: GetProjectRequest, options?: FetchOptions): Promise<GetProjectResponse>;
59
+ /**
60
+ * Update a project
61
+ *
62
+ * Update a project's display name and/or description. The project is identified by the
63
+ * `project_id` path parameter alone; the `x-hh-project-id` header does not participate.
64
+ * Only fields included in the request body are modified.
65
+ */
66
+ update(request: UpdateProjectRequest, options?: FetchOptions): Promise<UpdateProjectResponse>;
67
+ /**
68
+ * Delete a project
69
+ *
70
+ * Delete a project. The project is soft-deleted (archived) and no longer appears in reads;
71
+ * the response returns the archived project. The project is identified by the `project_id`
72
+ * path parameter alone; the `x-hh-project-id` header does not participate.
73
+ */
74
+ delete(request: DeleteProjectRequest, options?: FetchOptions): Promise<DeleteProjectResponse>;
75
+ }
76
+ export declare class Client {
77
+ #private;
78
+ readonly alerts: AlertsNamespace;
79
+ readonly projects: ProjectsNamespace;
80
+ constructor(options?: ClientConfig);
81
+ }
82
+ export {};
83
+ //# sourceMappingURL=client.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"client.d.ts","sourceRoot":"","sources":["../../src/generated/client.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,KAAK,EAAE,MAAM,YAAY,CAAC;AACxC,OAAO,EACL,KAAK,iBAAiB,EACtB,KAAK,kBAAkB,EACvB,KAAK,eAAe,EACpB,KAAK,oBAAoB,EACzB,KAAK,iBAAiB,EACtB,KAAK,oBAAoB,EACzB,KAAK,oBAAoB,EACzB,KAAK,kBAAkB,EACvB,KAAK,mBAAmB,EACxB,KAAK,gBAAgB,EACrB,KAAK,qBAAqB,EAC1B,KAAK,kBAAkB,EACvB,KAAK,qBAAqB,EAC1B,KAAK,qBAAq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AQ,CAAC,QAAQ,EAAE,iBAAiB,CAAC;gBAEzB,OAAO,GAAE,YAAiB;CAKvC"}
@@ -0,0 +1,134 @@
1
+ // AUTO-GENERATED — do not edit manually. Run `pnpm turbo run generate` to regenerate.
2
+ import { createApiClient, unwrap } from '../util.js';
3
+ /** @inline */
4
+ class AlertsNamespace {
5
+ #client;
6
+ constructor(client) {
7
+ this.#client = client;
8
+ }
9
+ /**
10
+ * List alerts
11
+ *
12
+ * List the alerts in a project. The project is identified by the `project_id` path parameter
13
+ * alone; the `x-hh-project-id` header does not participate. Supports offset pagination, an
14
+ * optional status filter, and sorting (defaults to most recently created first).
15
+ */
16
+ list(request, options) {
17
+ const { project_id, page, limit, status, sort_by, sort_order } = request;
18
+ return unwrap(this.#client.GET('/v1/projects/{project_id}/alerts', {
19
+ params: { path: { project_id }, query: { page, limit, status, sort_by, sort_order } },
20
+ ...options,
21
+ }));
22
+ }
23
+ /**
24
+ * Create an alert
25
+ *
26
+ * Create an alert in a project. The project is identified by the `project_id` path parameter
27
+ * alone; the `x-hh-project-id` header does not participate. The alert's `filters` and
28
+ * `projections` (metrics) are mapped against the project's logged-event schema; if no schema
29
+ * data matches them — e.g. no events have been logged to the project yet — the request fails
30
+ * with a 400.
31
+ */
32
+ create(request, options) {
33
+ const { project_id, ...body } = request;
34
+ return unwrap(this.#client.POST('/v1/projects/{project_id}/alerts', {
35
+ params: { path: { project_id } },
36
+ body,
37
+ ...options,
38
+ }));
39
+ }
40
+ /**
41
+ * Get an alert
42
+ *
43
+ * Retrieve a single alert by id, including its thresholds, triggers, and notification
44
+ * configuration. The alert's project is identified by the `project_id` path parameter alone;
45
+ * the `x-hh-project-id` header does not participate.
46
+ */
47
+ get(request, options) {
48
+ const { project_id, alert_id } = request;
49
+ return unwrap(this.#client.GET('/v1/projects/{project_id}/alerts/{alert_id}', {
50
+ params: { path: { project_id, alert_id } },
51
+ ...options,
52
+ }));
53
+ }
54
+ }
55
+ /** @inline */
56
+ class ProjectsNamespace {
57
+ #client;
58
+ constructor(client) {
59
+ this.#client = client;
60
+ }
61
+ /**
62
+ * Create a project
63
+ *
64
+ * Create a project in a workspace. The parent workspace is identified by the `workspace_id`
65
+ * path parameter alone; the `x-hh-workspace-id` header does not participate.
66
+ *
67
+ * The optional `project_creator` field names the user (by email) who receives the
68
+ * project-creator membership on the new project. The named user must already be a member of
69
+ * the workspace. When omitted, the project is created without any membership. The field is
70
+ * only accepted on API-key-initiated requests — user-initiated creation always makes the
71
+ * calling user the creator and rejects the field with a 400.
72
+ */
73
+ create(request, options) {
74
+ const { workspace_id, ...body } = request;
75
+ return unwrap(this.#client.POST('/v1/workspaces/{workspace_id}/projects', {
76
+ params: { path: { workspace_id } },
77
+ body,
78
+ ...options,
79
+ }));
80
+ }
81
+ /**
82
+ * Get a project
83
+ *
84
+ * Retrieve a single project by id. The project is identified by the `project_id` path
85
+ * parameter alone; the `x-hh-project-id` header does not participate.
86
+ */
87
+ get(request, options) {
88
+ const { project_id } = request;
89
+ return unwrap(this.#client.GET('/v1/projects/{project_id}', {
90
+ params: { path: { project_id } },
91
+ ...options,
92
+ }));
93
+ }
94
+ /**
95
+ * Update a project
96
+ *
97
+ * Update a project's display name and/or description. The project is identified by the
98
+ * `project_id` path parameter alone; the `x-hh-project-id` header does not participate.
99
+ * Only fields included in the request body are modified.
100
+ */
101
+ update(request, options) {
102
+ const { project_id, ...body } = request;
103
+ return unwrap(this.#client.PUT('/v1/projects/{project_id}', {
104
+ params: { path: { project_id } },
105
+ body,
106
+ ...options,
107
+ }));
108
+ }
109
+ /**
110
+ * Delete a project
111
+ *
112
+ * Delete a project. The project is soft-deleted (archived) and no longer appears in reads;
113
+ * the response returns the archived project. The project is identified by the `project_id`
114
+ * path parameter alone; the `x-hh-project-id` header does not participate.
115
+ */
116
+ delete(request, options) {
117
+ const { project_id } = request;
118
+ return unwrap(this.#client.DELETE('/v1/projects/{project_id}', {
119
+ params: { path: { project_id } },
120
+ ...options,
121
+ }));
122
+ }
123
+ }
124
+ export class Client {
125
+ #client;
126
+ alerts;
127
+ projects;
128
+ constructor(options = {}) {
129
+ this.#client = createApiClient(options);
130
+ this.alerts = new AlertsNamespace(this.#client);
131
+ this.projects = new ProjectsNamespace(this.#client);
132
+ }
133
+ }
134
+ //# sourceMappingURL=client.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"client.js","sourceRoot":"","sources":["../../src/generated/client.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAmBtF,OAAO,EAAwC,eAAe,EAAE,MAAM,EAAE,MAAM,YAAY,CAAC;AAE3F,cAAc;AACd,MAAM,eAAe;IACnB,OAAO,CAA4C;IAEnD,YAAY,MAAiD;QAC3D,IAAI,CAAC,OAAO,GAAG,MAAM,CAAC;IACxB,CAAC;IAED;;;;;;OAMG;IACI,IAAI,CAAC,OAA0B,EAAE,OAAsB;QAC5D,MAAM,EAAE,UAAU,EAAE,IAAI,EAAE,KAAK,EAAE,MAAM,EAAE,OAAO,EAAE,UAAU,EAAE,GAAG,OAAO,CAAC;QACzE,OAAO,MAAM,CACX,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,kCAAkC,EAAE;YACnD,MAAM,EAAE,EAAE,IAAI,EAAE,EAAE,UAAU,EAAE,EAAE,KAAK,EAAE,EAAE,IAAI,EAAE,KAAK,EAAE,MAAM,EAAE,OAAO,EAAE,UAAU,EAAE,EAAE;YACrF,GAAG,OAAO;SACX,CAAC,CACH,CAAC;IACJ,CAAC;IAED;;;;;;;;OAQG;IACI,MAAM,CAAC,OAA2B,EAAE,OAAsB;QAC/D,MAAM,EAAE,UAAU,EAAE,GAAG,IAAI,EAAE,GAAG,OAAO,CAAC;QACxC,OAAO,MAAM,CACX,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,kCAAkC,EAAE;YACpD,MAAM,EAAE,EAAE,IAAI,EAAE,EAAE,UAAU,EAAE,EAAE;YAChC,IAAI;YACJ,GAAG,OAAO;SACX,CAAC,CACH,CAAC;IACJ,CAAC;IAED;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