@vibexp/api-client 0.80.0 → 0.82.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/index.d.ts +2 -2
- package/dist/axios/index.js +1 -1
- package/dist/axios/sdk.gen.d.ts +101 -1
- package/dist/axios/sdk.gen.js +178 -0
- package/dist/axios/types.gen.d.ts +503 -27
- package/dist/schema.d.ts +775 -37
- package/package.json +1 -1
|
@@ -5171,6 +5171,230 @@ export type AdminProjectDetail = {
|
|
|
5171
5171
|
created_at: string;
|
|
5172
5172
|
updated_at: string;
|
|
5173
5173
|
};
|
|
5174
|
+
/**
|
|
5175
|
+
* How many PROJECT-SCOPED resources the user authored in one project. Only the
|
|
5176
|
+
* four types with a NOT NULL project_id are attributed to a project; every
|
|
5177
|
+
* other type is counted at the team level only.
|
|
5178
|
+
*
|
|
5179
|
+
*/
|
|
5180
|
+
export type AdminUserProjectResourceCounts = {
|
|
5181
|
+
project_id: string;
|
|
5182
|
+
project_name: string;
|
|
5183
|
+
counts: AdminProjectResourceCounts;
|
|
5184
|
+
};
|
|
5185
|
+
/**
|
|
5186
|
+
* How many resources the user authored in one team, with the per-project breakdown.
|
|
5187
|
+
*/
|
|
5188
|
+
export type AdminUserTeamResourceCounts = {
|
|
5189
|
+
team_id: string;
|
|
5190
|
+
team_name: string;
|
|
5191
|
+
/**
|
|
5192
|
+
* Whether the user is still a member of the team. A former member's
|
|
5193
|
+
* authored resources stay in the team and are still counted here.
|
|
5194
|
+
*
|
|
5195
|
+
*/
|
|
5196
|
+
is_member: boolean;
|
|
5197
|
+
counts: AdminResourceCounts;
|
|
5198
|
+
/**
|
|
5199
|
+
* Per-project counts, ordered by project name.
|
|
5200
|
+
*/
|
|
5201
|
+
projects: Array<AdminUserProjectResourceCounts>;
|
|
5202
|
+
};
|
|
5203
|
+
/**
|
|
5204
|
+
* Per-type counts of the resources one user authored, instance-wide, per team
|
|
5205
|
+
* and per project (GET /api/v1/admin/users/{id}/insights). For every type the
|
|
5206
|
+
* per-team counts sum to `totals`. An attachment whose author was deleted
|
|
5207
|
+
* (user_id set to NULL) counts for nobody.
|
|
5208
|
+
*
|
|
5209
|
+
*/
|
|
5210
|
+
export type AdminUserInsights = {
|
|
5211
|
+
user_id: string;
|
|
5212
|
+
totals: AdminResourceCounts;
|
|
5213
|
+
/**
|
|
5214
|
+
* Teams the user authored at least one resource in, ordered by team name.
|
|
5215
|
+
*/
|
|
5216
|
+
teams: Array<AdminUserTeamResourceCounts>;
|
|
5217
|
+
};
|
|
5218
|
+
/**
|
|
5219
|
+
* How many resources of each type the user created within one time bucket.
|
|
5220
|
+
*/
|
|
5221
|
+
export type AdminUserCreationPoint = {
|
|
5222
|
+
/**
|
|
5223
|
+
* Start of the bucket, in UTC.
|
|
5224
|
+
*/
|
|
5225
|
+
bucket: string;
|
|
5226
|
+
prompts: number;
|
|
5227
|
+
memories: number;
|
|
5228
|
+
artifacts: number;
|
|
5229
|
+
blueprints: number;
|
|
5230
|
+
agents: number;
|
|
5231
|
+
feeds: number;
|
|
5232
|
+
feed_items: number;
|
|
5233
|
+
comments: number;
|
|
5234
|
+
attachments: number;
|
|
5235
|
+
};
|
|
5236
|
+
/**
|
|
5237
|
+
* Resources the user created per bucket, stacked by type
|
|
5238
|
+
* (GET /api/v1/admin/users/{id}/resource-creation-metrics). Every bucket in
|
|
5239
|
+
* the range is present with an explicit 0 for every type.
|
|
5240
|
+
*
|
|
5241
|
+
*/
|
|
5242
|
+
export type AdminUserResourceCreationMetrics = {
|
|
5243
|
+
/**
|
|
5244
|
+
* Inclusive start of the range actually used, snapped DOWN to the start of
|
|
5245
|
+
* its bucket (same rule as AdminTimeseriesResponse.from).
|
|
5246
|
+
*
|
|
5247
|
+
*/
|
|
5248
|
+
from: string;
|
|
5249
|
+
/**
|
|
5250
|
+
* Exclusive end of the range actually used (after defaulting); not snapped.
|
|
5251
|
+
*/
|
|
5252
|
+
to: string;
|
|
5253
|
+
/**
|
|
5254
|
+
* Bucket size actually used.
|
|
5255
|
+
*/
|
|
5256
|
+
granularity: 'day' | 'week' | 'month';
|
|
5257
|
+
/**
|
|
5258
|
+
* One point per bucket, ascending by bucket.
|
|
5259
|
+
*/
|
|
5260
|
+
series: Array<AdminUserCreationPoint>;
|
|
5261
|
+
};
|
|
5262
|
+
/**
|
|
5263
|
+
* One opaque timeline entry: which kind of resource the user created or last
|
|
5264
|
+
* updated, where, and when. Deliberately carries no title, slug or content —
|
|
5265
|
+
* only the first 8 characters of the resource id.
|
|
5266
|
+
*
|
|
5267
|
+
*/
|
|
5268
|
+
export type AdminUserTimelineEvent = {
|
|
5269
|
+
resource_type: 'prompt' | 'memory' | 'artifact' | 'blueprint' | 'agent' | 'feed' | 'feed_item' | 'comment' | 'attachment';
|
|
5270
|
+
action: 'created' | 'updated';
|
|
5271
|
+
team_id: string;
|
|
5272
|
+
team_name: string;
|
|
5273
|
+
/**
|
|
5274
|
+
* Null for team-scoped resources and for feed items posted without a project.
|
|
5275
|
+
*/
|
|
5276
|
+
project_id: string | null;
|
|
5277
|
+
project_name: string | null;
|
|
5278
|
+
/**
|
|
5279
|
+
* First 8 characters of the resource id.
|
|
5280
|
+
*/
|
|
5281
|
+
resource_short_id: string;
|
|
5282
|
+
occurred_at: string;
|
|
5283
|
+
};
|
|
5284
|
+
/**
|
|
5285
|
+
* One page of a user's resource timeline, newest first.
|
|
5286
|
+
*/
|
|
5287
|
+
export type AdminUserTimelinePage = {
|
|
5288
|
+
items: Array<AdminUserTimelineEvent>;
|
|
5289
|
+
/**
|
|
5290
|
+
* Opaque cursor for the next page; null on the last page.
|
|
5291
|
+
*/
|
|
5292
|
+
next_cursor: string | null;
|
|
5293
|
+
};
|
|
5294
|
+
/**
|
|
5295
|
+
* A user's notification preferences, read-only
|
|
5296
|
+
* (GET /api/v1/admin/users/{id}/notification-preferences). When the user has
|
|
5297
|
+
* never saved preferences, the defaults are returned with `is_default: true`
|
|
5298
|
+
* and `updated_at: null`.
|
|
5299
|
+
*
|
|
5300
|
+
*/
|
|
5301
|
+
export type AdminUserNotificationPreferences = {
|
|
5302
|
+
email_notification: EmailNotificationPreferences;
|
|
5303
|
+
notifications: NotificationPreferences;
|
|
5304
|
+
/**
|
|
5305
|
+
* When the user last saved their preferences; null when defaults are returned.
|
|
5306
|
+
*/
|
|
5307
|
+
updated_at: string | null;
|
|
5308
|
+
/**
|
|
5309
|
+
* True when the user has no stored preferences and the defaults are shown.
|
|
5310
|
+
*/
|
|
5311
|
+
is_default: boolean;
|
|
5312
|
+
};
|
|
5313
|
+
/**
|
|
5314
|
+
* Resource accesses by the user per bucket and source, across every team
|
|
5315
|
+
* (GET /api/v1/admin/users/{id}/resource-access-metrics). Every bucket in the
|
|
5316
|
+
* range is present with an explicit 0 for each source that appears.
|
|
5317
|
+
*
|
|
5318
|
+
*/
|
|
5319
|
+
export type AdminUserAccessMetrics = {
|
|
5320
|
+
/**
|
|
5321
|
+
* Inclusive start of the range actually used, snapped DOWN to the start of
|
|
5322
|
+
* its bucket (same rule as AdminTimeseriesResponse.from).
|
|
5323
|
+
*
|
|
5324
|
+
*/
|
|
5325
|
+
from: string;
|
|
5326
|
+
/**
|
|
5327
|
+
* Exclusive end of the range actually used (after defaulting); not snapped.
|
|
5328
|
+
*/
|
|
5329
|
+
to: string;
|
|
5330
|
+
/**
|
|
5331
|
+
* Bucket size actually used.
|
|
5332
|
+
*/
|
|
5333
|
+
granularity: 'day' | 'week' | 'month';
|
|
5334
|
+
/**
|
|
5335
|
+
* One point per (bucket, source), ascending by bucket then source.
|
|
5336
|
+
*/
|
|
5337
|
+
access_by_source: Array<AdminSourcePoint>;
|
|
5338
|
+
/**
|
|
5339
|
+
* Oldest access event still retained (now minus
|
|
5340
|
+
* `retention.access_event_days`); buckets before it read as zeros.
|
|
5341
|
+
*
|
|
5342
|
+
*/
|
|
5343
|
+
earliest_retained_at: string;
|
|
5344
|
+
};
|
|
5345
|
+
/**
|
|
5346
|
+
* One opaque most-accessed resource: its type, where it lives and how often
|
|
5347
|
+
* the user accessed it. Deliberately carries no title, slug or content — only
|
|
5348
|
+
* the first 8 characters of the resource id. The identity fields share their
|
|
5349
|
+
* names with AdminUserTimelineEvent.
|
|
5350
|
+
*
|
|
5351
|
+
*/
|
|
5352
|
+
export type AdminTopAccessedResource = {
|
|
5353
|
+
resource_type: 'prompt' | 'artifact' | 'blueprint' | 'memory' | 'project' | 'agent';
|
|
5354
|
+
/**
|
|
5355
|
+
* First 8 characters of the resource id.
|
|
5356
|
+
*/
|
|
5357
|
+
resource_short_id: string;
|
|
5358
|
+
team_id: string;
|
|
5359
|
+
team_name: string;
|
|
5360
|
+
/**
|
|
5361
|
+
* The resource's project (for a `project` row, the project itself). Null
|
|
5362
|
+
* for agents and for deleted resources.
|
|
5363
|
+
*
|
|
5364
|
+
*/
|
|
5365
|
+
project_id: string | null;
|
|
5366
|
+
project_name: string | null;
|
|
5367
|
+
/**
|
|
5368
|
+
* True when the resource no longer exists (access events outlive their resource until pruned).
|
|
5369
|
+
*/
|
|
5370
|
+
resource_deleted: boolean;
|
|
5371
|
+
access_count: number;
|
|
5372
|
+
};
|
|
5373
|
+
/**
|
|
5374
|
+
* The resources a user accessed most in a range
|
|
5375
|
+
* (GET /api/v1/admin/users/{id}/top-accessed-resources).
|
|
5376
|
+
*
|
|
5377
|
+
*/
|
|
5378
|
+
export type AdminTopAccessedResourcesResponse = {
|
|
5379
|
+
/**
|
|
5380
|
+
* Inclusive start of the range actually used (after defaulting); not snapped.
|
|
5381
|
+
*/
|
|
5382
|
+
from: string;
|
|
5383
|
+
/**
|
|
5384
|
+
* Exclusive end of the range actually used (after defaulting).
|
|
5385
|
+
*/
|
|
5386
|
+
to: string;
|
|
5387
|
+
/**
|
|
5388
|
+
* Most accessed first; ties broken by resource id.
|
|
5389
|
+
*/
|
|
5390
|
+
items: Array<AdminTopAccessedResource>;
|
|
5391
|
+
/**
|
|
5392
|
+
* Oldest access event still retained (now minus
|
|
5393
|
+
* `retention.access_event_days`); accesses before it are not counted.
|
|
5394
|
+
*
|
|
5395
|
+
*/
|
|
5396
|
+
earliest_retained_at: string;
|
|
5397
|
+
};
|
|
5174
5398
|
export type ProjectResponse = Project & {
|
|
5175
5399
|
/**
|
|
5176
5400
|
* Whether the project's git URL matches a repository accessible via the team's GitHub App installation
|
|
@@ -5290,6 +5514,33 @@ export type ActivityEntityTypesEnvelope = {
|
|
|
5290
5514
|
message: string;
|
|
5291
5515
|
data: Array<string>;
|
|
5292
5516
|
};
|
|
5517
|
+
export type EmailNotificationPreferences = {
|
|
5518
|
+
/**
|
|
5519
|
+
* Receive platform announcement emails
|
|
5520
|
+
*/
|
|
5521
|
+
platform_announcement: boolean;
|
|
5522
|
+
/**
|
|
5523
|
+
* Receive account security emails
|
|
5524
|
+
*/
|
|
5525
|
+
account_security: boolean;
|
|
5526
|
+
/**
|
|
5527
|
+
* Receive new feature emails
|
|
5528
|
+
*/
|
|
5529
|
+
new_feature: boolean;
|
|
5530
|
+
/**
|
|
5531
|
+
* Receive marketing and promotional emails
|
|
5532
|
+
*/
|
|
5533
|
+
marketing_promotional: boolean;
|
|
5534
|
+
};
|
|
5535
|
+
export type NotificationPreferences = {
|
|
5536
|
+
channels: NotificationChannelPreferences;
|
|
5537
|
+
/**
|
|
5538
|
+
* Per-type delivery preferences keyed by notification type (e.g. "feed.item.created", "feed.reply.created")
|
|
5539
|
+
*/
|
|
5540
|
+
types: {
|
|
5541
|
+
[key: string]: NotificationTypePreference;
|
|
5542
|
+
};
|
|
5543
|
+
};
|
|
5293
5544
|
export type PreferencesResponse = {
|
|
5294
5545
|
preferences: Preferences;
|
|
5295
5546
|
/**
|
|
@@ -5525,24 +5776,6 @@ export type TeamTopAccessedResourcesData = {
|
|
|
5525
5776
|
range: '7d' | '14d' | '30d' | '60d' | '90d' | '180d';
|
|
5526
5777
|
items: Array<TopAccessedResourceItem>;
|
|
5527
5778
|
};
|
|
5528
|
-
export type EmailNotificationPreferences = {
|
|
5529
|
-
/**
|
|
5530
|
-
* Receive platform announcement emails
|
|
5531
|
-
*/
|
|
5532
|
-
platform_announcement: boolean;
|
|
5533
|
-
/**
|
|
5534
|
-
* Receive account security emails
|
|
5535
|
-
*/
|
|
5536
|
-
account_security: boolean;
|
|
5537
|
-
/**
|
|
5538
|
-
* Receive new feature emails
|
|
5539
|
-
*/
|
|
5540
|
-
new_feature: boolean;
|
|
5541
|
-
/**
|
|
5542
|
-
* Receive marketing and promotional emails
|
|
5543
|
-
*/
|
|
5544
|
-
marketing_promotional: boolean;
|
|
5545
|
-
};
|
|
5546
5779
|
export type NotificationChannelPreferences = {
|
|
5547
5780
|
/**
|
|
5548
5781
|
* Enable in-app notifications globally
|
|
@@ -5563,15 +5796,6 @@ export type NotificationTypePreference = {
|
|
|
5563
5796
|
*/
|
|
5564
5797
|
email: 'instant' | 'digest' | 'none';
|
|
5565
5798
|
};
|
|
5566
|
-
export type NotificationPreferences = {
|
|
5567
|
-
channels: NotificationChannelPreferences;
|
|
5568
|
-
/**
|
|
5569
|
-
* Per-type delivery preferences keyed by notification type (e.g. "feed.item.created", "feed.reply.created")
|
|
5570
|
-
*/
|
|
5571
|
-
types: {
|
|
5572
|
-
[key: string]: NotificationTypePreference;
|
|
5573
|
-
};
|
|
5574
|
-
};
|
|
5575
5799
|
export type Preferences = {
|
|
5576
5800
|
email_notification: EmailNotificationPreferences;
|
|
5577
5801
|
notifications: NotificationPreferences;
|
|
@@ -12206,6 +12430,258 @@ export type GetAdminProjectResponses = {
|
|
|
12206
12430
|
200: AdminProjectDetail;
|
|
12207
12431
|
};
|
|
12208
12432
|
export type GetAdminProjectResponse = GetAdminProjectResponses[keyof GetAdminProjectResponses];
|
|
12433
|
+
export type GetAdminUserInsightsData = {
|
|
12434
|
+
body?: never;
|
|
12435
|
+
path: {
|
|
12436
|
+
/**
|
|
12437
|
+
* User id (UUID)
|
|
12438
|
+
*/
|
|
12439
|
+
id: string;
|
|
12440
|
+
};
|
|
12441
|
+
query?: never;
|
|
12442
|
+
url: '/api/v1/admin/users/{id}/insights';
|
|
12443
|
+
};
|
|
12444
|
+
export type GetAdminUserInsightsErrors = {
|
|
12445
|
+
/**
|
|
12446
|
+
* Bad request — malformed user id
|
|
12447
|
+
*/
|
|
12448
|
+
400: ErrorResponse;
|
|
12449
|
+
/**
|
|
12450
|
+
* Not found — unknown user id, or the caller is not an instance admin
|
|
12451
|
+
*/
|
|
12452
|
+
404: ErrorResponse;
|
|
12453
|
+
/**
|
|
12454
|
+
* Internal server error
|
|
12455
|
+
*/
|
|
12456
|
+
500: ErrorResponse;
|
|
12457
|
+
};
|
|
12458
|
+
export type GetAdminUserInsightsError = GetAdminUserInsightsErrors[keyof GetAdminUserInsightsErrors];
|
|
12459
|
+
export type GetAdminUserInsightsResponses = {
|
|
12460
|
+
/**
|
|
12461
|
+
* The user's per-type resource counts
|
|
12462
|
+
*/
|
|
12463
|
+
200: AdminUserInsights;
|
|
12464
|
+
};
|
|
12465
|
+
export type GetAdminUserInsightsResponse = GetAdminUserInsightsResponses[keyof GetAdminUserInsightsResponses];
|
|
12466
|
+
export type GetAdminUserResourceCreationMetricsData = {
|
|
12467
|
+
body?: never;
|
|
12468
|
+
path: {
|
|
12469
|
+
/**
|
|
12470
|
+
* User id (UUID)
|
|
12471
|
+
*/
|
|
12472
|
+
id: string;
|
|
12473
|
+
};
|
|
12474
|
+
query?: {
|
|
12475
|
+
/**
|
|
12476
|
+
* Inclusive start of the range. Defaults to 30 days before `to`.
|
|
12477
|
+
*/
|
|
12478
|
+
from?: string;
|
|
12479
|
+
/**
|
|
12480
|
+
* Exclusive end of the range. Defaults to now.
|
|
12481
|
+
*/
|
|
12482
|
+
to?: string;
|
|
12483
|
+
/**
|
|
12484
|
+
* Bucket size.
|
|
12485
|
+
*/
|
|
12486
|
+
granularity?: 'day' | 'week' | 'month';
|
|
12487
|
+
};
|
|
12488
|
+
url: '/api/v1/admin/users/{id}/resource-creation-metrics';
|
|
12489
|
+
};
|
|
12490
|
+
export type GetAdminUserResourceCreationMetricsErrors = {
|
|
12491
|
+
/**
|
|
12492
|
+
* Bad request — malformed user id, `to` is not after `from`, the range
|
|
12493
|
+
* exceeds the maximum span, or `granularity` is outside its enum
|
|
12494
|
+
*
|
|
12495
|
+
*/
|
|
12496
|
+
400: ErrorResponse;
|
|
12497
|
+
/**
|
|
12498
|
+
* Not found — unknown user id, or the caller is not an instance admin
|
|
12499
|
+
*/
|
|
12500
|
+
404: ErrorResponse;
|
|
12501
|
+
/**
|
|
12502
|
+
* Internal server error
|
|
12503
|
+
*/
|
|
12504
|
+
500: ErrorResponse;
|
|
12505
|
+
};
|
|
12506
|
+
export type GetAdminUserResourceCreationMetricsError = GetAdminUserResourceCreationMetricsErrors[keyof GetAdminUserResourceCreationMetricsErrors];
|
|
12507
|
+
export type GetAdminUserResourceCreationMetricsResponses = {
|
|
12508
|
+
/**
|
|
12509
|
+
* Bucketed creation counts per type
|
|
12510
|
+
*/
|
|
12511
|
+
200: AdminUserResourceCreationMetrics;
|
|
12512
|
+
};
|
|
12513
|
+
export type GetAdminUserResourceCreationMetricsResponse = GetAdminUserResourceCreationMetricsResponses[keyof GetAdminUserResourceCreationMetricsResponses];
|
|
12514
|
+
export type GetAdminUserTimelineData = {
|
|
12515
|
+
body?: never;
|
|
12516
|
+
path: {
|
|
12517
|
+
/**
|
|
12518
|
+
* User id (UUID)
|
|
12519
|
+
*/
|
|
12520
|
+
id: string;
|
|
12521
|
+
};
|
|
12522
|
+
query?: {
|
|
12523
|
+
/**
|
|
12524
|
+
* Opaque cursor from a previous page's `next_cursor`.
|
|
12525
|
+
*/
|
|
12526
|
+
cursor?: string;
|
|
12527
|
+
/**
|
|
12528
|
+
* Page size.
|
|
12529
|
+
*/
|
|
12530
|
+
limit?: number;
|
|
12531
|
+
};
|
|
12532
|
+
url: '/api/v1/admin/users/{id}/timeline';
|
|
12533
|
+
};
|
|
12534
|
+
export type GetAdminUserTimelineErrors = {
|
|
12535
|
+
/**
|
|
12536
|
+
* Bad request — malformed user id, malformed cursor, or `limit` out of range
|
|
12537
|
+
*/
|
|
12538
|
+
400: ErrorResponse;
|
|
12539
|
+
/**
|
|
12540
|
+
* Not found — unknown user id, or the caller is not an instance admin
|
|
12541
|
+
*/
|
|
12542
|
+
404: ErrorResponse;
|
|
12543
|
+
/**
|
|
12544
|
+
* Internal server error
|
|
12545
|
+
*/
|
|
12546
|
+
500: ErrorResponse;
|
|
12547
|
+
};
|
|
12548
|
+
export type GetAdminUserTimelineError = GetAdminUserTimelineErrors[keyof GetAdminUserTimelineErrors];
|
|
12549
|
+
export type GetAdminUserTimelineResponses = {
|
|
12550
|
+
/**
|
|
12551
|
+
* One page of timeline events, newest first
|
|
12552
|
+
*/
|
|
12553
|
+
200: AdminUserTimelinePage;
|
|
12554
|
+
};
|
|
12555
|
+
export type GetAdminUserTimelineResponse = GetAdminUserTimelineResponses[keyof GetAdminUserTimelineResponses];
|
|
12556
|
+
export type GetAdminUserResourceAccessMetricsData = {
|
|
12557
|
+
body?: never;
|
|
12558
|
+
path: {
|
|
12559
|
+
/**
|
|
12560
|
+
* User id (UUID)
|
|
12561
|
+
*/
|
|
12562
|
+
id: string;
|
|
12563
|
+
};
|
|
12564
|
+
query?: {
|
|
12565
|
+
/**
|
|
12566
|
+
* Inclusive start of the range. Defaults to 30 days before `to`.
|
|
12567
|
+
*/
|
|
12568
|
+
from?: string;
|
|
12569
|
+
/**
|
|
12570
|
+
* Exclusive end of the range. Defaults to now.
|
|
12571
|
+
*/
|
|
12572
|
+
to?: string;
|
|
12573
|
+
/**
|
|
12574
|
+
* Bucket size.
|
|
12575
|
+
*/
|
|
12576
|
+
granularity?: 'day' | 'week' | 'month';
|
|
12577
|
+
};
|
|
12578
|
+
url: '/api/v1/admin/users/{id}/resource-access-metrics';
|
|
12579
|
+
};
|
|
12580
|
+
export type GetAdminUserResourceAccessMetricsErrors = {
|
|
12581
|
+
/**
|
|
12582
|
+
* Bad request — malformed user id, `to` is not after `from`, the range
|
|
12583
|
+
* exceeds the maximum span, or `granularity` is outside its enum
|
|
12584
|
+
*
|
|
12585
|
+
*/
|
|
12586
|
+
400: ErrorResponse;
|
|
12587
|
+
/**
|
|
12588
|
+
* Not found — unknown user id, or the caller is not an instance admin
|
|
12589
|
+
*/
|
|
12590
|
+
404: ErrorResponse;
|
|
12591
|
+
/**
|
|
12592
|
+
* Internal server error
|
|
12593
|
+
*/
|
|
12594
|
+
500: ErrorResponse;
|
|
12595
|
+
};
|
|
12596
|
+
export type GetAdminUserResourceAccessMetricsError = GetAdminUserResourceAccessMetricsErrors[keyof GetAdminUserResourceAccessMetricsErrors];
|
|
12597
|
+
export type GetAdminUserResourceAccessMetricsResponses = {
|
|
12598
|
+
/**
|
|
12599
|
+
* Bucketed access counts per source
|
|
12600
|
+
*/
|
|
12601
|
+
200: AdminUserAccessMetrics;
|
|
12602
|
+
};
|
|
12603
|
+
export type GetAdminUserResourceAccessMetricsResponse = GetAdminUserResourceAccessMetricsResponses[keyof GetAdminUserResourceAccessMetricsResponses];
|
|
12604
|
+
export type GetAdminUserTopAccessedResourcesData = {
|
|
12605
|
+
body?: never;
|
|
12606
|
+
path: {
|
|
12607
|
+
/**
|
|
12608
|
+
* User id (UUID)
|
|
12609
|
+
*/
|
|
12610
|
+
id: string;
|
|
12611
|
+
};
|
|
12612
|
+
query?: {
|
|
12613
|
+
/**
|
|
12614
|
+
* Inclusive start of the range. Defaults to 30 days before `to`.
|
|
12615
|
+
*/
|
|
12616
|
+
from?: string;
|
|
12617
|
+
/**
|
|
12618
|
+
* Exclusive end of the range. Defaults to now.
|
|
12619
|
+
*/
|
|
12620
|
+
to?: string;
|
|
12621
|
+
/**
|
|
12622
|
+
* Maximum number of rows.
|
|
12623
|
+
*/
|
|
12624
|
+
limit?: number;
|
|
12625
|
+
};
|
|
12626
|
+
url: '/api/v1/admin/users/{id}/top-accessed-resources';
|
|
12627
|
+
};
|
|
12628
|
+
export type GetAdminUserTopAccessedResourcesErrors = {
|
|
12629
|
+
/**
|
|
12630
|
+
* Bad request — malformed user id, `to` is not after `from`, the range
|
|
12631
|
+
* exceeds the maximum span, or `limit` is out of range
|
|
12632
|
+
*
|
|
12633
|
+
*/
|
|
12634
|
+
400: ErrorResponse;
|
|
12635
|
+
/**
|
|
12636
|
+
* Not found — unknown user id, or the caller is not an instance admin
|
|
12637
|
+
*/
|
|
12638
|
+
404: ErrorResponse;
|
|
12639
|
+
/**
|
|
12640
|
+
* Internal server error
|
|
12641
|
+
*/
|
|
12642
|
+
500: ErrorResponse;
|
|
12643
|
+
};
|
|
12644
|
+
export type GetAdminUserTopAccessedResourcesError = GetAdminUserTopAccessedResourcesErrors[keyof GetAdminUserTopAccessedResourcesErrors];
|
|
12645
|
+
export type GetAdminUserTopAccessedResourcesResponses = {
|
|
12646
|
+
/**
|
|
12647
|
+
* The most-accessed resources, most accessed first
|
|
12648
|
+
*/
|
|
12649
|
+
200: AdminTopAccessedResourcesResponse;
|
|
12650
|
+
};
|
|
12651
|
+
export type GetAdminUserTopAccessedResourcesResponse = GetAdminUserTopAccessedResourcesResponses[keyof GetAdminUserTopAccessedResourcesResponses];
|
|
12652
|
+
export type GetAdminUserNotificationPreferencesData = {
|
|
12653
|
+
body?: never;
|
|
12654
|
+
path: {
|
|
12655
|
+
/**
|
|
12656
|
+
* User id (UUID)
|
|
12657
|
+
*/
|
|
12658
|
+
id: string;
|
|
12659
|
+
};
|
|
12660
|
+
query?: never;
|
|
12661
|
+
url: '/api/v1/admin/users/{id}/notification-preferences';
|
|
12662
|
+
};
|
|
12663
|
+
export type GetAdminUserNotificationPreferencesErrors = {
|
|
12664
|
+
/**
|
|
12665
|
+
* Bad request — malformed user id
|
|
12666
|
+
*/
|
|
12667
|
+
400: ErrorResponse;
|
|
12668
|
+
/**
|
|
12669
|
+
* Not found — unknown user id, or the caller is not an instance admin
|
|
12670
|
+
*/
|
|
12671
|
+
404: ErrorResponse;
|
|
12672
|
+
/**
|
|
12673
|
+
* Internal server error
|
|
12674
|
+
*/
|
|
12675
|
+
500: ErrorResponse;
|
|
12676
|
+
};
|
|
12677
|
+
export type GetAdminUserNotificationPreferencesError = GetAdminUserNotificationPreferencesErrors[keyof GetAdminUserNotificationPreferencesErrors];
|
|
12678
|
+
export type GetAdminUserNotificationPreferencesResponses = {
|
|
12679
|
+
/**
|
|
12680
|
+
* The user's notification preferences
|
|
12681
|
+
*/
|
|
12682
|
+
200: AdminUserNotificationPreferences;
|
|
12683
|
+
};
|
|
12684
|
+
export type GetAdminUserNotificationPreferencesResponse = GetAdminUserNotificationPreferencesResponses[keyof GetAdminUserNotificationPreferencesResponses];
|
|
12209
12685
|
export type ListCommentsData = {
|
|
12210
12686
|
body?: never;
|
|
12211
12687
|
path: {
|