@honeyhive/control-plane-sdk 1.0.0 → 1.2.0

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.
@@ -2,9 +2,9 @@
2
2
  import { createApiClient, unwrap } from '../util.js';
3
3
  /** @inline */
4
4
  class AlertsNamespace {
5
- #client;
6
- constructor(client) {
7
- this.#client = client;
5
+ #clients;
6
+ constructor(clients) {
7
+ this.#clients = clients;
8
8
  }
9
9
  /**
10
10
  * List alerts
@@ -15,7 +15,8 @@ class AlertsNamespace {
15
15
  */
16
16
  list(request, options) {
17
17
  const { project_id, page, limit, status, sort_by, sort_order } = request;
18
- return unwrap(this.#client.GET('/v1/projects/{project_id}/alerts', {
18
+ const httpClient = this.#clients.ControlPlaneApiKey;
19
+ return unwrap(httpClient.GET('/v1/projects/{project_id}/alerts', {
19
20
  params: { path: { project_id }, query: { page, limit, status, sort_by, sort_order } },
20
21
  ...options,
21
22
  }));
@@ -31,7 +32,8 @@ class AlertsNamespace {
31
32
  */
32
33
  create(request, options) {
33
34
  const { project_id, ...body } = request;
34
- return unwrap(this.#client.POST('/v1/projects/{project_id}/alerts', {
35
+ const httpClient = this.#clients.ControlPlaneApiKey;
36
+ return unwrap(httpClient.POST('/v1/projects/{project_id}/alerts', {
35
37
  params: { path: { project_id } },
36
38
  body,
37
39
  ...options,
@@ -46,33 +48,152 @@ class AlertsNamespace {
46
48
  */
47
49
  get(request, options) {
48
50
  const { project_id, alert_id } = request;
49
- return unwrap(this.#client.GET('/v1/projects/{project_id}/alerts/{alert_id}', {
51
+ const httpClient = this.#clients.ControlPlaneApiKey;
52
+ return unwrap(httpClient.GET('/v1/projects/{project_id}/alerts/{alert_id}', {
50
53
  params: { path: { project_id, alert_id } },
51
54
  ...options,
52
55
  }));
53
56
  }
54
57
  }
55
58
  /** @inline */
59
+ class WorkspacesNamespace {
60
+ #clients;
61
+ constructor(clients) {
62
+ this.#clients = clients;
63
+ }
64
+ /**
65
+ * Create a workspace
66
+ *
67
+ * Create a workspace in a virtual data plane. The parent virtual data plane is identified by
68
+ * the `virtual_dataplane_id` path parameter alone; the `x-hh-dataplane-id` header does not
69
+ * participate. Your organization's virtual data plane ids are listed on the API keys page of
70
+ * your organization settings in the HoneyHive app. Most organizations have exactly one.
71
+ *
72
+ * The new workspace contains no projects. Create one with
73
+ * `POST /v1/workspaces/{workspace_id}/projects` if you need it, because a workspace with no
74
+ * projects has nowhere to log events.
75
+ *
76
+ * The optional `workspace_creator` field names the user (by email) who receives the
77
+ * workspace-creator membership on the new workspace. The named user must already be a member
78
+ * of the virtual data plane. When omitted, the workspace is created without any membership.
79
+ * The field is only accepted on API-key-initiated requests. User-initiated creation always
80
+ * makes the calling user the creator, so sending the field returns a 400.
81
+ *
82
+ * The roles that membership carries come from your organization's role configuration. An
83
+ * organization that grants no role on workspace creation is a supported case: the request
84
+ * still succeeds and the named user receives no access. A 200 response is not by itself
85
+ * confirmation that the named user was granted anything.
86
+ *
87
+ * A `workspace_creator` who is already signed in does not see the new workspace immediately.
88
+ * A session captures its scope tree and permission grants when it is created, so a membership
89
+ * granted afterwards is not reflected in it. Creating the workspace marks that user's sessions
90
+ * for refresh, and the refresh takes effect on their next request to the control plane, so an
91
+ * idle browser tab may need a page reload.
92
+ */
93
+ create(request, options) {
94
+ const { virtual_dataplane_id, ...body } = request;
95
+ const httpClient = this.#clients.ControlPlaneApiKey;
96
+ return unwrap(httpClient.POST('/v1/virtual_dataplanes/{virtual_dataplane_id}/workspaces', {
97
+ params: { path: { virtual_dataplane_id } },
98
+ body,
99
+ ...options,
100
+ }));
101
+ }
102
+ /**
103
+ * Get a workspace
104
+ *
105
+ * Retrieve a single workspace by id. The workspace is identified by the `workspace_id` path
106
+ * parameter alone; the `x-hh-workspace-id` header does not participate.
107
+ *
108
+ * The returned `name` is the workspace's display name. The globally unique slug the workspace
109
+ * was assigned at creation is an internal detail and is not part of this contract.
110
+ */
111
+ get(request, options) {
112
+ const { workspace_id } = request;
113
+ const httpClient = this.#clients.ControlPlaneApiKey;
114
+ return unwrap(httpClient.GET('/v1/workspaces/{workspace_id}', {
115
+ params: { path: { workspace_id } },
116
+ ...options,
117
+ }));
118
+ }
119
+ /**
120
+ * Update a workspace
121
+ *
122
+ * Update a workspace's display name and/or description. The workspace is identified by the
123
+ * `workspace_id` path parameter alone; the `x-hh-workspace-id` header does not participate.
124
+ * Only fields included in the request body are modified.
125
+ *
126
+ * The workspace's internal slug is not part of this contract and cannot be changed here.
127
+ */
128
+ update(request, options) {
129
+ const { workspace_id, ...body } = request;
130
+ const httpClient = this.#clients.ControlPlaneApiKey;
131
+ return unwrap(httpClient.PUT('/v1/workspaces/{workspace_id}', {
132
+ params: { path: { workspace_id } },
133
+ body,
134
+ ...options,
135
+ }));
136
+ }
137
+ /**
138
+ * Delete a workspace
139
+ *
140
+ * Delete a workspace. The workspace is soft-deleted (archived) and no longer appears in reads;
141
+ * the response returns the archived workspace. The workspace is identified by the
142
+ * `workspace_id` path parameter alone; the `x-hh-workspace-id` header does not participate.
143
+ *
144
+ * **Deleting a workspace also archives every project inside it**, so the events, datasets,
145
+ * and evaluations in those projects are no longer reachable. Because that reaches well
146
+ * beyond the resource named in the URL, a workspace that still has active projects is
147
+ * rejected with a 409 unless the request sets `dangerously_delete_child_scopes=true`.
148
+ * Projects that were already archived do not count, so a workspace emptied one project at a
149
+ * time deletes without the flag.
150
+ *
151
+ * The response describes only the workspace. It does not enumerate the projects archived
152
+ * alongside it, so read them first if you need that list.
153
+ */
154
+ delete(request, options) {
155
+ const { workspace_id, dangerously_delete_child_scopes } = request;
156
+ const httpClient = this.#clients.ControlPlaneApiKey;
157
+ return unwrap(httpClient.DELETE('/v1/workspaces/{workspace_id}', {
158
+ params: { path: { workspace_id }, query: { dangerously_delete_child_scopes } },
159
+ ...options,
160
+ }));
161
+ }
162
+ }
163
+ /** @inline */
56
164
  class ProjectsNamespace {
57
- #client;
58
- constructor(client) {
59
- this.#client = client;
165
+ #clients;
166
+ constructor(clients) {
167
+ this.#clients = clients;
60
168
  }
61
169
  /**
62
170
  * Create a project
63
171
  *
64
172
  * 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.
173
+ * path parameter alone; the `x-hh-workspace-id` header does not participate. A workspace's id
174
+ * is listed on the API keys page of its workspace settings in the HoneyHive app.
66
175
  *
67
176
  * The optional `project_creator` field names the user (by email) who receives the
68
177
  * project-creator membership on the new project. The named user must already be a member of
69
178
  * 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.
179
+ * only accepted on API-key-initiated requests. User-initiated creation always makes the
180
+ * calling user the creator, so sending the field returns a 400.
181
+ *
182
+ * The roles that membership carries come from your organization's role configuration. An
183
+ * organization that grants no role on project creation is a supported case: the request
184
+ * still succeeds and the named user receives no access. A 200 response is not by itself
185
+ * confirmation that the named user was granted anything.
186
+ *
187
+ * A `project_creator` who is already signed in does not see the new project immediately. A
188
+ * session captures its scope tree and permission grants when it is created, so a membership
189
+ * granted afterwards is not reflected in it. Creating the project marks that user's sessions
190
+ * for refresh, and the refresh takes effect on their next request to the control plane, so
191
+ * an idle browser tab may need a page reload.
72
192
  */
73
193
  create(request, options) {
74
194
  const { workspace_id, ...body } = request;
75
- return unwrap(this.#client.POST('/v1/workspaces/{workspace_id}/projects', {
195
+ const httpClient = this.#clients.ControlPlaneApiKey;
196
+ return unwrap(httpClient.POST('/v1/workspaces/{workspace_id}/projects', {
76
197
  params: { path: { workspace_id } },
77
198
  body,
78
199
  ...options,
@@ -86,10 +207,8 @@ class ProjectsNamespace {
86
207
  */
87
208
  get(request, options) {
88
209
  const { project_id } = request;
89
- return unwrap(this.#client.GET('/v1/projects/{project_id}', {
90
- params: { path: { project_id } },
91
- ...options,
92
- }));
210
+ const httpClient = this.#clients.ControlPlaneApiKey;
211
+ return unwrap(httpClient.GET('/v1/projects/{project_id}', { params: { path: { project_id } }, ...options }));
93
212
  }
94
213
  /**
95
214
  * Update a project
@@ -100,7 +219,8 @@ class ProjectsNamespace {
100
219
  */
101
220
  update(request, options) {
102
221
  const { project_id, ...body } = request;
103
- return unwrap(this.#client.PUT('/v1/projects/{project_id}', {
222
+ const httpClient = this.#clients.ControlPlaneApiKey;
223
+ return unwrap(httpClient.PUT('/v1/projects/{project_id}', {
104
224
  params: { path: { project_id } },
105
225
  body,
106
226
  ...options,
@@ -115,20 +235,159 @@ class ProjectsNamespace {
115
235
  */
116
236
  delete(request, options) {
117
237
  const { project_id } = request;
118
- return unwrap(this.#client.DELETE('/v1/projects/{project_id}', {
238
+ const httpClient = this.#clients.ControlPlaneApiKey;
239
+ return unwrap(httpClient.DELETE('/v1/projects/{project_id}', {
119
240
  params: { path: { project_id } },
120
241
  ...options,
121
242
  }));
122
243
  }
123
244
  }
245
+ /** @inline */
246
+ class VirtualDataplanesNamespace {
247
+ #clients;
248
+ constructor(clients) {
249
+ this.#clients = clients;
250
+ }
251
+ /**
252
+ * Create a virtual data plane
253
+ *
254
+ * Create a virtual data plane in an organization. The parent organization is identified by the
255
+ * `org_id` path parameter alone; the `x-hh-org-id` header does not participate. Your
256
+ * organization's id is listed on the API keys page of your organization settings in the
257
+ * HoneyHive app.
258
+ *
259
+ * A virtual data plane is a logical tenant boundary hosted on a physical cluster, and several
260
+ * of them commonly share one cluster. Workspaces are created inside it.
261
+ *
262
+ * `cluster_id` is optional, and omitting it is the common case: the new virtual data plane is
263
+ * placed on the same cluster as the organization's existing ones. Two situations require it
264
+ * explicitly, and both return a 400 that says so rather than guessing: an organization whose
265
+ * existing virtual data planes span more than one cluster, and an organization that has none
266
+ * yet. Every response includes `cluster_id`, so reading an existing virtual data plane tells
267
+ * you which value to send.
268
+ *
269
+ * A cluster admits an organization only if your control plane administrator configured it to,
270
+ * so a `cluster_id` you can read from a sibling virtual data plane is not necessarily one you
271
+ * may place a new virtual data plane on. A cluster that does not admit this organization
272
+ * returns a 404. When this endpoint inferred the cluster, send an explicit `cluster_id` to
273
+ * place the virtual data plane on another cluster.
274
+ *
275
+ * Deployments differ in who places virtual data planes. Where HoneyHive assigns them to
276
+ * organizations automatically, this endpoint returns a 404 for every request and the
277
+ * placement is not yours to make. Deployments whose administrators own the scope tree are
278
+ * the ones this endpoint serves.
279
+ *
280
+ * The optional `dataplane_creator` field names the user (by email) who receives the
281
+ * dataplane-creator membership on the new virtual data plane. The named user must already be a
282
+ * member of the organization. When omitted, it is created without any membership. The field is
283
+ * only accepted on API-key-initiated requests; user-initiated creation always makes the
284
+ * calling user the creator, so sending the field returns a 400.
285
+ *
286
+ * The roles that membership carries come from your organization's role configuration. An
287
+ * organization that grants no role on dataplane creation is a supported case: the request
288
+ * still succeeds and the named user receives no access. A 200 response is not by itself
289
+ * confirmation that the named user was granted anything.
290
+ *
291
+ * A `dataplane_creator` who is already signed in does not see the new virtual data plane
292
+ * immediately. A session captures its scope tree and permission grants when it is created, so
293
+ * a membership granted afterwards is not reflected in it; the refresh takes effect on their
294
+ * next request to the control plane.
295
+ */
296
+ create(request, options) {
297
+ const { org_id, ...body } = request;
298
+ const httpClient = this.#clients.ControlPlaneApiKey;
299
+ return unwrap(httpClient.POST('/v1/orgs/{org_id}/virtual_dataplanes', {
300
+ params: { path: { org_id } },
301
+ body,
302
+ ...options,
303
+ }));
304
+ }
305
+ /**
306
+ * Get a virtual data plane
307
+ *
308
+ * Retrieve a single virtual data plane by id. It is identified by the `virtual_dataplane_id`
309
+ * path parameter alone; the `x-hh-dataplane-id` header does not participate.
310
+ *
311
+ * The returned `name` is the display name. The globally unique slug assigned at creation is
312
+ * an internal detail and is not part of this contract. `cluster_id` is the physical cluster
313
+ * hosting this virtual data plane, and it is the value to send when creating another one
314
+ * beside it.
315
+ *
316
+ * Reads work on every deployment, including those where HoneyHive assigns virtual data
317
+ * planes automatically and the write endpoints are unavailable.
318
+ */
319
+ get(request, options) {
320
+ const { virtual_dataplane_id } = request;
321
+ const httpClient = this.#clients.ControlPlaneApiKey;
322
+ return unwrap(httpClient.GET('/v1/virtual_dataplanes/{virtual_dataplane_id}', {
323
+ params: { path: { virtual_dataplane_id } },
324
+ ...options,
325
+ }));
326
+ }
327
+ /**
328
+ * Update a virtual data plane
329
+ *
330
+ * Update a virtual data plane's display name. It is identified by the `virtual_dataplane_id`
331
+ * path parameter alone; the `x-hh-dataplane-id` header does not participate.
332
+ *
333
+ * `name` is the only field this endpoint changes. `cluster_id` is placement rather than
334
+ * description: the workspaces and projects inside a virtual data plane hold data on the
335
+ * cluster hosting it, so moving one is a migration and not an update. A request that omits
336
+ * `name`, or sends the current one, changes nothing.
337
+ *
338
+ * This endpoint is unavailable where HoneyHive assigns virtual data planes automatically,
339
+ * and returns a 404 there.
340
+ */
341
+ update(request, options) {
342
+ const { virtual_dataplane_id, ...body } = request;
343
+ const httpClient = this.#clients.ControlPlaneApiKey;
344
+ return unwrap(httpClient.PUT('/v1/virtual_dataplanes/{virtual_dataplane_id}', {
345
+ params: { path: { virtual_dataplane_id } },
346
+ body,
347
+ ...options,
348
+ }));
349
+ }
350
+ /**
351
+ * Delete a virtual data plane
352
+ *
353
+ * Delete a virtual data plane. It is soft-deleted (archived) and no longer appears in reads;
354
+ * the response returns the archived virtual data plane. It is identified by the
355
+ * `virtual_dataplane_id` path parameter alone; the `x-hh-dataplane-id` header does not
356
+ * participate.
357
+ *
358
+ * **Deleting a virtual data plane also archives every workspace inside it and every project
359
+ * inside those workspaces**, so the events, datasets, and evaluations in them are no longer
360
+ * reachable. Because that reaches two levels below the resource named in the URL, a virtual
361
+ * data plane with active workspaces is rejected with a 409 unless the request sets
362
+ * `dangerously_delete_child_scopes=true`. Workspaces that were already archived do not count.
363
+ *
364
+ * The response describes only the virtual data plane. It does not enumerate what the cascade
365
+ * archived, so read that first if you need the list.
366
+ *
367
+ * This endpoint is unavailable where HoneyHive assigns virtual data planes automatically,
368
+ * and returns a 404 there.
369
+ */
370
+ delete(request, options) {
371
+ const { virtual_dataplane_id, dangerously_delete_child_scopes } = request;
372
+ const httpClient = this.#clients.ControlPlaneApiKey;
373
+ return unwrap(httpClient.DELETE('/v1/virtual_dataplanes/{virtual_dataplane_id}', {
374
+ params: { path: { virtual_dataplane_id }, query: { dangerously_delete_child_scopes } },
375
+ ...options,
376
+ }));
377
+ }
378
+ }
124
379
  export class Client {
125
- #client;
380
+ #clients;
126
381
  alerts;
382
+ workspaces;
127
383
  projects;
384
+ virtualDataplanes;
128
385
  constructor(options = {}) {
129
- this.#client = createApiClient(options);
130
- this.alerts = new AlertsNamespace(this.#client);
131
- this.projects = new ProjectsNamespace(this.#client);
386
+ this.#clients = createApiClient(options);
387
+ this.alerts = new AlertsNamespace(this.#clients);
388
+ this.workspaces = new WorkspacesNamespace(this.#clients);
389
+ this.projects = new ProjectsNamespace(this.#clients);
390
+ this.virtualDataplanes = new VirtualDataplanesNamespace(this.#clients);
132
391
  }
133
392
  }
134
393
  //# sourceMappingURL=client.js.map
@@ -1 +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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