@honeyhive/control-plane-sdk 1.0.0 → 1.1.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.
- package/CHANGELOG.md +13 -0
- package/README.md +2 -2
- package/dist/.tsbuildinfo +1 -1
- package/dist/generated/apiTypes.d.ts +150 -1
- package/dist/generated/apiTypes.d.ts.map +1 -1
- package/dist/generated/client.d.ts +194 -4
- package/dist/generated/client.d.ts.map +1 -1
- package/dist/generated/client.js +251 -3
- package/dist/generated/client.js.map +1 -1
- package/dist/generated/types.d.ts +672 -4
- package/dist/generated/types.d.ts.map +1 -1
- package/dist/generated/version.d.ts +1 -1
- package/dist/generated/version.js +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/package.json +2 -2
- package/release_notes.md +10 -2
- package/src/generated/apiTypes.ts +168 -1
- package/src/generated/client.ts +316 -3
- package/src/generated/types.ts +672 -4
- package/src/generated/version.ts +1 -1
- package/src/index.ts +16 -0
|
@@ -51,6 +51,50 @@ export interface paths {
|
|
|
51
51
|
patch?: never;
|
|
52
52
|
trace?: never;
|
|
53
53
|
};
|
|
54
|
+
'/v1/virtual_dataplanes/{virtual_dataplane_id}/workspaces': {
|
|
55
|
+
parameters: {
|
|
56
|
+
query?: never;
|
|
57
|
+
header?: never;
|
|
58
|
+
path?: never;
|
|
59
|
+
cookie?: never;
|
|
60
|
+
};
|
|
61
|
+
get?: never;
|
|
62
|
+
put?: never;
|
|
63
|
+
/**
|
|
64
|
+
* Create a workspace
|
|
65
|
+
* @description Create a workspace in a virtual data plane. The parent virtual data plane is identified by
|
|
66
|
+
* the `virtual_dataplane_id` path parameter alone; the `x-hh-dataplane-id` header does not
|
|
67
|
+
* participate. Your organization's virtual data plane ids are listed on the API keys page of
|
|
68
|
+
* your organization settings in the HoneyHive app. Most organizations have exactly one.
|
|
69
|
+
*
|
|
70
|
+
* The new workspace contains no projects. Create one with
|
|
71
|
+
* `POST /v1/workspaces/{workspace_id}/projects` if you need it, because a workspace with no
|
|
72
|
+
* projects has nowhere to log events.
|
|
73
|
+
*
|
|
74
|
+
* The optional `workspace_creator` field names the user (by email) who receives the
|
|
75
|
+
* workspace-creator membership on the new workspace. The named user must already be a member
|
|
76
|
+
* of the virtual data plane. When omitted, the workspace is created without any membership.
|
|
77
|
+
* The field is only accepted on API-key-initiated requests. User-initiated creation always
|
|
78
|
+
* makes the calling user the creator, so sending the field returns a 400.
|
|
79
|
+
*
|
|
80
|
+
* The roles that membership carries come from your organization's role configuration. An
|
|
81
|
+
* organization that grants no role on workspace creation is a supported case: the request
|
|
82
|
+
* still succeeds and the named user receives no access. A 200 response is not by itself
|
|
83
|
+
* confirmation that the named user was granted anything.
|
|
84
|
+
*
|
|
85
|
+
* A `workspace_creator` who is already signed in does not see the new workspace immediately.
|
|
86
|
+
* A session captures its scope tree and permission grants when it is created, so a membership
|
|
87
|
+
* granted afterwards is not reflected in it. Creating the workspace marks that user's sessions
|
|
88
|
+
* for refresh, and the refresh takes effect on their next request to the control plane, so an
|
|
89
|
+
* idle browser tab may need a page reload.
|
|
90
|
+
*/
|
|
91
|
+
post: operations['createWorkspace'];
|
|
92
|
+
delete?: never;
|
|
93
|
+
options?: never;
|
|
94
|
+
head?: never;
|
|
95
|
+
patch?: never;
|
|
96
|
+
trace?: never;
|
|
97
|
+
};
|
|
54
98
|
'/v1/workspaces/{workspace_id}/projects': {
|
|
55
99
|
parameters: {
|
|
56
100
|
query?: never;
|
|
@@ -63,13 +107,25 @@ export interface paths {
|
|
|
63
107
|
/**
|
|
64
108
|
* Create a project
|
|
65
109
|
* @description Create a project in a workspace. The parent workspace is identified by the `workspace_id`
|
|
66
|
-
* path parameter alone; the `x-hh-workspace-id` header does not participate.
|
|
110
|
+
* path parameter alone; the `x-hh-workspace-id` header does not participate. A workspace's id
|
|
111
|
+
* is listed on the API keys page of its workspace settings in the HoneyHive app.
|
|
67
112
|
*
|
|
68
113
|
* The optional `project_creator` field names the user (by email) who receives the
|
|
69
114
|
* project-creator membership on the new project. The named user must already be a member of
|
|
70
115
|
* the workspace. When omitted, the project is created without any membership. The field is
|
|
71
|
-
* only accepted on API-key-initiated requests
|
|
72
|
-
* calling user the creator
|
|
116
|
+
* only accepted on API-key-initiated requests. User-initiated creation always makes the
|
|
117
|
+
* calling user the creator, so sending the field returns a 400.
|
|
118
|
+
*
|
|
119
|
+
* The roles that membership carries come from your organization's role configuration. An
|
|
120
|
+
* organization that grants no role on project creation is a supported case: the request
|
|
121
|
+
* still succeeds and the named user receives no access. A 200 response is not by itself
|
|
122
|
+
* confirmation that the named user was granted anything.
|
|
123
|
+
*
|
|
124
|
+
* A `project_creator` who is already signed in does not see the new project immediately. A
|
|
125
|
+
* session captures its scope tree and permission grants when it is created, so a membership
|
|
126
|
+
* granted afterwards is not reflected in it. Creating the project marks that user's sessions
|
|
127
|
+
* for refresh, and the refresh takes effect on their next request to the control plane, so
|
|
128
|
+
* an idle browser tab may need a page reload.
|
|
73
129
|
*/
|
|
74
130
|
post: operations['createProject'];
|
|
75
131
|
delete?: never;
|
|
@@ -111,6 +167,176 @@ export interface paths {
|
|
|
111
167
|
patch?: never;
|
|
112
168
|
trace?: never;
|
|
113
169
|
};
|
|
170
|
+
'/v1/workspaces/{workspace_id}': {
|
|
171
|
+
parameters: {
|
|
172
|
+
query?: never;
|
|
173
|
+
header?: never;
|
|
174
|
+
path?: never;
|
|
175
|
+
cookie?: never;
|
|
176
|
+
};
|
|
177
|
+
/**
|
|
178
|
+
* Get a workspace
|
|
179
|
+
* @description Retrieve a single workspace by id. The workspace is identified by the `workspace_id` path
|
|
180
|
+
* parameter alone; the `x-hh-workspace-id` header does not participate.
|
|
181
|
+
*
|
|
182
|
+
* The returned `name` is the workspace's display name. The globally unique slug the workspace
|
|
183
|
+
* was assigned at creation is an internal detail and is not part of this contract.
|
|
184
|
+
*/
|
|
185
|
+
get: operations['getWorkspace'];
|
|
186
|
+
/**
|
|
187
|
+
* Update a workspace
|
|
188
|
+
* @description Update a workspace's display name and/or description. The workspace is identified by the
|
|
189
|
+
* `workspace_id` path parameter alone; the `x-hh-workspace-id` header does not participate.
|
|
190
|
+
* Only fields included in the request body are modified.
|
|
191
|
+
*
|
|
192
|
+
* The workspace's internal slug is not part of this contract and cannot be changed here.
|
|
193
|
+
*/
|
|
194
|
+
put: operations['updateWorkspace'];
|
|
195
|
+
post?: never;
|
|
196
|
+
/**
|
|
197
|
+
* Delete a workspace
|
|
198
|
+
* @description Delete a workspace. The workspace is soft-deleted (archived) and no longer appears in reads;
|
|
199
|
+
* the response returns the archived workspace. The workspace is identified by the
|
|
200
|
+
* `workspace_id` path parameter alone; the `x-hh-workspace-id` header does not participate.
|
|
201
|
+
*
|
|
202
|
+
* **Deleting a workspace also archives every project inside it**, so the events, datasets,
|
|
203
|
+
* and evaluations in those projects are no longer reachable. Because that reaches well
|
|
204
|
+
* beyond the resource named in the URL, a workspace that still has active projects is
|
|
205
|
+
* rejected with a 409 unless the request sets `dangerously_delete_child_scopes=true`.
|
|
206
|
+
* Projects that were already archived do not count, so a workspace emptied one project at a
|
|
207
|
+
* time deletes without the flag.
|
|
208
|
+
*
|
|
209
|
+
* The response describes only the workspace. It does not enumerate the projects archived
|
|
210
|
+
* alongside it, so read them first if you need that list.
|
|
211
|
+
*/
|
|
212
|
+
delete: operations['deleteWorkspace'];
|
|
213
|
+
options?: never;
|
|
214
|
+
head?: never;
|
|
215
|
+
patch?: never;
|
|
216
|
+
trace?: never;
|
|
217
|
+
};
|
|
218
|
+
'/v1/orgs/{org_id}/virtual_dataplanes': {
|
|
219
|
+
parameters: {
|
|
220
|
+
query?: never;
|
|
221
|
+
header?: never;
|
|
222
|
+
path?: never;
|
|
223
|
+
cookie?: never;
|
|
224
|
+
};
|
|
225
|
+
get?: never;
|
|
226
|
+
put?: never;
|
|
227
|
+
/**
|
|
228
|
+
* Create a virtual data plane
|
|
229
|
+
* @description Create a virtual data plane in an organization. The parent organization is identified by the
|
|
230
|
+
* `org_id` path parameter alone; the `x-hh-org-id` header does not participate. Your
|
|
231
|
+
* organization's id is listed on the API keys page of your organization settings in the
|
|
232
|
+
* HoneyHive app.
|
|
233
|
+
*
|
|
234
|
+
* A virtual data plane is a logical tenant boundary hosted on a physical cluster, and several
|
|
235
|
+
* of them commonly share one cluster. Workspaces are created inside it.
|
|
236
|
+
*
|
|
237
|
+
* `cluster_id` is optional, and omitting it is the common case: the new virtual data plane is
|
|
238
|
+
* placed on the same cluster as the organization's existing ones. Two situations require it
|
|
239
|
+
* explicitly, and both return a 400 that says so rather than guessing: an organization whose
|
|
240
|
+
* existing virtual data planes span more than one cluster, and an organization that has none
|
|
241
|
+
* yet. Every response includes `cluster_id`, so reading an existing virtual data plane tells
|
|
242
|
+
* you which value to send.
|
|
243
|
+
*
|
|
244
|
+
* A cluster admits an organization only if your control plane administrator configured it to,
|
|
245
|
+
* so a `cluster_id` you can read from a sibling virtual data plane is not necessarily one you
|
|
246
|
+
* may place a new virtual data plane on. A cluster that does not admit this organization
|
|
247
|
+
* returns a 403. When you named the cluster, the fix is a configuration change your
|
|
248
|
+
* administrator makes. When this endpoint inferred the cluster, send an explicit `cluster_id`
|
|
249
|
+
* to place the virtual data plane on another cluster.
|
|
250
|
+
*
|
|
251
|
+
* Deployments differ in who places virtual data planes. Where HoneyHive assigns them to
|
|
252
|
+
* organizations automatically, this endpoint returns a 403 for every request and the
|
|
253
|
+
* placement is not yours to make. Deployments whose administrators own the scope tree are
|
|
254
|
+
* the ones this endpoint serves.
|
|
255
|
+
*
|
|
256
|
+
* The optional `dataplane_creator` field names the user (by email) who receives the
|
|
257
|
+
* dataplane-creator membership on the new virtual data plane. The named user must already be a
|
|
258
|
+
* member of the organization. When omitted, it is created without any membership. The field is
|
|
259
|
+
* only accepted on API-key-initiated requests; user-initiated creation always makes the
|
|
260
|
+
* calling user the creator, so sending the field returns a 400.
|
|
261
|
+
*
|
|
262
|
+
* The roles that membership carries come from your organization's role configuration. An
|
|
263
|
+
* organization that grants no role on dataplane creation is a supported case: the request
|
|
264
|
+
* still succeeds and the named user receives no access. A 200 response is not by itself
|
|
265
|
+
* confirmation that the named user was granted anything.
|
|
266
|
+
*
|
|
267
|
+
* A `dataplane_creator` who is already signed in does not see the new virtual data plane
|
|
268
|
+
* immediately. A session captures its scope tree and permission grants when it is created, so
|
|
269
|
+
* a membership granted afterwards is not reflected in it; the refresh takes effect on their
|
|
270
|
+
* next request to the control plane.
|
|
271
|
+
*/
|
|
272
|
+
post: operations['createVirtualDataplane'];
|
|
273
|
+
delete?: never;
|
|
274
|
+
options?: never;
|
|
275
|
+
head?: never;
|
|
276
|
+
patch?: never;
|
|
277
|
+
trace?: never;
|
|
278
|
+
};
|
|
279
|
+
'/v1/virtual_dataplanes/{virtual_dataplane_id}': {
|
|
280
|
+
parameters: {
|
|
281
|
+
query?: never;
|
|
282
|
+
header?: never;
|
|
283
|
+
path?: never;
|
|
284
|
+
cookie?: never;
|
|
285
|
+
};
|
|
286
|
+
/**
|
|
287
|
+
* Get a virtual data plane
|
|
288
|
+
* @description Retrieve a single virtual data plane by id. It is identified by the `virtual_dataplane_id`
|
|
289
|
+
* path parameter alone; the `x-hh-dataplane-id` header does not participate.
|
|
290
|
+
*
|
|
291
|
+
* The returned `name` is the display name. The globally unique slug assigned at creation is
|
|
292
|
+
* an internal detail and is not part of this contract. `cluster_id` is the physical cluster
|
|
293
|
+
* hosting this virtual data plane, and it is the value to send when creating another one
|
|
294
|
+
* beside it.
|
|
295
|
+
*
|
|
296
|
+
* Reads work on every deployment, including those where HoneyHive assigns virtual data
|
|
297
|
+
* planes automatically and the write endpoints are unavailable.
|
|
298
|
+
*/
|
|
299
|
+
get: operations['getVirtualDataplane'];
|
|
300
|
+
/**
|
|
301
|
+
* Update a virtual data plane
|
|
302
|
+
* @description Update a virtual data plane's display name. It is identified by the `virtual_dataplane_id`
|
|
303
|
+
* path parameter alone; the `x-hh-dataplane-id` header does not participate.
|
|
304
|
+
*
|
|
305
|
+
* `name` is the only field this endpoint changes. `cluster_id` is placement rather than
|
|
306
|
+
* description: the workspaces and projects inside a virtual data plane hold data on the
|
|
307
|
+
* cluster hosting it, so moving one is a migration and not an update. A request that omits
|
|
308
|
+
* `name`, or sends the current one, changes nothing.
|
|
309
|
+
*
|
|
310
|
+
* This endpoint is unavailable where HoneyHive assigns virtual data planes automatically,
|
|
311
|
+
* and returns a 403 there.
|
|
312
|
+
*/
|
|
313
|
+
put: operations['updateVirtualDataplane'];
|
|
314
|
+
post?: never;
|
|
315
|
+
/**
|
|
316
|
+
* Delete a virtual data plane
|
|
317
|
+
* @description Delete a virtual data plane. It is soft-deleted (archived) and no longer appears in reads;
|
|
318
|
+
* the response returns the archived virtual data plane. It is identified by the
|
|
319
|
+
* `virtual_dataplane_id` path parameter alone; the `x-hh-dataplane-id` header does not
|
|
320
|
+
* participate.
|
|
321
|
+
*
|
|
322
|
+
* **Deleting a virtual data plane also archives every workspace inside it and every project
|
|
323
|
+
* inside those workspaces**, so the events, datasets, and evaluations in them are no longer
|
|
324
|
+
* reachable. Because that reaches two levels below the resource named in the URL, a virtual
|
|
325
|
+
* data plane with active workspaces is rejected with a 409 unless the request sets
|
|
326
|
+
* `dangerously_delete_child_scopes=true`. Workspaces that were already archived do not count.
|
|
327
|
+
*
|
|
328
|
+
* The response describes only the virtual data plane. It does not enumerate what the cascade
|
|
329
|
+
* archived, so read that first if you need the list.
|
|
330
|
+
*
|
|
331
|
+
* This endpoint is unavailable where HoneyHive assigns virtual data planes automatically,
|
|
332
|
+
* and returns a 403 there.
|
|
333
|
+
*/
|
|
334
|
+
delete: operations['deleteVirtualDataplane'];
|
|
335
|
+
options?: never;
|
|
336
|
+
head?: never;
|
|
337
|
+
patch?: never;
|
|
338
|
+
trace?: never;
|
|
339
|
+
};
|
|
114
340
|
}
|
|
115
341
|
export type webhooks = Record<string, never>;
|
|
116
342
|
export interface components {
|
|
@@ -277,7 +503,7 @@ export interface components {
|
|
|
277
503
|
description?: string;
|
|
278
504
|
/**
|
|
279
505
|
* Format: email
|
|
280
|
-
* @description Email of the user to grant the project-creator membership to (API key actors only)
|
|
506
|
+
* @description Email of the user to grant the project-creator membership to (API key actors only). A signed-in user does not see the new project until their session refreshes, which happens on their next request to the control plane.
|
|
281
507
|
*/
|
|
282
508
|
project_creator?: string;
|
|
283
509
|
};
|
|
@@ -308,6 +534,102 @@ export interface components {
|
|
|
308
534
|
success: boolean;
|
|
309
535
|
data: components['schemas']['ProjectItem'];
|
|
310
536
|
};
|
|
537
|
+
/** @description Virtual dataplane object */
|
|
538
|
+
VirtualDataplaneItem: {
|
|
539
|
+
id: string;
|
|
540
|
+
/** @description Virtual dataplane display name */
|
|
541
|
+
name: string;
|
|
542
|
+
/** @description Identifier of the physical cluster hosting this dataplane */
|
|
543
|
+
cluster_id: string;
|
|
544
|
+
created_at: string;
|
|
545
|
+
updated_at: string;
|
|
546
|
+
};
|
|
547
|
+
/** @description Request body for creating a virtual dataplane */
|
|
548
|
+
PostVirtualDataplaneRequest: {
|
|
549
|
+
/** @description Virtual dataplane display name. Allowed characters are letters, digits, space, underscore, hyphen, apostrophe and ampersand. The name must contain at least one letter or digit, and must not start with a space. */
|
|
550
|
+
name: string;
|
|
551
|
+
/** @description Physical cluster to host this virtual dataplane. Omit to place it alongside the existing virtual dataplanes in this org; required when the org has none yet, or when its virtual dataplanes span more than one cluster. */
|
|
552
|
+
cluster_id?: string;
|
|
553
|
+
/**
|
|
554
|
+
* Format: email
|
|
555
|
+
* @description Email of the user to grant the dataplane-creator membership to (API key actors only). A signed-in user does not see the new dataplane until their session refreshes, which happens on their next request to the control plane.
|
|
556
|
+
*/
|
|
557
|
+
dataplane_creator?: string;
|
|
558
|
+
};
|
|
559
|
+
/** @description Request body for updating a virtual dataplane */
|
|
560
|
+
PutVirtualDataplaneRequest: {
|
|
561
|
+
/** @description Virtual dataplane display name. Allowed characters are letters, digits, space, underscore, hyphen, apostrophe and ampersand. The name must contain at least one letter or digit, and must not start with a space. */
|
|
562
|
+
name?: string;
|
|
563
|
+
};
|
|
564
|
+
/** @description The created virtual dataplane */
|
|
565
|
+
CreateVirtualDataplaneResponse: {
|
|
566
|
+
success: boolean;
|
|
567
|
+
data: components['schemas']['VirtualDataplaneItem'];
|
|
568
|
+
};
|
|
569
|
+
/** @description A single virtual dataplane */
|
|
570
|
+
GetVirtualDataplaneResponse: {
|
|
571
|
+
success: boolean;
|
|
572
|
+
data: components['schemas']['VirtualDataplaneItem'];
|
|
573
|
+
};
|
|
574
|
+
/** @description The updated virtual dataplane */
|
|
575
|
+
UpdateVirtualDataplaneResponse: {
|
|
576
|
+
success: boolean;
|
|
577
|
+
data: components['schemas']['VirtualDataplaneItem'];
|
|
578
|
+
};
|
|
579
|
+
/** @description The deleted (archived) virtual dataplane. Descendants archived by the cascade are not listed. */
|
|
580
|
+
DeleteVirtualDataplaneResponse: {
|
|
581
|
+
success: boolean;
|
|
582
|
+
data: components['schemas']['VirtualDataplaneItem'];
|
|
583
|
+
};
|
|
584
|
+
/** @description Workspace object */
|
|
585
|
+
WorkspaceItem: {
|
|
586
|
+
id: string;
|
|
587
|
+
/** @description Workspace display name */
|
|
588
|
+
name: string;
|
|
589
|
+
/** @description Workspace description */
|
|
590
|
+
description: string;
|
|
591
|
+
created_at: string;
|
|
592
|
+
updated_at?: string | null;
|
|
593
|
+
};
|
|
594
|
+
/** @description Request body for creating a workspace */
|
|
595
|
+
PostWorkspaceRequest: {
|
|
596
|
+
/** @description Workspace display name. Allowed characters are letters, digits, space, underscore, hyphen, apostrophe and ampersand. The name must contain at least one letter or digit, and must not start with a space. */
|
|
597
|
+
name: string;
|
|
598
|
+
/** @description Workspace description */
|
|
599
|
+
description?: string;
|
|
600
|
+
/**
|
|
601
|
+
* Format: email
|
|
602
|
+
* @description Email of the user to grant the workspace-creator membership to (API key actors only). A signed-in user does not see the new workspace until their session refreshes, which happens on their next request to the control plane.
|
|
603
|
+
*/
|
|
604
|
+
workspace_creator?: string;
|
|
605
|
+
};
|
|
606
|
+
/** @description Request body for updating a workspace */
|
|
607
|
+
PutWorkspaceRequest: {
|
|
608
|
+
/** @description Workspace display name. Allowed characters are letters, digits, space, underscore, hyphen, apostrophe and ampersand. The name must contain at least one letter or digit, and must not start with a space. */
|
|
609
|
+
name?: string;
|
|
610
|
+
/** @description Workspace description */
|
|
611
|
+
description?: string;
|
|
612
|
+
};
|
|
613
|
+
/** @description The created workspace */
|
|
614
|
+
CreateWorkspaceResponse: {
|
|
615
|
+
success: boolean;
|
|
616
|
+
data: components['schemas']['WorkspaceItem'];
|
|
617
|
+
};
|
|
618
|
+
/** @description A single workspace */
|
|
619
|
+
GetWorkspaceResponse: {
|
|
620
|
+
success: boolean;
|
|
621
|
+
data: components['schemas']['WorkspaceItem'];
|
|
622
|
+
};
|
|
623
|
+
/** @description The updated workspace */
|
|
624
|
+
UpdateWorkspaceResponse: {
|
|
625
|
+
success: boolean;
|
|
626
|
+
data: components['schemas']['WorkspaceItem'];
|
|
627
|
+
};
|
|
628
|
+
/** @description The deleted (archived) workspace. Descendants archived by the cascade are not listed. */
|
|
629
|
+
DeleteWorkspaceResponse: {
|
|
630
|
+
success: boolean;
|
|
631
|
+
data: components['schemas']['WorkspaceItem'];
|
|
632
|
+
};
|
|
311
633
|
AlertItemThresholdsCritical: {
|
|
312
634
|
/** @enum {string} */
|
|
313
635
|
operator: 'greater_than' | 'less_than' | 'equal_to';
|
|
@@ -526,6 +848,47 @@ export interface operations {
|
|
|
526
848
|
};
|
|
527
849
|
};
|
|
528
850
|
};
|
|
851
|
+
createWorkspace: {
|
|
852
|
+
parameters: {
|
|
853
|
+
query?: never;
|
|
854
|
+
header?: never;
|
|
855
|
+
path: {
|
|
856
|
+
/** @description The unique identifier of the virtual data plane the workspace is created in */
|
|
857
|
+
virtual_dataplane_id: string;
|
|
858
|
+
};
|
|
859
|
+
cookie?: never;
|
|
860
|
+
};
|
|
861
|
+
requestBody: {
|
|
862
|
+
content: {
|
|
863
|
+
'application/json': components['schemas']['PostWorkspaceRequest'];
|
|
864
|
+
};
|
|
865
|
+
};
|
|
866
|
+
responses: {
|
|
867
|
+
/** @description Workspace created successfully */
|
|
868
|
+
200: {
|
|
869
|
+
headers: {
|
|
870
|
+
[name: string]: unknown;
|
|
871
|
+
};
|
|
872
|
+
content: {
|
|
873
|
+
'application/json': components['schemas']['CreateWorkspaceResponse'];
|
|
874
|
+
};
|
|
875
|
+
};
|
|
876
|
+
/** @description Invalid request body, or an unknown/ineligible `workspace_creator` */
|
|
877
|
+
400: {
|
|
878
|
+
headers: {
|
|
879
|
+
[name: string]: unknown;
|
|
880
|
+
};
|
|
881
|
+
content?: never;
|
|
882
|
+
};
|
|
883
|
+
/** @description Virtual data plane not found */
|
|
884
|
+
404: {
|
|
885
|
+
headers: {
|
|
886
|
+
[name: string]: unknown;
|
|
887
|
+
};
|
|
888
|
+
content?: never;
|
|
889
|
+
};
|
|
890
|
+
};
|
|
891
|
+
};
|
|
529
892
|
createProject: {
|
|
530
893
|
parameters: {
|
|
531
894
|
query?: never;
|
|
@@ -668,5 +1031,310 @@ export interface operations {
|
|
|
668
1031
|
};
|
|
669
1032
|
};
|
|
670
1033
|
};
|
|
1034
|
+
getWorkspace: {
|
|
1035
|
+
parameters: {
|
|
1036
|
+
query?: never;
|
|
1037
|
+
header?: never;
|
|
1038
|
+
path: {
|
|
1039
|
+
/** @description The unique identifier of the workspace to retrieve */
|
|
1040
|
+
workspace_id: string;
|
|
1041
|
+
};
|
|
1042
|
+
cookie?: never;
|
|
1043
|
+
};
|
|
1044
|
+
requestBody?: never;
|
|
1045
|
+
responses: {
|
|
1046
|
+
/** @description Workspace retrieved successfully */
|
|
1047
|
+
200: {
|
|
1048
|
+
headers: {
|
|
1049
|
+
[name: string]: unknown;
|
|
1050
|
+
};
|
|
1051
|
+
content: {
|
|
1052
|
+
'application/json': components['schemas']['GetWorkspaceResponse'];
|
|
1053
|
+
};
|
|
1054
|
+
};
|
|
1055
|
+
/** @description Workspace not found */
|
|
1056
|
+
404: {
|
|
1057
|
+
headers: {
|
|
1058
|
+
[name: string]: unknown;
|
|
1059
|
+
};
|
|
1060
|
+
content?: never;
|
|
1061
|
+
};
|
|
1062
|
+
};
|
|
1063
|
+
};
|
|
1064
|
+
updateWorkspace: {
|
|
1065
|
+
parameters: {
|
|
1066
|
+
query?: never;
|
|
1067
|
+
header?: never;
|
|
1068
|
+
path: {
|
|
1069
|
+
/** @description The unique identifier of the workspace to update */
|
|
1070
|
+
workspace_id: string;
|
|
1071
|
+
};
|
|
1072
|
+
cookie?: never;
|
|
1073
|
+
};
|
|
1074
|
+
requestBody: {
|
|
1075
|
+
content: {
|
|
1076
|
+
'application/json': components['schemas']['PutWorkspaceRequest'];
|
|
1077
|
+
};
|
|
1078
|
+
};
|
|
1079
|
+
responses: {
|
|
1080
|
+
/** @description Workspace updated successfully */
|
|
1081
|
+
200: {
|
|
1082
|
+
headers: {
|
|
1083
|
+
[name: string]: unknown;
|
|
1084
|
+
};
|
|
1085
|
+
content: {
|
|
1086
|
+
'application/json': components['schemas']['UpdateWorkspaceResponse'];
|
|
1087
|
+
};
|
|
1088
|
+
};
|
|
1089
|
+
/** @description Invalid request body */
|
|
1090
|
+
400: {
|
|
1091
|
+
headers: {
|
|
1092
|
+
[name: string]: unknown;
|
|
1093
|
+
};
|
|
1094
|
+
content?: never;
|
|
1095
|
+
};
|
|
1096
|
+
/** @description Workspace not found */
|
|
1097
|
+
404: {
|
|
1098
|
+
headers: {
|
|
1099
|
+
[name: string]: unknown;
|
|
1100
|
+
};
|
|
1101
|
+
content?: never;
|
|
1102
|
+
};
|
|
1103
|
+
};
|
|
1104
|
+
};
|
|
1105
|
+
deleteWorkspace: {
|
|
1106
|
+
parameters: {
|
|
1107
|
+
query?: {
|
|
1108
|
+
/**
|
|
1109
|
+
* @description Archive the workspace even when it still has active projects, archiving those projects
|
|
1110
|
+
* too. Without it, such a request fails with a 409 and no changes are made.
|
|
1111
|
+
*/
|
|
1112
|
+
dangerously_delete_child_scopes?: boolean;
|
|
1113
|
+
};
|
|
1114
|
+
header?: never;
|
|
1115
|
+
path: {
|
|
1116
|
+
/** @description The unique identifier of the workspace to delete */
|
|
1117
|
+
workspace_id: string;
|
|
1118
|
+
};
|
|
1119
|
+
cookie?: never;
|
|
1120
|
+
};
|
|
1121
|
+
requestBody?: never;
|
|
1122
|
+
responses: {
|
|
1123
|
+
/** @description Workspace deleted successfully */
|
|
1124
|
+
200: {
|
|
1125
|
+
headers: {
|
|
1126
|
+
[name: string]: unknown;
|
|
1127
|
+
};
|
|
1128
|
+
content: {
|
|
1129
|
+
'application/json': components['schemas']['DeleteWorkspaceResponse'];
|
|
1130
|
+
};
|
|
1131
|
+
};
|
|
1132
|
+
/** @description `dangerously_delete_child_scopes` is not `true` or `false` */
|
|
1133
|
+
400: {
|
|
1134
|
+
headers: {
|
|
1135
|
+
[name: string]: unknown;
|
|
1136
|
+
};
|
|
1137
|
+
content?: never;
|
|
1138
|
+
};
|
|
1139
|
+
/** @description Workspace not found */
|
|
1140
|
+
404: {
|
|
1141
|
+
headers: {
|
|
1142
|
+
[name: string]: unknown;
|
|
1143
|
+
};
|
|
1144
|
+
content?: never;
|
|
1145
|
+
};
|
|
1146
|
+
/** @description The workspace still has active projects and `dangerously_delete_child_scopes` was not set */
|
|
1147
|
+
409: {
|
|
1148
|
+
headers: {
|
|
1149
|
+
[name: string]: unknown;
|
|
1150
|
+
};
|
|
1151
|
+
content?: never;
|
|
1152
|
+
};
|
|
1153
|
+
};
|
|
1154
|
+
};
|
|
1155
|
+
createVirtualDataplane: {
|
|
1156
|
+
parameters: {
|
|
1157
|
+
query?: never;
|
|
1158
|
+
header?: never;
|
|
1159
|
+
path: {
|
|
1160
|
+
/** @description The unique identifier of the organization the virtual data plane is created in */
|
|
1161
|
+
org_id: string;
|
|
1162
|
+
};
|
|
1163
|
+
cookie?: never;
|
|
1164
|
+
};
|
|
1165
|
+
requestBody: {
|
|
1166
|
+
content: {
|
|
1167
|
+
'application/json': components['schemas']['PostVirtualDataplaneRequest'];
|
|
1168
|
+
};
|
|
1169
|
+
};
|
|
1170
|
+
responses: {
|
|
1171
|
+
/** @description Virtual data plane created successfully */
|
|
1172
|
+
200: {
|
|
1173
|
+
headers: {
|
|
1174
|
+
[name: string]: unknown;
|
|
1175
|
+
};
|
|
1176
|
+
content: {
|
|
1177
|
+
'application/json': components['schemas']['CreateVirtualDataplaneResponse'];
|
|
1178
|
+
};
|
|
1179
|
+
};
|
|
1180
|
+
/** @description Invalid request body, an unknown or ineligible `dataplane_creator`, `cluster_id` omitted when it could not be inferred, or the named cluster is disabled */
|
|
1181
|
+
400: {
|
|
1182
|
+
headers: {
|
|
1183
|
+
[name: string]: unknown;
|
|
1184
|
+
};
|
|
1185
|
+
content?: never;
|
|
1186
|
+
};
|
|
1187
|
+
/** @description The caller may not create a virtual data plane here: the permission is missing at this organization, the API key's root scope does not contain it, this deployment assigns virtual data planes automatically, or the cluster (named or inferred) does not admit this organization */
|
|
1188
|
+
403: {
|
|
1189
|
+
headers: {
|
|
1190
|
+
[name: string]: unknown;
|
|
1191
|
+
};
|
|
1192
|
+
content?: never;
|
|
1193
|
+
};
|
|
1194
|
+
/** @description Organization or cluster not found */
|
|
1195
|
+
404: {
|
|
1196
|
+
headers: {
|
|
1197
|
+
[name: string]: unknown;
|
|
1198
|
+
};
|
|
1199
|
+
content?: never;
|
|
1200
|
+
};
|
|
1201
|
+
};
|
|
1202
|
+
};
|
|
1203
|
+
getVirtualDataplane: {
|
|
1204
|
+
parameters: {
|
|
1205
|
+
query?: never;
|
|
1206
|
+
header?: never;
|
|
1207
|
+
path: {
|
|
1208
|
+
/** @description The unique identifier of the virtual data plane to retrieve */
|
|
1209
|
+
virtual_dataplane_id: string;
|
|
1210
|
+
};
|
|
1211
|
+
cookie?: never;
|
|
1212
|
+
};
|
|
1213
|
+
requestBody?: never;
|
|
1214
|
+
responses: {
|
|
1215
|
+
/** @description Virtual data plane retrieved successfully */
|
|
1216
|
+
200: {
|
|
1217
|
+
headers: {
|
|
1218
|
+
[name: string]: unknown;
|
|
1219
|
+
};
|
|
1220
|
+
content: {
|
|
1221
|
+
'application/json': components['schemas']['GetVirtualDataplaneResponse'];
|
|
1222
|
+
};
|
|
1223
|
+
};
|
|
1224
|
+
/** @description Virtual data plane not found */
|
|
1225
|
+
404: {
|
|
1226
|
+
headers: {
|
|
1227
|
+
[name: string]: unknown;
|
|
1228
|
+
};
|
|
1229
|
+
content?: never;
|
|
1230
|
+
};
|
|
1231
|
+
};
|
|
1232
|
+
};
|
|
1233
|
+
updateVirtualDataplane: {
|
|
1234
|
+
parameters: {
|
|
1235
|
+
query?: never;
|
|
1236
|
+
header?: never;
|
|
1237
|
+
path: {
|
|
1238
|
+
/** @description The unique identifier of the virtual data plane to update */
|
|
1239
|
+
virtual_dataplane_id: string;
|
|
1240
|
+
};
|
|
1241
|
+
cookie?: never;
|
|
1242
|
+
};
|
|
1243
|
+
requestBody: {
|
|
1244
|
+
content: {
|
|
1245
|
+
'application/json': components['schemas']['PutVirtualDataplaneRequest'];
|
|
1246
|
+
};
|
|
1247
|
+
};
|
|
1248
|
+
responses: {
|
|
1249
|
+
/** @description Virtual data plane updated successfully */
|
|
1250
|
+
200: {
|
|
1251
|
+
headers: {
|
|
1252
|
+
[name: string]: unknown;
|
|
1253
|
+
};
|
|
1254
|
+
content: {
|
|
1255
|
+
'application/json': components['schemas']['UpdateVirtualDataplaneResponse'];
|
|
1256
|
+
};
|
|
1257
|
+
};
|
|
1258
|
+
/** @description Invalid request body */
|
|
1259
|
+
400: {
|
|
1260
|
+
headers: {
|
|
1261
|
+
[name: string]: unknown;
|
|
1262
|
+
};
|
|
1263
|
+
content?: never;
|
|
1264
|
+
};
|
|
1265
|
+
/** @description The caller may not update this virtual data plane, or this deployment assigns virtual data planes automatically */
|
|
1266
|
+
403: {
|
|
1267
|
+
headers: {
|
|
1268
|
+
[name: string]: unknown;
|
|
1269
|
+
};
|
|
1270
|
+
content?: never;
|
|
1271
|
+
};
|
|
1272
|
+
/** @description Virtual data plane not found */
|
|
1273
|
+
404: {
|
|
1274
|
+
headers: {
|
|
1275
|
+
[name: string]: unknown;
|
|
1276
|
+
};
|
|
1277
|
+
content?: never;
|
|
1278
|
+
};
|
|
1279
|
+
};
|
|
1280
|
+
};
|
|
1281
|
+
deleteVirtualDataplane: {
|
|
1282
|
+
parameters: {
|
|
1283
|
+
query?: {
|
|
1284
|
+
/**
|
|
1285
|
+
* @description Archive the virtual data plane even when it still has active workspaces, archiving
|
|
1286
|
+
* those workspaces and their projects too. Without it, such a request fails with a 409
|
|
1287
|
+
* and no changes are made.
|
|
1288
|
+
*/
|
|
1289
|
+
dangerously_delete_child_scopes?: boolean;
|
|
1290
|
+
};
|
|
1291
|
+
header?: never;
|
|
1292
|
+
path: {
|
|
1293
|
+
/** @description The unique identifier of the virtual data plane to delete */
|
|
1294
|
+
virtual_dataplane_id: string;
|
|
1295
|
+
};
|
|
1296
|
+
cookie?: never;
|
|
1297
|
+
};
|
|
1298
|
+
requestBody?: never;
|
|
1299
|
+
responses: {
|
|
1300
|
+
/** @description Virtual data plane deleted successfully */
|
|
1301
|
+
200: {
|
|
1302
|
+
headers: {
|
|
1303
|
+
[name: string]: unknown;
|
|
1304
|
+
};
|
|
1305
|
+
content: {
|
|
1306
|
+
'application/json': components['schemas']['DeleteVirtualDataplaneResponse'];
|
|
1307
|
+
};
|
|
1308
|
+
};
|
|
1309
|
+
/** @description `dangerously_delete_child_scopes` is not `true` or `false` */
|
|
1310
|
+
400: {
|
|
1311
|
+
headers: {
|
|
1312
|
+
[name: string]: unknown;
|
|
1313
|
+
};
|
|
1314
|
+
content?: never;
|
|
1315
|
+
};
|
|
1316
|
+
/** @description The caller may not delete this virtual data plane, or this deployment assigns virtual data planes automatically */
|
|
1317
|
+
403: {
|
|
1318
|
+
headers: {
|
|
1319
|
+
[name: string]: unknown;
|
|
1320
|
+
};
|
|
1321
|
+
content?: never;
|
|
1322
|
+
};
|
|
1323
|
+
/** @description Virtual data plane not found */
|
|
1324
|
+
404: {
|
|
1325
|
+
headers: {
|
|
1326
|
+
[name: string]: unknown;
|
|
1327
|
+
};
|
|
1328
|
+
content?: never;
|
|
1329
|
+
};
|
|
1330
|
+
/** @description The virtual data plane still has active workspaces and `dangerously_delete_child_scopes` was not set */
|
|
1331
|
+
409: {
|
|
1332
|
+
headers: {
|
|
1333
|
+
[name: string]: unknown;
|
|
1334
|
+
};
|
|
1335
|
+
content?: never;
|
|
1336
|
+
};
|
|
1337
|
+
};
|
|
1338
|
+
};
|
|
671
1339
|
}
|
|
672
1340
|
//# sourceMappingURL=types.d.ts.map
|