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/services.gen.mjs
CHANGED
|
@@ -3574,24 +3574,6 @@ var WorkspaceService = class {
|
|
|
3574
3574
|
});
|
|
3575
3575
|
}
|
|
3576
3576
|
/**
|
|
3577
|
-
* enable or disable guest sessions for this workspace
|
|
3578
|
-
* 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.
|
|
3579
|
-
* @param data The data for the request.
|
|
3580
|
-
* @param data.workspace
|
|
3581
|
-
* @param data.requestBody Whether guest sessions are admitted
|
|
3582
|
-
* @returns string status
|
|
3583
|
-
* @throws ApiError
|
|
3584
|
-
*/
|
|
3585
|
-
static editGuestAccess(data) {
|
|
3586
|
-
return request(OpenAPI, {
|
|
3587
|
-
method: "POST",
|
|
3588
|
-
url: "/w/{workspace}/workspaces/edit_guest_access",
|
|
3589
|
-
path: { workspace: data.workspace },
|
|
3590
|
-
body: data.requestBody,
|
|
3591
|
-
mediaType: "application/json"
|
|
3592
|
-
});
|
|
3593
|
-
}
|
|
3594
|
-
/**
|
|
3595
3577
|
* choose whether new forks of this workspace start with its admins and developers
|
|
3596
3578
|
* 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.
|
|
3597
3579
|
* @param data The data for the request.
|
|
@@ -3611,7 +3593,7 @@ var WorkspaceService = class {
|
|
|
3611
3593
|
}
|
|
3612
3594
|
/**
|
|
3613
3595
|
* set the key guest JWTs are verified against for this workspace
|
|
3614
|
-
* 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
|
|
3596
|
+
* 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.
|
|
3615
3597
|
* @param data The data for the request.
|
|
3616
3598
|
* @param data.workspace
|
|
3617
3599
|
* @param data.requestBody The guest JWT verification key
|
|
@@ -6773,7 +6755,7 @@ var AppService = class {
|
|
|
6773
6755
|
}
|
|
6774
6756
|
/**
|
|
6775
6757
|
* whether the app behind a custom path admits guests
|
|
6776
|
-
* The custom-path counterpart of `getGuestEntry`. Unauthenticated; 404 unless the app's execution mode is `guest
|
|
6758
|
+
* 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.
|
|
6777
6759
|
* @param data The data for the request.
|
|
6778
6760
|
* @param data.customPath
|
|
6779
6761
|
* @returns GuestEntry the app is open to guests
|
|
@@ -7115,7 +7097,7 @@ var AppService = class {
|
|
|
7115
7097
|
}
|
|
7116
7098
|
/**
|
|
7117
7099
|
* whether the app behind a share secret admits guests
|
|
7118
|
-
* 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
|
|
7100
|
+
* 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.
|
|
7119
7101
|
* @param data The data for the request.
|
|
7120
7102
|
* @param data.workspace
|
|
7121
7103
|
* @param data.path
|
|
@@ -12000,587 +11982,606 @@ var SlackAgentsService = class {
|
|
|
12000
11982
|
});
|
|
12001
11983
|
}
|
|
12002
11984
|
};
|
|
12003
|
-
var
|
|
11985
|
+
var AiService = class {
|
|
12004
11986
|
/**
|
|
12005
|
-
*
|
|
11987
|
+
* one text completion with the workspace's AI config
|
|
11988
|
+
* 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.
|
|
11989
|
+
*
|
|
12006
11990
|
* @param data The data for the request.
|
|
12007
11991
|
* @param data.workspace
|
|
12008
|
-
* @
|
|
11992
|
+
* @param data.requestBody
|
|
11993
|
+
* @returns unknown the answer, and the model that wrote it
|
|
12009
11994
|
* @throws ApiError
|
|
12010
11995
|
*/
|
|
12011
|
-
static
|
|
11996
|
+
static completeAi(data) {
|
|
12012
11997
|
return request(OpenAPI, {
|
|
12013
|
-
method: "
|
|
12014
|
-
url: "/w/{workspace}/
|
|
12015
|
-
path: { workspace: data.workspace }
|
|
11998
|
+
method: "POST",
|
|
11999
|
+
url: "/w/{workspace}/ai/complete",
|
|
12000
|
+
path: { workspace: data.workspace },
|
|
12001
|
+
body: data.requestBody,
|
|
12002
|
+
mediaType: "application/json"
|
|
12016
12003
|
});
|
|
12017
12004
|
}
|
|
12018
12005
|
/**
|
|
12019
|
-
*
|
|
12006
|
+
* record AI token usage for the calling user
|
|
12020
12007
|
* @param data The data for the request.
|
|
12021
12008
|
* @param data.workspace
|
|
12022
|
-
* @param data.requestBody
|
|
12023
|
-
* @returns
|
|
12009
|
+
* @param data.requestBody
|
|
12010
|
+
* @returns void usage recorded
|
|
12024
12011
|
* @throws ApiError
|
|
12025
12012
|
*/
|
|
12026
|
-
static
|
|
12013
|
+
static recordAiUsage(data) {
|
|
12027
12014
|
return request(OpenAPI, {
|
|
12028
12015
|
method: "POST",
|
|
12029
|
-
url: "/w/{workspace}/
|
|
12016
|
+
url: "/w/{workspace}/ai/usage",
|
|
12030
12017
|
path: { workspace: data.workspace },
|
|
12031
12018
|
body: data.requestBody,
|
|
12032
12019
|
mediaType: "application/json"
|
|
12033
12020
|
});
|
|
12034
12021
|
}
|
|
12035
12022
|
/**
|
|
12036
|
-
*
|
|
12023
|
+
* list aggregated AI token usage
|
|
12037
12024
|
* @param data The data for the request.
|
|
12038
12025
|
* @param data.workspace
|
|
12039
|
-
* @param data.
|
|
12040
|
-
* @
|
|
12026
|
+
* @param data.days
|
|
12027
|
+
* @param data.groupBy
|
|
12028
|
+
* @param data.scope workspace-wide usage (admin only) or the calling user's own
|
|
12029
|
+
* @returns unknown usage buckets
|
|
12041
12030
|
* @throws ApiError
|
|
12042
12031
|
*/
|
|
12043
|
-
static
|
|
12032
|
+
static listAiUsage(data) {
|
|
12044
12033
|
return request(OpenAPI, {
|
|
12045
12034
|
method: "GET",
|
|
12046
|
-
url: "/w/{workspace}/
|
|
12047
|
-
path: {
|
|
12048
|
-
|
|
12049
|
-
|
|
12035
|
+
url: "/w/{workspace}/ai/usage",
|
|
12036
|
+
path: { workspace: data.workspace },
|
|
12037
|
+
query: {
|
|
12038
|
+
days: data.days,
|
|
12039
|
+
group_by: data.groupBy,
|
|
12040
|
+
scope: data.scope
|
|
12050
12041
|
}
|
|
12051
12042
|
});
|
|
12052
12043
|
}
|
|
12053
12044
|
/**
|
|
12054
|
-
*
|
|
12045
|
+
* list the calling user's AI session backups in the workspace object storage
|
|
12055
12046
|
* @param data The data for the request.
|
|
12056
12047
|
* @param data.workspace
|
|
12057
|
-
* @
|
|
12058
|
-
* @param data.requestBody updated eval dataset
|
|
12059
|
-
* @returns string eval dataset updated
|
|
12048
|
+
* @returns unknown backups, newest first; `enabled` is false when the workspace has no storage for them
|
|
12060
12049
|
* @throws ApiError
|
|
12061
12050
|
*/
|
|
12062
|
-
static
|
|
12051
|
+
static listAiSessionBackups(data) {
|
|
12063
12052
|
return request(OpenAPI, {
|
|
12064
|
-
method: "
|
|
12065
|
-
url: "/w/{workspace}/
|
|
12066
|
-
path: {
|
|
12067
|
-
workspace: data.workspace,
|
|
12068
|
-
path: data.path
|
|
12069
|
-
},
|
|
12070
|
-
body: data.requestBody,
|
|
12071
|
-
mediaType: "application/json"
|
|
12053
|
+
method: "GET",
|
|
12054
|
+
url: "/w/{workspace}/ai/sessions/list",
|
|
12055
|
+
path: { workspace: data.workspace }
|
|
12072
12056
|
});
|
|
12073
12057
|
}
|
|
12074
12058
|
/**
|
|
12075
|
-
*
|
|
12076
|
-
* The cases, the runs and their recorded case sets go with it through the foreign keys; the jobs those runs produced are left alone.
|
|
12077
|
-
*
|
|
12059
|
+
* fetch whole AI session backups
|
|
12078
12060
|
* @param data The data for the request.
|
|
12079
12061
|
* @param data.workspace
|
|
12080
|
-
* @param data.
|
|
12081
|
-
* @returns
|
|
12062
|
+
* @param data.requestBody
|
|
12063
|
+
* @returns unknown the backups found; `deferred` lists ids that did not fit the response budget
|
|
12082
12064
|
* @throws ApiError
|
|
12083
12065
|
*/
|
|
12084
|
-
static
|
|
12066
|
+
static pullAiSessionBackups(data) {
|
|
12085
12067
|
return request(OpenAPI, {
|
|
12086
12068
|
method: "POST",
|
|
12087
|
-
url: "/w/{workspace}/
|
|
12088
|
-
path: {
|
|
12089
|
-
|
|
12090
|
-
|
|
12091
|
-
}
|
|
12069
|
+
url: "/w/{workspace}/ai/sessions/pull",
|
|
12070
|
+
path: { workspace: data.workspace },
|
|
12071
|
+
body: data.requestBody,
|
|
12072
|
+
mediaType: "application/json"
|
|
12092
12073
|
});
|
|
12093
12074
|
}
|
|
12094
12075
|
/**
|
|
12095
|
-
*
|
|
12076
|
+
* write changed pieces of AI sessions to their backups, and remove deleted ones
|
|
12096
12077
|
* @param data The data for the request.
|
|
12097
12078
|
* @param data.workspace
|
|
12098
|
-
* @param data.
|
|
12099
|
-
* @
|
|
12100
|
-
* @param data.perPage number of items to return for a given page (default 30, max 100)
|
|
12101
|
-
* @returns unknown eval cases
|
|
12079
|
+
* @param data.requestBody
|
|
12080
|
+
* @returns unknown one result per session written or removed, in request order
|
|
12102
12081
|
* @throws ApiError
|
|
12103
12082
|
*/
|
|
12104
|
-
static
|
|
12083
|
+
static pushAiSessionBackups(data) {
|
|
12105
12084
|
return request(OpenAPI, {
|
|
12106
|
-
method: "
|
|
12107
|
-
url: "/w/{workspace}/
|
|
12108
|
-
path: {
|
|
12109
|
-
|
|
12110
|
-
|
|
12111
|
-
},
|
|
12112
|
-
query: {
|
|
12113
|
-
page: data.page,
|
|
12114
|
-
per_page: data.perPage
|
|
12115
|
-
}
|
|
12085
|
+
method: "POST",
|
|
12086
|
+
url: "/w/{workspace}/ai/sessions/push",
|
|
12087
|
+
path: { workspace: data.workspace },
|
|
12088
|
+
body: data.requestBody,
|
|
12089
|
+
mediaType: "application/json"
|
|
12116
12090
|
});
|
|
12117
12091
|
}
|
|
12118
12092
|
/**
|
|
12119
|
-
*
|
|
12120
|
-
*
|
|
12093
|
+
* share an AI session artifact with the workspace
|
|
12094
|
+
* 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.
|
|
12121
12095
|
*
|
|
12122
12096
|
* @param data The data for the request.
|
|
12123
12097
|
* @param data.workspace
|
|
12124
|
-
* @param data.
|
|
12125
|
-
* @returns
|
|
12098
|
+
* @param data.requestBody
|
|
12099
|
+
* @returns SharedAiArtifactInfo the shared copy
|
|
12126
12100
|
* @throws ApiError
|
|
12127
12101
|
*/
|
|
12128
|
-
static
|
|
12102
|
+
static shareAiArtifact(data) {
|
|
12129
12103
|
return request(OpenAPI, {
|
|
12130
|
-
method: "
|
|
12131
|
-
url: "/w/{workspace}/
|
|
12104
|
+
method: "POST",
|
|
12105
|
+
url: "/w/{workspace}/ai/shared_artifacts/share",
|
|
12132
12106
|
path: { workspace: data.workspace },
|
|
12133
|
-
|
|
12107
|
+
body: data.requestBody,
|
|
12108
|
+
mediaType: "application/json"
|
|
12134
12109
|
});
|
|
12135
12110
|
}
|
|
12136
12111
|
/**
|
|
12137
|
-
* the
|
|
12138
|
-
* 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.
|
|
12139
|
-
*
|
|
12112
|
+
* get the calling user's share of one of their AI session artifacts
|
|
12140
12113
|
* @param data The data for the request.
|
|
12141
12114
|
* @param data.workspace
|
|
12142
|
-
* @param data.
|
|
12143
|
-
* @returns unknown the
|
|
12115
|
+
* @param data.artifactId
|
|
12116
|
+
* @returns unknown the live share, if any, and how long shares last
|
|
12144
12117
|
* @throws ApiError
|
|
12145
12118
|
*/
|
|
12146
|
-
static
|
|
12119
|
+
static getAiArtifactShareStatus(data) {
|
|
12147
12120
|
return request(OpenAPI, {
|
|
12148
12121
|
method: "GET",
|
|
12149
|
-
url: "/w/{workspace}/
|
|
12122
|
+
url: "/w/{workspace}/ai/shared_artifacts/status",
|
|
12150
12123
|
path: { workspace: data.workspace },
|
|
12151
|
-
query: {
|
|
12124
|
+
query: { artifact_id: data.artifactId }
|
|
12152
12125
|
});
|
|
12153
12126
|
}
|
|
12154
12127
|
/**
|
|
12155
|
-
*
|
|
12128
|
+
* get a shared AI session artifact
|
|
12156
12129
|
* @param data The data for the request.
|
|
12157
12130
|
* @param data.workspace
|
|
12158
|
-
* @
|
|
12131
|
+
* @param data.id
|
|
12132
|
+
* @returns unknown the shared artifact
|
|
12159
12133
|
* @throws ApiError
|
|
12160
12134
|
*/
|
|
12161
|
-
static
|
|
12135
|
+
static getSharedAiArtifact(data) {
|
|
12162
12136
|
return request(OpenAPI, {
|
|
12163
12137
|
method: "GET",
|
|
12164
|
-
url: "/w/{workspace}/
|
|
12165
|
-
path: {
|
|
12138
|
+
url: "/w/{workspace}/ai/shared_artifacts/get/{id}",
|
|
12139
|
+
path: {
|
|
12140
|
+
workspace: data.workspace,
|
|
12141
|
+
id: data.id
|
|
12142
|
+
}
|
|
12166
12143
|
});
|
|
12167
12144
|
}
|
|
12168
12145
|
/**
|
|
12169
|
-
*
|
|
12170
|
-
* 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.
|
|
12171
|
-
*
|
|
12146
|
+
* stop sharing an AI session artifact
|
|
12172
12147
|
* @param data The data for the request.
|
|
12173
12148
|
* @param data.workspace
|
|
12174
|
-
* @param data.
|
|
12175
|
-
* @returns
|
|
12149
|
+
* @param data.id
|
|
12150
|
+
* @returns string share deleted
|
|
12176
12151
|
* @throws ApiError
|
|
12177
12152
|
*/
|
|
12178
|
-
static
|
|
12153
|
+
static unshareAiArtifact(data) {
|
|
12179
12154
|
return request(OpenAPI, {
|
|
12180
|
-
method: "
|
|
12181
|
-
url: "/w/{workspace}/
|
|
12182
|
-
path: {
|
|
12183
|
-
|
|
12155
|
+
method: "DELETE",
|
|
12156
|
+
url: "/w/{workspace}/ai/shared_artifacts/delete/{id}",
|
|
12157
|
+
path: {
|
|
12158
|
+
workspace: data.workspace,
|
|
12159
|
+
id: data.id
|
|
12160
|
+
}
|
|
12184
12161
|
});
|
|
12185
12162
|
}
|
|
12186
12163
|
/**
|
|
12187
|
-
*
|
|
12164
|
+
* share an AI session transcript by link
|
|
12165
|
+
* 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.
|
|
12166
|
+
*
|
|
12188
12167
|
* @param data The data for the request.
|
|
12189
12168
|
* @param data.workspace
|
|
12190
|
-
* @param data.requestBody
|
|
12191
|
-
* @returns
|
|
12169
|
+
* @param data.requestBody
|
|
12170
|
+
* @returns SharedAiSessionInfo the shared snapshot
|
|
12192
12171
|
* @throws ApiError
|
|
12193
12172
|
*/
|
|
12194
|
-
static
|
|
12173
|
+
static shareAiSession(data) {
|
|
12195
12174
|
return request(OpenAPI, {
|
|
12196
12175
|
method: "POST",
|
|
12197
|
-
url: "/w/{workspace}/
|
|
12176
|
+
url: "/w/{workspace}/ai/shared_sessions/share",
|
|
12198
12177
|
path: { workspace: data.workspace },
|
|
12199
12178
|
body: data.requestBody,
|
|
12200
12179
|
mediaType: "application/json"
|
|
12201
12180
|
});
|
|
12202
12181
|
}
|
|
12203
12182
|
/**
|
|
12204
|
-
*
|
|
12205
|
-
* 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.
|
|
12206
|
-
*
|
|
12183
|
+
* get the calling user's share of one of their AI sessions
|
|
12207
12184
|
* @param data The data for the request.
|
|
12208
12185
|
* @param data.workspace
|
|
12209
|
-
* @param data.
|
|
12210
|
-
* @returns
|
|
12186
|
+
* @param data.sessionId
|
|
12187
|
+
* @returns unknown the share, if any
|
|
12211
12188
|
* @throws ApiError
|
|
12212
12189
|
*/
|
|
12213
|
-
static
|
|
12190
|
+
static getAiSessionShareStatus(data) {
|
|
12214
12191
|
return request(OpenAPI, {
|
|
12215
|
-
method: "
|
|
12216
|
-
url: "/w/{workspace}/
|
|
12192
|
+
method: "GET",
|
|
12193
|
+
url: "/w/{workspace}/ai/shared_sessions/status",
|
|
12217
12194
|
path: { workspace: data.workspace },
|
|
12218
|
-
query: {
|
|
12195
|
+
query: { session_id: data.sessionId }
|
|
12219
12196
|
});
|
|
12220
12197
|
}
|
|
12221
12198
|
/**
|
|
12222
|
-
*
|
|
12199
|
+
* make a shared AI session public, or reserve it to workspace members
|
|
12223
12200
|
* @param data The data for the request.
|
|
12224
12201
|
* @param data.workspace
|
|
12225
|
-
* @param data.
|
|
12226
|
-
*
|
|
12227
|
-
* @returns
|
|
12228
|
-
*
|
|
12202
|
+
* @param data.id
|
|
12203
|
+
* @param data.requestBody
|
|
12204
|
+
* @returns SharedAiSessionInfo the updated share
|
|
12229
12205
|
* @throws ApiError
|
|
12230
12206
|
*/
|
|
12231
|
-
static
|
|
12207
|
+
static setAiSessionSharePublic(data) {
|
|
12232
12208
|
return request(OpenAPI, {
|
|
12233
|
-
method: "
|
|
12234
|
-
url: "/w/{workspace}/
|
|
12235
|
-
path: {
|
|
12236
|
-
|
|
12209
|
+
method: "POST",
|
|
12210
|
+
url: "/w/{workspace}/ai/shared_sessions/set_public/{id}",
|
|
12211
|
+
path: {
|
|
12212
|
+
workspace: data.workspace,
|
|
12213
|
+
id: data.id
|
|
12214
|
+
},
|
|
12215
|
+
body: data.requestBody,
|
|
12216
|
+
mediaType: "application/json"
|
|
12237
12217
|
});
|
|
12238
12218
|
}
|
|
12239
12219
|
/**
|
|
12240
|
-
*
|
|
12220
|
+
* get a shared AI session
|
|
12221
|
+
* A public share is served without authentication; any other one only to a member of the workspace.
|
|
12222
|
+
*
|
|
12241
12223
|
* @param data The data for the request.
|
|
12242
12224
|
* @param data.workspace
|
|
12243
|
-
* @param data.
|
|
12244
|
-
* @
|
|
12245
|
-
* @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.
|
|
12246
|
-
*
|
|
12247
|
-
* @returns unknown experiment results
|
|
12225
|
+
* @param data.id
|
|
12226
|
+
* @returns unknown the shared session
|
|
12248
12227
|
* @throws ApiError
|
|
12249
12228
|
*/
|
|
12250
|
-
static
|
|
12229
|
+
static getSharedAiSession(data) {
|
|
12251
12230
|
return request(OpenAPI, {
|
|
12252
12231
|
method: "GET",
|
|
12253
|
-
url: "/w/{workspace}/
|
|
12232
|
+
url: "/w/{workspace}/ai_u/shared_sessions/get/{id}",
|
|
12254
12233
|
path: {
|
|
12255
12234
|
workspace: data.workspace,
|
|
12256
|
-
|
|
12257
|
-
},
|
|
12258
|
-
query: {
|
|
12259
|
-
id: data.id,
|
|
12260
|
-
baseline: data.baseline
|
|
12235
|
+
id: data.id
|
|
12261
12236
|
}
|
|
12262
12237
|
});
|
|
12263
12238
|
}
|
|
12264
|
-
};
|
|
12265
|
-
var PathAutocompleteService = class {
|
|
12266
12239
|
/**
|
|
12267
|
-
*
|
|
12268
|
-
* Returns the flat list of all item paths visible to the caller across
|
|
12269
|
-
* scripts, flows, apps, raw apps, variables, and resources. Intended to
|
|
12270
|
-
* feed an entirely client-side path autocomplete UI: the frontend fetches
|
|
12271
|
-
* once (server caches per caller for 60s) and performs all prefix/segment
|
|
12272
|
-
* computation locally. Capped at 20,000 paths (5,000 per table).
|
|
12273
|
-
*
|
|
12240
|
+
* stop sharing an AI session
|
|
12274
12241
|
* @param data The data for the request.
|
|
12275
12242
|
* @param data.workspace
|
|
12276
|
-
* @param data.
|
|
12277
|
-
*
|
|
12278
|
-
*
|
|
12279
|
-
* @returns unknown deduplicated path list, sorted lexicographically
|
|
12243
|
+
* @param data.id
|
|
12244
|
+
* @returns string share deleted
|
|
12280
12245
|
* @throws ApiError
|
|
12281
12246
|
*/
|
|
12282
|
-
static
|
|
12247
|
+
static unshareAiSession(data) {
|
|
12283
12248
|
return request(OpenAPI, {
|
|
12284
|
-
method: "
|
|
12285
|
-
url: "/w/{workspace}/
|
|
12286
|
-
path: {
|
|
12287
|
-
|
|
12249
|
+
method: "DELETE",
|
|
12250
|
+
url: "/w/{workspace}/ai/shared_sessions/delete/{id}",
|
|
12251
|
+
path: {
|
|
12252
|
+
workspace: data.workspace,
|
|
12253
|
+
id: data.id
|
|
12254
|
+
}
|
|
12288
12255
|
});
|
|
12289
12256
|
}
|
|
12290
12257
|
};
|
|
12291
|
-
var
|
|
12258
|
+
var AiEvalsService = class {
|
|
12292
12259
|
/**
|
|
12293
|
-
* list
|
|
12260
|
+
* list eval datasets
|
|
12294
12261
|
* @param data The data for the request.
|
|
12295
12262
|
* @param data.workspace
|
|
12296
|
-
* @
|
|
12297
|
-
* @param data.perPage number of items to return for a given page (default 30, max 100)
|
|
12298
|
-
* @param data.orderDesc order by desc order (default true)
|
|
12299
|
-
* @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')
|
|
12300
|
-
* @param data.pathStart mask to filter matching starting path
|
|
12301
|
-
* @param data.pathExact mask to filter exact matching path
|
|
12302
|
-
* @param data.starredOnly (default false)
|
|
12303
|
-
* show only the starred items
|
|
12304
|
-
*
|
|
12305
|
-
* @param data.label Filter by label
|
|
12306
|
-
* @param data.includeDraftOnly When true, append per-user draft rows whose path has no
|
|
12307
|
-
* deployed counterpart. Synthesized rows carry `draft_only: true`
|
|
12308
|
-
* so the home page can render a "Draft" badge. Gated to
|
|
12309
|
-
* non-operators + page 0 + no narrowing filters on the backend so
|
|
12310
|
-
* picker callers stay deployed-only and pagination stays clean.
|
|
12311
|
-
*
|
|
12312
|
-
* @returns ListableRawApp All raw apps
|
|
12263
|
+
* @returns EvalDataset eval datasets list
|
|
12313
12264
|
* @throws ApiError
|
|
12314
12265
|
*/
|
|
12315
|
-
static
|
|
12266
|
+
static listEvalDatasets(data) {
|
|
12316
12267
|
return request(OpenAPI, {
|
|
12317
12268
|
method: "GET",
|
|
12318
|
-
url: "/w/{workspace}/
|
|
12319
|
-
path: { workspace: data.workspace }
|
|
12320
|
-
query: {
|
|
12321
|
-
page: data.page,
|
|
12322
|
-
per_page: data.perPage,
|
|
12323
|
-
order_desc: data.orderDesc,
|
|
12324
|
-
created_by: data.createdBy,
|
|
12325
|
-
path_start: data.pathStart,
|
|
12326
|
-
path_exact: data.pathExact,
|
|
12327
|
-
starred_only: data.starredOnly,
|
|
12328
|
-
label: data.label,
|
|
12329
|
-
include_draft_only: data.includeDraftOnly
|
|
12330
|
-
}
|
|
12269
|
+
url: "/w/{workspace}/ai_evals/datasets/list",
|
|
12270
|
+
path: { workspace: data.workspace }
|
|
12331
12271
|
});
|
|
12332
12272
|
}
|
|
12333
|
-
};
|
|
12334
|
-
var AiService = class {
|
|
12335
12273
|
/**
|
|
12336
|
-
*
|
|
12274
|
+
* create an eval dataset
|
|
12337
12275
|
* @param data The data for the request.
|
|
12338
12276
|
* @param data.workspace
|
|
12339
|
-
* @param data.requestBody
|
|
12340
|
-
* @returns
|
|
12277
|
+
* @param data.requestBody new eval dataset
|
|
12278
|
+
* @returns string eval dataset created
|
|
12341
12279
|
* @throws ApiError
|
|
12342
12280
|
*/
|
|
12343
|
-
static
|
|
12281
|
+
static createEvalDataset(data) {
|
|
12344
12282
|
return request(OpenAPI, {
|
|
12345
12283
|
method: "POST",
|
|
12346
|
-
url: "/w/{workspace}/
|
|
12284
|
+
url: "/w/{workspace}/ai_evals/datasets/create",
|
|
12347
12285
|
path: { workspace: data.workspace },
|
|
12348
12286
|
body: data.requestBody,
|
|
12349
12287
|
mediaType: "application/json"
|
|
12350
12288
|
});
|
|
12351
12289
|
}
|
|
12352
12290
|
/**
|
|
12353
|
-
*
|
|
12291
|
+
* get an eval dataset
|
|
12354
12292
|
* @param data The data for the request.
|
|
12355
12293
|
* @param data.workspace
|
|
12356
|
-
* @param data.
|
|
12357
|
-
* @
|
|
12358
|
-
* @param data.scope workspace-wide usage (admin only) or the calling user's own
|
|
12359
|
-
* @returns unknown usage buckets
|
|
12294
|
+
* @param data.path
|
|
12295
|
+
* @returns EvalDataset eval dataset
|
|
12360
12296
|
* @throws ApiError
|
|
12361
12297
|
*/
|
|
12362
|
-
static
|
|
12298
|
+
static getEvalDataset(data) {
|
|
12363
12299
|
return request(OpenAPI, {
|
|
12364
12300
|
method: "GET",
|
|
12365
|
-
url: "/w/{workspace}/
|
|
12366
|
-
path: {
|
|
12367
|
-
|
|
12368
|
-
|
|
12369
|
-
group_by: data.groupBy,
|
|
12370
|
-
scope: data.scope
|
|
12301
|
+
url: "/w/{workspace}/ai_evals/datasets/get/{path}",
|
|
12302
|
+
path: {
|
|
12303
|
+
workspace: data.workspace,
|
|
12304
|
+
path: data.path
|
|
12371
12305
|
}
|
|
12372
12306
|
});
|
|
12373
12307
|
}
|
|
12374
12308
|
/**
|
|
12375
|
-
*
|
|
12309
|
+
* update an eval dataset
|
|
12376
12310
|
* @param data The data for the request.
|
|
12377
12311
|
* @param data.workspace
|
|
12378
|
-
* @
|
|
12312
|
+
* @param data.path
|
|
12313
|
+
* @param data.requestBody updated eval dataset
|
|
12314
|
+
* @returns string eval dataset updated
|
|
12379
12315
|
* @throws ApiError
|
|
12380
12316
|
*/
|
|
12381
|
-
static
|
|
12317
|
+
static updateEvalDataset(data) {
|
|
12382
12318
|
return request(OpenAPI, {
|
|
12383
|
-
method: "
|
|
12384
|
-
url: "/w/{workspace}/
|
|
12385
|
-
path: {
|
|
12319
|
+
method: "POST",
|
|
12320
|
+
url: "/w/{workspace}/ai_evals/datasets/update/{path}",
|
|
12321
|
+
path: {
|
|
12322
|
+
workspace: data.workspace,
|
|
12323
|
+
path: data.path
|
|
12324
|
+
},
|
|
12325
|
+
body: data.requestBody,
|
|
12326
|
+
mediaType: "application/json"
|
|
12386
12327
|
});
|
|
12387
12328
|
}
|
|
12388
12329
|
/**
|
|
12389
|
-
*
|
|
12330
|
+
* delete an eval dataset and all its cases
|
|
12331
|
+
* The cases, the runs and their recorded case sets go with it through the foreign keys; the jobs those runs produced are left alone.
|
|
12332
|
+
*
|
|
12390
12333
|
* @param data The data for the request.
|
|
12391
12334
|
* @param data.workspace
|
|
12392
|
-
* @param data.
|
|
12393
|
-
* @returns
|
|
12335
|
+
* @param data.path
|
|
12336
|
+
* @returns string eval dataset deleted
|
|
12394
12337
|
* @throws ApiError
|
|
12395
12338
|
*/
|
|
12396
|
-
static
|
|
12339
|
+
static deleteEvalDataset(data) {
|
|
12397
12340
|
return request(OpenAPI, {
|
|
12398
12341
|
method: "POST",
|
|
12399
|
-
url: "/w/{workspace}/
|
|
12400
|
-
path: {
|
|
12401
|
-
|
|
12402
|
-
|
|
12342
|
+
url: "/w/{workspace}/ai_evals/datasets/delete/{path}",
|
|
12343
|
+
path: {
|
|
12344
|
+
workspace: data.workspace,
|
|
12345
|
+
path: data.path
|
|
12346
|
+
}
|
|
12403
12347
|
});
|
|
12404
12348
|
}
|
|
12405
12349
|
/**
|
|
12406
|
-
*
|
|
12350
|
+
* list the cases of an eval dataset
|
|
12407
12351
|
* @param data The data for the request.
|
|
12408
12352
|
* @param data.workspace
|
|
12409
|
-
* @param data.
|
|
12410
|
-
* @
|
|
12353
|
+
* @param data.path
|
|
12354
|
+
* @param data.page which page to return (start at 1, default 1)
|
|
12355
|
+
* @param data.perPage number of items to return for a given page (default 30, max 100)
|
|
12356
|
+
* @returns unknown eval cases
|
|
12411
12357
|
* @throws ApiError
|
|
12412
12358
|
*/
|
|
12413
|
-
static
|
|
12359
|
+
static listEvalCases(data) {
|
|
12414
12360
|
return request(OpenAPI, {
|
|
12415
|
-
method: "
|
|
12416
|
-
url: "/w/{workspace}/
|
|
12417
|
-
path: {
|
|
12418
|
-
|
|
12419
|
-
|
|
12361
|
+
method: "GET",
|
|
12362
|
+
url: "/w/{workspace}/ai_evals/cases/list/{path}",
|
|
12363
|
+
path: {
|
|
12364
|
+
workspace: data.workspace,
|
|
12365
|
+
path: data.path
|
|
12366
|
+
},
|
|
12367
|
+
query: {
|
|
12368
|
+
page: data.page,
|
|
12369
|
+
per_page: data.perPage
|
|
12370
|
+
}
|
|
12420
12371
|
});
|
|
12421
12372
|
}
|
|
12422
12373
|
/**
|
|
12423
|
-
*
|
|
12424
|
-
*
|
|
12374
|
+
* what the agent under test is right now
|
|
12375
|
+
* 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.
|
|
12425
12376
|
*
|
|
12426
12377
|
* @param data The data for the request.
|
|
12427
12378
|
* @param data.workspace
|
|
12428
|
-
* @param data.
|
|
12429
|
-
* @returns
|
|
12379
|
+
* @param data.path
|
|
12380
|
+
* @returns unknown the subject as it is now
|
|
12430
12381
|
* @throws ApiError
|
|
12431
12382
|
*/
|
|
12432
|
-
static
|
|
12383
|
+
static evalSubjectState(data) {
|
|
12433
12384
|
return request(OpenAPI, {
|
|
12434
|
-
method: "
|
|
12435
|
-
url: "/w/{workspace}/
|
|
12385
|
+
method: "GET",
|
|
12386
|
+
url: "/w/{workspace}/ai_evals/subject_state",
|
|
12436
12387
|
path: { workspace: data.workspace },
|
|
12437
|
-
|
|
12438
|
-
mediaType: "application/json"
|
|
12388
|
+
query: { path: data.path }
|
|
12439
12389
|
});
|
|
12440
12390
|
}
|
|
12441
12391
|
/**
|
|
12442
|
-
*
|
|
12392
|
+
* the run one iteration of an eval run answered, as its scorers read it
|
|
12393
|
+
* 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.
|
|
12394
|
+
*
|
|
12443
12395
|
* @param data The data for the request.
|
|
12444
12396
|
* @param data.workspace
|
|
12445
|
-
* @param data.
|
|
12446
|
-
* @returns unknown the
|
|
12397
|
+
* @param data.jobId The flow job that answered the case.
|
|
12398
|
+
* @returns unknown the run and its rendering
|
|
12447
12399
|
* @throws ApiError
|
|
12448
12400
|
*/
|
|
12449
|
-
static
|
|
12401
|
+
static evalRunPayload(data) {
|
|
12450
12402
|
return request(OpenAPI, {
|
|
12451
12403
|
method: "GET",
|
|
12452
|
-
url: "/w/{workspace}/
|
|
12404
|
+
url: "/w/{workspace}/ai_evals/run_payload",
|
|
12453
12405
|
path: { workspace: data.workspace },
|
|
12454
|
-
query: {
|
|
12406
|
+
query: { job_id: data.jobId }
|
|
12455
12407
|
});
|
|
12456
12408
|
}
|
|
12457
12409
|
/**
|
|
12458
|
-
*
|
|
12410
|
+
* what a new judge agent and a new script scorer are created from
|
|
12459
12411
|
* @param data The data for the request.
|
|
12460
12412
|
* @param data.workspace
|
|
12461
|
-
* @
|
|
12462
|
-
* @returns unknown the shared artifact
|
|
12413
|
+
* @returns unknown scorer defaults
|
|
12463
12414
|
* @throws ApiError
|
|
12464
12415
|
*/
|
|
12465
|
-
static
|
|
12416
|
+
static scorerDefaults(data) {
|
|
12466
12417
|
return request(OpenAPI, {
|
|
12467
12418
|
method: "GET",
|
|
12468
|
-
url: "/w/{workspace}/
|
|
12469
|
-
path: {
|
|
12470
|
-
workspace: data.workspace,
|
|
12471
|
-
id: data.id
|
|
12472
|
-
}
|
|
12419
|
+
url: "/w/{workspace}/ai_evals/scorer_defaults",
|
|
12420
|
+
path: { workspace: data.workspace }
|
|
12473
12421
|
});
|
|
12474
12422
|
}
|
|
12475
12423
|
/**
|
|
12476
|
-
*
|
|
12424
|
+
* list the scorers already in use in this workspace, most recent first
|
|
12425
|
+
* 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.
|
|
12426
|
+
*
|
|
12477
12427
|
* @param data The data for the request.
|
|
12478
12428
|
* @param data.workspace
|
|
12479
|
-
* @param data.
|
|
12480
|
-
* @returns
|
|
12429
|
+
* @param data.kind only scorers of this kind
|
|
12430
|
+
* @returns unknown recently used scorers
|
|
12481
12431
|
* @throws ApiError
|
|
12482
12432
|
*/
|
|
12483
|
-
static
|
|
12433
|
+
static recentScorers(data) {
|
|
12484
12434
|
return request(OpenAPI, {
|
|
12485
|
-
method: "
|
|
12486
|
-
url: "/w/{workspace}/
|
|
12487
|
-
path: {
|
|
12488
|
-
|
|
12489
|
-
id: data.id
|
|
12490
|
-
}
|
|
12435
|
+
method: "GET",
|
|
12436
|
+
url: "/w/{workspace}/ai_evals/scorers/recent",
|
|
12437
|
+
path: { workspace: data.workspace },
|
|
12438
|
+
query: { kind: data.kind }
|
|
12491
12439
|
});
|
|
12492
12440
|
}
|
|
12493
12441
|
/**
|
|
12494
|
-
*
|
|
12495
|
-
* 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.
|
|
12496
|
-
*
|
|
12442
|
+
* run every case of a dataset as one immutable experiment
|
|
12497
12443
|
* @param data The data for the request.
|
|
12498
12444
|
* @param data.workspace
|
|
12499
|
-
* @param data.requestBody
|
|
12500
|
-
* @returns
|
|
12445
|
+
* @param data.requestBody what to run
|
|
12446
|
+
* @returns string id of the created experiment
|
|
12501
12447
|
* @throws ApiError
|
|
12502
12448
|
*/
|
|
12503
|
-
static
|
|
12449
|
+
static runExperiment(data) {
|
|
12504
12450
|
return request(OpenAPI, {
|
|
12505
12451
|
method: "POST",
|
|
12506
|
-
url: "/w/{workspace}/
|
|
12452
|
+
url: "/w/{workspace}/ai_evals/experiments/run",
|
|
12507
12453
|
path: { workspace: data.workspace },
|
|
12508
12454
|
body: data.requestBody,
|
|
12509
12455
|
mediaType: "application/json"
|
|
12510
12456
|
});
|
|
12511
12457
|
}
|
|
12512
12458
|
/**
|
|
12513
|
-
*
|
|
12459
|
+
* record what a run produced, so it outlives the jobs that produced it
|
|
12460
|
+
* 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.
|
|
12461
|
+
*
|
|
12514
12462
|
* @param data The data for the request.
|
|
12515
12463
|
* @param data.workspace
|
|
12516
|
-
* @param data.
|
|
12517
|
-
* @returns
|
|
12464
|
+
* @param data.id
|
|
12465
|
+
* @returns number how many of the run's cases are recorded
|
|
12518
12466
|
* @throws ApiError
|
|
12519
12467
|
*/
|
|
12520
|
-
static
|
|
12468
|
+
static collectExperiment(data) {
|
|
12469
|
+
return request(OpenAPI, {
|
|
12470
|
+
method: "POST",
|
|
12471
|
+
url: "/w/{workspace}/ai_evals/experiments/collect",
|
|
12472
|
+
path: { workspace: data.workspace },
|
|
12473
|
+
query: { id: data.id }
|
|
12474
|
+
});
|
|
12475
|
+
}
|
|
12476
|
+
/**
|
|
12477
|
+
* list every experiment, across datasets
|
|
12478
|
+
* @param data The data for the request.
|
|
12479
|
+
* @param data.workspace
|
|
12480
|
+
* @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.
|
|
12481
|
+
*
|
|
12482
|
+
* @returns EvalExperiment The 100 newest experiments, each naming the dataset it is of. Restricted to datasets the caller can read.
|
|
12483
|
+
*
|
|
12484
|
+
* @throws ApiError
|
|
12485
|
+
*/
|
|
12486
|
+
static listAllExperiments(data) {
|
|
12521
12487
|
return request(OpenAPI, {
|
|
12522
12488
|
method: "GET",
|
|
12523
|
-
url: "/w/{workspace}/
|
|
12489
|
+
url: "/w/{workspace}/ai_evals/experiments/list_all",
|
|
12524
12490
|
path: { workspace: data.workspace },
|
|
12525
|
-
query: {
|
|
12491
|
+
query: { subject_path: data.subjectPath }
|
|
12526
12492
|
});
|
|
12527
12493
|
}
|
|
12528
12494
|
/**
|
|
12529
|
-
*
|
|
12495
|
+
* read an experiment's results, one row per case
|
|
12530
12496
|
* @param data The data for the request.
|
|
12531
12497
|
* @param data.workspace
|
|
12532
|
-
* @param data.
|
|
12533
|
-
* @param data.
|
|
12534
|
-
* @
|
|
12498
|
+
* @param data.path
|
|
12499
|
+
* @param data.id the experiment to read
|
|
12500
|
+
* @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.
|
|
12501
|
+
*
|
|
12502
|
+
* @returns unknown experiment results
|
|
12535
12503
|
* @throws ApiError
|
|
12536
12504
|
*/
|
|
12537
|
-
static
|
|
12505
|
+
static experimentResults(data) {
|
|
12538
12506
|
return request(OpenAPI, {
|
|
12539
|
-
method: "
|
|
12540
|
-
url: "/w/{workspace}/
|
|
12507
|
+
method: "GET",
|
|
12508
|
+
url: "/w/{workspace}/ai_evals/experiments/results/{path}",
|
|
12541
12509
|
path: {
|
|
12542
12510
|
workspace: data.workspace,
|
|
12543
|
-
|
|
12511
|
+
path: data.path
|
|
12544
12512
|
},
|
|
12545
|
-
|
|
12546
|
-
|
|
12513
|
+
query: {
|
|
12514
|
+
id: data.id,
|
|
12515
|
+
baseline: data.baseline
|
|
12516
|
+
}
|
|
12547
12517
|
});
|
|
12548
12518
|
}
|
|
12519
|
+
};
|
|
12520
|
+
var PathAutocompleteService = class {
|
|
12549
12521
|
/**
|
|
12550
|
-
*
|
|
12551
|
-
*
|
|
12522
|
+
* list all paths in a workspace for client-side autocomplete
|
|
12523
|
+
* Returns the flat list of all item paths visible to the caller across
|
|
12524
|
+
* scripts, flows, apps, raw apps, variables, and resources. Intended to
|
|
12525
|
+
* feed an entirely client-side path autocomplete UI: the frontend fetches
|
|
12526
|
+
* once (server caches per caller for 60s) and performs all prefix/segment
|
|
12527
|
+
* computation locally. Capped at 20,000 paths (5,000 per table).
|
|
12552
12528
|
*
|
|
12553
12529
|
* @param data The data for the request.
|
|
12554
12530
|
* @param data.workspace
|
|
12555
|
-
* @param data.
|
|
12556
|
-
*
|
|
12531
|
+
* @param data.force bypass the server-side cache and re-query the DB, refreshing the
|
|
12532
|
+
* cache. Used right after a deploy so the new path appears immediately.
|
|
12533
|
+
*
|
|
12534
|
+
* @returns unknown deduplicated path list, sorted lexicographically
|
|
12557
12535
|
* @throws ApiError
|
|
12558
12536
|
*/
|
|
12559
|
-
static
|
|
12537
|
+
static listPathAutocompletePaths(data) {
|
|
12560
12538
|
return request(OpenAPI, {
|
|
12561
12539
|
method: "GET",
|
|
12562
|
-
url: "/w/{workspace}/
|
|
12563
|
-
path: {
|
|
12564
|
-
|
|
12565
|
-
id: data.id
|
|
12566
|
-
}
|
|
12540
|
+
url: "/w/{workspace}/path_autocomplete/list_paths",
|
|
12541
|
+
path: { workspace: data.workspace },
|
|
12542
|
+
query: { force: data.force }
|
|
12567
12543
|
});
|
|
12568
12544
|
}
|
|
12545
|
+
};
|
|
12546
|
+
var RawAppService = class {
|
|
12569
12547
|
/**
|
|
12570
|
-
*
|
|
12548
|
+
* list all raw apps
|
|
12571
12549
|
* @param data The data for the request.
|
|
12572
12550
|
* @param data.workspace
|
|
12573
|
-
* @param data.
|
|
12574
|
-
* @
|
|
12551
|
+
* @param data.page which page to return (start at 1, default 1)
|
|
12552
|
+
* @param data.perPage number of items to return for a given page (default 30, max 100)
|
|
12553
|
+
* @param data.orderDesc order by desc order (default true)
|
|
12554
|
+
* @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')
|
|
12555
|
+
* @param data.pathStart mask to filter matching starting path
|
|
12556
|
+
* @param data.pathExact mask to filter exact matching path
|
|
12557
|
+
* @param data.starredOnly (default false)
|
|
12558
|
+
* show only the starred items
|
|
12559
|
+
*
|
|
12560
|
+
* @param data.label Filter by label
|
|
12561
|
+
* @param data.includeDraftOnly When true, append per-user draft rows whose path has no
|
|
12562
|
+
* deployed counterpart. Synthesized rows carry `draft_only: true`
|
|
12563
|
+
* so the home page can render a "Draft" badge. Gated to
|
|
12564
|
+
* non-operators + page 0 + no narrowing filters on the backend so
|
|
12565
|
+
* picker callers stay deployed-only and pagination stays clean.
|
|
12566
|
+
*
|
|
12567
|
+
* @returns ListableRawApp All raw apps
|
|
12575
12568
|
* @throws ApiError
|
|
12576
12569
|
*/
|
|
12577
|
-
static
|
|
12570
|
+
static listRawApps(data) {
|
|
12578
12571
|
return request(OpenAPI, {
|
|
12579
|
-
method: "
|
|
12580
|
-
url: "/w/{workspace}/
|
|
12581
|
-
path: {
|
|
12582
|
-
|
|
12583
|
-
|
|
12572
|
+
method: "GET",
|
|
12573
|
+
url: "/w/{workspace}/raw_apps/list",
|
|
12574
|
+
path: { workspace: data.workspace },
|
|
12575
|
+
query: {
|
|
12576
|
+
page: data.page,
|
|
12577
|
+
per_page: data.perPage,
|
|
12578
|
+
order_desc: data.orderDesc,
|
|
12579
|
+
created_by: data.createdBy,
|
|
12580
|
+
path_start: data.pathStart,
|
|
12581
|
+
path_exact: data.pathExact,
|
|
12582
|
+
starred_only: data.starredOnly,
|
|
12583
|
+
label: data.label,
|
|
12584
|
+
include_draft_only: data.includeDraftOnly
|
|
12584
12585
|
}
|
|
12585
12586
|
});
|
|
12586
12587
|
}
|