@reverbia/sdk 1.0.0-next.20260111202106 → 1.0.0-next.20260112105133

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/index.d.ts CHANGED
@@ -35,6 +35,13 @@ type HandlersConfigResponse = {
35
35
  */
36
36
  settlement_recipient?: string;
37
37
  };
38
+ type HandlersCreateCheckoutSessionRequest = {
39
+ cancel_url?: string;
40
+ success_url?: string;
41
+ };
42
+ type HandlersCreateCustomerPortalRequest = {
43
+ return_url?: string;
44
+ };
38
45
  type HandlersCustomerPortalResponse = {
39
46
  url?: string;
40
47
  };
@@ -140,13 +147,7 @@ type LlmapiChatCompletionRequest = {
140
147
  * Stream indicates if response should be streamed
141
148
  */
142
149
  stream?: boolean;
143
- /**
144
- * ToolChoice controls which tool to use. Can be:
145
- * - string: "auto", "none", "required", or a function name
146
- * - object: {"type": "function", "function": {"name": "my_function"}}
147
- * Using 'any' to match OpenAI's flexible API format.
148
- */
149
- tool_choice?: unknown;
150
+ tool_choice?: LlmapiToolChoice;
150
151
  /**
151
152
  * Tools is an array of tool definitions the model can use
152
153
  */
@@ -297,96 +298,6 @@ type LlmapiEmbeddingUsage = {
297
298
  */
298
299
  total_tokens?: number;
299
300
  };
300
- /**
301
- * ExtraFields contains additional metadata such as provider/model information.
302
- */
303
- type LlmapiImageGenerationExtraFields = {
304
- /**
305
- * ModelRequested is the model identifier that the client asked for.
306
- */
307
- model_requested?: string;
308
- /**
309
- * Provider is the gateway that serviced this request.
310
- */
311
- provider?: string;
312
- /**
313
- * RequestType is always "image_generation".
314
- */
315
- request_type?: string;
316
- };
317
- type LlmapiImageGenerationImage = {
318
- /**
319
- * B64JSON is the base64 payload for models that can only return binary.
320
- */
321
- b64_json?: string;
322
- /**
323
- * URL is the signed URL to download the image.
324
- */
325
- url?: string;
326
- };
327
- type LlmapiImageGenerationRequest = {
328
- /**
329
- * Model is the model identifier to use for generation (e.g., "gpt-image-1").
330
- */
331
- model: string;
332
- /**
333
- * Prompt is the text description of the desired image.
334
- */
335
- prompt: string;
336
- /**
337
- * Quality targets a quality preset (e.g., "auto", "high").
338
- */
339
- quality?: string;
340
- /**
341
- * ResponseFormat controls how the generated image is returned (e.g., "url" or "b64_json").
342
- */
343
- response_format?: string;
344
- /**
345
- * Size controls the dimensions of the generated image (e.g., "1024x1024").
346
- */
347
- size?: string;
348
- };
349
- type LlmapiImageGenerationResponse = {
350
- /**
351
- * Created is the Unix timestamp when the image was generated.
352
- */
353
- created?: number;
354
- extra_fields?: LlmapiImageGenerationExtraFields;
355
- /**
356
- * Images contains the generated images.
357
- */
358
- images?: Array<LlmapiImageGenerationImage>;
359
- /**
360
- * Model is the model identifier that generated the image.
361
- */
362
- model?: string;
363
- /**
364
- * Provider is the gateway that produced the image.
365
- */
366
- provider?: string;
367
- usage?: LlmapiImageGenerationUsage;
368
- };
369
- /**
370
- * Usage documents token usage (when available).
371
- */
372
- type LlmapiImageGenerationUsage = {
373
- /**
374
- * CostMicroUSD is the inference cost for this image generation request
375
- */
376
- cost_micro_usd?: number;
377
- /**
378
- * InputTokens is the number of tokens sent in the prompt.
379
- */
380
- input_tokens?: number;
381
- /**
382
- * OutputTokens is the number of tokens returned by the model.
383
- */
384
- output_tokens?: number;
385
- /**
386
- * TotalTokens is the total number of tokens consumed.
387
- */
388
- total_tokens?: number;
389
- };
390
301
  /**
391
302
  * Message is the generated message
392
303
  */
@@ -681,10 +592,6 @@ type LlmapiResponseRequest = {
681
592
  * Background indicates if request should be processed in background
682
593
  */
683
594
  background?: boolean;
684
- /**
685
- * Conversation is the conversation ID (optional)
686
- */
687
- conversation?: string;
688
595
  input: LlmapiResponseInput;
689
596
  /**
690
597
  * MaxOutputTokens is the maximum number of tokens to generate
@@ -704,10 +611,7 @@ type LlmapiResponseRequest = {
704
611
  */
705
612
  temperature?: number;
706
613
  thinking?: LlmapiThinkingOptions;
707
- /**
708
- * ToolChoice controls which tool to use (auto, any, none, required, or tool name)
709
- */
710
- tool_choice?: string;
614
+ tool_choice?: LlmapiToolChoice;
711
615
  /**
712
616
  * Tools is an array of tool definitions the model can use
713
617
  */
@@ -769,80 +673,6 @@ type LlmapiResponseUsage = {
769
673
  * Role is the message role (system, user, assistant, tool)
770
674
  */
771
675
  type LlmapiRole = string;
772
- /**
773
- * ExtraFields contains additional metadata.
774
- */
775
- type LlmapiSearchExtraFields = {
776
- /**
777
- * RequestType is always "search".
778
- */
779
- request_type?: string;
780
- /**
781
- * SearchProvider is the search provider used (e.g., "perplexity", "google-pse").
782
- */
783
- search_provider?: string;
784
- };
785
- type LlmapiSearchRequest = {
786
- /**
787
- * Country code filter (e.g., "US", "GB", "DE").
788
- */
789
- country?: string;
790
- /**
791
- * Maximum number of results to return (1-20). Default: 10.
792
- */
793
- max_results?: number;
794
- /**
795
- * Maximum tokens per page to process. Default: 1024.
796
- */
797
- max_tokens_per_page?: number;
798
- /**
799
- * Search query. Can be a single string or array of strings.
800
- */
801
- query: Array<string>;
802
- /**
803
- * List of domains to filter results (max 20 domains).
804
- */
805
- search_domain_filter?: Array<string>;
806
- /**
807
- * The search provider to use.
808
- */
809
- search_tool_name: string;
810
- };
811
- type LlmapiSearchResponse = {
812
- extra_fields?: LlmapiSearchExtraFields;
813
- /**
814
- * List of search results.
815
- */
816
- results?: Array<LlmapiSearchResult>;
817
- usage?: LlmapiSearchUsage;
818
- };
819
- type LlmapiSearchResult = {
820
- /**
821
- * Optional publication or last updated date.
822
- */
823
- date?: string;
824
- /**
825
- * Text snippet from the result.
826
- */
827
- snippet?: string;
828
- /**
829
- * Title of the search result.
830
- */
831
- title?: string;
832
- /**
833
- * URL of the search result.
834
- */
835
- url?: string;
836
- };
837
- /**
838
- * Usage contains usage information.
839
- */
840
- type LlmapiSearchUsage = {
841
- /**
842
- * CostMicroUSD is the cost of this search in micro-dollars (USD × 1,000,000).
843
- */
844
- cost_micro_usd?: number;
845
- };
846
676
  /**
847
677
  * Thinking configures extended thinking for Anthropic models
848
678
  */
@@ -887,6 +717,30 @@ type LlmapiToolCallFunction = {
887
717
  */
888
718
  name?: string;
889
719
  };
720
+ /**
721
+ * ToolChoice controls which tool to use. Can be:
722
+ * - string: "auto", "none", "required"
723
+ * - object: {"name": "my_function"}
724
+ */
725
+ type LlmapiToolChoice = {
726
+ function?: LlmapiToolChoiceFunction;
727
+ mode?: LlmapiToolChoiceMode;
728
+ tag?: LlmapiToolChoiceTag;
729
+ };
730
+ /**
731
+ * Function forces the model to call a specific tool function.
732
+ */
733
+ type LlmapiToolChoiceFunction = {
734
+ name?: string;
735
+ };
736
+ /**
737
+ * Mode controls which (if any) tool is called by the model.
738
+ * - "none" means the model will not call any tool and instead generates a message.
739
+ * - "auto" means the model can pick between generating a message or calling one or more tools.
740
+ * - "required" means the model must call one or more tools.
741
+ */
742
+ type LlmapiToolChoiceMode = 'none' | 'auto' | 'required';
743
+ type LlmapiToolChoiceTag = 0 | 1;
890
744
  /**
891
745
  * Function is the function definition (when Type is "function")
892
746
  */
@@ -908,6 +762,8 @@ type LlmapiToolFunction = {
908
762
  };
909
763
  type ResponseErrorResponse = {
910
764
  error?: string;
765
+ request_id?: string;
766
+ trace_id?: string;
911
767
  };
912
768
  type PostApiV1ChatCompletionsData = {
913
769
  /**
@@ -1006,37 +862,6 @@ type PostApiV1EmbeddingsResponses = {
1006
862
  200: LlmapiEmbeddingResponse;
1007
863
  };
1008
864
  type PostApiV1EmbeddingsResponse = PostApiV1EmbeddingsResponses[keyof PostApiV1EmbeddingsResponses];
1009
- type PostApiV1ImagesGenerationsData = {
1010
- /**
1011
- * Image generation request
1012
- */
1013
- body: LlmapiImageGenerationRequest;
1014
- path?: never;
1015
- query?: never;
1016
- url: '/api/v1/images/generations';
1017
- };
1018
- type PostApiV1ImagesGenerationsErrors = {
1019
- /**
1020
- * Bad Request
1021
- */
1022
- 400: ResponseErrorResponse;
1023
- /**
1024
- * Internal Server Error
1025
- */
1026
- 500: ResponseErrorResponse;
1027
- /**
1028
- * Not Implemented
1029
- */
1030
- 501: ResponseErrorResponse;
1031
- };
1032
- type PostApiV1ImagesGenerationsError = PostApiV1ImagesGenerationsErrors[keyof PostApiV1ImagesGenerationsErrors];
1033
- type PostApiV1ImagesGenerationsResponses = {
1034
- /**
1035
- * OK
1036
- */
1037
- 200: LlmapiImageGenerationResponse;
1038
- };
1039
- type PostApiV1ImagesGenerationsResponse = PostApiV1ImagesGenerationsResponses[keyof PostApiV1ImagesGenerationsResponses];
1040
865
  type GetApiV1ModelsData = {
1041
866
  body?: never;
1042
867
  path?: never;
@@ -1109,33 +934,6 @@ type PostApiV1ResponsesResponses = {
1109
934
  200: LlmapiResponseResponse | string;
1110
935
  };
1111
936
  type PostApiV1ResponsesResponse = PostApiV1ResponsesResponses[keyof PostApiV1ResponsesResponses];
1112
- type PostApiV1SearchData = {
1113
- /**
1114
- * Search request
1115
- */
1116
- body: LlmapiSearchRequest;
1117
- path?: never;
1118
- query?: never;
1119
- url: '/api/v1/search';
1120
- };
1121
- type PostApiV1SearchErrors = {
1122
- /**
1123
- * Bad Request
1124
- */
1125
- 400: ResponseErrorResponse;
1126
- /**
1127
- * Internal Server Error
1128
- */
1129
- 500: ResponseErrorResponse;
1130
- };
1131
- type PostApiV1SearchError = PostApiV1SearchErrors[keyof PostApiV1SearchErrors];
1132
- type PostApiV1SearchResponses = {
1133
- /**
1134
- * OK
1135
- */
1136
- 200: LlmapiSearchResponse;
1137
- };
1138
- type PostApiV1SearchResponse = PostApiV1SearchResponses[keyof PostApiV1SearchResponses];
1139
937
  type PostApiV1SubscriptionsCancelData = {
1140
938
  body?: never;
1141
939
  path?: never;
@@ -1165,12 +963,19 @@ type PostApiV1SubscriptionsCancelResponses = {
1165
963
  };
1166
964
  type PostApiV1SubscriptionsCancelResponse = PostApiV1SubscriptionsCancelResponses[keyof PostApiV1SubscriptionsCancelResponses];
1167
965
  type PostApiV1SubscriptionsCreateCheckoutSessionData = {
1168
- body?: never;
966
+ /**
967
+ * Checkout session request with redirect URLs
968
+ */
969
+ body: HandlersCreateCheckoutSessionRequest;
1169
970
  path?: never;
1170
971
  query?: never;
1171
972
  url: '/api/v1/subscriptions/create-checkout-session';
1172
973
  };
1173
974
  type PostApiV1SubscriptionsCreateCheckoutSessionErrors = {
975
+ /**
976
+ * Bad Request
977
+ */
978
+ 400: ResponseErrorResponse;
1174
979
  /**
1175
980
  * Unauthorized
1176
981
  */
@@ -1189,12 +994,19 @@ type PostApiV1SubscriptionsCreateCheckoutSessionResponses = {
1189
994
  };
1190
995
  type PostApiV1SubscriptionsCreateCheckoutSessionResponse = PostApiV1SubscriptionsCreateCheckoutSessionResponses[keyof PostApiV1SubscriptionsCreateCheckoutSessionResponses];
1191
996
  type PostApiV1SubscriptionsCustomerPortalData = {
1192
- body?: never;
997
+ /**
998
+ * Customer portal request with return URL
999
+ */
1000
+ body: HandlersCreateCustomerPortalRequest;
1193
1001
  path?: never;
1194
1002
  query?: never;
1195
1003
  url: '/api/v1/subscriptions/customer-portal';
1196
1004
  };
1197
1005
  type PostApiV1SubscriptionsCustomerPortalErrors = {
1006
+ /**
1007
+ * Bad Request
1008
+ */
1009
+ 400: ResponseErrorResponse;
1198
1010
  /**
1199
1011
  * Unauthorized
1200
1012
  */
@@ -1747,12 +1559,6 @@ declare const getApiV1DocsSwaggerJson: <ThrowOnError extends boolean = false>(op
1747
1559
  * Generates embeddings using the configured gateway.
1748
1560
  */
1749
1561
  declare const postApiV1Embeddings: <ThrowOnError extends boolean = false>(options: Options<PostApiV1EmbeddingsData, ThrowOnError>) => RequestResult<PostApiV1EmbeddingsResponses, PostApiV1EmbeddingsErrors, ThrowOnError>;
1750
- /**
1751
- * Generate images
1752
- *
1753
- * Generates images using the configured LLM gateway.
1754
- */
1755
- declare const postApiV1ImagesGenerations: <ThrowOnError extends boolean = false>(options: Options<PostApiV1ImagesGenerationsData, ThrowOnError>) => RequestResult<PostApiV1ImagesGenerationsResponses, PostApiV1ImagesGenerationsErrors, ThrowOnError>;
1756
1562
  /**
1757
1563
  * List available models
1758
1564
  *
@@ -1765,12 +1571,6 @@ declare const getApiV1Models: <ThrowOnError extends boolean = false>(options?: O
1765
1571
  * Generates a response using the Responses API format. Supports streaming when stream=true.
1766
1572
  */
1767
1573
  declare const postApiV1Responses: <ThrowOnError extends boolean = false>(options: Options<PostApiV1ResponsesData, ThrowOnError>) => RequestResult<PostApiV1ResponsesResponses, PostApiV1ResponsesErrors, ThrowOnError>;
1768
- /**
1769
- * Create search
1770
- *
1771
- * Returns a list of ranked search results
1772
- */
1773
- declare const postApiV1Search: <ThrowOnError extends boolean = false>(options: Options<PostApiV1SearchData, ThrowOnError>) => RequestResult<PostApiV1SearchResponses, PostApiV1SearchErrors, ThrowOnError>;
1774
1574
  /**
1775
1575
  * Cancel subscription
1776
1576
  *
@@ -1782,13 +1582,13 @@ declare const postApiV1SubscriptionsCancel: <ThrowOnError extends boolean = fals
1782
1582
  *
1783
1583
  * Creates a Stripe Checkout Session for Pro subscription and returns the checkout URL
1784
1584
  */
1785
- declare const postApiV1SubscriptionsCreateCheckoutSession: <ThrowOnError extends boolean = false>(options?: Options<PostApiV1SubscriptionsCreateCheckoutSessionData, ThrowOnError>) => RequestResult<PostApiV1SubscriptionsCreateCheckoutSessionResponses, PostApiV1SubscriptionsCreateCheckoutSessionErrors, ThrowOnError>;
1585
+ declare const postApiV1SubscriptionsCreateCheckoutSession: <ThrowOnError extends boolean = false>(options: Options<PostApiV1SubscriptionsCreateCheckoutSessionData, ThrowOnError>) => RequestResult<PostApiV1SubscriptionsCreateCheckoutSessionResponses, PostApiV1SubscriptionsCreateCheckoutSessionErrors, ThrowOnError>;
1786
1586
  /**
1787
1587
  * Create customer portal session
1788
1588
  *
1789
1589
  * Creates a Stripe Customer Portal session for managing subscription and returns the portal URL
1790
1590
  */
1791
- declare const postApiV1SubscriptionsCustomerPortal: <ThrowOnError extends boolean = false>(options?: Options<PostApiV1SubscriptionsCustomerPortalData, ThrowOnError>) => RequestResult<PostApiV1SubscriptionsCustomerPortalResponses, PostApiV1SubscriptionsCustomerPortalErrors, ThrowOnError>;
1591
+ declare const postApiV1SubscriptionsCustomerPortal: <ThrowOnError extends boolean = false>(options: Options<PostApiV1SubscriptionsCustomerPortalData, ThrowOnError>) => RequestResult<PostApiV1SubscriptionsCustomerPortalResponses, PostApiV1SubscriptionsCustomerPortalErrors, ThrowOnError>;
1792
1592
  /**
1793
1593
  * Renew subscription
1794
1594
  *
@@ -1832,4 +1632,4 @@ declare const postAuthOauthByProviderRevoke: <ThrowOnError extends boolean = fal
1832
1632
  */
1833
1633
  declare const getHealth: <ThrowOnError extends boolean = false>(options?: Options<GetHealthData, ThrowOnError>) => RequestResult<GetHealthResponses, GetHealthErrors, ThrowOnError>;
1834
1634
 
1835
- export { type ClientOptions$1 as ClientOptions, type GetApiV1ConfigData, type GetApiV1ConfigError, type GetApiV1ConfigErrors, type GetApiV1ConfigResponse, type GetApiV1ConfigResponses, type GetApiV1DocsSwaggerJsonData, type GetApiV1DocsSwaggerJsonResponse, type GetApiV1DocsSwaggerJsonResponses, type GetApiV1ModelsData, type GetApiV1ModelsError, type GetApiV1ModelsErrors, type GetApiV1ModelsResponse, type GetApiV1ModelsResponses, type GetApiV1SubscriptionsStatusData, type GetApiV1SubscriptionsStatusError, type GetApiV1SubscriptionsStatusErrors, type GetApiV1SubscriptionsStatusResponse, type GetApiV1SubscriptionsStatusResponses, type GetHealthData, type GetHealthError, type GetHealthErrors, type GetHealthResponse, type GetHealthResponses, type HandlersCancelSubscriptionResponse, type HandlersCheckoutSessionResponse, type HandlersConfigResponse, type HandlersCustomerPortalResponse, type HandlersExchangeRequest, type HandlersHealthResponse, type HandlersRefreshRequest, type HandlersRenewSubscriptionResponse, type HandlersRevokeRequest, type HandlersSubscriptionStatusResponse, 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 LlmapiMessageContentFile, type LlmapiMessageContentImage, type LlmapiMessageContentPart, type LlmapiModel, type LlmapiModelArchitecture, type LlmapiModelPerRequestLimits, type LlmapiModelPricing, type LlmapiModelTopProvider, type LlmapiModelsListExtraFields, type LlmapiModelsListResponse, type LlmapiResponseExtraFields, type LlmapiResponseInput, type LlmapiResponseOutputContent, type LlmapiResponseOutputItem, type LlmapiResponseReasoning, type LlmapiResponseRequest, type LlmapiResponseResponse, type LlmapiResponseUsage, type LlmapiRole, type LlmapiSearchExtraFields, type LlmapiSearchRequest, type LlmapiSearchResponse, type LlmapiSearchResult, type LlmapiSearchUsage, type LlmapiThinkingOptions, type LlmapiTool, type LlmapiToolCall, type LlmapiToolCallFunction, type LlmapiToolFunction, 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 PostApiV1ResponsesData, type PostApiV1ResponsesError, type PostApiV1ResponsesErrors, type PostApiV1ResponsesResponse, type PostApiV1ResponsesResponses, type PostApiV1SearchData, type PostApiV1SearchError, type PostApiV1SearchErrors, type PostApiV1SearchResponse, type PostApiV1SearchResponses, type PostApiV1SubscriptionsCancelData, type PostApiV1SubscriptionsCancelError, type PostApiV1SubscriptionsCancelErrors, type PostApiV1SubscriptionsCancelResponse, type PostApiV1SubscriptionsCancelResponses, type PostApiV1SubscriptionsCreateCheckoutSessionData, type PostApiV1SubscriptionsCreateCheckoutSessionError, type PostApiV1SubscriptionsCreateCheckoutSessionErrors, type PostApiV1SubscriptionsCreateCheckoutSessionResponse, type PostApiV1SubscriptionsCreateCheckoutSessionResponses, type PostApiV1SubscriptionsCustomerPortalData, type PostApiV1SubscriptionsCustomerPortalError, type PostApiV1SubscriptionsCustomerPortalErrors, type PostApiV1SubscriptionsCustomerPortalResponse, type PostApiV1SubscriptionsCustomerPortalResponses, type PostApiV1SubscriptionsRenewData, type PostApiV1SubscriptionsRenewError, type PostApiV1SubscriptionsRenewErrors, type PostApiV1SubscriptionsRenewResponse, type PostApiV1SubscriptionsRenewResponses, type PostApiV1SubscriptionsWebhookData, type PostApiV1SubscriptionsWebhookError, type PostApiV1SubscriptionsWebhookErrors, type PostApiV1SubscriptionsWebhookResponse, type PostApiV1SubscriptionsWebhookResponses, 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, getApiV1Config, getApiV1DocsSwaggerJson, getApiV1Models, getApiV1SubscriptionsStatus, getHealth, postApiV1ChatCompletions, postApiV1Embeddings, postApiV1ImagesGenerations, postApiV1Responses, postApiV1Search, postApiV1SubscriptionsCancel, postApiV1SubscriptionsCreateCheckoutSession, postApiV1SubscriptionsCustomerPortal, postApiV1SubscriptionsRenew, postApiV1SubscriptionsWebhook, postAuthOauthByProviderExchange, postAuthOauthByProviderRefresh, postAuthOauthByProviderRevoke };
1635
+ export { type ClientOptions$1 as ClientOptions, type GetApiV1ConfigData, type GetApiV1ConfigError, type GetApiV1ConfigErrors, type GetApiV1ConfigResponse, type GetApiV1ConfigResponses, type GetApiV1DocsSwaggerJsonData, type GetApiV1DocsSwaggerJsonResponse, type GetApiV1DocsSwaggerJsonResponses, type GetApiV1ModelsData, type GetApiV1ModelsError, type GetApiV1ModelsErrors, type GetApiV1ModelsResponse, type GetApiV1ModelsResponses, type GetApiV1SubscriptionsStatusData, type GetApiV1SubscriptionsStatusError, type GetApiV1SubscriptionsStatusErrors, type GetApiV1SubscriptionsStatusResponse, type GetApiV1SubscriptionsStatusResponses, type GetHealthData, type GetHealthError, type GetHealthErrors, type GetHealthResponse, type GetHealthResponses, type HandlersCancelSubscriptionResponse, type HandlersCheckoutSessionResponse, type HandlersConfigResponse, type HandlersCreateCheckoutSessionRequest, type HandlersCreateCustomerPortalRequest, type HandlersCustomerPortalResponse, type HandlersExchangeRequest, type HandlersHealthResponse, type HandlersRefreshRequest, type HandlersRenewSubscriptionResponse, type HandlersRevokeRequest, type HandlersSubscriptionStatusResponse, type HandlersTokenResponse, type LlmapiChatCompletionExtraFields, type LlmapiChatCompletionRequest, type LlmapiChatCompletionResponse, type LlmapiChatCompletionUsage, type LlmapiChoice, type LlmapiEmbeddingData, type LlmapiEmbeddingExtraFields, type LlmapiEmbeddingRequest, type LlmapiEmbeddingResponse, type LlmapiEmbeddingUsage, type LlmapiMessage, type LlmapiMessageContentFile, type LlmapiMessageContentImage, type LlmapiMessageContentPart, type LlmapiModel, type LlmapiModelArchitecture, type LlmapiModelPerRequestLimits, type LlmapiModelPricing, type LlmapiModelTopProvider, type LlmapiModelsListExtraFields, type LlmapiModelsListResponse, type LlmapiResponseExtraFields, type LlmapiResponseInput, type LlmapiResponseOutputContent, type LlmapiResponseOutputItem, type LlmapiResponseReasoning, type LlmapiResponseRequest, type LlmapiResponseResponse, type LlmapiResponseUsage, type LlmapiRole, type LlmapiThinkingOptions, type LlmapiTool, type LlmapiToolCall, type LlmapiToolCallFunction, type LlmapiToolChoice, type LlmapiToolChoiceFunction, type LlmapiToolChoiceMode, type LlmapiToolChoiceTag, type LlmapiToolFunction, type Options, type PostApiV1ChatCompletionsData, type PostApiV1ChatCompletionsError, type PostApiV1ChatCompletionsErrors, type PostApiV1ChatCompletionsResponse, type PostApiV1ChatCompletionsResponses, type PostApiV1EmbeddingsData, type PostApiV1EmbeddingsError, type PostApiV1EmbeddingsErrors, type PostApiV1EmbeddingsResponse, type PostApiV1EmbeddingsResponses, type PostApiV1ResponsesData, type PostApiV1ResponsesError, type PostApiV1ResponsesErrors, type PostApiV1ResponsesResponse, type PostApiV1ResponsesResponses, type PostApiV1SubscriptionsCancelData, type PostApiV1SubscriptionsCancelError, type PostApiV1SubscriptionsCancelErrors, type PostApiV1SubscriptionsCancelResponse, type PostApiV1SubscriptionsCancelResponses, type PostApiV1SubscriptionsCreateCheckoutSessionData, type PostApiV1SubscriptionsCreateCheckoutSessionError, type PostApiV1SubscriptionsCreateCheckoutSessionErrors, type PostApiV1SubscriptionsCreateCheckoutSessionResponse, type PostApiV1SubscriptionsCreateCheckoutSessionResponses, type PostApiV1SubscriptionsCustomerPortalData, type PostApiV1SubscriptionsCustomerPortalError, type PostApiV1SubscriptionsCustomerPortalErrors, type PostApiV1SubscriptionsCustomerPortalResponse, type PostApiV1SubscriptionsCustomerPortalResponses, type PostApiV1SubscriptionsRenewData, type PostApiV1SubscriptionsRenewError, type PostApiV1SubscriptionsRenewErrors, type PostApiV1SubscriptionsRenewResponse, type PostApiV1SubscriptionsRenewResponses, type PostApiV1SubscriptionsWebhookData, type PostApiV1SubscriptionsWebhookError, type PostApiV1SubscriptionsWebhookErrors, type PostApiV1SubscriptionsWebhookResponse, type PostApiV1SubscriptionsWebhookResponses, 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, getApiV1Config, getApiV1DocsSwaggerJson, getApiV1Models, getApiV1SubscriptionsStatus, getHealth, postApiV1ChatCompletions, postApiV1Embeddings, postApiV1Responses, postApiV1SubscriptionsCancel, postApiV1SubscriptionsCreateCheckoutSession, postApiV1SubscriptionsCustomerPortal, postApiV1SubscriptionsRenew, postApiV1SubscriptionsWebhook, postAuthOauthByProviderExchange, postAuthOauthByProviderRefresh, postAuthOauthByProviderRevoke };
package/dist/index.mjs CHANGED
@@ -846,16 +846,6 @@ var postApiV1Embeddings = (options) => {
846
846
  }
847
847
  });
848
848
  };
849
- var postApiV1ImagesGenerations = (options) => {
850
- return (options.client ?? client).post({
851
- url: "/api/v1/images/generations",
852
- ...options,
853
- headers: {
854
- "Content-Type": "application/json",
855
- ...options.headers
856
- }
857
- });
858
- };
859
849
  var getApiV1Models = (options) => {
860
850
  return (options?.client ?? client).get({
861
851
  url: "/api/v1/models",
@@ -872,16 +862,6 @@ var postApiV1Responses = (options) => {
872
862
  }
873
863
  });
874
864
  };
875
- var postApiV1Search = (options) => {
876
- return (options.client ?? client).post({
877
- url: "/api/v1/search",
878
- ...options,
879
- headers: {
880
- "Content-Type": "application/json",
881
- ...options.headers
882
- }
883
- });
884
- };
885
865
  var postApiV1SubscriptionsCancel = (options) => {
886
866
  return (options?.client ?? client).post({
887
867
  url: "/api/v1/subscriptions/cancel",
@@ -889,15 +869,23 @@ var postApiV1SubscriptionsCancel = (options) => {
889
869
  });
890
870
  };
891
871
  var postApiV1SubscriptionsCreateCheckoutSession = (options) => {
892
- return (options?.client ?? client).post({
872
+ return (options.client ?? client).post({
893
873
  url: "/api/v1/subscriptions/create-checkout-session",
894
- ...options
874
+ ...options,
875
+ headers: {
876
+ "Content-Type": "application/json",
877
+ ...options.headers
878
+ }
895
879
  });
896
880
  };
897
881
  var postApiV1SubscriptionsCustomerPortal = (options) => {
898
- return (options?.client ?? client).post({
882
+ return (options.client ?? client).post({
899
883
  url: "/api/v1/subscriptions/customer-portal",
900
- ...options
884
+ ...options,
885
+ headers: {
886
+ "Content-Type": "application/json",
887
+ ...options.headers
888
+ }
901
889
  });
902
890
  };
903
891
  var postApiV1SubscriptionsRenew = (options) => {
@@ -966,9 +954,7 @@ export {
966
954
  getHealth,
967
955
  postApiV1ChatCompletions,
968
956
  postApiV1Embeddings,
969
- postApiV1ImagesGenerations,
970
957
  postApiV1Responses,
971
- postApiV1Search,
972
958
  postApiV1SubscriptionsCancel,
973
959
  postApiV1SubscriptionsCreateCheckoutSession,
974
960
  postApiV1SubscriptionsCustomerPortal,