@vibexp/api-client 0.86.0 → 0.88.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/schema.d.ts CHANGED
@@ -3212,6 +3212,168 @@ export interface paths {
3212
3212
  patch?: never;
3213
3213
  trace?: never;
3214
3214
  };
3215
+ "/api/v1/admin/projects/{id}/resource-creation-metrics": {
3216
+ parameters: {
3217
+ query?: never;
3218
+ header?: never;
3219
+ path?: never;
3220
+ cookie?: never;
3221
+ };
3222
+ /**
3223
+ * Get a project's resource creation series
3224
+ * @description Returns how many resources of each PROJECT-SCOPED type (prompts, memories,
3225
+ * artifacts, blueprints, feed items) were created in the project per bucket
3226
+ * over a time range. Only resources that currently belong to the project are
3227
+ * counted: deleted resources drop out, and a resource moved in by a project
3228
+ * migration counts here from its original creation time. Omitting the
3229
+ * parameters yields the last 30 days at `day` granularity, and the range
3230
+ * rules match getAdminDashboardTimeseries. Every bucket is present with an
3231
+ * explicit 0 for every type.
3232
+ *
3233
+ * Instance-admin only; non-admin and unauthenticated requests receive 404, as
3234
+ * does an unknown project id.
3235
+ */
3236
+ get: operations["getAdminProjectResourceCreationMetrics"];
3237
+ put?: never;
3238
+ post?: never;
3239
+ delete?: never;
3240
+ options?: never;
3241
+ head?: never;
3242
+ patch?: never;
3243
+ trace?: never;
3244
+ };
3245
+ "/api/v1/admin/projects/{id}/resource-access-metrics": {
3246
+ parameters: {
3247
+ query?: never;
3248
+ header?: never;
3249
+ path?: never;
3250
+ cookie?: never;
3251
+ };
3252
+ /**
3253
+ * Get a project's resource access series by source
3254
+ * @description Returns how many times the project's resources (prompts, artifacts,
3255
+ * blueprints, memories) and the project itself were accessed (opened) per
3256
+ * bucket and per access source (web, cli, mcp, api). Omitting the parameters
3257
+ * yields the last 30 days at `day` granularity, and the range rules match
3258
+ * getAdminDashboardTimeseries. Every bucket is present with an explicit 0 for
3259
+ * each source that appears in the range.
3260
+ *
3261
+ * Access events carry no project, so an event is attributed to the project
3262
+ * its resource belongs to NOW: accesses to a since-deleted resource drop out,
3263
+ * and a resource moved in by a project migration brings its whole access
3264
+ * history with it. Agents are team-scoped and never count. Access events are
3265
+ * also TTL-pruned (`retention.access_event_days`), so a range reaching back
3266
+ * before `earliest_retained_at` reads as zeros there.
3267
+ *
3268
+ * Instance-admin only; non-admin and unauthenticated requests receive 404, as
3269
+ * does an unknown project id.
3270
+ */
3271
+ get: operations["getAdminProjectResourceAccessMetrics"];
3272
+ put?: never;
3273
+ post?: never;
3274
+ delete?: never;
3275
+ options?: never;
3276
+ head?: never;
3277
+ patch?: never;
3278
+ trace?: never;
3279
+ };
3280
+ "/api/v1/admin/projects/{id}/top-accessed-resources": {
3281
+ parameters: {
3282
+ query?: never;
3283
+ header?: never;
3284
+ path?: never;
3285
+ cookie?: never;
3286
+ };
3287
+ /**
3288
+ * Get a project's most-accessed resources
3289
+ * @description Returns the project's resources (prompts, artifacts, blueprints, memories)
3290
+ * accessed most often in a time range, ranked by access count (ties broken
3291
+ * by resource id). Rows are OPAQUE: resource type, team, project and the
3292
+ * first 8 characters of the resource id — never a title, slug or content.
3293
+ * Opening the project page itself counts in the access series but is not
3294
+ * listed here, and `resource_deleted` is always `false`: attribution is by
3295
+ * the resource's CURRENT project, so a deleted resource has none and drops
3296
+ * out.
3297
+ *
3298
+ * `from` defaults to 30 days before `to`, and `to` to now. Access events are
3299
+ * TTL-pruned (`retention.access_event_days`), so accesses before
3300
+ * `earliest_retained_at` are not counted.
3301
+ *
3302
+ * Instance-admin only; non-admin and unauthenticated requests receive 404, as
3303
+ * does an unknown project id.
3304
+ */
3305
+ get: operations["getAdminProjectTopAccessedResources"];
3306
+ put?: never;
3307
+ post?: never;
3308
+ delete?: never;
3309
+ options?: never;
3310
+ head?: never;
3311
+ patch?: never;
3312
+ trace?: never;
3313
+ };
3314
+ "/api/v1/admin/projects/{id}/config": {
3315
+ parameters: {
3316
+ query?: never;
3317
+ header?: never;
3318
+ path?: never;
3319
+ cookie?: never;
3320
+ };
3321
+ /**
3322
+ * Get a project's configuration
3323
+ * @description Returns the configuration that applies to the project. Projects have no
3324
+ * settings of their own, so today this is the freshness rules that govern
3325
+ * it, split in two: the rules scoped to this project, and the team-wide
3326
+ * rules (no project scope) that apply to every project of its team. Rules
3327
+ * combine cumulatively, so both lists apply. Rules scoped to other projects
3328
+ * of the team are never included. The team's freshness settings live in
3329
+ * getAdminTeamFreshnessConfig. Read-only.
3330
+ *
3331
+ * Instance-admin only; non-admin and unauthenticated requests receive 404, as
3332
+ * does an unknown project id.
3333
+ */
3334
+ get: operations["getAdminProjectConfig"];
3335
+ put?: never;
3336
+ post?: never;
3337
+ delete?: never;
3338
+ options?: never;
3339
+ head?: never;
3340
+ patch?: never;
3341
+ trace?: never;
3342
+ };
3343
+ "/api/v1/admin/saved-filters/{list}": {
3344
+ parameters: {
3345
+ query?: never;
3346
+ header?: never;
3347
+ path?: never;
3348
+ cookie?: never;
3349
+ };
3350
+ /**
3351
+ * Get the caller's saved filter presets for an admin list
3352
+ * @description Returns the calling instance admin's own named filter presets for one admin
3353
+ * list, plus the `version` to send back when replacing them. An admin with
3354
+ * nothing saved gets `presets: []` and `version: 0`. Presets are private to
3355
+ * the admin who saved them.
3356
+ * Instance-admin only; non-admin and unauthenticated requests receive 404.
3357
+ */
3358
+ get: operations["getAdminSavedFilters"];
3359
+ /**
3360
+ * Replace the caller's saved filter presets for an admin list
3361
+ * @description Atomically replaces the calling instance admin's presets for one admin
3362
+ * list. At most 20 presets; names are trimmed and must be 1–80 characters and
3363
+ * unique case-insensitively; ids must be unique (a missing id is assigned by
3364
+ * the server, a sent id is kept). The request's `version` must match the
3365
+ * stored one, otherwise nothing is saved and 409 is returned. A body carrying
3366
+ * an unknown field is rejected with 400.
3367
+ * Instance-admin only; non-admin and unauthenticated requests receive 404.
3368
+ */
3369
+ put: operations["replaceAdminSavedFilters"];
3370
+ post?: never;
3371
+ delete?: never;
3372
+ options?: never;
3373
+ head?: never;
3374
+ patch?: never;
3375
+ trace?: never;
3376
+ };
3215
3377
  "/api/v1/{team_id}/comments": {
3216
3378
  parameters: {
3217
3379
  query?: never;
@@ -11596,7 +11758,8 @@ export interface components {
11596
11758
  };
11597
11759
  /**
11598
11760
  * @description One opaque most-accessed resource: its type, where it lives and how often
11599
- * the user accessed it. Deliberately carries no title, slug or content — only
11761
+ * the user accessed it (or, for a project, how often it was accessed).
11762
+ * Deliberately carries no title, slug or content — only
11600
11763
  * the first 8 characters of the resource id. The identity fields share their
11601
11764
  * names with AdminUserTimelineEvent.
11602
11765
  */
@@ -11618,14 +11781,20 @@ export interface components {
11618
11781
  */
11619
11782
  project_id: string | null;
11620
11783
  project_name: string | null;
11621
- /** @description True when the resource no longer exists (access events outlive their resource until pruned). */
11784
+ /**
11785
+ * @description True when the resource no longer exists (access events outlive their
11786
+ * resource until pruned). Always `false` for a project's top resources
11787
+ * (GET /api/v1/admin/projects/{id}/top-accessed-resources), where a
11788
+ * deleted resource has no current project and drops out.
11789
+ */
11622
11790
  resource_deleted: boolean;
11623
11791
  /** Format: int64 */
11624
11792
  access_count: number;
11625
11793
  };
11626
11794
  /**
11627
11795
  * @description The resources a user accessed most in a range
11628
- * (GET /api/v1/admin/users/{id}/top-accessed-resources).
11796
+ * (GET /api/v1/admin/users/{id}/top-accessed-resources), or a project's
11797
+ * most-accessed resources (GET /api/v1/admin/projects/{id}/top-accessed-resources).
11629
11798
  */
11630
11799
  AdminTopAccessedResourcesResponse: {
11631
11800
  /**
@@ -11990,6 +12159,177 @@ export interface components {
11990
12159
  app_config: components["schemas"]["AdminGitHubAppConfig"] | null;
11991
12160
  installation: components["schemas"]["AdminGitHubInstallation"];
11992
12161
  };
12162
+ /** @description How many resources of each project-scoped type were created in the project within one time bucket. */
12163
+ AdminProjectCreationPoint: {
12164
+ /**
12165
+ * Format: date-time
12166
+ * @description Start of the bucket, in UTC.
12167
+ */
12168
+ bucket: string;
12169
+ /** Format: int64 */
12170
+ prompts: number;
12171
+ /** Format: int64 */
12172
+ memories: number;
12173
+ /** Format: int64 */
12174
+ artifacts: number;
12175
+ /** Format: int64 */
12176
+ blueprints: number;
12177
+ /** Format: int64 */
12178
+ feed_items: number;
12179
+ };
12180
+ /**
12181
+ * @description Resources created in the project per bucket, stacked by type
12182
+ * (GET /api/v1/admin/projects/{id}/resource-creation-metrics). Every bucket in
12183
+ * the range is present with an explicit 0 for every type.
12184
+ */
12185
+ AdminProjectResourceCreationMetrics: {
12186
+ /**
12187
+ * Format: date-time
12188
+ * @description Inclusive start of the range actually used, snapped DOWN to the start of
12189
+ * its bucket (same rule as AdminTimeseriesResponse.from).
12190
+ */
12191
+ from: string;
12192
+ /**
12193
+ * Format: date-time
12194
+ * @description Exclusive end of the range actually used (after defaulting); not snapped.
12195
+ */
12196
+ to: string;
12197
+ /**
12198
+ * @description Bucket size actually used.
12199
+ * @enum {string}
12200
+ */
12201
+ granularity: "day" | "week" | "month";
12202
+ /** @description One point per bucket, ascending by bucket. */
12203
+ series: components["schemas"]["AdminProjectCreationPoint"][];
12204
+ };
12205
+ /**
12206
+ * @description Accesses to the project's resources and to the project itself per bucket and
12207
+ * source (GET /api/v1/admin/projects/{id}/resource-access-metrics). An event
12208
+ * is attributed to the project its resource belongs to now, so accesses to a
12209
+ * deleted resource drop out and a migrated resource brings its history with
12210
+ * it. Every bucket in the range is present with an explicit 0 for each source
12211
+ * that appears.
12212
+ */
12213
+ AdminProjectAccessMetrics: {
12214
+ /**
12215
+ * Format: date-time
12216
+ * @description Inclusive start of the range actually used, snapped DOWN to the start of
12217
+ * its bucket (same rule as AdminTimeseriesResponse.from).
12218
+ */
12219
+ from: string;
12220
+ /**
12221
+ * Format: date-time
12222
+ * @description Exclusive end of the range actually used (after defaulting); not snapped.
12223
+ */
12224
+ to: string;
12225
+ /**
12226
+ * @description Bucket size actually used.
12227
+ * @enum {string}
12228
+ */
12229
+ granularity: "day" | "week" | "month";
12230
+ /** @description One point per (bucket, source), ascending by bucket then source. */
12231
+ access_by_source: components["schemas"]["AdminSourcePoint"][];
12232
+ /**
12233
+ * Format: date-time
12234
+ * @description Oldest access event still retained (now minus
12235
+ * `retention.access_event_days`); buckets before it read as zeros.
12236
+ */
12237
+ earliest_retained_at: string;
12238
+ };
12239
+ /**
12240
+ * @description The configuration that applies to a project
12241
+ * (GET /api/v1/admin/projects/{id}/config): the freshness rules scoped to it
12242
+ * and the team-wide rules that also apply. Both lists are oldest first and
12243
+ * include disabled rules.
12244
+ */
12245
+ AdminProjectConfig: {
12246
+ /** @description Rules scoped to this project. `[]` when there are none. */
12247
+ project_rules: components["schemas"]["AdminFreshnessRule"][];
12248
+ /** @description Rules with no project scope, which apply to every project of the team. `[]` when there are none. */
12249
+ team_wide_rules: components["schemas"]["AdminFreshnessRule"][];
12250
+ };
12251
+ /**
12252
+ * @description The admin list a set of saved filter presets belongs to.
12253
+ * @enum {string}
12254
+ */
12255
+ AdminSavedFilterListName: "users" | "teams" | "projects";
12256
+ /**
12257
+ * @description The list's filter state as URL query parameters (parameter name → value).
12258
+ * Stored as given and never executed server-side; the client owns its meaning.
12259
+ * At most 40 keys, each matching `^[a-z0-9_]{1,64}$`, each value at most 512
12260
+ * characters.
12261
+ * @example {
12262
+ * "status": "suspended",
12263
+ * "sort_by": "created_at"
12264
+ * }
12265
+ */
12266
+ AdminSavedFilterQuery: {
12267
+ [key: string]: string;
12268
+ };
12269
+ /** @description One named filter preset saved by an instance admin. */
12270
+ AdminSavedFilterPreset: {
12271
+ /**
12272
+ * Format: uuid
12273
+ * @description Stable preset id. Kept across renames.
12274
+ */
12275
+ id: string;
12276
+ /**
12277
+ * @description Display name, unique (case-insensitively) within the list.
12278
+ * @example Dormant teams
12279
+ */
12280
+ name: string;
12281
+ query: components["schemas"]["AdminSavedFilterQuery"];
12282
+ };
12283
+ /**
12284
+ * @description A preset as sent in a replace request. Omit `id` for a new preset and the
12285
+ * server assigns one; send the existing `id` to keep it (e.g. on rename).
12286
+ */
12287
+ AdminSavedFilterPresetInput: {
12288
+ /**
12289
+ * Format: uuid
12290
+ * @description Existing preset id to keep; omitted for a new preset.
12291
+ */
12292
+ id?: string;
12293
+ /**
12294
+ * @description Display name. Surrounding whitespace is trimmed; must be unique
12295
+ * (case-insensitively) within the list.
12296
+ * @example Dormant teams
12297
+ */
12298
+ name: string;
12299
+ query: components["schemas"]["AdminSavedFilterQuery"];
12300
+ };
12301
+ /**
12302
+ * @description The calling instance admin's saved filter presets for one admin list
12303
+ * (GET/PUT /api/v1/admin/saved-filters/{list}). Presets are private to the
12304
+ * admin who saved them.
12305
+ */
12306
+ AdminSavedFilters: {
12307
+ list: components["schemas"]["AdminSavedFilterListName"];
12308
+ /** @description The presets in their saved order. `[]` when there are none. */
12309
+ presets: components["schemas"]["AdminSavedFilterPreset"][];
12310
+ /**
12311
+ * Format: int64
12312
+ * @description Optimistic-lock version of the admin's preferences record. `0` when
12313
+ * nothing has been saved yet. Send it back unchanged in the next replace
12314
+ * request; it is shared with the user's other preferences, so a change
12315
+ * made elsewhere also advances it.
12316
+ */
12317
+ version: number;
12318
+ };
12319
+ /**
12320
+ * @description Replaces the whole preset list for one admin list. Renaming and deleting are
12321
+ * done by sending the edited list.
12322
+ */
12323
+ AdminSavedFiltersReplaceRequest: {
12324
+ /** @description The complete new preset list, in order (at most 20). */
12325
+ presets: components["schemas"]["AdminSavedFilterPresetInput"][];
12326
+ /**
12327
+ * Format: int64
12328
+ * @description The `version` last read. A stale value is rejected with 409 and nothing
12329
+ * is saved.
12330
+ */
12331
+ version: number;
12332
+ };
11993
12333
  ProjectResponse: components["schemas"]["Project"] & {
11994
12334
  /**
11995
12335
  * @description Whether the project's git URL matches a repository accessible via the team's GitHub App installation
@@ -22847,6 +23187,353 @@ export interface operations {
22847
23187
  };
22848
23188
  };
22849
23189
  };
23190
+ getAdminProjectResourceCreationMetrics: {
23191
+ parameters: {
23192
+ query?: {
23193
+ /** @description Inclusive start of the range. Defaults to 30 days before `to`. */
23194
+ from?: string;
23195
+ /** @description Exclusive end of the range. Defaults to now. */
23196
+ to?: string;
23197
+ /** @description Bucket size. */
23198
+ granularity?: "day" | "week" | "month";
23199
+ };
23200
+ header?: never;
23201
+ path: {
23202
+ /** @description Project id (UUID) */
23203
+ id: string;
23204
+ };
23205
+ cookie?: never;
23206
+ };
23207
+ requestBody?: never;
23208
+ responses: {
23209
+ /** @description Bucketed creation counts per type */
23210
+ 200: {
23211
+ headers: {
23212
+ [name: string]: unknown;
23213
+ };
23214
+ content: {
23215
+ "application/json": components["schemas"]["AdminProjectResourceCreationMetrics"];
23216
+ };
23217
+ };
23218
+ /**
23219
+ * @description Bad request — malformed project id, `to` is not after `from`, the range
23220
+ * exceeds the maximum span, or `granularity` is outside its enum
23221
+ */
23222
+ 400: {
23223
+ headers: {
23224
+ [name: string]: unknown;
23225
+ };
23226
+ content: {
23227
+ "application/problem+json": components["schemas"]["ErrorResponse"];
23228
+ };
23229
+ };
23230
+ /** @description Not found — unknown project id, or the caller is not an instance admin */
23231
+ 404: {
23232
+ headers: {
23233
+ [name: string]: unknown;
23234
+ };
23235
+ content: {
23236
+ "application/problem+json": components["schemas"]["ErrorResponse"];
23237
+ };
23238
+ };
23239
+ /** @description Internal server error */
23240
+ 500: {
23241
+ headers: {
23242
+ [name: string]: unknown;
23243
+ };
23244
+ content: {
23245
+ "application/problem+json": components["schemas"]["ErrorResponse"];
23246
+ };
23247
+ };
23248
+ };
23249
+ };
23250
+ getAdminProjectResourceAccessMetrics: {
23251
+ parameters: {
23252
+ query?: {
23253
+ /** @description Inclusive start of the range. Defaults to 30 days before `to`. */
23254
+ from?: string;
23255
+ /** @description Exclusive end of the range. Defaults to now. */
23256
+ to?: string;
23257
+ /** @description Bucket size. */
23258
+ granularity?: "day" | "week" | "month";
23259
+ };
23260
+ header?: never;
23261
+ path: {
23262
+ /** @description Project id (UUID) */
23263
+ id: string;
23264
+ };
23265
+ cookie?: never;
23266
+ };
23267
+ requestBody?: never;
23268
+ responses: {
23269
+ /** @description Bucketed access counts per source */
23270
+ 200: {
23271
+ headers: {
23272
+ [name: string]: unknown;
23273
+ };
23274
+ content: {
23275
+ "application/json": components["schemas"]["AdminProjectAccessMetrics"];
23276
+ };
23277
+ };
23278
+ /**
23279
+ * @description Bad request — malformed project id, `to` is not after `from`, the range
23280
+ * exceeds the maximum span, or `granularity` is outside its enum
23281
+ */
23282
+ 400: {
23283
+ headers: {
23284
+ [name: string]: unknown;
23285
+ };
23286
+ content: {
23287
+ "application/problem+json": components["schemas"]["ErrorResponse"];
23288
+ };
23289
+ };
23290
+ /** @description Not found — unknown project id, or the caller is not an instance admin */
23291
+ 404: {
23292
+ headers: {
23293
+ [name: string]: unknown;
23294
+ };
23295
+ content: {
23296
+ "application/problem+json": components["schemas"]["ErrorResponse"];
23297
+ };
23298
+ };
23299
+ /** @description Internal server error */
23300
+ 500: {
23301
+ headers: {
23302
+ [name: string]: unknown;
23303
+ };
23304
+ content: {
23305
+ "application/problem+json": components["schemas"]["ErrorResponse"];
23306
+ };
23307
+ };
23308
+ };
23309
+ };
23310
+ getAdminProjectTopAccessedResources: {
23311
+ parameters: {
23312
+ query?: {
23313
+ /** @description Inclusive start of the range. Defaults to 30 days before `to`. */
23314
+ from?: string;
23315
+ /** @description Exclusive end of the range. Defaults to now. */
23316
+ to?: string;
23317
+ /** @description Maximum number of rows. */
23318
+ limit?: number;
23319
+ };
23320
+ header?: never;
23321
+ path: {
23322
+ /** @description Project id (UUID) */
23323
+ id: string;
23324
+ };
23325
+ cookie?: never;
23326
+ };
23327
+ requestBody?: never;
23328
+ responses: {
23329
+ /** @description The most-accessed resources, most accessed first */
23330
+ 200: {
23331
+ headers: {
23332
+ [name: string]: unknown;
23333
+ };
23334
+ content: {
23335
+ "application/json": components["schemas"]["AdminTopAccessedResourcesResponse"];
23336
+ };
23337
+ };
23338
+ /**
23339
+ * @description Bad request — malformed project id, `to` is not after `from`, the range
23340
+ * exceeds the maximum span, or `limit` is out of range
23341
+ */
23342
+ 400: {
23343
+ headers: {
23344
+ [name: string]: unknown;
23345
+ };
23346
+ content: {
23347
+ "application/problem+json": components["schemas"]["ErrorResponse"];
23348
+ };
23349
+ };
23350
+ /** @description Not found — unknown project id, or the caller is not an instance admin */
23351
+ 404: {
23352
+ headers: {
23353
+ [name: string]: unknown;
23354
+ };
23355
+ content: {
23356
+ "application/problem+json": components["schemas"]["ErrorResponse"];
23357
+ };
23358
+ };
23359
+ /** @description Internal server error */
23360
+ 500: {
23361
+ headers: {
23362
+ [name: string]: unknown;
23363
+ };
23364
+ content: {
23365
+ "application/problem+json": components["schemas"]["ErrorResponse"];
23366
+ };
23367
+ };
23368
+ };
23369
+ };
23370
+ getAdminProjectConfig: {
23371
+ parameters: {
23372
+ query?: never;
23373
+ header?: never;
23374
+ path: {
23375
+ /** @description Project id (UUID) */
23376
+ id: string;
23377
+ };
23378
+ cookie?: never;
23379
+ };
23380
+ requestBody?: never;
23381
+ responses: {
23382
+ /** @description The project's and the team-wide freshness rules */
23383
+ 200: {
23384
+ headers: {
23385
+ [name: string]: unknown;
23386
+ };
23387
+ content: {
23388
+ "application/json": components["schemas"]["AdminProjectConfig"];
23389
+ };
23390
+ };
23391
+ /** @description Bad request — malformed project id */
23392
+ 400: {
23393
+ headers: {
23394
+ [name: string]: unknown;
23395
+ };
23396
+ content: {
23397
+ "application/problem+json": components["schemas"]["ErrorResponse"];
23398
+ };
23399
+ };
23400
+ /** @description Not found — unknown project id, or the caller is not an instance admin */
23401
+ 404: {
23402
+ headers: {
23403
+ [name: string]: unknown;
23404
+ };
23405
+ content: {
23406
+ "application/problem+json": components["schemas"]["ErrorResponse"];
23407
+ };
23408
+ };
23409
+ /** @description Internal server error */
23410
+ 500: {
23411
+ headers: {
23412
+ [name: string]: unknown;
23413
+ };
23414
+ content: {
23415
+ "application/problem+json": components["schemas"]["ErrorResponse"];
23416
+ };
23417
+ };
23418
+ };
23419
+ };
23420
+ getAdminSavedFilters: {
23421
+ parameters: {
23422
+ query?: never;
23423
+ header?: never;
23424
+ path: {
23425
+ /** @description Which admin list the presets belong to. */
23426
+ list: components["schemas"]["AdminSavedFilterListName"];
23427
+ };
23428
+ cookie?: never;
23429
+ };
23430
+ requestBody?: never;
23431
+ responses: {
23432
+ /** @description The caller's presets for this list */
23433
+ 200: {
23434
+ headers: {
23435
+ [name: string]: unknown;
23436
+ };
23437
+ content: {
23438
+ "application/json": components["schemas"]["AdminSavedFilters"];
23439
+ };
23440
+ };
23441
+ /** @description Bad request — unknown list name */
23442
+ 400: {
23443
+ headers: {
23444
+ [name: string]: unknown;
23445
+ };
23446
+ content: {
23447
+ "application/problem+json": components["schemas"]["ErrorResponse"];
23448
+ };
23449
+ };
23450
+ /** @description Not found — the caller is not an instance admin */
23451
+ 404: {
23452
+ headers: {
23453
+ [name: string]: unknown;
23454
+ };
23455
+ content: {
23456
+ "application/problem+json": components["schemas"]["ErrorResponse"];
23457
+ };
23458
+ };
23459
+ /** @description Internal server error */
23460
+ 500: {
23461
+ headers: {
23462
+ [name: string]: unknown;
23463
+ };
23464
+ content: {
23465
+ "application/problem+json": components["schemas"]["ErrorResponse"];
23466
+ };
23467
+ };
23468
+ };
23469
+ };
23470
+ replaceAdminSavedFilters: {
23471
+ parameters: {
23472
+ query?: never;
23473
+ header?: never;
23474
+ path: {
23475
+ /** @description Which admin list the presets belong to. */
23476
+ list: components["schemas"]["AdminSavedFilterListName"];
23477
+ };
23478
+ cookie?: never;
23479
+ };
23480
+ requestBody: {
23481
+ content: {
23482
+ "application/json": components["schemas"]["AdminSavedFiltersReplaceRequest"];
23483
+ };
23484
+ };
23485
+ responses: {
23486
+ /** @description The saved presets and the new version */
23487
+ 200: {
23488
+ headers: {
23489
+ [name: string]: unknown;
23490
+ };
23491
+ content: {
23492
+ "application/json": components["schemas"]["AdminSavedFilters"];
23493
+ };
23494
+ };
23495
+ /**
23496
+ * @description Bad request — unknown list name, an invalid preset (over the cap,
23497
+ * duplicate or out-of-range name, duplicate id, invalid query key or
23498
+ * value), or a body carrying an unknown field
23499
+ */
23500
+ 400: {
23501
+ headers: {
23502
+ [name: string]: unknown;
23503
+ };
23504
+ content: {
23505
+ "application/problem+json": components["schemas"]["ErrorResponse"];
23506
+ };
23507
+ };
23508
+ /** @description Not found — the caller is not an instance admin */
23509
+ 404: {
23510
+ headers: {
23511
+ [name: string]: unknown;
23512
+ };
23513
+ content: {
23514
+ "application/problem+json": components["schemas"]["ErrorResponse"];
23515
+ };
23516
+ };
23517
+ /** @description Conflict — the presets were changed elsewhere (stale `version`); nothing was saved */
23518
+ 409: {
23519
+ headers: {
23520
+ [name: string]: unknown;
23521
+ };
23522
+ content: {
23523
+ "application/problem+json": components["schemas"]["ErrorResponse"];
23524
+ };
23525
+ };
23526
+ /** @description Internal server error */
23527
+ 500: {
23528
+ headers: {
23529
+ [name: string]: unknown;
23530
+ };
23531
+ content: {
23532
+ "application/problem+json": components["schemas"]["ErrorResponse"];
23533
+ };
23534
+ };
23535
+ };
23536
+ };
22850
23537
  listComments: {
22851
23538
  parameters: {
22852
23539
  query: {