@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,503 @@
1
+ # BillingApi
2
+
3
+ All URIs are relative to *https://api.deeprelay.ai/v1*
4
+
5
+ | Method | HTTP request | Description |
6
+ |------------- | ------------- | -------------|
7
+ | [**createCryptoDeposit**](BillingApi.md#createcryptodepositoperation) | **POST** /billing/deposits/crypto | Create a stablecoin deposit |
8
+ | [**getBalance**](BillingApi.md#getbalance) | **GET** /billing/balance | Get the org credit balance |
9
+ | [**getDeposit**](BillingApi.md#getdeposit) | **GET** /billing/deposits/{id} | Get one stablecoin deposit |
10
+ | [**getSpendingLimit**](BillingApi.md#getspendinglimit) | **GET** /billing/spending-limit | Get the org spending limit |
11
+ | [**getSubscription**](BillingApi.md#getsubscription) | **GET** /billing/subscription | Get the org subscription status and quota usage |
12
+ | [**listDeposits**](BillingApi.md#listdeposits) | **GET** /billing/deposits | List stablecoin deposits |
13
+ | [**updateSpendingLimit**](BillingApi.md#updatespendinglimitoperation) | **PUT** /billing/spending-limit | Set the org spending limit |
14
+
15
+
16
+
17
+ ## createCryptoDeposit
18
+
19
+ > CryptoDeposit createCryptoDeposit(createCryptoDepositRequest)
20
+
21
+ Create a stablecoin deposit
22
+
23
+ Creates a deposit intent and returns the payment address and the exact token amount to send. Requires the `billing:write` scope; any member of the organization may add funds. Send the exact `pay_amount` of `asset` on `chain` and no other network — funds sent on a different network are not detected automatically. Returns 404 when stablecoin deposits are not enabled for this deployment.
24
+
25
+ ### Example
26
+
27
+ ```ts
28
+ import {
29
+ Configuration,
30
+ BillingApi,
31
+ } from '@deeprelay/sdk';
32
+ import type { CreateCryptoDepositOperationRequest } from '@deeprelay/sdk';
33
+
34
+ async function example() {
35
+ console.log("🚀 Testing @deeprelay/sdk SDK...");
36
+ const config = new Configuration({
37
+ // Configure HTTP bearer authorization: bearerAuth
38
+ accessToken: "YOUR BEARER TOKEN",
39
+ });
40
+ const api = new BillingApi(config);
41
+
42
+ const body = {
43
+ // CreateCryptoDepositRequest
44
+ createCryptoDepositRequest: ...,
45
+ } satisfies CreateCryptoDepositOperationRequest;
46
+
47
+ try {
48
+ const data = await api.createCryptoDeposit(body);
49
+ console.log(data);
50
+ } catch (error) {
51
+ console.error(error);
52
+ }
53
+ }
54
+
55
+ // Run the test
56
+ example().catch(console.error);
57
+ ```
58
+
59
+ ### Parameters
60
+
61
+
62
+ | Name | Type | Description | Notes |
63
+ |------------- | ------------- | ------------- | -------------|
64
+ | **createCryptoDepositRequest** | [CreateCryptoDepositRequest](CreateCryptoDepositRequest.md) | | |
65
+
66
+ ### Return type
67
+
68
+ [**CryptoDeposit**](CryptoDeposit.md)
69
+
70
+ ### Authorization
71
+
72
+ [bearerAuth](../README.md#bearerAuth)
73
+
74
+ ### HTTP request headers
75
+
76
+ - **Content-Type**: `application/json`
77
+ - **Accept**: `application/json`, `application/problem+json`
78
+
79
+
80
+ ### HTTP response details
81
+ | Status code | Description | Response headers |
82
+ |-------------|-------------|------------------|
83
+ | **201** | Created | - |
84
+ | **400** | `validation-error` — `amount_cents` is below the configured minimum. `unsupported-chain-asset` — the chain/asset pair is not available. `invalid-request` — malformed JSON body. | - |
85
+ | **403** | `org-frozen` — the organization cannot add funds; contact support. | - |
86
+ | **404** | Error response (RFC 7807) | - |
87
+ | **429** | Rate limit exceeded (RFC 7807). Retry-After header indicates seconds to wait. | * Retry-After - Seconds the client should wait before retrying. <br> |
88
+ | **503** | &#x60;payment-source-unavailable&#x60; — deposits are temporarily unavailable; retry shortly. | - |
89
+ | **0** | Error response (RFC 7807) | - |
90
+
91
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
92
+
93
+
94
+ ## getBalance
95
+
96
+ > Balance getBalance()
97
+
98
+ Get the org credit balance
99
+
100
+ Returns the organization\&#39;s credit balance, its auto-pay configuration, and the live burn rate. Requires the &#x60;billing:read&#x60; scope. The organization is taken from the authenticated API key, never from a parameter. Divide &#x60;balance_cents&#x60; by &#x60;burn_cents_per_hour&#x60; for the remaining runway in hours. The quotient is undefined in three cases a caller must keep apart: &#x60;burn_cents_per_hour&#x60; is 0 (nothing running, so the balance funds unbounded idle time), it is &#x60;null&#x60; (the burn rate could not be determined — NOT the same as idle), or the balance is already at or below zero. This is the balance itself — for spend against a configured cap see &#x60;/billing/spending-limit&#x60;, and for past consumption see &#x60;/usage&#x60;.
101
+
102
+ ### Example
103
+
104
+ ```ts
105
+ import {
106
+ Configuration,
107
+ BillingApi,
108
+ } from '@deeprelay/sdk';
109
+ import type { GetBalanceRequest } from '@deeprelay/sdk';
110
+
111
+ async function example() {
112
+ console.log("🚀 Testing @deeprelay/sdk SDK...");
113
+ const config = new Configuration({
114
+ // Configure HTTP bearer authorization: bearerAuth
115
+ accessToken: "YOUR BEARER TOKEN",
116
+ });
117
+ const api = new BillingApi(config);
118
+
119
+ try {
120
+ const data = await api.getBalance();
121
+ console.log(data);
122
+ } catch (error) {
123
+ console.error(error);
124
+ }
125
+ }
126
+
127
+ // Run the test
128
+ example().catch(console.error);
129
+ ```
130
+
131
+ ### Parameters
132
+
133
+ This endpoint does not need any parameter.
134
+
135
+ ### Return type
136
+
137
+ [**Balance**](Balance.md)
138
+
139
+ ### Authorization
140
+
141
+ [bearerAuth](../README.md#bearerAuth)
142
+
143
+ ### HTTP request headers
144
+
145
+ - **Content-Type**: Not defined
146
+ - **Accept**: `application/json`, `application/problem+json`
147
+
148
+
149
+ ### HTTP response details
150
+ | Status code | Description | Response headers |
151
+ |-------------|-------------|------------------|
152
+ | **200** | OK | - |
153
+ | **429** | Rate limit exceeded (RFC 7807). Retry-After header indicates seconds to wait. | * Retry-After - Seconds the client should wait before retrying. <br> |
154
+ | **0** | Error response (RFC 7807) | - |
155
+
156
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
157
+
158
+
159
+ ## getDeposit
160
+
161
+ > CryptoDeposit getDeposit(id)
162
+
163
+ Get one stablecoin deposit
164
+
165
+ Returns a single deposit belonging to the caller\&#39;s organization. Requires the &#x60;billing:read&#x60; scope. A deposit belonging to another organization returns the same &#x60;404 deposit-not-found&#x60; as one that does not exist — deliberately, so this endpoint cannot be used to test whether a deposit id is real. Also 404 when stablecoin deposits are not enabled for this deployment.
166
+
167
+ ### Example
168
+
169
+ ```ts
170
+ import {
171
+ Configuration,
172
+ BillingApi,
173
+ } from '@deeprelay/sdk';
174
+ import type { GetDepositRequest } from '@deeprelay/sdk';
175
+
176
+ async function example() {
177
+ console.log("🚀 Testing @deeprelay/sdk SDK...");
178
+ const config = new Configuration({
179
+ // Configure HTTP bearer authorization: bearerAuth
180
+ accessToken: "YOUR BEARER TOKEN",
181
+ });
182
+ const api = new BillingApi(config);
183
+
184
+ const body = {
185
+ // string | The deposit id.
186
+ id: id_example,
187
+ } satisfies GetDepositRequest;
188
+
189
+ try {
190
+ const data = await api.getDeposit(body);
191
+ console.log(data);
192
+ } catch (error) {
193
+ console.error(error);
194
+ }
195
+ }
196
+
197
+ // Run the test
198
+ example().catch(console.error);
199
+ ```
200
+
201
+ ### Parameters
202
+
203
+
204
+ | Name | Type | Description | Notes |
205
+ |------------- | ------------- | ------------- | -------------|
206
+ | **id** | `string` | The deposit id. | [Defaults to `undefined`] |
207
+
208
+ ### Return type
209
+
210
+ [**CryptoDeposit**](CryptoDeposit.md)
211
+
212
+ ### Authorization
213
+
214
+ [bearerAuth](../README.md#bearerAuth)
215
+
216
+ ### HTTP request headers
217
+
218
+ - **Content-Type**: Not defined
219
+ - **Accept**: `application/json`, `application/problem+json`
220
+
221
+
222
+ ### HTTP response details
223
+ | Status code | Description | Response headers |
224
+ |-------------|-------------|------------------|
225
+ | **200** | OK | - |
226
+ | **404** | &#x60;deposit-not-found&#x60; — no such deposit, or it belongs to another organization. &#x60;not-found&#x60; — the feature is not enabled. | - |
227
+ | **429** | Rate limit exceeded (RFC 7807). Retry-After header indicates seconds to wait. | * Retry-After - Seconds the client should wait before retrying. <br> |
228
+ | **0** | Error response (RFC 7807) | - |
229
+
230
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
231
+
232
+
233
+ ## getSpendingLimit
234
+
235
+ > SpendingLimit getSpendingLimit()
236
+
237
+ Get the org spending limit
238
+
239
+ Returns the organization\&#39;s monthly spending limit and opt-in daily spend cap, with the current month and day spend. Requires the &#x60;billing:read&#x60; scope. Returns 404 when no limit is configured.
240
+
241
+ ### Example
242
+
243
+ ```ts
244
+ import {
245
+ Configuration,
246
+ BillingApi,
247
+ } from '@deeprelay/sdk';
248
+ import type { GetSpendingLimitRequest } from '@deeprelay/sdk';
249
+
250
+ async function example() {
251
+ console.log("🚀 Testing @deeprelay/sdk SDK...");
252
+ const config = new Configuration({
253
+ // Configure HTTP bearer authorization: bearerAuth
254
+ accessToken: "YOUR BEARER TOKEN",
255
+ });
256
+ const api = new BillingApi(config);
257
+
258
+ try {
259
+ const data = await api.getSpendingLimit();
260
+ console.log(data);
261
+ } catch (error) {
262
+ console.error(error);
263
+ }
264
+ }
265
+
266
+ // Run the test
267
+ example().catch(console.error);
268
+ ```
269
+
270
+ ### Parameters
271
+
272
+ This endpoint does not need any parameter.
273
+
274
+ ### Return type
275
+
276
+ [**SpendingLimit**](SpendingLimit.md)
277
+
278
+ ### Authorization
279
+
280
+ [bearerAuth](../README.md#bearerAuth)
281
+
282
+ ### HTTP request headers
283
+
284
+ - **Content-Type**: Not defined
285
+ - **Accept**: `application/json`, `application/problem+json`
286
+
287
+
288
+ ### HTTP response details
289
+ | Status code | Description | Response headers |
290
+ |-------------|-------------|------------------|
291
+ | **200** | OK | - |
292
+ | **404** | Error response (RFC 7807) | - |
293
+ | **429** | Rate limit exceeded (RFC 7807). Retry-After header indicates seconds to wait. | * Retry-After - Seconds the client should wait before retrying. <br> |
294
+ | **0** | Error response (RFC 7807) | - |
295
+
296
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
297
+
298
+
299
+ ## getSubscription
300
+
301
+ > Subscription getSubscription()
302
+
303
+ Get the org subscription status and quota usage
304
+
305
+ Returns the organization\&#39;s flat-tier subscription: whether it is entitled, the current billing period, the plan\&#39;s configured quota, and — for an entitled subscription — consumption against the four limits the server enforces on every request. Requires the &#x60;billing:read&#x60; scope. The organization is taken from the authenticated API key, never from a parameter. An organization that never subscribed is NOT an error. It gets 200 with &#x60;subscribed: false&#x60;, &#x60;status: \&quot;none\&quot;&#x60; and the quota the plan would provide, so a client can answer \&quot;what does the plan include\&quot; without a second endpoint and without an error path. Read &#x60;subscribed&#x60;, not &#x60;status&#x60;, to decide whether the plan applies: &#x60;status&#x60; carries the billing provider\&#39;s vocabulary, and the two can disagree — an &#x60;active&#x60; subscription just past its period end still entitles for a short grace window (renewal-webhook lag), while &#x60;past_due&#x60; and &#x60;canceled&#x60; never entitle. &#x60;usage&#x60; is present only for an entitled subscription whose meter could be read. An absent &#x60;usage&#x60; NEVER means \&quot;nothing used\&quot; — reading it as zero would report a full quota to an organization that has none left. This is the plan\&#39;s meter. For pay-as-you-go credit see &#x60;/billing/balance&#x60;, for spend against a self-set cap see &#x60;/billing/spending-limit&#x60;, and for past consumption see &#x60;/usage&#x60;.
306
+
307
+ ### Example
308
+
309
+ ```ts
310
+ import {
311
+ Configuration,
312
+ BillingApi,
313
+ } from '@deeprelay/sdk';
314
+ import type { GetSubscriptionRequest } from '@deeprelay/sdk';
315
+
316
+ async function example() {
317
+ console.log("🚀 Testing @deeprelay/sdk SDK...");
318
+ const config = new Configuration({
319
+ // Configure HTTP bearer authorization: bearerAuth
320
+ accessToken: "YOUR BEARER TOKEN",
321
+ });
322
+ const api = new BillingApi(config);
323
+
324
+ try {
325
+ const data = await api.getSubscription();
326
+ console.log(data);
327
+ } catch (error) {
328
+ console.error(error);
329
+ }
330
+ }
331
+
332
+ // Run the test
333
+ example().catch(console.error);
334
+ ```
335
+
336
+ ### Parameters
337
+
338
+ This endpoint does not need any parameter.
339
+
340
+ ### Return type
341
+
342
+ [**Subscription**](Subscription.md)
343
+
344
+ ### Authorization
345
+
346
+ [bearerAuth](../README.md#bearerAuth)
347
+
348
+ ### HTTP request headers
349
+
350
+ - **Content-Type**: Not defined
351
+ - **Accept**: `application/json`, `application/problem+json`
352
+
353
+
354
+ ### HTTP response details
355
+ | Status code | Description | Response headers |
356
+ |-------------|-------------|------------------|
357
+ | **200** | OK | - |
358
+ | **429** | Rate limit exceeded (RFC 7807). Retry-After header indicates seconds to wait. | * Retry-After - Seconds the client should wait before retrying. <br> |
359
+ | **0** | Error response (RFC 7807) | - |
360
+
361
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
362
+
363
+
364
+ ## listDeposits
365
+
366
+ > ListDeposits200Response listDeposits()
367
+
368
+ List stablecoin deposits
369
+
370
+ Returns the organization\&#39;s stablecoin deposits, newest first, capped at 50. Requires the &#x60;billing:read&#x60; scope. The organization is taken from the authenticated API key, never from a parameter. Returns 404 when stablecoin deposits are not enabled for this deployment.
371
+
372
+ ### Example
373
+
374
+ ```ts
375
+ import {
376
+ Configuration,
377
+ BillingApi,
378
+ } from '@deeprelay/sdk';
379
+ import type { ListDepositsRequest } from '@deeprelay/sdk';
380
+
381
+ async function example() {
382
+ console.log("🚀 Testing @deeprelay/sdk SDK...");
383
+ const config = new Configuration({
384
+ // Configure HTTP bearer authorization: bearerAuth
385
+ accessToken: "YOUR BEARER TOKEN",
386
+ });
387
+ const api = new BillingApi(config);
388
+
389
+ try {
390
+ const data = await api.listDeposits();
391
+ console.log(data);
392
+ } catch (error) {
393
+ console.error(error);
394
+ }
395
+ }
396
+
397
+ // Run the test
398
+ example().catch(console.error);
399
+ ```
400
+
401
+ ### Parameters
402
+
403
+ This endpoint does not need any parameter.
404
+
405
+ ### Return type
406
+
407
+ [**ListDeposits200Response**](ListDeposits200Response.md)
408
+
409
+ ### Authorization
410
+
411
+ [bearerAuth](../README.md#bearerAuth)
412
+
413
+ ### HTTP request headers
414
+
415
+ - **Content-Type**: Not defined
416
+ - **Accept**: `application/json`, `application/problem+json`
417
+
418
+
419
+ ### HTTP response details
420
+ | Status code | Description | Response headers |
421
+ |-------------|-------------|------------------|
422
+ | **200** | OK | - |
423
+ | **404** | Error response (RFC 7807) | - |
424
+ | **429** | Rate limit exceeded (RFC 7807). Retry-After header indicates seconds to wait. | * Retry-After - Seconds the client should wait before retrying. <br> |
425
+ | **0** | Error response (RFC 7807) | - |
426
+
427
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
428
+
429
+
430
+ ## updateSpendingLimit
431
+
432
+ > SpendingLimit updateSpendingLimit(updateSpendingLimitRequest)
433
+
434
+ Set the org spending limit
435
+
436
+ Sets the monthly spending limit and optionally sets or clears the opt-in daily spend cap. Requires the &#x60;billing:write&#x60; scope AND org-admin privileges (a non-admin member gets 403). &#x60;daily_limit_dollars&#x60; uses pointer semantics: omit to leave the cap unchanged, 0 to clear it, a positive value to set it.
437
+
438
+ ### Example
439
+
440
+ ```ts
441
+ import {
442
+ Configuration,
443
+ BillingApi,
444
+ } from '@deeprelay/sdk';
445
+ import type { UpdateSpendingLimitOperationRequest } from '@deeprelay/sdk';
446
+
447
+ async function example() {
448
+ console.log("🚀 Testing @deeprelay/sdk SDK...");
449
+ const config = new Configuration({
450
+ // Configure HTTP bearer authorization: bearerAuth
451
+ accessToken: "YOUR BEARER TOKEN",
452
+ });
453
+ const api = new BillingApi(config);
454
+
455
+ const body = {
456
+ // UpdateSpendingLimitRequest
457
+ updateSpendingLimitRequest: ...,
458
+ } satisfies UpdateSpendingLimitOperationRequest;
459
+
460
+ try {
461
+ const data = await api.updateSpendingLimit(body);
462
+ console.log(data);
463
+ } catch (error) {
464
+ console.error(error);
465
+ }
466
+ }
467
+
468
+ // Run the test
469
+ example().catch(console.error);
470
+ ```
471
+
472
+ ### Parameters
473
+
474
+
475
+ | Name | Type | Description | Notes |
476
+ |------------- | ------------- | ------------- | -------------|
477
+ | **updateSpendingLimitRequest** | [UpdateSpendingLimitRequest](UpdateSpendingLimitRequest.md) | | |
478
+
479
+ ### Return type
480
+
481
+ [**SpendingLimit**](SpendingLimit.md)
482
+
483
+ ### Authorization
484
+
485
+ [bearerAuth](../README.md#bearerAuth)
486
+
487
+ ### HTTP request headers
488
+
489
+ - **Content-Type**: `application/json`
490
+ - **Accept**: `application/json`, `application/problem+json`
491
+
492
+
493
+ ### HTTP response details
494
+ | Status code | Description | Response headers |
495
+ |-------------|-------------|------------------|
496
+ | **200** | OK | - |
497
+ | **403** | Error response (RFC 7807) | - |
498
+ | **422** | Error response (RFC 7807) | - |
499
+ | **429** | Rate limit exceeded (RFC 7807). Retry-After header indicates seconds to wait. | * Retry-After - Seconds the client should wait before retrying. <br> |
500
+ | **0** | Error response (RFC 7807) | - |
501
+
502
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
503
+
@@ -0,0 +1,38 @@
1
+
2
+ # ChatChoice
3
+
4
+
5
+ ## Properties
6
+
7
+ Name | Type
8
+ ------------ | -------------
9
+ `index` | number
10
+ `message` | [ChatMessage](ChatMessage.md)
11
+ `finishReason` | string
12
+
13
+ ## Example
14
+
15
+ ```typescript
16
+ import type { ChatChoice } from '@deeprelay/sdk'
17
+
18
+ // TODO: Update the object below with actual values
19
+ const example = {
20
+ "index": null,
21
+ "message": null,
22
+ "finishReason": null,
23
+ } satisfies ChatChoice
24
+
25
+ console.log(example)
26
+
27
+ // Convert the instance to a JSON string
28
+ const exampleJSON: string = JSON.stringify(example)
29
+ console.log(exampleJSON)
30
+
31
+ // Parse the JSON string back to an object
32
+ const exampleParsed = JSON.parse(exampleJSON) as ChatChoice
33
+ console.log(exampleParsed)
34
+ ```
35
+
36
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
37
+
38
+
@@ -0,0 +1,44 @@
1
+
2
+ # ChatCompletionRequest
3
+
4
+
5
+ ## Properties
6
+
7
+ Name | Type
8
+ ------------ | -------------
9
+ `model` | string
10
+ `messages` | [Array&lt;ChatMessage&gt;](ChatMessage.md)
11
+ `temperature` | number
12
+ `maxTokens` | number
13
+ `stream` | boolean
14
+ `streamOptions` | [StreamOptions](StreamOptions.md)
15
+
16
+ ## Example
17
+
18
+ ```typescript
19
+ import type { ChatCompletionRequest } from '@deeprelay/sdk'
20
+
21
+ // TODO: Update the object below with actual values
22
+ const example = {
23
+ "model": null,
24
+ "messages": null,
25
+ "temperature": null,
26
+ "maxTokens": null,
27
+ "stream": null,
28
+ "streamOptions": null,
29
+ } satisfies ChatCompletionRequest
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 ChatCompletionRequest
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,44 @@
1
+
2
+ # ChatCompletionResponse
3
+
4
+
5
+ ## Properties
6
+
7
+ Name | Type
8
+ ------------ | -------------
9
+ `id` | string
10
+ `object` | string
11
+ `created` | number
12
+ `model` | string
13
+ `choices` | [Array&lt;ChatChoice&gt;](ChatChoice.md)
14
+ `usage` | [Usage](Usage.md)
15
+
16
+ ## Example
17
+
18
+ ```typescript
19
+ import type { ChatCompletionResponse } from '@deeprelay/sdk'
20
+
21
+ // TODO: Update the object below with actual values
22
+ const example = {
23
+ "id": null,
24
+ "object": null,
25
+ "created": null,
26
+ "model": null,
27
+ "choices": null,
28
+ "usage": null,
29
+ } satisfies ChatCompletionResponse
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 ChatCompletionResponse
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,36 @@
1
+
2
+ # ChatMessage
3
+
4
+
5
+ ## Properties
6
+
7
+ Name | Type
8
+ ------------ | -------------
9
+ `role` | string
10
+ `content` | string
11
+
12
+ ## Example
13
+
14
+ ```typescript
15
+ import type { ChatMessage } from '@deeprelay/sdk'
16
+
17
+ // TODO: Update the object below with actual values
18
+ const example = {
19
+ "role": null,
20
+ "content": null,
21
+ } satisfies ChatMessage
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 ChatMessage
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,38 @@
1
+
2
+ # CreateCryptoDepositRequest
3
+
4
+
5
+ ## Properties
6
+
7
+ Name | Type
8
+ ------------ | -------------
9
+ `amountCents` | number
10
+ `chain` | string
11
+ `asset` | string
12
+
13
+ ## Example
14
+
15
+ ```typescript
16
+ import type { CreateCryptoDepositRequest } from '@deeprelay/sdk'
17
+
18
+ // TODO: Update the object below with actual values
19
+ const example = {
20
+ "amountCents": null,
21
+ "chain": null,
22
+ "asset": null,
23
+ } satisfies CreateCryptoDepositRequest
24
+
25
+ console.log(example)
26
+
27
+ // Convert the instance to a JSON string
28
+ const exampleJSON: string = JSON.stringify(example)
29
+ console.log(exampleJSON)
30
+
31
+ // Parse the JSON string back to an object
32
+ const exampleParsed = JSON.parse(exampleJSON) as CreateCryptoDepositRequest
33
+ console.log(exampleParsed)
34
+ ```
35
+
36
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
37
+
38
+