@deeprelay/sdk 0.0.1 → 0.1.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.
Files changed (346) hide show
  1. package/.openapi-generator/FILES +116 -0
  2. package/.openapi-generator/VERSION +1 -0
  3. package/.openapi-generator-ignore +24 -0
  4. package/LICENSE +204 -0
  5. package/README.md +189 -4
  6. package/dist/apis/BillingApi.d.ts +131 -0
  7. package/dist/apis/BillingApi.js +361 -0
  8. package/dist/apis/InferenceApi.d.ts +199 -0
  9. package/dist/apis/InferenceApi.js +531 -0
  10. package/dist/apis/MetaApi.d.ts +44 -0
  11. package/dist/apis/MetaApi.js +105 -0
  12. package/dist/apis/OperationsApi.d.ts +33 -0
  13. package/dist/apis/OperationsApi.js +79 -0
  14. package/dist/apis/UsageApi.d.ts +56 -0
  15. package/dist/apis/UsageApi.js +109 -0
  16. package/dist/apis/WebhooksApi.d.ts +82 -0
  17. package/dist/apis/WebhooksApi.js +224 -0
  18. package/dist/apis/index.d.ts +6 -0
  19. package/dist/apis/index.js +24 -0
  20. package/dist/esm/apis/BillingApi.d.ts +131 -0
  21. package/dist/esm/apis/BillingApi.js +357 -0
  22. package/dist/esm/apis/InferenceApi.d.ts +199 -0
  23. package/dist/esm/apis/InferenceApi.js +527 -0
  24. package/dist/esm/apis/MetaApi.d.ts +44 -0
  25. package/dist/esm/apis/MetaApi.js +101 -0
  26. package/dist/esm/apis/OperationsApi.d.ts +33 -0
  27. package/dist/esm/apis/OperationsApi.js +75 -0
  28. package/dist/esm/apis/UsageApi.d.ts +56 -0
  29. package/dist/esm/apis/UsageApi.js +105 -0
  30. package/dist/esm/apis/WebhooksApi.d.ts +82 -0
  31. package/dist/esm/apis/WebhooksApi.js +220 -0
  32. package/dist/esm/apis/index.d.ts +6 -0
  33. package/dist/esm/apis/index.js +8 -0
  34. package/dist/esm/index.d.ts +3 -0
  35. package/dist/esm/index.js +5 -0
  36. package/dist/esm/models/Balance.d.ts +65 -0
  37. package/dist/esm/models/Balance.js +63 -0
  38. package/dist/esm/models/ChatChoice.d.ts +55 -0
  39. package/dist/esm/models/ChatChoice.js +55 -0
  40. package/dist/esm/models/ChatCompletionRequest.d.ts +64 -0
  41. package/dist/esm/models/ChatCompletionRequest.js +57 -0
  42. package/dist/esm/models/ChatCompletionResponse.d.ts +71 -0
  43. package/dist/esm/models/ChatCompletionResponse.js +73 -0
  44. package/dist/esm/models/ChatMessage.d.ts +47 -0
  45. package/dist/esm/models/ChatMessage.js +55 -0
  46. package/dist/esm/models/CreateCryptoDepositRequest.d.ts +64 -0
  47. package/dist/esm/models/CreateCryptoDepositRequest.js +68 -0
  48. package/dist/esm/models/CreateWebhookEndpointRequest.d.ts +50 -0
  49. package/dist/esm/models/CreateWebhookEndpointRequest.js +58 -0
  50. package/dist/esm/models/CryptoDeposit.d.ts +114 -0
  51. package/dist/esm/models/CryptoDeposit.js +90 -0
  52. package/dist/esm/models/Embedding.d.ts +51 -0
  53. package/dist/esm/models/Embedding.js +59 -0
  54. package/dist/esm/models/EmbeddingsRequest.d.ts +64 -0
  55. package/dist/esm/models/EmbeddingsRequest.js +60 -0
  56. package/dist/esm/models/EmbeddingsRequestInput.d.ts +21 -0
  57. package/dist/esm/models/EmbeddingsRequestInput.js +47 -0
  58. package/dist/esm/models/EmbeddingsResponse.d.ts +59 -0
  59. package/dist/esm/models/EmbeddingsResponse.js +65 -0
  60. package/dist/esm/models/EmbeddingsUsage.d.ts +38 -0
  61. package/dist/esm/models/EmbeddingsUsage.js +47 -0
  62. package/dist/esm/models/GetHealth200Response.d.ts +39 -0
  63. package/dist/esm/models/GetHealth200Response.js +47 -0
  64. package/dist/esm/models/ImagesGenerationsRequest.d.ts +63 -0
  65. package/dist/esm/models/ImagesGenerationsRequest.js +59 -0
  66. package/dist/esm/models/ImagesResponse.d.ts +46 -0
  67. package/dist/esm/models/ImagesResponse.js +53 -0
  68. package/dist/esm/models/ImagesResponseDataInner.d.ts +32 -0
  69. package/dist/esm/models/ImagesResponseDataInner.js +43 -0
  70. package/dist/esm/models/ImagesResponseUsage.d.ts +32 -0
  71. package/dist/esm/models/ImagesResponseUsage.js +43 -0
  72. package/dist/esm/models/ListDeposits200Response.d.ts +39 -0
  73. package/dist/esm/models/ListDeposits200Response.js +48 -0
  74. package/dist/esm/models/Model.d.ts +152 -0
  75. package/dist/esm/models/Model.js +110 -0
  76. package/dist/esm/models/ModelList.d.ts +46 -0
  77. package/dist/esm/models/ModelList.js +56 -0
  78. package/dist/esm/models/ModelParametersInner.d.ts +72 -0
  79. package/dist/esm/models/ModelParametersInner.js +64 -0
  80. package/dist/esm/models/ModelPricing.d.ts +126 -0
  81. package/dist/esm/models/ModelPricing.js +78 -0
  82. package/dist/esm/models/ModelRate.d.ts +62 -0
  83. package/dist/esm/models/ModelRate.js +51 -0
  84. package/dist/esm/models/OpenAIErrorEnvelope.d.ts +33 -0
  85. package/dist/esm/models/OpenAIErrorEnvelope.js +44 -0
  86. package/dist/esm/models/OpenAIErrorEnvelopeError.d.ts +50 -0
  87. package/dist/esm/models/OpenAIErrorEnvelopeError.js +53 -0
  88. package/dist/esm/models/Operation.d.ts +107 -0
  89. package/dist/esm/models/Operation.js +86 -0
  90. package/dist/esm/models/OperationError.d.ts +38 -0
  91. package/dist/esm/models/OperationError.js +43 -0
  92. package/dist/esm/models/OperationResult.d.ts +44 -0
  93. package/dist/esm/models/OperationResult.js +45 -0
  94. package/dist/esm/models/PeakWindow.d.ts +38 -0
  95. package/dist/esm/models/PeakWindow.js +47 -0
  96. package/dist/esm/models/Problem.d.ts +87 -0
  97. package/dist/esm/models/Problem.js +87 -0
  98. package/dist/esm/models/SpendingLimit.d.ts +101 -0
  99. package/dist/esm/models/SpendingLimit.js +85 -0
  100. package/dist/esm/models/StreamOptions.d.ts +32 -0
  101. package/dist/esm/models/StreamOptions.js +41 -0
  102. package/dist/esm/models/Subscription.d.ts +78 -0
  103. package/dist/esm/models/Subscription.js +68 -0
  104. package/dist/esm/models/SubscriptionPlan.d.ts +46 -0
  105. package/dist/esm/models/SubscriptionPlan.js +50 -0
  106. package/dist/esm/models/SubscriptionPrice.d.ts +53 -0
  107. package/dist/esm/models/SubscriptionPrice.js +55 -0
  108. package/dist/esm/models/SubscriptionQuota.d.ts +60 -0
  109. package/dist/esm/models/SubscriptionQuota.js +59 -0
  110. package/dist/esm/models/SubscriptionUsage.d.ts +65 -0
  111. package/dist/esm/models/SubscriptionUsage.js +63 -0
  112. package/dist/esm/models/UpdateSpendingLimitRequest.d.ts +59 -0
  113. package/dist/esm/models/UpdateSpendingLimitRequest.js +57 -0
  114. package/dist/esm/models/Usage.d.ts +44 -0
  115. package/dist/esm/models/Usage.js +51 -0
  116. package/dist/esm/models/UsageBucket.d.ts +56 -0
  117. package/dist/esm/models/UsageBucket.js +55 -0
  118. package/dist/esm/models/UsagePage.d.ts +39 -0
  119. package/dist/esm/models/UsagePage.js +48 -0
  120. package/dist/esm/models/VideoCreateRequest.d.ts +50 -0
  121. package/dist/esm/models/VideoCreateRequest.js +51 -0
  122. package/dist/esm/models/VideoJob.d.ts +117 -0
  123. package/dist/esm/models/VideoJob.js +94 -0
  124. package/dist/esm/models/VideoList.d.ts +52 -0
  125. package/dist/esm/models/VideoList.js +60 -0
  126. package/dist/esm/models/WebhookEndpoint.d.ts +74 -0
  127. package/dist/esm/models/WebhookEndpoint.js +72 -0
  128. package/dist/esm/models/WebhookEndpointPage.d.ts +39 -0
  129. package/dist/esm/models/WebhookEndpointPage.js +48 -0
  130. package/dist/esm/models/index.d.ts +47 -0
  131. package/dist/esm/models/index.js +49 -0
  132. package/dist/esm/runtime.d.ts +185 -0
  133. package/dist/esm/runtime.js +354 -0
  134. package/dist/index.d.ts +3 -0
  135. package/dist/index.js +21 -0
  136. package/dist/models/Balance.d.ts +65 -0
  137. package/dist/models/Balance.js +70 -0
  138. package/dist/models/ChatChoice.d.ts +55 -0
  139. package/dist/models/ChatChoice.js +63 -0
  140. package/dist/models/ChatCompletionRequest.d.ts +64 -0
  141. package/dist/models/ChatCompletionRequest.js +64 -0
  142. package/dist/models/ChatCompletionResponse.d.ts +71 -0
  143. package/dist/models/ChatCompletionResponse.js +81 -0
  144. package/dist/models/ChatMessage.d.ts +47 -0
  145. package/dist/models/ChatMessage.js +63 -0
  146. package/dist/models/CreateCryptoDepositRequest.d.ts +64 -0
  147. package/dist/models/CreateCryptoDepositRequest.js +76 -0
  148. package/dist/models/CreateWebhookEndpointRequest.d.ts +50 -0
  149. package/dist/models/CreateWebhookEndpointRequest.js +66 -0
  150. package/dist/models/CryptoDeposit.d.ts +114 -0
  151. package/dist/models/CryptoDeposit.js +98 -0
  152. package/dist/models/Embedding.d.ts +51 -0
  153. package/dist/models/Embedding.js +67 -0
  154. package/dist/models/EmbeddingsRequest.d.ts +64 -0
  155. package/dist/models/EmbeddingsRequest.js +68 -0
  156. package/dist/models/EmbeddingsRequestInput.d.ts +21 -0
  157. package/dist/models/EmbeddingsRequestInput.js +53 -0
  158. package/dist/models/EmbeddingsResponse.d.ts +59 -0
  159. package/dist/models/EmbeddingsResponse.js +73 -0
  160. package/dist/models/EmbeddingsUsage.d.ts +38 -0
  161. package/dist/models/EmbeddingsUsage.js +54 -0
  162. package/dist/models/GetHealth200Response.d.ts +39 -0
  163. package/dist/models/GetHealth200Response.js +55 -0
  164. package/dist/models/ImagesGenerationsRequest.d.ts +63 -0
  165. package/dist/models/ImagesGenerationsRequest.js +67 -0
  166. package/dist/models/ImagesResponse.d.ts +46 -0
  167. package/dist/models/ImagesResponse.js +60 -0
  168. package/dist/models/ImagesResponseDataInner.d.ts +32 -0
  169. package/dist/models/ImagesResponseDataInner.js +50 -0
  170. package/dist/models/ImagesResponseUsage.d.ts +32 -0
  171. package/dist/models/ImagesResponseUsage.js +50 -0
  172. package/dist/models/ListDeposits200Response.d.ts +39 -0
  173. package/dist/models/ListDeposits200Response.js +55 -0
  174. package/dist/models/Model.d.ts +152 -0
  175. package/dist/models/Model.js +118 -0
  176. package/dist/models/ModelList.d.ts +46 -0
  177. package/dist/models/ModelList.js +64 -0
  178. package/dist/models/ModelParametersInner.d.ts +72 -0
  179. package/dist/models/ModelParametersInner.js +72 -0
  180. package/dist/models/ModelPricing.d.ts +126 -0
  181. package/dist/models/ModelPricing.js +86 -0
  182. package/dist/models/ModelRate.d.ts +62 -0
  183. package/dist/models/ModelRate.js +58 -0
  184. package/dist/models/OpenAIErrorEnvelope.d.ts +33 -0
  185. package/dist/models/OpenAIErrorEnvelope.js +51 -0
  186. package/dist/models/OpenAIErrorEnvelopeError.d.ts +50 -0
  187. package/dist/models/OpenAIErrorEnvelopeError.js +60 -0
  188. package/dist/models/Operation.d.ts +107 -0
  189. package/dist/models/Operation.js +94 -0
  190. package/dist/models/OperationError.d.ts +38 -0
  191. package/dist/models/OperationError.js +50 -0
  192. package/dist/models/OperationResult.d.ts +44 -0
  193. package/dist/models/OperationResult.js +52 -0
  194. package/dist/models/PeakWindow.d.ts +38 -0
  195. package/dist/models/PeakWindow.js +54 -0
  196. package/dist/models/Problem.d.ts +87 -0
  197. package/dist/models/Problem.js +95 -0
  198. package/dist/models/SpendingLimit.d.ts +101 -0
  199. package/dist/models/SpendingLimit.js +93 -0
  200. package/dist/models/StreamOptions.d.ts +32 -0
  201. package/dist/models/StreamOptions.js +48 -0
  202. package/dist/models/Subscription.d.ts +78 -0
  203. package/dist/models/Subscription.js +75 -0
  204. package/dist/models/SubscriptionPlan.d.ts +46 -0
  205. package/dist/models/SubscriptionPlan.js +57 -0
  206. package/dist/models/SubscriptionPrice.d.ts +53 -0
  207. package/dist/models/SubscriptionPrice.js +62 -0
  208. package/dist/models/SubscriptionQuota.d.ts +60 -0
  209. package/dist/models/SubscriptionQuota.js +66 -0
  210. package/dist/models/SubscriptionUsage.d.ts +65 -0
  211. package/dist/models/SubscriptionUsage.js +70 -0
  212. package/dist/models/UpdateSpendingLimitRequest.d.ts +59 -0
  213. package/dist/models/UpdateSpendingLimitRequest.js +65 -0
  214. package/dist/models/Usage.d.ts +44 -0
  215. package/dist/models/Usage.js +58 -0
  216. package/dist/models/UsageBucket.d.ts +56 -0
  217. package/dist/models/UsageBucket.js +62 -0
  218. package/dist/models/UsagePage.d.ts +39 -0
  219. package/dist/models/UsagePage.js +55 -0
  220. package/dist/models/VideoCreateRequest.d.ts +50 -0
  221. package/dist/models/VideoCreateRequest.js +58 -0
  222. package/dist/models/VideoJob.d.ts +117 -0
  223. package/dist/models/VideoJob.js +102 -0
  224. package/dist/models/VideoList.d.ts +52 -0
  225. package/dist/models/VideoList.js +68 -0
  226. package/dist/models/WebhookEndpoint.d.ts +74 -0
  227. package/dist/models/WebhookEndpoint.js +80 -0
  228. package/dist/models/WebhookEndpointPage.d.ts +39 -0
  229. package/dist/models/WebhookEndpointPage.js +55 -0
  230. package/dist/models/index.d.ts +47 -0
  231. package/dist/models/index.js +65 -0
  232. package/dist/runtime.d.ts +185 -0
  233. package/dist/runtime.js +371 -0
  234. package/docs/Balance.md +45 -0
  235. package/docs/BillingApi.md +503 -0
  236. package/docs/ChatChoice.md +38 -0
  237. package/docs/ChatCompletionRequest.md +44 -0
  238. package/docs/ChatCompletionResponse.md +44 -0
  239. package/docs/ChatMessage.md +36 -0
  240. package/docs/CreateCryptoDepositRequest.md +38 -0
  241. package/docs/CreateWebhookEndpointRequest.md +36 -0
  242. package/docs/CryptoDeposit.md +55 -0
  243. package/docs/Embedding.md +38 -0
  244. package/docs/EmbeddingsRequest.md +42 -0
  245. package/docs/EmbeddingsRequestInput.md +33 -0
  246. package/docs/EmbeddingsResponse.md +40 -0
  247. package/docs/EmbeddingsUsage.md +37 -0
  248. package/docs/GetHealth200Response.md +34 -0
  249. package/docs/ImagesGenerationsRequest.md +42 -0
  250. package/docs/ImagesResponse.md +38 -0
  251. package/docs/ImagesResponseDataInner.md +34 -0
  252. package/docs/ImagesResponseUsage.md +34 -0
  253. package/docs/InferenceApi.md +787 -0
  254. package/docs/ListDeposits200Response.md +36 -0
  255. package/docs/MetaApi.md +126 -0
  256. package/docs/Model.md +64 -0
  257. package/docs/ModelList.md +36 -0
  258. package/docs/ModelParametersInner.md +44 -0
  259. package/docs/ModelPricing.md +62 -0
  260. package/docs/ModelRate.md +45 -0
  261. package/docs/OpenAIErrorEnvelope.md +34 -0
  262. package/docs/OpenAIErrorEnvelopeError.md +40 -0
  263. package/docs/Operation.md +52 -0
  264. package/docs/OperationError.md +36 -0
  265. package/docs/OperationResult.md +39 -0
  266. package/docs/OperationsApi.md +80 -0
  267. package/docs/PeakWindow.md +37 -0
  268. package/docs/Problem.md +44 -0
  269. package/docs/SpendingLimit.md +54 -0
  270. package/docs/StreamOptions.md +34 -0
  271. package/docs/Subscription.md +49 -0
  272. package/docs/SubscriptionPlan.md +39 -0
  273. package/docs/SubscriptionPrice.md +41 -0
  274. package/docs/SubscriptionQuota.md +43 -0
  275. package/docs/SubscriptionUsage.md +45 -0
  276. package/docs/UpdateSpendingLimitRequest.md +40 -0
  277. package/docs/Usage.md +38 -0
  278. package/docs/UsageApi.md +95 -0
  279. package/docs/UsageBucket.md +42 -0
  280. package/docs/UsagePage.md +36 -0
  281. package/docs/VideoCreateRequest.md +40 -0
  282. package/docs/VideoJob.md +56 -0
  283. package/docs/VideoList.md +38 -0
  284. package/docs/WebhookEndpoint.md +44 -0
  285. package/docs/WebhookEndpointPage.md +36 -0
  286. package/docs/WebhooksApi.md +302 -0
  287. package/package.json +16 -7
  288. package/src/apis/BillingApi.ts +431 -0
  289. package/src/apis/InferenceApi.ts +686 -0
  290. package/src/apis/MetaApi.ts +103 -0
  291. package/src/apis/OperationsApi.ts +89 -0
  292. package/src/apis/UsageApi.ts +129 -0
  293. package/src/apis/WebhooksApi.ts +277 -0
  294. package/src/apis/index.ts +8 -0
  295. package/src/index.ts +5 -0
  296. package/src/models/Balance.ts +114 -0
  297. package/src/models/ChatChoice.ts +102 -0
  298. package/src/models/ChatCompletionRequest.ts +122 -0
  299. package/src/models/ChatCompletionResponse.ts +138 -0
  300. package/src/models/ChatMessage.ts +87 -0
  301. package/src/models/CreateCryptoDepositRequest.ts +108 -0
  302. package/src/models/CreateWebhookEndpointRequest.ts +90 -0
  303. package/src/models/CryptoDeposit.ts +177 -0
  304. package/src/models/Embedding.ts +96 -0
  305. package/src/models/EmbeddingsRequest.ts +117 -0
  306. package/src/models/EmbeddingsRequestInput.ts +59 -0
  307. package/src/models/EmbeddingsResponse.ts +120 -0
  308. package/src/models/EmbeddingsUsage.ts +75 -0
  309. package/src/models/GetHealth200Response.ts +75 -0
  310. package/src/models/ImagesGenerationsRequest.ts +109 -0
  311. package/src/models/ImagesResponse.ts +99 -0
  312. package/src/models/ImagesResponseDataInner.ts +66 -0
  313. package/src/models/ImagesResponseUsage.ts +66 -0
  314. package/src/models/ListDeposits200Response.ts +83 -0
  315. package/src/models/Model.ts +241 -0
  316. package/src/models/ModelList.ts +95 -0
  317. package/src/models/ModelParametersInner.ts +120 -0
  318. package/src/models/ModelPricing.ts +203 -0
  319. package/src/models/ModelRate.ts +105 -0
  320. package/src/models/OpenAIErrorEnvelope.ts +74 -0
  321. package/src/models/OpenAIErrorEnvelopeError.ts +92 -0
  322. package/src/models/Operation.ts +179 -0
  323. package/src/models/OperationError.ts +73 -0
  324. package/src/models/OperationResult.ts +81 -0
  325. package/src/models/PeakWindow.ts +75 -0
  326. package/src/models/Problem.ts +139 -0
  327. package/src/models/SpendingLimit.ts +165 -0
  328. package/src/models/StreamOptions.ts +65 -0
  329. package/src/models/Subscription.ts +149 -0
  330. package/src/models/SubscriptionPlan.ts +92 -0
  331. package/src/models/SubscriptionPrice.ts +96 -0
  332. package/src/models/SubscriptionQuota.ts +106 -0
  333. package/src/models/SubscriptionUsage.ts +114 -0
  334. package/src/models/UpdateSpendingLimitRequest.ts +102 -0
  335. package/src/models/Usage.ts +84 -0
  336. package/src/models/UsageBucket.ts +100 -0
  337. package/src/models/UsagePage.ts +83 -0
  338. package/src/models/VideoCreateRequest.ts +91 -0
  339. package/src/models/VideoJob.ts +184 -0
  340. package/src/models/VideoList.ts +104 -0
  341. package/src/models/WebhookEndpoint.ts +125 -0
  342. package/src/models/WebhookEndpointPage.ts +83 -0
  343. package/src/models/index.ts +49 -0
  344. package/src/runtime.ts +454 -0
  345. package/tsconfig.esm.json +7 -0
  346. package/tsconfig.json +16 -0
@@ -0,0 +1,36 @@
1
+
2
+ # ListDeposits200Response
3
+
4
+
5
+ ## Properties
6
+
7
+ Name | Type
8
+ ------------ | -------------
9
+ `deposits` | [Array<CryptoDeposit>](CryptoDeposit.md)
10
+ `minDepositCents` | number
11
+
12
+ ## Example
13
+
14
+ ```typescript
15
+ import type { ListDeposits200Response } from '@deeprelay/sdk'
16
+
17
+ // TODO: Update the object below with actual values
18
+ const example = {
19
+ "deposits": null,
20
+ "minDepositCents": 500,
21
+ } satisfies ListDeposits200Response
22
+
23
+ console.log(example)
24
+
25
+ // Convert the instance to a JSON string
26
+ const exampleJSON: string = JSON.stringify(example)
27
+ console.log(exampleJSON)
28
+
29
+ // Parse the JSON string back to an object
30
+ const exampleParsed = JSON.parse(exampleJSON) as ListDeposits200Response
31
+ console.log(exampleParsed)
32
+ ```
33
+
34
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
35
+
36
+
@@ -0,0 +1,126 @@
1
+ # MetaApi
2
+
3
+ All URIs are relative to *https://api.deeprelay.ai/v1*
4
+
5
+ | Method | HTTP request | Description |
6
+ |------------- | ------------- | -------------|
7
+ | [**getHealth**](MetaApi.md#gethealth) | **GET** /health | Liveness probe |
8
+ | [**getOpenApiSpec**](MetaApi.md#getopenapispec) | **GET** /openapi.json | OpenAPI 3.1 specification |
9
+
10
+
11
+
12
+ ## getHealth
13
+
14
+ > GetHealth200Response getHealth()
15
+
16
+ Liveness probe
17
+
18
+ ### Example
19
+
20
+ ```ts
21
+ import {
22
+ Configuration,
23
+ MetaApi,
24
+ } from '@deeprelay/sdk';
25
+ import type { GetHealthRequest } from '@deeprelay/sdk';
26
+
27
+ async function example() {
28
+ console.log("🚀 Testing @deeprelay/sdk SDK...");
29
+ const api = new MetaApi();
30
+
31
+ try {
32
+ const data = await api.getHealth();
33
+ console.log(data);
34
+ } catch (error) {
35
+ console.error(error);
36
+ }
37
+ }
38
+
39
+ // Run the test
40
+ example().catch(console.error);
41
+ ```
42
+
43
+ ### Parameters
44
+
45
+ This endpoint does not need any parameter.
46
+
47
+ ### Return type
48
+
49
+ [**GetHealth200Response**](GetHealth200Response.md)
50
+
51
+ ### Authorization
52
+
53
+ No authorization required
54
+
55
+ ### HTTP request headers
56
+
57
+ - **Content-Type**: Not defined
58
+ - **Accept**: `application/json`
59
+
60
+
61
+ ### HTTP response details
62
+ | Status code | Description | Response headers |
63
+ |-------------|-------------|------------------|
64
+ | **200** | OK | - |
65
+
66
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
67
+
68
+
69
+ ## getOpenApiSpec
70
+
71
+ > object getOpenApiSpec()
72
+
73
+ OpenAPI 3.1 specification
74
+
75
+ The machine-readable specification of the PUBLISHED API surface — the same document the client SDKs are generated from. Endpoints marked `x-gpu-supply-paused` in the authoritative spec are absent from it while GPU supply is paused (D-28), so this response and the SDKs always describe the same surface.
76
+
77
+ ### Example
78
+
79
+ ```ts
80
+ import {
81
+ Configuration,
82
+ MetaApi,
83
+ } from '@deeprelay/sdk';
84
+ import type { GetOpenApiSpecRequest } from '@deeprelay/sdk';
85
+
86
+ async function example() {
87
+ console.log("🚀 Testing @deeprelay/sdk SDK...");
88
+ const api = new MetaApi();
89
+
90
+ try {
91
+ const data = await api.getOpenApiSpec();
92
+ console.log(data);
93
+ } catch (error) {
94
+ console.error(error);
95
+ }
96
+ }
97
+
98
+ // Run the test
99
+ example().catch(console.error);
100
+ ```
101
+
102
+ ### Parameters
103
+
104
+ This endpoint does not need any parameter.
105
+
106
+ ### Return type
107
+
108
+ **object**
109
+
110
+ ### Authorization
111
+
112
+ No authorization required
113
+
114
+ ### HTTP request headers
115
+
116
+ - **Content-Type**: Not defined
117
+ - **Accept**: `application/json`
118
+
119
+
120
+ ### HTTP response details
121
+ | Status code | Description | Response headers |
122
+ |-------------|-------------|------------------|
123
+ | **200** | OK | - |
124
+
125
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
126
+
package/docs/Model.md ADDED
@@ -0,0 +1,64 @@
1
+
2
+ # Model
3
+
4
+
5
+ ## Properties
6
+
7
+ Name | Type
8
+ ------------ | -------------
9
+ `id` | string
10
+ `object` | string
11
+ `created` | number
12
+ `ownedBy` | string
13
+ `author` | string
14
+ `modality` | string
15
+ `category` | string
16
+ `contextLength` | number
17
+ `supportedParameters` | Array<string>
18
+ `parameters` | [Array<ModelParametersInner>](ModelParametersInner.md)
19
+ `pricing` | [ModelPricing](ModelPricing.md)
20
+ `aliases` | Array<string>
21
+ `fineTunable` | boolean
22
+ `fineTuneBaseModel` | string
23
+ `planCovered` | boolean
24
+ `status` | string
25
+
26
+ ## Example
27
+
28
+ ```typescript
29
+ import type { Model } from '@deeprelay/sdk'
30
+
31
+ // TODO: Update the object below with actual values
32
+ const example = {
33
+ "id": null,
34
+ "object": null,
35
+ "created": null,
36
+ "ownedBy": null,
37
+ "author": null,
38
+ "modality": null,
39
+ "category": null,
40
+ "contextLength": null,
41
+ "supportedParameters": null,
42
+ "parameters": null,
43
+ "pricing": null,
44
+ "aliases": null,
45
+ "fineTunable": null,
46
+ "fineTuneBaseModel": null,
47
+ "planCovered": null,
48
+ "status": null,
49
+ } satisfies Model
50
+
51
+ console.log(example)
52
+
53
+ // Convert the instance to a JSON string
54
+ const exampleJSON: string = JSON.stringify(example)
55
+ console.log(exampleJSON)
56
+
57
+ // Parse the JSON string back to an object
58
+ const exampleParsed = JSON.parse(exampleJSON) as Model
59
+ console.log(exampleParsed)
60
+ ```
61
+
62
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
63
+
64
+
@@ -0,0 +1,36 @@
1
+
2
+ # ModelList
3
+
4
+
5
+ ## Properties
6
+
7
+ Name | Type
8
+ ------------ | -------------
9
+ `object` | string
10
+ `data` | [Array<Model>](Model.md)
11
+
12
+ ## Example
13
+
14
+ ```typescript
15
+ import type { ModelList } from '@deeprelay/sdk'
16
+
17
+ // TODO: Update the object below with actual values
18
+ const example = {
19
+ "object": null,
20
+ "data": null,
21
+ } satisfies ModelList
22
+
23
+ console.log(example)
24
+
25
+ // Convert the instance to a JSON string
26
+ const exampleJSON: string = JSON.stringify(example)
27
+ console.log(exampleJSON)
28
+
29
+ // Parse the JSON string back to an object
30
+ const exampleParsed = JSON.parse(exampleJSON) as ModelList
31
+ console.log(exampleParsed)
32
+ ```
33
+
34
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
35
+
36
+
@@ -0,0 +1,44 @@
1
+
2
+ # ModelParametersInner
3
+
4
+
5
+ ## Properties
6
+
7
+ Name | Type
8
+ ------------ | -------------
9
+ `name` | string
10
+ `type` | string
11
+ `_enum` | Array<string>
12
+ `min` | number
13
+ `max` | number
14
+ `_default` | any
15
+
16
+ ## Example
17
+
18
+ ```typescript
19
+ import type { ModelParametersInner } from '@deeprelay/sdk'
20
+
21
+ // TODO: Update the object below with actual values
22
+ const example = {
23
+ "name": null,
24
+ "type": null,
25
+ "_enum": null,
26
+ "min": null,
27
+ "max": null,
28
+ "_default": null,
29
+ } satisfies ModelParametersInner
30
+
31
+ console.log(example)
32
+
33
+ // Convert the instance to a JSON string
34
+ const exampleJSON: string = JSON.stringify(example)
35
+ console.log(exampleJSON)
36
+
37
+ // Parse the JSON string back to an object
38
+ const exampleParsed = JSON.parse(exampleJSON) as ModelParametersInner
39
+ console.log(exampleParsed)
40
+ ```
41
+
42
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
43
+
44
+
@@ -0,0 +1,62 @@
1
+
2
+ # ModelPricing
3
+
4
+
5
+ ## Properties
6
+
7
+ Name | Type
8
+ ------------ | -------------
9
+ `currency` | string
10
+ `inputPer1mTokensCents` | number
11
+ `outputPer1mTokensCents` | number
12
+ `cachedInputPer1mTokensMicrocents` | number
13
+ `cachedInputPer1mTokensCents` | number
14
+ `perImageCents` | number
15
+ `perImageMicrocents` | number
16
+ `perMpxlMicrocents` | number
17
+ `perVideoMicrocents` | number
18
+ `perVideoSecondCents` | number
19
+ `perVideoSecondMicrocents` | number
20
+ `period` | string
21
+ `peakWindowsUtc` | [Array<PeakWindow>](PeakWindow.md)
22
+ `peak` | [ModelRate](ModelRate.md)
23
+ `offPeak` | [ModelRate](ModelRate.md)
24
+
25
+ ## Example
26
+
27
+ ```typescript
28
+ import type { ModelPricing } from '@deeprelay/sdk'
29
+
30
+ // TODO: Update the object below with actual values
31
+ const example = {
32
+ "currency": null,
33
+ "inputPer1mTokensCents": null,
34
+ "outputPer1mTokensCents": null,
35
+ "cachedInputPer1mTokensMicrocents": null,
36
+ "cachedInputPer1mTokensCents": null,
37
+ "perImageCents": null,
38
+ "perImageMicrocents": null,
39
+ "perMpxlMicrocents": null,
40
+ "perVideoMicrocents": null,
41
+ "perVideoSecondCents": null,
42
+ "perVideoSecondMicrocents": null,
43
+ "period": null,
44
+ "peakWindowsUtc": null,
45
+ "peak": null,
46
+ "offPeak": null,
47
+ } satisfies ModelPricing
48
+
49
+ console.log(example)
50
+
51
+ // Convert the instance to a JSON string
52
+ const exampleJSON: string = JSON.stringify(example)
53
+ console.log(exampleJSON)
54
+
55
+ // Parse the JSON string back to an object
56
+ const exampleParsed = JSON.parse(exampleJSON) as ModelPricing
57
+ console.log(exampleParsed)
58
+ ```
59
+
60
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
61
+
62
+
@@ -0,0 +1,45 @@
1
+
2
+ # ModelRate
3
+
4
+ One per-1M-token rate triple, in rounded cents and exact micro-cents (1e-6 cent). Prefer the micro-cent fields for arithmetic; cached rates are routinely sub-cent and their cents field is then omitted.
5
+
6
+ ## Properties
7
+
8
+ Name | Type
9
+ ------------ | -------------
10
+ `inputPer1mTokensCents` | number
11
+ `inputPer1mTokensMicrocents` | number
12
+ `cachedInputPer1mTokensCents` | number
13
+ `cachedInputPer1mTokensMicrocents` | number
14
+ `outputPer1mTokensCents` | number
15
+ `outputPer1mTokensMicrocents` | number
16
+
17
+ ## Example
18
+
19
+ ```typescript
20
+ import type { ModelRate } from '@deeprelay/sdk'
21
+
22
+ // TODO: Update the object below with actual values
23
+ const example = {
24
+ "inputPer1mTokensCents": null,
25
+ "inputPer1mTokensMicrocents": null,
26
+ "cachedInputPer1mTokensCents": null,
27
+ "cachedInputPer1mTokensMicrocents": null,
28
+ "outputPer1mTokensCents": null,
29
+ "outputPer1mTokensMicrocents": null,
30
+ } satisfies ModelRate
31
+
32
+ console.log(example)
33
+
34
+ // Convert the instance to a JSON string
35
+ const exampleJSON: string = JSON.stringify(example)
36
+ console.log(exampleJSON)
37
+
38
+ // Parse the JSON string back to an object
39
+ const exampleParsed = JSON.parse(exampleJSON) as ModelRate
40
+ console.log(exampleParsed)
41
+ ```
42
+
43
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
44
+
45
+
@@ -0,0 +1,34 @@
1
+
2
+ # OpenAIErrorEnvelope
3
+
4
+
5
+ ## Properties
6
+
7
+ Name | Type
8
+ ------------ | -------------
9
+ `error` | [OpenAIErrorEnvelopeError](OpenAIErrorEnvelopeError.md)
10
+
11
+ ## Example
12
+
13
+ ```typescript
14
+ import type { OpenAIErrorEnvelope } from '@deeprelay/sdk'
15
+
16
+ // TODO: Update the object below with actual values
17
+ const example = {
18
+ "error": null,
19
+ } satisfies OpenAIErrorEnvelope
20
+
21
+ console.log(example)
22
+
23
+ // Convert the instance to a JSON string
24
+ const exampleJSON: string = JSON.stringify(example)
25
+ console.log(exampleJSON)
26
+
27
+ // Parse the JSON string back to an object
28
+ const exampleParsed = JSON.parse(exampleJSON) as OpenAIErrorEnvelope
29
+ console.log(exampleParsed)
30
+ ```
31
+
32
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
33
+
34
+
@@ -0,0 +1,40 @@
1
+
2
+ # OpenAIErrorEnvelopeError
3
+
4
+
5
+ ## Properties
6
+
7
+ Name | Type
8
+ ------------ | -------------
9
+ `message` | string
10
+ `type` | string
11
+ `param` | string
12
+ `code` | string
13
+
14
+ ## Example
15
+
16
+ ```typescript
17
+ import type { OpenAIErrorEnvelopeError } from '@deeprelay/sdk'
18
+
19
+ // TODO: Update the object below with actual values
20
+ const example = {
21
+ "message": null,
22
+ "type": null,
23
+ "param": null,
24
+ "code": null,
25
+ } satisfies OpenAIErrorEnvelopeError
26
+
27
+ console.log(example)
28
+
29
+ // Convert the instance to a JSON string
30
+ const exampleJSON: string = JSON.stringify(example)
31
+ console.log(exampleJSON)
32
+
33
+ // Parse the JSON string back to an object
34
+ const exampleParsed = JSON.parse(exampleJSON) as OpenAIErrorEnvelopeError
35
+ console.log(exampleParsed)
36
+ ```
37
+
38
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
39
+
40
+
@@ -0,0 +1,52 @@
1
+
2
+ # Operation
3
+
4
+
5
+ ## Properties
6
+
7
+ Name | Type
8
+ ------------ | -------------
9
+ `operationId` | string
10
+ `kind` | string
11
+ `state` | string
12
+ `resourceId` | string
13
+ `error` | [OperationError](OperationError.md)
14
+ `result` | [OperationResult](OperationResult.md)
15
+ `createdAt` | Date
16
+ `updatedAt` | Date
17
+ `completedAt` | Date
18
+ `warnings` | Array<string>
19
+
20
+ ## Example
21
+
22
+ ```typescript
23
+ import type { Operation } from '@deeprelay/sdk'
24
+
25
+ // TODO: Update the object below with actual values
26
+ const example = {
27
+ "operationId": null,
28
+ "kind": null,
29
+ "state": null,
30
+ "resourceId": null,
31
+ "error": null,
32
+ "result": null,
33
+ "createdAt": null,
34
+ "updatedAt": null,
35
+ "completedAt": null,
36
+ "warnings": null,
37
+ } satisfies Operation
38
+
39
+ console.log(example)
40
+
41
+ // Convert the instance to a JSON string
42
+ const exampleJSON: string = JSON.stringify(example)
43
+ console.log(exampleJSON)
44
+
45
+ // Parse the JSON string back to an object
46
+ const exampleParsed = JSON.parse(exampleJSON) as Operation
47
+ console.log(exampleParsed)
48
+ ```
49
+
50
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
51
+
52
+
@@ -0,0 +1,36 @@
1
+
2
+ # OperationError
3
+
4
+
5
+ ## Properties
6
+
7
+ Name | Type
8
+ ------------ | -------------
9
+ `code` | string
10
+ `detail` | string
11
+
12
+ ## Example
13
+
14
+ ```typescript
15
+ import type { OperationError } from '@deeprelay/sdk'
16
+
17
+ // TODO: Update the object below with actual values
18
+ const example = {
19
+ "code": null,
20
+ "detail": null,
21
+ } satisfies OperationError
22
+
23
+ console.log(example)
24
+
25
+ // Convert the instance to a JSON string
26
+ const exampleJSON: string = JSON.stringify(example)
27
+ console.log(exampleJSON)
28
+
29
+ // Parse the JSON string back to an object
30
+ const exampleParsed = JSON.parse(exampleJSON) as OperationError
31
+ console.log(exampleParsed)
32
+ ```
33
+
34
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
35
+
36
+
@@ -0,0 +1,39 @@
1
+
2
+ # OperationResult
3
+
4
+ Terminal-success payload. Carries the per-instance web-access coordinates — app_url for template deploys, terminal_url for instances provisioned with the browser web console, and the basic-auth username shared by both. The basic-auth PASSWORD is never included here — retrieve it via GET /instances/{id}?include=credentials (connection.app_password).
5
+
6
+ ## Properties
7
+
8
+ Name | Type
9
+ ------------ | -------------
10
+ `appUrl` | string
11
+ `terminalUrl` | string
12
+ `appBasicAuthUser` | string
13
+
14
+ ## Example
15
+
16
+ ```typescript
17
+ import type { OperationResult } from '@deeprelay/sdk'
18
+
19
+ // TODO: Update the object below with actual values
20
+ const example = {
21
+ "appUrl": null,
22
+ "terminalUrl": null,
23
+ "appBasicAuthUser": null,
24
+ } satisfies OperationResult
25
+
26
+ console.log(example)
27
+
28
+ // Convert the instance to a JSON string
29
+ const exampleJSON: string = JSON.stringify(example)
30
+ console.log(exampleJSON)
31
+
32
+ // Parse the JSON string back to an object
33
+ const exampleParsed = JSON.parse(exampleJSON) as OperationResult
34
+ console.log(exampleParsed)
35
+ ```
36
+
37
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
38
+
39
+
@@ -0,0 +1,80 @@
1
+ # OperationsApi
2
+
3
+ All URIs are relative to *https://api.deeprelay.ai/v1*
4
+
5
+ | Method | HTTP request | Description |
6
+ |------------- | ------------- | -------------|
7
+ | [**getOperation**](OperationsApi.md#getoperation) | **GET** /operations/{id} | Get an async operation status |
8
+
9
+
10
+
11
+ ## getOperation
12
+
13
+ > Operation getOperation(id)
14
+
15
+ Get an async operation status
16
+
17
+ ### Example
18
+
19
+ ```ts
20
+ import {
21
+ Configuration,
22
+ OperationsApi,
23
+ } from '@deeprelay/sdk';
24
+ import type { GetOperationRequest } from '@deeprelay/sdk';
25
+
26
+ async function example() {
27
+ console.log("🚀 Testing @deeprelay/sdk SDK...");
28
+ const config = new Configuration({
29
+ // Configure HTTP bearer authorization: bearerAuth
30
+ accessToken: "YOUR BEARER TOKEN",
31
+ });
32
+ const api = new OperationsApi(config);
33
+
34
+ const body = {
35
+ // string
36
+ id: 38400000-8cf0-11bd-b23e-10b96e4ef00d,
37
+ } satisfies GetOperationRequest;
38
+
39
+ try {
40
+ const data = await api.getOperation(body);
41
+ console.log(data);
42
+ } catch (error) {
43
+ console.error(error);
44
+ }
45
+ }
46
+
47
+ // Run the test
48
+ example().catch(console.error);
49
+ ```
50
+
51
+ ### Parameters
52
+
53
+
54
+ | Name | Type | Description | Notes |
55
+ |------------- | ------------- | ------------- | -------------|
56
+ | **id** | `string` | | [Defaults to `undefined`] |
57
+
58
+ ### Return type
59
+
60
+ [**Operation**](Operation.md)
61
+
62
+ ### Authorization
63
+
64
+ [bearerAuth](../README.md#bearerAuth)
65
+
66
+ ### HTTP request headers
67
+
68
+ - **Content-Type**: Not defined
69
+ - **Accept**: `application/json`, `application/problem+json`
70
+
71
+
72
+ ### HTTP response details
73
+ | Status code | Description | Response headers |
74
+ |-------------|-------------|------------------|
75
+ | **200** | OK | - |
76
+ | **429** | Rate limit exceeded (RFC 7807). Retry-After header indicates seconds to wait. | * Retry-After - Seconds the client should wait before retrying. <br> |
77
+ | **0** | Error response (RFC 7807) | - |
78
+
79
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
80
+