@deeprelay/sdk 0.2.0 → 0.3.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/.openapi-generator/FILES +66 -0
- package/README.md +47 -11
- package/dist/apis/AlertsApi.d.ts +50 -0
- package/dist/apis/AlertsApi.js +127 -0
- package/dist/apis/ApiKeysApi.d.ts +107 -0
- package/dist/apis/ApiKeysApi.js +284 -0
- package/dist/apis/BillingApi.d.ts +25 -7
- package/dist/apis/BillingApi.js +57 -7
- package/dist/apis/InferenceApi.d.ts +12 -1
- package/dist/apis/InferenceApi.js +22 -1
- package/dist/apis/MetaApi.d.ts +1 -1
- package/dist/apis/MetaApi.js +1 -1
- package/dist/apis/RequestsApi.d.ts +130 -0
- package/dist/apis/RequestsApi.js +269 -0
- package/dist/apis/UsageApi.d.ts +15 -1
- package/dist/apis/UsageApi.js +19 -2
- package/dist/apis/WebhooksApi.d.ts +1 -1
- package/dist/apis/WebhooksApi.js +1 -1
- package/dist/apis/index.d.ts +3 -0
- package/dist/apis/index.js +3 -0
- package/dist/esm/apis/AlertsApi.d.ts +50 -0
- package/dist/esm/apis/AlertsApi.js +123 -0
- package/dist/esm/apis/ApiKeysApi.d.ts +107 -0
- package/dist/esm/apis/ApiKeysApi.js +280 -0
- package/dist/esm/apis/BillingApi.d.ts +25 -7
- package/dist/esm/apis/BillingApi.js +57 -7
- package/dist/esm/apis/InferenceApi.d.ts +12 -1
- package/dist/esm/apis/InferenceApi.js +22 -1
- package/dist/esm/apis/MetaApi.d.ts +1 -1
- package/dist/esm/apis/MetaApi.js +1 -1
- package/dist/esm/apis/RequestsApi.d.ts +130 -0
- package/dist/esm/apis/RequestsApi.js +265 -0
- package/dist/esm/apis/UsageApi.d.ts +15 -1
- package/dist/esm/apis/UsageApi.js +18 -1
- package/dist/esm/apis/WebhooksApi.d.ts +1 -1
- package/dist/esm/apis/WebhooksApi.js +1 -1
- package/dist/esm/apis/index.d.ts +3 -0
- package/dist/esm/apis/index.js +3 -0
- package/dist/esm/models/AlertEmailToggles.d.ts +50 -0
- package/dist/esm/models/AlertEmailToggles.js +55 -0
- package/dist/esm/models/AlertSettings.d.ts +51 -0
- package/dist/esm/models/AlertSettings.js +56 -0
- package/dist/esm/models/AlertSettingsUpdate.d.ts +39 -0
- package/dist/esm/models/AlertSettingsUpdate.js +48 -0
- package/dist/esm/models/ApiKey.d.ts +123 -0
- package/dist/esm/models/ApiKey.js +96 -0
- package/dist/esm/models/ApiKeyCreate.d.ts +70 -0
- package/dist/esm/models/ApiKeyCreate.js +57 -0
- package/dist/esm/models/ApiKeyCreated.d.ts +129 -0
- package/dist/esm/models/ApiKeyCreated.js +100 -0
- package/dist/esm/models/ApiKeyList.d.ts +33 -0
- package/dist/esm/models/ApiKeyList.js +44 -0
- package/dist/esm/models/ApiKeyScopes.d.ts +65 -0
- package/dist/esm/models/ApiKeyScopes.js +66 -0
- package/dist/esm/models/ApiKeyUpdate.d.ts +62 -0
- package/dist/esm/models/ApiKeyUpdate.js +51 -0
- package/dist/esm/models/Balance.d.ts +1 -1
- package/dist/esm/models/Balance.js +1 -1
- package/dist/esm/models/ChatChoice.d.ts +11 -1
- package/dist/esm/models/ChatChoice.js +3 -1
- package/dist/esm/models/ChatCompletionRequest.d.ts +78 -2
- package/dist/esm/models/ChatCompletionRequest.js +26 -1
- package/dist/esm/models/ChatCompletionRequestResponseFormat.d.ts +31 -0
- package/dist/esm/models/ChatCompletionRequestResponseFormat.js +52 -0
- package/dist/esm/models/ChatCompletionRequestToolChoice.d.ts +23 -0
- package/dist/esm/models/ChatCompletionRequestToolChoice.js +50 -0
- package/dist/esm/models/ChatCompletionResponse.d.ts +1 -1
- package/dist/esm/models/ChatCompletionResponse.js +1 -1
- package/dist/esm/models/ChatMessage.d.ts +22 -2
- package/dist/esm/models/ChatMessage.js +10 -5
- package/dist/esm/models/CostDetails.d.ts +59 -0
- package/dist/esm/models/CostDetails.js +59 -0
- package/dist/esm/models/CreateCryptoDepositRequest.d.ts +4 -1
- package/dist/esm/models/CreateCryptoDepositRequest.js +4 -2
- package/dist/esm/models/CreateWebhookEndpointRequest.d.ts +5 -1
- package/dist/esm/models/CreateWebhookEndpointRequest.js +6 -2
- package/dist/esm/models/CryptoDeposit.d.ts +3 -1
- package/dist/esm/models/CryptoDeposit.js +4 -2
- package/dist/esm/models/Embedding.d.ts +1 -1
- package/dist/esm/models/Embedding.js +1 -1
- package/dist/esm/models/EmbeddingsRequest.d.ts +1 -1
- package/dist/esm/models/EmbeddingsRequest.js +1 -1
- package/dist/esm/models/EmbeddingsRequestInput.d.ts +1 -1
- package/dist/esm/models/EmbeddingsRequestInput.js +1 -1
- package/dist/esm/models/EmbeddingsResponse.d.ts +1 -1
- package/dist/esm/models/EmbeddingsResponse.js +1 -1
- package/dist/esm/models/EmbeddingsUsage.d.ts +1 -1
- package/dist/esm/models/EmbeddingsUsage.js +1 -1
- package/dist/esm/models/GetHealth200Response.d.ts +1 -1
- package/dist/esm/models/GetHealth200Response.js +1 -1
- package/dist/esm/models/ImagesGenerationsRequest.d.ts +2 -2
- package/dist/esm/models/ImagesGenerationsRequest.js +1 -1
- package/dist/esm/models/ImagesResponse.d.ts +1 -1
- package/dist/esm/models/ImagesResponse.js +1 -1
- package/dist/esm/models/ImagesResponseDataInner.d.ts +1 -1
- package/dist/esm/models/ImagesResponseDataInner.js +1 -1
- package/dist/esm/models/ImagesResponseUsage.d.ts +1 -1
- package/dist/esm/models/ImagesResponseUsage.js +1 -1
- package/dist/esm/models/InferencePreflight.d.ts +5 -2
- package/dist/esm/models/InferencePreflight.js +4 -1
- package/dist/esm/models/JSONSchemaFormat.d.ts +54 -0
- package/dist/esm/models/JSONSchemaFormat.js +49 -0
- package/dist/esm/models/ListDeposits200Response.d.ts +1 -1
- package/dist/esm/models/ListDeposits200Response.js +1 -1
- package/dist/esm/models/Model.d.ts +54 -5
- package/dist/esm/models/Model.js +21 -2
- package/dist/esm/models/ModelList.d.ts +1 -1
- package/dist/esm/models/ModelList.js +1 -1
- package/dist/esm/models/ModelMetrics.d.ts +101 -0
- package/dist/esm/models/ModelMetrics.js +85 -0
- package/dist/esm/models/ModelParametersInner.d.ts +1 -1
- package/dist/esm/models/ModelParametersInner.js +1 -1
- package/dist/esm/models/ModelPricing.d.ts +1 -1
- package/dist/esm/models/ModelPricing.js +1 -1
- package/dist/esm/models/ModelRate.d.ts +1 -1
- package/dist/esm/models/ModelRate.js +1 -1
- package/dist/esm/models/OpenAIErrorEnvelope.d.ts +1 -1
- package/dist/esm/models/OpenAIErrorEnvelope.js +1 -1
- package/dist/esm/models/OpenAIErrorEnvelopeError.d.ts +8 -2
- package/dist/esm/models/OpenAIErrorEnvelopeError.js +3 -1
- package/dist/esm/models/PeakWindow.d.ts +1 -1
- package/dist/esm/models/PeakWindow.js +1 -1
- package/dist/esm/models/Problem.d.ts +22 -1
- package/dist/esm/models/Problem.js +14 -1
- package/dist/esm/models/RefereeStatus.d.ts +1 -1
- package/dist/esm/models/RefereeStatus.js +1 -1
- package/dist/esm/models/Referral.d.ts +14 -2
- package/dist/esm/models/Referral.js +9 -1
- package/dist/esm/models/RequestLogEntry.d.ts +210 -0
- package/dist/esm/models/RequestLogEntry.js +129 -0
- package/dist/esm/models/RequestLogPage.d.ts +45 -0
- package/dist/esm/models/RequestLogPage.js +52 -0
- package/dist/esm/models/ResponseFormatJSONObject.d.ts +39 -0
- package/dist/esm/models/ResponseFormatJSONObject.js +51 -0
- package/dist/esm/models/ResponseFormatJSONSchema.d.ts +46 -0
- package/dist/esm/models/ResponseFormatJSONSchema.js +56 -0
- package/dist/esm/models/ResponseFormatText.d.ts +39 -0
- package/dist/esm/models/ResponseFormatText.js +51 -0
- package/dist/esm/models/SpendingLimit.d.ts +1 -1
- package/dist/esm/models/SpendingLimit.js +1 -1
- package/dist/esm/models/StreamOptions.d.ts +1 -1
- package/dist/esm/models/StreamOptions.js +1 -1
- package/dist/esm/models/Subscription.d.ts +9 -2
- package/dist/esm/models/Subscription.js +6 -1
- package/dist/esm/models/SubscriptionCheckoutRequest.d.ts +18 -4
- package/dist/esm/models/SubscriptionCheckoutRequest.js +10 -1
- package/dist/esm/models/SubscriptionCheckoutSession.d.ts +21 -1
- package/dist/esm/models/SubscriptionCheckoutSession.js +12 -1
- package/dist/esm/models/SubscriptionModelUsage.d.ts +68 -0
- package/dist/esm/models/SubscriptionModelUsage.js +67 -0
- package/dist/esm/models/SubscriptionPlan.d.ts +4 -4
- package/dist/esm/models/SubscriptionPlan.js +1 -1
- package/dist/esm/models/SubscriptionPortalRequest.d.ts +1 -1
- package/dist/esm/models/SubscriptionPortalRequest.js +1 -1
- package/dist/esm/models/SubscriptionPortalSession.d.ts +1 -1
- package/dist/esm/models/SubscriptionPortalSession.js +1 -1
- package/dist/esm/models/SubscriptionPrice.d.ts +1 -1
- package/dist/esm/models/SubscriptionPrice.js +1 -1
- package/dist/esm/models/SubscriptionQuota.d.ts +10 -4
- package/dist/esm/models/SubscriptionQuota.js +8 -4
- package/dist/esm/models/SubscriptionTier.d.ts +53 -0
- package/dist/esm/models/SubscriptionTier.js +55 -0
- package/dist/esm/models/SubscriptionUpgradeRequest.d.ts +32 -0
- package/dist/esm/models/SubscriptionUpgradeRequest.js +43 -0
- package/dist/esm/models/SubscriptionUsage.d.ts +28 -3
- package/dist/esm/models/SubscriptionUsage.js +15 -4
- package/dist/esm/models/Tool.d.ts +46 -0
- package/dist/esm/models/Tool.js +56 -0
- package/dist/esm/models/ToolCall.d.ts +60 -0
- package/dist/esm/models/ToolCall.js +56 -0
- package/dist/esm/models/ToolCallFunction.d.ts +39 -0
- package/dist/esm/models/ToolCallFunction.js +47 -0
- package/dist/esm/models/ToolChoiceFunction.d.ts +46 -0
- package/dist/esm/models/ToolChoiceFunction.js +56 -0
- package/dist/esm/models/ToolChoiceFunctionFunction.d.ts +32 -0
- package/dist/esm/models/ToolChoiceFunctionFunction.js +43 -0
- package/dist/esm/models/ToolFunction.d.ts +47 -0
- package/dist/esm/models/ToolFunction.js +47 -0
- package/dist/esm/models/UpdateSpendingLimitRequest.d.ts +1 -1
- package/dist/esm/models/UpdateSpendingLimitRequest.js +1 -1
- package/dist/esm/models/Usage.d.ts +29 -1
- package/dist/esm/models/Usage.js +12 -1
- package/dist/esm/models/UsageBucket.d.ts +39 -6
- package/dist/esm/models/UsageBucket.js +11 -1
- package/dist/esm/models/UsageCompletionTokensDetails.d.ts +32 -0
- package/dist/esm/models/UsageCompletionTokensDetails.js +41 -0
- package/dist/esm/models/UsagePage.d.ts +2 -1
- package/dist/esm/models/UsagePage.js +1 -1
- package/dist/esm/models/UsagePromptTokensDetails.d.ts +33 -0
- package/dist/esm/models/UsagePromptTokensDetails.js +41 -0
- package/dist/esm/models/VideoCreateRequest.d.ts +1 -1
- package/dist/esm/models/VideoCreateRequest.js +1 -1
- package/dist/esm/models/VideoJob.d.ts +1 -1
- package/dist/esm/models/VideoJob.js +1 -1
- package/dist/esm/models/VideoList.d.ts +1 -1
- package/dist/esm/models/VideoList.js +1 -1
- package/dist/esm/models/WebhookEndpoint.d.ts +5 -1
- package/dist/esm/models/WebhookEndpoint.js +6 -2
- package/dist/esm/models/WebhookEndpointPage.d.ts +1 -1
- package/dist/esm/models/WebhookEndpointPage.js +1 -1
- package/dist/esm/models/index.d.ts +30 -0
- package/dist/esm/models/index.js +30 -0
- package/dist/esm/runtime.d.ts +1 -1
- package/dist/esm/runtime.js +2 -2
- package/dist/models/AlertEmailToggles.d.ts +50 -0
- package/dist/models/AlertEmailToggles.js +62 -0
- package/dist/models/AlertSettings.d.ts +51 -0
- package/dist/models/AlertSettings.js +63 -0
- package/dist/models/AlertSettingsUpdate.d.ts +39 -0
- package/dist/models/AlertSettingsUpdate.js +55 -0
- package/dist/models/ApiKey.d.ts +123 -0
- package/dist/models/ApiKey.js +103 -0
- package/dist/models/ApiKeyCreate.d.ts +70 -0
- package/dist/models/ApiKeyCreate.js +64 -0
- package/dist/models/ApiKeyCreated.d.ts +129 -0
- package/dist/models/ApiKeyCreated.js +107 -0
- package/dist/models/ApiKeyList.d.ts +33 -0
- package/dist/models/ApiKeyList.js +51 -0
- package/dist/models/ApiKeyScopes.d.ts +65 -0
- package/dist/models/ApiKeyScopes.js +74 -0
- package/dist/models/ApiKeyUpdate.d.ts +62 -0
- package/dist/models/ApiKeyUpdate.js +58 -0
- package/dist/models/Balance.d.ts +1 -1
- package/dist/models/Balance.js +1 -1
- package/dist/models/ChatChoice.d.ts +11 -1
- package/dist/models/ChatChoice.js +3 -1
- package/dist/models/ChatCompletionRequest.d.ts +78 -2
- package/dist/models/ChatCompletionRequest.js +26 -1
- package/dist/models/ChatCompletionRequestResponseFormat.d.ts +31 -0
- package/dist/models/ChatCompletionRequestResponseFormat.js +58 -0
- package/dist/models/ChatCompletionRequestToolChoice.d.ts +23 -0
- package/dist/models/ChatCompletionRequestToolChoice.js +56 -0
- package/dist/models/ChatCompletionResponse.d.ts +1 -1
- package/dist/models/ChatCompletionResponse.js +1 -1
- package/dist/models/ChatMessage.d.ts +22 -2
- package/dist/models/ChatMessage.js +10 -5
- package/dist/models/CostDetails.d.ts +59 -0
- package/dist/models/CostDetails.js +66 -0
- package/dist/models/CreateCryptoDepositRequest.d.ts +4 -1
- package/dist/models/CreateCryptoDepositRequest.js +4 -2
- package/dist/models/CreateWebhookEndpointRequest.d.ts +5 -1
- package/dist/models/CreateWebhookEndpointRequest.js +6 -2
- package/dist/models/CryptoDeposit.d.ts +3 -1
- package/dist/models/CryptoDeposit.js +4 -2
- package/dist/models/Embedding.d.ts +1 -1
- package/dist/models/Embedding.js +1 -1
- package/dist/models/EmbeddingsRequest.d.ts +1 -1
- package/dist/models/EmbeddingsRequest.js +1 -1
- package/dist/models/EmbeddingsRequestInput.d.ts +1 -1
- package/dist/models/EmbeddingsRequestInput.js +1 -1
- package/dist/models/EmbeddingsResponse.d.ts +1 -1
- package/dist/models/EmbeddingsResponse.js +1 -1
- package/dist/models/EmbeddingsUsage.d.ts +1 -1
- package/dist/models/EmbeddingsUsage.js +1 -1
- package/dist/models/GetHealth200Response.d.ts +1 -1
- package/dist/models/GetHealth200Response.js +1 -1
- package/dist/models/ImagesGenerationsRequest.d.ts +2 -2
- package/dist/models/ImagesGenerationsRequest.js +1 -1
- package/dist/models/ImagesResponse.d.ts +1 -1
- package/dist/models/ImagesResponse.js +1 -1
- package/dist/models/ImagesResponseDataInner.d.ts +1 -1
- package/dist/models/ImagesResponseDataInner.js +1 -1
- package/dist/models/ImagesResponseUsage.d.ts +1 -1
- package/dist/models/ImagesResponseUsage.js +1 -1
- package/dist/models/InferencePreflight.d.ts +5 -2
- package/dist/models/InferencePreflight.js +4 -1
- package/dist/models/JSONSchemaFormat.d.ts +54 -0
- package/dist/models/JSONSchemaFormat.js +56 -0
- package/dist/models/ListDeposits200Response.d.ts +1 -1
- package/dist/models/ListDeposits200Response.js +1 -1
- package/dist/models/Model.d.ts +54 -5
- package/dist/models/Model.js +21 -2
- package/dist/models/ModelList.d.ts +1 -1
- package/dist/models/ModelList.js +1 -1
- package/dist/models/ModelMetrics.d.ts +101 -0
- package/dist/models/ModelMetrics.js +93 -0
- package/dist/models/ModelParametersInner.d.ts +1 -1
- package/dist/models/ModelParametersInner.js +1 -1
- package/dist/models/ModelPricing.d.ts +1 -1
- package/dist/models/ModelPricing.js +1 -1
- package/dist/models/ModelRate.d.ts +1 -1
- package/dist/models/ModelRate.js +1 -1
- package/dist/models/OpenAIErrorEnvelope.d.ts +1 -1
- package/dist/models/OpenAIErrorEnvelope.js +1 -1
- package/dist/models/OpenAIErrorEnvelopeError.d.ts +8 -2
- package/dist/models/OpenAIErrorEnvelopeError.js +3 -1
- package/dist/models/PeakWindow.d.ts +1 -1
- package/dist/models/PeakWindow.js +1 -1
- package/dist/models/Problem.d.ts +22 -1
- package/dist/models/Problem.js +14 -1
- package/dist/models/RefereeStatus.d.ts +1 -1
- package/dist/models/RefereeStatus.js +1 -1
- package/dist/models/Referral.d.ts +14 -2
- package/dist/models/Referral.js +9 -1
- package/dist/models/RequestLogEntry.d.ts +210 -0
- package/dist/models/RequestLogEntry.js +137 -0
- package/dist/models/RequestLogPage.d.ts +45 -0
- package/dist/models/RequestLogPage.js +59 -0
- package/dist/models/ResponseFormatJSONObject.d.ts +39 -0
- package/dist/models/ResponseFormatJSONObject.js +59 -0
- package/dist/models/ResponseFormatJSONSchema.d.ts +46 -0
- package/dist/models/ResponseFormatJSONSchema.js +64 -0
- package/dist/models/ResponseFormatText.d.ts +39 -0
- package/dist/models/ResponseFormatText.js +59 -0
- package/dist/models/SpendingLimit.d.ts +1 -1
- package/dist/models/SpendingLimit.js +1 -1
- package/dist/models/StreamOptions.d.ts +1 -1
- package/dist/models/StreamOptions.js +1 -1
- package/dist/models/Subscription.d.ts +9 -2
- package/dist/models/Subscription.js +6 -1
- package/dist/models/SubscriptionCheckoutRequest.d.ts +18 -4
- package/dist/models/SubscriptionCheckoutRequest.js +11 -1
- package/dist/models/SubscriptionCheckoutSession.d.ts +21 -1
- package/dist/models/SubscriptionCheckoutSession.js +13 -1
- package/dist/models/SubscriptionModelUsage.d.ts +68 -0
- package/dist/models/SubscriptionModelUsage.js +74 -0
- package/dist/models/SubscriptionPlan.d.ts +4 -4
- package/dist/models/SubscriptionPlan.js +1 -1
- package/dist/models/SubscriptionPortalRequest.d.ts +1 -1
- package/dist/models/SubscriptionPortalRequest.js +1 -1
- package/dist/models/SubscriptionPortalSession.d.ts +1 -1
- package/dist/models/SubscriptionPortalSession.js +1 -1
- package/dist/models/SubscriptionPrice.d.ts +1 -1
- package/dist/models/SubscriptionPrice.js +1 -1
- package/dist/models/SubscriptionQuota.d.ts +10 -4
- package/dist/models/SubscriptionQuota.js +8 -4
- package/dist/models/SubscriptionTier.d.ts +53 -0
- package/dist/models/SubscriptionTier.js +62 -0
- package/dist/models/SubscriptionUpgradeRequest.d.ts +32 -0
- package/dist/models/SubscriptionUpgradeRequest.js +50 -0
- package/dist/models/SubscriptionUsage.d.ts +28 -3
- package/dist/models/SubscriptionUsage.js +15 -4
- package/dist/models/Tool.d.ts +46 -0
- package/dist/models/Tool.js +64 -0
- package/dist/models/ToolCall.d.ts +60 -0
- package/dist/models/ToolCall.js +64 -0
- package/dist/models/ToolCallFunction.d.ts +39 -0
- package/dist/models/ToolCallFunction.js +54 -0
- package/dist/models/ToolChoiceFunction.d.ts +46 -0
- package/dist/models/ToolChoiceFunction.js +64 -0
- package/dist/models/ToolChoiceFunctionFunction.d.ts +32 -0
- package/dist/models/ToolChoiceFunctionFunction.js +50 -0
- package/dist/models/ToolFunction.d.ts +47 -0
- package/dist/models/ToolFunction.js +54 -0
- package/dist/models/UpdateSpendingLimitRequest.d.ts +1 -1
- package/dist/models/UpdateSpendingLimitRequest.js +1 -1
- package/dist/models/Usage.d.ts +29 -1
- package/dist/models/Usage.js +12 -1
- package/dist/models/UsageBucket.d.ts +39 -6
- package/dist/models/UsageBucket.js +11 -1
- package/dist/models/UsageCompletionTokensDetails.d.ts +32 -0
- package/dist/models/UsageCompletionTokensDetails.js +48 -0
- package/dist/models/UsagePage.d.ts +2 -1
- package/dist/models/UsagePage.js +1 -1
- package/dist/models/UsagePromptTokensDetails.d.ts +33 -0
- package/dist/models/UsagePromptTokensDetails.js +48 -0
- package/dist/models/VideoCreateRequest.d.ts +1 -1
- package/dist/models/VideoCreateRequest.js +1 -1
- package/dist/models/VideoJob.d.ts +1 -1
- package/dist/models/VideoJob.js +1 -1
- package/dist/models/VideoList.d.ts +1 -1
- package/dist/models/VideoList.js +1 -1
- package/dist/models/WebhookEndpoint.d.ts +5 -1
- package/dist/models/WebhookEndpoint.js +6 -2
- package/dist/models/WebhookEndpointPage.d.ts +1 -1
- package/dist/models/WebhookEndpointPage.js +1 -1
- package/dist/models/index.d.ts +30 -0
- package/dist/models/index.js +30 -0
- package/dist/runtime.d.ts +1 -1
- package/dist/runtime.js +2 -2
- package/docs/AlertEmailToggles.md +40 -0
- package/docs/AlertSettings.md +40 -0
- package/docs/AlertSettingsUpdate.md +36 -0
- package/docs/AlertsApi.md +151 -0
- package/docs/ApiKey.md +65 -0
- package/docs/ApiKeyCreate.md +46 -0
- package/docs/ApiKeyCreated.md +67 -0
- package/docs/ApiKeyList.md +34 -0
- package/docs/ApiKeyScopes.md +38 -0
- package/docs/ApiKeyUpdate.md +45 -0
- package/docs/ApiKeysApi.md +389 -0
- package/docs/BillingApi.md +83 -3
- package/docs/ChatChoice.md +2 -0
- package/docs/ChatCompletionRequest.md +22 -0
- package/docs/ChatCompletionRequestResponseFormat.md +37 -0
- package/docs/ChatCompletionRequestToolChoice.md +37 -0
- package/docs/ChatMessage.md +4 -0
- package/docs/CostDetails.md +43 -0
- package/docs/InferenceApi.md +94 -71
- package/docs/JSONSchemaFormat.md +41 -0
- package/docs/Model.md +16 -0
- package/docs/ModelMetrics.md +55 -0
- package/docs/OpenAIErrorEnvelopeError.md +2 -0
- package/docs/Problem.md +4 -0
- package/docs/Referral.md +6 -2
- package/docs/RequestLogEntry.md +87 -0
- package/docs/RequestLogPage.md +38 -0
- package/docs/RequestsApi.md +282 -0
- package/docs/ResponseFormatJSONObject.md +35 -0
- package/docs/ResponseFormatJSONSchema.md +36 -0
- package/docs/ResponseFormatText.md +34 -0
- package/docs/Subscription.md +3 -1
- package/docs/SubscriptionCheckoutRequest.md +2 -0
- package/docs/SubscriptionCheckoutSession.md +4 -0
- package/docs/SubscriptionModelUsage.md +47 -0
- package/docs/SubscriptionPlan.md +1 -1
- package/docs/SubscriptionQuota.md +5 -3
- package/docs/SubscriptionTier.md +41 -0
- package/docs/SubscriptionUpgradeRequest.md +34 -0
- package/docs/SubscriptionUsage.md +10 -2
- package/docs/Tool.md +36 -0
- package/docs/ToolCall.md +41 -0
- package/docs/ToolCallFunction.md +36 -0
- package/docs/ToolChoiceFunction.md +36 -0
- package/docs/ToolChoiceFunctionFunction.md +34 -0
- package/docs/ToolFunction.md +38 -0
- package/docs/Usage.md +8 -0
- package/docs/UsageApi.md +17 -9
- package/docs/UsageBucket.md +11 -0
- package/docs/UsageCompletionTokensDetails.md +34 -0
- package/docs/UsagePromptTokensDetails.md +35 -0
- package/package.json +1 -1
- package/src/apis/AlertsApi.ts +145 -0
- package/src/apis/ApiKeysApi.ts +357 -0
- package/src/apis/BillingApi.ts +73 -7
- package/src/apis/InferenceApi.ts +32 -1
- package/src/apis/MetaApi.ts +1 -1
- package/src/apis/RequestsApi.ts +335 -0
- package/src/apis/UsageApi.ts +23 -1
- package/src/apis/WebhooksApi.ts +1 -1
- package/src/apis/index.ts +3 -0
- package/src/models/AlertEmailToggles.ts +93 -0
- package/src/models/AlertSettings.ts +101 -0
- package/src/models/AlertSettingsUpdate.ts +83 -0
- package/src/models/ApiKey.ts +205 -0
- package/src/models/ApiKeyCreate.ts +115 -0
- package/src/models/ApiKeyCreated.ts +214 -0
- package/src/models/ApiKeyList.ts +74 -0
- package/src/models/ApiKeyScopes.ts +106 -0
- package/src/models/ApiKeyUpdate.ts +105 -0
- package/src/models/Balance.ts +1 -1
- package/src/models/ChatChoice.ts +11 -1
- package/src/models/ChatCompletionRequest.ts +118 -2
- package/src/models/ChatCompletionRequestResponseFormat.ts +84 -0
- package/src/models/ChatCompletionRequestToolChoice.ts +70 -0
- package/src/models/ChatCompletionResponse.ts +1 -1
- package/src/models/ChatMessage.ts +35 -5
- package/src/models/CostDetails.ts +105 -0
- package/src/models/CreateCryptoDepositRequest.ts +5 -2
- package/src/models/CreateWebhookEndpointRequest.ts +6 -2
- package/src/models/CryptoDeposit.ts +4 -2
- package/src/models/Embedding.ts +1 -1
- package/src/models/EmbeddingsRequest.ts +1 -1
- package/src/models/EmbeddingsRequestInput.ts +1 -1
- package/src/models/EmbeddingsResponse.ts +1 -1
- package/src/models/EmbeddingsUsage.ts +1 -1
- package/src/models/GetHealth200Response.ts +1 -1
- package/src/models/ImagesGenerationsRequest.ts +2 -2
- package/src/models/ImagesResponse.ts +1 -1
- package/src/models/ImagesResponseDataInner.ts +1 -1
- package/src/models/ImagesResponseUsage.ts +1 -1
- package/src/models/InferencePreflight.ts +5 -2
- package/src/models/JSONSchemaFormat.ts +92 -0
- package/src/models/ListDeposits200Response.ts +1 -1
- package/src/models/Model.ts +78 -6
- package/src/models/ModelList.ts +1 -1
- package/src/models/ModelMetrics.ts +165 -0
- package/src/models/ModelParametersInner.ts +1 -1
- package/src/models/ModelPricing.ts +1 -1
- package/src/models/ModelRate.ts +1 -1
- package/src/models/OpenAIErrorEnvelope.ts +1 -1
- package/src/models/OpenAIErrorEnvelopeError.ts +10 -2
- package/src/models/PeakWindow.ts +1 -1
- package/src/models/Problem.ts +26 -1
- package/src/models/RefereeStatus.ts +1 -1
- package/src/models/Referral.ts +20 -2
- package/src/models/RequestLogEntry.ts +307 -0
- package/src/models/RequestLogPage.ts +92 -0
- package/src/models/ResponseFormatJSONObject.ts +78 -0
- package/src/models/ResponseFormatJSONSchema.ts +95 -0
- package/src/models/ResponseFormatText.ts +78 -0
- package/src/models/SpendingLimit.ts +1 -1
- package/src/models/StreamOptions.ts +1 -1
- package/src/models/Subscription.ts +18 -2
- package/src/models/SubscriptionCheckoutRequest.ts +23 -4
- package/src/models/SubscriptionCheckoutSession.ts +28 -1
- package/src/models/SubscriptionModelUsage.ts +120 -0
- package/src/models/SubscriptionPlan.ts +4 -4
- package/src/models/SubscriptionPortalRequest.ts +1 -1
- package/src/models/SubscriptionPortalSession.ts +1 -1
- package/src/models/SubscriptionPrice.ts +1 -1
- package/src/models/SubscriptionQuota.ts +16 -7
- package/src/models/SubscriptionTier.ts +108 -0
- package/src/models/SubscriptionUpgradeRequest.ts +66 -0
- package/src/models/SubscriptionUsage.ts +47 -6
- package/src/models/Tool.ts +95 -0
- package/src/models/ToolCall.ts +110 -0
- package/src/models/ToolCallFunction.ts +76 -0
- package/src/models/ToolChoiceFunction.ts +95 -0
- package/src/models/ToolChoiceFunctionFunction.ts +66 -0
- package/src/models/ToolFunction.ts +83 -0
- package/src/models/UpdateSpendingLimitRequest.ts +1 -1
- package/src/models/Usage.ts +56 -1
- package/src/models/UsageBucket.ts +49 -6
- package/src/models/UsageCompletionTokensDetails.ts +65 -0
- package/src/models/UsagePage.ts +2 -1
- package/src/models/UsagePromptTokensDetails.ts +66 -0
- package/src/models/VideoCreateRequest.ts +1 -1
- package/src/models/VideoJob.ts +1 -1
- package/src/models/VideoList.ts +1 -1
- package/src/models/WebhookEndpoint.ts +6 -2
- package/src/models/WebhookEndpointPage.ts +1 -1
- package/src/models/index.ts +30 -0
- package/src/runtime.ts +2 -2
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* deeprelay Public Developer API
|
|
3
|
-
* Programmatic API for deeprelay. Authenticate with API keys minted from the dashboard. See https://deeprelay.ai/docs for details.
|
|
3
|
+
* Programmatic API for deeprelay. Authenticate with API keys minted from the dashboard. See https://deeprelay.ai/docs for details. Keys minted from the dashboard or `deeprelay login` belong to the Production server, https://api.deeprelay.ai/v1. The Demo server is an internal staging environment with its own key store. Versioning: `/v1` is the API version. `info.version` is the revision of this `/v1` document, not a separate API. OpenAI compatibility: chat completions follow the OpenAI request and response shapes, but not every OpenAI parameter is carried. Some are rejected with 400 `unsupported_parameter` and any parameter not declared in this spec is accepted and ignored. The full table is at https://deeprelay.ai/docs/api/inference#openai-compatibility.
|
|
4
4
|
*
|
|
5
5
|
* The version of the OpenAPI document: 1.0.0
|
|
6
6
|
* Contact: support@deeprelay.ai
|
|
@@ -28,7 +28,7 @@ export interface OpenAIErrorEnvelopeError {
|
|
|
28
28
|
*/
|
|
29
29
|
type: string;
|
|
30
30
|
/**
|
|
31
|
-
*
|
|
31
|
+
* On a 429 subscription_quota_exhausted this is the tripped gate: monthly_input_tokens, monthly_output_tokens, weekly_input_tokens, weekly_output_tokens, max_usage, input_overshoot (this request's estimated input alone exceeds what is left in the tighter of the monthly and rolling 7-day input allowances), or output_overshoot (the same for the estimated output — the completion bound, max_tokens or the model's declared maximum). On an overshoot the quota is not exhausted — send a smaller request (or a smaller max_tokens) or add credits.
|
|
32
32
|
* @type {string}
|
|
33
33
|
* @memberof OpenAIErrorEnvelopeError
|
|
34
34
|
*/
|
|
@@ -39,6 +39,12 @@ export interface OpenAIErrorEnvelopeError {
|
|
|
39
39
|
* @memberof OpenAIErrorEnvelopeError
|
|
40
40
|
*/
|
|
41
41
|
code: string;
|
|
42
|
+
/**
|
|
43
|
+
* Only on a 429 `subscription_quota_exhausted` whose `param` is `weekly_input_tokens` or `weekly_output_tokens` (the rolling 7-day caps): the RFC 3339 time at which enough plan-covered usage ages out of the rolling window for requests to ride the plan again — the earlier of the two windows' free times, each computed from its own dimension. The message names the same time. Omitted on every other error, and omitted when it cannot be computed. There is no Retry-After on this 429 and `x-should-retry` is `false`: wait until this time or add credits, rather than auto-retrying.
|
|
44
|
+
* @type {Date}
|
|
45
|
+
* @memberof OpenAIErrorEnvelopeError
|
|
46
|
+
*/
|
|
47
|
+
quotaFreesAt?: Date;
|
|
42
48
|
}
|
|
43
49
|
/**
|
|
44
50
|
* Check if a given object implements the OpenAIErrorEnvelopeError interface.
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
/* eslint-disable */
|
|
3
3
|
/**
|
|
4
4
|
* deeprelay Public Developer API
|
|
5
|
-
* Programmatic API for deeprelay. Authenticate with API keys minted from the dashboard. See https://deeprelay.ai/docs for details.
|
|
5
|
+
* Programmatic API for deeprelay. Authenticate with API keys minted from the dashboard. See https://deeprelay.ai/docs for details. Keys minted from the dashboard or `deeprelay login` belong to the Production server, https://api.deeprelay.ai/v1. The Demo server is an internal staging environment with its own key store. Versioning: `/v1` is the API version. `info.version` is the revision of this `/v1` document, not a separate API. OpenAI compatibility: chat completions follow the OpenAI request and response shapes, but not every OpenAI parameter is carried. Some are rejected with 400 `unsupported_parameter` and any parameter not declared in this spec is accepted and ignored. The full table is at https://deeprelay.ai/docs/api/inference#openai-compatibility.
|
|
6
6
|
*
|
|
7
7
|
* The version of the OpenAPI document: 1.0.0
|
|
8
8
|
* Contact: support@deeprelay.ai
|
|
@@ -35,6 +35,7 @@ export function OpenAIErrorEnvelopeErrorFromJSONTyped(json, ignoreDiscriminator)
|
|
|
35
35
|
'type': json['type'],
|
|
36
36
|
'param': json['param'] == null ? undefined : json['param'],
|
|
37
37
|
'code': json['code'],
|
|
38
|
+
'quotaFreesAt': json['quota_frees_at'] == null ? undefined : (new Date(json['quota_frees_at'])),
|
|
38
39
|
};
|
|
39
40
|
}
|
|
40
41
|
export function OpenAIErrorEnvelopeErrorToJSON(json) {
|
|
@@ -49,5 +50,6 @@ export function OpenAIErrorEnvelopeErrorToJSONTyped(value, ignoreDiscriminator =
|
|
|
49
50
|
'type': value['type'],
|
|
50
51
|
'param': value['param'],
|
|
51
52
|
'code': value['code'],
|
|
53
|
+
'quota_frees_at': value['quotaFreesAt'] == null ? value['quotaFreesAt'] : value['quotaFreesAt'].toISOString(),
|
|
52
54
|
};
|
|
53
55
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* deeprelay Public Developer API
|
|
3
|
-
* Programmatic API for deeprelay. Authenticate with API keys minted from the dashboard. See https://deeprelay.ai/docs for details.
|
|
3
|
+
* Programmatic API for deeprelay. Authenticate with API keys minted from the dashboard. See https://deeprelay.ai/docs for details. Keys minted from the dashboard or `deeprelay login` belong to the Production server, https://api.deeprelay.ai/v1. The Demo server is an internal staging environment with its own key store. Versioning: `/v1` is the API version. `info.version` is the revision of this `/v1` document, not a separate API. OpenAI compatibility: chat completions follow the OpenAI request and response shapes, but not every OpenAI parameter is carried. Some are rejected with 400 `unsupported_parameter` and any parameter not declared in this spec is accepted and ignored. The full table is at https://deeprelay.ai/docs/api/inference#openai-compatibility.
|
|
4
4
|
*
|
|
5
5
|
* The version of the OpenAPI document: 1.0.0
|
|
6
6
|
* Contact: support@deeprelay.ai
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
/* eslint-disable */
|
|
3
3
|
/**
|
|
4
4
|
* deeprelay Public Developer API
|
|
5
|
-
* Programmatic API for deeprelay. Authenticate with API keys minted from the dashboard. See https://deeprelay.ai/docs for details.
|
|
5
|
+
* Programmatic API for deeprelay. Authenticate with API keys minted from the dashboard. See https://deeprelay.ai/docs for details. Keys minted from the dashboard or `deeprelay login` belong to the Production server, https://api.deeprelay.ai/v1. The Demo server is an internal staging environment with its own key store. Versioning: `/v1` is the API version. `info.version` is the revision of this `/v1` document, not a separate API. OpenAI compatibility: chat completions follow the OpenAI request and response shapes, but not every OpenAI parameter is carried. Some are rejected with 400 `unsupported_parameter` and any parameter not declared in this spec is accepted and ignored. The full table is at https://deeprelay.ai/docs/api/inference#openai-compatibility.
|
|
6
6
|
*
|
|
7
7
|
* The version of the OpenAPI document: 1.0.0
|
|
8
8
|
* Contact: support@deeprelay.ai
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* deeprelay Public Developer API
|
|
3
|
-
* Programmatic API for deeprelay. Authenticate with API keys minted from the dashboard. See https://deeprelay.ai/docs for details.
|
|
3
|
+
* Programmatic API for deeprelay. Authenticate with API keys minted from the dashboard. See https://deeprelay.ai/docs for details. Keys minted from the dashboard or `deeprelay login` belong to the Production server, https://api.deeprelay.ai/v1. The Demo server is an internal staging environment with its own key store. Versioning: `/v1` is the API version. `info.version` is the revision of this `/v1` document, not a separate API. OpenAI compatibility: chat completions follow the OpenAI request and response shapes, but not every OpenAI parameter is carried. Some are rejected with 400 `unsupported_parameter` and any parameter not declared in this spec is accepted and ignored. The full table is at https://deeprelay.ai/docs/api/inference#openai-compatibility.
|
|
4
4
|
*
|
|
5
5
|
* The version of the OpenAPI document: 1.0.0
|
|
6
6
|
* Contact: support@deeprelay.ai
|
|
@@ -51,6 +51,18 @@ export interface Problem {
|
|
|
51
51
|
* @memberof Problem
|
|
52
52
|
*/
|
|
53
53
|
requestId: string;
|
|
54
|
+
/**
|
|
55
|
+
* On a 422 `validation_failed`, the request field that failed.
|
|
56
|
+
* @type {string}
|
|
57
|
+
* @memberof Problem
|
|
58
|
+
*/
|
|
59
|
+
field?: string;
|
|
60
|
+
/**
|
|
61
|
+
* On a 422 `export_too_large`, the export row cap.
|
|
62
|
+
* @type {number}
|
|
63
|
+
* @memberof Problem
|
|
64
|
+
*/
|
|
65
|
+
maxRows?: number;
|
|
54
66
|
}
|
|
55
67
|
/**
|
|
56
68
|
* @export
|
|
@@ -72,7 +84,16 @@ export declare const ProblemCodeEnum: {
|
|
|
72
84
|
readonly InsufficientBalance: "insufficient_balance";
|
|
73
85
|
readonly QuotaExceeded: "quota_exceeded";
|
|
74
86
|
readonly RateLimited: "rate_limited";
|
|
87
|
+
readonly Forbidden: "forbidden";
|
|
88
|
+
readonly InvalidRequest: "invalid_request";
|
|
89
|
+
readonly KeysManageRequired: "keys_manage_required";
|
|
90
|
+
readonly ScopeExceedsCaller: "scope_exceeds_caller";
|
|
91
|
+
readonly ExportTooLarge: "export_too_large";
|
|
92
|
+
readonly ApiKeyBudgetExceeded: "api_key_budget_exceeded";
|
|
93
|
+
readonly MemberSpendLimitReached: "member_spend_limit_reached";
|
|
94
|
+
readonly ModelNotAllowedForKey: "model_not_allowed_for_key";
|
|
75
95
|
readonly CreatorCheckUnavailable: "creator_check_unavailable";
|
|
96
|
+
readonly SwitchRenewalUnpaid: "switch_renewal_unpaid";
|
|
76
97
|
readonly InternalError: "internal_error";
|
|
77
98
|
readonly OperationFailed: "operation_failed";
|
|
78
99
|
};
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
/* eslint-disable */
|
|
3
3
|
/**
|
|
4
4
|
* deeprelay Public Developer API
|
|
5
|
-
* Programmatic API for deeprelay. Authenticate with API keys minted from the dashboard. See https://deeprelay.ai/docs for details.
|
|
5
|
+
* Programmatic API for deeprelay. Authenticate with API keys minted from the dashboard. See https://deeprelay.ai/docs for details. Keys minted from the dashboard or `deeprelay login` belong to the Production server, https://api.deeprelay.ai/v1. The Demo server is an internal staging environment with its own key store. Versioning: `/v1` is the API version. `info.version` is the revision of this `/v1` document, not a separate API. OpenAI compatibility: chat completions follow the OpenAI request and response shapes, but not every OpenAI parameter is carried. Some are rejected with 400 `unsupported_parameter` and any parameter not declared in this spec is accepted and ignored. The full table is at https://deeprelay.ai/docs/api/inference#openai-compatibility.
|
|
6
6
|
*
|
|
7
7
|
* The version of the OpenAPI document: 1.0.0
|
|
8
8
|
* Contact: support@deeprelay.ai
|
|
@@ -31,7 +31,16 @@ export const ProblemCodeEnum = {
|
|
|
31
31
|
InsufficientBalance: 'insufficient_balance',
|
|
32
32
|
QuotaExceeded: 'quota_exceeded',
|
|
33
33
|
RateLimited: 'rate_limited',
|
|
34
|
+
Forbidden: 'forbidden',
|
|
35
|
+
InvalidRequest: 'invalid_request',
|
|
36
|
+
KeysManageRequired: 'keys_manage_required',
|
|
37
|
+
ScopeExceedsCaller: 'scope_exceeds_caller',
|
|
38
|
+
ExportTooLarge: 'export_too_large',
|
|
39
|
+
ApiKeyBudgetExceeded: 'api_key_budget_exceeded',
|
|
40
|
+
MemberSpendLimitReached: 'member_spend_limit_reached',
|
|
41
|
+
ModelNotAllowedForKey: 'model_not_allowed_for_key',
|
|
34
42
|
CreatorCheckUnavailable: 'creator_check_unavailable',
|
|
43
|
+
SwitchRenewalUnpaid: 'switch_renewal_unpaid',
|
|
35
44
|
InternalError: 'internal_error',
|
|
36
45
|
OperationFailed: 'operation_failed'
|
|
37
46
|
};
|
|
@@ -67,6 +76,8 @@ export function ProblemFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
67
76
|
'detail': json['detail'],
|
|
68
77
|
'code': json['code'],
|
|
69
78
|
'requestId': json['request_id'],
|
|
79
|
+
'field': json['field'] == null ? undefined : json['field'],
|
|
80
|
+
'maxRows': json['max_rows'] == null ? undefined : json['max_rows'],
|
|
70
81
|
};
|
|
71
82
|
}
|
|
72
83
|
export function ProblemToJSON(json) {
|
|
@@ -83,5 +94,7 @@ export function ProblemToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
83
94
|
'detail': value['detail'],
|
|
84
95
|
'code': value['code'],
|
|
85
96
|
'request_id': value['requestId'],
|
|
97
|
+
'field': value['field'],
|
|
98
|
+
'max_rows': value['maxRows'],
|
|
86
99
|
};
|
|
87
100
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* deeprelay Public Developer API
|
|
3
|
-
* Programmatic API for deeprelay. Authenticate with API keys minted from the dashboard. See https://deeprelay.ai/docs for details.
|
|
3
|
+
* Programmatic API for deeprelay. Authenticate with API keys minted from the dashboard. See https://deeprelay.ai/docs for details. Keys minted from the dashboard or `deeprelay login` belong to the Production server, https://api.deeprelay.ai/v1. The Demo server is an internal staging environment with its own key store. Versioning: `/v1` is the API version. `info.version` is the revision of this `/v1` document, not a separate API. OpenAI compatibility: chat completions follow the OpenAI request and response shapes, but not every OpenAI parameter is carried. Some are rejected with 400 `unsupported_parameter` and any parameter not declared in this spec is accepted and ignored. The full table is at https://deeprelay.ai/docs/api/inference#openai-compatibility.
|
|
4
4
|
*
|
|
5
5
|
* The version of the OpenAPI document: 1.0.0
|
|
6
6
|
* Contact: support@deeprelay.ai
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
/* eslint-disable */
|
|
3
3
|
/**
|
|
4
4
|
* deeprelay Public Developer API
|
|
5
|
-
* Programmatic API for deeprelay. Authenticate with API keys minted from the dashboard. See https://deeprelay.ai/docs for details.
|
|
5
|
+
* Programmatic API for deeprelay. Authenticate with API keys minted from the dashboard. See https://deeprelay.ai/docs for details. Keys minted from the dashboard or `deeprelay login` belong to the Production server, https://api.deeprelay.ai/v1. The Demo server is an internal staging environment with its own key store. Versioning: `/v1` is the API version. `info.version` is the revision of this `/v1` document, not a separate API. OpenAI compatibility: chat completions follow the OpenAI request and response shapes, but not every OpenAI parameter is carried. Some are rejected with 400 `unsupported_parameter` and any parameter not declared in this spec is accepted and ignored. The full table is at https://deeprelay.ai/docs/api/inference#openai-compatibility.
|
|
6
6
|
*
|
|
7
7
|
* The version of the OpenAPI document: 1.0.0
|
|
8
8
|
* Contact: support@deeprelay.ai
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* deeprelay Public Developer API
|
|
3
|
-
* Programmatic API for deeprelay. Authenticate with API keys minted from the dashboard. See https://deeprelay.ai/docs for details.
|
|
3
|
+
* Programmatic API for deeprelay. Authenticate with API keys minted from the dashboard. See https://deeprelay.ai/docs for details. Keys minted from the dashboard or `deeprelay login` belong to the Production server, https://api.deeprelay.ai/v1. The Demo server is an internal staging environment with its own key store. Versioning: `/v1` is the API version. `info.version` is the revision of this `/v1` document, not a separate API. OpenAI compatibility: chat completions follow the OpenAI request and response shapes, but not every OpenAI parameter is carried. Some are rejected with 400 `unsupported_parameter` and any parameter not declared in this spec is accepted and ignored. The full table is at https://deeprelay.ai/docs/api/inference#openai-compatibility.
|
|
4
4
|
*
|
|
5
5
|
* The version of the OpenAPI document: 1.0.0
|
|
6
6
|
* Contact: support@deeprelay.ai
|
|
@@ -18,7 +18,7 @@ import type { RefereeStatus } from './RefereeStatus';
|
|
|
18
18
|
*/
|
|
19
19
|
export interface Referral {
|
|
20
20
|
/**
|
|
21
|
-
* The organization's shareable referral code, e.g. `
|
|
21
|
+
* The organization's shareable referral code, e.g. `DR-7KQ2-M4XP`.
|
|
22
22
|
* @type {string}
|
|
23
23
|
* @memberof Referral
|
|
24
24
|
*/
|
|
@@ -53,6 +53,12 @@ export interface Referral {
|
|
|
53
53
|
* @memberof Referral
|
|
54
54
|
*/
|
|
55
55
|
earnedCents: number;
|
|
56
|
+
/**
|
|
57
|
+
* Total deposit commission credited to this organization as a referrer (separate from the flat bonus in `earned_cents`).
|
|
58
|
+
* @type {number}
|
|
59
|
+
* @memberof Referral
|
|
60
|
+
*/
|
|
61
|
+
commissionEarnedCents: number;
|
|
56
62
|
/**
|
|
57
63
|
* Credit paid to the referrer per settled referral.
|
|
58
64
|
* @type {number}
|
|
@@ -77,6 +83,12 @@ export interface Referral {
|
|
|
77
83
|
* @memberof Referral
|
|
78
84
|
*/
|
|
79
85
|
holdDays: number;
|
|
86
|
+
/**
|
|
87
|
+
* Percentage of each real deposit a referred friend makes that is credited to the referrer as spend-only promotional credit. 0 means the commission is off.
|
|
88
|
+
* @type {number}
|
|
89
|
+
* @memberof Referral
|
|
90
|
+
*/
|
|
91
|
+
commissionPct: number;
|
|
80
92
|
/**
|
|
81
93
|
*
|
|
82
94
|
* @type {RefereeStatus}
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
/* eslint-disable */
|
|
3
3
|
/**
|
|
4
4
|
* deeprelay Public Developer API
|
|
5
|
-
* Programmatic API for deeprelay. Authenticate with API keys minted from the dashboard. See https://deeprelay.ai/docs for details.
|
|
5
|
+
* Programmatic API for deeprelay. Authenticate with API keys minted from the dashboard. See https://deeprelay.ai/docs for details. Keys minted from the dashboard or `deeprelay login` belong to the Production server, https://api.deeprelay.ai/v1. The Demo server is an internal staging environment with its own key store. Versioning: `/v1` is the API version. `info.version` is the revision of this `/v1` document, not a separate API. OpenAI compatibility: chat completions follow the OpenAI request and response shapes, but not every OpenAI parameter is carried. Some are rejected with 400 `unsupported_parameter` and any parameter not declared in this spec is accepted and ignored. The full table is at https://deeprelay.ai/docs/api/inference#openai-compatibility.
|
|
6
6
|
*
|
|
7
7
|
* The version of the OpenAPI document: 1.0.0
|
|
8
8
|
* Contact: support@deeprelay.ai
|
|
@@ -28,6 +28,8 @@ export function instanceOfReferral(value) {
|
|
|
28
28
|
return false;
|
|
29
29
|
if ((!('earnedCents' in value) && !('earned_cents' in value)) || (value['earnedCents'] === undefined && value['earned_cents'] === undefined))
|
|
30
30
|
return false;
|
|
31
|
+
if ((!('commissionEarnedCents' in value) && !('commission_earned_cents' in value)) || (value['commissionEarnedCents'] === undefined && value['commission_earned_cents'] === undefined))
|
|
32
|
+
return false;
|
|
31
33
|
if ((!('rewardCents' in value) && !('reward_cents' in value)) || (value['rewardCents'] === undefined && value['reward_cents'] === undefined))
|
|
32
34
|
return false;
|
|
33
35
|
if ((!('refereeRewardCents' in value) && !('referee_reward_cents' in value)) || (value['refereeRewardCents'] === undefined && value['referee_reward_cents'] === undefined))
|
|
@@ -36,6 +38,8 @@ export function instanceOfReferral(value) {
|
|
|
36
38
|
return false;
|
|
37
39
|
if ((!('holdDays' in value) && !('hold_days' in value)) || (value['holdDays'] === undefined && value['hold_days'] === undefined))
|
|
38
40
|
return false;
|
|
41
|
+
if ((!('commissionPct' in value) && !('commission_pct' in value)) || (value['commissionPct'] === undefined && value['commission_pct'] === undefined))
|
|
42
|
+
return false;
|
|
39
43
|
return true;
|
|
40
44
|
}
|
|
41
45
|
export function ReferralFromJSON(json) {
|
|
@@ -52,10 +56,12 @@ export function ReferralFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
52
56
|
'qualified': json['qualified'],
|
|
53
57
|
'settled': json['settled'],
|
|
54
58
|
'earnedCents': json['earned_cents'],
|
|
59
|
+
'commissionEarnedCents': json['commission_earned_cents'],
|
|
55
60
|
'rewardCents': json['reward_cents'],
|
|
56
61
|
'refereeRewardCents': json['referee_reward_cents'],
|
|
57
62
|
'qualifySpendCents': json['qualify_spend_cents'],
|
|
58
63
|
'holdDays': json['hold_days'],
|
|
64
|
+
'commissionPct': json['commission_pct'],
|
|
59
65
|
'referred': json['referred'] == null ? undefined : RefereeStatusFromJSON(json['referred']),
|
|
60
66
|
};
|
|
61
67
|
}
|
|
@@ -73,10 +79,12 @@ export function ReferralToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
73
79
|
'qualified': value['qualified'],
|
|
74
80
|
'settled': value['settled'],
|
|
75
81
|
'earned_cents': value['earnedCents'],
|
|
82
|
+
'commission_earned_cents': value['commissionEarnedCents'],
|
|
76
83
|
'reward_cents': value['rewardCents'],
|
|
77
84
|
'referee_reward_cents': value['refereeRewardCents'],
|
|
78
85
|
'qualify_spend_cents': value['qualifySpendCents'],
|
|
79
86
|
'hold_days': value['holdDays'],
|
|
87
|
+
'commission_pct': value['commissionPct'],
|
|
80
88
|
'referred': RefereeStatusToJSON(value['referred']),
|
|
81
89
|
};
|
|
82
90
|
}
|
|
@@ -0,0 +1,210 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* deeprelay Public Developer API
|
|
3
|
+
* Programmatic API for deeprelay. Authenticate with API keys minted from the dashboard. See https://deeprelay.ai/docs for details. Keys minted from the dashboard or `deeprelay login` belong to the Production server, https://api.deeprelay.ai/v1. The Demo server is an internal staging environment with its own key store. Versioning: `/v1` is the API version. `info.version` is the revision of this `/v1` document, not a separate API. OpenAI compatibility: chat completions follow the OpenAI request and response shapes, but not every OpenAI parameter is carried. Some are rejected with 400 `unsupported_parameter` and any parameter not declared in this spec is accepted and ignored. The full table is at https://deeprelay.ai/docs/api/inference#openai-compatibility.
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0.0
|
|
6
|
+
* Contact: support@deeprelay.ai
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
* One inference call as the request log records it. Never carries prompt or completion content. Optional numeric fields are omitted when they do not apply (for example token counts on a rejected call).
|
|
14
|
+
* @export
|
|
15
|
+
* @interface RequestLogEntry
|
|
16
|
+
*/
|
|
17
|
+
export interface RequestLogEntry {
|
|
18
|
+
/**
|
|
19
|
+
* The `X-Request-Id` the call was answered with.
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof RequestLogEntry
|
|
22
|
+
*/
|
|
23
|
+
requestId: string;
|
|
24
|
+
/**
|
|
25
|
+
* The caller's `X-Client-Request-Id`, when one was sent.
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof RequestLogEntry
|
|
28
|
+
*/
|
|
29
|
+
clientRequestId?: string;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {Date}
|
|
33
|
+
* @memberof RequestLogEntry
|
|
34
|
+
*/
|
|
35
|
+
occurredAt: Date;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {RequestLogEntrySurfaceEnum}
|
|
39
|
+
* @memberof RequestLogEntry
|
|
40
|
+
*/
|
|
41
|
+
surface: RequestLogEntrySurfaceEnum;
|
|
42
|
+
/**
|
|
43
|
+
*
|
|
44
|
+
* @type {string}
|
|
45
|
+
* @memberof RequestLogEntry
|
|
46
|
+
*/
|
|
47
|
+
model: string;
|
|
48
|
+
/**
|
|
49
|
+
* The `api_key_id` of the key that sent the call. Absent for dashboard playground calls.
|
|
50
|
+
* @type {string}
|
|
51
|
+
* @memberof RequestLogEntry
|
|
52
|
+
*/
|
|
53
|
+
keyId?: string;
|
|
54
|
+
/**
|
|
55
|
+
*
|
|
56
|
+
* @type {string}
|
|
57
|
+
* @memberof RequestLogEntry
|
|
58
|
+
*/
|
|
59
|
+
keyName?: string;
|
|
60
|
+
/**
|
|
61
|
+
* The key's public prefix. The secret is never stored or returned.
|
|
62
|
+
* @type {string}
|
|
63
|
+
* @memberof RequestLogEntry
|
|
64
|
+
*/
|
|
65
|
+
keyPrefix?: string;
|
|
66
|
+
/**
|
|
67
|
+
*
|
|
68
|
+
* @type {RequestLogEntryStatusEnum}
|
|
69
|
+
* @memberof RequestLogEntry
|
|
70
|
+
*/
|
|
71
|
+
status: RequestLogEntryStatusEnum;
|
|
72
|
+
/**
|
|
73
|
+
*
|
|
74
|
+
* @type {number}
|
|
75
|
+
* @memberof RequestLogEntry
|
|
76
|
+
*/
|
|
77
|
+
httpStatus?: number;
|
|
78
|
+
/**
|
|
79
|
+
* The `X-Deeprelay-Error-Code` the caller received, on a failed or rejected call.
|
|
80
|
+
* @type {string}
|
|
81
|
+
* @memberof RequestLogEntry
|
|
82
|
+
*/
|
|
83
|
+
errorCode?: string;
|
|
84
|
+
/**
|
|
85
|
+
*
|
|
86
|
+
* @type {string}
|
|
87
|
+
* @memberof RequestLogEntry
|
|
88
|
+
*/
|
|
89
|
+
finishReason?: string;
|
|
90
|
+
/**
|
|
91
|
+
*
|
|
92
|
+
* @type {number}
|
|
93
|
+
* @memberof RequestLogEntry
|
|
94
|
+
*/
|
|
95
|
+
promptTokens?: number;
|
|
96
|
+
/**
|
|
97
|
+
*
|
|
98
|
+
* @type {number}
|
|
99
|
+
* @memberof RequestLogEntry
|
|
100
|
+
*/
|
|
101
|
+
completionTokens?: number;
|
|
102
|
+
/**
|
|
103
|
+
*
|
|
104
|
+
* @type {number}
|
|
105
|
+
* @memberof RequestLogEntry
|
|
106
|
+
*/
|
|
107
|
+
cachedTokens?: number;
|
|
108
|
+
/**
|
|
109
|
+
*
|
|
110
|
+
* @type {number}
|
|
111
|
+
* @memberof RequestLogEntry
|
|
112
|
+
*/
|
|
113
|
+
reasoningTokens?: number;
|
|
114
|
+
/**
|
|
115
|
+
* Weighted tokens drawn from the subscription quota.
|
|
116
|
+
* @type {number}
|
|
117
|
+
* @memberof RequestLogEntry
|
|
118
|
+
*/
|
|
119
|
+
quotaUnits?: number;
|
|
120
|
+
/**
|
|
121
|
+
* The exact USD amount billed to the wallet, as a decimal string in the same format as `usage.cost`. `"0"` for a plan-covered, rejected or failed call.
|
|
122
|
+
* @type {string}
|
|
123
|
+
* @memberof RequestLogEntry
|
|
124
|
+
*/
|
|
125
|
+
cost: string;
|
|
126
|
+
/**
|
|
127
|
+
* The same amount as an integer number of micro-cents.
|
|
128
|
+
* @type {number}
|
|
129
|
+
* @memberof RequestLogEntry
|
|
130
|
+
*/
|
|
131
|
+
costMicroCents: number;
|
|
132
|
+
/**
|
|
133
|
+
* Whether the subscription plan paid for the call.
|
|
134
|
+
* @type {boolean}
|
|
135
|
+
* @memberof RequestLogEntry
|
|
136
|
+
*/
|
|
137
|
+
planCovered: boolean;
|
|
138
|
+
/**
|
|
139
|
+
* Time to first token, for a streamed call.
|
|
140
|
+
* @type {number}
|
|
141
|
+
* @memberof RequestLogEntry
|
|
142
|
+
*/
|
|
143
|
+
ttftMs?: number;
|
|
144
|
+
/**
|
|
145
|
+
*
|
|
146
|
+
* @type {number}
|
|
147
|
+
* @memberof RequestLogEntry
|
|
148
|
+
*/
|
|
149
|
+
durationMs?: number;
|
|
150
|
+
/**
|
|
151
|
+
* Request parameters that were accepted and ignored.
|
|
152
|
+
* @type {Array<string>}
|
|
153
|
+
* @memberof RequestLogEntry
|
|
154
|
+
*/
|
|
155
|
+
ignoredParams?: Array<string>;
|
|
156
|
+
/**
|
|
157
|
+
*
|
|
158
|
+
* @type {boolean}
|
|
159
|
+
* @memberof RequestLogEntry
|
|
160
|
+
*/
|
|
161
|
+
hadToolCalls?: boolean;
|
|
162
|
+
/**
|
|
163
|
+
*
|
|
164
|
+
* @type {number}
|
|
165
|
+
* @memberof RequestLogEntry
|
|
166
|
+
*/
|
|
167
|
+
imageCount?: number;
|
|
168
|
+
/**
|
|
169
|
+
*
|
|
170
|
+
* @type {number}
|
|
171
|
+
* @memberof RequestLogEntry
|
|
172
|
+
*/
|
|
173
|
+
videoSeconds?: number;
|
|
174
|
+
/**
|
|
175
|
+
* For a rejected row: how many further identical rejections in the same minute were folded into this one.
|
|
176
|
+
* @type {number}
|
|
177
|
+
* @memberof RequestLogEntry
|
|
178
|
+
*/
|
|
179
|
+
suppressedCount?: number;
|
|
180
|
+
}
|
|
181
|
+
/**
|
|
182
|
+
* @export
|
|
183
|
+
*/
|
|
184
|
+
export declare const RequestLogEntrySurfaceEnum: {
|
|
185
|
+
readonly Chat: "chat";
|
|
186
|
+
readonly Messages: "messages";
|
|
187
|
+
readonly Responses: "responses";
|
|
188
|
+
readonly Embeddings: "embeddings";
|
|
189
|
+
readonly Image: "image";
|
|
190
|
+
readonly Video: "video";
|
|
191
|
+
};
|
|
192
|
+
export type RequestLogEntrySurfaceEnum = typeof RequestLogEntrySurfaceEnum[keyof typeof RequestLogEntrySurfaceEnum];
|
|
193
|
+
/**
|
|
194
|
+
* @export
|
|
195
|
+
*/
|
|
196
|
+
export declare const RequestLogEntryStatusEnum: {
|
|
197
|
+
readonly Ok: "ok";
|
|
198
|
+
readonly Error: "error";
|
|
199
|
+
readonly Cancelled: "cancelled";
|
|
200
|
+
readonly Rejected: "rejected";
|
|
201
|
+
};
|
|
202
|
+
export type RequestLogEntryStatusEnum = typeof RequestLogEntryStatusEnum[keyof typeof RequestLogEntryStatusEnum];
|
|
203
|
+
/**
|
|
204
|
+
* Check if a given object implements the RequestLogEntry interface.
|
|
205
|
+
*/
|
|
206
|
+
export declare function instanceOfRequestLogEntry(value: object): value is RequestLogEntry;
|
|
207
|
+
export declare function RequestLogEntryFromJSON(json: any): RequestLogEntry;
|
|
208
|
+
export declare function RequestLogEntryFromJSONTyped(json: any, ignoreDiscriminator: boolean): RequestLogEntry;
|
|
209
|
+
export declare function RequestLogEntryToJSON(json: any): RequestLogEntry;
|
|
210
|
+
export declare function RequestLogEntryToJSONTyped(value?: RequestLogEntry | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,129 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* deeprelay Public Developer API
|
|
5
|
+
* Programmatic API for deeprelay. Authenticate with API keys minted from the dashboard. See https://deeprelay.ai/docs for details. Keys minted from the dashboard or `deeprelay login` belong to the Production server, https://api.deeprelay.ai/v1. The Demo server is an internal staging environment with its own key store. Versioning: `/v1` is the API version. `info.version` is the revision of this `/v1` document, not a separate API. OpenAI compatibility: chat completions follow the OpenAI request and response shapes, but not every OpenAI parameter is carried. Some are rejected with 400 `unsupported_parameter` and any parameter not declared in this spec is accepted and ignored. The full table is at https://deeprelay.ai/docs/api/inference#openai-compatibility.
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0.0
|
|
8
|
+
* Contact: support@deeprelay.ai
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
/**
|
|
15
|
+
* @export
|
|
16
|
+
*/
|
|
17
|
+
export const RequestLogEntrySurfaceEnum = {
|
|
18
|
+
Chat: 'chat',
|
|
19
|
+
Messages: 'messages',
|
|
20
|
+
Responses: 'responses',
|
|
21
|
+
Embeddings: 'embeddings',
|
|
22
|
+
Image: 'image',
|
|
23
|
+
Video: 'video'
|
|
24
|
+
};
|
|
25
|
+
/**
|
|
26
|
+
* @export
|
|
27
|
+
*/
|
|
28
|
+
export const RequestLogEntryStatusEnum = {
|
|
29
|
+
Ok: 'ok',
|
|
30
|
+
Error: 'error',
|
|
31
|
+
Cancelled: 'cancelled',
|
|
32
|
+
Rejected: 'rejected'
|
|
33
|
+
};
|
|
34
|
+
/**
|
|
35
|
+
* Check if a given object implements the RequestLogEntry interface.
|
|
36
|
+
*/
|
|
37
|
+
export function instanceOfRequestLogEntry(value) {
|
|
38
|
+
if ((!('requestId' in value) && !('request_id' in value)) || (value['requestId'] === undefined && value['request_id'] === undefined))
|
|
39
|
+
return false;
|
|
40
|
+
if ((!('occurredAt' in value) && !('occurred_at' in value)) || (value['occurredAt'] === undefined && value['occurred_at'] === undefined))
|
|
41
|
+
return false;
|
|
42
|
+
if (!('surface' in value) || value['surface'] === undefined)
|
|
43
|
+
return false;
|
|
44
|
+
if (!('model' in value) || value['model'] === undefined)
|
|
45
|
+
return false;
|
|
46
|
+
if (!('status' in value) || value['status'] === undefined)
|
|
47
|
+
return false;
|
|
48
|
+
if (!('cost' in value) || value['cost'] === undefined)
|
|
49
|
+
return false;
|
|
50
|
+
if ((!('costMicroCents' in value) && !('cost_micro_cents' in value)) || (value['costMicroCents'] === undefined && value['cost_micro_cents'] === undefined))
|
|
51
|
+
return false;
|
|
52
|
+
if ((!('planCovered' in value) && !('plan_covered' in value)) || (value['planCovered'] === undefined && value['plan_covered'] === undefined))
|
|
53
|
+
return false;
|
|
54
|
+
return true;
|
|
55
|
+
}
|
|
56
|
+
export function RequestLogEntryFromJSON(json) {
|
|
57
|
+
return RequestLogEntryFromJSONTyped(json, false);
|
|
58
|
+
}
|
|
59
|
+
export function RequestLogEntryFromJSONTyped(json, ignoreDiscriminator) {
|
|
60
|
+
if (json == null) {
|
|
61
|
+
return json;
|
|
62
|
+
}
|
|
63
|
+
return {
|
|
64
|
+
'requestId': json['request_id'],
|
|
65
|
+
'clientRequestId': json['client_request_id'] == null ? undefined : json['client_request_id'],
|
|
66
|
+
'occurredAt': (new Date(json['occurred_at'])),
|
|
67
|
+
'surface': json['surface'],
|
|
68
|
+
'model': json['model'],
|
|
69
|
+
'keyId': json['key_id'] == null ? undefined : json['key_id'],
|
|
70
|
+
'keyName': json['key_name'] == null ? undefined : json['key_name'],
|
|
71
|
+
'keyPrefix': json['key_prefix'] == null ? undefined : json['key_prefix'],
|
|
72
|
+
'status': json['status'],
|
|
73
|
+
'httpStatus': json['http_status'] == null ? undefined : json['http_status'],
|
|
74
|
+
'errorCode': json['error_code'] == null ? undefined : json['error_code'],
|
|
75
|
+
'finishReason': json['finish_reason'] == null ? undefined : json['finish_reason'],
|
|
76
|
+
'promptTokens': json['prompt_tokens'] == null ? undefined : json['prompt_tokens'],
|
|
77
|
+
'completionTokens': json['completion_tokens'] == null ? undefined : json['completion_tokens'],
|
|
78
|
+
'cachedTokens': json['cached_tokens'] == null ? undefined : json['cached_tokens'],
|
|
79
|
+
'reasoningTokens': json['reasoning_tokens'] == null ? undefined : json['reasoning_tokens'],
|
|
80
|
+
'quotaUnits': json['quota_units'] == null ? undefined : json['quota_units'],
|
|
81
|
+
'cost': json['cost'],
|
|
82
|
+
'costMicroCents': json['cost_micro_cents'],
|
|
83
|
+
'planCovered': json['plan_covered'],
|
|
84
|
+
'ttftMs': json['ttft_ms'] == null ? undefined : json['ttft_ms'],
|
|
85
|
+
'durationMs': json['duration_ms'] == null ? undefined : json['duration_ms'],
|
|
86
|
+
'ignoredParams': json['ignored_params'] == null ? undefined : json['ignored_params'],
|
|
87
|
+
'hadToolCalls': json['had_tool_calls'] == null ? undefined : json['had_tool_calls'],
|
|
88
|
+
'imageCount': json['image_count'] == null ? undefined : json['image_count'],
|
|
89
|
+
'videoSeconds': json['video_seconds'] == null ? undefined : json['video_seconds'],
|
|
90
|
+
'suppressedCount': json['suppressed_count'] == null ? undefined : json['suppressed_count'],
|
|
91
|
+
};
|
|
92
|
+
}
|
|
93
|
+
export function RequestLogEntryToJSON(json) {
|
|
94
|
+
return RequestLogEntryToJSONTyped(json, false);
|
|
95
|
+
}
|
|
96
|
+
export function RequestLogEntryToJSONTyped(value, ignoreDiscriminator = false) {
|
|
97
|
+
if (value == null) {
|
|
98
|
+
return value;
|
|
99
|
+
}
|
|
100
|
+
return {
|
|
101
|
+
'request_id': value['requestId'],
|
|
102
|
+
'client_request_id': value['clientRequestId'],
|
|
103
|
+
'occurred_at': value['occurredAt'].toISOString(),
|
|
104
|
+
'surface': value['surface'],
|
|
105
|
+
'model': value['model'],
|
|
106
|
+
'key_id': value['keyId'],
|
|
107
|
+
'key_name': value['keyName'],
|
|
108
|
+
'key_prefix': value['keyPrefix'],
|
|
109
|
+
'status': value['status'],
|
|
110
|
+
'http_status': value['httpStatus'],
|
|
111
|
+
'error_code': value['errorCode'],
|
|
112
|
+
'finish_reason': value['finishReason'],
|
|
113
|
+
'prompt_tokens': value['promptTokens'],
|
|
114
|
+
'completion_tokens': value['completionTokens'],
|
|
115
|
+
'cached_tokens': value['cachedTokens'],
|
|
116
|
+
'reasoning_tokens': value['reasoningTokens'],
|
|
117
|
+
'quota_units': value['quotaUnits'],
|
|
118
|
+
'cost': value['cost'],
|
|
119
|
+
'cost_micro_cents': value['costMicroCents'],
|
|
120
|
+
'plan_covered': value['planCovered'],
|
|
121
|
+
'ttft_ms': value['ttftMs'],
|
|
122
|
+
'duration_ms': value['durationMs'],
|
|
123
|
+
'ignored_params': value['ignoredParams'],
|
|
124
|
+
'had_tool_calls': value['hadToolCalls'],
|
|
125
|
+
'image_count': value['imageCount'],
|
|
126
|
+
'video_seconds': value['videoSeconds'],
|
|
127
|
+
'suppressed_count': value['suppressedCount'],
|
|
128
|
+
};
|
|
129
|
+
}
|