@vibexp/api-client 0.86.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.
package/dist/schema.d.ts CHANGED
@@ -3212,6 +3212,134 @@ 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
+ };
3215
3343
  "/api/v1/{team_id}/comments": {
3216
3344
  parameters: {
3217
3345
  query?: never;
@@ -11596,7 +11724,8 @@ export interface components {
11596
11724
  };
11597
11725
  /**
11598
11726
  * @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
11727
+ * the user accessed it (or, for a project, how often it was accessed).
11728
+ * Deliberately carries no title, slug or content — only
11600
11729
  * the first 8 characters of the resource id. The identity fields share their
11601
11730
  * names with AdminUserTimelineEvent.
11602
11731
  */
@@ -11618,14 +11747,20 @@ export interface components {
11618
11747
  */
11619
11748
  project_id: string | null;
11620
11749
  project_name: string | null;
11621
- /** @description True when the resource no longer exists (access events outlive their resource until pruned). */
11750
+ /**
11751
+ * @description True when the resource no longer exists (access events outlive their
11752
+ * resource until pruned). Always `false` for a project's top resources
11753
+ * (GET /api/v1/admin/projects/{id}/top-accessed-resources), where a
11754
+ * deleted resource has no current project and drops out.
11755
+ */
11622
11756
  resource_deleted: boolean;
11623
11757
  /** Format: int64 */
11624
11758
  access_count: number;
11625
11759
  };
11626
11760
  /**
11627
11761
  * @description The resources a user accessed most in a range
11628
- * (GET /api/v1/admin/users/{id}/top-accessed-resources).
11762
+ * (GET /api/v1/admin/users/{id}/top-accessed-resources), or a project's
11763
+ * most-accessed resources (GET /api/v1/admin/projects/{id}/top-accessed-resources).
11629
11764
  */
11630
11765
  AdminTopAccessedResourcesResponse: {
11631
11766
  /**
@@ -11990,6 +12125,95 @@ export interface components {
11990
12125
  app_config: components["schemas"]["AdminGitHubAppConfig"] | null;
11991
12126
  installation: components["schemas"]["AdminGitHubInstallation"];
11992
12127
  };
12128
+ /** @description How many resources of each project-scoped type were created in the project within one time bucket. */
12129
+ AdminProjectCreationPoint: {
12130
+ /**
12131
+ * Format: date-time
12132
+ * @description Start of the bucket, in UTC.
12133
+ */
12134
+ bucket: string;
12135
+ /** Format: int64 */
12136
+ prompts: number;
12137
+ /** Format: int64 */
12138
+ memories: number;
12139
+ /** Format: int64 */
12140
+ artifacts: number;
12141
+ /** Format: int64 */
12142
+ blueprints: number;
12143
+ /** Format: int64 */
12144
+ feed_items: number;
12145
+ };
12146
+ /**
12147
+ * @description Resources created in the project per bucket, stacked by type
12148
+ * (GET /api/v1/admin/projects/{id}/resource-creation-metrics). Every bucket in
12149
+ * the range is present with an explicit 0 for every type.
12150
+ */
12151
+ AdminProjectResourceCreationMetrics: {
12152
+ /**
12153
+ * Format: date-time
12154
+ * @description Inclusive start of the range actually used, snapped DOWN to the start of
12155
+ * its bucket (same rule as AdminTimeseriesResponse.from).
12156
+ */
12157
+ from: string;
12158
+ /**
12159
+ * Format: date-time
12160
+ * @description Exclusive end of the range actually used (after defaulting); not snapped.
12161
+ */
12162
+ to: string;
12163
+ /**
12164
+ * @description Bucket size actually used.
12165
+ * @enum {string}
12166
+ */
12167
+ granularity: "day" | "week" | "month";
12168
+ /** @description One point per bucket, ascending by bucket. */
12169
+ series: components["schemas"]["AdminProjectCreationPoint"][];
12170
+ };
12171
+ /**
12172
+ * @description Accesses to the project's resources and to the project itself per bucket and
12173
+ * source (GET /api/v1/admin/projects/{id}/resource-access-metrics). An event
12174
+ * is attributed to the project its resource belongs to now, so accesses to a
12175
+ * deleted resource drop out and a migrated resource brings its history with
12176
+ * it. Every bucket in the range is present with an explicit 0 for each source
12177
+ * that appears.
12178
+ */
12179
+ AdminProjectAccessMetrics: {
12180
+ /**
12181
+ * Format: date-time
12182
+ * @description Inclusive start of the range actually used, snapped DOWN to the start of
12183
+ * its bucket (same rule as AdminTimeseriesResponse.from).
12184
+ */
12185
+ from: string;
12186
+ /**
12187
+ * Format: date-time
12188
+ * @description Exclusive end of the range actually used (after defaulting); not snapped.
12189
+ */
12190
+ to: string;
12191
+ /**
12192
+ * @description Bucket size actually used.
12193
+ * @enum {string}
12194
+ */
12195
+ granularity: "day" | "week" | "month";
12196
+ /** @description One point per (bucket, source), ascending by bucket then source. */
12197
+ access_by_source: components["schemas"]["AdminSourcePoint"][];
12198
+ /**
12199
+ * Format: date-time
12200
+ * @description Oldest access event still retained (now minus
12201
+ * `retention.access_event_days`); buckets before it read as zeros.
12202
+ */
12203
+ earliest_retained_at: string;
12204
+ };
12205
+ /**
12206
+ * @description The configuration that applies to a project
12207
+ * (GET /api/v1/admin/projects/{id}/config): the freshness rules scoped to it
12208
+ * and the team-wide rules that also apply. Both lists are oldest first and
12209
+ * include disabled rules.
12210
+ */
12211
+ AdminProjectConfig: {
12212
+ /** @description Rules scoped to this project. `[]` when there are none. */
12213
+ project_rules: components["schemas"]["AdminFreshnessRule"][];
12214
+ /** @description Rules with no project scope, which apply to every project of the team. `[]` when there are none. */
12215
+ team_wide_rules: components["schemas"]["AdminFreshnessRule"][];
12216
+ };
11993
12217
  ProjectResponse: components["schemas"]["Project"] & {
11994
12218
  /**
11995
12219
  * @description Whether the project's git URL matches a repository accessible via the team's GitHub App installation
@@ -22847,6 +23071,236 @@ export interface operations {
22847
23071
  };
22848
23072
  };
22849
23073
  };
23074
+ getAdminProjectResourceCreationMetrics: {
23075
+ parameters: {
23076
+ query?: {
23077
+ /** @description Inclusive start of the range. Defaults to 30 days before `to`. */
23078
+ from?: string;
23079
+ /** @description Exclusive end of the range. Defaults to now. */
23080
+ to?: string;
23081
+ /** @description Bucket size. */
23082
+ granularity?: "day" | "week" | "month";
23083
+ };
23084
+ header?: never;
23085
+ path: {
23086
+ /** @description Project id (UUID) */
23087
+ id: string;
23088
+ };
23089
+ cookie?: never;
23090
+ };
23091
+ requestBody?: never;
23092
+ responses: {
23093
+ /** @description Bucketed creation counts per type */
23094
+ 200: {
23095
+ headers: {
23096
+ [name: string]: unknown;
23097
+ };
23098
+ content: {
23099
+ "application/json": components["schemas"]["AdminProjectResourceCreationMetrics"];
23100
+ };
23101
+ };
23102
+ /**
23103
+ * @description Bad request — malformed project id, `to` is not after `from`, the range
23104
+ * exceeds the maximum span, or `granularity` is outside its enum
23105
+ */
23106
+ 400: {
23107
+ headers: {
23108
+ [name: string]: unknown;
23109
+ };
23110
+ content: {
23111
+ "application/problem+json": components["schemas"]["ErrorResponse"];
23112
+ };
23113
+ };
23114
+ /** @description Not found — unknown project id, or the caller is not an instance admin */
23115
+ 404: {
23116
+ headers: {
23117
+ [name: string]: unknown;
23118
+ };
23119
+ content: {
23120
+ "application/problem+json": components["schemas"]["ErrorResponse"];
23121
+ };
23122
+ };
23123
+ /** @description Internal server error */
23124
+ 500: {
23125
+ headers: {
23126
+ [name: string]: unknown;
23127
+ };
23128
+ content: {
23129
+ "application/problem+json": components["schemas"]["ErrorResponse"];
23130
+ };
23131
+ };
23132
+ };
23133
+ };
23134
+ getAdminProjectResourceAccessMetrics: {
23135
+ parameters: {
23136
+ query?: {
23137
+ /** @description Inclusive start of the range. Defaults to 30 days before `to`. */
23138
+ from?: string;
23139
+ /** @description Exclusive end of the range. Defaults to now. */
23140
+ to?: string;
23141
+ /** @description Bucket size. */
23142
+ granularity?: "day" | "week" | "month";
23143
+ };
23144
+ header?: never;
23145
+ path: {
23146
+ /** @description Project id (UUID) */
23147
+ id: string;
23148
+ };
23149
+ cookie?: never;
23150
+ };
23151
+ requestBody?: never;
23152
+ responses: {
23153
+ /** @description Bucketed access counts per source */
23154
+ 200: {
23155
+ headers: {
23156
+ [name: string]: unknown;
23157
+ };
23158
+ content: {
23159
+ "application/json": components["schemas"]["AdminProjectAccessMetrics"];
23160
+ };
23161
+ };
23162
+ /**
23163
+ * @description Bad request — malformed project id, `to` is not after `from`, the range
23164
+ * exceeds the maximum span, or `granularity` is outside its enum
23165
+ */
23166
+ 400: {
23167
+ headers: {
23168
+ [name: string]: unknown;
23169
+ };
23170
+ content: {
23171
+ "application/problem+json": components["schemas"]["ErrorResponse"];
23172
+ };
23173
+ };
23174
+ /** @description Not found — unknown project id, or the caller is not an instance admin */
23175
+ 404: {
23176
+ headers: {
23177
+ [name: string]: unknown;
23178
+ };
23179
+ content: {
23180
+ "application/problem+json": components["schemas"]["ErrorResponse"];
23181
+ };
23182
+ };
23183
+ /** @description Internal server error */
23184
+ 500: {
23185
+ headers: {
23186
+ [name: string]: unknown;
23187
+ };
23188
+ content: {
23189
+ "application/problem+json": components["schemas"]["ErrorResponse"];
23190
+ };
23191
+ };
23192
+ };
23193
+ };
23194
+ getAdminProjectTopAccessedResources: {
23195
+ parameters: {
23196
+ query?: {
23197
+ /** @description Inclusive start of the range. Defaults to 30 days before `to`. */
23198
+ from?: string;
23199
+ /** @description Exclusive end of the range. Defaults to now. */
23200
+ to?: string;
23201
+ /** @description Maximum number of rows. */
23202
+ limit?: number;
23203
+ };
23204
+ header?: never;
23205
+ path: {
23206
+ /** @description Project id (UUID) */
23207
+ id: string;
23208
+ };
23209
+ cookie?: never;
23210
+ };
23211
+ requestBody?: never;
23212
+ responses: {
23213
+ /** @description The most-accessed resources, most accessed first */
23214
+ 200: {
23215
+ headers: {
23216
+ [name: string]: unknown;
23217
+ };
23218
+ content: {
23219
+ "application/json": components["schemas"]["AdminTopAccessedResourcesResponse"];
23220
+ };
23221
+ };
23222
+ /**
23223
+ * @description Bad request — malformed project id, `to` is not after `from`, the range
23224
+ * exceeds the maximum span, or `limit` is out of range
23225
+ */
23226
+ 400: {
23227
+ headers: {
23228
+ [name: string]: unknown;
23229
+ };
23230
+ content: {
23231
+ "application/problem+json": components["schemas"]["ErrorResponse"];
23232
+ };
23233
+ };
23234
+ /** @description Not found — unknown project id, or the caller is not an instance admin */
23235
+ 404: {
23236
+ headers: {
23237
+ [name: string]: unknown;
23238
+ };
23239
+ content: {
23240
+ "application/problem+json": components["schemas"]["ErrorResponse"];
23241
+ };
23242
+ };
23243
+ /** @description Internal server error */
23244
+ 500: {
23245
+ headers: {
23246
+ [name: string]: unknown;
23247
+ };
23248
+ content: {
23249
+ "application/problem+json": components["schemas"]["ErrorResponse"];
23250
+ };
23251
+ };
23252
+ };
23253
+ };
23254
+ getAdminProjectConfig: {
23255
+ parameters: {
23256
+ query?: never;
23257
+ header?: never;
23258
+ path: {
23259
+ /** @description Project id (UUID) */
23260
+ id: string;
23261
+ };
23262
+ cookie?: never;
23263
+ };
23264
+ requestBody?: never;
23265
+ responses: {
23266
+ /** @description The project's and the team-wide freshness rules */
23267
+ 200: {
23268
+ headers: {
23269
+ [name: string]: unknown;
23270
+ };
23271
+ content: {
23272
+ "application/json": components["schemas"]["AdminProjectConfig"];
23273
+ };
23274
+ };
23275
+ /** @description Bad request — malformed project id */
23276
+ 400: {
23277
+ headers: {
23278
+ [name: string]: unknown;
23279
+ };
23280
+ content: {
23281
+ "application/problem+json": components["schemas"]["ErrorResponse"];
23282
+ };
23283
+ };
23284
+ /** @description Not found — unknown project id, or the caller is not an instance admin */
23285
+ 404: {
23286
+ headers: {
23287
+ [name: string]: unknown;
23288
+ };
23289
+ content: {
23290
+ "application/problem+json": components["schemas"]["ErrorResponse"];
23291
+ };
23292
+ };
23293
+ /** @description Internal server error */
23294
+ 500: {
23295
+ headers: {
23296
+ [name: string]: unknown;
23297
+ };
23298
+ content: {
23299
+ "application/problem+json": components["schemas"]["ErrorResponse"];
23300
+ };
23301
+ };
23302
+ };
23303
+ };
22850
23304
  listComments: {
22851
23305
  parameters: {
22852
23306
  query: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vibexp/api-client",
3
- "version": "0.86.0",
3
+ "version": "0.87.0",
4
4
  "description": "Typed VibeXP API client generated from the OpenAPI spec (openapi-fetch main entrypoint, axios SDK at ./axios)",
5
5
  "license": "MIT",
6
6
  "repository": {