@deeprelay/sdk 0.0.1 → 0.1.1
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 +126 -0
- package/.openapi-generator/VERSION +1 -0
- package/.openapi-generator-ignore +24 -0
- package/LICENSE +204 -0
- package/README.md +197 -4
- package/dist/apis/BillingApi.d.ts +169 -0
- package/dist/apis/BillingApi.js +457 -0
- package/dist/apis/InferenceApi.d.ts +217 -0
- package/dist/apis/InferenceApi.js +582 -0
- package/dist/apis/MetaApi.d.ts +44 -0
- package/dist/apis/MetaApi.js +105 -0
- package/dist/apis/OperationsApi.d.ts +33 -0
- package/dist/apis/OperationsApi.js +79 -0
- package/dist/apis/UsageApi.d.ts +56 -0
- package/dist/apis/UsageApi.js +109 -0
- package/dist/apis/WebhooksApi.d.ts +82 -0
- package/dist/apis/WebhooksApi.js +224 -0
- package/dist/apis/index.d.ts +6 -0
- package/dist/apis/index.js +24 -0
- package/dist/esm/apis/BillingApi.d.ts +169 -0
- package/dist/esm/apis/BillingApi.js +453 -0
- package/dist/esm/apis/InferenceApi.d.ts +217 -0
- package/dist/esm/apis/InferenceApi.js +578 -0
- package/dist/esm/apis/MetaApi.d.ts +44 -0
- package/dist/esm/apis/MetaApi.js +101 -0
- package/dist/esm/apis/OperationsApi.d.ts +33 -0
- package/dist/esm/apis/OperationsApi.js +75 -0
- package/dist/esm/apis/UsageApi.d.ts +56 -0
- package/dist/esm/apis/UsageApi.js +105 -0
- package/dist/esm/apis/WebhooksApi.d.ts +82 -0
- package/dist/esm/apis/WebhooksApi.js +220 -0
- package/dist/esm/apis/index.d.ts +6 -0
- package/dist/esm/apis/index.js +8 -0
- package/dist/esm/index.d.ts +3 -0
- package/dist/esm/index.js +5 -0
- package/dist/esm/models/Balance.d.ts +65 -0
- package/dist/esm/models/Balance.js +63 -0
- package/dist/esm/models/ChatChoice.d.ts +55 -0
- package/dist/esm/models/ChatChoice.js +55 -0
- package/dist/esm/models/ChatCompletionRequest.d.ts +64 -0
- package/dist/esm/models/ChatCompletionRequest.js +57 -0
- package/dist/esm/models/ChatCompletionResponse.d.ts +71 -0
- package/dist/esm/models/ChatCompletionResponse.js +73 -0
- package/dist/esm/models/ChatMessage.d.ts +47 -0
- package/dist/esm/models/ChatMessage.js +55 -0
- package/dist/esm/models/CreateCryptoDepositRequest.d.ts +64 -0
- package/dist/esm/models/CreateCryptoDepositRequest.js +68 -0
- package/dist/esm/models/CreateWebhookEndpointRequest.d.ts +50 -0
- package/dist/esm/models/CreateWebhookEndpointRequest.js +58 -0
- package/dist/esm/models/CryptoDeposit.d.ts +114 -0
- package/dist/esm/models/CryptoDeposit.js +90 -0
- package/dist/esm/models/Embedding.d.ts +51 -0
- package/dist/esm/models/Embedding.js +59 -0
- package/dist/esm/models/EmbeddingsRequest.d.ts +64 -0
- package/dist/esm/models/EmbeddingsRequest.js +60 -0
- package/dist/esm/models/EmbeddingsRequestInput.d.ts +21 -0
- package/dist/esm/models/EmbeddingsRequestInput.js +47 -0
- package/dist/esm/models/EmbeddingsResponse.d.ts +59 -0
- package/dist/esm/models/EmbeddingsResponse.js +65 -0
- package/dist/esm/models/EmbeddingsUsage.d.ts +38 -0
- package/dist/esm/models/EmbeddingsUsage.js +47 -0
- package/dist/esm/models/GetHealth200Response.d.ts +39 -0
- package/dist/esm/models/GetHealth200Response.js +47 -0
- package/dist/esm/models/ImagesGenerationsRequest.d.ts +63 -0
- package/dist/esm/models/ImagesGenerationsRequest.js +59 -0
- package/dist/esm/models/ImagesResponse.d.ts +46 -0
- package/dist/esm/models/ImagesResponse.js +53 -0
- package/dist/esm/models/ImagesResponseDataInner.d.ts +32 -0
- package/dist/esm/models/ImagesResponseDataInner.js +43 -0
- package/dist/esm/models/ImagesResponseUsage.d.ts +32 -0
- package/dist/esm/models/ImagesResponseUsage.js +43 -0
- package/dist/esm/models/InferencePreflight.d.ts +92 -0
- package/dist/esm/models/InferencePreflight.js +86 -0
- package/dist/esm/models/ListDeposits200Response.d.ts +39 -0
- package/dist/esm/models/ListDeposits200Response.js +48 -0
- package/dist/esm/models/Model.d.ts +152 -0
- package/dist/esm/models/Model.js +110 -0
- package/dist/esm/models/ModelList.d.ts +46 -0
- package/dist/esm/models/ModelList.js +56 -0
- package/dist/esm/models/ModelParametersInner.d.ts +72 -0
- package/dist/esm/models/ModelParametersInner.js +64 -0
- package/dist/esm/models/ModelPricing.d.ts +126 -0
- package/dist/esm/models/ModelPricing.js +78 -0
- package/dist/esm/models/ModelRate.d.ts +62 -0
- package/dist/esm/models/ModelRate.js +51 -0
- package/dist/esm/models/OpenAIErrorEnvelope.d.ts +33 -0
- package/dist/esm/models/OpenAIErrorEnvelope.js +44 -0
- package/dist/esm/models/OpenAIErrorEnvelopeError.d.ts +50 -0
- package/dist/esm/models/OpenAIErrorEnvelopeError.js +53 -0
- package/dist/esm/models/Operation.d.ts +107 -0
- package/dist/esm/models/Operation.js +86 -0
- package/dist/esm/models/OperationError.d.ts +38 -0
- package/dist/esm/models/OperationError.js +43 -0
- package/dist/esm/models/OperationResult.d.ts +44 -0
- package/dist/esm/models/OperationResult.js +45 -0
- package/dist/esm/models/PeakWindow.d.ts +38 -0
- package/dist/esm/models/PeakWindow.js +47 -0
- package/dist/esm/models/Problem.d.ts +87 -0
- package/dist/esm/models/Problem.js +87 -0
- package/dist/esm/models/SpendingLimit.d.ts +101 -0
- package/dist/esm/models/SpendingLimit.js +85 -0
- package/dist/esm/models/StreamOptions.d.ts +32 -0
- package/dist/esm/models/StreamOptions.js +41 -0
- package/dist/esm/models/Subscription.d.ts +78 -0
- package/dist/esm/models/Subscription.js +68 -0
- package/dist/esm/models/SubscriptionCheckoutRequest.d.ts +45 -0
- package/dist/esm/models/SubscriptionCheckoutRequest.js +45 -0
- package/dist/esm/models/SubscriptionCheckoutSession.d.ts +45 -0
- package/dist/esm/models/SubscriptionCheckoutSession.js +52 -0
- package/dist/esm/models/SubscriptionPlan.d.ts +46 -0
- package/dist/esm/models/SubscriptionPlan.js +50 -0
- package/dist/esm/models/SubscriptionPortalRequest.d.ts +32 -0
- package/dist/esm/models/SubscriptionPortalRequest.js +41 -0
- package/dist/esm/models/SubscriptionPortalSession.d.ts +32 -0
- package/dist/esm/models/SubscriptionPortalSession.js +43 -0
- package/dist/esm/models/SubscriptionPrice.d.ts +53 -0
- package/dist/esm/models/SubscriptionPrice.js +55 -0
- package/dist/esm/models/SubscriptionQuota.d.ts +60 -0
- package/dist/esm/models/SubscriptionQuota.js +59 -0
- package/dist/esm/models/SubscriptionUsage.d.ts +65 -0
- package/dist/esm/models/SubscriptionUsage.js +63 -0
- package/dist/esm/models/UpdateSpendingLimitRequest.d.ts +59 -0
- package/dist/esm/models/UpdateSpendingLimitRequest.js +57 -0
- package/dist/esm/models/Usage.d.ts +44 -0
- package/dist/esm/models/Usage.js +51 -0
- package/dist/esm/models/UsageBucket.d.ts +56 -0
- package/dist/esm/models/UsageBucket.js +55 -0
- package/dist/esm/models/UsagePage.d.ts +39 -0
- package/dist/esm/models/UsagePage.js +48 -0
- package/dist/esm/models/VideoCreateRequest.d.ts +50 -0
- package/dist/esm/models/VideoCreateRequest.js +51 -0
- package/dist/esm/models/VideoJob.d.ts +117 -0
- package/dist/esm/models/VideoJob.js +94 -0
- package/dist/esm/models/VideoList.d.ts +52 -0
- package/dist/esm/models/VideoList.js +60 -0
- package/dist/esm/models/WebhookEndpoint.d.ts +74 -0
- package/dist/esm/models/WebhookEndpoint.js +72 -0
- package/dist/esm/models/WebhookEndpointPage.d.ts +39 -0
- package/dist/esm/models/WebhookEndpointPage.js +48 -0
- package/dist/esm/models/index.d.ts +52 -0
- package/dist/esm/models/index.js +54 -0
- package/dist/esm/runtime.d.ts +185 -0
- package/dist/esm/runtime.js +354 -0
- package/dist/index.d.ts +3 -0
- package/dist/index.js +21 -0
- package/dist/models/Balance.d.ts +65 -0
- package/dist/models/Balance.js +70 -0
- package/dist/models/ChatChoice.d.ts +55 -0
- package/dist/models/ChatChoice.js +63 -0
- package/dist/models/ChatCompletionRequest.d.ts +64 -0
- package/dist/models/ChatCompletionRequest.js +64 -0
- package/dist/models/ChatCompletionResponse.d.ts +71 -0
- package/dist/models/ChatCompletionResponse.js +81 -0
- package/dist/models/ChatMessage.d.ts +47 -0
- package/dist/models/ChatMessage.js +63 -0
- package/dist/models/CreateCryptoDepositRequest.d.ts +64 -0
- package/dist/models/CreateCryptoDepositRequest.js +76 -0
- package/dist/models/CreateWebhookEndpointRequest.d.ts +50 -0
- package/dist/models/CreateWebhookEndpointRequest.js +66 -0
- package/dist/models/CryptoDeposit.d.ts +114 -0
- package/dist/models/CryptoDeposit.js +98 -0
- package/dist/models/Embedding.d.ts +51 -0
- package/dist/models/Embedding.js +67 -0
- package/dist/models/EmbeddingsRequest.d.ts +64 -0
- package/dist/models/EmbeddingsRequest.js +68 -0
- package/dist/models/EmbeddingsRequestInput.d.ts +21 -0
- package/dist/models/EmbeddingsRequestInput.js +53 -0
- package/dist/models/EmbeddingsResponse.d.ts +59 -0
- package/dist/models/EmbeddingsResponse.js +73 -0
- package/dist/models/EmbeddingsUsage.d.ts +38 -0
- package/dist/models/EmbeddingsUsage.js +54 -0
- package/dist/models/GetHealth200Response.d.ts +39 -0
- package/dist/models/GetHealth200Response.js +55 -0
- package/dist/models/ImagesGenerationsRequest.d.ts +63 -0
- package/dist/models/ImagesGenerationsRequest.js +67 -0
- package/dist/models/ImagesResponse.d.ts +46 -0
- package/dist/models/ImagesResponse.js +60 -0
- package/dist/models/ImagesResponseDataInner.d.ts +32 -0
- package/dist/models/ImagesResponseDataInner.js +50 -0
- package/dist/models/ImagesResponseUsage.d.ts +32 -0
- package/dist/models/ImagesResponseUsage.js +50 -0
- package/dist/models/InferencePreflight.d.ts +92 -0
- package/dist/models/InferencePreflight.js +94 -0
- package/dist/models/ListDeposits200Response.d.ts +39 -0
- package/dist/models/ListDeposits200Response.js +55 -0
- package/dist/models/Model.d.ts +152 -0
- package/dist/models/Model.js +118 -0
- package/dist/models/ModelList.d.ts +46 -0
- package/dist/models/ModelList.js +64 -0
- package/dist/models/ModelParametersInner.d.ts +72 -0
- package/dist/models/ModelParametersInner.js +72 -0
- package/dist/models/ModelPricing.d.ts +126 -0
- package/dist/models/ModelPricing.js +86 -0
- package/dist/models/ModelRate.d.ts +62 -0
- package/dist/models/ModelRate.js +58 -0
- package/dist/models/OpenAIErrorEnvelope.d.ts +33 -0
- package/dist/models/OpenAIErrorEnvelope.js +51 -0
- package/dist/models/OpenAIErrorEnvelopeError.d.ts +50 -0
- package/dist/models/OpenAIErrorEnvelopeError.js +60 -0
- package/dist/models/Operation.d.ts +107 -0
- package/dist/models/Operation.js +94 -0
- package/dist/models/OperationError.d.ts +38 -0
- package/dist/models/OperationError.js +50 -0
- package/dist/models/OperationResult.d.ts +44 -0
- package/dist/models/OperationResult.js +52 -0
- package/dist/models/PeakWindow.d.ts +38 -0
- package/dist/models/PeakWindow.js +54 -0
- package/dist/models/Problem.d.ts +87 -0
- package/dist/models/Problem.js +95 -0
- package/dist/models/SpendingLimit.d.ts +101 -0
- package/dist/models/SpendingLimit.js +93 -0
- package/dist/models/StreamOptions.d.ts +32 -0
- package/dist/models/StreamOptions.js +48 -0
- package/dist/models/Subscription.d.ts +78 -0
- package/dist/models/Subscription.js +75 -0
- package/dist/models/SubscriptionCheckoutRequest.d.ts +45 -0
- package/dist/models/SubscriptionCheckoutRequest.js +52 -0
- package/dist/models/SubscriptionCheckoutSession.d.ts +45 -0
- package/dist/models/SubscriptionCheckoutSession.js +59 -0
- package/dist/models/SubscriptionPlan.d.ts +46 -0
- package/dist/models/SubscriptionPlan.js +57 -0
- package/dist/models/SubscriptionPortalRequest.d.ts +32 -0
- package/dist/models/SubscriptionPortalRequest.js +48 -0
- package/dist/models/SubscriptionPortalSession.d.ts +32 -0
- package/dist/models/SubscriptionPortalSession.js +50 -0
- package/dist/models/SubscriptionPrice.d.ts +53 -0
- package/dist/models/SubscriptionPrice.js +62 -0
- package/dist/models/SubscriptionQuota.d.ts +60 -0
- package/dist/models/SubscriptionQuota.js +66 -0
- package/dist/models/SubscriptionUsage.d.ts +65 -0
- package/dist/models/SubscriptionUsage.js +70 -0
- package/dist/models/UpdateSpendingLimitRequest.d.ts +59 -0
- package/dist/models/UpdateSpendingLimitRequest.js +65 -0
- package/dist/models/Usage.d.ts +44 -0
- package/dist/models/Usage.js +58 -0
- package/dist/models/UsageBucket.d.ts +56 -0
- package/dist/models/UsageBucket.js +62 -0
- package/dist/models/UsagePage.d.ts +39 -0
- package/dist/models/UsagePage.js +55 -0
- package/dist/models/VideoCreateRequest.d.ts +50 -0
- package/dist/models/VideoCreateRequest.js +58 -0
- package/dist/models/VideoJob.d.ts +117 -0
- package/dist/models/VideoJob.js +102 -0
- package/dist/models/VideoList.d.ts +52 -0
- package/dist/models/VideoList.js +68 -0
- package/dist/models/WebhookEndpoint.d.ts +74 -0
- package/dist/models/WebhookEndpoint.js +80 -0
- package/dist/models/WebhookEndpointPage.d.ts +39 -0
- package/dist/models/WebhookEndpointPage.js +55 -0
- package/dist/models/index.d.ts +52 -0
- package/dist/models/index.js +70 -0
- package/dist/runtime.d.ts +185 -0
- package/dist/runtime.js +371 -0
- package/docs/Balance.md +45 -0
- package/docs/BillingApi.md +657 -0
- package/docs/ChatChoice.md +38 -0
- package/docs/ChatCompletionRequest.md +44 -0
- package/docs/ChatCompletionResponse.md +44 -0
- package/docs/ChatMessage.md +36 -0
- package/docs/CreateCryptoDepositRequest.md +38 -0
- package/docs/CreateWebhookEndpointRequest.md +36 -0
- package/docs/CryptoDeposit.md +55 -0
- package/docs/Embedding.md +38 -0
- package/docs/EmbeddingsRequest.md +42 -0
- package/docs/EmbeddingsRequestInput.md +33 -0
- package/docs/EmbeddingsResponse.md +40 -0
- package/docs/EmbeddingsUsage.md +37 -0
- package/docs/GetHealth200Response.md +34 -0
- package/docs/ImagesGenerationsRequest.md +42 -0
- package/docs/ImagesResponse.md +38 -0
- package/docs/ImagesResponseDataInner.md +34 -0
- package/docs/ImagesResponseUsage.md +34 -0
- package/docs/InferenceApi.md +861 -0
- package/docs/InferencePreflight.md +47 -0
- package/docs/ListDeposits200Response.md +36 -0
- package/docs/MetaApi.md +126 -0
- package/docs/Model.md +64 -0
- package/docs/ModelList.md +36 -0
- package/docs/ModelParametersInner.md +44 -0
- package/docs/ModelPricing.md +62 -0
- package/docs/ModelRate.md +45 -0
- package/docs/OpenAIErrorEnvelope.md +34 -0
- package/docs/OpenAIErrorEnvelopeError.md +40 -0
- package/docs/Operation.md +52 -0
- package/docs/OperationError.md +36 -0
- package/docs/OperationResult.md +39 -0
- package/docs/OperationsApi.md +80 -0
- package/docs/PeakWindow.md +37 -0
- package/docs/Problem.md +44 -0
- package/docs/SpendingLimit.md +54 -0
- package/docs/StreamOptions.md +34 -0
- package/docs/Subscription.md +49 -0
- package/docs/SubscriptionCheckoutRequest.md +39 -0
- package/docs/SubscriptionCheckoutSession.md +38 -0
- package/docs/SubscriptionPlan.md +39 -0
- package/docs/SubscriptionPortalRequest.md +35 -0
- package/docs/SubscriptionPortalSession.md +34 -0
- package/docs/SubscriptionPrice.md +41 -0
- package/docs/SubscriptionQuota.md +43 -0
- package/docs/SubscriptionUsage.md +45 -0
- package/docs/UpdateSpendingLimitRequest.md +40 -0
- package/docs/Usage.md +38 -0
- package/docs/UsageApi.md +95 -0
- package/docs/UsageBucket.md +42 -0
- package/docs/UsagePage.md +36 -0
- package/docs/VideoCreateRequest.md +40 -0
- package/docs/VideoJob.md +56 -0
- package/docs/VideoList.md +38 -0
- package/docs/WebhookEndpoint.md +44 -0
- package/docs/WebhookEndpointPage.md +36 -0
- package/docs/WebhooksApi.md +302 -0
- package/package.json +16 -7
- package/src/apis/BillingApi.ts +559 -0
- package/src/apis/InferenceApi.ts +753 -0
- package/src/apis/MetaApi.ts +103 -0
- package/src/apis/OperationsApi.ts +89 -0
- package/src/apis/UsageApi.ts +129 -0
- package/src/apis/WebhooksApi.ts +277 -0
- package/src/apis/index.ts +8 -0
- package/src/index.ts +5 -0
- package/src/models/Balance.ts +114 -0
- package/src/models/ChatChoice.ts +102 -0
- package/src/models/ChatCompletionRequest.ts +122 -0
- package/src/models/ChatCompletionResponse.ts +138 -0
- package/src/models/ChatMessage.ts +87 -0
- package/src/models/CreateCryptoDepositRequest.ts +108 -0
- package/src/models/CreateWebhookEndpointRequest.ts +90 -0
- package/src/models/CryptoDeposit.ts +177 -0
- package/src/models/Embedding.ts +96 -0
- package/src/models/EmbeddingsRequest.ts +117 -0
- package/src/models/EmbeddingsRequestInput.ts +59 -0
- package/src/models/EmbeddingsResponse.ts +120 -0
- package/src/models/EmbeddingsUsage.ts +75 -0
- package/src/models/GetHealth200Response.ts +75 -0
- package/src/models/ImagesGenerationsRequest.ts +109 -0
- package/src/models/ImagesResponse.ts +99 -0
- package/src/models/ImagesResponseDataInner.ts +66 -0
- package/src/models/ImagesResponseUsage.ts +66 -0
- package/src/models/InferencePreflight.ts +147 -0
- package/src/models/ListDeposits200Response.ts +83 -0
- package/src/models/Model.ts +241 -0
- package/src/models/ModelList.ts +95 -0
- package/src/models/ModelParametersInner.ts +120 -0
- package/src/models/ModelPricing.ts +203 -0
- package/src/models/ModelRate.ts +105 -0
- package/src/models/OpenAIErrorEnvelope.ts +74 -0
- package/src/models/OpenAIErrorEnvelopeError.ts +92 -0
- package/src/models/Operation.ts +179 -0
- package/src/models/OperationError.ts +73 -0
- package/src/models/OperationResult.ts +81 -0
- package/src/models/PeakWindow.ts +75 -0
- package/src/models/Problem.ts +139 -0
- package/src/models/SpendingLimit.ts +165 -0
- package/src/models/StreamOptions.ts +65 -0
- package/src/models/Subscription.ts +149 -0
- package/src/models/SubscriptionCheckoutRequest.ts +82 -0
- package/src/models/SubscriptionCheckoutSession.ts +92 -0
- package/src/models/SubscriptionPlan.ts +92 -0
- package/src/models/SubscriptionPortalRequest.ts +65 -0
- package/src/models/SubscriptionPortalSession.ts +66 -0
- package/src/models/SubscriptionPrice.ts +96 -0
- package/src/models/SubscriptionQuota.ts +106 -0
- package/src/models/SubscriptionUsage.ts +114 -0
- package/src/models/UpdateSpendingLimitRequest.ts +102 -0
- package/src/models/Usage.ts +84 -0
- package/src/models/UsageBucket.ts +100 -0
- package/src/models/UsagePage.ts +83 -0
- package/src/models/VideoCreateRequest.ts +91 -0
- package/src/models/VideoJob.ts +184 -0
- package/src/models/VideoList.ts +104 -0
- package/src/models/WebhookEndpoint.ts +125 -0
- package/src/models/WebhookEndpointPage.ts +83 -0
- package/src/models/index.ts +54 -0
- package/src/runtime.ts +454 -0
- package/tsconfig.esm.json +7 -0
- package/tsconfig.json +16 -0
|
@@ -0,0 +1,46 @@
|
|
|
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.
|
|
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 type { SubscriptionPrice } from './SubscriptionPrice';
|
|
13
|
+
/**
|
|
14
|
+
* What the organization is — or would be — subscribing to. Always present, including for an organization that never subscribed: it is what a point of purchase renders before sending anyone to pay.
|
|
15
|
+
*
|
|
16
|
+
* @export
|
|
17
|
+
* @interface SubscriptionPlan
|
|
18
|
+
*/
|
|
19
|
+
export interface SubscriptionPlan {
|
|
20
|
+
/**
|
|
21
|
+
* Stable identifier for the tier. Send it as `plan_key` on /billing/subscription/checkout to pin the plan you displayed.
|
|
22
|
+
* @type {string}
|
|
23
|
+
* @memberof SubscriptionPlan
|
|
24
|
+
*/
|
|
25
|
+
key: string;
|
|
26
|
+
/**
|
|
27
|
+
* Human-facing plan name.
|
|
28
|
+
* @type {string}
|
|
29
|
+
* @memberof SubscriptionPlan
|
|
30
|
+
*/
|
|
31
|
+
name: string;
|
|
32
|
+
/**
|
|
33
|
+
*
|
|
34
|
+
* @type {SubscriptionPrice}
|
|
35
|
+
* @memberof SubscriptionPlan
|
|
36
|
+
*/
|
|
37
|
+
price?: SubscriptionPrice;
|
|
38
|
+
}
|
|
39
|
+
/**
|
|
40
|
+
* Check if a given object implements the SubscriptionPlan interface.
|
|
41
|
+
*/
|
|
42
|
+
export declare function instanceOfSubscriptionPlan(value: object): value is SubscriptionPlan;
|
|
43
|
+
export declare function SubscriptionPlanFromJSON(json: any): SubscriptionPlan;
|
|
44
|
+
export declare function SubscriptionPlanFromJSONTyped(json: any, ignoreDiscriminator: boolean): SubscriptionPlan;
|
|
45
|
+
export declare function SubscriptionPlanToJSON(json: any): SubscriptionPlan;
|
|
46
|
+
export declare function SubscriptionPlanToJSONTyped(value?: SubscriptionPlan | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,57 @@
|
|
|
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.
|
|
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
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.instanceOfSubscriptionPlan = instanceOfSubscriptionPlan;
|
|
17
|
+
exports.SubscriptionPlanFromJSON = SubscriptionPlanFromJSON;
|
|
18
|
+
exports.SubscriptionPlanFromJSONTyped = SubscriptionPlanFromJSONTyped;
|
|
19
|
+
exports.SubscriptionPlanToJSON = SubscriptionPlanToJSON;
|
|
20
|
+
exports.SubscriptionPlanToJSONTyped = SubscriptionPlanToJSONTyped;
|
|
21
|
+
const SubscriptionPrice_1 = require("./SubscriptionPrice");
|
|
22
|
+
/**
|
|
23
|
+
* Check if a given object implements the SubscriptionPlan interface.
|
|
24
|
+
*/
|
|
25
|
+
function instanceOfSubscriptionPlan(value) {
|
|
26
|
+
if (!('key' in value) || value['key'] === undefined)
|
|
27
|
+
return false;
|
|
28
|
+
if (!('name' in value) || value['name'] === undefined)
|
|
29
|
+
return false;
|
|
30
|
+
return true;
|
|
31
|
+
}
|
|
32
|
+
function SubscriptionPlanFromJSON(json) {
|
|
33
|
+
return SubscriptionPlanFromJSONTyped(json, false);
|
|
34
|
+
}
|
|
35
|
+
function SubscriptionPlanFromJSONTyped(json, ignoreDiscriminator) {
|
|
36
|
+
if (json == null) {
|
|
37
|
+
return json;
|
|
38
|
+
}
|
|
39
|
+
return {
|
|
40
|
+
'key': json['key'],
|
|
41
|
+
'name': json['name'],
|
|
42
|
+
'price': json['price'] == null ? undefined : (0, SubscriptionPrice_1.SubscriptionPriceFromJSON)(json['price']),
|
|
43
|
+
};
|
|
44
|
+
}
|
|
45
|
+
function SubscriptionPlanToJSON(json) {
|
|
46
|
+
return SubscriptionPlanToJSONTyped(json, false);
|
|
47
|
+
}
|
|
48
|
+
function SubscriptionPlanToJSONTyped(value, ignoreDiscriminator = false) {
|
|
49
|
+
if (value == null) {
|
|
50
|
+
return value;
|
|
51
|
+
}
|
|
52
|
+
return {
|
|
53
|
+
'key': value['key'],
|
|
54
|
+
'name': value['name'],
|
|
55
|
+
'price': (0, SubscriptionPrice_1.SubscriptionPriceToJSON)(value['price']),
|
|
56
|
+
};
|
|
57
|
+
}
|
|
@@ -0,0 +1,32 @@
|
|
|
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.
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0.0
|
|
6
|
+
* Contact: support@deeprelay.ai
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
* Optional overrides for a billing-portal mint.
|
|
14
|
+
* @export
|
|
15
|
+
* @interface SubscriptionPortalRequest
|
|
16
|
+
*/
|
|
17
|
+
export interface SubscriptionPortalRequest {
|
|
18
|
+
/**
|
|
19
|
+
* Where the provider returns when the customer leaves the portal. Defaults to the deployment's configured URL.
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof SubscriptionPortalRequest
|
|
22
|
+
*/
|
|
23
|
+
returnUrl?: string;
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* Check if a given object implements the SubscriptionPortalRequest interface.
|
|
27
|
+
*/
|
|
28
|
+
export declare function instanceOfSubscriptionPortalRequest(value: object): value is SubscriptionPortalRequest;
|
|
29
|
+
export declare function SubscriptionPortalRequestFromJSON(json: any): SubscriptionPortalRequest;
|
|
30
|
+
export declare function SubscriptionPortalRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): SubscriptionPortalRequest;
|
|
31
|
+
export declare function SubscriptionPortalRequestToJSON(json: any): SubscriptionPortalRequest;
|
|
32
|
+
export declare function SubscriptionPortalRequestToJSONTyped(value?: SubscriptionPortalRequest | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,48 @@
|
|
|
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.
|
|
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
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.instanceOfSubscriptionPortalRequest = instanceOfSubscriptionPortalRequest;
|
|
17
|
+
exports.SubscriptionPortalRequestFromJSON = SubscriptionPortalRequestFromJSON;
|
|
18
|
+
exports.SubscriptionPortalRequestFromJSONTyped = SubscriptionPortalRequestFromJSONTyped;
|
|
19
|
+
exports.SubscriptionPortalRequestToJSON = SubscriptionPortalRequestToJSON;
|
|
20
|
+
exports.SubscriptionPortalRequestToJSONTyped = SubscriptionPortalRequestToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the SubscriptionPortalRequest interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfSubscriptionPortalRequest(value) {
|
|
25
|
+
return true;
|
|
26
|
+
}
|
|
27
|
+
function SubscriptionPortalRequestFromJSON(json) {
|
|
28
|
+
return SubscriptionPortalRequestFromJSONTyped(json, false);
|
|
29
|
+
}
|
|
30
|
+
function SubscriptionPortalRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
31
|
+
if (json == null) {
|
|
32
|
+
return json;
|
|
33
|
+
}
|
|
34
|
+
return {
|
|
35
|
+
'returnUrl': json['return_url'] == null ? undefined : json['return_url'],
|
|
36
|
+
};
|
|
37
|
+
}
|
|
38
|
+
function SubscriptionPortalRequestToJSON(json) {
|
|
39
|
+
return SubscriptionPortalRequestToJSONTyped(json, false);
|
|
40
|
+
}
|
|
41
|
+
function SubscriptionPortalRequestToJSONTyped(value, ignoreDiscriminator = false) {
|
|
42
|
+
if (value == null) {
|
|
43
|
+
return value;
|
|
44
|
+
}
|
|
45
|
+
return {
|
|
46
|
+
'return_url': value['returnUrl'],
|
|
47
|
+
};
|
|
48
|
+
}
|
|
@@ -0,0 +1,32 @@
|
|
|
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.
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0.0
|
|
6
|
+
* Contact: support@deeprelay.ai
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
*
|
|
14
|
+
* @export
|
|
15
|
+
* @interface SubscriptionPortalSession
|
|
16
|
+
*/
|
|
17
|
+
export interface SubscriptionPortalSession {
|
|
18
|
+
/**
|
|
19
|
+
* The hosted billing portal — cancel, resume, change payment method, download invoices.
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof SubscriptionPortalSession
|
|
22
|
+
*/
|
|
23
|
+
portalUrl: string;
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* Check if a given object implements the SubscriptionPortalSession interface.
|
|
27
|
+
*/
|
|
28
|
+
export declare function instanceOfSubscriptionPortalSession(value: object): value is SubscriptionPortalSession;
|
|
29
|
+
export declare function SubscriptionPortalSessionFromJSON(json: any): SubscriptionPortalSession;
|
|
30
|
+
export declare function SubscriptionPortalSessionFromJSONTyped(json: any, ignoreDiscriminator: boolean): SubscriptionPortalSession;
|
|
31
|
+
export declare function SubscriptionPortalSessionToJSON(json: any): SubscriptionPortalSession;
|
|
32
|
+
export declare function SubscriptionPortalSessionToJSONTyped(value?: SubscriptionPortalSession | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,50 @@
|
|
|
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.
|
|
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
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.instanceOfSubscriptionPortalSession = instanceOfSubscriptionPortalSession;
|
|
17
|
+
exports.SubscriptionPortalSessionFromJSON = SubscriptionPortalSessionFromJSON;
|
|
18
|
+
exports.SubscriptionPortalSessionFromJSONTyped = SubscriptionPortalSessionFromJSONTyped;
|
|
19
|
+
exports.SubscriptionPortalSessionToJSON = SubscriptionPortalSessionToJSON;
|
|
20
|
+
exports.SubscriptionPortalSessionToJSONTyped = SubscriptionPortalSessionToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the SubscriptionPortalSession interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfSubscriptionPortalSession(value) {
|
|
25
|
+
if ((!('portalUrl' in value) && !('portal_url' in value)) || (value['portalUrl'] === undefined && value['portal_url'] === undefined))
|
|
26
|
+
return false;
|
|
27
|
+
return true;
|
|
28
|
+
}
|
|
29
|
+
function SubscriptionPortalSessionFromJSON(json) {
|
|
30
|
+
return SubscriptionPortalSessionFromJSONTyped(json, false);
|
|
31
|
+
}
|
|
32
|
+
function SubscriptionPortalSessionFromJSONTyped(json, ignoreDiscriminator) {
|
|
33
|
+
if (json == null) {
|
|
34
|
+
return json;
|
|
35
|
+
}
|
|
36
|
+
return {
|
|
37
|
+
'portalUrl': json['portal_url'],
|
|
38
|
+
};
|
|
39
|
+
}
|
|
40
|
+
function SubscriptionPortalSessionToJSON(json) {
|
|
41
|
+
return SubscriptionPortalSessionToJSONTyped(json, false);
|
|
42
|
+
}
|
|
43
|
+
function SubscriptionPortalSessionToJSONTyped(value, ignoreDiscriminator = false) {
|
|
44
|
+
if (value == null) {
|
|
45
|
+
return value;
|
|
46
|
+
}
|
|
47
|
+
return {
|
|
48
|
+
'portal_url': value['portalUrl'],
|
|
49
|
+
};
|
|
50
|
+
}
|
|
@@ -0,0 +1,53 @@
|
|
|
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.
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0.0
|
|
6
|
+
* Contact: support@deeprelay.ai
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
* The plan's recurring charge, read live from the billing provider — the single source of truth, never a number embedded in code.
|
|
14
|
+
*
|
|
15
|
+
* ABSENT means "price unavailable right now" (billing unconfigured, or the provider could not be reached). It NEVER means free. Render the plan without a figure rather than substituting one; the hosted checkout page always shows the real amount.
|
|
16
|
+
*
|
|
17
|
+
* @export
|
|
18
|
+
* @interface SubscriptionPrice
|
|
19
|
+
*/
|
|
20
|
+
export interface SubscriptionPrice {
|
|
21
|
+
/**
|
|
22
|
+
* Amount in the currency's minor unit (299 = $2.99).
|
|
23
|
+
* @type {number}
|
|
24
|
+
* @memberof SubscriptionPrice
|
|
25
|
+
*/
|
|
26
|
+
amountCents: number;
|
|
27
|
+
/**
|
|
28
|
+
* ISO 4217 currency code, lower-case (e.g. "usd").
|
|
29
|
+
* @type {string}
|
|
30
|
+
* @memberof SubscriptionPrice
|
|
31
|
+
*/
|
|
32
|
+
currency: string;
|
|
33
|
+
/**
|
|
34
|
+
* Recurrence unit — "day", "week", "month" or "year".
|
|
35
|
+
* @type {string}
|
|
36
|
+
* @memberof SubscriptionPrice
|
|
37
|
+
*/
|
|
38
|
+
interval: string;
|
|
39
|
+
/**
|
|
40
|
+
* How many intervals between charges ("month", 1 = monthly).
|
|
41
|
+
* @type {number}
|
|
42
|
+
* @memberof SubscriptionPrice
|
|
43
|
+
*/
|
|
44
|
+
intervalCount: number;
|
|
45
|
+
}
|
|
46
|
+
/**
|
|
47
|
+
* Check if a given object implements the SubscriptionPrice interface.
|
|
48
|
+
*/
|
|
49
|
+
export declare function instanceOfSubscriptionPrice(value: object): value is SubscriptionPrice;
|
|
50
|
+
export declare function SubscriptionPriceFromJSON(json: any): SubscriptionPrice;
|
|
51
|
+
export declare function SubscriptionPriceFromJSONTyped(json: any, ignoreDiscriminator: boolean): SubscriptionPrice;
|
|
52
|
+
export declare function SubscriptionPriceToJSON(json: any): SubscriptionPrice;
|
|
53
|
+
export declare function SubscriptionPriceToJSONTyped(value?: SubscriptionPrice | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,62 @@
|
|
|
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.
|
|
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
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.instanceOfSubscriptionPrice = instanceOfSubscriptionPrice;
|
|
17
|
+
exports.SubscriptionPriceFromJSON = SubscriptionPriceFromJSON;
|
|
18
|
+
exports.SubscriptionPriceFromJSONTyped = SubscriptionPriceFromJSONTyped;
|
|
19
|
+
exports.SubscriptionPriceToJSON = SubscriptionPriceToJSON;
|
|
20
|
+
exports.SubscriptionPriceToJSONTyped = SubscriptionPriceToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the SubscriptionPrice interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfSubscriptionPrice(value) {
|
|
25
|
+
if ((!('amountCents' in value) && !('amount_cents' in value)) || (value['amountCents'] === undefined && value['amount_cents'] === undefined))
|
|
26
|
+
return false;
|
|
27
|
+
if (!('currency' in value) || value['currency'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
if (!('interval' in value) || value['interval'] === undefined)
|
|
30
|
+
return false;
|
|
31
|
+
if ((!('intervalCount' in value) && !('interval_count' in value)) || (value['intervalCount'] === undefined && value['interval_count'] === undefined))
|
|
32
|
+
return false;
|
|
33
|
+
return true;
|
|
34
|
+
}
|
|
35
|
+
function SubscriptionPriceFromJSON(json) {
|
|
36
|
+
return SubscriptionPriceFromJSONTyped(json, false);
|
|
37
|
+
}
|
|
38
|
+
function SubscriptionPriceFromJSONTyped(json, ignoreDiscriminator) {
|
|
39
|
+
if (json == null) {
|
|
40
|
+
return json;
|
|
41
|
+
}
|
|
42
|
+
return {
|
|
43
|
+
'amountCents': json['amount_cents'],
|
|
44
|
+
'currency': json['currency'],
|
|
45
|
+
'interval': json['interval'],
|
|
46
|
+
'intervalCount': json['interval_count'],
|
|
47
|
+
};
|
|
48
|
+
}
|
|
49
|
+
function SubscriptionPriceToJSON(json) {
|
|
50
|
+
return SubscriptionPriceToJSONTyped(json, false);
|
|
51
|
+
}
|
|
52
|
+
function SubscriptionPriceToJSONTyped(value, ignoreDiscriminator = false) {
|
|
53
|
+
if (value == null) {
|
|
54
|
+
return value;
|
|
55
|
+
}
|
|
56
|
+
return {
|
|
57
|
+
'amount_cents': value['amountCents'],
|
|
58
|
+
'currency': value['currency'],
|
|
59
|
+
'interval': value['interval'],
|
|
60
|
+
'interval_count': value['intervalCount'],
|
|
61
|
+
};
|
|
62
|
+
}
|
|
@@ -0,0 +1,60 @@
|
|
|
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.
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0.0
|
|
6
|
+
* Contact: support@deeprelay.ai
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
* The plan's configured allowances — the denominators of the usage meter. Always present, including for an organization that has not subscribed, where it describes what subscribing would provide.
|
|
14
|
+
*
|
|
15
|
+
* Token figures are WEIGHTED tokens: every model carries a usage factor, so a model at factor 2 spends two of these per token it serves.
|
|
16
|
+
*
|
|
17
|
+
* @export
|
|
18
|
+
* @interface SubscriptionQuota
|
|
19
|
+
*/
|
|
20
|
+
export interface SubscriptionQuota {
|
|
21
|
+
/**
|
|
22
|
+
* Weighted input tokens included per billing period.
|
|
23
|
+
* @type {number}
|
|
24
|
+
* @memberof SubscriptionQuota
|
|
25
|
+
*/
|
|
26
|
+
inputTokensMonthly: number;
|
|
27
|
+
/**
|
|
28
|
+
* Weighted output tokens included per billing period. Reasoning tokens are output tokens.
|
|
29
|
+
* @type {number}
|
|
30
|
+
* @memberof SubscriptionQuota
|
|
31
|
+
*/
|
|
32
|
+
outputTokensMonthly: number;
|
|
33
|
+
/**
|
|
34
|
+
* Weighted input+output tokens allowed over a ROLLING 7-day window. This cap slides with the clock; it does not reset with the billing period.
|
|
35
|
+
* @type {number}
|
|
36
|
+
* @memberof SubscriptionQuota
|
|
37
|
+
*/
|
|
38
|
+
weeklyTokens: number;
|
|
39
|
+
/**
|
|
40
|
+
* Per-period backstop on list-price metered cost, in micro-cents (1e-6 cent). 0 means no backstop is configured on this deployment.
|
|
41
|
+
* @type {number}
|
|
42
|
+
* @memberof SubscriptionQuota
|
|
43
|
+
*/
|
|
44
|
+
maxUsageMicroCents: number;
|
|
45
|
+
/**
|
|
46
|
+
* Deprecated and always 0. There is no subscriber discount on pay-as-you-go spend: a request that exhausts the plan quota bills at list rates, the same rates an org without a subscription pays. The field is retained so existing deserializers keep working and will be removed in the next breaking revision. Do not display it.
|
|
47
|
+
* @type {number}
|
|
48
|
+
* @memberof SubscriptionQuota
|
|
49
|
+
* @deprecated
|
|
50
|
+
*/
|
|
51
|
+
paygDiscountBp: number;
|
|
52
|
+
}
|
|
53
|
+
/**
|
|
54
|
+
* Check if a given object implements the SubscriptionQuota interface.
|
|
55
|
+
*/
|
|
56
|
+
export declare function instanceOfSubscriptionQuota(value: object): value is SubscriptionQuota;
|
|
57
|
+
export declare function SubscriptionQuotaFromJSON(json: any): SubscriptionQuota;
|
|
58
|
+
export declare function SubscriptionQuotaFromJSONTyped(json: any, ignoreDiscriminator: boolean): SubscriptionQuota;
|
|
59
|
+
export declare function SubscriptionQuotaToJSON(json: any): SubscriptionQuota;
|
|
60
|
+
export declare function SubscriptionQuotaToJSONTyped(value?: SubscriptionQuota | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,66 @@
|
|
|
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.
|
|
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
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.instanceOfSubscriptionQuota = instanceOfSubscriptionQuota;
|
|
17
|
+
exports.SubscriptionQuotaFromJSON = SubscriptionQuotaFromJSON;
|
|
18
|
+
exports.SubscriptionQuotaFromJSONTyped = SubscriptionQuotaFromJSONTyped;
|
|
19
|
+
exports.SubscriptionQuotaToJSON = SubscriptionQuotaToJSON;
|
|
20
|
+
exports.SubscriptionQuotaToJSONTyped = SubscriptionQuotaToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the SubscriptionQuota interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfSubscriptionQuota(value) {
|
|
25
|
+
if ((!('inputTokensMonthly' in value) && !('input_tokens_monthly' in value)) || (value['inputTokensMonthly'] === undefined && value['input_tokens_monthly'] === undefined))
|
|
26
|
+
return false;
|
|
27
|
+
if ((!('outputTokensMonthly' in value) && !('output_tokens_monthly' in value)) || (value['outputTokensMonthly'] === undefined && value['output_tokens_monthly'] === undefined))
|
|
28
|
+
return false;
|
|
29
|
+
if ((!('weeklyTokens' in value) && !('weekly_tokens' in value)) || (value['weeklyTokens'] === undefined && value['weekly_tokens'] === undefined))
|
|
30
|
+
return false;
|
|
31
|
+
if ((!('maxUsageMicroCents' in value) && !('max_usage_micro_cents' in value)) || (value['maxUsageMicroCents'] === undefined && value['max_usage_micro_cents'] === undefined))
|
|
32
|
+
return false;
|
|
33
|
+
if ((!('paygDiscountBp' in value) && !('payg_discount_bp' in value)) || (value['paygDiscountBp'] === undefined && value['payg_discount_bp'] === undefined))
|
|
34
|
+
return false;
|
|
35
|
+
return true;
|
|
36
|
+
}
|
|
37
|
+
function SubscriptionQuotaFromJSON(json) {
|
|
38
|
+
return SubscriptionQuotaFromJSONTyped(json, false);
|
|
39
|
+
}
|
|
40
|
+
function SubscriptionQuotaFromJSONTyped(json, ignoreDiscriminator) {
|
|
41
|
+
if (json == null) {
|
|
42
|
+
return json;
|
|
43
|
+
}
|
|
44
|
+
return {
|
|
45
|
+
'inputTokensMonthly': json['input_tokens_monthly'],
|
|
46
|
+
'outputTokensMonthly': json['output_tokens_monthly'],
|
|
47
|
+
'weeklyTokens': json['weekly_tokens'],
|
|
48
|
+
'maxUsageMicroCents': json['max_usage_micro_cents'],
|
|
49
|
+
'paygDiscountBp': json['payg_discount_bp'],
|
|
50
|
+
};
|
|
51
|
+
}
|
|
52
|
+
function SubscriptionQuotaToJSON(json) {
|
|
53
|
+
return SubscriptionQuotaToJSONTyped(json, false);
|
|
54
|
+
}
|
|
55
|
+
function SubscriptionQuotaToJSONTyped(value, ignoreDiscriminator = false) {
|
|
56
|
+
if (value == null) {
|
|
57
|
+
return value;
|
|
58
|
+
}
|
|
59
|
+
return {
|
|
60
|
+
'input_tokens_monthly': value['inputTokensMonthly'],
|
|
61
|
+
'output_tokens_monthly': value['outputTokensMonthly'],
|
|
62
|
+
'weekly_tokens': value['weeklyTokens'],
|
|
63
|
+
'max_usage_micro_cents': value['maxUsageMicroCents'],
|
|
64
|
+
'payg_discount_bp': value['paygDiscountBp'],
|
|
65
|
+
};
|
|
66
|
+
}
|
|
@@ -0,0 +1,65 @@
|
|
|
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.
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0.0
|
|
6
|
+
* Contact: support@deeprelay.ai
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
* Consumption against the quota, from the same factor-weighted read the request-time gate evaluates — so this meter and enforcement cannot disagree.
|
|
14
|
+
*
|
|
15
|
+
* Present only for an entitled subscription whose meter could be read. Its absence is never a statement that nothing was used.
|
|
16
|
+
*
|
|
17
|
+
* @export
|
|
18
|
+
* @interface SubscriptionUsage
|
|
19
|
+
*/
|
|
20
|
+
export interface SubscriptionUsage {
|
|
21
|
+
/**
|
|
22
|
+
* Start of the window the period figures were summed over: the subscription's current period, or the UTC calendar month when the billing provider has not reported one yet.
|
|
23
|
+
* @type {Date}
|
|
24
|
+
* @memberof SubscriptionUsage
|
|
25
|
+
*/
|
|
26
|
+
periodStart: Date;
|
|
27
|
+
/**
|
|
28
|
+
* End of that window.
|
|
29
|
+
* @type {Date}
|
|
30
|
+
* @memberof SubscriptionUsage
|
|
31
|
+
*/
|
|
32
|
+
periodEnd: Date;
|
|
33
|
+
/**
|
|
34
|
+
* Weighted input tokens spent this period, against `quota.input_tokens_monthly`.
|
|
35
|
+
* @type {number}
|
|
36
|
+
* @memberof SubscriptionUsage
|
|
37
|
+
*/
|
|
38
|
+
weightedInputTokens: number;
|
|
39
|
+
/**
|
|
40
|
+
* Weighted output tokens spent this period, against `quota.output_tokens_monthly`.
|
|
41
|
+
* @type {number}
|
|
42
|
+
* @memberof SubscriptionUsage
|
|
43
|
+
*/
|
|
44
|
+
weightedOutputTokens: number;
|
|
45
|
+
/**
|
|
46
|
+
* Weighted input+output tokens over the trailing 7 days, against `quota.weekly_tokens`. A rolling figure, not a period one — it can be non-zero moments after a period rolls over.
|
|
47
|
+
* @type {number}
|
|
48
|
+
* @memberof SubscriptionUsage
|
|
49
|
+
*/
|
|
50
|
+
weeklyWeightedTokens: number;
|
|
51
|
+
/**
|
|
52
|
+
* List-price metered cost of this period's plan traffic in micro-cents (1e-6 cent), against `quota.max_usage_micro_cents`.
|
|
53
|
+
* @type {number}
|
|
54
|
+
* @memberof SubscriptionUsage
|
|
55
|
+
*/
|
|
56
|
+
costMicroCents: number;
|
|
57
|
+
}
|
|
58
|
+
/**
|
|
59
|
+
* Check if a given object implements the SubscriptionUsage interface.
|
|
60
|
+
*/
|
|
61
|
+
export declare function instanceOfSubscriptionUsage(value: object): value is SubscriptionUsage;
|
|
62
|
+
export declare function SubscriptionUsageFromJSON(json: any): SubscriptionUsage;
|
|
63
|
+
export declare function SubscriptionUsageFromJSONTyped(json: any, ignoreDiscriminator: boolean): SubscriptionUsage;
|
|
64
|
+
export declare function SubscriptionUsageToJSON(json: any): SubscriptionUsage;
|
|
65
|
+
export declare function SubscriptionUsageToJSONTyped(value?: SubscriptionUsage | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,70 @@
|
|
|
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.
|
|
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
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.instanceOfSubscriptionUsage = instanceOfSubscriptionUsage;
|
|
17
|
+
exports.SubscriptionUsageFromJSON = SubscriptionUsageFromJSON;
|
|
18
|
+
exports.SubscriptionUsageFromJSONTyped = SubscriptionUsageFromJSONTyped;
|
|
19
|
+
exports.SubscriptionUsageToJSON = SubscriptionUsageToJSON;
|
|
20
|
+
exports.SubscriptionUsageToJSONTyped = SubscriptionUsageToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the SubscriptionUsage interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfSubscriptionUsage(value) {
|
|
25
|
+
if ((!('periodStart' in value) && !('period_start' in value)) || (value['periodStart'] === undefined && value['period_start'] === undefined))
|
|
26
|
+
return false;
|
|
27
|
+
if ((!('periodEnd' in value) && !('period_end' in value)) || (value['periodEnd'] === undefined && value['period_end'] === undefined))
|
|
28
|
+
return false;
|
|
29
|
+
if ((!('weightedInputTokens' in value) && !('weighted_input_tokens' in value)) || (value['weightedInputTokens'] === undefined && value['weighted_input_tokens'] === undefined))
|
|
30
|
+
return false;
|
|
31
|
+
if ((!('weightedOutputTokens' in value) && !('weighted_output_tokens' in value)) || (value['weightedOutputTokens'] === undefined && value['weighted_output_tokens'] === undefined))
|
|
32
|
+
return false;
|
|
33
|
+
if ((!('weeklyWeightedTokens' in value) && !('weekly_weighted_tokens' in value)) || (value['weeklyWeightedTokens'] === undefined && value['weekly_weighted_tokens'] === undefined))
|
|
34
|
+
return false;
|
|
35
|
+
if ((!('costMicroCents' in value) && !('cost_micro_cents' in value)) || (value['costMicroCents'] === undefined && value['cost_micro_cents'] === undefined))
|
|
36
|
+
return false;
|
|
37
|
+
return true;
|
|
38
|
+
}
|
|
39
|
+
function SubscriptionUsageFromJSON(json) {
|
|
40
|
+
return SubscriptionUsageFromJSONTyped(json, false);
|
|
41
|
+
}
|
|
42
|
+
function SubscriptionUsageFromJSONTyped(json, ignoreDiscriminator) {
|
|
43
|
+
if (json == null) {
|
|
44
|
+
return json;
|
|
45
|
+
}
|
|
46
|
+
return {
|
|
47
|
+
'periodStart': (new Date(json['period_start'])),
|
|
48
|
+
'periodEnd': (new Date(json['period_end'])),
|
|
49
|
+
'weightedInputTokens': json['weighted_input_tokens'],
|
|
50
|
+
'weightedOutputTokens': json['weighted_output_tokens'],
|
|
51
|
+
'weeklyWeightedTokens': json['weekly_weighted_tokens'],
|
|
52
|
+
'costMicroCents': json['cost_micro_cents'],
|
|
53
|
+
};
|
|
54
|
+
}
|
|
55
|
+
function SubscriptionUsageToJSON(json) {
|
|
56
|
+
return SubscriptionUsageToJSONTyped(json, false);
|
|
57
|
+
}
|
|
58
|
+
function SubscriptionUsageToJSONTyped(value, ignoreDiscriminator = false) {
|
|
59
|
+
if (value == null) {
|
|
60
|
+
return value;
|
|
61
|
+
}
|
|
62
|
+
return {
|
|
63
|
+
'period_start': value['periodStart'].toISOString(),
|
|
64
|
+
'period_end': value['periodEnd'].toISOString(),
|
|
65
|
+
'weighted_input_tokens': value['weightedInputTokens'],
|
|
66
|
+
'weighted_output_tokens': value['weightedOutputTokens'],
|
|
67
|
+
'weekly_weighted_tokens': value['weeklyWeightedTokens'],
|
|
68
|
+
'cost_micro_cents': value['costMicroCents'],
|
|
69
|
+
};
|
|
70
|
+
}
|