@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.
@@ -3473,6 +3473,188 @@ export const getAdminUserNotificationPreferences = (options) => (options.client
3473
3473
  url: '/api/v1/admin/users/{id}/notification-preferences',
3474
3474
  ...options
3475
3475
  });
3476
+ /**
3477
+ * Get a project's resource creation series
3478
+ *
3479
+ * Returns how many resources of each PROJECT-SCOPED type (prompts, memories,
3480
+ * artifacts, blueprints, feed items) were created in the project per bucket
3481
+ * over a time range. Only resources that currently belong to the project are
3482
+ * counted: deleted resources drop out, and a resource moved in by a project
3483
+ * migration counts here from its original creation time. Omitting the
3484
+ * parameters yields the last 30 days at `day` granularity, and the range
3485
+ * rules match getAdminDashboardTimeseries. Every bucket is present with an
3486
+ * explicit 0 for every type.
3487
+ *
3488
+ * Instance-admin only; non-admin and unauthenticated requests receive 404, as
3489
+ * does an unknown project id.
3490
+ *
3491
+ */
3492
+ export const getAdminProjectResourceCreationMetrics = (options) => (options.client ?? client).get({
3493
+ responseType: 'json',
3494
+ security: [{
3495
+ key: 'ApiKeyAuth',
3496
+ scheme: 'bearer',
3497
+ type: 'http'
3498
+ }, {
3499
+ in: 'cookie',
3500
+ name: 'vx_session',
3501
+ type: 'apiKey'
3502
+ }],
3503
+ url: '/api/v1/admin/projects/{id}/resource-creation-metrics',
3504
+ ...options
3505
+ });
3506
+ /**
3507
+ * Get a project's resource access series by source
3508
+ *
3509
+ * Returns how many times the project's resources (prompts, artifacts,
3510
+ * blueprints, memories) and the project itself were accessed (opened) per
3511
+ * bucket and per access source (web, cli, mcp, api). Omitting the parameters
3512
+ * yields the last 30 days at `day` granularity, and the range rules match
3513
+ * getAdminDashboardTimeseries. Every bucket is present with an explicit 0 for
3514
+ * each source that appears in the range.
3515
+ *
3516
+ * Access events carry no project, so an event is attributed to the project
3517
+ * its resource belongs to NOW: accesses to a since-deleted resource drop out,
3518
+ * and a resource moved in by a project migration brings its whole access
3519
+ * history with it. Agents are team-scoped and never count. Access events are
3520
+ * also TTL-pruned (`retention.access_event_days`), so a range reaching back
3521
+ * before `earliest_retained_at` reads as zeros there.
3522
+ *
3523
+ * Instance-admin only; non-admin and unauthenticated requests receive 404, as
3524
+ * does an unknown project id.
3525
+ *
3526
+ */
3527
+ export const getAdminProjectResourceAccessMetrics = (options) => (options.client ?? client).get({
3528
+ responseType: 'json',
3529
+ security: [{
3530
+ key: 'ApiKeyAuth',
3531
+ scheme: 'bearer',
3532
+ type: 'http'
3533
+ }, {
3534
+ in: 'cookie',
3535
+ name: 'vx_session',
3536
+ type: 'apiKey'
3537
+ }],
3538
+ url: '/api/v1/admin/projects/{id}/resource-access-metrics',
3539
+ ...options
3540
+ });
3541
+ /**
3542
+ * Get a project's most-accessed resources
3543
+ *
3544
+ * Returns the project's resources (prompts, artifacts, blueprints, memories)
3545
+ * accessed most often in a time range, ranked by access count (ties broken
3546
+ * by resource id). Rows are OPAQUE: resource type, team, project and the
3547
+ * first 8 characters of the resource id — never a title, slug or content.
3548
+ * Opening the project page itself counts in the access series but is not
3549
+ * listed here, and `resource_deleted` is always `false`: attribution is by
3550
+ * the resource's CURRENT project, so a deleted resource has none and drops
3551
+ * out.
3552
+ *
3553
+ * `from` defaults to 30 days before `to`, and `to` to now. Access events are
3554
+ * TTL-pruned (`retention.access_event_days`), so accesses before
3555
+ * `earliest_retained_at` are not counted.
3556
+ *
3557
+ * Instance-admin only; non-admin and unauthenticated requests receive 404, as
3558
+ * does an unknown project id.
3559
+ *
3560
+ */
3561
+ export const getAdminProjectTopAccessedResources = (options) => (options.client ?? client).get({
3562
+ responseType: 'json',
3563
+ security: [{
3564
+ key: 'ApiKeyAuth',
3565
+ scheme: 'bearer',
3566
+ type: 'http'
3567
+ }, {
3568
+ in: 'cookie',
3569
+ name: 'vx_session',
3570
+ type: 'apiKey'
3571
+ }],
3572
+ url: '/api/v1/admin/projects/{id}/top-accessed-resources',
3573
+ ...options
3574
+ });
3575
+ /**
3576
+ * Get a project's configuration
3577
+ *
3578
+ * Returns the configuration that applies to the project. Projects have no
3579
+ * settings of their own, so today this is the freshness rules that govern
3580
+ * it, split in two: the rules scoped to this project, and the team-wide
3581
+ * rules (no project scope) that apply to every project of its team. Rules
3582
+ * combine cumulatively, so both lists apply. Rules scoped to other projects
3583
+ * of the team are never included. The team's freshness settings live in
3584
+ * getAdminTeamFreshnessConfig. Read-only.
3585
+ *
3586
+ * Instance-admin only; non-admin and unauthenticated requests receive 404, as
3587
+ * does an unknown project id.
3588
+ *
3589
+ */
3590
+ export const getAdminProjectConfig = (options) => (options.client ?? client).get({
3591
+ responseType: 'json',
3592
+ security: [{
3593
+ key: 'ApiKeyAuth',
3594
+ scheme: 'bearer',
3595
+ type: 'http'
3596
+ }, {
3597
+ in: 'cookie',
3598
+ name: 'vx_session',
3599
+ type: 'apiKey'
3600
+ }],
3601
+ url: '/api/v1/admin/projects/{id}/config',
3602
+ ...options
3603
+ });
3604
+ /**
3605
+ * Get the caller's saved filter presets for an admin list
3606
+ *
3607
+ * Returns the calling instance admin's own named filter presets for one admin
3608
+ * list, plus the `version` to send back when replacing them. An admin with
3609
+ * nothing saved gets `presets: []` and `version: 0`. Presets are private to
3610
+ * the admin who saved them.
3611
+ * Instance-admin only; non-admin and unauthenticated requests receive 404.
3612
+ *
3613
+ */
3614
+ export const getAdminSavedFilters = (options) => (options.client ?? client).get({
3615
+ responseType: 'json',
3616
+ security: [{
3617
+ key: 'ApiKeyAuth',
3618
+ scheme: 'bearer',
3619
+ type: 'http'
3620
+ }, {
3621
+ in: 'cookie',
3622
+ name: 'vx_session',
3623
+ type: 'apiKey'
3624
+ }],
3625
+ url: '/api/v1/admin/saved-filters/{list}',
3626
+ ...options
3627
+ });
3628
+ /**
3629
+ * Replace the caller's saved filter presets for an admin list
3630
+ *
3631
+ * Atomically replaces the calling instance admin's presets for one admin
3632
+ * list. At most 20 presets; names are trimmed and must be 1–80 characters and
3633
+ * unique case-insensitively; ids must be unique (a missing id is assigned by
3634
+ * the server, a sent id is kept). The request's `version` must match the
3635
+ * stored one, otherwise nothing is saved and 409 is returned. A body carrying
3636
+ * an unknown field is rejected with 400.
3637
+ * Instance-admin only; non-admin and unauthenticated requests receive 404.
3638
+ *
3639
+ */
3640
+ export const replaceAdminSavedFilters = (options) => (options.client ?? client).put({
3641
+ responseType: 'json',
3642
+ security: [{
3643
+ key: 'ApiKeyAuth',
3644
+ scheme: 'bearer',
3645
+ type: 'http'
3646
+ }, {
3647
+ in: 'cookie',
3648
+ name: 'vx_session',
3649
+ type: 'apiKey'
3650
+ }],
3651
+ url: '/api/v1/admin/saved-filters/{list}',
3652
+ ...options,
3653
+ headers: {
3654
+ 'Content-Type': 'application/json',
3655
+ ...options.headers
3656
+ }
3657
+ });
3476
3658
  /**
3477
3659
  * List a resource's comments
3478
3660
  *
@@ -5413,7 +5413,8 @@ export type AdminUserAccessMetrics = {
5413
5413
  };
5414
5414
  /**
5415
5415
  * One opaque most-accessed resource: its type, where it lives and how often
5416
- * the user accessed it. Deliberately carries no title, slug or content — only
5416
+ * the user accessed it (or, for a project, how often it was accessed).
5417
+ * Deliberately carries no title, slug or content — only
5417
5418
  * the first 8 characters of the resource id. The identity fields share their
5418
5419
  * names with AdminUserTimelineEvent.
5419
5420
  *
@@ -5434,14 +5435,19 @@ export type AdminTopAccessedResource = {
5434
5435
  project_id: string | null;
5435
5436
  project_name: string | null;
5436
5437
  /**
5437
- * True when the resource no longer exists (access events outlive their resource until pruned).
5438
+ * True when the resource no longer exists (access events outlive their
5439
+ * resource until pruned). Always `false` for a project's top resources
5440
+ * (GET /api/v1/admin/projects/{id}/top-accessed-resources), where a
5441
+ * deleted resource has no current project and drops out.
5442
+ *
5438
5443
  */
5439
5444
  resource_deleted: boolean;
5440
5445
  access_count: number;
5441
5446
  };
5442
5447
  /**
5443
5448
  * The resources a user accessed most in a range
5444
- * (GET /api/v1/admin/users/{id}/top-accessed-resources).
5449
+ * (GET /api/v1/admin/users/{id}/top-accessed-resources), or a project's
5450
+ * most-accessed resources (GET /api/v1/admin/projects/{id}/top-accessed-resources).
5445
5451
  *
5446
5452
  */
5447
5453
  export type AdminTopAccessedResourcesResponse = {
@@ -5868,6 +5874,182 @@ export type AdminTeamGitHubConfig = {
5868
5874
  app_config: AdminGitHubAppConfig | null;
5869
5875
  installation: AdminGitHubInstallation;
5870
5876
  };
5877
+ /**
5878
+ * How many resources of each project-scoped type were created in the project within one time bucket.
5879
+ */
5880
+ export type AdminProjectCreationPoint = {
5881
+ /**
5882
+ * Start of the bucket, in UTC.
5883
+ */
5884
+ bucket: string;
5885
+ prompts: number;
5886
+ memories: number;
5887
+ artifacts: number;
5888
+ blueprints: number;
5889
+ feed_items: number;
5890
+ };
5891
+ /**
5892
+ * Resources created in the project per bucket, stacked by type
5893
+ * (GET /api/v1/admin/projects/{id}/resource-creation-metrics). Every bucket in
5894
+ * the range is present with an explicit 0 for every type.
5895
+ *
5896
+ */
5897
+ export type AdminProjectResourceCreationMetrics = {
5898
+ /**
5899
+ * Inclusive start of the range actually used, snapped DOWN to the start of
5900
+ * its bucket (same rule as AdminTimeseriesResponse.from).
5901
+ *
5902
+ */
5903
+ from: string;
5904
+ /**
5905
+ * Exclusive end of the range actually used (after defaulting); not snapped.
5906
+ */
5907
+ to: string;
5908
+ /**
5909
+ * Bucket size actually used.
5910
+ */
5911
+ granularity: 'day' | 'week' | 'month';
5912
+ /**
5913
+ * One point per bucket, ascending by bucket.
5914
+ */
5915
+ series: Array<AdminProjectCreationPoint>;
5916
+ };
5917
+ /**
5918
+ * Accesses to the project's resources and to the project itself per bucket and
5919
+ * source (GET /api/v1/admin/projects/{id}/resource-access-metrics). An event
5920
+ * is attributed to the project its resource belongs to now, so accesses to a
5921
+ * deleted resource drop out and a migrated resource brings its history with
5922
+ * it. Every bucket in the range is present with an explicit 0 for each source
5923
+ * that appears.
5924
+ *
5925
+ */
5926
+ export type AdminProjectAccessMetrics = {
5927
+ /**
5928
+ * Inclusive start of the range actually used, snapped DOWN to the start of
5929
+ * its bucket (same rule as AdminTimeseriesResponse.from).
5930
+ *
5931
+ */
5932
+ from: string;
5933
+ /**
5934
+ * Exclusive end of the range actually used (after defaulting); not snapped.
5935
+ */
5936
+ to: string;
5937
+ /**
5938
+ * Bucket size actually used.
5939
+ */
5940
+ granularity: 'day' | 'week' | 'month';
5941
+ /**
5942
+ * One point per (bucket, source), ascending by bucket then source.
5943
+ */
5944
+ access_by_source: Array<AdminSourcePoint>;
5945
+ /**
5946
+ * Oldest access event still retained (now minus
5947
+ * `retention.access_event_days`); buckets before it read as zeros.
5948
+ *
5949
+ */
5950
+ earliest_retained_at: string;
5951
+ };
5952
+ /**
5953
+ * The configuration that applies to a project
5954
+ * (GET /api/v1/admin/projects/{id}/config): the freshness rules scoped to it
5955
+ * and the team-wide rules that also apply. Both lists are oldest first and
5956
+ * include disabled rules.
5957
+ *
5958
+ */
5959
+ export type AdminProjectConfig = {
5960
+ /**
5961
+ * Rules scoped to this project. `[]` when there are none.
5962
+ */
5963
+ project_rules: Array<AdminFreshnessRule>;
5964
+ /**
5965
+ * Rules with no project scope, which apply to every project of the team. `[]` when there are none.
5966
+ */
5967
+ team_wide_rules: Array<AdminFreshnessRule>;
5968
+ };
5969
+ /**
5970
+ * The admin list a set of saved filter presets belongs to.
5971
+ */
5972
+ export type AdminSavedFilterListName = 'users' | 'teams' | 'projects';
5973
+ /**
5974
+ * The list's filter state as URL query parameters (parameter name → value).
5975
+ * Stored as given and never executed server-side; the client owns its meaning.
5976
+ * At most 40 keys, each matching `^[a-z0-9_]{1,64}$`, each value at most 512
5977
+ * characters.
5978
+ *
5979
+ */
5980
+ export type AdminSavedFilterQuery = {
5981
+ [key: string]: string;
5982
+ };
5983
+ /**
5984
+ * One named filter preset saved by an instance admin.
5985
+ */
5986
+ export type AdminSavedFilterPreset = {
5987
+ /**
5988
+ * Stable preset id. Kept across renames.
5989
+ */
5990
+ id: string;
5991
+ /**
5992
+ * Display name, unique (case-insensitively) within the list.
5993
+ */
5994
+ name: string;
5995
+ query: AdminSavedFilterQuery;
5996
+ };
5997
+ /**
5998
+ * A preset as sent in a replace request. Omit `id` for a new preset and the
5999
+ * server assigns one; send the existing `id` to keep it (e.g. on rename).
6000
+ *
6001
+ */
6002
+ export type AdminSavedFilterPresetInput = {
6003
+ /**
6004
+ * Existing preset id to keep; omitted for a new preset.
6005
+ */
6006
+ id?: string;
6007
+ /**
6008
+ * Display name. Surrounding whitespace is trimmed; must be unique
6009
+ * (case-insensitively) within the list.
6010
+ *
6011
+ */
6012
+ name: string;
6013
+ query: AdminSavedFilterQuery;
6014
+ };
6015
+ /**
6016
+ * The calling instance admin's saved filter presets for one admin list
6017
+ * (GET/PUT /api/v1/admin/saved-filters/{list}). Presets are private to the
6018
+ * admin who saved them.
6019
+ *
6020
+ */
6021
+ export type AdminSavedFilters = {
6022
+ list: AdminSavedFilterListName;
6023
+ /**
6024
+ * The presets in their saved order. `[]` when there are none.
6025
+ */
6026
+ presets: Array<AdminSavedFilterPreset>;
6027
+ /**
6028
+ * Optimistic-lock version of the admin's preferences record. `0` when
6029
+ * nothing has been saved yet. Send it back unchanged in the next replace
6030
+ * request; it is shared with the user's other preferences, so a change
6031
+ * made elsewhere also advances it.
6032
+ *
6033
+ */
6034
+ version: number;
6035
+ };
6036
+ /**
6037
+ * Replaces the whole preset list for one admin list. Renaming and deleting are
6038
+ * done by sending the edited list.
6039
+ *
6040
+ */
6041
+ export type AdminSavedFiltersReplaceRequest = {
6042
+ /**
6043
+ * The complete new preset list, in order (at most 20).
6044
+ */
6045
+ presets: Array<AdminSavedFilterPresetInput>;
6046
+ /**
6047
+ * The `version` last read. A stale value is rejected with 409 and nothing
6048
+ * is saved.
6049
+ *
6050
+ */
6051
+ version: number;
6052
+ };
5871
6053
  export type ProjectResponse = Project & {
5872
6054
  /**
5873
6055
  * Whether the project's git URL matches a repository accessible via the team's GitHub App installation
@@ -13674,6 +13856,256 @@ export type GetAdminUserNotificationPreferencesResponses = {
13674
13856
  200: AdminUserNotificationPreferences;
13675
13857
  };
13676
13858
  export type GetAdminUserNotificationPreferencesResponse = GetAdminUserNotificationPreferencesResponses[keyof GetAdminUserNotificationPreferencesResponses];
13859
+ export type GetAdminProjectResourceCreationMetricsData = {
13860
+ body?: never;
13861
+ path: {
13862
+ /**
13863
+ * Project id (UUID)
13864
+ */
13865
+ id: string;
13866
+ };
13867
+ query?: {
13868
+ /**
13869
+ * Inclusive start of the range. Defaults to 30 days before `to`.
13870
+ */
13871
+ from?: string;
13872
+ /**
13873
+ * Exclusive end of the range. Defaults to now.
13874
+ */
13875
+ to?: string;
13876
+ /**
13877
+ * Bucket size.
13878
+ */
13879
+ granularity?: 'day' | 'week' | 'month';
13880
+ };
13881
+ url: '/api/v1/admin/projects/{id}/resource-creation-metrics';
13882
+ };
13883
+ export type GetAdminProjectResourceCreationMetricsErrors = {
13884
+ /**
13885
+ * Bad request — malformed project id, `to` is not after `from`, the range
13886
+ * exceeds the maximum span, or `granularity` is outside its enum
13887
+ *
13888
+ */
13889
+ 400: ErrorResponse;
13890
+ /**
13891
+ * Not found — unknown project id, or the caller is not an instance admin
13892
+ */
13893
+ 404: ErrorResponse;
13894
+ /**
13895
+ * Internal server error
13896
+ */
13897
+ 500: ErrorResponse;
13898
+ };
13899
+ export type GetAdminProjectResourceCreationMetricsError = GetAdminProjectResourceCreationMetricsErrors[keyof GetAdminProjectResourceCreationMetricsErrors];
13900
+ export type GetAdminProjectResourceCreationMetricsResponses = {
13901
+ /**
13902
+ * Bucketed creation counts per type
13903
+ */
13904
+ 200: AdminProjectResourceCreationMetrics;
13905
+ };
13906
+ export type GetAdminProjectResourceCreationMetricsResponse = GetAdminProjectResourceCreationMetricsResponses[keyof GetAdminProjectResourceCreationMetricsResponses];
13907
+ export type GetAdminProjectResourceAccessMetricsData = {
13908
+ body?: never;
13909
+ path: {
13910
+ /**
13911
+ * Project id (UUID)
13912
+ */
13913
+ id: string;
13914
+ };
13915
+ query?: {
13916
+ /**
13917
+ * Inclusive start of the range. Defaults to 30 days before `to`.
13918
+ */
13919
+ from?: string;
13920
+ /**
13921
+ * Exclusive end of the range. Defaults to now.
13922
+ */
13923
+ to?: string;
13924
+ /**
13925
+ * Bucket size.
13926
+ */
13927
+ granularity?: 'day' | 'week' | 'month';
13928
+ };
13929
+ url: '/api/v1/admin/projects/{id}/resource-access-metrics';
13930
+ };
13931
+ export type GetAdminProjectResourceAccessMetricsErrors = {
13932
+ /**
13933
+ * Bad request — malformed project id, `to` is not after `from`, the range
13934
+ * exceeds the maximum span, or `granularity` is outside its enum
13935
+ *
13936
+ */
13937
+ 400: ErrorResponse;
13938
+ /**
13939
+ * Not found — unknown project id, or the caller is not an instance admin
13940
+ */
13941
+ 404: ErrorResponse;
13942
+ /**
13943
+ * Internal server error
13944
+ */
13945
+ 500: ErrorResponse;
13946
+ };
13947
+ export type GetAdminProjectResourceAccessMetricsError = GetAdminProjectResourceAccessMetricsErrors[keyof GetAdminProjectResourceAccessMetricsErrors];
13948
+ export type GetAdminProjectResourceAccessMetricsResponses = {
13949
+ /**
13950
+ * Bucketed access counts per source
13951
+ */
13952
+ 200: AdminProjectAccessMetrics;
13953
+ };
13954
+ export type GetAdminProjectResourceAccessMetricsResponse = GetAdminProjectResourceAccessMetricsResponses[keyof GetAdminProjectResourceAccessMetricsResponses];
13955
+ export type GetAdminProjectTopAccessedResourcesData = {
13956
+ body?: never;
13957
+ path: {
13958
+ /**
13959
+ * Project id (UUID)
13960
+ */
13961
+ id: string;
13962
+ };
13963
+ query?: {
13964
+ /**
13965
+ * Inclusive start of the range. Defaults to 30 days before `to`.
13966
+ */
13967
+ from?: string;
13968
+ /**
13969
+ * Exclusive end of the range. Defaults to now.
13970
+ */
13971
+ to?: string;
13972
+ /**
13973
+ * Maximum number of rows.
13974
+ */
13975
+ limit?: number;
13976
+ };
13977
+ url: '/api/v1/admin/projects/{id}/top-accessed-resources';
13978
+ };
13979
+ export type GetAdminProjectTopAccessedResourcesErrors = {
13980
+ /**
13981
+ * Bad request — malformed project id, `to` is not after `from`, the range
13982
+ * exceeds the maximum span, or `limit` is out of range
13983
+ *
13984
+ */
13985
+ 400: ErrorResponse;
13986
+ /**
13987
+ * Not found — unknown project id, or the caller is not an instance admin
13988
+ */
13989
+ 404: ErrorResponse;
13990
+ /**
13991
+ * Internal server error
13992
+ */
13993
+ 500: ErrorResponse;
13994
+ };
13995
+ export type GetAdminProjectTopAccessedResourcesError = GetAdminProjectTopAccessedResourcesErrors[keyof GetAdminProjectTopAccessedResourcesErrors];
13996
+ export type GetAdminProjectTopAccessedResourcesResponses = {
13997
+ /**
13998
+ * The most-accessed resources, most accessed first
13999
+ */
14000
+ 200: AdminTopAccessedResourcesResponse;
14001
+ };
14002
+ export type GetAdminProjectTopAccessedResourcesResponse = GetAdminProjectTopAccessedResourcesResponses[keyof GetAdminProjectTopAccessedResourcesResponses];
14003
+ export type GetAdminProjectConfigData = {
14004
+ body?: never;
14005
+ path: {
14006
+ /**
14007
+ * Project id (UUID)
14008
+ */
14009
+ id: string;
14010
+ };
14011
+ query?: never;
14012
+ url: '/api/v1/admin/projects/{id}/config';
14013
+ };
14014
+ export type GetAdminProjectConfigErrors = {
14015
+ /**
14016
+ * Bad request — malformed project id
14017
+ */
14018
+ 400: ErrorResponse;
14019
+ /**
14020
+ * Not found — unknown project id, or the caller is not an instance admin
14021
+ */
14022
+ 404: ErrorResponse;
14023
+ /**
14024
+ * Internal server error
14025
+ */
14026
+ 500: ErrorResponse;
14027
+ };
14028
+ export type GetAdminProjectConfigError = GetAdminProjectConfigErrors[keyof GetAdminProjectConfigErrors];
14029
+ export type GetAdminProjectConfigResponses = {
14030
+ /**
14031
+ * The project's and the team-wide freshness rules
14032
+ */
14033
+ 200: AdminProjectConfig;
14034
+ };
14035
+ export type GetAdminProjectConfigResponse = GetAdminProjectConfigResponses[keyof GetAdminProjectConfigResponses];
14036
+ export type GetAdminSavedFiltersData = {
14037
+ body?: never;
14038
+ path: {
14039
+ /**
14040
+ * Which admin list the presets belong to.
14041
+ */
14042
+ list: AdminSavedFilterListName;
14043
+ };
14044
+ query?: never;
14045
+ url: '/api/v1/admin/saved-filters/{list}';
14046
+ };
14047
+ export type GetAdminSavedFiltersErrors = {
14048
+ /**
14049
+ * Bad request — unknown list name
14050
+ */
14051
+ 400: ErrorResponse;
14052
+ /**
14053
+ * Not found — the caller is not an instance admin
14054
+ */
14055
+ 404: ErrorResponse;
14056
+ /**
14057
+ * Internal server error
14058
+ */
14059
+ 500: ErrorResponse;
14060
+ };
14061
+ export type GetAdminSavedFiltersError = GetAdminSavedFiltersErrors[keyof GetAdminSavedFiltersErrors];
14062
+ export type GetAdminSavedFiltersResponses = {
14063
+ /**
14064
+ * The caller's presets for this list
14065
+ */
14066
+ 200: AdminSavedFilters;
14067
+ };
14068
+ export type GetAdminSavedFiltersResponse = GetAdminSavedFiltersResponses[keyof GetAdminSavedFiltersResponses];
14069
+ export type ReplaceAdminSavedFiltersData = {
14070
+ body: AdminSavedFiltersReplaceRequest;
14071
+ path: {
14072
+ /**
14073
+ * Which admin list the presets belong to.
14074
+ */
14075
+ list: AdminSavedFilterListName;
14076
+ };
14077
+ query?: never;
14078
+ url: '/api/v1/admin/saved-filters/{list}';
14079
+ };
14080
+ export type ReplaceAdminSavedFiltersErrors = {
14081
+ /**
14082
+ * Bad request — unknown list name, an invalid preset (over the cap,
14083
+ * duplicate or out-of-range name, duplicate id, invalid query key or
14084
+ * value), or a body carrying an unknown field
14085
+ *
14086
+ */
14087
+ 400: ErrorResponse;
14088
+ /**
14089
+ * Not found — the caller is not an instance admin
14090
+ */
14091
+ 404: ErrorResponse;
14092
+ /**
14093
+ * Conflict — the presets were changed elsewhere (stale `version`); nothing was saved
14094
+ */
14095
+ 409: ErrorResponse;
14096
+ /**
14097
+ * Internal server error
14098
+ */
14099
+ 500: ErrorResponse;
14100
+ };
14101
+ export type ReplaceAdminSavedFiltersError = ReplaceAdminSavedFiltersErrors[keyof ReplaceAdminSavedFiltersErrors];
14102
+ export type ReplaceAdminSavedFiltersResponses = {
14103
+ /**
14104
+ * The saved presets and the new version
14105
+ */
14106
+ 200: AdminSavedFilters;
14107
+ };
14108
+ export type ReplaceAdminSavedFiltersResponse = ReplaceAdminSavedFiltersResponses[keyof ReplaceAdminSavedFiltersResponses];
13677
14109
  export type ListCommentsData = {
13678
14110
  body?: never;
13679
14111
  path: {