windmill-client 1.850.0 → 1.852.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/dist/core/OpenAPI.mjs +1 -1
- package/dist/index.js +320 -319
- package/dist/services.gen.d.ts +151 -150
- package/dist/services.gen.mjs +319 -318
- package/dist/types.gen.d.ts +546 -531
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -126,7 +126,7 @@ const OpenAPI = {
|
|
|
126
126
|
PASSWORD: void 0,
|
|
127
127
|
TOKEN: getEnv$1("WM_TOKEN"),
|
|
128
128
|
USERNAME: void 0,
|
|
129
|
-
VERSION: "1.
|
|
129
|
+
VERSION: "1.852.0",
|
|
130
130
|
WITH_CREDENTIALS: !getEnv$1("WM_RAW_APP"),
|
|
131
131
|
interceptors: {
|
|
132
132
|
request: new Interceptors(),
|
|
@@ -3942,24 +3942,6 @@ var WorkspaceService = class {
|
|
|
3942
3942
|
});
|
|
3943
3943
|
}
|
|
3944
3944
|
/**
|
|
3945
|
-
* enable or disable guest sessions for this workspace
|
|
3946
|
-
* Guests are people the identity provider authenticates who have no Windmill account; the `guest` app execution mode admits them. Off by default. Re-read where a guest session is minted and at the auth door on every guest request, so turning it off takes effect immediately, for sessions already issued and for apps whose policy already says `guest`. Turning it *on* is refused with a 400 where guests are unavailable (the shared cloud); turning it off always works.
|
|
3947
|
-
* @param data The data for the request.
|
|
3948
|
-
* @param data.workspace
|
|
3949
|
-
* @param data.requestBody Whether guest sessions are admitted
|
|
3950
|
-
* @returns string status
|
|
3951
|
-
* @throws ApiError
|
|
3952
|
-
*/
|
|
3953
|
-
static editGuestAccess(data) {
|
|
3954
|
-
return request(OpenAPI, {
|
|
3955
|
-
method: "POST",
|
|
3956
|
-
url: "/w/{workspace}/workspaces/edit_guest_access",
|
|
3957
|
-
path: { workspace: data.workspace },
|
|
3958
|
-
body: data.requestBody,
|
|
3959
|
-
mediaType: "application/json"
|
|
3960
|
-
});
|
|
3961
|
-
}
|
|
3962
|
-
/**
|
|
3963
3945
|
* choose whether new forks of this workspace start with its admins and developers
|
|
3964
3946
|
* When on, every fork created from this workspace gets the workspace's admins and developers as members, with the role they hold here; operators, disabled users and service accounts are left out. The setting is copied into each fork, so forks of a fork follow it too. Off by default. Workspace-admin gated.
|
|
3965
3947
|
* @param data The data for the request.
|
|
@@ -3979,7 +3961,7 @@ var WorkspaceService = class {
|
|
|
3979
3961
|
}
|
|
3980
3962
|
/**
|
|
3981
3963
|
* set the key guest JWTs are verified against for this workspace
|
|
3982
|
-
* A guest JWT (`jwt_guest_`) is minted by the embedding customer's own backend and verified against this key: a PEM public key (RS/ES family, HS* refused) or a JWKS URL, at most one. Both empty clears the workspace key; off cloud, verification then falls back to the instance issuer (`JWT_EXT_JWKS_URL`) if one is set, else no guest JWT is accepted
|
|
3964
|
+
* A guest JWT (`jwt_guest_`) is minted by the embedding customer's own backend and verified against this key: a PEM public key (RS/ES family, HS* refused) or a JWKS URL, at most one. Both empty clears the workspace key; off cloud, verification then falls back to the instance issuer (`JWT_EXT_JWKS_URL`) if one is set, else no guest JWT is accepted. Workspace-admin gated. The key is validated before it is stored. Setting a key is refused with a 400 where guests are unavailable (the shared cloud); clearing one always works.
|
|
3983
3965
|
* @param data The data for the request.
|
|
3984
3966
|
* @param data.workspace
|
|
3985
3967
|
* @param data.requestBody The guest JWT verification key
|
|
@@ -7141,7 +7123,7 @@ var AppService = class {
|
|
|
7141
7123
|
}
|
|
7142
7124
|
/**
|
|
7143
7125
|
* whether the app behind a custom path admits guests
|
|
7144
|
-
* The custom-path counterpart of `getGuestEntry`. Unauthenticated; 404 unless the app's execution mode is `guest
|
|
7126
|
+
* The custom-path counterpart of `getGuestEntry`. Unauthenticated; 404 unless the app's execution mode is `guest`, and never on a deployment where guests are unavailable (the shared cloud). Returns the workspace too, since a custom URL may not carry it.
|
|
7145
7127
|
* @param data The data for the request.
|
|
7146
7128
|
* @param data.customPath
|
|
7147
7129
|
* @returns GuestEntry the app is open to guests
|
|
@@ -7483,7 +7465,7 @@ var AppService = class {
|
|
|
7483
7465
|
}
|
|
7484
7466
|
/**
|
|
7485
7467
|
* whether the app behind a share secret admits guests
|
|
7486
|
-
* Unauthenticated: what a signed-out visitor reads to learn that signing in would let them in. 404 unless the app's execution mode is `guest
|
|
7468
|
+
* Unauthenticated: what a signed-out visitor reads to learn that signing in would let them in. 404 unless the app's execution mode is `guest`, and never on a deployment where guests are unavailable (the shared cloud), so it says nothing about apps that are not open to guests. Discloses only the app path, to a caller already holding the share secret.
|
|
7487
7469
|
* @param data The data for the request.
|
|
7488
7470
|
* @param data.workspace
|
|
7489
7471
|
* @param data.path
|
|
@@ -12368,587 +12350,606 @@ var SlackAgentsService = class {
|
|
|
12368
12350
|
});
|
|
12369
12351
|
}
|
|
12370
12352
|
};
|
|
12371
|
-
var
|
|
12353
|
+
var AiService = class {
|
|
12372
12354
|
/**
|
|
12373
|
-
*
|
|
12355
|
+
* one text completion with the workspace's AI config
|
|
12356
|
+
* Sends a system and a user message to the configured provider and returns the text of the answer, with no tools and no streaming. For callers that do not speak a provider's own API through the proxy, such as the CLI and jobs.
|
|
12357
|
+
*
|
|
12374
12358
|
* @param data The data for the request.
|
|
12375
12359
|
* @param data.workspace
|
|
12376
|
-
* @
|
|
12360
|
+
* @param data.requestBody
|
|
12361
|
+
* @returns unknown the answer, and the model that wrote it
|
|
12377
12362
|
* @throws ApiError
|
|
12378
12363
|
*/
|
|
12379
|
-
static
|
|
12364
|
+
static completeAi(data) {
|
|
12380
12365
|
return request(OpenAPI, {
|
|
12381
|
-
method: "
|
|
12382
|
-
url: "/w/{workspace}/
|
|
12383
|
-
path: { workspace: data.workspace }
|
|
12366
|
+
method: "POST",
|
|
12367
|
+
url: "/w/{workspace}/ai/complete",
|
|
12368
|
+
path: { workspace: data.workspace },
|
|
12369
|
+
body: data.requestBody,
|
|
12370
|
+
mediaType: "application/json"
|
|
12384
12371
|
});
|
|
12385
12372
|
}
|
|
12386
12373
|
/**
|
|
12387
|
-
*
|
|
12374
|
+
* record AI token usage for the calling user
|
|
12388
12375
|
* @param data The data for the request.
|
|
12389
12376
|
* @param data.workspace
|
|
12390
|
-
* @param data.requestBody
|
|
12391
|
-
* @returns
|
|
12377
|
+
* @param data.requestBody
|
|
12378
|
+
* @returns void usage recorded
|
|
12392
12379
|
* @throws ApiError
|
|
12393
12380
|
*/
|
|
12394
|
-
static
|
|
12381
|
+
static recordAiUsage(data) {
|
|
12395
12382
|
return request(OpenAPI, {
|
|
12396
12383
|
method: "POST",
|
|
12397
|
-
url: "/w/{workspace}/
|
|
12384
|
+
url: "/w/{workspace}/ai/usage",
|
|
12398
12385
|
path: { workspace: data.workspace },
|
|
12399
12386
|
body: data.requestBody,
|
|
12400
12387
|
mediaType: "application/json"
|
|
12401
12388
|
});
|
|
12402
12389
|
}
|
|
12403
12390
|
/**
|
|
12404
|
-
*
|
|
12391
|
+
* list aggregated AI token usage
|
|
12405
12392
|
* @param data The data for the request.
|
|
12406
12393
|
* @param data.workspace
|
|
12407
|
-
* @param data.
|
|
12408
|
-
* @
|
|
12394
|
+
* @param data.days
|
|
12395
|
+
* @param data.groupBy
|
|
12396
|
+
* @param data.scope workspace-wide usage (admin only) or the calling user's own
|
|
12397
|
+
* @returns unknown usage buckets
|
|
12409
12398
|
* @throws ApiError
|
|
12410
12399
|
*/
|
|
12411
|
-
static
|
|
12400
|
+
static listAiUsage(data) {
|
|
12412
12401
|
return request(OpenAPI, {
|
|
12413
12402
|
method: "GET",
|
|
12414
|
-
url: "/w/{workspace}/
|
|
12415
|
-
path: {
|
|
12416
|
-
|
|
12417
|
-
|
|
12403
|
+
url: "/w/{workspace}/ai/usage",
|
|
12404
|
+
path: { workspace: data.workspace },
|
|
12405
|
+
query: {
|
|
12406
|
+
days: data.days,
|
|
12407
|
+
group_by: data.groupBy,
|
|
12408
|
+
scope: data.scope
|
|
12418
12409
|
}
|
|
12419
12410
|
});
|
|
12420
12411
|
}
|
|
12421
12412
|
/**
|
|
12422
|
-
*
|
|
12413
|
+
* list the calling user's AI session backups in the workspace object storage
|
|
12423
12414
|
* @param data The data for the request.
|
|
12424
12415
|
* @param data.workspace
|
|
12425
|
-
* @
|
|
12426
|
-
* @param data.requestBody updated eval dataset
|
|
12427
|
-
* @returns string eval dataset updated
|
|
12416
|
+
* @returns unknown backups, newest first; `enabled` is false when the workspace has no storage for them
|
|
12428
12417
|
* @throws ApiError
|
|
12429
12418
|
*/
|
|
12430
|
-
static
|
|
12419
|
+
static listAiSessionBackups(data) {
|
|
12431
12420
|
return request(OpenAPI, {
|
|
12432
|
-
method: "
|
|
12433
|
-
url: "/w/{workspace}/
|
|
12434
|
-
path: {
|
|
12435
|
-
workspace: data.workspace,
|
|
12436
|
-
path: data.path
|
|
12437
|
-
},
|
|
12438
|
-
body: data.requestBody,
|
|
12439
|
-
mediaType: "application/json"
|
|
12421
|
+
method: "GET",
|
|
12422
|
+
url: "/w/{workspace}/ai/sessions/list",
|
|
12423
|
+
path: { workspace: data.workspace }
|
|
12440
12424
|
});
|
|
12441
12425
|
}
|
|
12442
12426
|
/**
|
|
12443
|
-
*
|
|
12444
|
-
* The cases, the runs and their recorded case sets go with it through the foreign keys; the jobs those runs produced are left alone.
|
|
12445
|
-
*
|
|
12427
|
+
* fetch whole AI session backups
|
|
12446
12428
|
* @param data The data for the request.
|
|
12447
12429
|
* @param data.workspace
|
|
12448
|
-
* @param data.
|
|
12449
|
-
* @returns
|
|
12430
|
+
* @param data.requestBody
|
|
12431
|
+
* @returns unknown the backups found; `deferred` lists ids that did not fit the response budget
|
|
12450
12432
|
* @throws ApiError
|
|
12451
12433
|
*/
|
|
12452
|
-
static
|
|
12434
|
+
static pullAiSessionBackups(data) {
|
|
12453
12435
|
return request(OpenAPI, {
|
|
12454
12436
|
method: "POST",
|
|
12455
|
-
url: "/w/{workspace}/
|
|
12456
|
-
path: {
|
|
12457
|
-
|
|
12458
|
-
|
|
12459
|
-
}
|
|
12437
|
+
url: "/w/{workspace}/ai/sessions/pull",
|
|
12438
|
+
path: { workspace: data.workspace },
|
|
12439
|
+
body: data.requestBody,
|
|
12440
|
+
mediaType: "application/json"
|
|
12460
12441
|
});
|
|
12461
12442
|
}
|
|
12462
12443
|
/**
|
|
12463
|
-
*
|
|
12444
|
+
* write changed pieces of AI sessions to their backups, and remove deleted ones
|
|
12464
12445
|
* @param data The data for the request.
|
|
12465
12446
|
* @param data.workspace
|
|
12466
|
-
* @param data.
|
|
12467
|
-
* @
|
|
12468
|
-
* @param data.perPage number of items to return for a given page (default 30, max 100)
|
|
12469
|
-
* @returns unknown eval cases
|
|
12447
|
+
* @param data.requestBody
|
|
12448
|
+
* @returns unknown one result per session written or removed, in request order
|
|
12470
12449
|
* @throws ApiError
|
|
12471
12450
|
*/
|
|
12472
|
-
static
|
|
12451
|
+
static pushAiSessionBackups(data) {
|
|
12473
12452
|
return request(OpenAPI, {
|
|
12474
|
-
method: "
|
|
12475
|
-
url: "/w/{workspace}/
|
|
12476
|
-
path: {
|
|
12477
|
-
|
|
12478
|
-
|
|
12479
|
-
},
|
|
12480
|
-
query: {
|
|
12481
|
-
page: data.page,
|
|
12482
|
-
per_page: data.perPage
|
|
12483
|
-
}
|
|
12453
|
+
method: "POST",
|
|
12454
|
+
url: "/w/{workspace}/ai/sessions/push",
|
|
12455
|
+
path: { workspace: data.workspace },
|
|
12456
|
+
body: data.requestBody,
|
|
12457
|
+
mediaType: "application/json"
|
|
12484
12458
|
});
|
|
12485
12459
|
}
|
|
12486
12460
|
/**
|
|
12487
|
-
*
|
|
12488
|
-
*
|
|
12461
|
+
* share an AI session artifact with the workspace
|
|
12462
|
+
* Stores a read-only copy that any member of the workspace can open by id. Sharing the same artifact again updates that copy, keeps its id, and restarts its retention window.
|
|
12489
12463
|
*
|
|
12490
12464
|
* @param data The data for the request.
|
|
12491
12465
|
* @param data.workspace
|
|
12492
|
-
* @param data.
|
|
12493
|
-
* @returns
|
|
12466
|
+
* @param data.requestBody
|
|
12467
|
+
* @returns SharedAiArtifactInfo the shared copy
|
|
12494
12468
|
* @throws ApiError
|
|
12495
12469
|
*/
|
|
12496
|
-
static
|
|
12470
|
+
static shareAiArtifact(data) {
|
|
12497
12471
|
return request(OpenAPI, {
|
|
12498
|
-
method: "
|
|
12499
|
-
url: "/w/{workspace}/
|
|
12472
|
+
method: "POST",
|
|
12473
|
+
url: "/w/{workspace}/ai/shared_artifacts/share",
|
|
12500
12474
|
path: { workspace: data.workspace },
|
|
12501
|
-
|
|
12475
|
+
body: data.requestBody,
|
|
12476
|
+
mediaType: "application/json"
|
|
12502
12477
|
});
|
|
12503
12478
|
}
|
|
12504
12479
|
/**
|
|
12505
|
-
* the
|
|
12506
|
-
* Called by the step a run's flow places between the agent and its scorers. Every tool call is enriched with the arguments, result, status and duration of the job that ran it, and with the schema of the script version it ran, none of which the flow itself can read.
|
|
12507
|
-
*
|
|
12480
|
+
* get the calling user's share of one of their AI session artifacts
|
|
12508
12481
|
* @param data The data for the request.
|
|
12509
12482
|
* @param data.workspace
|
|
12510
|
-
* @param data.
|
|
12511
|
-
* @returns unknown the
|
|
12483
|
+
* @param data.artifactId
|
|
12484
|
+
* @returns unknown the live share, if any, and how long shares last
|
|
12512
12485
|
* @throws ApiError
|
|
12513
12486
|
*/
|
|
12514
|
-
static
|
|
12487
|
+
static getAiArtifactShareStatus(data) {
|
|
12515
12488
|
return request(OpenAPI, {
|
|
12516
12489
|
method: "GET",
|
|
12517
|
-
url: "/w/{workspace}/
|
|
12490
|
+
url: "/w/{workspace}/ai/shared_artifacts/status",
|
|
12518
12491
|
path: { workspace: data.workspace },
|
|
12519
|
-
query: {
|
|
12492
|
+
query: { artifact_id: data.artifactId }
|
|
12520
12493
|
});
|
|
12521
12494
|
}
|
|
12522
12495
|
/**
|
|
12523
|
-
*
|
|
12496
|
+
* get a shared AI session artifact
|
|
12524
12497
|
* @param data The data for the request.
|
|
12525
12498
|
* @param data.workspace
|
|
12526
|
-
* @
|
|
12499
|
+
* @param data.id
|
|
12500
|
+
* @returns unknown the shared artifact
|
|
12527
12501
|
* @throws ApiError
|
|
12528
12502
|
*/
|
|
12529
|
-
static
|
|
12503
|
+
static getSharedAiArtifact(data) {
|
|
12530
12504
|
return request(OpenAPI, {
|
|
12531
12505
|
method: "GET",
|
|
12532
|
-
url: "/w/{workspace}/
|
|
12533
|
-
path: {
|
|
12506
|
+
url: "/w/{workspace}/ai/shared_artifacts/get/{id}",
|
|
12507
|
+
path: {
|
|
12508
|
+
workspace: data.workspace,
|
|
12509
|
+
id: data.id
|
|
12510
|
+
}
|
|
12534
12511
|
});
|
|
12535
12512
|
}
|
|
12536
12513
|
/**
|
|
12537
|
-
*
|
|
12538
|
-
* Filtered twice, both times by what the caller can read: the datasets they come from, and the runnables themselves. A scorer they could not run does not appear.
|
|
12539
|
-
*
|
|
12514
|
+
* stop sharing an AI session artifact
|
|
12540
12515
|
* @param data The data for the request.
|
|
12541
12516
|
* @param data.workspace
|
|
12542
|
-
* @param data.
|
|
12543
|
-
* @returns
|
|
12517
|
+
* @param data.id
|
|
12518
|
+
* @returns string share deleted
|
|
12544
12519
|
* @throws ApiError
|
|
12545
12520
|
*/
|
|
12546
|
-
static
|
|
12521
|
+
static unshareAiArtifact(data) {
|
|
12547
12522
|
return request(OpenAPI, {
|
|
12548
|
-
method: "
|
|
12549
|
-
url: "/w/{workspace}/
|
|
12550
|
-
path: {
|
|
12551
|
-
|
|
12523
|
+
method: "DELETE",
|
|
12524
|
+
url: "/w/{workspace}/ai/shared_artifacts/delete/{id}",
|
|
12525
|
+
path: {
|
|
12526
|
+
workspace: data.workspace,
|
|
12527
|
+
id: data.id
|
|
12528
|
+
}
|
|
12552
12529
|
});
|
|
12553
12530
|
}
|
|
12554
12531
|
/**
|
|
12555
|
-
*
|
|
12532
|
+
* share an AI session transcript by link
|
|
12533
|
+
* Stores a read-only snapshot of the session that members of the workspace can open by id, or anyone with the link once it is public. Sharing the same session again updates that snapshot and keeps its id.
|
|
12534
|
+
*
|
|
12556
12535
|
* @param data The data for the request.
|
|
12557
12536
|
* @param data.workspace
|
|
12558
|
-
* @param data.requestBody
|
|
12559
|
-
* @returns
|
|
12537
|
+
* @param data.requestBody
|
|
12538
|
+
* @returns SharedAiSessionInfo the shared snapshot
|
|
12560
12539
|
* @throws ApiError
|
|
12561
12540
|
*/
|
|
12562
|
-
static
|
|
12541
|
+
static shareAiSession(data) {
|
|
12563
12542
|
return request(OpenAPI, {
|
|
12564
12543
|
method: "POST",
|
|
12565
|
-
url: "/w/{workspace}/
|
|
12544
|
+
url: "/w/{workspace}/ai/shared_sessions/share",
|
|
12566
12545
|
path: { workspace: data.workspace },
|
|
12567
12546
|
body: data.requestBody,
|
|
12568
12547
|
mediaType: "application/json"
|
|
12569
12548
|
});
|
|
12570
12549
|
}
|
|
12571
12550
|
/**
|
|
12572
|
-
*
|
|
12573
|
-
* Called by a run's own flow as its last step. The answers and scores a run produced live in its jobs, which have their own retention; this copies them onto the run's rows. Reading a run does the same, so this is what covers a run nobody opened.
|
|
12574
|
-
*
|
|
12551
|
+
* get the calling user's share of one of their AI sessions
|
|
12575
12552
|
* @param data The data for the request.
|
|
12576
12553
|
* @param data.workspace
|
|
12577
|
-
* @param data.
|
|
12578
|
-
* @returns
|
|
12554
|
+
* @param data.sessionId
|
|
12555
|
+
* @returns unknown the share, if any
|
|
12579
12556
|
* @throws ApiError
|
|
12580
12557
|
*/
|
|
12581
|
-
static
|
|
12558
|
+
static getAiSessionShareStatus(data) {
|
|
12582
12559
|
return request(OpenAPI, {
|
|
12583
|
-
method: "
|
|
12584
|
-
url: "/w/{workspace}/
|
|
12560
|
+
method: "GET",
|
|
12561
|
+
url: "/w/{workspace}/ai/shared_sessions/status",
|
|
12585
12562
|
path: { workspace: data.workspace },
|
|
12586
|
-
query: {
|
|
12563
|
+
query: { session_id: data.sessionId }
|
|
12587
12564
|
});
|
|
12588
12565
|
}
|
|
12589
12566
|
/**
|
|
12590
|
-
*
|
|
12567
|
+
* make a shared AI session public, or reserve it to workspace members
|
|
12591
12568
|
* @param data The data for the request.
|
|
12592
12569
|
* @param data.workspace
|
|
12593
|
-
* @param data.
|
|
12594
|
-
*
|
|
12595
|
-
* @returns
|
|
12596
|
-
*
|
|
12570
|
+
* @param data.id
|
|
12571
|
+
* @param data.requestBody
|
|
12572
|
+
* @returns SharedAiSessionInfo the updated share
|
|
12597
12573
|
* @throws ApiError
|
|
12598
12574
|
*/
|
|
12599
|
-
static
|
|
12575
|
+
static setAiSessionSharePublic(data) {
|
|
12600
12576
|
return request(OpenAPI, {
|
|
12601
|
-
method: "
|
|
12602
|
-
url: "/w/{workspace}/
|
|
12603
|
-
path: {
|
|
12604
|
-
|
|
12577
|
+
method: "POST",
|
|
12578
|
+
url: "/w/{workspace}/ai/shared_sessions/set_public/{id}",
|
|
12579
|
+
path: {
|
|
12580
|
+
workspace: data.workspace,
|
|
12581
|
+
id: data.id
|
|
12582
|
+
},
|
|
12583
|
+
body: data.requestBody,
|
|
12584
|
+
mediaType: "application/json"
|
|
12605
12585
|
});
|
|
12606
12586
|
}
|
|
12607
12587
|
/**
|
|
12608
|
-
*
|
|
12588
|
+
* get a shared AI session
|
|
12589
|
+
* A public share is served without authentication; any other one only to a member of the workspace.
|
|
12590
|
+
*
|
|
12609
12591
|
* @param data The data for the request.
|
|
12610
12592
|
* @param data.workspace
|
|
12611
|
-
* @param data.
|
|
12612
|
-
* @
|
|
12613
|
-
* @param data.baseline The experiment every column is compared against. A delta is only computed between two scores of the same scorer id, and a column the baseline was never scored with reports it rather than showing a difference.
|
|
12614
|
-
*
|
|
12615
|
-
* @returns unknown experiment results
|
|
12593
|
+
* @param data.id
|
|
12594
|
+
* @returns unknown the shared session
|
|
12616
12595
|
* @throws ApiError
|
|
12617
12596
|
*/
|
|
12618
|
-
static
|
|
12597
|
+
static getSharedAiSession(data) {
|
|
12619
12598
|
return request(OpenAPI, {
|
|
12620
12599
|
method: "GET",
|
|
12621
|
-
url: "/w/{workspace}/
|
|
12600
|
+
url: "/w/{workspace}/ai_u/shared_sessions/get/{id}",
|
|
12622
12601
|
path: {
|
|
12623
12602
|
workspace: data.workspace,
|
|
12624
|
-
|
|
12625
|
-
},
|
|
12626
|
-
query: {
|
|
12627
|
-
id: data.id,
|
|
12628
|
-
baseline: data.baseline
|
|
12603
|
+
id: data.id
|
|
12629
12604
|
}
|
|
12630
12605
|
});
|
|
12631
12606
|
}
|
|
12632
|
-
};
|
|
12633
|
-
var PathAutocompleteService = class {
|
|
12634
12607
|
/**
|
|
12635
|
-
*
|
|
12636
|
-
* Returns the flat list of all item paths visible to the caller across
|
|
12637
|
-
* scripts, flows, apps, raw apps, variables, and resources. Intended to
|
|
12638
|
-
* feed an entirely client-side path autocomplete UI: the frontend fetches
|
|
12639
|
-
* once (server caches per caller for 60s) and performs all prefix/segment
|
|
12640
|
-
* computation locally. Capped at 20,000 paths (5,000 per table).
|
|
12641
|
-
*
|
|
12608
|
+
* stop sharing an AI session
|
|
12642
12609
|
* @param data The data for the request.
|
|
12643
12610
|
* @param data.workspace
|
|
12644
|
-
* @param data.
|
|
12645
|
-
*
|
|
12646
|
-
*
|
|
12647
|
-
* @returns unknown deduplicated path list, sorted lexicographically
|
|
12611
|
+
* @param data.id
|
|
12612
|
+
* @returns string share deleted
|
|
12648
12613
|
* @throws ApiError
|
|
12649
12614
|
*/
|
|
12650
|
-
static
|
|
12615
|
+
static unshareAiSession(data) {
|
|
12651
12616
|
return request(OpenAPI, {
|
|
12652
|
-
method: "
|
|
12653
|
-
url: "/w/{workspace}/
|
|
12654
|
-
path: {
|
|
12655
|
-
|
|
12617
|
+
method: "DELETE",
|
|
12618
|
+
url: "/w/{workspace}/ai/shared_sessions/delete/{id}",
|
|
12619
|
+
path: {
|
|
12620
|
+
workspace: data.workspace,
|
|
12621
|
+
id: data.id
|
|
12622
|
+
}
|
|
12656
12623
|
});
|
|
12657
12624
|
}
|
|
12658
12625
|
};
|
|
12659
|
-
var
|
|
12626
|
+
var AiEvalsService = class {
|
|
12660
12627
|
/**
|
|
12661
|
-
* list
|
|
12628
|
+
* list eval datasets
|
|
12662
12629
|
* @param data The data for the request.
|
|
12663
12630
|
* @param data.workspace
|
|
12664
|
-
* @
|
|
12665
|
-
* @param data.perPage number of items to return for a given page (default 30, max 100)
|
|
12666
|
-
* @param data.orderDesc order by desc order (default true)
|
|
12667
|
-
* @param data.createdBy filter by exact matching user creator. Supports comma-separated list (e.g. 'alice,bob') and negation by prefixing all values with '!' (e.g. '!alice,!bob')
|
|
12668
|
-
* @param data.pathStart mask to filter matching starting path
|
|
12669
|
-
* @param data.pathExact mask to filter exact matching path
|
|
12670
|
-
* @param data.starredOnly (default false)
|
|
12671
|
-
* show only the starred items
|
|
12672
|
-
*
|
|
12673
|
-
* @param data.label Filter by label
|
|
12674
|
-
* @param data.includeDraftOnly When true, append per-user draft rows whose path has no
|
|
12675
|
-
* deployed counterpart. Synthesized rows carry `draft_only: true`
|
|
12676
|
-
* so the home page can render a "Draft" badge. Gated to
|
|
12677
|
-
* non-operators + page 0 + no narrowing filters on the backend so
|
|
12678
|
-
* picker callers stay deployed-only and pagination stays clean.
|
|
12679
|
-
*
|
|
12680
|
-
* @returns ListableRawApp All raw apps
|
|
12631
|
+
* @returns EvalDataset eval datasets list
|
|
12681
12632
|
* @throws ApiError
|
|
12682
12633
|
*/
|
|
12683
|
-
static
|
|
12634
|
+
static listEvalDatasets(data) {
|
|
12684
12635
|
return request(OpenAPI, {
|
|
12685
12636
|
method: "GET",
|
|
12686
|
-
url: "/w/{workspace}/
|
|
12687
|
-
path: { workspace: data.workspace }
|
|
12688
|
-
query: {
|
|
12689
|
-
page: data.page,
|
|
12690
|
-
per_page: data.perPage,
|
|
12691
|
-
order_desc: data.orderDesc,
|
|
12692
|
-
created_by: data.createdBy,
|
|
12693
|
-
path_start: data.pathStart,
|
|
12694
|
-
path_exact: data.pathExact,
|
|
12695
|
-
starred_only: data.starredOnly,
|
|
12696
|
-
label: data.label,
|
|
12697
|
-
include_draft_only: data.includeDraftOnly
|
|
12698
|
-
}
|
|
12637
|
+
url: "/w/{workspace}/ai_evals/datasets/list",
|
|
12638
|
+
path: { workspace: data.workspace }
|
|
12699
12639
|
});
|
|
12700
12640
|
}
|
|
12701
|
-
};
|
|
12702
|
-
var AiService = class {
|
|
12703
12641
|
/**
|
|
12704
|
-
*
|
|
12642
|
+
* create an eval dataset
|
|
12705
12643
|
* @param data The data for the request.
|
|
12706
12644
|
* @param data.workspace
|
|
12707
|
-
* @param data.requestBody
|
|
12708
|
-
* @returns
|
|
12645
|
+
* @param data.requestBody new eval dataset
|
|
12646
|
+
* @returns string eval dataset created
|
|
12709
12647
|
* @throws ApiError
|
|
12710
12648
|
*/
|
|
12711
|
-
static
|
|
12649
|
+
static createEvalDataset(data) {
|
|
12712
12650
|
return request(OpenAPI, {
|
|
12713
12651
|
method: "POST",
|
|
12714
|
-
url: "/w/{workspace}/
|
|
12652
|
+
url: "/w/{workspace}/ai_evals/datasets/create",
|
|
12715
12653
|
path: { workspace: data.workspace },
|
|
12716
12654
|
body: data.requestBody,
|
|
12717
12655
|
mediaType: "application/json"
|
|
12718
12656
|
});
|
|
12719
12657
|
}
|
|
12720
12658
|
/**
|
|
12721
|
-
*
|
|
12659
|
+
* get an eval dataset
|
|
12722
12660
|
* @param data The data for the request.
|
|
12723
12661
|
* @param data.workspace
|
|
12724
|
-
* @param data.
|
|
12725
|
-
* @
|
|
12726
|
-
* @param data.scope workspace-wide usage (admin only) or the calling user's own
|
|
12727
|
-
* @returns unknown usage buckets
|
|
12662
|
+
* @param data.path
|
|
12663
|
+
* @returns EvalDataset eval dataset
|
|
12728
12664
|
* @throws ApiError
|
|
12729
12665
|
*/
|
|
12730
|
-
static
|
|
12666
|
+
static getEvalDataset(data) {
|
|
12731
12667
|
return request(OpenAPI, {
|
|
12732
12668
|
method: "GET",
|
|
12733
|
-
url: "/w/{workspace}/
|
|
12734
|
-
path: {
|
|
12735
|
-
|
|
12736
|
-
|
|
12737
|
-
group_by: data.groupBy,
|
|
12738
|
-
scope: data.scope
|
|
12669
|
+
url: "/w/{workspace}/ai_evals/datasets/get/{path}",
|
|
12670
|
+
path: {
|
|
12671
|
+
workspace: data.workspace,
|
|
12672
|
+
path: data.path
|
|
12739
12673
|
}
|
|
12740
12674
|
});
|
|
12741
12675
|
}
|
|
12742
12676
|
/**
|
|
12743
|
-
*
|
|
12677
|
+
* update an eval dataset
|
|
12744
12678
|
* @param data The data for the request.
|
|
12745
12679
|
* @param data.workspace
|
|
12746
|
-
* @
|
|
12680
|
+
* @param data.path
|
|
12681
|
+
* @param data.requestBody updated eval dataset
|
|
12682
|
+
* @returns string eval dataset updated
|
|
12747
12683
|
* @throws ApiError
|
|
12748
12684
|
*/
|
|
12749
|
-
static
|
|
12685
|
+
static updateEvalDataset(data) {
|
|
12750
12686
|
return request(OpenAPI, {
|
|
12751
|
-
method: "
|
|
12752
|
-
url: "/w/{workspace}/
|
|
12753
|
-
path: {
|
|
12687
|
+
method: "POST",
|
|
12688
|
+
url: "/w/{workspace}/ai_evals/datasets/update/{path}",
|
|
12689
|
+
path: {
|
|
12690
|
+
workspace: data.workspace,
|
|
12691
|
+
path: data.path
|
|
12692
|
+
},
|
|
12693
|
+
body: data.requestBody,
|
|
12694
|
+
mediaType: "application/json"
|
|
12754
12695
|
});
|
|
12755
12696
|
}
|
|
12756
12697
|
/**
|
|
12757
|
-
*
|
|
12698
|
+
* delete an eval dataset and all its cases
|
|
12699
|
+
* The cases, the runs and their recorded case sets go with it through the foreign keys; the jobs those runs produced are left alone.
|
|
12700
|
+
*
|
|
12758
12701
|
* @param data The data for the request.
|
|
12759
12702
|
* @param data.workspace
|
|
12760
|
-
* @param data.
|
|
12761
|
-
* @returns
|
|
12703
|
+
* @param data.path
|
|
12704
|
+
* @returns string eval dataset deleted
|
|
12762
12705
|
* @throws ApiError
|
|
12763
12706
|
*/
|
|
12764
|
-
static
|
|
12707
|
+
static deleteEvalDataset(data) {
|
|
12765
12708
|
return request(OpenAPI, {
|
|
12766
12709
|
method: "POST",
|
|
12767
|
-
url: "/w/{workspace}/
|
|
12768
|
-
path: {
|
|
12769
|
-
|
|
12770
|
-
|
|
12710
|
+
url: "/w/{workspace}/ai_evals/datasets/delete/{path}",
|
|
12711
|
+
path: {
|
|
12712
|
+
workspace: data.workspace,
|
|
12713
|
+
path: data.path
|
|
12714
|
+
}
|
|
12771
12715
|
});
|
|
12772
12716
|
}
|
|
12773
12717
|
/**
|
|
12774
|
-
*
|
|
12718
|
+
* list the cases of an eval dataset
|
|
12775
12719
|
* @param data The data for the request.
|
|
12776
12720
|
* @param data.workspace
|
|
12777
|
-
* @param data.
|
|
12778
|
-
* @
|
|
12721
|
+
* @param data.path
|
|
12722
|
+
* @param data.page which page to return (start at 1, default 1)
|
|
12723
|
+
* @param data.perPage number of items to return for a given page (default 30, max 100)
|
|
12724
|
+
* @returns unknown eval cases
|
|
12779
12725
|
* @throws ApiError
|
|
12780
12726
|
*/
|
|
12781
|
-
static
|
|
12727
|
+
static listEvalCases(data) {
|
|
12782
12728
|
return request(OpenAPI, {
|
|
12783
|
-
method: "
|
|
12784
|
-
url: "/w/{workspace}/
|
|
12785
|
-
path: {
|
|
12786
|
-
|
|
12787
|
-
|
|
12729
|
+
method: "GET",
|
|
12730
|
+
url: "/w/{workspace}/ai_evals/cases/list/{path}",
|
|
12731
|
+
path: {
|
|
12732
|
+
workspace: data.workspace,
|
|
12733
|
+
path: data.path
|
|
12734
|
+
},
|
|
12735
|
+
query: {
|
|
12736
|
+
page: data.page,
|
|
12737
|
+
per_page: data.perPage
|
|
12738
|
+
}
|
|
12788
12739
|
});
|
|
12789
12740
|
}
|
|
12790
12741
|
/**
|
|
12791
|
-
*
|
|
12792
|
-
*
|
|
12742
|
+
* what the agent under test is right now
|
|
12743
|
+
* The version it is deployed at. Small on purpose: the results endpoint reports the same thing but harvests scores and reads every job to do it, so it is not something to ask for on its own.
|
|
12793
12744
|
*
|
|
12794
12745
|
* @param data The data for the request.
|
|
12795
12746
|
* @param data.workspace
|
|
12796
|
-
* @param data.
|
|
12797
|
-
* @returns
|
|
12747
|
+
* @param data.path
|
|
12748
|
+
* @returns unknown the subject as it is now
|
|
12798
12749
|
* @throws ApiError
|
|
12799
12750
|
*/
|
|
12800
|
-
static
|
|
12751
|
+
static evalSubjectState(data) {
|
|
12801
12752
|
return request(OpenAPI, {
|
|
12802
|
-
method: "
|
|
12803
|
-
url: "/w/{workspace}/
|
|
12753
|
+
method: "GET",
|
|
12754
|
+
url: "/w/{workspace}/ai_evals/subject_state",
|
|
12804
12755
|
path: { workspace: data.workspace },
|
|
12805
|
-
|
|
12806
|
-
mediaType: "application/json"
|
|
12756
|
+
query: { path: data.path }
|
|
12807
12757
|
});
|
|
12808
12758
|
}
|
|
12809
12759
|
/**
|
|
12810
|
-
*
|
|
12760
|
+
* the run one iteration of an eval run answered, as its scorers read it
|
|
12761
|
+
* Called by the step a run's flow places between the agent and its scorers. Every tool call is enriched with the arguments, result, status and duration of the job that ran it, and with the schema of the script version it ran, none of which the flow itself can read.
|
|
12762
|
+
*
|
|
12811
12763
|
* @param data The data for the request.
|
|
12812
12764
|
* @param data.workspace
|
|
12813
|
-
* @param data.
|
|
12814
|
-
* @returns unknown the
|
|
12765
|
+
* @param data.jobId The flow job that answered the case.
|
|
12766
|
+
* @returns unknown the run and its rendering
|
|
12815
12767
|
* @throws ApiError
|
|
12816
12768
|
*/
|
|
12817
|
-
static
|
|
12769
|
+
static evalRunPayload(data) {
|
|
12818
12770
|
return request(OpenAPI, {
|
|
12819
12771
|
method: "GET",
|
|
12820
|
-
url: "/w/{workspace}/
|
|
12772
|
+
url: "/w/{workspace}/ai_evals/run_payload",
|
|
12821
12773
|
path: { workspace: data.workspace },
|
|
12822
|
-
query: {
|
|
12774
|
+
query: { job_id: data.jobId }
|
|
12823
12775
|
});
|
|
12824
12776
|
}
|
|
12825
12777
|
/**
|
|
12826
|
-
*
|
|
12778
|
+
* what a new judge agent and a new script scorer are created from
|
|
12827
12779
|
* @param data The data for the request.
|
|
12828
12780
|
* @param data.workspace
|
|
12829
|
-
* @
|
|
12830
|
-
* @returns unknown the shared artifact
|
|
12781
|
+
* @returns unknown scorer defaults
|
|
12831
12782
|
* @throws ApiError
|
|
12832
12783
|
*/
|
|
12833
|
-
static
|
|
12784
|
+
static scorerDefaults(data) {
|
|
12834
12785
|
return request(OpenAPI, {
|
|
12835
12786
|
method: "GET",
|
|
12836
|
-
url: "/w/{workspace}/
|
|
12837
|
-
path: {
|
|
12838
|
-
workspace: data.workspace,
|
|
12839
|
-
id: data.id
|
|
12840
|
-
}
|
|
12787
|
+
url: "/w/{workspace}/ai_evals/scorer_defaults",
|
|
12788
|
+
path: { workspace: data.workspace }
|
|
12841
12789
|
});
|
|
12842
12790
|
}
|
|
12843
12791
|
/**
|
|
12844
|
-
*
|
|
12792
|
+
* list the scorers already in use in this workspace, most recent first
|
|
12793
|
+
* Filtered twice, both times by what the caller can read: the datasets they come from, and the runnables themselves. A scorer they could not run does not appear.
|
|
12794
|
+
*
|
|
12845
12795
|
* @param data The data for the request.
|
|
12846
12796
|
* @param data.workspace
|
|
12847
|
-
* @param data.
|
|
12848
|
-
* @returns
|
|
12797
|
+
* @param data.kind only scorers of this kind
|
|
12798
|
+
* @returns unknown recently used scorers
|
|
12849
12799
|
* @throws ApiError
|
|
12850
12800
|
*/
|
|
12851
|
-
static
|
|
12801
|
+
static recentScorers(data) {
|
|
12852
12802
|
return request(OpenAPI, {
|
|
12853
|
-
method: "
|
|
12854
|
-
url: "/w/{workspace}/
|
|
12855
|
-
path: {
|
|
12856
|
-
|
|
12857
|
-
id: data.id
|
|
12858
|
-
}
|
|
12803
|
+
method: "GET",
|
|
12804
|
+
url: "/w/{workspace}/ai_evals/scorers/recent",
|
|
12805
|
+
path: { workspace: data.workspace },
|
|
12806
|
+
query: { kind: data.kind }
|
|
12859
12807
|
});
|
|
12860
12808
|
}
|
|
12861
12809
|
/**
|
|
12862
|
-
*
|
|
12863
|
-
* Stores a read-only snapshot of the session that members of the workspace can open by id, or anyone with the link once it is public. Sharing the same session again updates that snapshot and keeps its id.
|
|
12864
|
-
*
|
|
12810
|
+
* run every case of a dataset as one immutable experiment
|
|
12865
12811
|
* @param data The data for the request.
|
|
12866
12812
|
* @param data.workspace
|
|
12867
|
-
* @param data.requestBody
|
|
12868
|
-
* @returns
|
|
12813
|
+
* @param data.requestBody what to run
|
|
12814
|
+
* @returns string id of the created experiment
|
|
12869
12815
|
* @throws ApiError
|
|
12870
12816
|
*/
|
|
12871
|
-
static
|
|
12817
|
+
static runExperiment(data) {
|
|
12872
12818
|
return request(OpenAPI, {
|
|
12873
12819
|
method: "POST",
|
|
12874
|
-
url: "/w/{workspace}/
|
|
12820
|
+
url: "/w/{workspace}/ai_evals/experiments/run",
|
|
12875
12821
|
path: { workspace: data.workspace },
|
|
12876
12822
|
body: data.requestBody,
|
|
12877
12823
|
mediaType: "application/json"
|
|
12878
12824
|
});
|
|
12879
12825
|
}
|
|
12880
12826
|
/**
|
|
12881
|
-
*
|
|
12827
|
+
* record what a run produced, so it outlives the jobs that produced it
|
|
12828
|
+
* Called by a run's own flow as its last step. The answers and scores a run produced live in its jobs, which have their own retention; this copies them onto the run's rows. Reading a run does the same, so this is what covers a run nobody opened.
|
|
12829
|
+
*
|
|
12882
12830
|
* @param data The data for the request.
|
|
12883
12831
|
* @param data.workspace
|
|
12884
|
-
* @param data.
|
|
12885
|
-
* @returns
|
|
12832
|
+
* @param data.id
|
|
12833
|
+
* @returns number how many of the run's cases are recorded
|
|
12886
12834
|
* @throws ApiError
|
|
12887
12835
|
*/
|
|
12888
|
-
static
|
|
12836
|
+
static collectExperiment(data) {
|
|
12837
|
+
return request(OpenAPI, {
|
|
12838
|
+
method: "POST",
|
|
12839
|
+
url: "/w/{workspace}/ai_evals/experiments/collect",
|
|
12840
|
+
path: { workspace: data.workspace },
|
|
12841
|
+
query: { id: data.id }
|
|
12842
|
+
});
|
|
12843
|
+
}
|
|
12844
|
+
/**
|
|
12845
|
+
* list every experiment, across datasets
|
|
12846
|
+
* @param data The data for the request.
|
|
12847
|
+
* @param data.workspace
|
|
12848
|
+
* @param data.subjectPath Restrict to one agent's runs, which is what makes the list a history rather than a log. Runs of what is deployed, of a past version, and of the edits waiting on top are all that agent's, so this does not discriminate by kind.
|
|
12849
|
+
*
|
|
12850
|
+
* @returns EvalExperiment The 100 newest experiments, each naming the dataset it is of. Restricted to datasets the caller can read.
|
|
12851
|
+
*
|
|
12852
|
+
* @throws ApiError
|
|
12853
|
+
*/
|
|
12854
|
+
static listAllExperiments(data) {
|
|
12889
12855
|
return request(OpenAPI, {
|
|
12890
12856
|
method: "GET",
|
|
12891
|
-
url: "/w/{workspace}/
|
|
12857
|
+
url: "/w/{workspace}/ai_evals/experiments/list_all",
|
|
12892
12858
|
path: { workspace: data.workspace },
|
|
12893
|
-
query: {
|
|
12859
|
+
query: { subject_path: data.subjectPath }
|
|
12894
12860
|
});
|
|
12895
12861
|
}
|
|
12896
12862
|
/**
|
|
12897
|
-
*
|
|
12863
|
+
* read an experiment's results, one row per case
|
|
12898
12864
|
* @param data The data for the request.
|
|
12899
12865
|
* @param data.workspace
|
|
12900
|
-
* @param data.
|
|
12901
|
-
* @param data.
|
|
12902
|
-
* @
|
|
12866
|
+
* @param data.path
|
|
12867
|
+
* @param data.id the experiment to read
|
|
12868
|
+
* @param data.baseline The experiment every column is compared against. A delta is only computed between two scores of the same scorer id, and a column the baseline was never scored with reports it rather than showing a difference.
|
|
12869
|
+
*
|
|
12870
|
+
* @returns unknown experiment results
|
|
12903
12871
|
* @throws ApiError
|
|
12904
12872
|
*/
|
|
12905
|
-
static
|
|
12873
|
+
static experimentResults(data) {
|
|
12906
12874
|
return request(OpenAPI, {
|
|
12907
|
-
method: "
|
|
12908
|
-
url: "/w/{workspace}/
|
|
12875
|
+
method: "GET",
|
|
12876
|
+
url: "/w/{workspace}/ai_evals/experiments/results/{path}",
|
|
12909
12877
|
path: {
|
|
12910
12878
|
workspace: data.workspace,
|
|
12911
|
-
|
|
12879
|
+
path: data.path
|
|
12912
12880
|
},
|
|
12913
|
-
|
|
12914
|
-
|
|
12881
|
+
query: {
|
|
12882
|
+
id: data.id,
|
|
12883
|
+
baseline: data.baseline
|
|
12884
|
+
}
|
|
12915
12885
|
});
|
|
12916
12886
|
}
|
|
12887
|
+
};
|
|
12888
|
+
var PathAutocompleteService = class {
|
|
12917
12889
|
/**
|
|
12918
|
-
*
|
|
12919
|
-
*
|
|
12890
|
+
* list all paths in a workspace for client-side autocomplete
|
|
12891
|
+
* Returns the flat list of all item paths visible to the caller across
|
|
12892
|
+
* scripts, flows, apps, raw apps, variables, and resources. Intended to
|
|
12893
|
+
* feed an entirely client-side path autocomplete UI: the frontend fetches
|
|
12894
|
+
* once (server caches per caller for 60s) and performs all prefix/segment
|
|
12895
|
+
* computation locally. Capped at 20,000 paths (5,000 per table).
|
|
12920
12896
|
*
|
|
12921
12897
|
* @param data The data for the request.
|
|
12922
12898
|
* @param data.workspace
|
|
12923
|
-
* @param data.
|
|
12924
|
-
*
|
|
12899
|
+
* @param data.force bypass the server-side cache and re-query the DB, refreshing the
|
|
12900
|
+
* cache. Used right after a deploy so the new path appears immediately.
|
|
12901
|
+
*
|
|
12902
|
+
* @returns unknown deduplicated path list, sorted lexicographically
|
|
12925
12903
|
* @throws ApiError
|
|
12926
12904
|
*/
|
|
12927
|
-
static
|
|
12905
|
+
static listPathAutocompletePaths(data) {
|
|
12928
12906
|
return request(OpenAPI, {
|
|
12929
12907
|
method: "GET",
|
|
12930
|
-
url: "/w/{workspace}/
|
|
12931
|
-
path: {
|
|
12932
|
-
|
|
12933
|
-
id: data.id
|
|
12934
|
-
}
|
|
12908
|
+
url: "/w/{workspace}/path_autocomplete/list_paths",
|
|
12909
|
+
path: { workspace: data.workspace },
|
|
12910
|
+
query: { force: data.force }
|
|
12935
12911
|
});
|
|
12936
12912
|
}
|
|
12913
|
+
};
|
|
12914
|
+
var RawAppService = class {
|
|
12937
12915
|
/**
|
|
12938
|
-
*
|
|
12916
|
+
* list all raw apps
|
|
12939
12917
|
* @param data The data for the request.
|
|
12940
12918
|
* @param data.workspace
|
|
12941
|
-
* @param data.
|
|
12942
|
-
* @
|
|
12919
|
+
* @param data.page which page to return (start at 1, default 1)
|
|
12920
|
+
* @param data.perPage number of items to return for a given page (default 30, max 100)
|
|
12921
|
+
* @param data.orderDesc order by desc order (default true)
|
|
12922
|
+
* @param data.createdBy filter by exact matching user creator. Supports comma-separated list (e.g. 'alice,bob') and negation by prefixing all values with '!' (e.g. '!alice,!bob')
|
|
12923
|
+
* @param data.pathStart mask to filter matching starting path
|
|
12924
|
+
* @param data.pathExact mask to filter exact matching path
|
|
12925
|
+
* @param data.starredOnly (default false)
|
|
12926
|
+
* show only the starred items
|
|
12927
|
+
*
|
|
12928
|
+
* @param data.label Filter by label
|
|
12929
|
+
* @param data.includeDraftOnly When true, append per-user draft rows whose path has no
|
|
12930
|
+
* deployed counterpart. Synthesized rows carry `draft_only: true`
|
|
12931
|
+
* so the home page can render a "Draft" badge. Gated to
|
|
12932
|
+
* non-operators + page 0 + no narrowing filters on the backend so
|
|
12933
|
+
* picker callers stay deployed-only and pagination stays clean.
|
|
12934
|
+
*
|
|
12935
|
+
* @returns ListableRawApp All raw apps
|
|
12943
12936
|
* @throws ApiError
|
|
12944
12937
|
*/
|
|
12945
|
-
static
|
|
12938
|
+
static listRawApps(data) {
|
|
12946
12939
|
return request(OpenAPI, {
|
|
12947
|
-
method: "
|
|
12948
|
-
url: "/w/{workspace}/
|
|
12949
|
-
path: {
|
|
12950
|
-
|
|
12951
|
-
|
|
12940
|
+
method: "GET",
|
|
12941
|
+
url: "/w/{workspace}/raw_apps/list",
|
|
12942
|
+
path: { workspace: data.workspace },
|
|
12943
|
+
query: {
|
|
12944
|
+
page: data.page,
|
|
12945
|
+
per_page: data.perPage,
|
|
12946
|
+
order_desc: data.orderDesc,
|
|
12947
|
+
created_by: data.createdBy,
|
|
12948
|
+
path_start: data.pathStart,
|
|
12949
|
+
path_exact: data.pathExact,
|
|
12950
|
+
starred_only: data.starredOnly,
|
|
12951
|
+
label: data.label,
|
|
12952
|
+
include_draft_only: data.includeDraftOnly
|
|
12952
12953
|
}
|
|
12953
12954
|
});
|
|
12954
12955
|
}
|