@vibexp/api-client 0.85.0 → 0.86.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/axios/sdk.gen.d.ts +11 -2
- package/dist/axios/sdk.gen.js +11 -2
- package/dist/axios/types.gen.d.ts +93 -6
- package/dist/schema.d.ts +84 -9
- package/package.json +1 -1
package/dist/axios/sdk.gen.d.ts
CHANGED
|
@@ -1352,6 +1352,14 @@ export declare const reactivateAdminUser: <ThrowOnError extends boolean = false>
|
|
|
1352
1352
|
* `owner` is the project's creator (`projects.user_id`), which is not
|
|
1353
1353
|
* necessarily the owning team's owner.
|
|
1354
1354
|
*
|
|
1355
|
+
* Resource counts cover exactly the five PROJECT-SCOPED types, the tables
|
|
1356
|
+
* that carry a direct `project_id`: prompts, memories, artifacts, blueprints
|
|
1357
|
+
* and feed items (a feed item posted without a project counts for none).
|
|
1358
|
+
* Agents and feeds are team-scoped and have no project association;
|
|
1359
|
+
* comments and attachments reach a project only indirectly, through the
|
|
1360
|
+
* resource they belong to. All four are therefore excluded from every count,
|
|
1361
|
+
* count filter, sort and `last_resource_created_at`.
|
|
1362
|
+
*
|
|
1355
1363
|
* Instance-admin only; non-admin and unauthenticated requests receive 404.
|
|
1356
1364
|
*
|
|
1357
1365
|
*/
|
|
@@ -1361,8 +1369,9 @@ export declare const listAdminProjects: <ThrowOnError extends boolean = false>(o
|
|
|
1361
1369
|
*
|
|
1362
1370
|
* Returns one project with its owning team, its creator, and how many of each
|
|
1363
1371
|
* PROJECT-SCOPED resource type it contains (prompts, artifacts, memories,
|
|
1364
|
-
* blueprints). Agents and feeds are not included
|
|
1365
|
-
* and have no project association
|
|
1372
|
+
* blueprints, feed items) plus their total. Agents and feeds are not included
|
|
1373
|
+
* because they are team-scoped and have no project association; comments and
|
|
1374
|
+
* attachments are not included because they reach a project only indirectly.
|
|
1366
1375
|
*
|
|
1367
1376
|
* Instance-admin only; non-admin and unauthenticated requests receive 404, as
|
|
1368
1377
|
* does an unknown project id.
|
package/dist/axios/sdk.gen.js
CHANGED
|
@@ -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
|
|
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.
|
|
@@ -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
|
|
5186
|
-
*
|
|
5187
|
-
*
|
|
5188
|
-
*
|
|
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}).
|
|
@@ -13269,10 +13287,79 @@ export type ListAdminProjectsData = {
|
|
|
13269
13287
|
* Only projects created at or before this instant (inclusive).
|
|
13270
13288
|
*/
|
|
13271
13289
|
created_to?: string;
|
|
13290
|
+
/**
|
|
13291
|
+
* Only projects with at least this many prompts in the project (inclusive).
|
|
13292
|
+
*/
|
|
13293
|
+
prompt_count_min?: number;
|
|
13294
|
+
/**
|
|
13295
|
+
* Only projects with at most this many prompts in the project (inclusive).
|
|
13296
|
+
*/
|
|
13297
|
+
prompt_count_max?: number;
|
|
13298
|
+
/**
|
|
13299
|
+
* Only projects with at least this many memories in the project (inclusive).
|
|
13300
|
+
*/
|
|
13301
|
+
memory_count_min?: number;
|
|
13302
|
+
/**
|
|
13303
|
+
* Only projects with at most this many memories in the project (inclusive).
|
|
13304
|
+
*/
|
|
13305
|
+
memory_count_max?: number;
|
|
13306
|
+
/**
|
|
13307
|
+
* Only projects with at least this many artifacts in the project (inclusive).
|
|
13308
|
+
*/
|
|
13309
|
+
artifact_count_min?: number;
|
|
13310
|
+
/**
|
|
13311
|
+
* Only projects with at most this many artifacts in the project (inclusive).
|
|
13312
|
+
*/
|
|
13313
|
+
artifact_count_max?: number;
|
|
13314
|
+
/**
|
|
13315
|
+
* Only projects with at least this many blueprints in the project (inclusive).
|
|
13316
|
+
*/
|
|
13317
|
+
blueprint_count_min?: number;
|
|
13318
|
+
/**
|
|
13319
|
+
* Only projects with at most this many blueprints in the project (inclusive).
|
|
13320
|
+
*/
|
|
13321
|
+
blueprint_count_max?: number;
|
|
13322
|
+
/**
|
|
13323
|
+
* Only projects with at least this many feed items in the project (inclusive).
|
|
13324
|
+
*/
|
|
13325
|
+
feed_item_count_min?: number;
|
|
13326
|
+
/**
|
|
13327
|
+
* Only projects with at most this many feed items in the project (inclusive).
|
|
13328
|
+
*/
|
|
13329
|
+
feed_item_count_max?: number;
|
|
13330
|
+
/**
|
|
13331
|
+
* 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.
|
|
13332
|
+
*/
|
|
13333
|
+
total_resource_count_min?: number;
|
|
13334
|
+
/**
|
|
13335
|
+
* 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.
|
|
13336
|
+
*/
|
|
13337
|
+
total_resource_count_max?: number;
|
|
13338
|
+
/**
|
|
13339
|
+
* 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`.
|
|
13340
|
+
*/
|
|
13341
|
+
owner_email?: string;
|
|
13342
|
+
/**
|
|
13343
|
+
* Only projects whose most recent project-scoped resource (any of the five
|
|
13344
|
+
* types) was created at or after this instant (inclusive). Projects with
|
|
13345
|
+
* no resources never match.
|
|
13346
|
+
*
|
|
13347
|
+
*/
|
|
13348
|
+
last_resource_created_from?: string;
|
|
13349
|
+
/**
|
|
13350
|
+
* Only projects whose most recent project-scoped resource (any of the five
|
|
13351
|
+
* types) was created at or before this instant (inclusive). Projects with
|
|
13352
|
+
* no resources never match.
|
|
13353
|
+
*
|
|
13354
|
+
*/
|
|
13355
|
+
last_resource_created_to?: string;
|
|
13272
13356
|
/**
|
|
13273
13357
|
* Column to sort by. Ties are always broken by project id so paging is stable.
|
|
13358
|
+
* Sorting by last_resource_created_at places projects with no resources
|
|
13359
|
+
* last in both directions.
|
|
13360
|
+
*
|
|
13274
13361
|
*/
|
|
13275
|
-
sort_by?: 'created_at' | 'name';
|
|
13362
|
+
sort_by?: 'created_at' | 'name' | 'prompt_count' | 'memory_count' | 'artifact_count' | 'blueprint_count' | 'feed_item_count' | 'total_resource_count' | 'last_resource_created_at';
|
|
13276
13363
|
/**
|
|
13277
13364
|
* Sort direction.
|
|
13278
13365
|
*/
|
package/dist/schema.d.ts
CHANGED
|
@@ -2988,6 +2988,14 @@ export interface paths {
|
|
|
2988
2988
|
* `owner` is the project's creator (`projects.user_id`), which is not
|
|
2989
2989
|
* necessarily the owning team's owner.
|
|
2990
2990
|
*
|
|
2991
|
+
* Resource counts cover exactly the five PROJECT-SCOPED types, the tables
|
|
2992
|
+
* that carry a direct `project_id`: prompts, memories, artifacts, blueprints
|
|
2993
|
+
* and feed items (a feed item posted without a project counts for none).
|
|
2994
|
+
* Agents and feeds are team-scoped and have no project association;
|
|
2995
|
+
* comments and attachments reach a project only indirectly, through the
|
|
2996
|
+
* resource they belong to. All four are therefore excluded from every count,
|
|
2997
|
+
* count filter, sort and `last_resource_created_at`.
|
|
2998
|
+
*
|
|
2991
2999
|
* Instance-admin only; non-admin and unauthenticated requests receive 404.
|
|
2992
3000
|
*/
|
|
2993
3001
|
get: operations["listAdminProjects"];
|
|
@@ -3010,8 +3018,9 @@ export interface paths {
|
|
|
3010
3018
|
* Get an instance project
|
|
3011
3019
|
* @description Returns one project with its owning team, its creator, and how many of each
|
|
3012
3020
|
* PROJECT-SCOPED resource type it contains (prompts, artifacts, memories,
|
|
3013
|
-
* blueprints). Agents and feeds are not included
|
|
3014
|
-
* and have no project association
|
|
3021
|
+
* blueprints, feed items) plus their total. Agents and feeds are not included
|
|
3022
|
+
* because they are team-scoped and have no project association; comments and
|
|
3023
|
+
* attachments are not included because they reach a project only indirectly.
|
|
3015
3024
|
*
|
|
3016
3025
|
* Instance-admin only; non-admin and unauthenticated requests receive 404, as
|
|
3017
3026
|
* does an unknown project id.
|
|
@@ -11310,6 +11319,14 @@ export interface components {
|
|
|
11310
11319
|
created_at: string;
|
|
11311
11320
|
/** Format: date-time */
|
|
11312
11321
|
updated_at: string;
|
|
11322
|
+
resource_counts: components["schemas"]["AdminProjectResourceCounts"];
|
|
11323
|
+
/**
|
|
11324
|
+
* Format: date-time
|
|
11325
|
+
* @description When the project's most recent project-scoped resource (any of the five
|
|
11326
|
+
* types counted in resource_counts) was created; null for a project with
|
|
11327
|
+
* none.
|
|
11328
|
+
*/
|
|
11329
|
+
last_resource_created_at: string | null;
|
|
11313
11330
|
};
|
|
11314
11331
|
/** @description A page of the instance-wide project listing. */
|
|
11315
11332
|
AdminProjectListResponse: {
|
|
@@ -11328,12 +11345,17 @@ export interface components {
|
|
|
11328
11345
|
total_pages: number;
|
|
11329
11346
|
};
|
|
11330
11347
|
/**
|
|
11331
|
-
* @description How many of each PROJECT-SCOPED resource type the project contains
|
|
11348
|
+
* @description How many of each PROJECT-SCOPED resource type the project contains, plus
|
|
11349
|
+
* their total. Shared by the project listing and the project detail, which
|
|
11350
|
+
* always agree.
|
|
11332
11351
|
*
|
|
11333
|
-
* Only
|
|
11334
|
-
*
|
|
11335
|
-
*
|
|
11336
|
-
*
|
|
11352
|
+
* Only the five tables with a direct project_id belong to a project: prompts,
|
|
11353
|
+
* artifacts, memories, blueprints and feed items (a feed item posted without
|
|
11354
|
+
* a project counts for none). Agents and feeds are deliberately absent: both
|
|
11355
|
+
* are team-scoped and have no project_id, so reporting zero for them would
|
|
11356
|
+
* read as "this project has no agents" rather than "agents do not belong to
|
|
11357
|
+
* projects". Comments and attachments are absent too: they reach a project
|
|
11358
|
+
* only indirectly, through the resource they are attached to.
|
|
11337
11359
|
*/
|
|
11338
11360
|
AdminProjectResourceCounts: {
|
|
11339
11361
|
/**
|
|
@@ -11356,6 +11378,17 @@ export interface components {
|
|
|
11356
11378
|
* @example 3
|
|
11357
11379
|
*/
|
|
11358
11380
|
blueprints: number;
|
|
11381
|
+
/**
|
|
11382
|
+
* Format: int64
|
|
11383
|
+
* @example 9
|
|
11384
|
+
*/
|
|
11385
|
+
feed_items: number;
|
|
11386
|
+
/**
|
|
11387
|
+
* Format: int64
|
|
11388
|
+
* @description Sum of the five project-scoped counts.
|
|
11389
|
+
* @example 55
|
|
11390
|
+
*/
|
|
11391
|
+
total: number;
|
|
11359
11392
|
};
|
|
11360
11393
|
/** @description A single project with its team, owner and resource counts (GET /api/v1/admin/projects/{id}). */
|
|
11361
11394
|
AdminProjectDetail: {
|
|
@@ -22338,8 +22371,50 @@ export interface operations {
|
|
|
22338
22371
|
created_from?: string;
|
|
22339
22372
|
/** @description Only projects created at or before this instant (inclusive). */
|
|
22340
22373
|
created_to?: string;
|
|
22341
|
-
/** @description
|
|
22342
|
-
|
|
22374
|
+
/** @description Only projects with at least this many prompts in the project (inclusive). */
|
|
22375
|
+
prompt_count_min?: number;
|
|
22376
|
+
/** @description Only projects with at most this many prompts in the project (inclusive). */
|
|
22377
|
+
prompt_count_max?: number;
|
|
22378
|
+
/** @description Only projects with at least this many memories in the project (inclusive). */
|
|
22379
|
+
memory_count_min?: number;
|
|
22380
|
+
/** @description Only projects with at most this many memories in the project (inclusive). */
|
|
22381
|
+
memory_count_max?: number;
|
|
22382
|
+
/** @description Only projects with at least this many artifacts in the project (inclusive). */
|
|
22383
|
+
artifact_count_min?: number;
|
|
22384
|
+
/** @description Only projects with at most this many artifacts in the project (inclusive). */
|
|
22385
|
+
artifact_count_max?: number;
|
|
22386
|
+
/** @description Only projects with at least this many blueprints in the project (inclusive). */
|
|
22387
|
+
blueprint_count_min?: number;
|
|
22388
|
+
/** @description Only projects with at most this many blueprints in the project (inclusive). */
|
|
22389
|
+
blueprint_count_max?: number;
|
|
22390
|
+
/** @description Only projects with at least this many feed items in the project (inclusive). */
|
|
22391
|
+
feed_item_count_min?: number;
|
|
22392
|
+
/** @description Only projects with at most this many feed items in the project (inclusive). */
|
|
22393
|
+
feed_item_count_max?: number;
|
|
22394
|
+
/** @description 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. */
|
|
22395
|
+
total_resource_count_min?: number;
|
|
22396
|
+
/** @description 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. */
|
|
22397
|
+
total_resource_count_max?: number;
|
|
22398
|
+
/** @description 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`. */
|
|
22399
|
+
owner_email?: string;
|
|
22400
|
+
/**
|
|
22401
|
+
* @description Only projects whose most recent project-scoped resource (any of the five
|
|
22402
|
+
* types) was created at or after this instant (inclusive). Projects with
|
|
22403
|
+
* no resources never match.
|
|
22404
|
+
*/
|
|
22405
|
+
last_resource_created_from?: string;
|
|
22406
|
+
/**
|
|
22407
|
+
* @description Only projects whose most recent project-scoped resource (any of the five
|
|
22408
|
+
* types) was created at or before this instant (inclusive). Projects with
|
|
22409
|
+
* no resources never match.
|
|
22410
|
+
*/
|
|
22411
|
+
last_resource_created_to?: string;
|
|
22412
|
+
/**
|
|
22413
|
+
* @description Column to sort by. Ties are always broken by project id so paging is stable.
|
|
22414
|
+
* Sorting by last_resource_created_at places projects with no resources
|
|
22415
|
+
* last in both directions.
|
|
22416
|
+
*/
|
|
22417
|
+
sort_by?: "created_at" | "name" | "prompt_count" | "memory_count" | "artifact_count" | "blueprint_count" | "feed_item_count" | "total_resource_count" | "last_resource_created_at";
|
|
22343
22418
|
/** @description Sort direction. */
|
|
22344
22419
|
sort_order?: "asc" | "desc";
|
|
22345
22420
|
};
|
package/package.json
CHANGED