@vibexp/api-client 0.85.0 → 0.87.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.
@@ -3243,6 +3243,14 @@ export const reactivateAdminUser = (options) => (options.client ?? client).post(
3243
3243
  * `owner` is the project's creator (`projects.user_id`), which is not
3244
3244
  * necessarily the owning team's owner.
3245
3245
  *
3246
+ * Resource counts cover exactly the five PROJECT-SCOPED types, the tables
3247
+ * that carry a direct `project_id`: prompts, memories, artifacts, blueprints
3248
+ * and feed items (a feed item posted without a project counts for none).
3249
+ * Agents and feeds are team-scoped and have no project association;
3250
+ * comments and attachments reach a project only indirectly, through the
3251
+ * resource they belong to. All four are therefore excluded from every count,
3252
+ * count filter, sort and `last_resource_created_at`.
3253
+ *
3246
3254
  * Instance-admin only; non-admin and unauthenticated requests receive 404.
3247
3255
  *
3248
3256
  */
@@ -3265,8 +3273,9 @@ export const listAdminProjects = (options) => (options?.client ?? client).get({
3265
3273
  *
3266
3274
  * Returns one project with its owning team, its creator, and how many of each
3267
3275
  * PROJECT-SCOPED resource type it contains (prompts, artifacts, memories,
3268
- * blueprints). Agents and feeds are not included because they are team-scoped
3269
- * and have no project association.
3276
+ * blueprints, feed items) plus their total. Agents and feeds are not included
3277
+ * because they are team-scoped and have no project association; comments and
3278
+ * attachments are not included because they reach a project only indirectly.
3270
3279
  *
3271
3280
  * Instance-admin only; non-admin and unauthenticated requests receive 404, as
3272
3281
  * does an unknown project id.
@@ -3464,6 +3473,134 @@ export const getAdminUserNotificationPreferences = (options) => (options.client
3464
3473
  url: '/api/v1/admin/users/{id}/notification-preferences',
3465
3474
  ...options
3466
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
+ });
3467
3604
  /**
3468
3605
  * List a resource's comments
3469
3606
  *
@@ -5162,6 +5162,14 @@ export type AdminProjectListItem = {
5162
5162
  owner: AdminTeamOwner;
5163
5163
  created_at: string;
5164
5164
  updated_at: string;
5165
+ resource_counts: AdminProjectResourceCounts;
5166
+ /**
5167
+ * When the project's most recent project-scoped resource (any of the five
5168
+ * types counted in resource_counts) was created; null for a project with
5169
+ * none.
5170
+ *
5171
+ */
5172
+ last_resource_created_at: string | null;
5165
5173
  };
5166
5174
  /**
5167
5175
  * A page of the instance-wide project listing.
@@ -5180,12 +5188,17 @@ export type AdminProjectListResponse = {
5180
5188
  total_pages: number;
5181
5189
  };
5182
5190
  /**
5183
- * How many of each PROJECT-SCOPED resource type the project contains.
5191
+ * How many of each PROJECT-SCOPED resource type the project contains, plus
5192
+ * their total. Shared by the project listing and the project detail, which
5193
+ * always agree.
5184
5194
  *
5185
- * Only these four types belong to a project. Agents and feeds are deliberately
5186
- * absent: neither table has a project_id column (both are team-scoped), so
5187
- * reporting zero for them would read as "this project has no agents" rather
5188
- * than "agents do not belong to projects".
5195
+ * Only the five tables with a direct project_id belong to a project: prompts,
5196
+ * artifacts, memories, blueprints and feed items (a feed item posted without
5197
+ * a project counts for none). Agents and feeds are deliberately absent: both
5198
+ * are team-scoped and have no project_id, so reporting zero for them would
5199
+ * read as "this project has no agents" rather than "agents do not belong to
5200
+ * projects". Comments and attachments are absent too: they reach a project
5201
+ * only indirectly, through the resource they are attached to.
5189
5202
  *
5190
5203
  */
5191
5204
  export type AdminProjectResourceCounts = {
@@ -5193,6 +5206,11 @@ export type AdminProjectResourceCounts = {
5193
5206
  artifacts: number;
5194
5207
  memories: number;
5195
5208
  blueprints: number;
5209
+ feed_items: number;
5210
+ /**
5211
+ * Sum of the five project-scoped counts.
5212
+ */
5213
+ total: number;
5196
5214
  };
5197
5215
  /**
5198
5216
  * A single project with its team, owner and resource counts (GET /api/v1/admin/projects/{id}).
@@ -5395,7 +5413,8 @@ export type AdminUserAccessMetrics = {
5395
5413
  };
5396
5414
  /**
5397
5415
  * One opaque most-accessed resource: its type, where it lives and how often
5398
- * 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
5399
5418
  * the first 8 characters of the resource id. The identity fields share their
5400
5419
  * names with AdminUserTimelineEvent.
5401
5420
  *
@@ -5416,14 +5435,19 @@ export type AdminTopAccessedResource = {
5416
5435
  project_id: string | null;
5417
5436
  project_name: string | null;
5418
5437
  /**
5419
- * 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
+ *
5420
5443
  */
5421
5444
  resource_deleted: boolean;
5422
5445
  access_count: number;
5423
5446
  };
5424
5447
  /**
5425
5448
  * The resources a user accessed most in a range
5426
- * (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).
5427
5451
  *
5428
5452
  */
5429
5453
  export type AdminTopAccessedResourcesResponse = {
@@ -5850,6 +5874,98 @@ export type AdminTeamGitHubConfig = {
5850
5874
  app_config: AdminGitHubAppConfig | null;
5851
5875
  installation: AdminGitHubInstallation;
5852
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
+ };
5853
5969
  export type ProjectResponse = Project & {
5854
5970
  /**
5855
5971
  * Whether the project's git URL matches a repository accessible via the team's GitHub App installation
@@ -13269,10 +13385,79 @@ export type ListAdminProjectsData = {
13269
13385
  * Only projects created at or before this instant (inclusive).
13270
13386
  */
13271
13387
  created_to?: string;
13388
+ /**
13389
+ * Only projects with at least this many prompts in the project (inclusive).
13390
+ */
13391
+ prompt_count_min?: number;
13392
+ /**
13393
+ * Only projects with at most this many prompts in the project (inclusive).
13394
+ */
13395
+ prompt_count_max?: number;
13396
+ /**
13397
+ * Only projects with at least this many memories in the project (inclusive).
13398
+ */
13399
+ memory_count_min?: number;
13400
+ /**
13401
+ * Only projects with at most this many memories in the project (inclusive).
13402
+ */
13403
+ memory_count_max?: number;
13404
+ /**
13405
+ * Only projects with at least this many artifacts in the project (inclusive).
13406
+ */
13407
+ artifact_count_min?: number;
13408
+ /**
13409
+ * Only projects with at most this many artifacts in the project (inclusive).
13410
+ */
13411
+ artifact_count_max?: number;
13412
+ /**
13413
+ * Only projects with at least this many blueprints in the project (inclusive).
13414
+ */
13415
+ blueprint_count_min?: number;
13416
+ /**
13417
+ * Only projects with at most this many blueprints in the project (inclusive).
13418
+ */
13419
+ blueprint_count_max?: number;
13420
+ /**
13421
+ * Only projects with at least this many feed items in the project (inclusive).
13422
+ */
13423
+ feed_item_count_min?: number;
13424
+ /**
13425
+ * Only projects with at most this many feed items in the project (inclusive).
13426
+ */
13427
+ feed_item_count_max?: number;
13428
+ /**
13429
+ * Only projects with at least this many project-scoped resources in the project (inclusive). The total is the sum of the five project-scoped types.
13430
+ */
13431
+ total_resource_count_min?: number;
13432
+ /**
13433
+ * Only projects with at most this many project-scoped resources in the project (inclusive). The total is the sum of the five project-scoped types.
13434
+ */
13435
+ total_resource_count_max?: number;
13436
+ /**
13437
+ * Case-insensitive exact match on the email of the project's creator (`projects.user_id`, the `owner` field), not the owning team's owner. For substring matching on name/slug use `search`.
13438
+ */
13439
+ owner_email?: string;
13440
+ /**
13441
+ * Only projects whose most recent project-scoped resource (any of the five
13442
+ * types) was created at or after this instant (inclusive). Projects with
13443
+ * no resources never match.
13444
+ *
13445
+ */
13446
+ last_resource_created_from?: string;
13447
+ /**
13448
+ * Only projects whose most recent project-scoped resource (any of the five
13449
+ * types) was created at or before this instant (inclusive). Projects with
13450
+ * no resources never match.
13451
+ *
13452
+ */
13453
+ last_resource_created_to?: string;
13272
13454
  /**
13273
13455
  * Column to sort by. Ties are always broken by project id so paging is stable.
13456
+ * Sorting by last_resource_created_at places projects with no resources
13457
+ * last in both directions.
13458
+ *
13274
13459
  */
13275
- sort_by?: 'created_at' | 'name';
13460
+ sort_by?: 'created_at' | 'name' | 'prompt_count' | 'memory_count' | 'artifact_count' | 'blueprint_count' | 'feed_item_count' | 'total_resource_count' | 'last_resource_created_at';
13276
13461
  /**
13277
13462
  * Sort direction.
13278
13463
  */
@@ -13587,6 +13772,183 @@ export type GetAdminUserNotificationPreferencesResponses = {
13587
13772
  200: AdminUserNotificationPreferences;
13588
13773
  };
13589
13774
  export type GetAdminUserNotificationPreferencesResponse = GetAdminUserNotificationPreferencesResponses[keyof GetAdminUserNotificationPreferencesResponses];
13775
+ export type GetAdminProjectResourceCreationMetricsData = {
13776
+ body?: never;
13777
+ path: {
13778
+ /**
13779
+ * Project id (UUID)
13780
+ */
13781
+ id: string;
13782
+ };
13783
+ query?: {
13784
+ /**
13785
+ * Inclusive start of the range. Defaults to 30 days before `to`.
13786
+ */
13787
+ from?: string;
13788
+ /**
13789
+ * Exclusive end of the range. Defaults to now.
13790
+ */
13791
+ to?: string;
13792
+ /**
13793
+ * Bucket size.
13794
+ */
13795
+ granularity?: 'day' | 'week' | 'month';
13796
+ };
13797
+ url: '/api/v1/admin/projects/{id}/resource-creation-metrics';
13798
+ };
13799
+ export type GetAdminProjectResourceCreationMetricsErrors = {
13800
+ /**
13801
+ * Bad request — malformed project id, `to` is not after `from`, the range
13802
+ * exceeds the maximum span, or `granularity` is outside its enum
13803
+ *
13804
+ */
13805
+ 400: ErrorResponse;
13806
+ /**
13807
+ * Not found — unknown project id, or the caller is not an instance admin
13808
+ */
13809
+ 404: ErrorResponse;
13810
+ /**
13811
+ * Internal server error
13812
+ */
13813
+ 500: ErrorResponse;
13814
+ };
13815
+ export type GetAdminProjectResourceCreationMetricsError = GetAdminProjectResourceCreationMetricsErrors[keyof GetAdminProjectResourceCreationMetricsErrors];
13816
+ export type GetAdminProjectResourceCreationMetricsResponses = {
13817
+ /**
13818
+ * Bucketed creation counts per type
13819
+ */
13820
+ 200: AdminProjectResourceCreationMetrics;
13821
+ };
13822
+ export type GetAdminProjectResourceCreationMetricsResponse = GetAdminProjectResourceCreationMetricsResponses[keyof GetAdminProjectResourceCreationMetricsResponses];
13823
+ export type GetAdminProjectResourceAccessMetricsData = {
13824
+ body?: never;
13825
+ path: {
13826
+ /**
13827
+ * Project id (UUID)
13828
+ */
13829
+ id: string;
13830
+ };
13831
+ query?: {
13832
+ /**
13833
+ * Inclusive start of the range. Defaults to 30 days before `to`.
13834
+ */
13835
+ from?: string;
13836
+ /**
13837
+ * Exclusive end of the range. Defaults to now.
13838
+ */
13839
+ to?: string;
13840
+ /**
13841
+ * Bucket size.
13842
+ */
13843
+ granularity?: 'day' | 'week' | 'month';
13844
+ };
13845
+ url: '/api/v1/admin/projects/{id}/resource-access-metrics';
13846
+ };
13847
+ export type GetAdminProjectResourceAccessMetricsErrors = {
13848
+ /**
13849
+ * Bad request — malformed project id, `to` is not after `from`, the range
13850
+ * exceeds the maximum span, or `granularity` is outside its enum
13851
+ *
13852
+ */
13853
+ 400: ErrorResponse;
13854
+ /**
13855
+ * Not found — unknown project id, or the caller is not an instance admin
13856
+ */
13857
+ 404: ErrorResponse;
13858
+ /**
13859
+ * Internal server error
13860
+ */
13861
+ 500: ErrorResponse;
13862
+ };
13863
+ export type GetAdminProjectResourceAccessMetricsError = GetAdminProjectResourceAccessMetricsErrors[keyof GetAdminProjectResourceAccessMetricsErrors];
13864
+ export type GetAdminProjectResourceAccessMetricsResponses = {
13865
+ /**
13866
+ * Bucketed access counts per source
13867
+ */
13868
+ 200: AdminProjectAccessMetrics;
13869
+ };
13870
+ export type GetAdminProjectResourceAccessMetricsResponse = GetAdminProjectResourceAccessMetricsResponses[keyof GetAdminProjectResourceAccessMetricsResponses];
13871
+ export type GetAdminProjectTopAccessedResourcesData = {
13872
+ body?: never;
13873
+ path: {
13874
+ /**
13875
+ * Project id (UUID)
13876
+ */
13877
+ id: string;
13878
+ };
13879
+ query?: {
13880
+ /**
13881
+ * Inclusive start of the range. Defaults to 30 days before `to`.
13882
+ */
13883
+ from?: string;
13884
+ /**
13885
+ * Exclusive end of the range. Defaults to now.
13886
+ */
13887
+ to?: string;
13888
+ /**
13889
+ * Maximum number of rows.
13890
+ */
13891
+ limit?: number;
13892
+ };
13893
+ url: '/api/v1/admin/projects/{id}/top-accessed-resources';
13894
+ };
13895
+ export type GetAdminProjectTopAccessedResourcesErrors = {
13896
+ /**
13897
+ * Bad request — malformed project id, `to` is not after `from`, the range
13898
+ * exceeds the maximum span, or `limit` is out of range
13899
+ *
13900
+ */
13901
+ 400: ErrorResponse;
13902
+ /**
13903
+ * Not found — unknown project id, or the caller is not an instance admin
13904
+ */
13905
+ 404: ErrorResponse;
13906
+ /**
13907
+ * Internal server error
13908
+ */
13909
+ 500: ErrorResponse;
13910
+ };
13911
+ export type GetAdminProjectTopAccessedResourcesError = GetAdminProjectTopAccessedResourcesErrors[keyof GetAdminProjectTopAccessedResourcesErrors];
13912
+ export type GetAdminProjectTopAccessedResourcesResponses = {
13913
+ /**
13914
+ * The most-accessed resources, most accessed first
13915
+ */
13916
+ 200: AdminTopAccessedResourcesResponse;
13917
+ };
13918
+ export type GetAdminProjectTopAccessedResourcesResponse = GetAdminProjectTopAccessedResourcesResponses[keyof GetAdminProjectTopAccessedResourcesResponses];
13919
+ export type GetAdminProjectConfigData = {
13920
+ body?: never;
13921
+ path: {
13922
+ /**
13923
+ * Project id (UUID)
13924
+ */
13925
+ id: string;
13926
+ };
13927
+ query?: never;
13928
+ url: '/api/v1/admin/projects/{id}/config';
13929
+ };
13930
+ export type GetAdminProjectConfigErrors = {
13931
+ /**
13932
+ * Bad request — malformed project id
13933
+ */
13934
+ 400: ErrorResponse;
13935
+ /**
13936
+ * Not found — unknown project id, or the caller is not an instance admin
13937
+ */
13938
+ 404: ErrorResponse;
13939
+ /**
13940
+ * Internal server error
13941
+ */
13942
+ 500: ErrorResponse;
13943
+ };
13944
+ export type GetAdminProjectConfigError = GetAdminProjectConfigErrors[keyof GetAdminProjectConfigErrors];
13945
+ export type GetAdminProjectConfigResponses = {
13946
+ /**
13947
+ * The project's and the team-wide freshness rules
13948
+ */
13949
+ 200: AdminProjectConfig;
13950
+ };
13951
+ export type GetAdminProjectConfigResponse = GetAdminProjectConfigResponses[keyof GetAdminProjectConfigResponses];
13590
13952
  export type ListCommentsData = {
13591
13953
  body?: never;
13592
13954
  path: {