@deeprelay/sdk 0.2.1 → 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 +1 -1
- package/dist/apis/UsageApi.js +1 -1
- 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 +1 -1
- package/dist/esm/apis/UsageApi.js +1 -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 +1 -1
- package/dist/esm/models/UsageBucket.js +1 -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 +1 -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 +1 -1
- package/dist/models/UsageBucket.js +1 -1
- package/dist/models/UsageCompletionTokensDetails.d.ts +32 -0
- package/dist/models/UsageCompletionTokensDetails.js +48 -0
- package/dist/models/UsagePage.d.ts +1 -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/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 +1 -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 +1 -1
- package/src/models/UsageCompletionTokensDetails.ts +65 -0
- package/src/models/UsagePage.ts +1 -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/.openapi-generator/FILES
CHANGED
|
@@ -1,12 +1,26 @@
|
|
|
1
1
|
.gitignore
|
|
2
2
|
.npmignore
|
|
3
3
|
README.md
|
|
4
|
+
docs/AlertEmailToggles.md
|
|
5
|
+
docs/AlertSettings.md
|
|
6
|
+
docs/AlertSettingsUpdate.md
|
|
7
|
+
docs/AlertsApi.md
|
|
8
|
+
docs/ApiKey.md
|
|
9
|
+
docs/ApiKeyCreate.md
|
|
10
|
+
docs/ApiKeyCreated.md
|
|
11
|
+
docs/ApiKeyList.md
|
|
12
|
+
docs/ApiKeyScopes.md
|
|
13
|
+
docs/ApiKeyUpdate.md
|
|
14
|
+
docs/ApiKeysApi.md
|
|
4
15
|
docs/Balance.md
|
|
5
16
|
docs/BillingApi.md
|
|
6
17
|
docs/ChatChoice.md
|
|
7
18
|
docs/ChatCompletionRequest.md
|
|
19
|
+
docs/ChatCompletionRequestResponseFormat.md
|
|
20
|
+
docs/ChatCompletionRequestToolChoice.md
|
|
8
21
|
docs/ChatCompletionResponse.md
|
|
9
22
|
docs/ChatMessage.md
|
|
23
|
+
docs/CostDetails.md
|
|
10
24
|
docs/CreateCryptoDepositRequest.md
|
|
11
25
|
docs/CreateWebhookEndpointRequest.md
|
|
12
26
|
docs/CryptoDeposit.md
|
|
@@ -22,10 +36,12 @@ docs/ImagesResponseDataInner.md
|
|
|
22
36
|
docs/ImagesResponseUsage.md
|
|
23
37
|
docs/InferenceApi.md
|
|
24
38
|
docs/InferencePreflight.md
|
|
39
|
+
docs/JSONSchemaFormat.md
|
|
25
40
|
docs/ListDeposits200Response.md
|
|
26
41
|
docs/MetaApi.md
|
|
27
42
|
docs/Model.md
|
|
28
43
|
docs/ModelList.md
|
|
44
|
+
docs/ModelMetrics.md
|
|
29
45
|
docs/ModelParametersInner.md
|
|
30
46
|
docs/ModelPricing.md
|
|
31
47
|
docs/ModelRate.md
|
|
@@ -35,22 +51,39 @@ docs/PeakWindow.md
|
|
|
35
51
|
docs/Problem.md
|
|
36
52
|
docs/RefereeStatus.md
|
|
37
53
|
docs/Referral.md
|
|
54
|
+
docs/RequestLogEntry.md
|
|
55
|
+
docs/RequestLogPage.md
|
|
56
|
+
docs/RequestsApi.md
|
|
57
|
+
docs/ResponseFormatJSONObject.md
|
|
58
|
+
docs/ResponseFormatJSONSchema.md
|
|
59
|
+
docs/ResponseFormatText.md
|
|
38
60
|
docs/SpendingLimit.md
|
|
39
61
|
docs/StreamOptions.md
|
|
40
62
|
docs/Subscription.md
|
|
41
63
|
docs/SubscriptionCheckoutRequest.md
|
|
42
64
|
docs/SubscriptionCheckoutSession.md
|
|
65
|
+
docs/SubscriptionModelUsage.md
|
|
43
66
|
docs/SubscriptionPlan.md
|
|
44
67
|
docs/SubscriptionPortalRequest.md
|
|
45
68
|
docs/SubscriptionPortalSession.md
|
|
46
69
|
docs/SubscriptionPrice.md
|
|
47
70
|
docs/SubscriptionQuota.md
|
|
71
|
+
docs/SubscriptionTier.md
|
|
72
|
+
docs/SubscriptionUpgradeRequest.md
|
|
48
73
|
docs/SubscriptionUsage.md
|
|
74
|
+
docs/Tool.md
|
|
75
|
+
docs/ToolCall.md
|
|
76
|
+
docs/ToolCallFunction.md
|
|
77
|
+
docs/ToolChoiceFunction.md
|
|
78
|
+
docs/ToolChoiceFunctionFunction.md
|
|
79
|
+
docs/ToolFunction.md
|
|
49
80
|
docs/UpdateSpendingLimitRequest.md
|
|
50
81
|
docs/Usage.md
|
|
51
82
|
docs/UsageApi.md
|
|
52
83
|
docs/UsageBucket.md
|
|
84
|
+
docs/UsageCompletionTokensDetails.md
|
|
53
85
|
docs/UsagePage.md
|
|
86
|
+
docs/UsagePromptTokensDetails.md
|
|
54
87
|
docs/VideoCreateRequest.md
|
|
55
88
|
docs/VideoJob.md
|
|
56
89
|
docs/VideoList.md
|
|
@@ -58,18 +91,33 @@ docs/WebhookEndpoint.md
|
|
|
58
91
|
docs/WebhookEndpointPage.md
|
|
59
92
|
docs/WebhooksApi.md
|
|
60
93
|
package.json
|
|
94
|
+
src/apis/AlertsApi.ts
|
|
95
|
+
src/apis/ApiKeysApi.ts
|
|
61
96
|
src/apis/BillingApi.ts
|
|
62
97
|
src/apis/InferenceApi.ts
|
|
63
98
|
src/apis/MetaApi.ts
|
|
99
|
+
src/apis/RequestsApi.ts
|
|
64
100
|
src/apis/UsageApi.ts
|
|
65
101
|
src/apis/WebhooksApi.ts
|
|
66
102
|
src/apis/index.ts
|
|
67
103
|
src/index.ts
|
|
104
|
+
src/models/AlertEmailToggles.ts
|
|
105
|
+
src/models/AlertSettings.ts
|
|
106
|
+
src/models/AlertSettingsUpdate.ts
|
|
107
|
+
src/models/ApiKey.ts
|
|
108
|
+
src/models/ApiKeyCreate.ts
|
|
109
|
+
src/models/ApiKeyCreated.ts
|
|
110
|
+
src/models/ApiKeyList.ts
|
|
111
|
+
src/models/ApiKeyScopes.ts
|
|
112
|
+
src/models/ApiKeyUpdate.ts
|
|
68
113
|
src/models/Balance.ts
|
|
69
114
|
src/models/ChatChoice.ts
|
|
70
115
|
src/models/ChatCompletionRequest.ts
|
|
116
|
+
src/models/ChatCompletionRequestResponseFormat.ts
|
|
117
|
+
src/models/ChatCompletionRequestToolChoice.ts
|
|
71
118
|
src/models/ChatCompletionResponse.ts
|
|
72
119
|
src/models/ChatMessage.ts
|
|
120
|
+
src/models/CostDetails.ts
|
|
73
121
|
src/models/CreateCryptoDepositRequest.ts
|
|
74
122
|
src/models/CreateWebhookEndpointRequest.ts
|
|
75
123
|
src/models/CryptoDeposit.ts
|
|
@@ -84,9 +132,11 @@ src/models/ImagesResponse.ts
|
|
|
84
132
|
src/models/ImagesResponseDataInner.ts
|
|
85
133
|
src/models/ImagesResponseUsage.ts
|
|
86
134
|
src/models/InferencePreflight.ts
|
|
135
|
+
src/models/JSONSchemaFormat.ts
|
|
87
136
|
src/models/ListDeposits200Response.ts
|
|
88
137
|
src/models/Model.ts
|
|
89
138
|
src/models/ModelList.ts
|
|
139
|
+
src/models/ModelMetrics.ts
|
|
90
140
|
src/models/ModelParametersInner.ts
|
|
91
141
|
src/models/ModelPricing.ts
|
|
92
142
|
src/models/ModelRate.ts
|
|
@@ -96,21 +146,37 @@ src/models/PeakWindow.ts
|
|
|
96
146
|
src/models/Problem.ts
|
|
97
147
|
src/models/RefereeStatus.ts
|
|
98
148
|
src/models/Referral.ts
|
|
149
|
+
src/models/RequestLogEntry.ts
|
|
150
|
+
src/models/RequestLogPage.ts
|
|
151
|
+
src/models/ResponseFormatJSONObject.ts
|
|
152
|
+
src/models/ResponseFormatJSONSchema.ts
|
|
153
|
+
src/models/ResponseFormatText.ts
|
|
99
154
|
src/models/SpendingLimit.ts
|
|
100
155
|
src/models/StreamOptions.ts
|
|
101
156
|
src/models/Subscription.ts
|
|
102
157
|
src/models/SubscriptionCheckoutRequest.ts
|
|
103
158
|
src/models/SubscriptionCheckoutSession.ts
|
|
159
|
+
src/models/SubscriptionModelUsage.ts
|
|
104
160
|
src/models/SubscriptionPlan.ts
|
|
105
161
|
src/models/SubscriptionPortalRequest.ts
|
|
106
162
|
src/models/SubscriptionPortalSession.ts
|
|
107
163
|
src/models/SubscriptionPrice.ts
|
|
108
164
|
src/models/SubscriptionQuota.ts
|
|
165
|
+
src/models/SubscriptionTier.ts
|
|
166
|
+
src/models/SubscriptionUpgradeRequest.ts
|
|
109
167
|
src/models/SubscriptionUsage.ts
|
|
168
|
+
src/models/Tool.ts
|
|
169
|
+
src/models/ToolCall.ts
|
|
170
|
+
src/models/ToolCallFunction.ts
|
|
171
|
+
src/models/ToolChoiceFunction.ts
|
|
172
|
+
src/models/ToolChoiceFunctionFunction.ts
|
|
173
|
+
src/models/ToolFunction.ts
|
|
110
174
|
src/models/UpdateSpendingLimitRequest.ts
|
|
111
175
|
src/models/Usage.ts
|
|
112
176
|
src/models/UsageBucket.ts
|
|
177
|
+
src/models/UsageCompletionTokensDetails.ts
|
|
113
178
|
src/models/UsagePage.ts
|
|
179
|
+
src/models/UsagePromptTokensDetails.ts
|
|
114
180
|
src/models/VideoCreateRequest.ts
|
|
115
181
|
src/models/VideoJob.ts
|
|
116
182
|
src/models/VideoList.ts
|
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# @deeprelay/sdk@0.
|
|
1
|
+
# @deeprelay/sdk@0.3.0
|
|
2
2
|
|
|
3
3
|
A TypeScript SDK client for the api.deeprelay.ai API.
|
|
4
4
|
|
|
@@ -16,9 +16,9 @@ Next, try it out.
|
|
|
16
16
|
```ts
|
|
17
17
|
import {
|
|
18
18
|
Configuration,
|
|
19
|
-
|
|
19
|
+
AlertsApi,
|
|
20
20
|
} from '@deeprelay/sdk';
|
|
21
|
-
import type {
|
|
21
|
+
import type { GetAlertSettingsRequest } from '@deeprelay/sdk';
|
|
22
22
|
|
|
23
23
|
async function example() {
|
|
24
24
|
console.log("🚀 Testing @deeprelay/sdk SDK...");
|
|
@@ -26,15 +26,10 @@ async function example() {
|
|
|
26
26
|
// Configure HTTP bearer authorization: bearerAuth
|
|
27
27
|
accessToken: "YOUR BEARER TOKEN",
|
|
28
28
|
});
|
|
29
|
-
const api = new
|
|
30
|
-
|
|
31
|
-
const body = {
|
|
32
|
-
// CreateCryptoDepositRequest
|
|
33
|
-
createCryptoDepositRequest: ...,
|
|
34
|
-
} satisfies CreateCryptoDepositOperationRequest;
|
|
29
|
+
const api = new AlertsApi(config);
|
|
35
30
|
|
|
36
31
|
try {
|
|
37
|
-
const data = await api.
|
|
32
|
+
const data = await api.getAlertSettings();
|
|
38
33
|
console.log(data);
|
|
39
34
|
} catch (error) {
|
|
40
35
|
console.error(error);
|
|
@@ -54,6 +49,13 @@ All URIs are relative to *https://api.deeprelay.ai/v1*
|
|
|
54
49
|
|
|
55
50
|
| Class | Method | HTTP request | Description
|
|
56
51
|
| ----- | ------ | ------------ | -------------
|
|
52
|
+
*AlertsApi* | [**getAlertSettings**](docs/AlertsApi.md#getalertsettings) | **GET** /alerts/settings | Get the organization\'s alert settings
|
|
53
|
+
*AlertsApi* | [**putAlertSettings**](docs/AlertsApi.md#putalertsettings) | **PUT** /alerts/settings | Replace the organization\'s alert settings
|
|
54
|
+
*ApiKeysApi* | [**createApiKey**](docs/ApiKeysApi.md#createapikey) | **POST** /api-keys | Create an API key
|
|
55
|
+
*ApiKeysApi* | [**getApiKey**](docs/ApiKeysApi.md#getapikey) | **GET** /api-keys/{id} | Get an API key
|
|
56
|
+
*ApiKeysApi* | [**listApiKeys**](docs/ApiKeysApi.md#listapikeys) | **GET** /api-keys | List API keys
|
|
57
|
+
*ApiKeysApi* | [**revokeApiKey**](docs/ApiKeysApi.md#revokeapikey) | **DELETE** /api-keys/{id} | Revoke an API key
|
|
58
|
+
*ApiKeysApi* | [**updateApiKey**](docs/ApiKeysApi.md#updateapikey) | **PATCH** /api-keys/{id} | Update an API key\'s name or limits
|
|
57
59
|
*BillingApi* | [**createCryptoDeposit**](docs/BillingApi.md#createcryptodepositoperation) | **POST** /billing/deposits/crypto | Create a stablecoin deposit
|
|
58
60
|
*BillingApi* | [**createSubscriptionCheckout**](docs/BillingApi.md#createsubscriptioncheckout) | **POST** /billing/subscription/checkout | Start a subscription checkout session
|
|
59
61
|
*BillingApi* | [**createSubscriptionPortal**](docs/BillingApi.md#createsubscriptionportal) | **POST** /billing/subscription/portal | Open the billing portal to cancel or manage the subscription
|
|
@@ -65,6 +67,7 @@ All URIs are relative to *https://api.deeprelay.ai/v1*
|
|
|
65
67
|
*BillingApi* | [**getSubscription**](docs/BillingApi.md#getsubscription) | **GET** /billing/subscription | Get the org subscription status and quota usage
|
|
66
68
|
*BillingApi* | [**listDeposits**](docs/BillingApi.md#listdeposits) | **GET** /billing/deposits | List stablecoin deposits
|
|
67
69
|
*BillingApi* | [**updateSpendingLimit**](docs/BillingApi.md#updatespendinglimitoperation) | **PUT** /billing/spending-limit | Set the org spending limit
|
|
70
|
+
*BillingApi* | [**upgradeSubscription**](docs/BillingApi.md#upgradesubscription) | **POST** /billing/subscription/upgrade | Upgrade the subscription to a bigger plan
|
|
68
71
|
*InferenceApi* | [**cancelVideo**](docs/InferenceApi.md#cancelvideo) | **POST** /videos/{id}/cancel | Cancel a video generation job
|
|
69
72
|
*InferenceApi* | [**createChatCompletion**](docs/InferenceApi.md#createchatcompletion) | **POST** /chat/completions | Create a chat completion (OpenAI-compatible)
|
|
70
73
|
*InferenceApi* | [**createEmbeddings**](docs/InferenceApi.md#createembeddings) | **POST** /embeddings | Create embeddings (OpenAI-compatible)
|
|
@@ -78,6 +81,9 @@ All URIs are relative to *https://api.deeprelay.ai/v1*
|
|
|
78
81
|
*InferenceApi* | [**listVideos**](docs/InferenceApi.md#listvideos) | **GET** /videos | List video generation jobs
|
|
79
82
|
*MetaApi* | [**getHealth**](docs/MetaApi.md#gethealth) | **GET** /health | Liveness probe
|
|
80
83
|
*MetaApi* | [**getOpenApiSpec**](docs/MetaApi.md#getopenapispec) | **GET** /openapi.json | OpenAPI 3.1 specification
|
|
84
|
+
*RequestsApi* | [**exportRequests**](docs/RequestsApi.md#exportrequests) | **GET** /requests/export | Export the request log as CSV
|
|
85
|
+
*RequestsApi* | [**getRequest**](docs/RequestsApi.md#getrequest) | **GET** /requests/{id} | Get one request
|
|
86
|
+
*RequestsApi* | [**listRequests**](docs/RequestsApi.md#listrequests) | **GET** /requests | List requests (the request log)
|
|
81
87
|
*UsageApi* | [**listUsage**](docs/UsageApi.md#listusage) | **GET** /usage | Time-bucketed usage
|
|
82
88
|
*WebhooksApi* | [**createWebhookEndpoint**](docs/WebhooksApi.md#createwebhookendpointoperation) | **POST** /webhook-endpoints | Create a webhook endpoint
|
|
83
89
|
*WebhooksApi* | [**deleteWebhookEndpoint**](docs/WebhooksApi.md#deletewebhookendpoint) | **DELETE** /webhook-endpoints/{id} | Delete a webhook endpoint
|
|
@@ -87,11 +93,23 @@ All URIs are relative to *https://api.deeprelay.ai/v1*
|
|
|
87
93
|
|
|
88
94
|
### Models
|
|
89
95
|
|
|
96
|
+
- [AlertEmailToggles](docs/AlertEmailToggles.md)
|
|
97
|
+
- [AlertSettings](docs/AlertSettings.md)
|
|
98
|
+
- [AlertSettingsUpdate](docs/AlertSettingsUpdate.md)
|
|
99
|
+
- [ApiKey](docs/ApiKey.md)
|
|
100
|
+
- [ApiKeyCreate](docs/ApiKeyCreate.md)
|
|
101
|
+
- [ApiKeyCreated](docs/ApiKeyCreated.md)
|
|
102
|
+
- [ApiKeyList](docs/ApiKeyList.md)
|
|
103
|
+
- [ApiKeyScopes](docs/ApiKeyScopes.md)
|
|
104
|
+
- [ApiKeyUpdate](docs/ApiKeyUpdate.md)
|
|
90
105
|
- [Balance](docs/Balance.md)
|
|
91
106
|
- [ChatChoice](docs/ChatChoice.md)
|
|
92
107
|
- [ChatCompletionRequest](docs/ChatCompletionRequest.md)
|
|
108
|
+
- [ChatCompletionRequestResponseFormat](docs/ChatCompletionRequestResponseFormat.md)
|
|
109
|
+
- [ChatCompletionRequestToolChoice](docs/ChatCompletionRequestToolChoice.md)
|
|
93
110
|
- [ChatCompletionResponse](docs/ChatCompletionResponse.md)
|
|
94
111
|
- [ChatMessage](docs/ChatMessage.md)
|
|
112
|
+
- [CostDetails](docs/CostDetails.md)
|
|
95
113
|
- [CreateCryptoDepositRequest](docs/CreateCryptoDepositRequest.md)
|
|
96
114
|
- [CreateWebhookEndpointRequest](docs/CreateWebhookEndpointRequest.md)
|
|
97
115
|
- [CryptoDeposit](docs/CryptoDeposit.md)
|
|
@@ -106,9 +124,11 @@ All URIs are relative to *https://api.deeprelay.ai/v1*
|
|
|
106
124
|
- [ImagesResponseDataInner](docs/ImagesResponseDataInner.md)
|
|
107
125
|
- [ImagesResponseUsage](docs/ImagesResponseUsage.md)
|
|
108
126
|
- [InferencePreflight](docs/InferencePreflight.md)
|
|
127
|
+
- [JSONSchemaFormat](docs/JSONSchemaFormat.md)
|
|
109
128
|
- [ListDeposits200Response](docs/ListDeposits200Response.md)
|
|
110
129
|
- [Model](docs/Model.md)
|
|
111
130
|
- [ModelList](docs/ModelList.md)
|
|
131
|
+
- [ModelMetrics](docs/ModelMetrics.md)
|
|
112
132
|
- [ModelParametersInner](docs/ModelParametersInner.md)
|
|
113
133
|
- [ModelPricing](docs/ModelPricing.md)
|
|
114
134
|
- [ModelRate](docs/ModelRate.md)
|
|
@@ -118,21 +138,37 @@ All URIs are relative to *https://api.deeprelay.ai/v1*
|
|
|
118
138
|
- [Problem](docs/Problem.md)
|
|
119
139
|
- [RefereeStatus](docs/RefereeStatus.md)
|
|
120
140
|
- [Referral](docs/Referral.md)
|
|
141
|
+
- [RequestLogEntry](docs/RequestLogEntry.md)
|
|
142
|
+
- [RequestLogPage](docs/RequestLogPage.md)
|
|
143
|
+
- [ResponseFormatJSONObject](docs/ResponseFormatJSONObject.md)
|
|
144
|
+
- [ResponseFormatJSONSchema](docs/ResponseFormatJSONSchema.md)
|
|
145
|
+
- [ResponseFormatText](docs/ResponseFormatText.md)
|
|
121
146
|
- [SpendingLimit](docs/SpendingLimit.md)
|
|
122
147
|
- [StreamOptions](docs/StreamOptions.md)
|
|
123
148
|
- [Subscription](docs/Subscription.md)
|
|
124
149
|
- [SubscriptionCheckoutRequest](docs/SubscriptionCheckoutRequest.md)
|
|
125
150
|
- [SubscriptionCheckoutSession](docs/SubscriptionCheckoutSession.md)
|
|
151
|
+
- [SubscriptionModelUsage](docs/SubscriptionModelUsage.md)
|
|
126
152
|
- [SubscriptionPlan](docs/SubscriptionPlan.md)
|
|
127
153
|
- [SubscriptionPortalRequest](docs/SubscriptionPortalRequest.md)
|
|
128
154
|
- [SubscriptionPortalSession](docs/SubscriptionPortalSession.md)
|
|
129
155
|
- [SubscriptionPrice](docs/SubscriptionPrice.md)
|
|
130
156
|
- [SubscriptionQuota](docs/SubscriptionQuota.md)
|
|
157
|
+
- [SubscriptionTier](docs/SubscriptionTier.md)
|
|
158
|
+
- [SubscriptionUpgradeRequest](docs/SubscriptionUpgradeRequest.md)
|
|
131
159
|
- [SubscriptionUsage](docs/SubscriptionUsage.md)
|
|
160
|
+
- [Tool](docs/Tool.md)
|
|
161
|
+
- [ToolCall](docs/ToolCall.md)
|
|
162
|
+
- [ToolCallFunction](docs/ToolCallFunction.md)
|
|
163
|
+
- [ToolChoiceFunction](docs/ToolChoiceFunction.md)
|
|
164
|
+
- [ToolChoiceFunctionFunction](docs/ToolChoiceFunctionFunction.md)
|
|
165
|
+
- [ToolFunction](docs/ToolFunction.md)
|
|
132
166
|
- [UpdateSpendingLimitRequest](docs/UpdateSpendingLimitRequest.md)
|
|
133
167
|
- [Usage](docs/Usage.md)
|
|
134
168
|
- [UsageBucket](docs/UsageBucket.md)
|
|
169
|
+
- [UsageCompletionTokensDetails](docs/UsageCompletionTokensDetails.md)
|
|
135
170
|
- [UsagePage](docs/UsagePage.md)
|
|
171
|
+
- [UsagePromptTokensDetails](docs/UsagePromptTokensDetails.md)
|
|
136
172
|
- [VideoCreateRequest](docs/VideoCreateRequest.md)
|
|
137
173
|
- [VideoJob](docs/VideoJob.md)
|
|
138
174
|
- [VideoList](docs/VideoList.md)
|
|
@@ -156,7 +192,7 @@ and is automatically generated by the
|
|
|
156
192
|
[OpenAPI Generator](https://openapi-generator.tech) project:
|
|
157
193
|
|
|
158
194
|
- API version: `1.0.0`
|
|
159
|
-
- Package version: `0.
|
|
195
|
+
- Package version: `0.3.0`
|
|
160
196
|
- Generator version: `7.24.0`
|
|
161
197
|
- Build package: `org.openapitools.codegen.languages.TypeScriptFetchClientCodegen`
|
|
162
198
|
|
|
@@ -0,0 +1,50 @@
|
|
|
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
|
+
import * as runtime from '../runtime';
|
|
13
|
+
import { type AlertSettings } from '../models/AlertSettings';
|
|
14
|
+
import { type AlertSettingsUpdate } from '../models/AlertSettingsUpdate';
|
|
15
|
+
export interface PutAlertSettingsRequest {
|
|
16
|
+
alertSettingsUpdate: AlertSettingsUpdate;
|
|
17
|
+
}
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
*/
|
|
21
|
+
export declare class AlertsApi extends runtime.BaseAPI {
|
|
22
|
+
/**
|
|
23
|
+
* Creates request options for getAlertSettings without sending the request
|
|
24
|
+
*/
|
|
25
|
+
getAlertSettingsRequestOpts(): Promise<runtime.RequestOpts>;
|
|
26
|
+
/**
|
|
27
|
+
* Returns the low-balance threshold and the four org-level alert email toggles. An organization that has never saved settings gets the defaults with `updated_at: null`. Requires the `billing:read` scope.
|
|
28
|
+
* Get the organization\'s alert settings
|
|
29
|
+
*/
|
|
30
|
+
getAlertSettingsRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<AlertSettings>>;
|
|
31
|
+
/**
|
|
32
|
+
* Returns the low-balance threshold and the four org-level alert email toggles. An organization that has never saved settings gets the defaults with `updated_at: null`. Requires the `billing:read` scope.
|
|
33
|
+
* Get the organization\'s alert settings
|
|
34
|
+
*/
|
|
35
|
+
getAlertSettings(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<AlertSettings>;
|
|
36
|
+
/**
|
|
37
|
+
* Creates request options for putAlertSettings without sending the request
|
|
38
|
+
*/
|
|
39
|
+
putAlertSettingsRequestOpts(requestParameters: PutAlertSettingsRequest): Promise<runtime.RequestOpts>;
|
|
40
|
+
/**
|
|
41
|
+
* Replaces every setting at once: send `balance_threshold_cents` and all four `email` toggles (a missing field is 422 `validation_failed` naming the `field`). Requires the `billing:write` scope AND an org admin\'s key or a `full_access` key (403 `forbidden` otherwise). The toggles only control the org-level emails; a member always receives their own spend-limit emails. Webhook delivery of the same events is configured on the webhook endpoint, not here.
|
|
42
|
+
* Replace the organization\'s alert settings
|
|
43
|
+
*/
|
|
44
|
+
putAlertSettingsRaw(requestParameters: PutAlertSettingsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<AlertSettings>>;
|
|
45
|
+
/**
|
|
46
|
+
* Replaces every setting at once: send `balance_threshold_cents` and all four `email` toggles (a missing field is 422 `validation_failed` naming the `field`). Requires the `billing:write` scope AND an org admin\'s key or a `full_access` key (403 `forbidden` otherwise). The toggles only control the org-level emails; a member always receives their own spend-limit emails. Webhook delivery of the same events is configured on the webhook endpoint, not here.
|
|
47
|
+
* Replace the organization\'s alert settings
|
|
48
|
+
*/
|
|
49
|
+
putAlertSettings(requestParameters: PutAlertSettingsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<AlertSettings>;
|
|
50
|
+
}
|
|
@@ -0,0 +1,127 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* deeprelay Public Developer API
|
|
6
|
+
* 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.
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 1.0.0
|
|
9
|
+
* Contact: support@deeprelay.ai
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
16
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
17
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
18
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
19
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
20
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
21
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
22
|
+
});
|
|
23
|
+
};
|
|
24
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
25
|
+
exports.AlertsApi = void 0;
|
|
26
|
+
const runtime = require("../runtime");
|
|
27
|
+
const AlertSettings_1 = require("../models/AlertSettings");
|
|
28
|
+
const AlertSettingsUpdate_1 = require("../models/AlertSettingsUpdate");
|
|
29
|
+
/**
|
|
30
|
+
*
|
|
31
|
+
*/
|
|
32
|
+
class AlertsApi extends runtime.BaseAPI {
|
|
33
|
+
/**
|
|
34
|
+
* Creates request options for getAlertSettings without sending the request
|
|
35
|
+
*/
|
|
36
|
+
getAlertSettingsRequestOpts() {
|
|
37
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
38
|
+
const queryParameters = {};
|
|
39
|
+
const headerParameters = {};
|
|
40
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
41
|
+
const token = this.configuration.accessToken;
|
|
42
|
+
const tokenString = yield token("bearerAuth", []);
|
|
43
|
+
if (tokenString) {
|
|
44
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
let urlPath = `/alerts/settings`;
|
|
48
|
+
return {
|
|
49
|
+
path: urlPath,
|
|
50
|
+
method: 'GET',
|
|
51
|
+
headers: headerParameters,
|
|
52
|
+
query: queryParameters,
|
|
53
|
+
};
|
|
54
|
+
});
|
|
55
|
+
}
|
|
56
|
+
/**
|
|
57
|
+
* Returns the low-balance threshold and the four org-level alert email toggles. An organization that has never saved settings gets the defaults with `updated_at: null`. Requires the `billing:read` scope.
|
|
58
|
+
* Get the organization\'s alert settings
|
|
59
|
+
*/
|
|
60
|
+
getAlertSettingsRaw(initOverrides) {
|
|
61
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
62
|
+
const requestOptions = yield this.getAlertSettingsRequestOpts();
|
|
63
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
64
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, AlertSettings_1.AlertSettingsFromJSON)(jsonValue));
|
|
65
|
+
});
|
|
66
|
+
}
|
|
67
|
+
/**
|
|
68
|
+
* Returns the low-balance threshold and the four org-level alert email toggles. An organization that has never saved settings gets the defaults with `updated_at: null`. Requires the `billing:read` scope.
|
|
69
|
+
* Get the organization\'s alert settings
|
|
70
|
+
*/
|
|
71
|
+
getAlertSettings(initOverrides) {
|
|
72
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
73
|
+
const response = yield this.getAlertSettingsRaw(initOverrides);
|
|
74
|
+
return yield response.value();
|
|
75
|
+
});
|
|
76
|
+
}
|
|
77
|
+
/**
|
|
78
|
+
* Creates request options for putAlertSettings without sending the request
|
|
79
|
+
*/
|
|
80
|
+
putAlertSettingsRequestOpts(requestParameters) {
|
|
81
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
82
|
+
if (requestParameters['alertSettingsUpdate'] == null) {
|
|
83
|
+
throw new runtime.RequiredError('alertSettingsUpdate', 'Required parameter "alertSettingsUpdate" was null or undefined when calling putAlertSettings().');
|
|
84
|
+
}
|
|
85
|
+
const queryParameters = {};
|
|
86
|
+
const headerParameters = {};
|
|
87
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
88
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
89
|
+
const token = this.configuration.accessToken;
|
|
90
|
+
const tokenString = yield token("bearerAuth", []);
|
|
91
|
+
if (tokenString) {
|
|
92
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
let urlPath = `/alerts/settings`;
|
|
96
|
+
return {
|
|
97
|
+
path: urlPath,
|
|
98
|
+
method: 'PUT',
|
|
99
|
+
headers: headerParameters,
|
|
100
|
+
query: queryParameters,
|
|
101
|
+
body: (0, AlertSettingsUpdate_1.AlertSettingsUpdateToJSON)(requestParameters['alertSettingsUpdate']),
|
|
102
|
+
};
|
|
103
|
+
});
|
|
104
|
+
}
|
|
105
|
+
/**
|
|
106
|
+
* Replaces every setting at once: send `balance_threshold_cents` and all four `email` toggles (a missing field is 422 `validation_failed` naming the `field`). Requires the `billing:write` scope AND an org admin\'s key or a `full_access` key (403 `forbidden` otherwise). The toggles only control the org-level emails; a member always receives their own spend-limit emails. Webhook delivery of the same events is configured on the webhook endpoint, not here.
|
|
107
|
+
* Replace the organization\'s alert settings
|
|
108
|
+
*/
|
|
109
|
+
putAlertSettingsRaw(requestParameters, initOverrides) {
|
|
110
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
111
|
+
const requestOptions = yield this.putAlertSettingsRequestOpts(requestParameters);
|
|
112
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
113
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, AlertSettings_1.AlertSettingsFromJSON)(jsonValue));
|
|
114
|
+
});
|
|
115
|
+
}
|
|
116
|
+
/**
|
|
117
|
+
* Replaces every setting at once: send `balance_threshold_cents` and all four `email` toggles (a missing field is 422 `validation_failed` naming the `field`). Requires the `billing:write` scope AND an org admin\'s key or a `full_access` key (403 `forbidden` otherwise). The toggles only control the org-level emails; a member always receives their own spend-limit emails. Webhook delivery of the same events is configured on the webhook endpoint, not here.
|
|
118
|
+
* Replace the organization\'s alert settings
|
|
119
|
+
*/
|
|
120
|
+
putAlertSettings(requestParameters, initOverrides) {
|
|
121
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
122
|
+
const response = yield this.putAlertSettingsRaw(requestParameters, initOverrides);
|
|
123
|
+
return yield response.value();
|
|
124
|
+
});
|
|
125
|
+
}
|
|
126
|
+
}
|
|
127
|
+
exports.AlertsApi = AlertsApi;
|
|
@@ -0,0 +1,107 @@
|
|
|
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
|
+
import * as runtime from '../runtime';
|
|
13
|
+
import { type ApiKey } from '../models/ApiKey';
|
|
14
|
+
import { type ApiKeyCreate } from '../models/ApiKeyCreate';
|
|
15
|
+
import { type ApiKeyCreated } from '../models/ApiKeyCreated';
|
|
16
|
+
import { type ApiKeyList } from '../models/ApiKeyList';
|
|
17
|
+
import { type ApiKeyUpdate } from '../models/ApiKeyUpdate';
|
|
18
|
+
export interface CreateApiKeyRequest {
|
|
19
|
+
apiKeyCreate: ApiKeyCreate;
|
|
20
|
+
}
|
|
21
|
+
export interface GetApiKeyRequest {
|
|
22
|
+
id: string;
|
|
23
|
+
}
|
|
24
|
+
export interface RevokeApiKeyRequest {
|
|
25
|
+
id: string;
|
|
26
|
+
idempotencyKey?: string;
|
|
27
|
+
}
|
|
28
|
+
export interface UpdateApiKeyRequest {
|
|
29
|
+
id: string;
|
|
30
|
+
apiKeyUpdate: ApiKeyUpdate;
|
|
31
|
+
idempotencyKey?: string;
|
|
32
|
+
}
|
|
33
|
+
/**
|
|
34
|
+
*
|
|
35
|
+
*/
|
|
36
|
+
export declare class ApiKeysApi extends runtime.BaseAPI {
|
|
37
|
+
/**
|
|
38
|
+
* Creates request options for createApiKey without sending the request
|
|
39
|
+
*/
|
|
40
|
+
createApiKeyRequestOpts(requestParameters: CreateApiKeyRequest): Promise<runtime.RequestOpts>;
|
|
41
|
+
/**
|
|
42
|
+
* Mints a key. The response is the only place the secret (`key`) appears; store it then, because it cannot be read again. Requires the `keys:manage` capability: a `full_access` key, or a key whose scopes grant `{\"keys\": \"write\"}`. Any other key gets 403 `keys_manage_required`. A key can never mint a key stronger than itself: scopes it does not hold answer 403 `scope_exceeds_caller`, and a minting key that has a budget, a model allowlist, a rate limit or an expiry passes each down as an upper bound (422 `validation_failed` naming the `field`). Only an org admin can mint a `full_access` key.
|
|
43
|
+
* Create an API key
|
|
44
|
+
*/
|
|
45
|
+
createApiKeyRaw(requestParameters: CreateApiKeyRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ApiKeyCreated>>;
|
|
46
|
+
/**
|
|
47
|
+
* Mints a key. The response is the only place the secret (`key`) appears; store it then, because it cannot be read again. Requires the `keys:manage` capability: a `full_access` key, or a key whose scopes grant `{\"keys\": \"write\"}`. Any other key gets 403 `keys_manage_required`. A key can never mint a key stronger than itself: scopes it does not hold answer 403 `scope_exceeds_caller`, and a minting key that has a budget, a model allowlist, a rate limit or an expiry passes each down as an upper bound (422 `validation_failed` naming the `field`). Only an org admin can mint a `full_access` key.
|
|
48
|
+
* Create an API key
|
|
49
|
+
*/
|
|
50
|
+
createApiKey(requestParameters: CreateApiKeyRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ApiKeyCreated>;
|
|
51
|
+
/**
|
|
52
|
+
* Creates request options for getApiKey without sending the request
|
|
53
|
+
*/
|
|
54
|
+
getApiKeyRequestOpts(requestParameters: GetApiKeyRequest): Promise<runtime.RequestOpts>;
|
|
55
|
+
/**
|
|
56
|
+
* Returns one key. A key the caller cannot see answers 404. Requires the `keys:read` scope.
|
|
57
|
+
* Get an API key
|
|
58
|
+
*/
|
|
59
|
+
getApiKeyRaw(requestParameters: GetApiKeyRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ApiKey>>;
|
|
60
|
+
/**
|
|
61
|
+
* Returns one key. A key the caller cannot see answers 404. Requires the `keys:read` scope.
|
|
62
|
+
* Get an API key
|
|
63
|
+
*/
|
|
64
|
+
getApiKey(requestParameters: GetApiKeyRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ApiKey>;
|
|
65
|
+
/**
|
|
66
|
+
* Creates request options for listApiKeys without sending the request
|
|
67
|
+
*/
|
|
68
|
+
listApiKeysRequestOpts(): Promise<runtime.RequestOpts>;
|
|
69
|
+
/**
|
|
70
|
+
* Lists the organization\'s API keys with their limits and current budget use. An org admin\'s key and a `full_access` key see every key in the organization; any other key sees only the keys its owner created. The secret is never returned here. Requires the `keys:read` scope.
|
|
71
|
+
* List API keys
|
|
72
|
+
*/
|
|
73
|
+
listApiKeysRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ApiKeyList>>;
|
|
74
|
+
/**
|
|
75
|
+
* Lists the organization\'s API keys with their limits and current budget use. An org admin\'s key and a `full_access` key see every key in the organization; any other key sees only the keys its owner created. The secret is never returned here. Requires the `keys:read` scope.
|
|
76
|
+
* List API keys
|
|
77
|
+
*/
|
|
78
|
+
listApiKeys(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ApiKeyList>;
|
|
79
|
+
/**
|
|
80
|
+
* Creates request options for revokeApiKey without sending the request
|
|
81
|
+
*/
|
|
82
|
+
revokeApiKeyRequestOpts(requestParameters: RevokeApiKeyRequest): Promise<runtime.RequestOpts>;
|
|
83
|
+
/**
|
|
84
|
+
* Revokes the key immediately; it cannot be restored. Requires the `keys:manage` capability (403 `keys_manage_required` otherwise); a member can only revoke keys they created.
|
|
85
|
+
* Revoke an API key
|
|
86
|
+
*/
|
|
87
|
+
revokeApiKeyRaw(requestParameters: RevokeApiKeyRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
|
|
88
|
+
/**
|
|
89
|
+
* Revokes the key immediately; it cannot be restored. Requires the `keys:manage` capability (403 `keys_manage_required` otherwise); a member can only revoke keys they created.
|
|
90
|
+
* Revoke an API key
|
|
91
|
+
*/
|
|
92
|
+
revokeApiKey(requestParameters: RevokeApiKeyRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
93
|
+
/**
|
|
94
|
+
* Creates request options for updateApiKey without sending the request
|
|
95
|
+
*/
|
|
96
|
+
updateApiKeyRequestOpts(requestParameters: UpdateApiKeyRequest): Promise<runtime.RequestOpts>;
|
|
97
|
+
/**
|
|
98
|
+
* Changes a key\'s name, budget, model allowlist, rate limit or expiry. An absent field is left unchanged; an explicit `null` clears `budget_cents`, `allowed_models` or `expires_at`. `scopes` cannot be changed after minting, and unknown fields are refused (422), so a typo never looks like a successful change. Requires the `keys:manage` capability (403 `keys_manage_required` otherwise); a member can only change keys they created.
|
|
99
|
+
* Update an API key\'s name or limits
|
|
100
|
+
*/
|
|
101
|
+
updateApiKeyRaw(requestParameters: UpdateApiKeyRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ApiKey>>;
|
|
102
|
+
/**
|
|
103
|
+
* Changes a key\'s name, budget, model allowlist, rate limit or expiry. An absent field is left unchanged; an explicit `null` clears `budget_cents`, `allowed_models` or `expires_at`. `scopes` cannot be changed after minting, and unknown fields are refused (422), so a typo never looks like a successful change. Requires the `keys:manage` capability (403 `keys_manage_required` otherwise); a member can only change keys they created.
|
|
104
|
+
* Update an API key\'s name or limits
|
|
105
|
+
*/
|
|
106
|
+
updateApiKey(requestParameters: UpdateApiKeyRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ApiKey>;
|
|
107
|
+
}
|