@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.
@@ -5446,6 +5446,174 @@ export type AdminTopAccessedResourcesResponse = {
5446
5446
  */
5447
5447
  earliest_retained_at: string;
5448
5448
  };
5449
+ /**
5450
+ * Where the values in effect came from: `team` when the team stored its own
5451
+ * profile, `instance` when it has none and inherits the deployment defaults.
5452
+ *
5453
+ */
5454
+ export type AdminTeamConfigSource = 'team' | 'instance';
5455
+ /**
5456
+ * A complete search ranking profile.
5457
+ */
5458
+ export type AdminSearchValues = {
5459
+ recency_ranking_enabled: boolean;
5460
+ rank_weight_relevance: number;
5461
+ rank_weight_created: number;
5462
+ rank_weight_updated: number;
5463
+ rank_half_life_days: number;
5464
+ };
5465
+ /**
5466
+ * A team's effective search ranking settings (GET /api/v1/admin/teams/{id}/config/search).
5467
+ */
5468
+ export type AdminTeamSearchConfig = {
5469
+ source: AdminTeamConfigSource;
5470
+ values: AdminSearchValues;
5471
+ instance_defaults: AdminSearchValues;
5472
+ /**
5473
+ * Instance-owned cap on rows re-ranked per search; never team-configurable.
5474
+ */
5475
+ rank_candidate_cap: number;
5476
+ };
5477
+ /**
5478
+ * A complete AI summary profile.
5479
+ */
5480
+ export type AdminAiSummaryValues = {
5481
+ enabled: boolean;
5482
+ /**
5483
+ * The selected model provider; `null` means the team's default provider.
5484
+ */
5485
+ model_provider_id: string | null;
5486
+ top_n: number;
5487
+ style: 'concise' | 'balanced' | 'detailed';
5488
+ max_output_tokens: number;
5489
+ };
5490
+ /**
5491
+ * A team's effective AI summary settings (GET /api/v1/admin/teams/{id}/config/ai-summary).
5492
+ */
5493
+ export type AdminTeamAiSummaryConfig = {
5494
+ source: AdminTeamConfigSource;
5495
+ values: AdminAiSummaryValues;
5496
+ instance_defaults: AdminAiSummaryValues;
5497
+ /**
5498
+ * Name of the provider `values.model_provider_id` selects. `null` when no
5499
+ * provider is selected or the id no longer resolves to one of the team's
5500
+ * providers.
5501
+ *
5502
+ */
5503
+ model_provider_name: string | null;
5504
+ /**
5505
+ * Instance-owned upper bound on `top_n`.
5506
+ */
5507
+ max_top_n: number;
5508
+ /**
5509
+ * Instance-owned upper bound on `max_output_tokens`.
5510
+ */
5511
+ max_output_tokens_ceiling: number;
5512
+ /**
5513
+ * Whether the team has at least one model provider (existence, not health).
5514
+ */
5515
+ available: boolean;
5516
+ };
5517
+ /**
5518
+ * A team's freshness evaluation settings.
5519
+ */
5520
+ export type AdminFreshnessValues = {
5521
+ interval_seconds: number;
5522
+ reversibility_enabled: boolean;
5523
+ };
5524
+ /**
5525
+ * One freshness rule.
5526
+ */
5527
+ export type AdminFreshnessRule = {
5528
+ id: string;
5529
+ /**
5530
+ * The project the rule is scoped to; `null` for a team-wide rule.
5531
+ */
5532
+ project_id: string | null;
5533
+ resource_types: Array<string>;
5534
+ /**
5535
+ * Access mediums that count as "accessed". Empty means any medium.
5536
+ */
5537
+ mediums: Array<string>;
5538
+ threshold_days: number;
5539
+ enabled: boolean;
5540
+ created_at: string;
5541
+ updated_at: string;
5542
+ };
5543
+ /**
5544
+ * A team's freshness settings and rules (GET /api/v1/admin/teams/{id}/config/freshness).
5545
+ */
5546
+ export type AdminTeamFreshnessConfig = {
5547
+ source: AdminTeamConfigSource;
5548
+ values: AdminFreshnessValues;
5549
+ defaults: AdminFreshnessValues;
5550
+ /**
5551
+ * Every rule, oldest first. `[]` when the team has none.
5552
+ */
5553
+ rules: Array<AdminFreshnessRule>;
5554
+ };
5555
+ /**
5556
+ * One artifact type visible to the team.
5557
+ */
5558
+ export type AdminArtifactType = {
5559
+ id: string;
5560
+ slug: string;
5561
+ name: string;
5562
+ /**
5563
+ * True for a global system default, false for the team's own custom type.
5564
+ */
5565
+ is_system: boolean;
5566
+ created_at: string;
5567
+ updated_at: string;
5568
+ };
5569
+ /**
5570
+ * The artifact types a team sees (GET /api/v1/admin/teams/{id}/config/artifact-types).
5571
+ */
5572
+ export type AdminTeamArtifactTypes = {
5573
+ /**
5574
+ * System types first, then custom types, each by name.
5575
+ */
5576
+ types: Array<AdminArtifactType>;
5577
+ };
5578
+ /**
5579
+ * One recorded settings copy into the team.
5580
+ */
5581
+ export type AdminTeamSettingsAuditEntry = {
5582
+ id: string;
5583
+ surface: 'embedding_provider' | 'model_provider' | 'custom_types';
5584
+ actor_user_id: string | null;
5585
+ actor_name: string | null;
5586
+ source_team_id: string | null;
5587
+ source_team_name: string | null;
5588
+ source_resource_id: string | null;
5589
+ created_resource_id: string | null;
5590
+ /**
5591
+ * Surface-specific facts, filtered to a per-surface key allowlist
5592
+ * (model_provider: source_name, created_name, provider_type, model,
5593
+ * has_api_key; embedding_provider: the same plus becomes_active,
5594
+ * displaced_model, displaced_embedded_resources; custom_types: added_ids,
5595
+ * added_slugs, skipped_slugs). Any other stored key is dropped. Always an
5596
+ * object, never null.
5597
+ *
5598
+ */
5599
+ detail: {
5600
+ [key: string]: unknown;
5601
+ };
5602
+ created_at: string;
5603
+ };
5604
+ /**
5605
+ * A page of the team's settings audit log, newest first.
5606
+ */
5607
+ export type AdminTeamSettingsAuditListResponse = {
5608
+ /**
5609
+ * Serializes as `[]` when the page is empty, never `null`.
5610
+ */
5611
+ entries: Array<AdminTeamSettingsAuditEntry>;
5612
+ total_count: number;
5613
+ page: number;
5614
+ per_page: number;
5615
+ total_pages: number;
5616
+ };
5449
5617
  export type ProjectResponse = Project & {
5450
5618
  /**
5451
5619
  * Whether the project's git URL matches a repository accessible via the team's GitHub App installation
@@ -12394,6 +12562,180 @@ export type GetAdminTeamResponses = {
12394
12562
  200: AdminTeamDetail;
12395
12563
  };
12396
12564
  export type GetAdminTeamResponse = GetAdminTeamResponses[keyof GetAdminTeamResponses];
12565
+ export type GetAdminTeamSearchConfigData = {
12566
+ body?: never;
12567
+ path: {
12568
+ /**
12569
+ * Team id (UUID)
12570
+ */
12571
+ id: string;
12572
+ };
12573
+ query?: never;
12574
+ url: '/api/v1/admin/teams/{id}/config/search';
12575
+ };
12576
+ export type GetAdminTeamSearchConfigErrors = {
12577
+ /**
12578
+ * Bad request — malformed team id
12579
+ */
12580
+ 400: ErrorResponse;
12581
+ /**
12582
+ * Not found — unknown team id, or the caller is not an instance admin
12583
+ */
12584
+ 404: ErrorResponse;
12585
+ /**
12586
+ * Internal server error
12587
+ */
12588
+ 500: ErrorResponse;
12589
+ };
12590
+ export type GetAdminTeamSearchConfigError = GetAdminTeamSearchConfigErrors[keyof GetAdminTeamSearchConfigErrors];
12591
+ export type GetAdminTeamSearchConfigResponses = {
12592
+ /**
12593
+ * The team's search ranking settings
12594
+ */
12595
+ 200: AdminTeamSearchConfig;
12596
+ };
12597
+ export type GetAdminTeamSearchConfigResponse = GetAdminTeamSearchConfigResponses[keyof GetAdminTeamSearchConfigResponses];
12598
+ export type GetAdminTeamAiSummaryConfigData = {
12599
+ body?: never;
12600
+ path: {
12601
+ /**
12602
+ * Team id (UUID)
12603
+ */
12604
+ id: string;
12605
+ };
12606
+ query?: never;
12607
+ url: '/api/v1/admin/teams/{id}/config/ai-summary';
12608
+ };
12609
+ export type GetAdminTeamAiSummaryConfigErrors = {
12610
+ /**
12611
+ * Bad request — malformed team id
12612
+ */
12613
+ 400: ErrorResponse;
12614
+ /**
12615
+ * Not found — unknown team id, or the caller is not an instance admin
12616
+ */
12617
+ 404: ErrorResponse;
12618
+ /**
12619
+ * Internal server error
12620
+ */
12621
+ 500: ErrorResponse;
12622
+ };
12623
+ export type GetAdminTeamAiSummaryConfigError = GetAdminTeamAiSummaryConfigErrors[keyof GetAdminTeamAiSummaryConfigErrors];
12624
+ export type GetAdminTeamAiSummaryConfigResponses = {
12625
+ /**
12626
+ * The team's AI summary settings
12627
+ */
12628
+ 200: AdminTeamAiSummaryConfig;
12629
+ };
12630
+ export type GetAdminTeamAiSummaryConfigResponse = GetAdminTeamAiSummaryConfigResponses[keyof GetAdminTeamAiSummaryConfigResponses];
12631
+ export type GetAdminTeamFreshnessConfigData = {
12632
+ body?: never;
12633
+ path: {
12634
+ /**
12635
+ * Team id (UUID)
12636
+ */
12637
+ id: string;
12638
+ };
12639
+ query?: never;
12640
+ url: '/api/v1/admin/teams/{id}/config/freshness';
12641
+ };
12642
+ export type GetAdminTeamFreshnessConfigErrors = {
12643
+ /**
12644
+ * Bad request — malformed team id
12645
+ */
12646
+ 400: ErrorResponse;
12647
+ /**
12648
+ * Not found — unknown team id, or the caller is not an instance admin
12649
+ */
12650
+ 404: ErrorResponse;
12651
+ /**
12652
+ * Internal server error
12653
+ */
12654
+ 500: ErrorResponse;
12655
+ };
12656
+ export type GetAdminTeamFreshnessConfigError = GetAdminTeamFreshnessConfigErrors[keyof GetAdminTeamFreshnessConfigErrors];
12657
+ export type GetAdminTeamFreshnessConfigResponses = {
12658
+ /**
12659
+ * The team's freshness settings and rules
12660
+ */
12661
+ 200: AdminTeamFreshnessConfig;
12662
+ };
12663
+ export type GetAdminTeamFreshnessConfigResponse = GetAdminTeamFreshnessConfigResponses[keyof GetAdminTeamFreshnessConfigResponses];
12664
+ export type GetAdminTeamArtifactTypesData = {
12665
+ body?: never;
12666
+ path: {
12667
+ /**
12668
+ * Team id (UUID)
12669
+ */
12670
+ id: string;
12671
+ };
12672
+ query?: never;
12673
+ url: '/api/v1/admin/teams/{id}/config/artifact-types';
12674
+ };
12675
+ export type GetAdminTeamArtifactTypesErrors = {
12676
+ /**
12677
+ * Bad request — malformed team id
12678
+ */
12679
+ 400: ErrorResponse;
12680
+ /**
12681
+ * Not found — unknown team id, or the caller is not an instance admin
12682
+ */
12683
+ 404: ErrorResponse;
12684
+ /**
12685
+ * Internal server error
12686
+ */
12687
+ 500: ErrorResponse;
12688
+ };
12689
+ export type GetAdminTeamArtifactTypesError = GetAdminTeamArtifactTypesErrors[keyof GetAdminTeamArtifactTypesErrors];
12690
+ export type GetAdminTeamArtifactTypesResponses = {
12691
+ /**
12692
+ * The team's artifact types
12693
+ */
12694
+ 200: AdminTeamArtifactTypes;
12695
+ };
12696
+ export type GetAdminTeamArtifactTypesResponse = GetAdminTeamArtifactTypesResponses[keyof GetAdminTeamArtifactTypesResponses];
12697
+ export type ListAdminTeamSettingsAuditData = {
12698
+ body?: never;
12699
+ path: {
12700
+ /**
12701
+ * Team id (UUID)
12702
+ */
12703
+ id: string;
12704
+ };
12705
+ query?: {
12706
+ /**
12707
+ * Page number (1-based).
12708
+ */
12709
+ page?: number;
12710
+ /**
12711
+ * Page size.
12712
+ */
12713
+ limit?: number;
12714
+ };
12715
+ url: '/api/v1/admin/teams/{id}/config/settings-audit';
12716
+ };
12717
+ export type ListAdminTeamSettingsAuditErrors = {
12718
+ /**
12719
+ * Bad request — malformed team id, or `page`/`limit` out of range
12720
+ */
12721
+ 400: ErrorResponse;
12722
+ /**
12723
+ * Not found — unknown team id, or the caller is not an instance admin
12724
+ */
12725
+ 404: ErrorResponse;
12726
+ /**
12727
+ * Internal server error
12728
+ */
12729
+ 500: ErrorResponse;
12730
+ };
12731
+ export type ListAdminTeamSettingsAuditError = ListAdminTeamSettingsAuditErrors[keyof ListAdminTeamSettingsAuditErrors];
12732
+ export type ListAdminTeamSettingsAuditResponses = {
12733
+ /**
12734
+ * One page of settings audit entries, newest first
12735
+ */
12736
+ 200: AdminTeamSettingsAuditListResponse;
12737
+ };
12738
+ export type ListAdminTeamSettingsAuditResponse = ListAdminTeamSettingsAuditResponses[keyof ListAdminTeamSettingsAuditResponses];
12397
12739
  export type GetAdminDashboardOverviewData = {
12398
12740
  body?: never;
12399
12741
  path?: never;