@vibexp/api-client 0.83.0 → 0.84.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
@@ -2641,6 +2641,124 @@ export interface paths {
2641
2641
  patch?: never;
2642
2642
  trace?: never;
2643
2643
  };
2644
+ "/api/v1/admin/teams/{id}/config/search": {
2645
+ parameters: {
2646
+ query?: never;
2647
+ header?: never;
2648
+ path?: never;
2649
+ cookie?: never;
2650
+ };
2651
+ /**
2652
+ * Get a team's search ranking settings
2653
+ * @description Returns the team's effective search ranking settings, where they came from
2654
+ * (`team` or `instance`), the instance defaults and the instance-owned
2655
+ * candidate cap.
2656
+ * Read-only. Instance-admin only; non-admin and unauthenticated requests
2657
+ * receive 404, as does an unknown team id.
2658
+ */
2659
+ get: operations["getAdminTeamSearchConfig"];
2660
+ put?: never;
2661
+ post?: never;
2662
+ delete?: never;
2663
+ options?: never;
2664
+ head?: never;
2665
+ patch?: never;
2666
+ trace?: never;
2667
+ };
2668
+ "/api/v1/admin/teams/{id}/config/ai-summary": {
2669
+ parameters: {
2670
+ query?: never;
2671
+ header?: never;
2672
+ path?: never;
2673
+ cookie?: never;
2674
+ };
2675
+ /**
2676
+ * Get a team's AI summary settings
2677
+ * @description Returns the team's effective AI summary settings, their source, the instance
2678
+ * defaults and caps, whether a model provider exists, and the selected
2679
+ * provider's name. No provider credential is ever included.
2680
+ * Read-only. Instance-admin only; non-admin and unauthenticated requests
2681
+ * receive 404, as does an unknown team id.
2682
+ */
2683
+ get: operations["getAdminTeamAISummaryConfig"];
2684
+ put?: never;
2685
+ post?: never;
2686
+ delete?: never;
2687
+ options?: never;
2688
+ head?: never;
2689
+ patch?: never;
2690
+ trace?: never;
2691
+ };
2692
+ "/api/v1/admin/teams/{id}/config/freshness": {
2693
+ parameters: {
2694
+ query?: never;
2695
+ header?: never;
2696
+ path?: never;
2697
+ cookie?: never;
2698
+ };
2699
+ /**
2700
+ * Get a team's freshness settings and rules
2701
+ * @description Returns the team's freshness settings (with source and defaults) and every
2702
+ * freshness rule, including each rule's optional project scope.
2703
+ * Read-only. Instance-admin only; non-admin and unauthenticated requests
2704
+ * receive 404, as does an unknown team id.
2705
+ */
2706
+ get: operations["getAdminTeamFreshnessConfig"];
2707
+ put?: never;
2708
+ post?: never;
2709
+ delete?: never;
2710
+ options?: never;
2711
+ head?: never;
2712
+ patch?: never;
2713
+ trace?: never;
2714
+ };
2715
+ "/api/v1/admin/teams/{id}/config/artifact-types": {
2716
+ parameters: {
2717
+ query?: never;
2718
+ header?: never;
2719
+ path?: never;
2720
+ cookie?: never;
2721
+ };
2722
+ /**
2723
+ * Get a team's artifact types
2724
+ * @description Returns the artifact types the team sees: the global system types and the
2725
+ * team's own custom types.
2726
+ * Read-only. Instance-admin only; non-admin and unauthenticated requests
2727
+ * receive 404, as does an unknown team id.
2728
+ */
2729
+ get: operations["getAdminTeamArtifactTypes"];
2730
+ put?: never;
2731
+ post?: never;
2732
+ delete?: never;
2733
+ options?: never;
2734
+ head?: never;
2735
+ patch?: never;
2736
+ trace?: never;
2737
+ };
2738
+ "/api/v1/admin/teams/{id}/config/settings-audit": {
2739
+ parameters: {
2740
+ query?: never;
2741
+ header?: never;
2742
+ path?: never;
2743
+ cookie?: never;
2744
+ };
2745
+ /**
2746
+ * List a team's settings audit log
2747
+ * @description Returns one page of the team's settings-copy audit log, newest first, with
2748
+ * actor and source-team names resolved. Each entry's `detail` is filtered to
2749
+ * a per-surface key allowlist, so no credential can surface here.
2750
+ * Read-only. Instance-admin only; non-admin and unauthenticated requests
2751
+ * receive 404, as does an unknown team id.
2752
+ */
2753
+ get: operations["listAdminTeamSettingsAudit"];
2754
+ put?: never;
2755
+ post?: never;
2756
+ delete?: never;
2757
+ options?: never;
2758
+ head?: never;
2759
+ patch?: never;
2760
+ trace?: never;
2761
+ };
2644
2762
  "/api/v1/admin/dashboard/overview": {
2645
2763
  parameters: {
2646
2764
  query?: never;
@@ -11397,6 +11515,153 @@ export interface components {
11397
11515
  */
11398
11516
  earliest_retained_at: string;
11399
11517
  };
11518
+ /**
11519
+ * @description Where the values in effect came from: `team` when the team stored its own
11520
+ * profile, `instance` when it has none and inherits the deployment defaults.
11521
+ * @example instance
11522
+ * @enum {string}
11523
+ */
11524
+ AdminTeamConfigSource: "team" | "instance";
11525
+ /** @description A complete search ranking profile. */
11526
+ AdminSearchValues: {
11527
+ recency_ranking_enabled: boolean;
11528
+ /** Format: double */
11529
+ rank_weight_relevance: number;
11530
+ /** Format: double */
11531
+ rank_weight_created: number;
11532
+ /** Format: double */
11533
+ rank_weight_updated: number;
11534
+ /** Format: double */
11535
+ rank_half_life_days: number;
11536
+ };
11537
+ /** @description A team's effective search ranking settings (GET /api/v1/admin/teams/{id}/config/search). */
11538
+ AdminTeamSearchConfig: {
11539
+ source: components["schemas"]["AdminTeamConfigSource"];
11540
+ values: components["schemas"]["AdminSearchValues"];
11541
+ instance_defaults: components["schemas"]["AdminSearchValues"];
11542
+ /** @description Instance-owned cap on rows re-ranked per search; never team-configurable. */
11543
+ rank_candidate_cap: number;
11544
+ };
11545
+ /** @description A complete AI summary profile. */
11546
+ AdminAISummaryValues: {
11547
+ enabled: boolean;
11548
+ /**
11549
+ * Format: uuid
11550
+ * @description The selected model provider; `null` means the team's default provider.
11551
+ */
11552
+ model_provider_id: string | null;
11553
+ top_n: number;
11554
+ /** @enum {string} */
11555
+ style: "concise" | "balanced" | "detailed";
11556
+ max_output_tokens: number;
11557
+ };
11558
+ /** @description A team's effective AI summary settings (GET /api/v1/admin/teams/{id}/config/ai-summary). */
11559
+ AdminTeamAISummaryConfig: {
11560
+ source: components["schemas"]["AdminTeamConfigSource"];
11561
+ values: components["schemas"]["AdminAISummaryValues"];
11562
+ instance_defaults: components["schemas"]["AdminAISummaryValues"];
11563
+ /**
11564
+ * @description Name of the provider `values.model_provider_id` selects. `null` when no
11565
+ * provider is selected or the id no longer resolves to one of the team's
11566
+ * providers.
11567
+ */
11568
+ model_provider_name: string | null;
11569
+ /** @description Instance-owned upper bound on `top_n`. */
11570
+ max_top_n: number;
11571
+ /** @description Instance-owned upper bound on `max_output_tokens`. */
11572
+ max_output_tokens_ceiling: number;
11573
+ /** @description Whether the team has at least one model provider (existence, not health). */
11574
+ available: boolean;
11575
+ };
11576
+ /** @description A team's freshness evaluation settings. */
11577
+ AdminFreshnessValues: {
11578
+ interval_seconds: number;
11579
+ reversibility_enabled: boolean;
11580
+ };
11581
+ /** @description One freshness rule. */
11582
+ AdminFreshnessRule: {
11583
+ /** Format: uuid */
11584
+ id: string;
11585
+ /**
11586
+ * Format: uuid
11587
+ * @description The project the rule is scoped to; `null` for a team-wide rule.
11588
+ */
11589
+ project_id: string | null;
11590
+ resource_types: string[];
11591
+ /** @description Access mediums that count as "accessed". Empty means any medium. */
11592
+ mediums: string[];
11593
+ threshold_days: number;
11594
+ enabled: boolean;
11595
+ /** Format: date-time */
11596
+ created_at: string;
11597
+ /** Format: date-time */
11598
+ updated_at: string;
11599
+ };
11600
+ /** @description A team's freshness settings and rules (GET /api/v1/admin/teams/{id}/config/freshness). */
11601
+ AdminTeamFreshnessConfig: {
11602
+ source: components["schemas"]["AdminTeamConfigSource"];
11603
+ values: components["schemas"]["AdminFreshnessValues"];
11604
+ defaults: components["schemas"]["AdminFreshnessValues"];
11605
+ /** @description Every rule, oldest first. `[]` when the team has none. */
11606
+ rules: components["schemas"]["AdminFreshnessRule"][];
11607
+ };
11608
+ /** @description One artifact type visible to the team. */
11609
+ AdminArtifactType: {
11610
+ /** Format: uuid */
11611
+ id: string;
11612
+ slug: string;
11613
+ name: string;
11614
+ /** @description True for a global system default, false for the team's own custom type. */
11615
+ is_system: boolean;
11616
+ /** Format: date-time */
11617
+ created_at: string;
11618
+ /** Format: date-time */
11619
+ updated_at: string;
11620
+ };
11621
+ /** @description The artifact types a team sees (GET /api/v1/admin/teams/{id}/config/artifact-types). */
11622
+ AdminTeamArtifactTypes: {
11623
+ /** @description System types first, then custom types, each by name. */
11624
+ types: components["schemas"]["AdminArtifactType"][];
11625
+ };
11626
+ /** @description One recorded settings copy into the team. */
11627
+ AdminTeamSettingsAuditEntry: {
11628
+ /** Format: uuid */
11629
+ id: string;
11630
+ /** @enum {string} */
11631
+ surface: "embedding_provider" | "model_provider" | "custom_types";
11632
+ /** Format: uuid */
11633
+ actor_user_id: string | null;
11634
+ actor_name: string | null;
11635
+ /** Format: uuid */
11636
+ source_team_id: string | null;
11637
+ source_team_name: string | null;
11638
+ /** Format: uuid */
11639
+ source_resource_id: string | null;
11640
+ /** Format: uuid */
11641
+ created_resource_id: string | null;
11642
+ /**
11643
+ * @description Surface-specific facts, filtered to a per-surface key allowlist
11644
+ * (model_provider: source_name, created_name, provider_type, model,
11645
+ * has_api_key; embedding_provider: the same plus becomes_active,
11646
+ * displaced_model, displaced_embedded_resources; custom_types: added_ids,
11647
+ * added_slugs, skipped_slugs). Any other stored key is dropped. Always an
11648
+ * object, never null.
11649
+ */
11650
+ detail: {
11651
+ [key: string]: unknown;
11652
+ };
11653
+ /** Format: date-time */
11654
+ created_at: string;
11655
+ };
11656
+ /** @description A page of the team's settings audit log, newest first. */
11657
+ AdminTeamSettingsAuditListResponse: {
11658
+ /** @description Serializes as `[]` when the page is empty, never `null`. */
11659
+ entries: components["schemas"]["AdminTeamSettingsAuditEntry"][];
11660
+ total_count: number;
11661
+ page: number;
11662
+ per_page: number;
11663
+ total_pages: number;
11664
+ };
11400
11665
  ProjectResponse: components["schemas"]["Project"] & {
11401
11666
  /**
11402
11667
  * @description Whether the project's git URL matches a repository accessible via the team's GitHub App installation
@@ -21104,6 +21369,261 @@ export interface operations {
21104
21369
  };
21105
21370
  };
21106
21371
  };
21372
+ getAdminTeamSearchConfig: {
21373
+ parameters: {
21374
+ query?: never;
21375
+ header?: never;
21376
+ path: {
21377
+ /** @description Team id (UUID) */
21378
+ id: string;
21379
+ };
21380
+ cookie?: never;
21381
+ };
21382
+ requestBody?: never;
21383
+ responses: {
21384
+ /** @description The team's search ranking settings */
21385
+ 200: {
21386
+ headers: {
21387
+ [name: string]: unknown;
21388
+ };
21389
+ content: {
21390
+ "application/json": components["schemas"]["AdminTeamSearchConfig"];
21391
+ };
21392
+ };
21393
+ /** @description Bad request — malformed team id */
21394
+ 400: {
21395
+ headers: {
21396
+ [name: string]: unknown;
21397
+ };
21398
+ content: {
21399
+ "application/problem+json": components["schemas"]["ErrorResponse"];
21400
+ };
21401
+ };
21402
+ /** @description Not found — unknown team id, or the caller is not an instance admin */
21403
+ 404: {
21404
+ headers: {
21405
+ [name: string]: unknown;
21406
+ };
21407
+ content: {
21408
+ "application/problem+json": components["schemas"]["ErrorResponse"];
21409
+ };
21410
+ };
21411
+ /** @description Internal server error */
21412
+ 500: {
21413
+ headers: {
21414
+ [name: string]: unknown;
21415
+ };
21416
+ content: {
21417
+ "application/problem+json": components["schemas"]["ErrorResponse"];
21418
+ };
21419
+ };
21420
+ };
21421
+ };
21422
+ getAdminTeamAISummaryConfig: {
21423
+ parameters: {
21424
+ query?: never;
21425
+ header?: never;
21426
+ path: {
21427
+ /** @description Team id (UUID) */
21428
+ id: string;
21429
+ };
21430
+ cookie?: never;
21431
+ };
21432
+ requestBody?: never;
21433
+ responses: {
21434
+ /** @description The team's AI summary settings */
21435
+ 200: {
21436
+ headers: {
21437
+ [name: string]: unknown;
21438
+ };
21439
+ content: {
21440
+ "application/json": components["schemas"]["AdminTeamAISummaryConfig"];
21441
+ };
21442
+ };
21443
+ /** @description Bad request — malformed team id */
21444
+ 400: {
21445
+ headers: {
21446
+ [name: string]: unknown;
21447
+ };
21448
+ content: {
21449
+ "application/problem+json": components["schemas"]["ErrorResponse"];
21450
+ };
21451
+ };
21452
+ /** @description Not found — unknown team id, or the caller is not an instance admin */
21453
+ 404: {
21454
+ headers: {
21455
+ [name: string]: unknown;
21456
+ };
21457
+ content: {
21458
+ "application/problem+json": components["schemas"]["ErrorResponse"];
21459
+ };
21460
+ };
21461
+ /** @description Internal server error */
21462
+ 500: {
21463
+ headers: {
21464
+ [name: string]: unknown;
21465
+ };
21466
+ content: {
21467
+ "application/problem+json": components["schemas"]["ErrorResponse"];
21468
+ };
21469
+ };
21470
+ };
21471
+ };
21472
+ getAdminTeamFreshnessConfig: {
21473
+ parameters: {
21474
+ query?: never;
21475
+ header?: never;
21476
+ path: {
21477
+ /** @description Team id (UUID) */
21478
+ id: string;
21479
+ };
21480
+ cookie?: never;
21481
+ };
21482
+ requestBody?: never;
21483
+ responses: {
21484
+ /** @description The team's freshness settings and rules */
21485
+ 200: {
21486
+ headers: {
21487
+ [name: string]: unknown;
21488
+ };
21489
+ content: {
21490
+ "application/json": components["schemas"]["AdminTeamFreshnessConfig"];
21491
+ };
21492
+ };
21493
+ /** @description Bad request — malformed team id */
21494
+ 400: {
21495
+ headers: {
21496
+ [name: string]: unknown;
21497
+ };
21498
+ content: {
21499
+ "application/problem+json": components["schemas"]["ErrorResponse"];
21500
+ };
21501
+ };
21502
+ /** @description Not found — unknown team id, or the caller is not an instance admin */
21503
+ 404: {
21504
+ headers: {
21505
+ [name: string]: unknown;
21506
+ };
21507
+ content: {
21508
+ "application/problem+json": components["schemas"]["ErrorResponse"];
21509
+ };
21510
+ };
21511
+ /** @description Internal server error */
21512
+ 500: {
21513
+ headers: {
21514
+ [name: string]: unknown;
21515
+ };
21516
+ content: {
21517
+ "application/problem+json": components["schemas"]["ErrorResponse"];
21518
+ };
21519
+ };
21520
+ };
21521
+ };
21522
+ getAdminTeamArtifactTypes: {
21523
+ parameters: {
21524
+ query?: never;
21525
+ header?: never;
21526
+ path: {
21527
+ /** @description Team id (UUID) */
21528
+ id: string;
21529
+ };
21530
+ cookie?: never;
21531
+ };
21532
+ requestBody?: never;
21533
+ responses: {
21534
+ /** @description The team's artifact types */
21535
+ 200: {
21536
+ headers: {
21537
+ [name: string]: unknown;
21538
+ };
21539
+ content: {
21540
+ "application/json": components["schemas"]["AdminTeamArtifactTypes"];
21541
+ };
21542
+ };
21543
+ /** @description Bad request — malformed team id */
21544
+ 400: {
21545
+ headers: {
21546
+ [name: string]: unknown;
21547
+ };
21548
+ content: {
21549
+ "application/problem+json": components["schemas"]["ErrorResponse"];
21550
+ };
21551
+ };
21552
+ /** @description Not found — unknown team id, or the caller is not an instance admin */
21553
+ 404: {
21554
+ headers: {
21555
+ [name: string]: unknown;
21556
+ };
21557
+ content: {
21558
+ "application/problem+json": components["schemas"]["ErrorResponse"];
21559
+ };
21560
+ };
21561
+ /** @description Internal server error */
21562
+ 500: {
21563
+ headers: {
21564
+ [name: string]: unknown;
21565
+ };
21566
+ content: {
21567
+ "application/problem+json": components["schemas"]["ErrorResponse"];
21568
+ };
21569
+ };
21570
+ };
21571
+ };
21572
+ listAdminTeamSettingsAudit: {
21573
+ parameters: {
21574
+ query?: {
21575
+ /** @description Page number (1-based). */
21576
+ page?: number;
21577
+ /** @description Page size. */
21578
+ limit?: number;
21579
+ };
21580
+ header?: never;
21581
+ path: {
21582
+ /** @description Team id (UUID) */
21583
+ id: string;
21584
+ };
21585
+ cookie?: never;
21586
+ };
21587
+ requestBody?: never;
21588
+ responses: {
21589
+ /** @description One page of settings audit entries, newest first */
21590
+ 200: {
21591
+ headers: {
21592
+ [name: string]: unknown;
21593
+ };
21594
+ content: {
21595
+ "application/json": components["schemas"]["AdminTeamSettingsAuditListResponse"];
21596
+ };
21597
+ };
21598
+ /** @description Bad request — malformed team id, or `page`/`limit` out of range */
21599
+ 400: {
21600
+ headers: {
21601
+ [name: string]: unknown;
21602
+ };
21603
+ content: {
21604
+ "application/problem+json": components["schemas"]["ErrorResponse"];
21605
+ };
21606
+ };
21607
+ /** @description Not found — unknown team id, or the caller is not an instance admin */
21608
+ 404: {
21609
+ headers: {
21610
+ [name: string]: unknown;
21611
+ };
21612
+ content: {
21613
+ "application/problem+json": components["schemas"]["ErrorResponse"];
21614
+ };
21615
+ };
21616
+ /** @description Internal server error */
21617
+ 500: {
21618
+ headers: {
21619
+ [name: string]: unknown;
21620
+ };
21621
+ content: {
21622
+ "application/problem+json": components["schemas"]["ErrorResponse"];
21623
+ };
21624
+ };
21625
+ };
21626
+ };
21107
21627
  getAdminDashboardOverview: {
21108
21628
  parameters: {
21109
21629
  query?: never;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vibexp/api-client",
3
- "version": "0.83.0",
3
+ "version": "0.84.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": {