@vibexp/api-client 0.83.0 → 0.85.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,223 @@ 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
+ };
2762
+ "/api/v1/admin/teams/{id}/config/model-providers": {
2763
+ parameters: {
2764
+ query?: never;
2765
+ header?: never;
2766
+ path?: never;
2767
+ cookie?: never;
2768
+ };
2769
+ /**
2770
+ * Get a team's model providers
2771
+ * @description Returns the team's model (LLM) providers. No API key or configuration value
2772
+ * is ever included: a stored key surfaces only as `has_api_key`, the
2773
+ * provider `configuration` only as its sorted top-level key names, and
2774
+ * `base_url` without userinfo, query string or fragment.
2775
+ * Read-only. Instance-admin only; non-admin and unauthenticated requests
2776
+ * receive 404, as does an unknown team id.
2777
+ */
2778
+ get: operations["getAdminTeamModelProviders"];
2779
+ put?: never;
2780
+ post?: never;
2781
+ delete?: never;
2782
+ options?: never;
2783
+ head?: never;
2784
+ patch?: never;
2785
+ trace?: never;
2786
+ };
2787
+ "/api/v1/admin/teams/{id}/config/embedding-providers": {
2788
+ parameters: {
2789
+ query?: never;
2790
+ header?: never;
2791
+ path?: never;
2792
+ cookie?: never;
2793
+ };
2794
+ /**
2795
+ * Get a team's embedding providers and coverage
2796
+ * @description Returns the team's embedding providers, redacted exactly like the model
2797
+ * providers, plus per-entity-type embedding coverage counts under the active
2798
+ * provider's model.
2799
+ * Read-only. Instance-admin only; non-admin and unauthenticated requests
2800
+ * receive 404, as does an unknown team id.
2801
+ */
2802
+ get: operations["getAdminTeamEmbeddingProviders"];
2803
+ put?: never;
2804
+ post?: never;
2805
+ delete?: never;
2806
+ options?: never;
2807
+ head?: never;
2808
+ patch?: never;
2809
+ trace?: never;
2810
+ };
2811
+ "/api/v1/admin/teams/{id}/config/email-provider": {
2812
+ parameters: {
2813
+ query?: never;
2814
+ header?: never;
2815
+ path?: never;
2816
+ cookie?: never;
2817
+ };
2818
+ /**
2819
+ * Get a team's email provider
2820
+ * @description Returns the team's effective email provider: its own when configured
2821
+ * (`source: team`), otherwise the instance provider (`source: instance`).
2822
+ * The credential surfaces only as `has_secret`; the last error text and the
2823
+ * SMTP username are never included. `status` is derived from the last
2824
+ * success/error timestamps.
2825
+ * Read-only. Instance-admin only; non-admin and unauthenticated requests
2826
+ * receive 404, as does an unknown team id.
2827
+ */
2828
+ get: operations["getAdminTeamEmailProvider"];
2829
+ put?: never;
2830
+ post?: never;
2831
+ delete?: never;
2832
+ options?: never;
2833
+ head?: never;
2834
+ patch?: never;
2835
+ trace?: never;
2836
+ };
2837
+ "/api/v1/admin/teams/{id}/config/github": {
2838
+ parameters: {
2839
+ query?: never;
2840
+ header?: never;
2841
+ path?: never;
2842
+ cookie?: never;
2843
+ };
2844
+ /**
2845
+ * Get a team's GitHub integration
2846
+ * @description Returns the team's GitHub App registration (secrets as `has_*` booleans, no
2847
+ * webhook URL or routing token; `null` when none is registered) and its
2848
+ * installation status as last recorded. Makes no call to GitHub.
2849
+ * Read-only. Instance-admin only; non-admin and unauthenticated requests
2850
+ * receive 404, as does an unknown team id.
2851
+ */
2852
+ get: operations["getAdminTeamGitHubConfig"];
2853
+ put?: never;
2854
+ post?: never;
2855
+ delete?: never;
2856
+ options?: never;
2857
+ head?: never;
2858
+ patch?: never;
2859
+ trace?: never;
2860
+ };
2644
2861
  "/api/v1/admin/dashboard/overview": {
2645
2862
  parameters: {
2646
2863
  query?: never;
@@ -11397,70 +11614,413 @@ export interface components {
11397
11614
  */
11398
11615
  earliest_retained_at: string;
11399
11616
  };
11400
- ProjectResponse: components["schemas"]["Project"] & {
11617
+ /**
11618
+ * @description Where the values in effect came from: `team` when the team stored its own
11619
+ * profile, `instance` when it has none and inherits the deployment defaults.
11620
+ * @example instance
11621
+ * @enum {string}
11622
+ */
11623
+ AdminTeamConfigSource: "team" | "instance";
11624
+ /** @description A complete search ranking profile. */
11625
+ AdminSearchValues: {
11626
+ recency_ranking_enabled: boolean;
11627
+ /** Format: double */
11628
+ rank_weight_relevance: number;
11629
+ /** Format: double */
11630
+ rank_weight_created: number;
11631
+ /** Format: double */
11632
+ rank_weight_updated: number;
11633
+ /** Format: double */
11634
+ rank_half_life_days: number;
11635
+ };
11636
+ /** @description A team's effective search ranking settings (GET /api/v1/admin/teams/{id}/config/search). */
11637
+ AdminTeamSearchConfig: {
11638
+ source: components["schemas"]["AdminTeamConfigSource"];
11639
+ values: components["schemas"]["AdminSearchValues"];
11640
+ instance_defaults: components["schemas"]["AdminSearchValues"];
11641
+ /** @description Instance-owned cap on rows re-ranked per search; never team-configurable. */
11642
+ rank_candidate_cap: number;
11643
+ };
11644
+ /** @description A complete AI summary profile. */
11645
+ AdminAISummaryValues: {
11646
+ enabled: boolean;
11401
11647
  /**
11402
- * @description Whether the project's git URL matches a repository accessible via the team's GitHub App installation
11403
- * @example true
11648
+ * Format: uuid
11649
+ * @description The selected model provider; `null` means the team's default provider.
11404
11650
  */
11405
- github_connected: boolean;
11651
+ model_provider_id: string | null;
11652
+ top_n: number;
11653
+ /** @enum {string} */
11654
+ style: "concise" | "balanced" | "detailed";
11655
+ max_output_tokens: number;
11406
11656
  };
11407
- ResourceSelection: {
11657
+ /** @description A team's effective AI summary settings (GET /api/v1/admin/teams/{id}/config/ai-summary). */
11658
+ AdminTeamAISummaryConfig: {
11659
+ source: components["schemas"]["AdminTeamConfigSource"];
11660
+ values: components["schemas"]["AdminAISummaryValues"];
11661
+ instance_defaults: components["schemas"]["AdminAISummaryValues"];
11408
11662
  /**
11409
- * @description Migrate every resource of this type in the source project
11410
- * @example false
11663
+ * @description Name of the provider `values.model_provider_id` selects. `null` when no
11664
+ * provider is selected or the id no longer resolves to one of the team's
11665
+ * providers.
11411
11666
  */
11412
- all?: boolean;
11413
- /** @description Explicit list of resource IDs to migrate (used when all is false) */
11414
- ids?: string[];
11667
+ model_provider_name: string | null;
11668
+ /** @description Instance-owned upper bound on `top_n`. */
11669
+ max_top_n: number;
11670
+ /** @description Instance-owned upper bound on `max_output_tokens`. */
11671
+ max_output_tokens_ceiling: number;
11672
+ /** @description Whether the team has at least one model provider (existence, not health). */
11673
+ available: boolean;
11415
11674
  };
11416
- ResourceSelections: {
11417
- prompts?: components["schemas"]["ResourceSelection"];
11418
- artifacts?: components["schemas"]["ResourceSelection"];
11419
- blueprints?: components["schemas"]["ResourceSelection"];
11420
- feed_items?: components["schemas"]["ResourceSelection"];
11675
+ /** @description A team's freshness evaluation settings. */
11676
+ AdminFreshnessValues: {
11677
+ interval_seconds: number;
11678
+ reversibility_enabled: boolean;
11421
11679
  };
11422
- MigrationRequest: {
11680
+ /** @description One freshness rule. */
11681
+ AdminFreshnessRule: {
11682
+ /** Format: uuid */
11683
+ id: string;
11423
11684
  /**
11424
11685
  * Format: uuid
11425
- * @description ID of the destination project (must belong to the same team)
11426
- * @example 01234567-89ab-cdef-0123-456789abcdef
11427
- */
11428
- destination_project_id: string;
11429
- resources?: components["schemas"]["ResourceSelections"];
11430
- /**
11431
- * @description How slug collisions in the destination project are handled
11432
- * @default skip
11433
- * @enum {string}
11686
+ * @description The project the rule is scoped to; `null` for a team-wide rule.
11434
11687
  */
11435
- conflict_policy: "skip" | "rename" | "overwrite";
11688
+ project_id: string | null;
11689
+ resource_types: string[];
11690
+ /** @description Access mediums that count as "accessed". Empty means any medium. */
11691
+ mediums: string[];
11692
+ threshold_days: number;
11693
+ enabled: boolean;
11694
+ /** Format: date-time */
11695
+ created_at: string;
11696
+ /** Format: date-time */
11697
+ updated_at: string;
11436
11698
  };
11437
- ResourceInventoryItem: {
11438
- /** @description Resource identifier */
11699
+ /** @description A team's freshness settings and rules (GET /api/v1/admin/teams/{id}/config/freshness). */
11700
+ AdminTeamFreshnessConfig: {
11701
+ source: components["schemas"]["AdminTeamConfigSource"];
11702
+ values: components["schemas"]["AdminFreshnessValues"];
11703
+ defaults: components["schemas"]["AdminFreshnessValues"];
11704
+ /** @description Every rule, oldest first. `[]` when the team has none. */
11705
+ rules: components["schemas"]["AdminFreshnessRule"][];
11706
+ };
11707
+ /** @description One artifact type visible to the team. */
11708
+ AdminArtifactType: {
11709
+ /** Format: uuid */
11439
11710
  id: string;
11440
- /** @description Human-readable resource name */
11711
+ slug: string;
11441
11712
  name: string;
11713
+ /** @description True for a global system default, false for the team's own custom type. */
11714
+ is_system: boolean;
11715
+ /** Format: date-time */
11716
+ created_at: string;
11717
+ /** Format: date-time */
11718
+ updated_at: string;
11442
11719
  };
11443
- ResourceInventory: {
11720
+ /** @description The artifact types a team sees (GET /api/v1/admin/teams/{id}/config/artifact-types). */
11721
+ AdminTeamArtifactTypes: {
11722
+ /** @description System types first, then custom types, each by name. */
11723
+ types: components["schemas"]["AdminArtifactType"][];
11724
+ };
11725
+ /** @description One recorded settings copy into the team. */
11726
+ AdminTeamSettingsAuditEntry: {
11727
+ /** Format: uuid */
11728
+ id: string;
11729
+ /** @enum {string} */
11730
+ surface: "embedding_provider" | "model_provider" | "custom_types";
11731
+ /** Format: uuid */
11732
+ actor_user_id: string | null;
11733
+ actor_name: string | null;
11734
+ /** Format: uuid */
11735
+ source_team_id: string | null;
11736
+ source_team_name: string | null;
11737
+ /** Format: uuid */
11738
+ source_resource_id: string | null;
11739
+ /** Format: uuid */
11740
+ created_resource_id: string | null;
11444
11741
  /**
11445
- * @description Number of resources of this type in the source project
11446
- * @example 3
11742
+ * @description Surface-specific facts, filtered to a per-surface key allowlist
11743
+ * (model_provider: source_name, created_name, provider_type, model,
11744
+ * has_api_key; embedding_provider: the same plus becomes_active,
11745
+ * displaced_model, displaced_embedded_resources; custom_types: added_ids,
11746
+ * added_slugs, skipped_slugs). Any other stored key is dropped. Always an
11747
+ * object, never null.
11447
11748
  */
11448
- count: number;
11449
- /** @description Resources of this type (omitted when empty) */
11450
- items?: components["schemas"]["ResourceInventoryItem"][];
11749
+ detail: {
11750
+ [key: string]: unknown;
11751
+ };
11752
+ /** Format: date-time */
11753
+ created_at: string;
11451
11754
  };
11452
- MigrationInventory: {
11453
- prompts?: components["schemas"]["ResourceInventory"];
11454
- artifacts?: components["schemas"]["ResourceInventory"];
11455
- blueprints?: components["schemas"]["ResourceInventory"];
11456
- feed_items?: components["schemas"]["ResourceInventory"];
11755
+ /** @description A page of the team's settings audit log, newest first. */
11756
+ AdminTeamSettingsAuditListResponse: {
11757
+ /** @description Serializes as `[]` when the page is empty, never `null`. */
11758
+ entries: components["schemas"]["AdminTeamSettingsAuditEntry"][];
11759
+ total_count: number;
11760
+ page: number;
11761
+ per_page: number;
11762
+ total_pages: number;
11457
11763
  };
11458
- ResourceOutcome: {
11459
- /** @description Resource identifier */
11764
+ /** @description One model (LLM) provider, credentials redacted. */
11765
+ AdminModelProvider: {
11766
+ /** Format: uuid */
11460
11767
  id: string;
11461
- /** @description Why the resource was skipped or failed */
11462
- reason: string;
11463
- };
11768
+ name: string;
11769
+ provider_type: string;
11770
+ model: string;
11771
+ /**
11772
+ * @description The provider's base URL with any userinfo, query string and fragment
11773
+ * removed. `null` when unset or not an absolute URL.
11774
+ */
11775
+ base_url: string | null;
11776
+ is_default: boolean;
11777
+ /** @description Whether an API key is stored. The key itself is never returned. */
11778
+ has_api_key: boolean;
11779
+ /**
11780
+ * @description Sorted top-level key names of the provider's `configuration` object. The
11781
+ * values are never returned. `[]` when the configuration is empty or not a
11782
+ * JSON object.
11783
+ */
11784
+ configuration_keys: string[];
11785
+ /** Format: date-time */
11786
+ created_at: string;
11787
+ /** Format: date-time */
11788
+ updated_at: string;
11789
+ };
11790
+ /** @description A team's model providers (GET /api/v1/admin/teams/{id}/config/model-providers). */
11791
+ AdminTeamModelProvidersConfig: {
11792
+ /** @description Serializes as `[]` when the team has none, never `null`. */
11793
+ providers: components["schemas"]["AdminModelProvider"][];
11794
+ };
11795
+ /** @description One embedding provider, credentials redacted. */
11796
+ AdminEmbeddingProvider: {
11797
+ /** Format: uuid */
11798
+ id: string;
11799
+ name: string;
11800
+ provider_type: string;
11801
+ model: string;
11802
+ chunk_size: number;
11803
+ chunk_overlap: number;
11804
+ concurrency: number;
11805
+ query_prefix: string | null;
11806
+ document_prefix: string | null;
11807
+ /**
11808
+ * @description The provider's base URL with any userinfo, query string and fragment
11809
+ * removed. `null` when unset or not an absolute URL.
11810
+ */
11811
+ base_url: string | null;
11812
+ is_default: boolean;
11813
+ /** @description Whether an API key is stored. The key itself is never returned. */
11814
+ has_api_key: boolean;
11815
+ /**
11816
+ * @description Sorted top-level key names of the provider's `configuration` object. The
11817
+ * values are never returned. `[]` when the configuration is empty or not a
11818
+ * JSON object.
11819
+ */
11820
+ configuration_keys: string[];
11821
+ /** Format: date-time */
11822
+ created_at: string;
11823
+ /** Format: date-time */
11824
+ updated_at: string;
11825
+ };
11826
+ /** @description Embedding coverage for one entity type (counts only). */
11827
+ AdminEmbeddingCoverageItem: {
11828
+ entity_type: string;
11829
+ /** Format: int64 */
11830
+ total: number;
11831
+ /** Format: int64 */
11832
+ embedded: number;
11833
+ /** Format: int64 */
11834
+ pending: number;
11835
+ embedded_percent: number;
11836
+ };
11837
+ /**
11838
+ * @description How much of the team's embeddable content has an embedding under its active
11839
+ * provider's model.
11840
+ */
11841
+ AdminEmbeddingCoverage: {
11842
+ has_active_provider: boolean;
11843
+ /** @description The active provider's model; `null` when the team has no provider. */
11844
+ active_model: string | null;
11845
+ /** @description One entry per entity type. Serializes as `[]`, never `null`. */
11846
+ items: components["schemas"]["AdminEmbeddingCoverageItem"][];
11847
+ };
11848
+ /**
11849
+ * @description A team's embedding providers and embedding coverage
11850
+ * (GET /api/v1/admin/teams/{id}/config/embedding-providers).
11851
+ */
11852
+ AdminTeamEmbeddingProvidersConfig: {
11853
+ /** @description Serializes as `[]` when the team has none, never `null`. */
11854
+ providers: components["schemas"]["AdminEmbeddingProvider"][];
11855
+ coverage: components["schemas"]["AdminEmbeddingCoverage"];
11856
+ };
11857
+ /** @description Non-secret SMTP settings. The SMTP username is deliberately omitted. */
11858
+ AdminSMTPSettings: {
11859
+ host: string;
11860
+ port: string;
11861
+ };
11862
+ /** @description Non-secret Mailgun settings. */
11863
+ AdminMailgunSettings: {
11864
+ domain: string;
11865
+ /**
11866
+ * @description The Mailgun API base URL with any userinfo, query string and fragment
11867
+ * removed. `null` when unset or not an absolute URL.
11868
+ */
11869
+ base_url: string | null;
11870
+ };
11871
+ /** @description Non-secret Postmark settings. */
11872
+ AdminPostmarkSettings: {
11873
+ message_stream: string;
11874
+ };
11875
+ /** @description The team provider's non-secret settings; only the block matching its type is present. */
11876
+ AdminEmailSettings: {
11877
+ smtp?: components["schemas"]["AdminSMTPSettings"];
11878
+ mailgun?: components["schemas"]["AdminMailgunSettings"];
11879
+ postmark?: components["schemas"]["AdminPostmarkSettings"];
11880
+ };
11881
+ /**
11882
+ * @description A team's effective email provider (GET /api/v1/admin/teams/{id}/config/email-provider).
11883
+ * The provider's secret, its last error text and the SMTP username are never
11884
+ * returned.
11885
+ */
11886
+ AdminTeamEmailProviderConfig: {
11887
+ /** @description Whether the team has its own provider. */
11888
+ configured: boolean;
11889
+ source: components["schemas"]["AdminTeamConfigSource"];
11890
+ /** @description The address the team's mail is actually sent from. */
11891
+ effective_from_address: string;
11892
+ /** @description The team provider's type; `null` when inheriting the instance provider. */
11893
+ provider_type: string | null;
11894
+ from_address: string | null;
11895
+ from_name: string | null;
11896
+ reply_to: string | null;
11897
+ /**
11898
+ * @description `null` when inheriting the instance provider, or when the stored settings
11899
+ * could not be decoded.
11900
+ */
11901
+ settings: components["schemas"]["AdminEmailSettings"] | null;
11902
+ /** @description Whether a provider credential is stored. The credential itself is never returned. */
11903
+ has_secret: boolean;
11904
+ /** Format: date-time */
11905
+ last_success_at: string | null;
11906
+ /** Format: date-time */
11907
+ last_error_at: string | null;
11908
+ /**
11909
+ * @description Derived from the two timestamps: `unknown` when inheriting or never used,
11910
+ * `healthy` when the last send succeeded (or none failed), `failing` when
11911
+ * the last recorded send failed.
11912
+ * @enum {string}
11913
+ */
11914
+ status: "healthy" | "failing" | "unknown";
11915
+ };
11916
+ /** @description A team's GitHub App registration, secrets redacted. */
11917
+ AdminGitHubAppConfig: {
11918
+ /** Format: uuid */
11919
+ id: string;
11920
+ app_id: string;
11921
+ app_slug: string;
11922
+ client_id: string;
11923
+ has_private_key: boolean;
11924
+ has_client_secret: boolean;
11925
+ has_webhook_secret: boolean;
11926
+ /**
11927
+ * @description Whether VibeXP can give GitHub a webhook delivery URL for this App (a
11928
+ * routing token exists and the instance has a public base URL). It does
11929
+ * NOT mean GitHub is delivering. The URL itself is never returned.
11930
+ */
11931
+ webhook_configured: boolean;
11932
+ /** Format: date-time */
11933
+ created_at: string;
11934
+ /** Format: date-time */
11935
+ updated_at: string;
11936
+ };
11937
+ /** @description The team's GitHub App installation, as last recorded (no live GitHub call). */
11938
+ AdminGitHubInstallation: {
11939
+ installed: boolean;
11940
+ /** @description The GitHub account the App is installed on; `null` when not installed. */
11941
+ account_login: string | null;
11942
+ /**
11943
+ * Format: int64
11944
+ * @description `null` when not installed.
11945
+ */
11946
+ installation_id: number | null;
11947
+ suspended: boolean;
11948
+ /**
11949
+ * Format: date-time
11950
+ * @description `null` when not installed.
11951
+ */
11952
+ installed_at: string | null;
11953
+ };
11954
+ /** @description A team's GitHub integration (GET /api/v1/admin/teams/{id}/config/github). */
11955
+ AdminTeamGitHubConfig: {
11956
+ /** @description `null` when the team has not registered a GitHub App. */
11957
+ app_config: components["schemas"]["AdminGitHubAppConfig"] | null;
11958
+ installation: components["schemas"]["AdminGitHubInstallation"];
11959
+ };
11960
+ ProjectResponse: components["schemas"]["Project"] & {
11961
+ /**
11962
+ * @description Whether the project's git URL matches a repository accessible via the team's GitHub App installation
11963
+ * @example true
11964
+ */
11965
+ github_connected: boolean;
11966
+ };
11967
+ ResourceSelection: {
11968
+ /**
11969
+ * @description Migrate every resource of this type in the source project
11970
+ * @example false
11971
+ */
11972
+ all?: boolean;
11973
+ /** @description Explicit list of resource IDs to migrate (used when all is false) */
11974
+ ids?: string[];
11975
+ };
11976
+ ResourceSelections: {
11977
+ prompts?: components["schemas"]["ResourceSelection"];
11978
+ artifacts?: components["schemas"]["ResourceSelection"];
11979
+ blueprints?: components["schemas"]["ResourceSelection"];
11980
+ feed_items?: components["schemas"]["ResourceSelection"];
11981
+ };
11982
+ MigrationRequest: {
11983
+ /**
11984
+ * Format: uuid
11985
+ * @description ID of the destination project (must belong to the same team)
11986
+ * @example 01234567-89ab-cdef-0123-456789abcdef
11987
+ */
11988
+ destination_project_id: string;
11989
+ resources?: components["schemas"]["ResourceSelections"];
11990
+ /**
11991
+ * @description How slug collisions in the destination project are handled
11992
+ * @default skip
11993
+ * @enum {string}
11994
+ */
11995
+ conflict_policy: "skip" | "rename" | "overwrite";
11996
+ };
11997
+ ResourceInventoryItem: {
11998
+ /** @description Resource identifier */
11999
+ id: string;
12000
+ /** @description Human-readable resource name */
12001
+ name: string;
12002
+ };
12003
+ ResourceInventory: {
12004
+ /**
12005
+ * @description Number of resources of this type in the source project
12006
+ * @example 3
12007
+ */
12008
+ count: number;
12009
+ /** @description Resources of this type (omitted when empty) */
12010
+ items?: components["schemas"]["ResourceInventoryItem"][];
12011
+ };
12012
+ MigrationInventory: {
12013
+ prompts?: components["schemas"]["ResourceInventory"];
12014
+ artifacts?: components["schemas"]["ResourceInventory"];
12015
+ blueprints?: components["schemas"]["ResourceInventory"];
12016
+ feed_items?: components["schemas"]["ResourceInventory"];
12017
+ };
12018
+ ResourceOutcome: {
12019
+ /** @description Resource identifier */
12020
+ id: string;
12021
+ /** @description Why the resource was skipped or failed */
12022
+ reason: string;
12023
+ };
11464
12024
  ResourceMigrationCounts: {
11465
12025
  /** @example 2 */
11466
12026
  prompts?: number;
@@ -21104,6 +21664,461 @@ export interface operations {
21104
21664
  };
21105
21665
  };
21106
21666
  };
21667
+ getAdminTeamSearchConfig: {
21668
+ parameters: {
21669
+ query?: never;
21670
+ header?: never;
21671
+ path: {
21672
+ /** @description Team id (UUID) */
21673
+ id: string;
21674
+ };
21675
+ cookie?: never;
21676
+ };
21677
+ requestBody?: never;
21678
+ responses: {
21679
+ /** @description The team's search ranking settings */
21680
+ 200: {
21681
+ headers: {
21682
+ [name: string]: unknown;
21683
+ };
21684
+ content: {
21685
+ "application/json": components["schemas"]["AdminTeamSearchConfig"];
21686
+ };
21687
+ };
21688
+ /** @description Bad request — malformed team id */
21689
+ 400: {
21690
+ headers: {
21691
+ [name: string]: unknown;
21692
+ };
21693
+ content: {
21694
+ "application/problem+json": components["schemas"]["ErrorResponse"];
21695
+ };
21696
+ };
21697
+ /** @description Not found — unknown team id, or the caller is not an instance admin */
21698
+ 404: {
21699
+ headers: {
21700
+ [name: string]: unknown;
21701
+ };
21702
+ content: {
21703
+ "application/problem+json": components["schemas"]["ErrorResponse"];
21704
+ };
21705
+ };
21706
+ /** @description Internal server error */
21707
+ 500: {
21708
+ headers: {
21709
+ [name: string]: unknown;
21710
+ };
21711
+ content: {
21712
+ "application/problem+json": components["schemas"]["ErrorResponse"];
21713
+ };
21714
+ };
21715
+ };
21716
+ };
21717
+ getAdminTeamAISummaryConfig: {
21718
+ parameters: {
21719
+ query?: never;
21720
+ header?: never;
21721
+ path: {
21722
+ /** @description Team id (UUID) */
21723
+ id: string;
21724
+ };
21725
+ cookie?: never;
21726
+ };
21727
+ requestBody?: never;
21728
+ responses: {
21729
+ /** @description The team's AI summary settings */
21730
+ 200: {
21731
+ headers: {
21732
+ [name: string]: unknown;
21733
+ };
21734
+ content: {
21735
+ "application/json": components["schemas"]["AdminTeamAISummaryConfig"];
21736
+ };
21737
+ };
21738
+ /** @description Bad request — malformed team id */
21739
+ 400: {
21740
+ headers: {
21741
+ [name: string]: unknown;
21742
+ };
21743
+ content: {
21744
+ "application/problem+json": components["schemas"]["ErrorResponse"];
21745
+ };
21746
+ };
21747
+ /** @description Not found — unknown team id, or the caller is not an instance admin */
21748
+ 404: {
21749
+ headers: {
21750
+ [name: string]: unknown;
21751
+ };
21752
+ content: {
21753
+ "application/problem+json": components["schemas"]["ErrorResponse"];
21754
+ };
21755
+ };
21756
+ /** @description Internal server error */
21757
+ 500: {
21758
+ headers: {
21759
+ [name: string]: unknown;
21760
+ };
21761
+ content: {
21762
+ "application/problem+json": components["schemas"]["ErrorResponse"];
21763
+ };
21764
+ };
21765
+ };
21766
+ };
21767
+ getAdminTeamFreshnessConfig: {
21768
+ parameters: {
21769
+ query?: never;
21770
+ header?: never;
21771
+ path: {
21772
+ /** @description Team id (UUID) */
21773
+ id: string;
21774
+ };
21775
+ cookie?: never;
21776
+ };
21777
+ requestBody?: never;
21778
+ responses: {
21779
+ /** @description The team's freshness settings and rules */
21780
+ 200: {
21781
+ headers: {
21782
+ [name: string]: unknown;
21783
+ };
21784
+ content: {
21785
+ "application/json": components["schemas"]["AdminTeamFreshnessConfig"];
21786
+ };
21787
+ };
21788
+ /** @description Bad request — malformed team id */
21789
+ 400: {
21790
+ headers: {
21791
+ [name: string]: unknown;
21792
+ };
21793
+ content: {
21794
+ "application/problem+json": components["schemas"]["ErrorResponse"];
21795
+ };
21796
+ };
21797
+ /** @description Not found — unknown team id, or the caller is not an instance admin */
21798
+ 404: {
21799
+ headers: {
21800
+ [name: string]: unknown;
21801
+ };
21802
+ content: {
21803
+ "application/problem+json": components["schemas"]["ErrorResponse"];
21804
+ };
21805
+ };
21806
+ /** @description Internal server error */
21807
+ 500: {
21808
+ headers: {
21809
+ [name: string]: unknown;
21810
+ };
21811
+ content: {
21812
+ "application/problem+json": components["schemas"]["ErrorResponse"];
21813
+ };
21814
+ };
21815
+ };
21816
+ };
21817
+ getAdminTeamArtifactTypes: {
21818
+ parameters: {
21819
+ query?: never;
21820
+ header?: never;
21821
+ path: {
21822
+ /** @description Team id (UUID) */
21823
+ id: string;
21824
+ };
21825
+ cookie?: never;
21826
+ };
21827
+ requestBody?: never;
21828
+ responses: {
21829
+ /** @description The team's artifact types */
21830
+ 200: {
21831
+ headers: {
21832
+ [name: string]: unknown;
21833
+ };
21834
+ content: {
21835
+ "application/json": components["schemas"]["AdminTeamArtifactTypes"];
21836
+ };
21837
+ };
21838
+ /** @description Bad request — malformed team id */
21839
+ 400: {
21840
+ headers: {
21841
+ [name: string]: unknown;
21842
+ };
21843
+ content: {
21844
+ "application/problem+json": components["schemas"]["ErrorResponse"];
21845
+ };
21846
+ };
21847
+ /** @description Not found — unknown team id, or the caller is not an instance admin */
21848
+ 404: {
21849
+ headers: {
21850
+ [name: string]: unknown;
21851
+ };
21852
+ content: {
21853
+ "application/problem+json": components["schemas"]["ErrorResponse"];
21854
+ };
21855
+ };
21856
+ /** @description Internal server error */
21857
+ 500: {
21858
+ headers: {
21859
+ [name: string]: unknown;
21860
+ };
21861
+ content: {
21862
+ "application/problem+json": components["schemas"]["ErrorResponse"];
21863
+ };
21864
+ };
21865
+ };
21866
+ };
21867
+ listAdminTeamSettingsAudit: {
21868
+ parameters: {
21869
+ query?: {
21870
+ /** @description Page number (1-based). */
21871
+ page?: number;
21872
+ /** @description Page size. */
21873
+ limit?: number;
21874
+ };
21875
+ header?: never;
21876
+ path: {
21877
+ /** @description Team id (UUID) */
21878
+ id: string;
21879
+ };
21880
+ cookie?: never;
21881
+ };
21882
+ requestBody?: never;
21883
+ responses: {
21884
+ /** @description One page of settings audit entries, newest first */
21885
+ 200: {
21886
+ headers: {
21887
+ [name: string]: unknown;
21888
+ };
21889
+ content: {
21890
+ "application/json": components["schemas"]["AdminTeamSettingsAuditListResponse"];
21891
+ };
21892
+ };
21893
+ /** @description Bad request — malformed team id, or `page`/`limit` out of range */
21894
+ 400: {
21895
+ headers: {
21896
+ [name: string]: unknown;
21897
+ };
21898
+ content: {
21899
+ "application/problem+json": components["schemas"]["ErrorResponse"];
21900
+ };
21901
+ };
21902
+ /** @description Not found — unknown team id, or the caller is not an instance admin */
21903
+ 404: {
21904
+ headers: {
21905
+ [name: string]: unknown;
21906
+ };
21907
+ content: {
21908
+ "application/problem+json": components["schemas"]["ErrorResponse"];
21909
+ };
21910
+ };
21911
+ /** @description Internal server error */
21912
+ 500: {
21913
+ headers: {
21914
+ [name: string]: unknown;
21915
+ };
21916
+ content: {
21917
+ "application/problem+json": components["schemas"]["ErrorResponse"];
21918
+ };
21919
+ };
21920
+ };
21921
+ };
21922
+ getAdminTeamModelProviders: {
21923
+ parameters: {
21924
+ query?: never;
21925
+ header?: never;
21926
+ path: {
21927
+ /** @description Team id (UUID) */
21928
+ id: string;
21929
+ };
21930
+ cookie?: never;
21931
+ };
21932
+ requestBody?: never;
21933
+ responses: {
21934
+ /** @description The team's model providers */
21935
+ 200: {
21936
+ headers: {
21937
+ [name: string]: unknown;
21938
+ };
21939
+ content: {
21940
+ "application/json": components["schemas"]["AdminTeamModelProvidersConfig"];
21941
+ };
21942
+ };
21943
+ /** @description Bad request — malformed team id */
21944
+ 400: {
21945
+ headers: {
21946
+ [name: string]: unknown;
21947
+ };
21948
+ content: {
21949
+ "application/problem+json": components["schemas"]["ErrorResponse"];
21950
+ };
21951
+ };
21952
+ /** @description Not found — unknown team id, or the caller is not an instance admin */
21953
+ 404: {
21954
+ headers: {
21955
+ [name: string]: unknown;
21956
+ };
21957
+ content: {
21958
+ "application/problem+json": components["schemas"]["ErrorResponse"];
21959
+ };
21960
+ };
21961
+ /** @description Internal server error */
21962
+ 500: {
21963
+ headers: {
21964
+ [name: string]: unknown;
21965
+ };
21966
+ content: {
21967
+ "application/problem+json": components["schemas"]["ErrorResponse"];
21968
+ };
21969
+ };
21970
+ };
21971
+ };
21972
+ getAdminTeamEmbeddingProviders: {
21973
+ parameters: {
21974
+ query?: never;
21975
+ header?: never;
21976
+ path: {
21977
+ /** @description Team id (UUID) */
21978
+ id: string;
21979
+ };
21980
+ cookie?: never;
21981
+ };
21982
+ requestBody?: never;
21983
+ responses: {
21984
+ /** @description The team's embedding providers and coverage */
21985
+ 200: {
21986
+ headers: {
21987
+ [name: string]: unknown;
21988
+ };
21989
+ content: {
21990
+ "application/json": components["schemas"]["AdminTeamEmbeddingProvidersConfig"];
21991
+ };
21992
+ };
21993
+ /** @description Bad request — malformed team id */
21994
+ 400: {
21995
+ headers: {
21996
+ [name: string]: unknown;
21997
+ };
21998
+ content: {
21999
+ "application/problem+json": components["schemas"]["ErrorResponse"];
22000
+ };
22001
+ };
22002
+ /** @description Not found — unknown team id, or the caller is not an instance admin */
22003
+ 404: {
22004
+ headers: {
22005
+ [name: string]: unknown;
22006
+ };
22007
+ content: {
22008
+ "application/problem+json": components["schemas"]["ErrorResponse"];
22009
+ };
22010
+ };
22011
+ /** @description Internal server error */
22012
+ 500: {
22013
+ headers: {
22014
+ [name: string]: unknown;
22015
+ };
22016
+ content: {
22017
+ "application/problem+json": components["schemas"]["ErrorResponse"];
22018
+ };
22019
+ };
22020
+ };
22021
+ };
22022
+ getAdminTeamEmailProvider: {
22023
+ parameters: {
22024
+ query?: never;
22025
+ header?: never;
22026
+ path: {
22027
+ /** @description Team id (UUID) */
22028
+ id: string;
22029
+ };
22030
+ cookie?: never;
22031
+ };
22032
+ requestBody?: never;
22033
+ responses: {
22034
+ /** @description The team's email provider */
22035
+ 200: {
22036
+ headers: {
22037
+ [name: string]: unknown;
22038
+ };
22039
+ content: {
22040
+ "application/json": components["schemas"]["AdminTeamEmailProviderConfig"];
22041
+ };
22042
+ };
22043
+ /** @description Bad request — malformed team id */
22044
+ 400: {
22045
+ headers: {
22046
+ [name: string]: unknown;
22047
+ };
22048
+ content: {
22049
+ "application/problem+json": components["schemas"]["ErrorResponse"];
22050
+ };
22051
+ };
22052
+ /** @description Not found — unknown team id, or the caller is not an instance admin */
22053
+ 404: {
22054
+ headers: {
22055
+ [name: string]: unknown;
22056
+ };
22057
+ content: {
22058
+ "application/problem+json": components["schemas"]["ErrorResponse"];
22059
+ };
22060
+ };
22061
+ /** @description Internal server error */
22062
+ 500: {
22063
+ headers: {
22064
+ [name: string]: unknown;
22065
+ };
22066
+ content: {
22067
+ "application/problem+json": components["schemas"]["ErrorResponse"];
22068
+ };
22069
+ };
22070
+ };
22071
+ };
22072
+ getAdminTeamGitHubConfig: {
22073
+ parameters: {
22074
+ query?: never;
22075
+ header?: never;
22076
+ path: {
22077
+ /** @description Team id (UUID) */
22078
+ id: string;
22079
+ };
22080
+ cookie?: never;
22081
+ };
22082
+ requestBody?: never;
22083
+ responses: {
22084
+ /** @description The team's GitHub integration */
22085
+ 200: {
22086
+ headers: {
22087
+ [name: string]: unknown;
22088
+ };
22089
+ content: {
22090
+ "application/json": components["schemas"]["AdminTeamGitHubConfig"];
22091
+ };
22092
+ };
22093
+ /** @description Bad request — malformed team id */
22094
+ 400: {
22095
+ headers: {
22096
+ [name: string]: unknown;
22097
+ };
22098
+ content: {
22099
+ "application/problem+json": components["schemas"]["ErrorResponse"];
22100
+ };
22101
+ };
22102
+ /** @description Not found — unknown team id, or the caller is not an instance admin */
22103
+ 404: {
22104
+ headers: {
22105
+ [name: string]: unknown;
22106
+ };
22107
+ content: {
22108
+ "application/problem+json": components["schemas"]["ErrorResponse"];
22109
+ };
22110
+ };
22111
+ /** @description Internal server error */
22112
+ 500: {
22113
+ headers: {
22114
+ [name: string]: unknown;
22115
+ };
22116
+ content: {
22117
+ "application/problem+json": components["schemas"]["ErrorResponse"];
22118
+ };
22119
+ };
22120
+ };
22121
+ };
21107
22122
  getAdminDashboardOverview: {
21108
22123
  parameters: {
21109
22124
  query?: never;