@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,531 @@
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
+ 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.ListModelsModalityEnum = exports.InferenceApi = void 0;
26
+ const runtime = require("../runtime");
27
+ const ChatCompletionRequest_1 = require("../models/ChatCompletionRequest");
28
+ const ChatCompletionResponse_1 = require("../models/ChatCompletionResponse");
29
+ const EmbeddingsRequest_1 = require("../models/EmbeddingsRequest");
30
+ const EmbeddingsResponse_1 = require("../models/EmbeddingsResponse");
31
+ const ImagesGenerationsRequest_1 = require("../models/ImagesGenerationsRequest");
32
+ const ImagesResponse_1 = require("../models/ImagesResponse");
33
+ const Model_1 = require("../models/Model");
34
+ const ModelList_1 = require("../models/ModelList");
35
+ const VideoCreateRequest_1 = require("../models/VideoCreateRequest");
36
+ const VideoJob_1 = require("../models/VideoJob");
37
+ const VideoList_1 = require("../models/VideoList");
38
+ /**
39
+ *
40
+ */
41
+ class InferenceApi extends runtime.BaseAPI {
42
+ /**
43
+ * Creates request options for cancelVideo without sending the request
44
+ */
45
+ cancelVideoRequestOpts(requestParameters) {
46
+ return __awaiter(this, void 0, void 0, function* () {
47
+ if (requestParameters['id'] == null) {
48
+ throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling cancelVideo().');
49
+ }
50
+ const queryParameters = {};
51
+ const headerParameters = {};
52
+ if (this.configuration && this.configuration.accessToken) {
53
+ const token = this.configuration.accessToken;
54
+ const tokenString = yield token("bearerAuth", []);
55
+ if (tokenString) {
56
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
57
+ }
58
+ }
59
+ let urlPath = `/videos/{id}/cancel`;
60
+ urlPath = urlPath.replace('{id}', encodeURIComponent(String(requestParameters['id'])));
61
+ return {
62
+ path: urlPath,
63
+ method: 'POST',
64
+ headers: headerParameters,
65
+ query: queryParameters,
66
+ };
67
+ });
68
+ }
69
+ /**
70
+ * Cancel a video generation job
71
+ */
72
+ cancelVideoRaw(requestParameters, initOverrides) {
73
+ return __awaiter(this, void 0, void 0, function* () {
74
+ const requestOptions = yield this.cancelVideoRequestOpts(requestParameters);
75
+ const response = yield this.request(requestOptions, initOverrides);
76
+ return new runtime.JSONApiResponse(response, (jsonValue) => (0, VideoJob_1.VideoJobFromJSON)(jsonValue));
77
+ });
78
+ }
79
+ /**
80
+ * Cancel a video generation job
81
+ */
82
+ cancelVideo(requestParameters, initOverrides) {
83
+ return __awaiter(this, void 0, void 0, function* () {
84
+ const response = yield this.cancelVideoRaw(requestParameters, initOverrides);
85
+ return yield response.value();
86
+ });
87
+ }
88
+ /**
89
+ * Creates request options for createChatCompletion without sending the request
90
+ */
91
+ createChatCompletionRequestOpts(requestParameters) {
92
+ return __awaiter(this, void 0, void 0, function* () {
93
+ if (requestParameters['chatCompletionRequest'] == null) {
94
+ throw new runtime.RequiredError('chatCompletionRequest', 'Required parameter "chatCompletionRequest" was null or undefined when calling createChatCompletion().');
95
+ }
96
+ const queryParameters = {};
97
+ const headerParameters = {};
98
+ headerParameters['Content-Type'] = 'application/json';
99
+ if (this.configuration && this.configuration.accessToken) {
100
+ const token = this.configuration.accessToken;
101
+ const tokenString = yield token("bearerAuth", []);
102
+ if (tokenString) {
103
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
104
+ }
105
+ }
106
+ let urlPath = `/chat/completions`;
107
+ return {
108
+ path: urlPath,
109
+ method: 'POST',
110
+ headers: headerParameters,
111
+ query: queryParameters,
112
+ body: (0, ChatCompletionRequest_1.ChatCompletionRequestToJSON)(requestParameters['chatCompletionRequest']),
113
+ };
114
+ });
115
+ }
116
+ /**
117
+ * Create a chat completion (OpenAI-compatible)
118
+ */
119
+ createChatCompletionRaw(requestParameters, initOverrides) {
120
+ return __awaiter(this, void 0, void 0, function* () {
121
+ const requestOptions = yield this.createChatCompletionRequestOpts(requestParameters);
122
+ const response = yield this.request(requestOptions, initOverrides);
123
+ return new runtime.JSONApiResponse(response, (jsonValue) => (0, ChatCompletionResponse_1.ChatCompletionResponseFromJSON)(jsonValue));
124
+ });
125
+ }
126
+ /**
127
+ * Create a chat completion (OpenAI-compatible)
128
+ */
129
+ createChatCompletion(requestParameters, initOverrides) {
130
+ return __awaiter(this, void 0, void 0, function* () {
131
+ const response = yield this.createChatCompletionRaw(requestParameters, initOverrides);
132
+ return yield response.value();
133
+ });
134
+ }
135
+ /**
136
+ * Creates request options for createEmbeddings without sending the request
137
+ */
138
+ createEmbeddingsRequestOpts(requestParameters) {
139
+ return __awaiter(this, void 0, void 0, function* () {
140
+ if (requestParameters['embeddingsRequest'] == null) {
141
+ throw new runtime.RequiredError('embeddingsRequest', 'Required parameter "embeddingsRequest" was null or undefined when calling createEmbeddings().');
142
+ }
143
+ const queryParameters = {};
144
+ const headerParameters = {};
145
+ headerParameters['Content-Type'] = 'application/json';
146
+ if (this.configuration && this.configuration.accessToken) {
147
+ const token = this.configuration.accessToken;
148
+ const tokenString = yield token("bearerAuth", []);
149
+ if (tokenString) {
150
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
151
+ }
152
+ }
153
+ let urlPath = `/embeddings`;
154
+ return {
155
+ path: urlPath,
156
+ method: 'POST',
157
+ headers: headerParameters,
158
+ query: queryParameters,
159
+ body: (0, EmbeddingsRequest_1.EmbeddingsRequestToJSON)(requestParameters['embeddingsRequest']),
160
+ };
161
+ });
162
+ }
163
+ /**
164
+ * Synchronous text embeddings. Accepts a single string or an array of up to 2048 strings, bounded so the response stays under 64 MiB (about 680 inputs at 4096 dimensions; fewer at a larger `dimensions` value) — over-limit requests are rejected with 400 before any processing. Returns one float vector per input, in request order. Billed on the upstream\'s reported prompt tokens at the model\'s listed input rate, rounded up to the next whole cent per request; an embeddings call emits no completion tokens, so `usage` carries `prompt_tokens` and `total_tokens` only. `encoding_format` accepts only `float` — a value of `base64` is rejected with `unsupported_parameter`. A chat model id on this route returns 404 `model_not_found`: the id is valid, but not on this surface.
165
+ * Create embeddings (OpenAI-compatible)
166
+ */
167
+ createEmbeddingsRaw(requestParameters, initOverrides) {
168
+ return __awaiter(this, void 0, void 0, function* () {
169
+ const requestOptions = yield this.createEmbeddingsRequestOpts(requestParameters);
170
+ const response = yield this.request(requestOptions, initOverrides);
171
+ return new runtime.JSONApiResponse(response, (jsonValue) => (0, EmbeddingsResponse_1.EmbeddingsResponseFromJSON)(jsonValue));
172
+ });
173
+ }
174
+ /**
175
+ * Synchronous text embeddings. Accepts a single string or an array of up to 2048 strings, bounded so the response stays under 64 MiB (about 680 inputs at 4096 dimensions; fewer at a larger `dimensions` value) — over-limit requests are rejected with 400 before any processing. Returns one float vector per input, in request order. Billed on the upstream\'s reported prompt tokens at the model\'s listed input rate, rounded up to the next whole cent per request; an embeddings call emits no completion tokens, so `usage` carries `prompt_tokens` and `total_tokens` only. `encoding_format` accepts only `float` — a value of `base64` is rejected with `unsupported_parameter`. A chat model id on this route returns 404 `model_not_found`: the id is valid, but not on this surface.
176
+ * Create embeddings (OpenAI-compatible)
177
+ */
178
+ createEmbeddings(requestParameters, initOverrides) {
179
+ return __awaiter(this, void 0, void 0, function* () {
180
+ const response = yield this.createEmbeddingsRaw(requestParameters, initOverrides);
181
+ return yield response.value();
182
+ });
183
+ }
184
+ /**
185
+ * Creates request options for createImage without sending the request
186
+ */
187
+ createImageRequestOpts(requestParameters) {
188
+ return __awaiter(this, void 0, void 0, function* () {
189
+ if (requestParameters['imagesGenerationsRequest'] == null) {
190
+ throw new runtime.RequiredError('imagesGenerationsRequest', 'Required parameter "imagesGenerationsRequest" was null or undefined when calling createImage().');
191
+ }
192
+ const queryParameters = {};
193
+ const headerParameters = {};
194
+ headerParameters['Content-Type'] = 'application/json';
195
+ if (requestParameters['idempotencyKey'] != null) {
196
+ headerParameters['Idempotency-Key'] = String(requestParameters['idempotencyKey']);
197
+ }
198
+ if (this.configuration && this.configuration.accessToken) {
199
+ const token = this.configuration.accessToken;
200
+ const tokenString = yield token("bearerAuth", []);
201
+ if (tokenString) {
202
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
203
+ }
204
+ }
205
+ let urlPath = `/images/generations`;
206
+ return {
207
+ path: urlPath,
208
+ method: 'POST',
209
+ headers: headerParameters,
210
+ query: queryParameters,
211
+ body: (0, ImagesGenerationsRequest_1.ImagesGenerationsRequestToJSON)(requestParameters['imagesGenerationsRequest']),
212
+ };
213
+ });
214
+ }
215
+ /**
216
+ * Synchronous text-to-image generation. Returns base64-encoded images only (`response_format` is restricted to `b64_json`); a value of `url` is rejected with `invalid_request_error` until S3-backed URL delivery lands. Pass an `Idempotency-Key` header to make a retried request replay the original response without a second charge.
217
+ * Create image (OpenAI-compatible)
218
+ */
219
+ createImageRaw(requestParameters, initOverrides) {
220
+ return __awaiter(this, void 0, void 0, function* () {
221
+ const requestOptions = yield this.createImageRequestOpts(requestParameters);
222
+ const response = yield this.request(requestOptions, initOverrides);
223
+ return new runtime.JSONApiResponse(response, (jsonValue) => (0, ImagesResponse_1.ImagesResponseFromJSON)(jsonValue));
224
+ });
225
+ }
226
+ /**
227
+ * Synchronous text-to-image generation. Returns base64-encoded images only (`response_format` is restricted to `b64_json`); a value of `url` is rejected with `invalid_request_error` until S3-backed URL delivery lands. Pass an `Idempotency-Key` header to make a retried request replay the original response without a second charge.
228
+ * Create image (OpenAI-compatible)
229
+ */
230
+ createImage(requestParameters, initOverrides) {
231
+ return __awaiter(this, void 0, void 0, function* () {
232
+ const response = yield this.createImageRaw(requestParameters, initOverrides);
233
+ return yield response.value();
234
+ });
235
+ }
236
+ /**
237
+ * Creates request options for createVideo without sending the request
238
+ */
239
+ createVideoRequestOpts(requestParameters) {
240
+ return __awaiter(this, void 0, void 0, function* () {
241
+ if (requestParameters['videoCreateRequest'] == null) {
242
+ throw new runtime.RequiredError('videoCreateRequest', 'Required parameter "videoCreateRequest" was null or undefined when calling createVideo().');
243
+ }
244
+ const queryParameters = {};
245
+ const headerParameters = {};
246
+ headerParameters['Content-Type'] = 'application/json';
247
+ if (requestParameters['idempotencyKey'] != null) {
248
+ headerParameters['Idempotency-Key'] = String(requestParameters['idempotencyKey']);
249
+ }
250
+ if (this.configuration && this.configuration.accessToken) {
251
+ const token = this.configuration.accessToken;
252
+ const tokenString = yield token("bearerAuth", []);
253
+ if (tokenString) {
254
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
255
+ }
256
+ }
257
+ let urlPath = `/videos`;
258
+ return {
259
+ path: urlPath,
260
+ method: 'POST',
261
+ headers: headerParameters,
262
+ query: queryParameters,
263
+ body: (0, VideoCreateRequest_1.VideoCreateRequestToJSON)(requestParameters['videoCreateRequest']),
264
+ };
265
+ });
266
+ }
267
+ /**
268
+ * Submit an asynchronous text-to-video generation job. Returns a job object with status `queued`; poll GET /videos/{id} until `completed`, then stream the result from GET /videos/{id}/content. Pass an `Idempotency-Key` header to make a retried request replay the original response without a second charge.
269
+ * Create a video generation job (async)
270
+ */
271
+ createVideoRaw(requestParameters, initOverrides) {
272
+ return __awaiter(this, void 0, void 0, function* () {
273
+ const requestOptions = yield this.createVideoRequestOpts(requestParameters);
274
+ const response = yield this.request(requestOptions, initOverrides);
275
+ return new runtime.JSONApiResponse(response, (jsonValue) => (0, VideoJob_1.VideoJobFromJSON)(jsonValue));
276
+ });
277
+ }
278
+ /**
279
+ * Submit an asynchronous text-to-video generation job. Returns a job object with status `queued`; poll GET /videos/{id} until `completed`, then stream the result from GET /videos/{id}/content. Pass an `Idempotency-Key` header to make a retried request replay the original response without a second charge.
280
+ * Create a video generation job (async)
281
+ */
282
+ createVideo(requestParameters, initOverrides) {
283
+ return __awaiter(this, void 0, void 0, function* () {
284
+ const response = yield this.createVideoRaw(requestParameters, initOverrides);
285
+ return yield response.value();
286
+ });
287
+ }
288
+ /**
289
+ * Creates request options for getModel without sending the request
290
+ */
291
+ getModelRequestOpts(requestParameters) {
292
+ return __awaiter(this, void 0, void 0, function* () {
293
+ if (requestParameters['id'] == null) {
294
+ throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling getModel().');
295
+ }
296
+ const queryParameters = {};
297
+ const headerParameters = {};
298
+ if (this.configuration && this.configuration.accessToken) {
299
+ const token = this.configuration.accessToken;
300
+ const tokenString = yield token("bearerAuth", []);
301
+ if (tokenString) {
302
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
303
+ }
304
+ }
305
+ let urlPath = `/models/{id}`;
306
+ urlPath = urlPath.replace('{id}', encodeURIComponent(String(requestParameters['id'])));
307
+ return {
308
+ path: urlPath,
309
+ method: 'GET',
310
+ headers: headerParameters,
311
+ query: queryParameters,
312
+ };
313
+ });
314
+ }
315
+ /**
316
+ * Get a specific model (OpenAI-compatible)
317
+ */
318
+ getModelRaw(requestParameters, initOverrides) {
319
+ return __awaiter(this, void 0, void 0, function* () {
320
+ const requestOptions = yield this.getModelRequestOpts(requestParameters);
321
+ const response = yield this.request(requestOptions, initOverrides);
322
+ return new runtime.JSONApiResponse(response, (jsonValue) => (0, Model_1.ModelFromJSON)(jsonValue));
323
+ });
324
+ }
325
+ /**
326
+ * Get a specific model (OpenAI-compatible)
327
+ */
328
+ getModel(requestParameters, initOverrides) {
329
+ return __awaiter(this, void 0, void 0, function* () {
330
+ const response = yield this.getModelRaw(requestParameters, initOverrides);
331
+ return yield response.value();
332
+ });
333
+ }
334
+ /**
335
+ * Creates request options for getVideo without sending the request
336
+ */
337
+ getVideoRequestOpts(requestParameters) {
338
+ return __awaiter(this, void 0, void 0, function* () {
339
+ if (requestParameters['id'] == null) {
340
+ throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling getVideo().');
341
+ }
342
+ const queryParameters = {};
343
+ const headerParameters = {};
344
+ if (this.configuration && this.configuration.accessToken) {
345
+ const token = this.configuration.accessToken;
346
+ const tokenString = yield token("bearerAuth", []);
347
+ if (tokenString) {
348
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
349
+ }
350
+ }
351
+ let urlPath = `/videos/{id}`;
352
+ urlPath = urlPath.replace('{id}', encodeURIComponent(String(requestParameters['id'])));
353
+ return {
354
+ path: urlPath,
355
+ method: 'GET',
356
+ headers: headerParameters,
357
+ query: queryParameters,
358
+ };
359
+ });
360
+ }
361
+ /**
362
+ * Get a video generation job
363
+ */
364
+ getVideoRaw(requestParameters, initOverrides) {
365
+ return __awaiter(this, void 0, void 0, function* () {
366
+ const requestOptions = yield this.getVideoRequestOpts(requestParameters);
367
+ const response = yield this.request(requestOptions, initOverrides);
368
+ return new runtime.JSONApiResponse(response, (jsonValue) => (0, VideoJob_1.VideoJobFromJSON)(jsonValue));
369
+ });
370
+ }
371
+ /**
372
+ * Get a video generation job
373
+ */
374
+ getVideo(requestParameters, initOverrides) {
375
+ return __awaiter(this, void 0, void 0, function* () {
376
+ const response = yield this.getVideoRaw(requestParameters, initOverrides);
377
+ return yield response.value();
378
+ });
379
+ }
380
+ /**
381
+ * Creates request options for getVideoContent without sending the request
382
+ */
383
+ getVideoContentRequestOpts(requestParameters) {
384
+ return __awaiter(this, void 0, void 0, function* () {
385
+ if (requestParameters['id'] == null) {
386
+ throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling getVideoContent().');
387
+ }
388
+ const queryParameters = {};
389
+ const headerParameters = {};
390
+ if (this.configuration && this.configuration.accessToken) {
391
+ const token = this.configuration.accessToken;
392
+ const tokenString = yield token("bearerAuth", []);
393
+ if (tokenString) {
394
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
395
+ }
396
+ }
397
+ let urlPath = `/videos/{id}/content`;
398
+ urlPath = urlPath.replace('{id}', encodeURIComponent(String(requestParameters['id'])));
399
+ return {
400
+ path: urlPath,
401
+ method: 'GET',
402
+ headers: headerParameters,
403
+ query: queryParameters,
404
+ };
405
+ });
406
+ }
407
+ /**
408
+ * Streams the generated MP4 for a completed job. Returns 410 Gone once the artifact has expired (24h retention).
409
+ * Download a completed video artifact
410
+ */
411
+ getVideoContentRaw(requestParameters, initOverrides) {
412
+ return __awaiter(this, void 0, void 0, function* () {
413
+ const requestOptions = yield this.getVideoContentRequestOpts(requestParameters);
414
+ const response = yield this.request(requestOptions, initOverrides);
415
+ return new runtime.BlobApiResponse(response);
416
+ });
417
+ }
418
+ /**
419
+ * Streams the generated MP4 for a completed job. Returns 410 Gone once the artifact has expired (24h retention).
420
+ * Download a completed video artifact
421
+ */
422
+ getVideoContent(requestParameters, initOverrides) {
423
+ return __awaiter(this, void 0, void 0, function* () {
424
+ const response = yield this.getVideoContentRaw(requestParameters, initOverrides);
425
+ return yield response.value();
426
+ });
427
+ }
428
+ /**
429
+ * Creates request options for listModels without sending the request
430
+ */
431
+ listModelsRequestOpts(requestParameters) {
432
+ return __awaiter(this, void 0, void 0, function* () {
433
+ const queryParameters = {};
434
+ if (requestParameters['modality'] != null) {
435
+ queryParameters['modality'] = requestParameters['modality'];
436
+ }
437
+ const headerParameters = {};
438
+ if (this.configuration && this.configuration.accessToken) {
439
+ const token = this.configuration.accessToken;
440
+ const tokenString = yield token("bearerAuth", []);
441
+ if (tokenString) {
442
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
443
+ }
444
+ }
445
+ let urlPath = `/models`;
446
+ return {
447
+ path: urlPath,
448
+ method: 'GET',
449
+ headers: headerParameters,
450
+ query: queryParameters,
451
+ };
452
+ });
453
+ }
454
+ /**
455
+ * List available models (OpenAI-compatible)
456
+ */
457
+ listModelsRaw(requestParameters, initOverrides) {
458
+ return __awaiter(this, void 0, void 0, function* () {
459
+ const requestOptions = yield this.listModelsRequestOpts(requestParameters);
460
+ const response = yield this.request(requestOptions, initOverrides);
461
+ return new runtime.JSONApiResponse(response, (jsonValue) => (0, ModelList_1.ModelListFromJSON)(jsonValue));
462
+ });
463
+ }
464
+ /**
465
+ * List available models (OpenAI-compatible)
466
+ */
467
+ listModels() {
468
+ return __awaiter(this, arguments, void 0, function* (requestParameters = {}, initOverrides) {
469
+ const response = yield this.listModelsRaw(requestParameters, initOverrides);
470
+ return yield response.value();
471
+ });
472
+ }
473
+ /**
474
+ * Creates request options for listVideos without sending the request
475
+ */
476
+ listVideosRequestOpts(requestParameters) {
477
+ return __awaiter(this, void 0, void 0, function* () {
478
+ const queryParameters = {};
479
+ if (requestParameters['after'] != null) {
480
+ queryParameters['after'] = requestParameters['after'];
481
+ }
482
+ if (requestParameters['limit'] != null) {
483
+ queryParameters['limit'] = requestParameters['limit'];
484
+ }
485
+ const headerParameters = {};
486
+ if (this.configuration && this.configuration.accessToken) {
487
+ const token = this.configuration.accessToken;
488
+ const tokenString = yield token("bearerAuth", []);
489
+ if (tokenString) {
490
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
491
+ }
492
+ }
493
+ let urlPath = `/videos`;
494
+ return {
495
+ path: urlPath,
496
+ method: 'GET',
497
+ headers: headerParameters,
498
+ query: queryParameters,
499
+ };
500
+ });
501
+ }
502
+ /**
503
+ * List video generation jobs
504
+ */
505
+ listVideosRaw(requestParameters, initOverrides) {
506
+ return __awaiter(this, void 0, void 0, function* () {
507
+ const requestOptions = yield this.listVideosRequestOpts(requestParameters);
508
+ const response = yield this.request(requestOptions, initOverrides);
509
+ return new runtime.JSONApiResponse(response, (jsonValue) => (0, VideoList_1.VideoListFromJSON)(jsonValue));
510
+ });
511
+ }
512
+ /**
513
+ * List video generation jobs
514
+ */
515
+ listVideos() {
516
+ return __awaiter(this, arguments, void 0, function* (requestParameters = {}, initOverrides) {
517
+ const response = yield this.listVideosRaw(requestParameters, initOverrides);
518
+ return yield response.value();
519
+ });
520
+ }
521
+ }
522
+ exports.InferenceApi = InferenceApi;
523
+ /**
524
+ * @export
525
+ */
526
+ exports.ListModelsModalityEnum = {
527
+ Chat: 'chat',
528
+ Image: 'image',
529
+ Video: 'video',
530
+ Embedding: 'embedding'
531
+ };
@@ -0,0 +1,44 @@
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 * as runtime from '../runtime';
13
+ import { type GetHealth200Response } from '../models/GetHealth200Response';
14
+ /**
15
+ *
16
+ */
17
+ export declare class MetaApi extends runtime.BaseAPI {
18
+ /**
19
+ * Creates request options for getHealth without sending the request
20
+ */
21
+ getHealthRequestOpts(): Promise<runtime.RequestOpts>;
22
+ /**
23
+ * Liveness probe
24
+ */
25
+ getHealthRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GetHealth200Response>>;
26
+ /**
27
+ * Liveness probe
28
+ */
29
+ getHealth(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GetHealth200Response>;
30
+ /**
31
+ * Creates request options for getOpenApiSpec without sending the request
32
+ */
33
+ getOpenApiSpecRequestOpts(): Promise<runtime.RequestOpts>;
34
+ /**
35
+ * 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.
36
+ * OpenAPI 3.1 specification
37
+ */
38
+ getOpenApiSpecRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<object>>;
39
+ /**
40
+ * 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.
41
+ * OpenAPI 3.1 specification
42
+ */
43
+ getOpenApiSpec(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<object>;
44
+ }
@@ -0,0 +1,105 @@
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
+ 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.MetaApi = void 0;
26
+ const runtime = require("../runtime");
27
+ const GetHealth200Response_1 = require("../models/GetHealth200Response");
28
+ /**
29
+ *
30
+ */
31
+ class MetaApi extends runtime.BaseAPI {
32
+ /**
33
+ * Creates request options for getHealth without sending the request
34
+ */
35
+ getHealthRequestOpts() {
36
+ return __awaiter(this, void 0, void 0, function* () {
37
+ const queryParameters = {};
38
+ const headerParameters = {};
39
+ let urlPath = `/health`;
40
+ return {
41
+ path: urlPath,
42
+ method: 'GET',
43
+ headers: headerParameters,
44
+ query: queryParameters,
45
+ };
46
+ });
47
+ }
48
+ /**
49
+ * Liveness probe
50
+ */
51
+ getHealthRaw(initOverrides) {
52
+ return __awaiter(this, void 0, void 0, function* () {
53
+ const requestOptions = yield this.getHealthRequestOpts();
54
+ const response = yield this.request(requestOptions, initOverrides);
55
+ return new runtime.JSONApiResponse(response, (jsonValue) => (0, GetHealth200Response_1.GetHealth200ResponseFromJSON)(jsonValue));
56
+ });
57
+ }
58
+ /**
59
+ * Liveness probe
60
+ */
61
+ getHealth(initOverrides) {
62
+ return __awaiter(this, void 0, void 0, function* () {
63
+ const response = yield this.getHealthRaw(initOverrides);
64
+ return yield response.value();
65
+ });
66
+ }
67
+ /**
68
+ * Creates request options for getOpenApiSpec without sending the request
69
+ */
70
+ getOpenApiSpecRequestOpts() {
71
+ return __awaiter(this, void 0, void 0, function* () {
72
+ const queryParameters = {};
73
+ const headerParameters = {};
74
+ let urlPath = `/openapi.json`;
75
+ return {
76
+ path: urlPath,
77
+ method: 'GET',
78
+ headers: headerParameters,
79
+ query: queryParameters,
80
+ };
81
+ });
82
+ }
83
+ /**
84
+ * 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.
85
+ * OpenAPI 3.1 specification
86
+ */
87
+ getOpenApiSpecRaw(initOverrides) {
88
+ return __awaiter(this, void 0, void 0, function* () {
89
+ const requestOptions = yield this.getOpenApiSpecRequestOpts();
90
+ const response = yield this.request(requestOptions, initOverrides);
91
+ return new runtime.JSONApiResponse(response);
92
+ });
93
+ }
94
+ /**
95
+ * 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.
96
+ * OpenAPI 3.1 specification
97
+ */
98
+ getOpenApiSpec(initOverrides) {
99
+ return __awaiter(this, void 0, void 0, function* () {
100
+ const response = yield this.getOpenApiSpecRaw(initOverrides);
101
+ return yield response.value();
102
+ });
103
+ }
104
+ }
105
+ exports.MetaApi = MetaApi;