@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
package/src/models/Model.ts
CHANGED
|
@@ -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
|
|
@@ -13,6 +13,13 @@
|
|
|
13
13
|
*/
|
|
14
14
|
|
|
15
15
|
import { mapValues } from '../runtime';
|
|
16
|
+
import type { ModelMetrics } from './ModelMetrics';
|
|
17
|
+
import {
|
|
18
|
+
ModelMetricsFromJSON,
|
|
19
|
+
ModelMetricsFromJSONTyped,
|
|
20
|
+
ModelMetricsToJSON,
|
|
21
|
+
ModelMetricsToJSONTyped,
|
|
22
|
+
} from './ModelMetrics';
|
|
16
23
|
import type { ModelPricing } from './ModelPricing';
|
|
17
24
|
import {
|
|
18
25
|
ModelPricingFromJSON,
|
|
@@ -47,13 +54,13 @@ export interface Model {
|
|
|
47
54
|
*/
|
|
48
55
|
object: ModelObjectEnum;
|
|
49
56
|
/**
|
|
50
|
-
*
|
|
57
|
+
* Always present for OpenAI-client compatibility. Currently 0 for every model (the catalog carries no creation date); do not sort on it.
|
|
51
58
|
* @type {number}
|
|
52
59
|
* @memberof Model
|
|
53
60
|
*/
|
|
54
|
-
created
|
|
61
|
+
created: number;
|
|
55
62
|
/**
|
|
56
|
-
*
|
|
63
|
+
* The model's author (the same value as `author`), or "deeprelay" when the author is unknown.
|
|
57
64
|
* @type {string}
|
|
58
65
|
* @memberof Model
|
|
59
66
|
*/
|
|
@@ -76,18 +83,36 @@ export interface Model {
|
|
|
76
83
|
* @memberof Model
|
|
77
84
|
*/
|
|
78
85
|
category?: string;
|
|
86
|
+
/**
|
|
87
|
+
* The serving tier this entry prices: `serverless` or `economy` today, and more values may be added. A model served on both tiers appears twice: under its bare id for `serverless`, and under the `:economy`-suffixed id for `economy`. Send the id of the tier you want. Omitted on `coming_soon` placeholder entries.
|
|
88
|
+
* @type {string}
|
|
89
|
+
* @memberof Model
|
|
90
|
+
*/
|
|
91
|
+
tier?: string;
|
|
79
92
|
/**
|
|
80
93
|
*
|
|
81
94
|
* @type {number}
|
|
82
95
|
* @memberof Model
|
|
83
96
|
*/
|
|
84
97
|
contextLength?: number;
|
|
98
|
+
/**
|
|
99
|
+
* The model's maximum output, in tokens, from the catalog. Omitted when the catalog lists none.
|
|
100
|
+
* @type {number}
|
|
101
|
+
* @memberof Model
|
|
102
|
+
*/
|
|
103
|
+
maxCompletionTokens?: number;
|
|
85
104
|
/**
|
|
86
105
|
*
|
|
87
106
|
* @type {Array<string>}
|
|
88
107
|
* @memberof Model
|
|
89
108
|
*/
|
|
90
109
|
supportedParameters?: Array<string>;
|
|
110
|
+
/**
|
|
111
|
+
* The `reasoning_effort` values this model accepts (for example `none`, `low`, `medium`, `high`), as the catalog lists them. Omitted when the catalog lists none.
|
|
112
|
+
* @type {Array<string>}
|
|
113
|
+
* @memberof Model
|
|
114
|
+
*/
|
|
115
|
+
reasoningEfforts?: Array<string>;
|
|
91
116
|
/**
|
|
92
117
|
* Typed parameter descriptors for media (image/video) models — name, type, enum/bounds/default. Playgrounds render input forms from these.
|
|
93
118
|
* @type {Array<ModelParametersInner>}
|
|
@@ -119,19 +144,49 @@ export interface Model {
|
|
|
119
144
|
*/
|
|
120
145
|
fineTuneBaseModel?: string;
|
|
121
146
|
/**
|
|
122
|
-
*
|
|
147
|
+
* The Hugging Face repo that publishes this model's open weights, e.g. `meta-llama/Llama-3.3-70B-Instruct`. Send it as `base_model` to run the same model on a dedicated deployment. Absent when the weights are not public.
|
|
148
|
+
* @type {string}
|
|
149
|
+
* @memberof Model
|
|
150
|
+
*/
|
|
151
|
+
hfRepo?: string;
|
|
152
|
+
/**
|
|
153
|
+
* How heavily this model draws on the subscription quota, ×1000: each token counts as usage_factor_milli / 1000 weighted tokens toward the quota (and in cost_details.quota_units_used). Omitted at the default 1000 (1.0×).
|
|
154
|
+
* @type {number}
|
|
155
|
+
* @memberof Model
|
|
156
|
+
*/
|
|
157
|
+
usageFactorMilli?: number;
|
|
158
|
+
/**
|
|
159
|
+
* "Included in the flat subscription": whether the subscription tier covers this model. A model-level fact, the same for every caller. A covered model rides the plan's quota while the subscription is entitled and has quota left; everything else bills pay-as-you-go at list rates, as does a covered model once the quota is spent. Absent means false.
|
|
123
160
|
*
|
|
124
161
|
* Coverage is a property of the platform, not of the caller: the flag reads the same for every organization, subscribed or not. Use `/billing/subscription` for what the caller's own plan has left.
|
|
125
162
|
* @type {boolean}
|
|
126
163
|
* @memberof Model
|
|
127
164
|
*/
|
|
128
165
|
planCovered?: boolean;
|
|
166
|
+
/**
|
|
167
|
+
* The audiences deeprelay recommends this model for. The only value today is `coding-agents`: models tested with coding agents, which `deeprelay setup <agent>` configures. More values may be added. Omitted on every model that is not recommended.
|
|
168
|
+
* @type {Array<string>}
|
|
169
|
+
* @memberof Model
|
|
170
|
+
*/
|
|
171
|
+
recommendedFor?: Array<string>;
|
|
172
|
+
/**
|
|
173
|
+
* The model's position in the coding-agent list, 1 first. Present exactly when `recommended_for` contains `coding-agents`; a setup command makes the rank-1 model the default.
|
|
174
|
+
* @type {number}
|
|
175
|
+
* @memberof Model
|
|
176
|
+
*/
|
|
177
|
+
codingAgentRank?: number;
|
|
129
178
|
/**
|
|
130
179
|
*
|
|
131
180
|
* @type {ModelStatusEnum}
|
|
132
181
|
* @memberof Model
|
|
133
182
|
*/
|
|
134
183
|
status: ModelStatusEnum;
|
|
184
|
+
/**
|
|
185
|
+
*
|
|
186
|
+
* @type {ModelMetrics}
|
|
187
|
+
* @memberof Model
|
|
188
|
+
*/
|
|
189
|
+
metrics?: ModelMetrics;
|
|
135
190
|
}
|
|
136
191
|
|
|
137
192
|
|
|
@@ -173,6 +228,7 @@ export function instanceOfModel(value: object): value is Model {
|
|
|
173
228
|
if (!('object' in value) || value['object'] === undefined) return false;
|
|
174
229
|
if (value['object'] !== 'model') return false;
|
|
175
230
|
|
|
231
|
+
if (!('created' in value) || value['created'] === undefined) return false;
|
|
176
232
|
if ((!('ownedBy' in (value as Record<string, any>)) && !('owned_by' in (value as Record<string, any>))) || ((value as Record<string, any>)['ownedBy'] === undefined && (value as Record<string, any>)['owned_by'] === undefined)) return false;
|
|
177
233
|
if (!('modality' in value) || value['modality'] === undefined) return false;
|
|
178
234
|
if (!('pricing' in value) || value['pricing'] === undefined) return false;
|
|
@@ -192,20 +248,28 @@ export function ModelFromJSONTyped(json: any, ignoreDiscriminator: boolean): Mod
|
|
|
192
248
|
|
|
193
249
|
'id': json['id'],
|
|
194
250
|
'object': json['object'],
|
|
195
|
-
'created': json['created']
|
|
251
|
+
'created': json['created'],
|
|
196
252
|
'ownedBy': json['owned_by'],
|
|
197
253
|
'author': json['author'] == null ? undefined : json['author'],
|
|
198
254
|
'modality': json['modality'],
|
|
199
255
|
'category': json['category'] == null ? undefined : json['category'],
|
|
256
|
+
'tier': json['tier'] == null ? undefined : json['tier'],
|
|
200
257
|
'contextLength': json['context_length'] == null ? undefined : json['context_length'],
|
|
258
|
+
'maxCompletionTokens': json['max_completion_tokens'] == null ? undefined : json['max_completion_tokens'],
|
|
201
259
|
'supportedParameters': json['supported_parameters'] == null ? undefined : json['supported_parameters'],
|
|
260
|
+
'reasoningEfforts': json['reasoning_efforts'] == null ? undefined : json['reasoning_efforts'],
|
|
202
261
|
'parameters': json['parameters'] == null ? undefined : ((json['parameters'] as Array<any>).map(ModelParametersInnerFromJSON)),
|
|
203
262
|
'pricing': ModelPricingFromJSON(json['pricing']),
|
|
204
263
|
'aliases': json['aliases'] == null ? undefined : json['aliases'],
|
|
205
264
|
'fineTunable': json['fine_tunable'] == null ? undefined : json['fine_tunable'],
|
|
206
265
|
'fineTuneBaseModel': json['fine_tune_base_model'] == null ? undefined : json['fine_tune_base_model'],
|
|
266
|
+
'hfRepo': json['hf_repo'] == null ? undefined : json['hf_repo'],
|
|
267
|
+
'usageFactorMilli': json['usage_factor_milli'] == null ? undefined : json['usage_factor_milli'],
|
|
207
268
|
'planCovered': json['plan_covered'] == null ? undefined : json['plan_covered'],
|
|
269
|
+
'recommendedFor': json['recommended_for'] == null ? undefined : json['recommended_for'],
|
|
270
|
+
'codingAgentRank': json['coding_agent_rank'] == null ? undefined : json['coding_agent_rank'],
|
|
208
271
|
'status': json['status'],
|
|
272
|
+
'metrics': json['metrics'] == null ? undefined : ModelMetricsFromJSON(json['metrics']),
|
|
209
273
|
};
|
|
210
274
|
}
|
|
211
275
|
|
|
@@ -227,15 +291,23 @@ export function ModelToJSONTyped(value?: Model | null, ignoreDiscriminator: bool
|
|
|
227
291
|
'author': value['author'],
|
|
228
292
|
'modality': value['modality'],
|
|
229
293
|
'category': value['category'],
|
|
294
|
+
'tier': value['tier'],
|
|
230
295
|
'context_length': value['contextLength'],
|
|
296
|
+
'max_completion_tokens': value['maxCompletionTokens'],
|
|
231
297
|
'supported_parameters': value['supportedParameters'],
|
|
298
|
+
'reasoning_efforts': value['reasoningEfforts'],
|
|
232
299
|
'parameters': value['parameters'] == null ? undefined : ((value['parameters'] as Array<any>).map(ModelParametersInnerToJSON)),
|
|
233
300
|
'pricing': ModelPricingToJSON(value['pricing']),
|
|
234
301
|
'aliases': value['aliases'],
|
|
235
302
|
'fine_tunable': value['fineTunable'],
|
|
236
303
|
'fine_tune_base_model': value['fineTuneBaseModel'],
|
|
304
|
+
'hf_repo': value['hfRepo'],
|
|
305
|
+
'usage_factor_milli': value['usageFactorMilli'],
|
|
237
306
|
'plan_covered': value['planCovered'],
|
|
307
|
+
'recommended_for': value['recommendedFor'],
|
|
308
|
+
'coding_agent_rank': value['codingAgentRank'],
|
|
238
309
|
'status': value['status'],
|
|
310
|
+
'metrics': ModelMetricsToJSON(value['metrics']),
|
|
239
311
|
};
|
|
240
312
|
}
|
|
241
313
|
|
package/src/models/ModelList.ts
CHANGED
|
@@ -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
|
|
@@ -0,0 +1,165 @@
|
|
|
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
|
+
import { mapValues } from '../runtime';
|
|
16
|
+
/**
|
|
17
|
+
* Measured performance over a rolling window, from deeprelay's own customer traffic only. A figure is omitted (never zero) when it has too few samples behind it; the counts and minimums are always present so a reader can tell why.
|
|
18
|
+
* @export
|
|
19
|
+
* @interface ModelMetrics
|
|
20
|
+
*/
|
|
21
|
+
export interface ModelMetrics {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {number}
|
|
25
|
+
* @memberof ModelMetrics
|
|
26
|
+
*/
|
|
27
|
+
windowDays: number;
|
|
28
|
+
/**
|
|
29
|
+
* The hour the figures were computed for.
|
|
30
|
+
* @type {Date}
|
|
31
|
+
* @memberof ModelMetrics
|
|
32
|
+
*/
|
|
33
|
+
asOf: Date;
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
* @type {number}
|
|
37
|
+
* @memberof ModelMetrics
|
|
38
|
+
*/
|
|
39
|
+
sampleCount: number;
|
|
40
|
+
/**
|
|
41
|
+
*
|
|
42
|
+
* @type {number}
|
|
43
|
+
* @memberof ModelMetrics
|
|
44
|
+
*/
|
|
45
|
+
streamSampleCount: number;
|
|
46
|
+
/**
|
|
47
|
+
* Samples needed before `success_rate` is published.
|
|
48
|
+
* @type {number}
|
|
49
|
+
* @memberof ModelMetrics
|
|
50
|
+
*/
|
|
51
|
+
minSamples: number;
|
|
52
|
+
/**
|
|
53
|
+
* Streamed samples needed before the TTFT and tokens/s figures are published.
|
|
54
|
+
* @type {number}
|
|
55
|
+
* @memberof ModelMetrics
|
|
56
|
+
*/
|
|
57
|
+
minStreamSamples: number;
|
|
58
|
+
/**
|
|
59
|
+
* Median time to first token, in milliseconds.
|
|
60
|
+
* @type {number}
|
|
61
|
+
* @memberof ModelMetrics
|
|
62
|
+
*/
|
|
63
|
+
ttftP50Ms?: number;
|
|
64
|
+
/**
|
|
65
|
+
* Median decode rate after the first token, in tokens per second.
|
|
66
|
+
* @type {number}
|
|
67
|
+
* @memberof ModelMetrics
|
|
68
|
+
*/
|
|
69
|
+
tokensPerSecondP50?: number;
|
|
70
|
+
/**
|
|
71
|
+
*
|
|
72
|
+
* @type {number}
|
|
73
|
+
* @memberof ModelMetrics
|
|
74
|
+
*/
|
|
75
|
+
successRate?: number;
|
|
76
|
+
/**
|
|
77
|
+
* True when `sample_count` is below `min_samples`.
|
|
78
|
+
* @type {boolean}
|
|
79
|
+
* @memberof ModelMetrics
|
|
80
|
+
*/
|
|
81
|
+
insufficientData: boolean;
|
|
82
|
+
/**
|
|
83
|
+
* What deeprelay can state about the numeric precision this model is served at: `full` (always full precision), `mixed` (some serving capacity is quantized) or `unverified` (not verified; the default).
|
|
84
|
+
* @type {ModelMetricsPrecisionEnum}
|
|
85
|
+
* @memberof ModelMetrics
|
|
86
|
+
*/
|
|
87
|
+
precision: ModelMetricsPrecisionEnum;
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
|
|
91
|
+
/**
|
|
92
|
+
* @export
|
|
93
|
+
*/
|
|
94
|
+
export const ModelMetricsPrecisionEnum = {
|
|
95
|
+
Full: 'full',
|
|
96
|
+
Mixed: 'mixed',
|
|
97
|
+
Unverified: 'unverified'
|
|
98
|
+
} as const;
|
|
99
|
+
export type ModelMetricsPrecisionEnum = typeof ModelMetricsPrecisionEnum[keyof typeof ModelMetricsPrecisionEnum];
|
|
100
|
+
|
|
101
|
+
|
|
102
|
+
/**
|
|
103
|
+
* Check if a given object implements the ModelMetrics interface.
|
|
104
|
+
*/
|
|
105
|
+
export function instanceOfModelMetrics(value: object): value is ModelMetrics {
|
|
106
|
+
if ((!('windowDays' in (value as Record<string, any>)) && !('window_days' in (value as Record<string, any>))) || ((value as Record<string, any>)['windowDays'] === undefined && (value as Record<string, any>)['window_days'] === undefined)) return false;
|
|
107
|
+
if ((!('asOf' in (value as Record<string, any>)) && !('as_of' in (value as Record<string, any>))) || ((value as Record<string, any>)['asOf'] === undefined && (value as Record<string, any>)['as_of'] === undefined)) return false;
|
|
108
|
+
if ((!('sampleCount' in (value as Record<string, any>)) && !('sample_count' in (value as Record<string, any>))) || ((value as Record<string, any>)['sampleCount'] === undefined && (value as Record<string, any>)['sample_count'] === undefined)) return false;
|
|
109
|
+
if ((!('streamSampleCount' in (value as Record<string, any>)) && !('stream_sample_count' in (value as Record<string, any>))) || ((value as Record<string, any>)['streamSampleCount'] === undefined && (value as Record<string, any>)['stream_sample_count'] === undefined)) return false;
|
|
110
|
+
if ((!('minSamples' in (value as Record<string, any>)) && !('min_samples' in (value as Record<string, any>))) || ((value as Record<string, any>)['minSamples'] === undefined && (value as Record<string, any>)['min_samples'] === undefined)) return false;
|
|
111
|
+
if ((!('minStreamSamples' in (value as Record<string, any>)) && !('min_stream_samples' in (value as Record<string, any>))) || ((value as Record<string, any>)['minStreamSamples'] === undefined && (value as Record<string, any>)['min_stream_samples'] === undefined)) return false;
|
|
112
|
+
if ((!('insufficientData' in (value as Record<string, any>)) && !('insufficient_data' in (value as Record<string, any>))) || ((value as Record<string, any>)['insufficientData'] === undefined && (value as Record<string, any>)['insufficient_data'] === undefined)) return false;
|
|
113
|
+
if (!('precision' in value) || value['precision'] === undefined) return false;
|
|
114
|
+
return true;
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
export function ModelMetricsFromJSON(json: any): ModelMetrics {
|
|
118
|
+
return ModelMetricsFromJSONTyped(json, false);
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
export function ModelMetricsFromJSONTyped(json: any, ignoreDiscriminator: boolean): ModelMetrics {
|
|
122
|
+
if (json == null) {
|
|
123
|
+
return json;
|
|
124
|
+
}
|
|
125
|
+
return {
|
|
126
|
+
|
|
127
|
+
'windowDays': json['window_days'],
|
|
128
|
+
'asOf': (new Date(json['as_of'])),
|
|
129
|
+
'sampleCount': json['sample_count'],
|
|
130
|
+
'streamSampleCount': json['stream_sample_count'],
|
|
131
|
+
'minSamples': json['min_samples'],
|
|
132
|
+
'minStreamSamples': json['min_stream_samples'],
|
|
133
|
+
'ttftP50Ms': json['ttft_p50_ms'] == null ? undefined : json['ttft_p50_ms'],
|
|
134
|
+
'tokensPerSecondP50': json['tokens_per_second_p50'] == null ? undefined : json['tokens_per_second_p50'],
|
|
135
|
+
'successRate': json['success_rate'] == null ? undefined : json['success_rate'],
|
|
136
|
+
'insufficientData': json['insufficient_data'],
|
|
137
|
+
'precision': json['precision'],
|
|
138
|
+
};
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
export function ModelMetricsToJSON(json: any): ModelMetrics {
|
|
142
|
+
return ModelMetricsToJSONTyped(json, false);
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
export function ModelMetricsToJSONTyped(value?: ModelMetrics | null, ignoreDiscriminator: boolean = false): any {
|
|
146
|
+
if (value == null) {
|
|
147
|
+
return value;
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
return {
|
|
151
|
+
|
|
152
|
+
'window_days': value['windowDays'],
|
|
153
|
+
'as_of': value['asOf'].toISOString(),
|
|
154
|
+
'sample_count': value['sampleCount'],
|
|
155
|
+
'stream_sample_count': value['streamSampleCount'],
|
|
156
|
+
'min_samples': value['minSamples'],
|
|
157
|
+
'min_stream_samples': value['minStreamSamples'],
|
|
158
|
+
'ttft_p50_ms': value['ttftP50Ms'],
|
|
159
|
+
'tokens_per_second_p50': value['tokensPerSecondP50'],
|
|
160
|
+
'success_rate': value['successRate'],
|
|
161
|
+
'insufficient_data': value['insufficientData'],
|
|
162
|
+
'precision': value['precision'],
|
|
163
|
+
};
|
|
164
|
+
}
|
|
165
|
+
|
|
@@ -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
|
|
@@ -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
|
package/src/models/ModelRate.ts
CHANGED
|
@@ -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
|
|
@@ -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
|
|
@@ -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
|
|
@@ -32,7 +32,7 @@ export interface OpenAIErrorEnvelopeError {
|
|
|
32
32
|
*/
|
|
33
33
|
type: string;
|
|
34
34
|
/**
|
|
35
|
-
*
|
|
35
|
+
* 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.
|
|
36
36
|
* @type {string}
|
|
37
37
|
* @memberof OpenAIErrorEnvelopeError
|
|
38
38
|
*/
|
|
@@ -43,6 +43,12 @@ export interface OpenAIErrorEnvelopeError {
|
|
|
43
43
|
* @memberof OpenAIErrorEnvelopeError
|
|
44
44
|
*/
|
|
45
45
|
code: string;
|
|
46
|
+
/**
|
|
47
|
+
* 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.
|
|
48
|
+
* @type {Date}
|
|
49
|
+
* @memberof OpenAIErrorEnvelopeError
|
|
50
|
+
*/
|
|
51
|
+
quotaFreesAt?: Date;
|
|
46
52
|
}
|
|
47
53
|
|
|
48
54
|
/**
|
|
@@ -69,6 +75,7 @@ export function OpenAIErrorEnvelopeErrorFromJSONTyped(json: any, ignoreDiscrimin
|
|
|
69
75
|
'type': json['type'],
|
|
70
76
|
'param': json['param'] == null ? undefined : json['param'],
|
|
71
77
|
'code': json['code'],
|
|
78
|
+
'quotaFreesAt': json['quota_frees_at'] == null ? undefined : (new Date(json['quota_frees_at'])),
|
|
72
79
|
};
|
|
73
80
|
}
|
|
74
81
|
|
|
@@ -87,6 +94,7 @@ export function OpenAIErrorEnvelopeErrorToJSONTyped(value?: OpenAIErrorEnvelopeE
|
|
|
87
94
|
'type': value['type'],
|
|
88
95
|
'param': value['param'],
|
|
89
96
|
'code': value['code'],
|
|
97
|
+
'quota_frees_at': value['quotaFreesAt'] == null ? value['quotaFreesAt'] : value['quotaFreesAt'].toISOString(),
|
|
90
98
|
};
|
|
91
99
|
}
|
|
92
100
|
|
package/src/models/PeakWindow.ts
CHANGED
|
@@ -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
|
package/src/models/Problem.ts
CHANGED
|
@@ -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
|
|
@@ -55,6 +55,18 @@ export interface Problem {
|
|
|
55
55
|
* @memberof Problem
|
|
56
56
|
*/
|
|
57
57
|
requestId: string;
|
|
58
|
+
/**
|
|
59
|
+
* On a 422 `validation_failed`, the request field that failed.
|
|
60
|
+
* @type {string}
|
|
61
|
+
* @memberof Problem
|
|
62
|
+
*/
|
|
63
|
+
field?: string;
|
|
64
|
+
/**
|
|
65
|
+
* On a 422 `export_too_large`, the export row cap.
|
|
66
|
+
* @type {number}
|
|
67
|
+
* @memberof Problem
|
|
68
|
+
*/
|
|
69
|
+
maxRows?: number;
|
|
58
70
|
}
|
|
59
71
|
|
|
60
72
|
|
|
@@ -78,7 +90,16 @@ export const ProblemCodeEnum = {
|
|
|
78
90
|
InsufficientBalance: 'insufficient_balance',
|
|
79
91
|
QuotaExceeded: 'quota_exceeded',
|
|
80
92
|
RateLimited: 'rate_limited',
|
|
93
|
+
Forbidden: 'forbidden',
|
|
94
|
+
InvalidRequest: 'invalid_request',
|
|
95
|
+
KeysManageRequired: 'keys_manage_required',
|
|
96
|
+
ScopeExceedsCaller: 'scope_exceeds_caller',
|
|
97
|
+
ExportTooLarge: 'export_too_large',
|
|
98
|
+
ApiKeyBudgetExceeded: 'api_key_budget_exceeded',
|
|
99
|
+
MemberSpendLimitReached: 'member_spend_limit_reached',
|
|
100
|
+
ModelNotAllowedForKey: 'model_not_allowed_for_key',
|
|
81
101
|
CreatorCheckUnavailable: 'creator_check_unavailable',
|
|
102
|
+
SwitchRenewalUnpaid: 'switch_renewal_unpaid',
|
|
82
103
|
InternalError: 'internal_error',
|
|
83
104
|
OperationFailed: 'operation_failed'
|
|
84
105
|
} as const;
|
|
@@ -114,6 +135,8 @@ export function ProblemFromJSONTyped(json: any, ignoreDiscriminator: boolean): P
|
|
|
114
135
|
'detail': json['detail'],
|
|
115
136
|
'code': json['code'],
|
|
116
137
|
'requestId': json['request_id'],
|
|
138
|
+
'field': json['field'] == null ? undefined : json['field'],
|
|
139
|
+
'maxRows': json['max_rows'] == null ? undefined : json['max_rows'],
|
|
117
140
|
};
|
|
118
141
|
}
|
|
119
142
|
|
|
@@ -134,6 +157,8 @@ export function ProblemToJSONTyped(value?: Problem | null, ignoreDiscriminator:
|
|
|
134
157
|
'detail': value['detail'],
|
|
135
158
|
'code': value['code'],
|
|
136
159
|
'request_id': value['requestId'],
|
|
160
|
+
'field': value['field'],
|
|
161
|
+
'max_rows': value['maxRows'],
|
|
137
162
|
};
|
|
138
163
|
}
|
|
139
164
|
|
|
@@ -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
|
package/src/models/Referral.ts
CHANGED
|
@@ -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
|
|
@@ -29,7 +29,7 @@ import {
|
|
|
29
29
|
*/
|
|
30
30
|
export interface Referral {
|
|
31
31
|
/**
|
|
32
|
-
* The organization's shareable referral code, e.g. `
|
|
32
|
+
* The organization's shareable referral code, e.g. `DR-7KQ2-M4XP`.
|
|
33
33
|
* @type {string}
|
|
34
34
|
* @memberof Referral
|
|
35
35
|
*/
|
|
@@ -64,6 +64,12 @@ export interface Referral {
|
|
|
64
64
|
* @memberof Referral
|
|
65
65
|
*/
|
|
66
66
|
earnedCents: number;
|
|
67
|
+
/**
|
|
68
|
+
* Total deposit commission credited to this organization as a referrer (separate from the flat bonus in `earned_cents`).
|
|
69
|
+
* @type {number}
|
|
70
|
+
* @memberof Referral
|
|
71
|
+
*/
|
|
72
|
+
commissionEarnedCents: number;
|
|
67
73
|
/**
|
|
68
74
|
* Credit paid to the referrer per settled referral.
|
|
69
75
|
* @type {number}
|
|
@@ -88,6 +94,12 @@ export interface Referral {
|
|
|
88
94
|
* @memberof Referral
|
|
89
95
|
*/
|
|
90
96
|
holdDays: number;
|
|
97
|
+
/**
|
|
98
|
+
* 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.
|
|
99
|
+
* @type {number}
|
|
100
|
+
* @memberof Referral
|
|
101
|
+
*/
|
|
102
|
+
commissionPct: number;
|
|
91
103
|
/**
|
|
92
104
|
*
|
|
93
105
|
* @type {RefereeStatus}
|
|
@@ -106,10 +118,12 @@ export function instanceOfReferral(value: object): value is Referral {
|
|
|
106
118
|
if (!('qualified' in value) || value['qualified'] === undefined) return false;
|
|
107
119
|
if (!('settled' in value) || value['settled'] === undefined) return false;
|
|
108
120
|
if ((!('earnedCents' in (value as Record<string, any>)) && !('earned_cents' in (value as Record<string, any>))) || ((value as Record<string, any>)['earnedCents'] === undefined && (value as Record<string, any>)['earned_cents'] === undefined)) return false;
|
|
121
|
+
if ((!('commissionEarnedCents' in (value as Record<string, any>)) && !('commission_earned_cents' in (value as Record<string, any>))) || ((value as Record<string, any>)['commissionEarnedCents'] === undefined && (value as Record<string, any>)['commission_earned_cents'] === undefined)) return false;
|
|
109
122
|
if ((!('rewardCents' in (value as Record<string, any>)) && !('reward_cents' in (value as Record<string, any>))) || ((value as Record<string, any>)['rewardCents'] === undefined && (value as Record<string, any>)['reward_cents'] === undefined)) return false;
|
|
110
123
|
if ((!('refereeRewardCents' in (value as Record<string, any>)) && !('referee_reward_cents' in (value as Record<string, any>))) || ((value as Record<string, any>)['refereeRewardCents'] === undefined && (value as Record<string, any>)['referee_reward_cents'] === undefined)) return false;
|
|
111
124
|
if ((!('qualifySpendCents' in (value as Record<string, any>)) && !('qualify_spend_cents' in (value as Record<string, any>))) || ((value as Record<string, any>)['qualifySpendCents'] === undefined && (value as Record<string, any>)['qualify_spend_cents'] === undefined)) return false;
|
|
112
125
|
if ((!('holdDays' in (value as Record<string, any>)) && !('hold_days' in (value as Record<string, any>))) || ((value as Record<string, any>)['holdDays'] === undefined && (value as Record<string, any>)['hold_days'] === undefined)) return false;
|
|
126
|
+
if ((!('commissionPct' in (value as Record<string, any>)) && !('commission_pct' in (value as Record<string, any>))) || ((value as Record<string, any>)['commissionPct'] === undefined && (value as Record<string, any>)['commission_pct'] === undefined)) return false;
|
|
113
127
|
return true;
|
|
114
128
|
}
|
|
115
129
|
|
|
@@ -129,10 +143,12 @@ export function ReferralFromJSONTyped(json: any, ignoreDiscriminator: boolean):
|
|
|
129
143
|
'qualified': json['qualified'],
|
|
130
144
|
'settled': json['settled'],
|
|
131
145
|
'earnedCents': json['earned_cents'],
|
|
146
|
+
'commissionEarnedCents': json['commission_earned_cents'],
|
|
132
147
|
'rewardCents': json['reward_cents'],
|
|
133
148
|
'refereeRewardCents': json['referee_reward_cents'],
|
|
134
149
|
'qualifySpendCents': json['qualify_spend_cents'],
|
|
135
150
|
'holdDays': json['hold_days'],
|
|
151
|
+
'commissionPct': json['commission_pct'],
|
|
136
152
|
'referred': json['referred'] == null ? undefined : RefereeStatusFromJSON(json['referred']),
|
|
137
153
|
};
|
|
138
154
|
}
|
|
@@ -154,10 +170,12 @@ export function ReferralToJSONTyped(value?: Referral | null, ignoreDiscriminator
|
|
|
154
170
|
'qualified': value['qualified'],
|
|
155
171
|
'settled': value['settled'],
|
|
156
172
|
'earned_cents': value['earnedCents'],
|
|
173
|
+
'commission_earned_cents': value['commissionEarnedCents'],
|
|
157
174
|
'reward_cents': value['rewardCents'],
|
|
158
175
|
'referee_reward_cents': value['refereeRewardCents'],
|
|
159
176
|
'qualify_spend_cents': value['qualifySpendCents'],
|
|
160
177
|
'hold_days': value['holdDays'],
|
|
178
|
+
'commission_pct': value['commissionPct'],
|
|
161
179
|
'referred': RefereeStatusToJSON(value['referred']),
|
|
162
180
|
};
|
|
163
181
|
}
|