@vibexp/api-client 0.79.0 → 0.81.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
@@ -2506,7 +2506,8 @@ export interface paths {
2506
2506
  /**
2507
2507
  * List instance users
2508
2508
  * @description Returns a paginated, instance-wide listing of users with each user's team
2509
- * count. Supports case-insensitive search, typed filters, and allowlisted
2509
+ * and project counts, per-type authored-resource counts and the time of their
2510
+ * most recent resource. Supports case-insensitive search, typed filters, and allowlisted
2510
2511
  * sorting; filters combine with AND and the pagination envelope reflects the
2511
2512
  * filtered set. Instance-admin only; non-admin and unauthenticated requests
2512
2513
  * receive 404.
@@ -2805,6 +2806,123 @@ export interface paths {
2805
2806
  patch?: never;
2806
2807
  trace?: never;
2807
2808
  };
2809
+ "/api/v1/admin/users/{id}/insights": {
2810
+ parameters: {
2811
+ query?: never;
2812
+ header?: never;
2813
+ path?: never;
2814
+ cookie?: never;
2815
+ };
2816
+ /**
2817
+ * Get a user's resource counts
2818
+ * @description Returns how many resources of each of the nine counted types (prompts,
2819
+ * memories, artifacts, blueprints, agents, feeds, feed items, comments,
2820
+ * attachments) the user authored: instance-wide totals, per team, and per
2821
+ * project for the four project-scoped types. Counts only — no titles, slugs or
2822
+ * content.
2823
+ *
2824
+ * Instance-admin only; non-admin and unauthenticated requests receive 404, as
2825
+ * does an unknown user id.
2826
+ */
2827
+ get: operations["getAdminUserInsights"];
2828
+ put?: never;
2829
+ post?: never;
2830
+ delete?: never;
2831
+ options?: never;
2832
+ head?: never;
2833
+ patch?: never;
2834
+ trace?: never;
2835
+ };
2836
+ "/api/v1/admin/users/{id}/resource-creation-metrics": {
2837
+ parameters: {
2838
+ query?: never;
2839
+ header?: never;
2840
+ path?: never;
2841
+ cookie?: never;
2842
+ };
2843
+ /**
2844
+ * Get a user's resource creation series
2845
+ * @description Returns how many resources of each type the user created per bucket over a
2846
+ * time range. Omitting the parameters yields the last 30 days at `day`
2847
+ * granularity, and the range rules match getAdminDashboardTimeseries. Every
2848
+ * bucket is present with an explicit 0 for every type.
2849
+ *
2850
+ * Instance-admin only; non-admin and unauthenticated requests receive 404, as
2851
+ * does an unknown user id.
2852
+ */
2853
+ get: operations["getAdminUserResourceCreationMetrics"];
2854
+ put?: never;
2855
+ post?: never;
2856
+ delete?: never;
2857
+ options?: never;
2858
+ head?: never;
2859
+ patch?: never;
2860
+ trace?: never;
2861
+ };
2862
+ "/api/v1/admin/users/{id}/timeline": {
2863
+ parameters: {
2864
+ query?: never;
2865
+ header?: never;
2866
+ path?: never;
2867
+ cookie?: never;
2868
+ };
2869
+ /**
2870
+ * Get a user's resource timeline
2871
+ * @description Returns an opaque, newest-first timeline of the resources the user created
2872
+ * or updated: resource type, action, team, project and the first 8 characters
2873
+ * of the resource id — never a title, slug or content. Cursor-paginated: pass
2874
+ * the previous page's `next_cursor` to continue.
2875
+ *
2876
+ * `updated` events are APPROXIMATE, by construction of the data:
2877
+ *
2878
+ * - Only the latest `updated_at` is stored, so a resource edited many times
2879
+ * appears as ONE `updated` event, at its latest edit.
2880
+ * - There is no `updated_by` column. The event means "a resource authored by
2881
+ * this user was last modified", not "this user edited it" — a teammate's
2882
+ * edit, or a system write that bumps `updated_at` (for example a blueprint
2883
+ * GitHub re-sync or a team-wide artifact type rename), shows up here too.
2884
+ * - An update is only reported when `updated_at` is more than one second after
2885
+ * `created_at`, so a never-edited resource produces no `updated` event.
2886
+ * - Agents, feed items and attachments only ever produce `created` events.
2887
+ *
2888
+ * Deleted resources leave no trace (resources are hard-deleted).
2889
+ *
2890
+ * Instance-admin only; non-admin and unauthenticated requests receive 404, as
2891
+ * does an unknown user id.
2892
+ */
2893
+ get: operations["getAdminUserTimeline"];
2894
+ put?: never;
2895
+ post?: never;
2896
+ delete?: never;
2897
+ options?: never;
2898
+ head?: never;
2899
+ patch?: never;
2900
+ trace?: never;
2901
+ };
2902
+ "/api/v1/admin/users/{id}/notification-preferences": {
2903
+ parameters: {
2904
+ query?: never;
2905
+ header?: never;
2906
+ path?: never;
2907
+ cookie?: never;
2908
+ };
2909
+ /**
2910
+ * Get a user's notification preferences
2911
+ * @description Returns the user's notification preferences, read-only. A user who has never
2912
+ * saved preferences gets the defaults with `is_default: true`.
2913
+ *
2914
+ * Instance-admin only; non-admin and unauthenticated requests receive 404, as
2915
+ * does an unknown user id.
2916
+ */
2917
+ get: operations["getAdminUserNotificationPreferences"];
2918
+ put?: never;
2919
+ post?: never;
2920
+ delete?: never;
2921
+ options?: never;
2922
+ head?: never;
2923
+ patch?: never;
2924
+ trace?: never;
2925
+ };
2808
2926
  "/api/v1/{team_id}/comments": {
2809
2927
  parameters: {
2810
2928
  query?: never;
@@ -10300,6 +10418,78 @@ export interface components {
10300
10418
  * @example 3
10301
10419
  */
10302
10420
  team_count: number;
10421
+ /**
10422
+ * Format: int64
10423
+ * @description Number of projects the user created.
10424
+ * @example 2
10425
+ */
10426
+ project_count: number;
10427
+ resource_counts: components["schemas"]["AdminResourceCounts"];
10428
+ /**
10429
+ * Format: date-time
10430
+ * @description When the user's most recent resource (any of the nine types counted in
10431
+ * resource_counts) was created; null for a user who has authored none.
10432
+ */
10433
+ last_resource_created_at?: string | null;
10434
+ };
10435
+ /**
10436
+ * @description How many resources of each type a user authored, counted by the author
10437
+ * column of each table (feeds by creator, feed items by poster). Every row
10438
+ * counts regardless of its status or archive state. `total` is the sum of the
10439
+ * nine types.
10440
+ */
10441
+ AdminResourceCounts: {
10442
+ /**
10443
+ * Format: int64
10444
+ * @example 12
10445
+ */
10446
+ prompts: number;
10447
+ /**
10448
+ * Format: int64
10449
+ * @example 40
10450
+ */
10451
+ memories: number;
10452
+ /**
10453
+ * Format: int64
10454
+ * @example 5
10455
+ */
10456
+ artifacts: number;
10457
+ /**
10458
+ * Format: int64
10459
+ * @example 3
10460
+ */
10461
+ blueprints: number;
10462
+ /**
10463
+ * Format: int64
10464
+ * @example 1
10465
+ */
10466
+ agents: number;
10467
+ /**
10468
+ * Format: int64
10469
+ * @example 2
10470
+ */
10471
+ feeds: number;
10472
+ /**
10473
+ * Format: int64
10474
+ * @example 18
10475
+ */
10476
+ feed_items: number;
10477
+ /**
10478
+ * Format: int64
10479
+ * @example 7
10480
+ */
10481
+ comments: number;
10482
+ /**
10483
+ * Format: int64
10484
+ * @example 4
10485
+ */
10486
+ attachments: number;
10487
+ /**
10488
+ * Format: int64
10489
+ * @description Sum of the nine per-type counts.
10490
+ * @example 92
10491
+ */
10492
+ total: number;
10303
10493
  };
10304
10494
  /** @description A page of the instance-wide user listing, newest first. */
10305
10495
  AdminUserListResponse: {
@@ -10877,6 +11067,147 @@ export interface components {
10877
11067
  /** Format: date-time */
10878
11068
  updated_at: string;
10879
11069
  };
11070
+ /**
11071
+ * @description How many PROJECT-SCOPED resources the user authored in one project. Only the
11072
+ * four types with a NOT NULL project_id are attributed to a project; every
11073
+ * other type is counted at the team level only.
11074
+ */
11075
+ AdminUserProjectResourceCounts: {
11076
+ /** Format: uuid */
11077
+ project_id: string;
11078
+ /** @example Platform */
11079
+ project_name: string;
11080
+ counts: components["schemas"]["AdminProjectResourceCounts"];
11081
+ };
11082
+ /** @description How many resources the user authored in one team, with the per-project breakdown. */
11083
+ AdminUserTeamResourceCounts: {
11084
+ /** Format: uuid */
11085
+ team_id: string;
11086
+ /** @example Acme */
11087
+ team_name: string;
11088
+ /**
11089
+ * @description Whether the user is still a member of the team. A former member's
11090
+ * authored resources stay in the team and are still counted here.
11091
+ */
11092
+ is_member: boolean;
11093
+ counts: components["schemas"]["AdminResourceCounts"];
11094
+ /** @description Per-project counts, ordered by project name. */
11095
+ projects: components["schemas"]["AdminUserProjectResourceCounts"][];
11096
+ };
11097
+ /**
11098
+ * @description Per-type counts of the resources one user authored, instance-wide, per team
11099
+ * and per project (GET /api/v1/admin/users/{id}/insights). For every type the
11100
+ * per-team counts sum to `totals`. An attachment whose author was deleted
11101
+ * (user_id set to NULL) counts for nobody.
11102
+ */
11103
+ AdminUserInsights: {
11104
+ /** Format: uuid */
11105
+ user_id: string;
11106
+ totals: components["schemas"]["AdminResourceCounts"];
11107
+ /** @description Teams the user authored at least one resource in, ordered by team name. */
11108
+ teams: components["schemas"]["AdminUserTeamResourceCounts"][];
11109
+ };
11110
+ /** @description How many resources of each type the user created within one time bucket. */
11111
+ AdminUserCreationPoint: {
11112
+ /**
11113
+ * Format: date-time
11114
+ * @description Start of the bucket, in UTC.
11115
+ */
11116
+ bucket: string;
11117
+ /** Format: int64 */
11118
+ prompts: number;
11119
+ /** Format: int64 */
11120
+ memories: number;
11121
+ /** Format: int64 */
11122
+ artifacts: number;
11123
+ /** Format: int64 */
11124
+ blueprints: number;
11125
+ /** Format: int64 */
11126
+ agents: number;
11127
+ /** Format: int64 */
11128
+ feeds: number;
11129
+ /** Format: int64 */
11130
+ feed_items: number;
11131
+ /** Format: int64 */
11132
+ comments: number;
11133
+ /** Format: int64 */
11134
+ attachments: number;
11135
+ };
11136
+ /**
11137
+ * @description Resources the user created per bucket, stacked by type
11138
+ * (GET /api/v1/admin/users/{id}/resource-creation-metrics). Every bucket in
11139
+ * the range is present with an explicit 0 for every type.
11140
+ */
11141
+ AdminUserResourceCreationMetrics: {
11142
+ /**
11143
+ * Format: date-time
11144
+ * @description Inclusive start of the range actually used, snapped DOWN to the start of
11145
+ * its bucket (same rule as AdminTimeseriesResponse.from).
11146
+ */
11147
+ from: string;
11148
+ /**
11149
+ * Format: date-time
11150
+ * @description Exclusive end of the range actually used (after defaulting); not snapped.
11151
+ */
11152
+ to: string;
11153
+ /**
11154
+ * @description Bucket size actually used.
11155
+ * @enum {string}
11156
+ */
11157
+ granularity: "day" | "week" | "month";
11158
+ /** @description One point per bucket, ascending by bucket. */
11159
+ series: components["schemas"]["AdminUserCreationPoint"][];
11160
+ };
11161
+ /**
11162
+ * @description One opaque timeline entry: which kind of resource the user created or last
11163
+ * updated, where, and when. Deliberately carries no title, slug or content —
11164
+ * only the first 8 characters of the resource id.
11165
+ */
11166
+ AdminUserTimelineEvent: {
11167
+ /** @enum {string} */
11168
+ resource_type: "prompt" | "memory" | "artifact" | "blueprint" | "agent" | "feed" | "feed_item" | "comment" | "attachment";
11169
+ /** @enum {string} */
11170
+ action: "created" | "updated";
11171
+ /** Format: uuid */
11172
+ team_id: string;
11173
+ team_name: string;
11174
+ /**
11175
+ * Format: uuid
11176
+ * @description Null for team-scoped resources and for feed items posted without a project.
11177
+ */
11178
+ project_id: string | null;
11179
+ project_name: string | null;
11180
+ /**
11181
+ * @description First 8 characters of the resource id.
11182
+ * @example 3f2a9c1e
11183
+ */
11184
+ resource_short_id: string;
11185
+ /** Format: date-time */
11186
+ occurred_at: string;
11187
+ };
11188
+ /** @description One page of a user's resource timeline, newest first. */
11189
+ AdminUserTimelinePage: {
11190
+ items: components["schemas"]["AdminUserTimelineEvent"][];
11191
+ /** @description Opaque cursor for the next page; null on the last page. */
11192
+ next_cursor: string | null;
11193
+ };
11194
+ /**
11195
+ * @description A user's notification preferences, read-only
11196
+ * (GET /api/v1/admin/users/{id}/notification-preferences). When the user has
11197
+ * never saved preferences, the defaults are returned with `is_default: true`
11198
+ * and `updated_at: null`.
11199
+ */
11200
+ AdminUserNotificationPreferences: {
11201
+ email_notification: components["schemas"]["EmailNotificationPreferences"];
11202
+ notifications: components["schemas"]["NotificationPreferences"];
11203
+ /**
11204
+ * Format: date-time
11205
+ * @description When the user last saved their preferences; null when defaults are returned.
11206
+ */
11207
+ updated_at: string | null;
11208
+ /** @description True when the user has no stored preferences and the defaults are shown. */
11209
+ is_default: boolean;
11210
+ };
10880
11211
  ProjectResponse: components["schemas"]["Project"] & {
10881
11212
  /**
10882
11213
  * @description Whether the project's git URL matches a repository accessible via the team's GitHub App installation
@@ -11016,6 +11347,35 @@ export interface components {
11016
11347
  */
11017
11348
  data: string[];
11018
11349
  };
11350
+ EmailNotificationPreferences: {
11351
+ /**
11352
+ * @description Receive platform announcement emails
11353
+ * @example true
11354
+ */
11355
+ platform_announcement: boolean;
11356
+ /**
11357
+ * @description Receive account security emails
11358
+ * @example true
11359
+ */
11360
+ account_security: boolean;
11361
+ /**
11362
+ * @description Receive new feature emails
11363
+ * @example true
11364
+ */
11365
+ new_feature: boolean;
11366
+ /**
11367
+ * @description Receive marketing and promotional emails
11368
+ * @example false
11369
+ */
11370
+ marketing_promotional: boolean;
11371
+ };
11372
+ NotificationPreferences: {
11373
+ channels: components["schemas"]["NotificationChannelPreferences"];
11374
+ /** @description Per-type delivery preferences keyed by notification type (e.g. "feed.item.created", "feed.reply.created") */
11375
+ types: {
11376
+ [key: string]: components["schemas"]["NotificationTypePreference"];
11377
+ };
11378
+ };
11019
11379
  PreferencesResponse: {
11020
11380
  preferences: components["schemas"]["Preferences"];
11021
11381
  /**
@@ -11325,28 +11685,6 @@ export interface components {
11325
11685
  range: "7d" | "14d" | "30d" | "60d" | "90d" | "180d";
11326
11686
  items: components["schemas"]["TopAccessedResourceItem"][];
11327
11687
  };
11328
- EmailNotificationPreferences: {
11329
- /**
11330
- * @description Receive platform announcement emails
11331
- * @example true
11332
- */
11333
- platform_announcement: boolean;
11334
- /**
11335
- * @description Receive account security emails
11336
- * @example true
11337
- */
11338
- account_security: boolean;
11339
- /**
11340
- * @description Receive new feature emails
11341
- * @example true
11342
- */
11343
- new_feature: boolean;
11344
- /**
11345
- * @description Receive marketing and promotional emails
11346
- * @example false
11347
- */
11348
- marketing_promotional: boolean;
11349
- };
11350
11688
  NotificationChannelPreferences: {
11351
11689
  /**
11352
11690
  * @description Enable in-app notifications globally
@@ -11372,13 +11710,6 @@ export interface components {
11372
11710
  */
11373
11711
  email: "instant" | "digest" | "none";
11374
11712
  };
11375
- NotificationPreferences: {
11376
- channels: components["schemas"]["NotificationChannelPreferences"];
11377
- /** @description Per-type delivery preferences keyed by notification type (e.g. "feed.item.created", "feed.reply.created") */
11378
- types: {
11379
- [key: string]: components["schemas"]["NotificationTypePreference"];
11380
- };
11381
- };
11382
11713
  Preferences: {
11383
11714
  email_notification: components["schemas"]["EmailNotificationPreferences"];
11384
11715
  notifications: components["schemas"]["NotificationPreferences"];
@@ -20080,8 +20411,70 @@ export interface operations {
20080
20411
  created_to?: string;
20081
20412
  /** @description Narrow to accounts in this lifecycle state. */
20082
20413
  status?: "active" | "suspended";
20083
- /** @description Column to sort by. Ties are always broken by user id so paging is stable. */
20084
- sort_by?: "created_at" | "email" | "name" | "team_count";
20414
+ /** @description Only users with at least this many teams the user belongs to (inclusive). */
20415
+ team_count_min?: number;
20416
+ /** @description Only users with at most this many teams the user belongs to (inclusive). */
20417
+ team_count_max?: number;
20418
+ /** @description Only users with at least this many projects the user created (inclusive). */
20419
+ project_count_min?: number;
20420
+ /** @description Only users with at most this many projects the user created (inclusive). */
20421
+ project_count_max?: number;
20422
+ /** @description Only users with at least this many prompts the user authored (inclusive). */
20423
+ prompt_count_min?: number;
20424
+ /** @description Only users with at most this many prompts the user authored (inclusive). */
20425
+ prompt_count_max?: number;
20426
+ /** @description Only users with at least this many memories the user authored (inclusive). */
20427
+ memory_count_min?: number;
20428
+ /** @description Only users with at most this many memories the user authored (inclusive). */
20429
+ memory_count_max?: number;
20430
+ /** @description Only users with at least this many artifacts the user authored (inclusive). */
20431
+ artifact_count_min?: number;
20432
+ /** @description Only users with at most this many artifacts the user authored (inclusive). */
20433
+ artifact_count_max?: number;
20434
+ /** @description Only users with at least this many blueprints the user authored (inclusive). */
20435
+ blueprint_count_min?: number;
20436
+ /** @description Only users with at most this many blueprints the user authored (inclusive). */
20437
+ blueprint_count_max?: number;
20438
+ /** @description Only users with at least this many agents the user created (inclusive). */
20439
+ agent_count_min?: number;
20440
+ /** @description Only users with at most this many agents the user created (inclusive). */
20441
+ agent_count_max?: number;
20442
+ /** @description Only users with at least this many feeds the user created (inclusive). */
20443
+ feed_count_min?: number;
20444
+ /** @description Only users with at most this many feeds the user created (inclusive). */
20445
+ feed_count_max?: number;
20446
+ /** @description Only users with at least this many feed items the user posted (inclusive). */
20447
+ feed_item_count_min?: number;
20448
+ /** @description Only users with at most this many feed items the user posted (inclusive). */
20449
+ feed_item_count_max?: number;
20450
+ /** @description Only users with at least this many comments the user wrote (inclusive). */
20451
+ comment_count_min?: number;
20452
+ /** @description Only users with at most this many comments the user wrote (inclusive). */
20453
+ comment_count_max?: number;
20454
+ /** @description Only users with at least this many attachments the user uploaded (inclusive). */
20455
+ attachment_count_min?: number;
20456
+ /** @description Only users with at most this many attachments the user uploaded (inclusive). */
20457
+ attachment_count_max?: number;
20458
+ /** @description Only users with at least this many resources the user authored across all nine types (the sum of resource_counts) (inclusive). */
20459
+ total_resource_count_min?: number;
20460
+ /** @description Only users with at most this many resources the user authored across all nine types (the sum of resource_counts) (inclusive). */
20461
+ total_resource_count_max?: number;
20462
+ /**
20463
+ * @description Only users whose most recent resource (any of the nine types) was created
20464
+ * at or after this instant (inclusive). Users with no resources never match.
20465
+ */
20466
+ last_resource_created_from?: string;
20467
+ /**
20468
+ * @description Only users whose most recent resource (any of the nine types) was created
20469
+ * at or before this instant (inclusive). Users with no resources never match.
20470
+ */
20471
+ last_resource_created_to?: string;
20472
+ /**
20473
+ * @description Column to sort by. Ties are always broken by user id so paging is stable.
20474
+ * Sorting by last_resource_created_at places users with no resources last
20475
+ * in both directions.
20476
+ */
20477
+ sort_by?: "created_at" | "email" | "name" | "team_count" | "project_count" | "prompt_count" | "memory_count" | "artifact_count" | "blueprint_count" | "agent_count" | "feed_count" | "feed_item_count" | "comment_count" | "attachment_count" | "total_resource_count" | "last_resource_created_at";
20085
20478
  /** @description Sort direction. */
20086
20479
  sort_order?: "asc" | "desc";
20087
20480
  };
@@ -20100,7 +20493,7 @@ export interface operations {
20100
20493
  "application/json": components["schemas"]["AdminUserListResponse"];
20101
20494
  };
20102
20495
  };
20103
- /** @description Bad request — a query parameter is malformed or outside its enum */
20496
+ /** @description Bad request — a query parameter is malformed or outside its enum, a count bound is negative, or a min/max or from/to pair is inverted */
20104
20497
  400: {
20105
20498
  headers: {
20106
20499
  [name: string]: unknown;
@@ -20768,6 +21161,221 @@ export interface operations {
20768
21161
  };
20769
21162
  };
20770
21163
  };
21164
+ getAdminUserInsights: {
21165
+ parameters: {
21166
+ query?: never;
21167
+ header?: never;
21168
+ path: {
21169
+ /** @description User id (UUID) */
21170
+ id: string;
21171
+ };
21172
+ cookie?: never;
21173
+ };
21174
+ requestBody?: never;
21175
+ responses: {
21176
+ /** @description The user's per-type resource counts */
21177
+ 200: {
21178
+ headers: {
21179
+ [name: string]: unknown;
21180
+ };
21181
+ content: {
21182
+ "application/json": components["schemas"]["AdminUserInsights"];
21183
+ };
21184
+ };
21185
+ /** @description Bad request — malformed user id */
21186
+ 400: {
21187
+ headers: {
21188
+ [name: string]: unknown;
21189
+ };
21190
+ content: {
21191
+ "application/problem+json": components["schemas"]["ErrorResponse"];
21192
+ };
21193
+ };
21194
+ /** @description Not found — unknown user id, or the caller is not an instance admin */
21195
+ 404: {
21196
+ headers: {
21197
+ [name: string]: unknown;
21198
+ };
21199
+ content: {
21200
+ "application/problem+json": components["schemas"]["ErrorResponse"];
21201
+ };
21202
+ };
21203
+ /** @description Internal server error */
21204
+ 500: {
21205
+ headers: {
21206
+ [name: string]: unknown;
21207
+ };
21208
+ content: {
21209
+ "application/problem+json": components["schemas"]["ErrorResponse"];
21210
+ };
21211
+ };
21212
+ };
21213
+ };
21214
+ getAdminUserResourceCreationMetrics: {
21215
+ parameters: {
21216
+ query?: {
21217
+ /** @description Inclusive start of the range. Defaults to 30 days before `to`. */
21218
+ from?: string;
21219
+ /** @description Exclusive end of the range. Defaults to now. */
21220
+ to?: string;
21221
+ /** @description Bucket size. */
21222
+ granularity?: "day" | "week" | "month";
21223
+ };
21224
+ header?: never;
21225
+ path: {
21226
+ /** @description User id (UUID) */
21227
+ id: string;
21228
+ };
21229
+ cookie?: never;
21230
+ };
21231
+ requestBody?: never;
21232
+ responses: {
21233
+ /** @description Bucketed creation counts per type */
21234
+ 200: {
21235
+ headers: {
21236
+ [name: string]: unknown;
21237
+ };
21238
+ content: {
21239
+ "application/json": components["schemas"]["AdminUserResourceCreationMetrics"];
21240
+ };
21241
+ };
21242
+ /**
21243
+ * @description Bad request — malformed user id, `to` is not after `from`, the range
21244
+ * exceeds the maximum span, or `granularity` is outside its enum
21245
+ */
21246
+ 400: {
21247
+ headers: {
21248
+ [name: string]: unknown;
21249
+ };
21250
+ content: {
21251
+ "application/problem+json": components["schemas"]["ErrorResponse"];
21252
+ };
21253
+ };
21254
+ /** @description Not found — unknown user id, or the caller is not an instance admin */
21255
+ 404: {
21256
+ headers: {
21257
+ [name: string]: unknown;
21258
+ };
21259
+ content: {
21260
+ "application/problem+json": components["schemas"]["ErrorResponse"];
21261
+ };
21262
+ };
21263
+ /** @description Internal server error */
21264
+ 500: {
21265
+ headers: {
21266
+ [name: string]: unknown;
21267
+ };
21268
+ content: {
21269
+ "application/problem+json": components["schemas"]["ErrorResponse"];
21270
+ };
21271
+ };
21272
+ };
21273
+ };
21274
+ getAdminUserTimeline: {
21275
+ parameters: {
21276
+ query?: {
21277
+ /** @description Opaque cursor from a previous page's `next_cursor`. */
21278
+ cursor?: string;
21279
+ /** @description Page size. */
21280
+ limit?: number;
21281
+ };
21282
+ header?: never;
21283
+ path: {
21284
+ /** @description User id (UUID) */
21285
+ id: string;
21286
+ };
21287
+ cookie?: never;
21288
+ };
21289
+ requestBody?: never;
21290
+ responses: {
21291
+ /** @description One page of timeline events, newest first */
21292
+ 200: {
21293
+ headers: {
21294
+ [name: string]: unknown;
21295
+ };
21296
+ content: {
21297
+ "application/json": components["schemas"]["AdminUserTimelinePage"];
21298
+ };
21299
+ };
21300
+ /** @description Bad request — malformed user id, malformed cursor, or `limit` out of range */
21301
+ 400: {
21302
+ headers: {
21303
+ [name: string]: unknown;
21304
+ };
21305
+ content: {
21306
+ "application/problem+json": components["schemas"]["ErrorResponse"];
21307
+ };
21308
+ };
21309
+ /** @description Not found — unknown user id, or the caller is not an instance admin */
21310
+ 404: {
21311
+ headers: {
21312
+ [name: string]: unknown;
21313
+ };
21314
+ content: {
21315
+ "application/problem+json": components["schemas"]["ErrorResponse"];
21316
+ };
21317
+ };
21318
+ /** @description Internal server error */
21319
+ 500: {
21320
+ headers: {
21321
+ [name: string]: unknown;
21322
+ };
21323
+ content: {
21324
+ "application/problem+json": components["schemas"]["ErrorResponse"];
21325
+ };
21326
+ };
21327
+ };
21328
+ };
21329
+ getAdminUserNotificationPreferences: {
21330
+ parameters: {
21331
+ query?: never;
21332
+ header?: never;
21333
+ path: {
21334
+ /** @description User id (UUID) */
21335
+ id: string;
21336
+ };
21337
+ cookie?: never;
21338
+ };
21339
+ requestBody?: never;
21340
+ responses: {
21341
+ /** @description The user's notification preferences */
21342
+ 200: {
21343
+ headers: {
21344
+ [name: string]: unknown;
21345
+ };
21346
+ content: {
21347
+ "application/json": components["schemas"]["AdminUserNotificationPreferences"];
21348
+ };
21349
+ };
21350
+ /** @description Bad request — malformed user id */
21351
+ 400: {
21352
+ headers: {
21353
+ [name: string]: unknown;
21354
+ };
21355
+ content: {
21356
+ "application/problem+json": components["schemas"]["ErrorResponse"];
21357
+ };
21358
+ };
21359
+ /** @description Not found — unknown user id, or the caller is not an instance admin */
21360
+ 404: {
21361
+ headers: {
21362
+ [name: string]: unknown;
21363
+ };
21364
+ content: {
21365
+ "application/problem+json": components["schemas"]["ErrorResponse"];
21366
+ };
21367
+ };
21368
+ /** @description Internal server error */
21369
+ 500: {
21370
+ headers: {
21371
+ [name: string]: unknown;
21372
+ };
21373
+ content: {
21374
+ "application/problem+json": components["schemas"]["ErrorResponse"];
21375
+ };
21376
+ };
21377
+ };
21378
+ };
20771
21379
  listComments: {
20772
21380
  parameters: {
20773
21381
  query: {