@reverbia/sdk 1.0.0-next.20251217144159 → 1.0.0-next.20251217144909
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/expo/index.cjs +240 -318
- package/dist/expo/index.d.mts +74 -432
- package/dist/expo/index.d.ts +74 -432
- package/dist/expo/index.mjs +225 -297
- package/dist/index.cjs +46 -2
- package/dist/index.d.mts +175 -2
- package/dist/index.d.ts +175 -2
- package/dist/index.mjs +41 -1
- package/dist/react/index.cjs +347 -363
- package/dist/react/index.d.mts +73 -464
- package/dist/react/index.d.ts +73 -464
- package/dist/react/index.mjs +326 -336
- package/package.json +2 -2
package/dist/index.d.mts
CHANGED
|
@@ -1,6 +1,13 @@
|
|
|
1
1
|
type ClientOptions$1 = {
|
|
2
2
|
baseUrl: `${string}://${string}` | (string & {});
|
|
3
3
|
};
|
|
4
|
+
type HandlersExchangeRequest = {
|
|
5
|
+
code: string;
|
|
6
|
+
/**
|
|
7
|
+
* Optional - uses config default if not provided
|
|
8
|
+
*/
|
|
9
|
+
redirect_uri?: string;
|
|
10
|
+
};
|
|
4
11
|
type HandlersHealthResponse = {
|
|
5
12
|
/**
|
|
6
13
|
* Status indicates the service health status
|
|
@@ -15,6 +22,31 @@ type HandlersHealthResponse = {
|
|
|
15
22
|
*/
|
|
16
23
|
version?: string;
|
|
17
24
|
};
|
|
25
|
+
type HandlersRefreshRequest = {
|
|
26
|
+
refresh_token: string;
|
|
27
|
+
};
|
|
28
|
+
type HandlersRevokeRequest = {
|
|
29
|
+
token: string;
|
|
30
|
+
};
|
|
31
|
+
type HandlersTokenResponse = {
|
|
32
|
+
access_token?: string;
|
|
33
|
+
/**
|
|
34
|
+
* Seconds until expiration
|
|
35
|
+
*/
|
|
36
|
+
expires_in?: number;
|
|
37
|
+
/**
|
|
38
|
+
* May not be present on refresh
|
|
39
|
+
*/
|
|
40
|
+
refresh_token?: string;
|
|
41
|
+
/**
|
|
42
|
+
* Granted scopes
|
|
43
|
+
*/
|
|
44
|
+
scope?: string;
|
|
45
|
+
/**
|
|
46
|
+
* Usually "Bearer"
|
|
47
|
+
*/
|
|
48
|
+
token_type?: string;
|
|
49
|
+
};
|
|
18
50
|
/**
|
|
19
51
|
* ExtraFields contains additional metadata
|
|
20
52
|
*/
|
|
@@ -352,6 +384,10 @@ type LlmapiModel = {
|
|
|
352
384
|
* MaxOutputTokens is the maximum output tokens
|
|
353
385
|
*/
|
|
354
386
|
max_output_tokens?: number;
|
|
387
|
+
/**
|
|
388
|
+
* Modalities is a list of supported modalities (e.g., ["llm", "vision"])
|
|
389
|
+
*/
|
|
390
|
+
modalities?: Array<string>;
|
|
355
391
|
/**
|
|
356
392
|
* Name is the human-readable model name (optional)
|
|
357
393
|
*/
|
|
@@ -541,6 +577,21 @@ type PostApiV1ChatCompletionsResponses = {
|
|
|
541
577
|
200: LlmapiChatCompletionResponse | string;
|
|
542
578
|
};
|
|
543
579
|
type PostApiV1ChatCompletionsResponse = PostApiV1ChatCompletionsResponses[keyof PostApiV1ChatCompletionsResponses];
|
|
580
|
+
type GetApiV1DocsSwaggerJsonData = {
|
|
581
|
+
body?: never;
|
|
582
|
+
path?: never;
|
|
583
|
+
query?: never;
|
|
584
|
+
url: '/api/v1/docs/swagger.json';
|
|
585
|
+
};
|
|
586
|
+
type GetApiV1DocsSwaggerJsonResponses = {
|
|
587
|
+
/**
|
|
588
|
+
* OK
|
|
589
|
+
*/
|
|
590
|
+
200: {
|
|
591
|
+
[key: string]: unknown;
|
|
592
|
+
};
|
|
593
|
+
};
|
|
594
|
+
type GetApiV1DocsSwaggerJsonResponse = GetApiV1DocsSwaggerJsonResponses[keyof GetApiV1DocsSwaggerJsonResponses];
|
|
544
595
|
type PostApiV1EmbeddingsData = {
|
|
545
596
|
/**
|
|
546
597
|
* Embedding request
|
|
@@ -663,6 +714,104 @@ type PostApiV1SearchResponses = {
|
|
|
663
714
|
200: LlmapiSearchResponse;
|
|
664
715
|
};
|
|
665
716
|
type PostApiV1SearchResponse = PostApiV1SearchResponses[keyof PostApiV1SearchResponses];
|
|
717
|
+
type PostAuthOauthByProviderExchangeData = {
|
|
718
|
+
/**
|
|
719
|
+
* Exchange request
|
|
720
|
+
*/
|
|
721
|
+
body: HandlersExchangeRequest;
|
|
722
|
+
path: {
|
|
723
|
+
/**
|
|
724
|
+
* OAuth provider (google-drive)
|
|
725
|
+
*/
|
|
726
|
+
provider: string;
|
|
727
|
+
};
|
|
728
|
+
query?: never;
|
|
729
|
+
url: '/auth/oauth/{provider}/exchange';
|
|
730
|
+
};
|
|
731
|
+
type PostAuthOauthByProviderExchangeErrors = {
|
|
732
|
+
/**
|
|
733
|
+
* Bad Request
|
|
734
|
+
*/
|
|
735
|
+
400: ResponseErrorResponse;
|
|
736
|
+
/**
|
|
737
|
+
* Internal Server Error
|
|
738
|
+
*/
|
|
739
|
+
500: ResponseErrorResponse;
|
|
740
|
+
};
|
|
741
|
+
type PostAuthOauthByProviderExchangeError = PostAuthOauthByProviderExchangeErrors[keyof PostAuthOauthByProviderExchangeErrors];
|
|
742
|
+
type PostAuthOauthByProviderExchangeResponses = {
|
|
743
|
+
/**
|
|
744
|
+
* OK
|
|
745
|
+
*/
|
|
746
|
+
200: HandlersTokenResponse;
|
|
747
|
+
};
|
|
748
|
+
type PostAuthOauthByProviderExchangeResponse = PostAuthOauthByProviderExchangeResponses[keyof PostAuthOauthByProviderExchangeResponses];
|
|
749
|
+
type PostAuthOauthByProviderRefreshData = {
|
|
750
|
+
/**
|
|
751
|
+
* Refresh request
|
|
752
|
+
*/
|
|
753
|
+
body: HandlersRefreshRequest;
|
|
754
|
+
path: {
|
|
755
|
+
/**
|
|
756
|
+
* OAuth provider (google-drive)
|
|
757
|
+
*/
|
|
758
|
+
provider: string;
|
|
759
|
+
};
|
|
760
|
+
query?: never;
|
|
761
|
+
url: '/auth/oauth/{provider}/refresh';
|
|
762
|
+
};
|
|
763
|
+
type PostAuthOauthByProviderRefreshErrors = {
|
|
764
|
+
/**
|
|
765
|
+
* Bad Request
|
|
766
|
+
*/
|
|
767
|
+
400: ResponseErrorResponse;
|
|
768
|
+
/**
|
|
769
|
+
* Internal Server Error
|
|
770
|
+
*/
|
|
771
|
+
500: ResponseErrorResponse;
|
|
772
|
+
};
|
|
773
|
+
type PostAuthOauthByProviderRefreshError = PostAuthOauthByProviderRefreshErrors[keyof PostAuthOauthByProviderRefreshErrors];
|
|
774
|
+
type PostAuthOauthByProviderRefreshResponses = {
|
|
775
|
+
/**
|
|
776
|
+
* OK
|
|
777
|
+
*/
|
|
778
|
+
200: HandlersTokenResponse;
|
|
779
|
+
};
|
|
780
|
+
type PostAuthOauthByProviderRefreshResponse = PostAuthOauthByProviderRefreshResponses[keyof PostAuthOauthByProviderRefreshResponses];
|
|
781
|
+
type PostAuthOauthByProviderRevokeData = {
|
|
782
|
+
/**
|
|
783
|
+
* Revoke request
|
|
784
|
+
*/
|
|
785
|
+
body: HandlersRevokeRequest;
|
|
786
|
+
path: {
|
|
787
|
+
/**
|
|
788
|
+
* OAuth provider (google-drive)
|
|
789
|
+
*/
|
|
790
|
+
provider: string;
|
|
791
|
+
};
|
|
792
|
+
query?: never;
|
|
793
|
+
url: '/auth/oauth/{provider}/revoke';
|
|
794
|
+
};
|
|
795
|
+
type PostAuthOauthByProviderRevokeErrors = {
|
|
796
|
+
/**
|
|
797
|
+
* Bad Request
|
|
798
|
+
*/
|
|
799
|
+
400: ResponseErrorResponse;
|
|
800
|
+
/**
|
|
801
|
+
* Internal Server Error
|
|
802
|
+
*/
|
|
803
|
+
500: ResponseErrorResponse;
|
|
804
|
+
};
|
|
805
|
+
type PostAuthOauthByProviderRevokeError = PostAuthOauthByProviderRevokeErrors[keyof PostAuthOauthByProviderRevokeErrors];
|
|
806
|
+
type PostAuthOauthByProviderRevokeResponses = {
|
|
807
|
+
/**
|
|
808
|
+
* Empty object on success
|
|
809
|
+
*/
|
|
810
|
+
200: {
|
|
811
|
+
[key: string]: unknown;
|
|
812
|
+
};
|
|
813
|
+
};
|
|
814
|
+
type PostAuthOauthByProviderRevokeResponse = PostAuthOauthByProviderRevokeResponses[keyof PostAuthOauthByProviderRevokeResponses];
|
|
666
815
|
type GetHealthData = {
|
|
667
816
|
body?: never;
|
|
668
817
|
path?: never;
|
|
@@ -992,6 +1141,12 @@ type Options<TData extends TDataShape = TDataShape, ThrowOnError extends boolean
|
|
|
992
1141
|
* Generates a chat completion using the configured gateway. Supports streaming when stream=true.
|
|
993
1142
|
*/
|
|
994
1143
|
declare const postApiV1ChatCompletions: <ThrowOnError extends boolean = false>(options: Options<PostApiV1ChatCompletionsData, ThrowOnError>) => RequestResult<PostApiV1ChatCompletionsResponses, PostApiV1ChatCompletionsErrors, ThrowOnError>;
|
|
1144
|
+
/**
|
|
1145
|
+
* Get OpenAPI specification
|
|
1146
|
+
*
|
|
1147
|
+
* Returns the OpenAPI 3.1 specification for this API
|
|
1148
|
+
*/
|
|
1149
|
+
declare const getApiV1DocsSwaggerJson: <ThrowOnError extends boolean = false>(options?: Options<GetApiV1DocsSwaggerJsonData, ThrowOnError>) => RequestResult<GetApiV1DocsSwaggerJsonResponses, unknown, ThrowOnError>;
|
|
995
1150
|
/**
|
|
996
1151
|
* Create embeddings
|
|
997
1152
|
*
|
|
@@ -1007,7 +1162,7 @@ declare const postApiV1ImagesGenerations: <ThrowOnError extends boolean = false>
|
|
|
1007
1162
|
/**
|
|
1008
1163
|
* List available models
|
|
1009
1164
|
*
|
|
1010
|
-
* Returns a list of all available models from the configured gateway with optional filters.
|
|
1165
|
+
* Returns a list of all available models from the configured gateway with optional filters. Models include modality information indicating their capabilities (e.g., llm, embedding, vision, image, audio, reasoning, code, reranker, multimodal, video).
|
|
1011
1166
|
*/
|
|
1012
1167
|
declare const getApiV1Models: <ThrowOnError extends boolean = false>(options?: Options<GetApiV1ModelsData, ThrowOnError>) => RequestResult<GetApiV1ModelsResponses, GetApiV1ModelsErrors, ThrowOnError>;
|
|
1013
1168
|
/**
|
|
@@ -1016,6 +1171,24 @@ declare const getApiV1Models: <ThrowOnError extends boolean = false>(options?: O
|
|
|
1016
1171
|
* Returns a list of ranked search results
|
|
1017
1172
|
*/
|
|
1018
1173
|
declare const postApiV1Search: <ThrowOnError extends boolean = false>(options: Options<PostApiV1SearchData, ThrowOnError>) => RequestResult<PostApiV1SearchResponses, PostApiV1SearchErrors, ThrowOnError>;
|
|
1174
|
+
/**
|
|
1175
|
+
* Exchange authorization code for tokens
|
|
1176
|
+
*
|
|
1177
|
+
* Exchanges an OAuth authorization code for access and refresh tokens
|
|
1178
|
+
*/
|
|
1179
|
+
declare const postAuthOauthByProviderExchange: <ThrowOnError extends boolean = false>(options: Options<PostAuthOauthByProviderExchangeData, ThrowOnError>) => RequestResult<PostAuthOauthByProviderExchangeResponses, PostAuthOauthByProviderExchangeErrors, ThrowOnError>;
|
|
1180
|
+
/**
|
|
1181
|
+
* Refresh access token
|
|
1182
|
+
*
|
|
1183
|
+
* Refreshes an expired access token using a refresh token
|
|
1184
|
+
*/
|
|
1185
|
+
declare const postAuthOauthByProviderRefresh: <ThrowOnError extends boolean = false>(options: Options<PostAuthOauthByProviderRefreshData, ThrowOnError>) => RequestResult<PostAuthOauthByProviderRefreshResponses, PostAuthOauthByProviderRefreshErrors, ThrowOnError>;
|
|
1186
|
+
/**
|
|
1187
|
+
* Revoke OAuth token
|
|
1188
|
+
*
|
|
1189
|
+
* Revokes an OAuth access or refresh token
|
|
1190
|
+
*/
|
|
1191
|
+
declare const postAuthOauthByProviderRevoke: <ThrowOnError extends boolean = false>(options: Options<PostAuthOauthByProviderRevokeData, ThrowOnError>) => RequestResult<PostAuthOauthByProviderRevokeResponses, PostAuthOauthByProviderRevokeErrors, ThrowOnError>;
|
|
1019
1192
|
/**
|
|
1020
1193
|
* Health check
|
|
1021
1194
|
*
|
|
@@ -1023,4 +1196,4 @@ declare const postApiV1Search: <ThrowOnError extends boolean = false>(options: O
|
|
|
1023
1196
|
*/
|
|
1024
1197
|
declare const getHealth: <ThrowOnError extends boolean = false>(options?: Options<GetHealthData, ThrowOnError>) => RequestResult<GetHealthResponses, GetHealthErrors, ThrowOnError>;
|
|
1025
1198
|
|
|
1026
|
-
export { type ClientOptions$1 as ClientOptions, type GetApiV1ModelsData, type GetApiV1ModelsError, type GetApiV1ModelsErrors, type GetApiV1ModelsResponse, type GetApiV1ModelsResponses, type GetHealthData, type GetHealthError, type GetHealthErrors, type GetHealthResponse, type GetHealthResponses, type HandlersHealthResponse, type LlmapiChatCompletionExtraFields, type LlmapiChatCompletionRequest, type LlmapiChatCompletionResponse, type LlmapiChatCompletionUsage, type LlmapiChoice, type LlmapiEmbeddingData, type LlmapiEmbeddingExtraFields, type LlmapiEmbeddingRequest, type LlmapiEmbeddingResponse, type LlmapiEmbeddingUsage, type LlmapiImageGenerationExtraFields, type LlmapiImageGenerationImage, type LlmapiImageGenerationRequest, type LlmapiImageGenerationResponse, type LlmapiImageGenerationUsage, type LlmapiMessage, type LlmapiMessageContentImage, type LlmapiMessageContentPart, type LlmapiModel, type LlmapiModelArchitecture, type LlmapiModelPerRequestLimits, type LlmapiModelPricing, type LlmapiModelTopProvider, type LlmapiModelsListExtraFields, type LlmapiModelsListResponse, type LlmapiRole, type LlmapiSearchExtraFields, type LlmapiSearchRequest, type LlmapiSearchResponse, type LlmapiSearchResult, type LlmapiSearchUsage, type Options, type PostApiV1ChatCompletionsData, type PostApiV1ChatCompletionsError, type PostApiV1ChatCompletionsErrors, type PostApiV1ChatCompletionsResponse, type PostApiV1ChatCompletionsResponses, type PostApiV1EmbeddingsData, type PostApiV1EmbeddingsError, type PostApiV1EmbeddingsErrors, type PostApiV1EmbeddingsResponse, type PostApiV1EmbeddingsResponses, type PostApiV1ImagesGenerationsData, type PostApiV1ImagesGenerationsError, type PostApiV1ImagesGenerationsErrors, type PostApiV1ImagesGenerationsResponse, type PostApiV1ImagesGenerationsResponses, type PostApiV1SearchData, type PostApiV1SearchError, type PostApiV1SearchErrors, type PostApiV1SearchResponse, type PostApiV1SearchResponses, type ResponseErrorResponse, getApiV1Models, getHealth, postApiV1ChatCompletions, postApiV1Embeddings, postApiV1ImagesGenerations, postApiV1Search };
|
|
1199
|
+
export { type ClientOptions$1 as ClientOptions, type GetApiV1DocsSwaggerJsonData, type GetApiV1DocsSwaggerJsonResponse, type GetApiV1DocsSwaggerJsonResponses, type GetApiV1ModelsData, type GetApiV1ModelsError, type GetApiV1ModelsErrors, type GetApiV1ModelsResponse, type GetApiV1ModelsResponses, type GetHealthData, type GetHealthError, type GetHealthErrors, type GetHealthResponse, type GetHealthResponses, type HandlersExchangeRequest, type HandlersHealthResponse, type HandlersRefreshRequest, type HandlersRevokeRequest, type HandlersTokenResponse, type LlmapiChatCompletionExtraFields, type LlmapiChatCompletionRequest, type LlmapiChatCompletionResponse, type LlmapiChatCompletionUsage, type LlmapiChoice, type LlmapiEmbeddingData, type LlmapiEmbeddingExtraFields, type LlmapiEmbeddingRequest, type LlmapiEmbeddingResponse, type LlmapiEmbeddingUsage, type LlmapiImageGenerationExtraFields, type LlmapiImageGenerationImage, type LlmapiImageGenerationRequest, type LlmapiImageGenerationResponse, type LlmapiImageGenerationUsage, type LlmapiMessage, type LlmapiMessageContentImage, type LlmapiMessageContentPart, type LlmapiModel, type LlmapiModelArchitecture, type LlmapiModelPerRequestLimits, type LlmapiModelPricing, type LlmapiModelTopProvider, type LlmapiModelsListExtraFields, type LlmapiModelsListResponse, type LlmapiRole, type LlmapiSearchExtraFields, type LlmapiSearchRequest, type LlmapiSearchResponse, type LlmapiSearchResult, type LlmapiSearchUsage, type Options, type PostApiV1ChatCompletionsData, type PostApiV1ChatCompletionsError, type PostApiV1ChatCompletionsErrors, type PostApiV1ChatCompletionsResponse, type PostApiV1ChatCompletionsResponses, type PostApiV1EmbeddingsData, type PostApiV1EmbeddingsError, type PostApiV1EmbeddingsErrors, type PostApiV1EmbeddingsResponse, type PostApiV1EmbeddingsResponses, type PostApiV1ImagesGenerationsData, type PostApiV1ImagesGenerationsError, type PostApiV1ImagesGenerationsErrors, type PostApiV1ImagesGenerationsResponse, type PostApiV1ImagesGenerationsResponses, type PostApiV1SearchData, type PostApiV1SearchError, type PostApiV1SearchErrors, type PostApiV1SearchResponse, type PostApiV1SearchResponses, type PostAuthOauthByProviderExchangeData, type PostAuthOauthByProviderExchangeError, type PostAuthOauthByProviderExchangeErrors, type PostAuthOauthByProviderExchangeResponse, type PostAuthOauthByProviderExchangeResponses, type PostAuthOauthByProviderRefreshData, type PostAuthOauthByProviderRefreshError, type PostAuthOauthByProviderRefreshErrors, type PostAuthOauthByProviderRefreshResponse, type PostAuthOauthByProviderRefreshResponses, type PostAuthOauthByProviderRevokeData, type PostAuthOauthByProviderRevokeError, type PostAuthOauthByProviderRevokeErrors, type PostAuthOauthByProviderRevokeResponse, type PostAuthOauthByProviderRevokeResponses, type ResponseErrorResponse, getApiV1DocsSwaggerJson, getApiV1Models, getHealth, postApiV1ChatCompletions, postApiV1Embeddings, postApiV1ImagesGenerations, postApiV1Search, postAuthOauthByProviderExchange, postAuthOauthByProviderRefresh, postAuthOauthByProviderRevoke };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,6 +1,13 @@
|
|
|
1
1
|
type ClientOptions$1 = {
|
|
2
2
|
baseUrl: `${string}://${string}` | (string & {});
|
|
3
3
|
};
|
|
4
|
+
type HandlersExchangeRequest = {
|
|
5
|
+
code: string;
|
|
6
|
+
/**
|
|
7
|
+
* Optional - uses config default if not provided
|
|
8
|
+
*/
|
|
9
|
+
redirect_uri?: string;
|
|
10
|
+
};
|
|
4
11
|
type HandlersHealthResponse = {
|
|
5
12
|
/**
|
|
6
13
|
* Status indicates the service health status
|
|
@@ -15,6 +22,31 @@ type HandlersHealthResponse = {
|
|
|
15
22
|
*/
|
|
16
23
|
version?: string;
|
|
17
24
|
};
|
|
25
|
+
type HandlersRefreshRequest = {
|
|
26
|
+
refresh_token: string;
|
|
27
|
+
};
|
|
28
|
+
type HandlersRevokeRequest = {
|
|
29
|
+
token: string;
|
|
30
|
+
};
|
|
31
|
+
type HandlersTokenResponse = {
|
|
32
|
+
access_token?: string;
|
|
33
|
+
/**
|
|
34
|
+
* Seconds until expiration
|
|
35
|
+
*/
|
|
36
|
+
expires_in?: number;
|
|
37
|
+
/**
|
|
38
|
+
* May not be present on refresh
|
|
39
|
+
*/
|
|
40
|
+
refresh_token?: string;
|
|
41
|
+
/**
|
|
42
|
+
* Granted scopes
|
|
43
|
+
*/
|
|
44
|
+
scope?: string;
|
|
45
|
+
/**
|
|
46
|
+
* Usually "Bearer"
|
|
47
|
+
*/
|
|
48
|
+
token_type?: string;
|
|
49
|
+
};
|
|
18
50
|
/**
|
|
19
51
|
* ExtraFields contains additional metadata
|
|
20
52
|
*/
|
|
@@ -352,6 +384,10 @@ type LlmapiModel = {
|
|
|
352
384
|
* MaxOutputTokens is the maximum output tokens
|
|
353
385
|
*/
|
|
354
386
|
max_output_tokens?: number;
|
|
387
|
+
/**
|
|
388
|
+
* Modalities is a list of supported modalities (e.g., ["llm", "vision"])
|
|
389
|
+
*/
|
|
390
|
+
modalities?: Array<string>;
|
|
355
391
|
/**
|
|
356
392
|
* Name is the human-readable model name (optional)
|
|
357
393
|
*/
|
|
@@ -541,6 +577,21 @@ type PostApiV1ChatCompletionsResponses = {
|
|
|
541
577
|
200: LlmapiChatCompletionResponse | string;
|
|
542
578
|
};
|
|
543
579
|
type PostApiV1ChatCompletionsResponse = PostApiV1ChatCompletionsResponses[keyof PostApiV1ChatCompletionsResponses];
|
|
580
|
+
type GetApiV1DocsSwaggerJsonData = {
|
|
581
|
+
body?: never;
|
|
582
|
+
path?: never;
|
|
583
|
+
query?: never;
|
|
584
|
+
url: '/api/v1/docs/swagger.json';
|
|
585
|
+
};
|
|
586
|
+
type GetApiV1DocsSwaggerJsonResponses = {
|
|
587
|
+
/**
|
|
588
|
+
* OK
|
|
589
|
+
*/
|
|
590
|
+
200: {
|
|
591
|
+
[key: string]: unknown;
|
|
592
|
+
};
|
|
593
|
+
};
|
|
594
|
+
type GetApiV1DocsSwaggerJsonResponse = GetApiV1DocsSwaggerJsonResponses[keyof GetApiV1DocsSwaggerJsonResponses];
|
|
544
595
|
type PostApiV1EmbeddingsData = {
|
|
545
596
|
/**
|
|
546
597
|
* Embedding request
|
|
@@ -663,6 +714,104 @@ type PostApiV1SearchResponses = {
|
|
|
663
714
|
200: LlmapiSearchResponse;
|
|
664
715
|
};
|
|
665
716
|
type PostApiV1SearchResponse = PostApiV1SearchResponses[keyof PostApiV1SearchResponses];
|
|
717
|
+
type PostAuthOauthByProviderExchangeData = {
|
|
718
|
+
/**
|
|
719
|
+
* Exchange request
|
|
720
|
+
*/
|
|
721
|
+
body: HandlersExchangeRequest;
|
|
722
|
+
path: {
|
|
723
|
+
/**
|
|
724
|
+
* OAuth provider (google-drive)
|
|
725
|
+
*/
|
|
726
|
+
provider: string;
|
|
727
|
+
};
|
|
728
|
+
query?: never;
|
|
729
|
+
url: '/auth/oauth/{provider}/exchange';
|
|
730
|
+
};
|
|
731
|
+
type PostAuthOauthByProviderExchangeErrors = {
|
|
732
|
+
/**
|
|
733
|
+
* Bad Request
|
|
734
|
+
*/
|
|
735
|
+
400: ResponseErrorResponse;
|
|
736
|
+
/**
|
|
737
|
+
* Internal Server Error
|
|
738
|
+
*/
|
|
739
|
+
500: ResponseErrorResponse;
|
|
740
|
+
};
|
|
741
|
+
type PostAuthOauthByProviderExchangeError = PostAuthOauthByProviderExchangeErrors[keyof PostAuthOauthByProviderExchangeErrors];
|
|
742
|
+
type PostAuthOauthByProviderExchangeResponses = {
|
|
743
|
+
/**
|
|
744
|
+
* OK
|
|
745
|
+
*/
|
|
746
|
+
200: HandlersTokenResponse;
|
|
747
|
+
};
|
|
748
|
+
type PostAuthOauthByProviderExchangeResponse = PostAuthOauthByProviderExchangeResponses[keyof PostAuthOauthByProviderExchangeResponses];
|
|
749
|
+
type PostAuthOauthByProviderRefreshData = {
|
|
750
|
+
/**
|
|
751
|
+
* Refresh request
|
|
752
|
+
*/
|
|
753
|
+
body: HandlersRefreshRequest;
|
|
754
|
+
path: {
|
|
755
|
+
/**
|
|
756
|
+
* OAuth provider (google-drive)
|
|
757
|
+
*/
|
|
758
|
+
provider: string;
|
|
759
|
+
};
|
|
760
|
+
query?: never;
|
|
761
|
+
url: '/auth/oauth/{provider}/refresh';
|
|
762
|
+
};
|
|
763
|
+
type PostAuthOauthByProviderRefreshErrors = {
|
|
764
|
+
/**
|
|
765
|
+
* Bad Request
|
|
766
|
+
*/
|
|
767
|
+
400: ResponseErrorResponse;
|
|
768
|
+
/**
|
|
769
|
+
* Internal Server Error
|
|
770
|
+
*/
|
|
771
|
+
500: ResponseErrorResponse;
|
|
772
|
+
};
|
|
773
|
+
type PostAuthOauthByProviderRefreshError = PostAuthOauthByProviderRefreshErrors[keyof PostAuthOauthByProviderRefreshErrors];
|
|
774
|
+
type PostAuthOauthByProviderRefreshResponses = {
|
|
775
|
+
/**
|
|
776
|
+
* OK
|
|
777
|
+
*/
|
|
778
|
+
200: HandlersTokenResponse;
|
|
779
|
+
};
|
|
780
|
+
type PostAuthOauthByProviderRefreshResponse = PostAuthOauthByProviderRefreshResponses[keyof PostAuthOauthByProviderRefreshResponses];
|
|
781
|
+
type PostAuthOauthByProviderRevokeData = {
|
|
782
|
+
/**
|
|
783
|
+
* Revoke request
|
|
784
|
+
*/
|
|
785
|
+
body: HandlersRevokeRequest;
|
|
786
|
+
path: {
|
|
787
|
+
/**
|
|
788
|
+
* OAuth provider (google-drive)
|
|
789
|
+
*/
|
|
790
|
+
provider: string;
|
|
791
|
+
};
|
|
792
|
+
query?: never;
|
|
793
|
+
url: '/auth/oauth/{provider}/revoke';
|
|
794
|
+
};
|
|
795
|
+
type PostAuthOauthByProviderRevokeErrors = {
|
|
796
|
+
/**
|
|
797
|
+
* Bad Request
|
|
798
|
+
*/
|
|
799
|
+
400: ResponseErrorResponse;
|
|
800
|
+
/**
|
|
801
|
+
* Internal Server Error
|
|
802
|
+
*/
|
|
803
|
+
500: ResponseErrorResponse;
|
|
804
|
+
};
|
|
805
|
+
type PostAuthOauthByProviderRevokeError = PostAuthOauthByProviderRevokeErrors[keyof PostAuthOauthByProviderRevokeErrors];
|
|
806
|
+
type PostAuthOauthByProviderRevokeResponses = {
|
|
807
|
+
/**
|
|
808
|
+
* Empty object on success
|
|
809
|
+
*/
|
|
810
|
+
200: {
|
|
811
|
+
[key: string]: unknown;
|
|
812
|
+
};
|
|
813
|
+
};
|
|
814
|
+
type PostAuthOauthByProviderRevokeResponse = PostAuthOauthByProviderRevokeResponses[keyof PostAuthOauthByProviderRevokeResponses];
|
|
666
815
|
type GetHealthData = {
|
|
667
816
|
body?: never;
|
|
668
817
|
path?: never;
|
|
@@ -992,6 +1141,12 @@ type Options<TData extends TDataShape = TDataShape, ThrowOnError extends boolean
|
|
|
992
1141
|
* Generates a chat completion using the configured gateway. Supports streaming when stream=true.
|
|
993
1142
|
*/
|
|
994
1143
|
declare const postApiV1ChatCompletions: <ThrowOnError extends boolean = false>(options: Options<PostApiV1ChatCompletionsData, ThrowOnError>) => RequestResult<PostApiV1ChatCompletionsResponses, PostApiV1ChatCompletionsErrors, ThrowOnError>;
|
|
1144
|
+
/**
|
|
1145
|
+
* Get OpenAPI specification
|
|
1146
|
+
*
|
|
1147
|
+
* Returns the OpenAPI 3.1 specification for this API
|
|
1148
|
+
*/
|
|
1149
|
+
declare const getApiV1DocsSwaggerJson: <ThrowOnError extends boolean = false>(options?: Options<GetApiV1DocsSwaggerJsonData, ThrowOnError>) => RequestResult<GetApiV1DocsSwaggerJsonResponses, unknown, ThrowOnError>;
|
|
995
1150
|
/**
|
|
996
1151
|
* Create embeddings
|
|
997
1152
|
*
|
|
@@ -1007,7 +1162,7 @@ declare const postApiV1ImagesGenerations: <ThrowOnError extends boolean = false>
|
|
|
1007
1162
|
/**
|
|
1008
1163
|
* List available models
|
|
1009
1164
|
*
|
|
1010
|
-
* Returns a list of all available models from the configured gateway with optional filters.
|
|
1165
|
+
* Returns a list of all available models from the configured gateway with optional filters. Models include modality information indicating their capabilities (e.g., llm, embedding, vision, image, audio, reasoning, code, reranker, multimodal, video).
|
|
1011
1166
|
*/
|
|
1012
1167
|
declare const getApiV1Models: <ThrowOnError extends boolean = false>(options?: Options<GetApiV1ModelsData, ThrowOnError>) => RequestResult<GetApiV1ModelsResponses, GetApiV1ModelsErrors, ThrowOnError>;
|
|
1013
1168
|
/**
|
|
@@ -1016,6 +1171,24 @@ declare const getApiV1Models: <ThrowOnError extends boolean = false>(options?: O
|
|
|
1016
1171
|
* Returns a list of ranked search results
|
|
1017
1172
|
*/
|
|
1018
1173
|
declare const postApiV1Search: <ThrowOnError extends boolean = false>(options: Options<PostApiV1SearchData, ThrowOnError>) => RequestResult<PostApiV1SearchResponses, PostApiV1SearchErrors, ThrowOnError>;
|
|
1174
|
+
/**
|
|
1175
|
+
* Exchange authorization code for tokens
|
|
1176
|
+
*
|
|
1177
|
+
* Exchanges an OAuth authorization code for access and refresh tokens
|
|
1178
|
+
*/
|
|
1179
|
+
declare const postAuthOauthByProviderExchange: <ThrowOnError extends boolean = false>(options: Options<PostAuthOauthByProviderExchangeData, ThrowOnError>) => RequestResult<PostAuthOauthByProviderExchangeResponses, PostAuthOauthByProviderExchangeErrors, ThrowOnError>;
|
|
1180
|
+
/**
|
|
1181
|
+
* Refresh access token
|
|
1182
|
+
*
|
|
1183
|
+
* Refreshes an expired access token using a refresh token
|
|
1184
|
+
*/
|
|
1185
|
+
declare const postAuthOauthByProviderRefresh: <ThrowOnError extends boolean = false>(options: Options<PostAuthOauthByProviderRefreshData, ThrowOnError>) => RequestResult<PostAuthOauthByProviderRefreshResponses, PostAuthOauthByProviderRefreshErrors, ThrowOnError>;
|
|
1186
|
+
/**
|
|
1187
|
+
* Revoke OAuth token
|
|
1188
|
+
*
|
|
1189
|
+
* Revokes an OAuth access or refresh token
|
|
1190
|
+
*/
|
|
1191
|
+
declare const postAuthOauthByProviderRevoke: <ThrowOnError extends boolean = false>(options: Options<PostAuthOauthByProviderRevokeData, ThrowOnError>) => RequestResult<PostAuthOauthByProviderRevokeResponses, PostAuthOauthByProviderRevokeErrors, ThrowOnError>;
|
|
1019
1192
|
/**
|
|
1020
1193
|
* Health check
|
|
1021
1194
|
*
|
|
@@ -1023,4 +1196,4 @@ declare const postApiV1Search: <ThrowOnError extends boolean = false>(options: O
|
|
|
1023
1196
|
*/
|
|
1024
1197
|
declare const getHealth: <ThrowOnError extends boolean = false>(options?: Options<GetHealthData, ThrowOnError>) => RequestResult<GetHealthResponses, GetHealthErrors, ThrowOnError>;
|
|
1025
1198
|
|
|
1026
|
-
export { type ClientOptions$1 as ClientOptions, type GetApiV1ModelsData, type GetApiV1ModelsError, type GetApiV1ModelsErrors, type GetApiV1ModelsResponse, type GetApiV1ModelsResponses, type GetHealthData, type GetHealthError, type GetHealthErrors, type GetHealthResponse, type GetHealthResponses, type HandlersHealthResponse, type LlmapiChatCompletionExtraFields, type LlmapiChatCompletionRequest, type LlmapiChatCompletionResponse, type LlmapiChatCompletionUsage, type LlmapiChoice, type LlmapiEmbeddingData, type LlmapiEmbeddingExtraFields, type LlmapiEmbeddingRequest, type LlmapiEmbeddingResponse, type LlmapiEmbeddingUsage, type LlmapiImageGenerationExtraFields, type LlmapiImageGenerationImage, type LlmapiImageGenerationRequest, type LlmapiImageGenerationResponse, type LlmapiImageGenerationUsage, type LlmapiMessage, type LlmapiMessageContentImage, type LlmapiMessageContentPart, type LlmapiModel, type LlmapiModelArchitecture, type LlmapiModelPerRequestLimits, type LlmapiModelPricing, type LlmapiModelTopProvider, type LlmapiModelsListExtraFields, type LlmapiModelsListResponse, type LlmapiRole, type LlmapiSearchExtraFields, type LlmapiSearchRequest, type LlmapiSearchResponse, type LlmapiSearchResult, type LlmapiSearchUsage, type Options, type PostApiV1ChatCompletionsData, type PostApiV1ChatCompletionsError, type PostApiV1ChatCompletionsErrors, type PostApiV1ChatCompletionsResponse, type PostApiV1ChatCompletionsResponses, type PostApiV1EmbeddingsData, type PostApiV1EmbeddingsError, type PostApiV1EmbeddingsErrors, type PostApiV1EmbeddingsResponse, type PostApiV1EmbeddingsResponses, type PostApiV1ImagesGenerationsData, type PostApiV1ImagesGenerationsError, type PostApiV1ImagesGenerationsErrors, type PostApiV1ImagesGenerationsResponse, type PostApiV1ImagesGenerationsResponses, type PostApiV1SearchData, type PostApiV1SearchError, type PostApiV1SearchErrors, type PostApiV1SearchResponse, type PostApiV1SearchResponses, type ResponseErrorResponse, getApiV1Models, getHealth, postApiV1ChatCompletions, postApiV1Embeddings, postApiV1ImagesGenerations, postApiV1Search };
|
|
1199
|
+
export { type ClientOptions$1 as ClientOptions, type GetApiV1DocsSwaggerJsonData, type GetApiV1DocsSwaggerJsonResponse, type GetApiV1DocsSwaggerJsonResponses, type GetApiV1ModelsData, type GetApiV1ModelsError, type GetApiV1ModelsErrors, type GetApiV1ModelsResponse, type GetApiV1ModelsResponses, type GetHealthData, type GetHealthError, type GetHealthErrors, type GetHealthResponse, type GetHealthResponses, type HandlersExchangeRequest, type HandlersHealthResponse, type HandlersRefreshRequest, type HandlersRevokeRequest, type HandlersTokenResponse, type LlmapiChatCompletionExtraFields, type LlmapiChatCompletionRequest, type LlmapiChatCompletionResponse, type LlmapiChatCompletionUsage, type LlmapiChoice, type LlmapiEmbeddingData, type LlmapiEmbeddingExtraFields, type LlmapiEmbeddingRequest, type LlmapiEmbeddingResponse, type LlmapiEmbeddingUsage, type LlmapiImageGenerationExtraFields, type LlmapiImageGenerationImage, type LlmapiImageGenerationRequest, type LlmapiImageGenerationResponse, type LlmapiImageGenerationUsage, type LlmapiMessage, type LlmapiMessageContentImage, type LlmapiMessageContentPart, type LlmapiModel, type LlmapiModelArchitecture, type LlmapiModelPerRequestLimits, type LlmapiModelPricing, type LlmapiModelTopProvider, type LlmapiModelsListExtraFields, type LlmapiModelsListResponse, type LlmapiRole, type LlmapiSearchExtraFields, type LlmapiSearchRequest, type LlmapiSearchResponse, type LlmapiSearchResult, type LlmapiSearchUsage, type Options, type PostApiV1ChatCompletionsData, type PostApiV1ChatCompletionsError, type PostApiV1ChatCompletionsErrors, type PostApiV1ChatCompletionsResponse, type PostApiV1ChatCompletionsResponses, type PostApiV1EmbeddingsData, type PostApiV1EmbeddingsError, type PostApiV1EmbeddingsErrors, type PostApiV1EmbeddingsResponse, type PostApiV1EmbeddingsResponses, type PostApiV1ImagesGenerationsData, type PostApiV1ImagesGenerationsError, type PostApiV1ImagesGenerationsErrors, type PostApiV1ImagesGenerationsResponse, type PostApiV1ImagesGenerationsResponses, type PostApiV1SearchData, type PostApiV1SearchError, type PostApiV1SearchErrors, type PostApiV1SearchResponse, type PostApiV1SearchResponses, type PostAuthOauthByProviderExchangeData, type PostAuthOauthByProviderExchangeError, type PostAuthOauthByProviderExchangeErrors, type PostAuthOauthByProviderExchangeResponse, type PostAuthOauthByProviderExchangeResponses, type PostAuthOauthByProviderRefreshData, type PostAuthOauthByProviderRefreshError, type PostAuthOauthByProviderRefreshErrors, type PostAuthOauthByProviderRefreshResponse, type PostAuthOauthByProviderRefreshResponses, type PostAuthOauthByProviderRevokeData, type PostAuthOauthByProviderRevokeError, type PostAuthOauthByProviderRevokeErrors, type PostAuthOauthByProviderRevokeResponse, type PostAuthOauthByProviderRevokeResponses, type ResponseErrorResponse, getApiV1DocsSwaggerJson, getApiV1Models, getHealth, postApiV1ChatCompletions, postApiV1Embeddings, postApiV1ImagesGenerations, postApiV1Search, postAuthOauthByProviderExchange, postAuthOauthByProviderRefresh, postAuthOauthByProviderRevoke };
|
package/dist/index.mjs
CHANGED
|
@@ -824,6 +824,12 @@ var postApiV1ChatCompletions = (options) => {
|
|
|
824
824
|
}
|
|
825
825
|
});
|
|
826
826
|
};
|
|
827
|
+
var getApiV1DocsSwaggerJson = (options) => {
|
|
828
|
+
return (options?.client ?? client).get({
|
|
829
|
+
url: "/api/v1/docs/swagger.json",
|
|
830
|
+
...options
|
|
831
|
+
});
|
|
832
|
+
};
|
|
827
833
|
var postApiV1Embeddings = (options) => {
|
|
828
834
|
return (options.client ?? client).post({
|
|
829
835
|
url: "/api/v1/embeddings",
|
|
@@ -860,6 +866,36 @@ var postApiV1Search = (options) => {
|
|
|
860
866
|
}
|
|
861
867
|
});
|
|
862
868
|
};
|
|
869
|
+
var postAuthOauthByProviderExchange = (options) => {
|
|
870
|
+
return (options.client ?? client).post({
|
|
871
|
+
url: "/auth/oauth/{provider}/exchange",
|
|
872
|
+
...options,
|
|
873
|
+
headers: {
|
|
874
|
+
"Content-Type": "application/json",
|
|
875
|
+
...options.headers
|
|
876
|
+
}
|
|
877
|
+
});
|
|
878
|
+
};
|
|
879
|
+
var postAuthOauthByProviderRefresh = (options) => {
|
|
880
|
+
return (options.client ?? client).post({
|
|
881
|
+
url: "/auth/oauth/{provider}/refresh",
|
|
882
|
+
...options,
|
|
883
|
+
headers: {
|
|
884
|
+
"Content-Type": "application/json",
|
|
885
|
+
...options.headers
|
|
886
|
+
}
|
|
887
|
+
});
|
|
888
|
+
};
|
|
889
|
+
var postAuthOauthByProviderRevoke = (options) => {
|
|
890
|
+
return (options.client ?? client).post({
|
|
891
|
+
url: "/auth/oauth/{provider}/revoke",
|
|
892
|
+
...options,
|
|
893
|
+
headers: {
|
|
894
|
+
"Content-Type": "application/json",
|
|
895
|
+
...options.headers
|
|
896
|
+
}
|
|
897
|
+
});
|
|
898
|
+
};
|
|
863
899
|
var getHealth = (options) => {
|
|
864
900
|
return (options?.client ?? client).get({
|
|
865
901
|
url: "/health",
|
|
@@ -867,10 +903,14 @@ var getHealth = (options) => {
|
|
|
867
903
|
});
|
|
868
904
|
};
|
|
869
905
|
export {
|
|
906
|
+
getApiV1DocsSwaggerJson,
|
|
870
907
|
getApiV1Models,
|
|
871
908
|
getHealth,
|
|
872
909
|
postApiV1ChatCompletions,
|
|
873
910
|
postApiV1Embeddings,
|
|
874
911
|
postApiV1ImagesGenerations,
|
|
875
|
-
postApiV1Search
|
|
912
|
+
postApiV1Search,
|
|
913
|
+
postAuthOauthByProviderExchange,
|
|
914
|
+
postAuthOauthByProviderRefresh,
|
|
915
|
+
postAuthOauthByProviderRevoke
|
|
876
916
|
};
|