@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.
@@ -5614,6 +5614,242 @@ export type AdminTeamSettingsAuditListResponse = {
5614
5614
  per_page: number;
5615
5615
  total_pages: number;
5616
5616
  };
5617
+ /**
5618
+ * One model (LLM) provider, credentials redacted.
5619
+ */
5620
+ export type AdminModelProvider = {
5621
+ id: string;
5622
+ name: string;
5623
+ provider_type: string;
5624
+ model: string;
5625
+ /**
5626
+ * The provider's base URL with any userinfo, query string and fragment
5627
+ * removed. `null` when unset or not an absolute URL.
5628
+ *
5629
+ */
5630
+ base_url: string | null;
5631
+ is_default: boolean;
5632
+ /**
5633
+ * Whether an API key is stored. The key itself is never returned.
5634
+ */
5635
+ has_api_key: boolean;
5636
+ /**
5637
+ * Sorted top-level key names of the provider's `configuration` object. The
5638
+ * values are never returned. `[]` when the configuration is empty or not a
5639
+ * JSON object.
5640
+ *
5641
+ */
5642
+ configuration_keys: Array<string>;
5643
+ created_at: string;
5644
+ updated_at: string;
5645
+ };
5646
+ /**
5647
+ * A team's model providers (GET /api/v1/admin/teams/{id}/config/model-providers).
5648
+ */
5649
+ export type AdminTeamModelProvidersConfig = {
5650
+ /**
5651
+ * Serializes as `[]` when the team has none, never `null`.
5652
+ */
5653
+ providers: Array<AdminModelProvider>;
5654
+ };
5655
+ /**
5656
+ * One embedding provider, credentials redacted.
5657
+ */
5658
+ export type AdminEmbeddingProvider = {
5659
+ id: string;
5660
+ name: string;
5661
+ provider_type: string;
5662
+ model: string;
5663
+ chunk_size: number;
5664
+ chunk_overlap: number;
5665
+ concurrency: number;
5666
+ query_prefix: string | null;
5667
+ document_prefix: string | null;
5668
+ /**
5669
+ * The provider's base URL with any userinfo, query string and fragment
5670
+ * removed. `null` when unset or not an absolute URL.
5671
+ *
5672
+ */
5673
+ base_url: string | null;
5674
+ is_default: boolean;
5675
+ /**
5676
+ * Whether an API key is stored. The key itself is never returned.
5677
+ */
5678
+ has_api_key: boolean;
5679
+ /**
5680
+ * Sorted top-level key names of the provider's `configuration` object. The
5681
+ * values are never returned. `[]` when the configuration is empty or not a
5682
+ * JSON object.
5683
+ *
5684
+ */
5685
+ configuration_keys: Array<string>;
5686
+ created_at: string;
5687
+ updated_at: string;
5688
+ };
5689
+ /**
5690
+ * Embedding coverage for one entity type (counts only).
5691
+ */
5692
+ export type AdminEmbeddingCoverageItem = {
5693
+ entity_type: string;
5694
+ total: number;
5695
+ embedded: number;
5696
+ pending: number;
5697
+ embedded_percent: number;
5698
+ };
5699
+ /**
5700
+ * How much of the team's embeddable content has an embedding under its active
5701
+ * provider's model.
5702
+ *
5703
+ */
5704
+ export type AdminEmbeddingCoverage = {
5705
+ has_active_provider: boolean;
5706
+ /**
5707
+ * The active provider's model; `null` when the team has no provider.
5708
+ */
5709
+ active_model: string | null;
5710
+ /**
5711
+ * One entry per entity type. Serializes as `[]`, never `null`.
5712
+ */
5713
+ items: Array<AdminEmbeddingCoverageItem>;
5714
+ };
5715
+ /**
5716
+ * A team's embedding providers and embedding coverage
5717
+ * (GET /api/v1/admin/teams/{id}/config/embedding-providers).
5718
+ *
5719
+ */
5720
+ export type AdminTeamEmbeddingProvidersConfig = {
5721
+ /**
5722
+ * Serializes as `[]` when the team has none, never `null`.
5723
+ */
5724
+ providers: Array<AdminEmbeddingProvider>;
5725
+ coverage: AdminEmbeddingCoverage;
5726
+ };
5727
+ /**
5728
+ * Non-secret SMTP settings. The SMTP username is deliberately omitted.
5729
+ */
5730
+ export type AdminSmtpSettings = {
5731
+ host: string;
5732
+ port: string;
5733
+ };
5734
+ /**
5735
+ * Non-secret Mailgun settings.
5736
+ */
5737
+ export type AdminMailgunSettings = {
5738
+ domain: string;
5739
+ /**
5740
+ * The Mailgun API base URL with any userinfo, query string and fragment
5741
+ * removed. `null` when unset or not an absolute URL.
5742
+ *
5743
+ */
5744
+ base_url: string | null;
5745
+ };
5746
+ /**
5747
+ * Non-secret Postmark settings.
5748
+ */
5749
+ export type AdminPostmarkSettings = {
5750
+ message_stream: string;
5751
+ };
5752
+ /**
5753
+ * The team provider's non-secret settings; only the block matching its type is present.
5754
+ */
5755
+ export type AdminEmailSettings = {
5756
+ smtp?: AdminSmtpSettings;
5757
+ mailgun?: AdminMailgunSettings;
5758
+ postmark?: AdminPostmarkSettings;
5759
+ };
5760
+ /**
5761
+ * A team's effective email provider (GET /api/v1/admin/teams/{id}/config/email-provider).
5762
+ * The provider's secret, its last error text and the SMTP username are never
5763
+ * returned.
5764
+ *
5765
+ */
5766
+ export type AdminTeamEmailProviderConfig = {
5767
+ /**
5768
+ * Whether the team has its own provider.
5769
+ */
5770
+ configured: boolean;
5771
+ source: AdminTeamConfigSource;
5772
+ /**
5773
+ * The address the team's mail is actually sent from.
5774
+ */
5775
+ effective_from_address: string;
5776
+ /**
5777
+ * The team provider's type; `null` when inheriting the instance provider.
5778
+ */
5779
+ provider_type: string | null;
5780
+ from_address: string | null;
5781
+ from_name: string | null;
5782
+ reply_to: string | null;
5783
+ /**
5784
+ * `null` when inheriting the instance provider, or when the stored settings
5785
+ * could not be decoded.
5786
+ *
5787
+ */
5788
+ settings: AdminEmailSettings | null;
5789
+ /**
5790
+ * Whether a provider credential is stored. The credential itself is never returned.
5791
+ */
5792
+ has_secret: boolean;
5793
+ last_success_at: string | null;
5794
+ last_error_at: string | null;
5795
+ /**
5796
+ * Derived from the two timestamps: `unknown` when inheriting or never used,
5797
+ * `healthy` when the last send succeeded (or none failed), `failing` when
5798
+ * the last recorded send failed.
5799
+ *
5800
+ */
5801
+ status: 'healthy' | 'failing' | 'unknown';
5802
+ };
5803
+ /**
5804
+ * A team's GitHub App registration, secrets redacted.
5805
+ */
5806
+ export type AdminGitHubAppConfig = {
5807
+ id: string;
5808
+ app_id: string;
5809
+ app_slug: string;
5810
+ client_id: string;
5811
+ has_private_key: boolean;
5812
+ has_client_secret: boolean;
5813
+ has_webhook_secret: boolean;
5814
+ /**
5815
+ * Whether VibeXP can give GitHub a webhook delivery URL for this App (a
5816
+ * routing token exists and the instance has a public base URL). It does
5817
+ * NOT mean GitHub is delivering. The URL itself is never returned.
5818
+ *
5819
+ */
5820
+ webhook_configured: boolean;
5821
+ created_at: string;
5822
+ updated_at: string;
5823
+ };
5824
+ /**
5825
+ * The team's GitHub App installation, as last recorded (no live GitHub call).
5826
+ */
5827
+ export type AdminGitHubInstallation = {
5828
+ installed: boolean;
5829
+ /**
5830
+ * The GitHub account the App is installed on; `null` when not installed.
5831
+ */
5832
+ account_login: string | null;
5833
+ /**
5834
+ * `null` when not installed.
5835
+ */
5836
+ installation_id: number | null;
5837
+ suspended: boolean;
5838
+ /**
5839
+ * `null` when not installed.
5840
+ */
5841
+ installed_at: string | null;
5842
+ };
5843
+ /**
5844
+ * A team's GitHub integration (GET /api/v1/admin/teams/{id}/config/github).
5845
+ */
5846
+ export type AdminTeamGitHubConfig = {
5847
+ /**
5848
+ * `null` when the team has not registered a GitHub App.
5849
+ */
5850
+ app_config: AdminGitHubAppConfig | null;
5851
+ installation: AdminGitHubInstallation;
5852
+ };
5617
5853
  export type ProjectResponse = Project & {
5618
5854
  /**
5619
5855
  * Whether the project's git URL matches a repository accessible via the team's GitHub App installation
@@ -12736,6 +12972,138 @@ export type ListAdminTeamSettingsAuditResponses = {
12736
12972
  200: AdminTeamSettingsAuditListResponse;
12737
12973
  };
12738
12974
  export type ListAdminTeamSettingsAuditResponse = ListAdminTeamSettingsAuditResponses[keyof ListAdminTeamSettingsAuditResponses];
12975
+ export type GetAdminTeamModelProvidersData = {
12976
+ body?: never;
12977
+ path: {
12978
+ /**
12979
+ * Team id (UUID)
12980
+ */
12981
+ id: string;
12982
+ };
12983
+ query?: never;
12984
+ url: '/api/v1/admin/teams/{id}/config/model-providers';
12985
+ };
12986
+ export type GetAdminTeamModelProvidersErrors = {
12987
+ /**
12988
+ * Bad request — malformed team id
12989
+ */
12990
+ 400: ErrorResponse;
12991
+ /**
12992
+ * Not found — unknown team id, or the caller is not an instance admin
12993
+ */
12994
+ 404: ErrorResponse;
12995
+ /**
12996
+ * Internal server error
12997
+ */
12998
+ 500: ErrorResponse;
12999
+ };
13000
+ export type GetAdminTeamModelProvidersError = GetAdminTeamModelProvidersErrors[keyof GetAdminTeamModelProvidersErrors];
13001
+ export type GetAdminTeamModelProvidersResponses = {
13002
+ /**
13003
+ * The team's model providers
13004
+ */
13005
+ 200: AdminTeamModelProvidersConfig;
13006
+ };
13007
+ export type GetAdminTeamModelProvidersResponse = GetAdminTeamModelProvidersResponses[keyof GetAdminTeamModelProvidersResponses];
13008
+ export type GetAdminTeamEmbeddingProvidersData = {
13009
+ body?: never;
13010
+ path: {
13011
+ /**
13012
+ * Team id (UUID)
13013
+ */
13014
+ id: string;
13015
+ };
13016
+ query?: never;
13017
+ url: '/api/v1/admin/teams/{id}/config/embedding-providers';
13018
+ };
13019
+ export type GetAdminTeamEmbeddingProvidersErrors = {
13020
+ /**
13021
+ * Bad request — malformed team id
13022
+ */
13023
+ 400: ErrorResponse;
13024
+ /**
13025
+ * Not found — unknown team id, or the caller is not an instance admin
13026
+ */
13027
+ 404: ErrorResponse;
13028
+ /**
13029
+ * Internal server error
13030
+ */
13031
+ 500: ErrorResponse;
13032
+ };
13033
+ export type GetAdminTeamEmbeddingProvidersError = GetAdminTeamEmbeddingProvidersErrors[keyof GetAdminTeamEmbeddingProvidersErrors];
13034
+ export type GetAdminTeamEmbeddingProvidersResponses = {
13035
+ /**
13036
+ * The team's embedding providers and coverage
13037
+ */
13038
+ 200: AdminTeamEmbeddingProvidersConfig;
13039
+ };
13040
+ export type GetAdminTeamEmbeddingProvidersResponse = GetAdminTeamEmbeddingProvidersResponses[keyof GetAdminTeamEmbeddingProvidersResponses];
13041
+ export type GetAdminTeamEmailProviderData = {
13042
+ body?: never;
13043
+ path: {
13044
+ /**
13045
+ * Team id (UUID)
13046
+ */
13047
+ id: string;
13048
+ };
13049
+ query?: never;
13050
+ url: '/api/v1/admin/teams/{id}/config/email-provider';
13051
+ };
13052
+ export type GetAdminTeamEmailProviderErrors = {
13053
+ /**
13054
+ * Bad request — malformed team id
13055
+ */
13056
+ 400: ErrorResponse;
13057
+ /**
13058
+ * Not found — unknown team id, or the caller is not an instance admin
13059
+ */
13060
+ 404: ErrorResponse;
13061
+ /**
13062
+ * Internal server error
13063
+ */
13064
+ 500: ErrorResponse;
13065
+ };
13066
+ export type GetAdminTeamEmailProviderError = GetAdminTeamEmailProviderErrors[keyof GetAdminTeamEmailProviderErrors];
13067
+ export type GetAdminTeamEmailProviderResponses = {
13068
+ /**
13069
+ * The team's email provider
13070
+ */
13071
+ 200: AdminTeamEmailProviderConfig;
13072
+ };
13073
+ export type GetAdminTeamEmailProviderResponse = GetAdminTeamEmailProviderResponses[keyof GetAdminTeamEmailProviderResponses];
13074
+ export type GetAdminTeamGitHubConfigData = {
13075
+ body?: never;
13076
+ path: {
13077
+ /**
13078
+ * Team id (UUID)
13079
+ */
13080
+ id: string;
13081
+ };
13082
+ query?: never;
13083
+ url: '/api/v1/admin/teams/{id}/config/github';
13084
+ };
13085
+ export type GetAdminTeamGitHubConfigErrors = {
13086
+ /**
13087
+ * Bad request — malformed team id
13088
+ */
13089
+ 400: ErrorResponse;
13090
+ /**
13091
+ * Not found — unknown team id, or the caller is not an instance admin
13092
+ */
13093
+ 404: ErrorResponse;
13094
+ /**
13095
+ * Internal server error
13096
+ */
13097
+ 500: ErrorResponse;
13098
+ };
13099
+ export type GetAdminTeamGitHubConfigError = GetAdminTeamGitHubConfigErrors[keyof GetAdminTeamGitHubConfigErrors];
13100
+ export type GetAdminTeamGitHubConfigResponses = {
13101
+ /**
13102
+ * The team's GitHub integration
13103
+ */
13104
+ 200: AdminTeamGitHubConfig;
13105
+ };
13106
+ export type GetAdminTeamGitHubConfigResponse = GetAdminTeamGitHubConfigResponses[keyof GetAdminTeamGitHubConfigResponses];
12739
13107
  export type GetAdminDashboardOverviewData = {
12740
13108
  body?: never;
12741
13109
  path?: never;