@vibexp/api-client 0.84.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
@@ -2759,6 +2759,105 @@ export interface paths {
2759
2759
  patch?: never;
2760
2760
  trace?: never;
2761
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
+ };
2762
2861
  "/api/v1/admin/dashboard/overview": {
2763
2862
  parameters: {
2764
2863
  query?: never;
@@ -11662,6 +11761,202 @@ export interface components {
11662
11761
  per_page: number;
11663
11762
  total_pages: number;
11664
11763
  };
11764
+ /** @description One model (LLM) provider, credentials redacted. */
11765
+ AdminModelProvider: {
11766
+ /** Format: uuid */
11767
+ id: string;
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
+ };
11665
11960
  ProjectResponse: components["schemas"]["Project"] & {
11666
11961
  /**
11667
11962
  * @description Whether the project's git URL matches a repository accessible via the team's GitHub App installation
@@ -21624,6 +21919,206 @@ export interface operations {
21624
21919
  };
21625
21920
  };
21626
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
+ };
21627
22122
  getAdminDashboardOverview: {
21628
22123
  parameters: {
21629
22124
  query?: never;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vibexp/api-client",
3
- "version": "0.84.0",
3
+ "version": "0.85.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": {