@vibesdotdev/integrations-digitalocean 0.0.0-stage → 1.0.0-rc.2

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 (323) hide show
  1. package/LICENSE +126 -0
  2. package/README.md +78 -2
  3. package/dist/ai/index.d.ts +4 -0
  4. package/dist/ai/index.d.ts.map +1 -0
  5. package/dist/ai/index.js +4 -0
  6. package/dist/ai/index.js.map +1 -0
  7. package/dist/ai/inference.transport.impl.d.ts +5 -0
  8. package/dist/ai/inference.transport.impl.d.ts.map +1 -0
  9. package/dist/ai/inference.transport.impl.js +54 -0
  10. package/dist/ai/inference.transport.impl.js.map +1 -0
  11. package/dist/ai/provider.plugin.d.ts +6 -0
  12. package/dist/ai/provider.plugin.d.ts.map +1 -0
  13. package/dist/ai/provider.plugin.js +126 -0
  14. package/dist/ai/provider.plugin.js.map +1 -0
  15. package/dist/ai/providers/cloud/frontier/digitalocean/config/schemas/index.d.ts +62 -0
  16. package/dist/ai/providers/cloud/frontier/digitalocean/config/schemas/index.d.ts.map +1 -0
  17. package/dist/ai/providers/cloud/frontier/digitalocean/config/schemas/index.js +73 -0
  18. package/dist/ai/providers/cloud/frontier/digitalocean/config/schemas/index.js.map +1 -0
  19. package/dist/ai/providers/cloud/frontier/digitalocean/index.d.ts +2 -0
  20. package/dist/ai/providers/cloud/frontier/digitalocean/index.d.ts.map +1 -0
  21. package/dist/ai/providers/cloud/frontier/digitalocean/index.js +2 -0
  22. package/dist/ai/providers/cloud/frontier/digitalocean/index.js.map +1 -0
  23. package/dist/ai/providers/cloud/frontier/digitalocean/provider.digitalocean.descriptor.d.ts +183 -0
  24. package/dist/ai/providers/cloud/frontier/digitalocean/provider.digitalocean.descriptor.d.ts.map +1 -0
  25. package/dist/ai/providers/cloud/frontier/digitalocean/provider.digitalocean.descriptor.js +66 -0
  26. package/dist/ai/providers/cloud/frontier/digitalocean/provider.digitalocean.descriptor.js.map +1 -0
  27. package/dist/apps/api-client.d.ts +45 -0
  28. package/dist/apps/api-client.d.ts.map +1 -0
  29. package/dist/apps/api-client.js +47 -0
  30. package/dist/apps/api-client.js.map +1 -0
  31. package/dist/apps/build-spec.d.ts +44 -0
  32. package/dist/apps/build-spec.d.ts.map +1 -0
  33. package/dist/apps/build-spec.js +463 -0
  34. package/dist/apps/build-spec.js.map +1 -0
  35. package/dist/apps/deploy-client.d.ts +42 -0
  36. package/dist/apps/deploy-client.d.ts.map +1 -0
  37. package/dist/apps/deploy-client.js +300 -0
  38. package/dist/apps/deploy-client.js.map +1 -0
  39. package/dist/apps/index.d.ts +5 -0
  40. package/dist/apps/index.d.ts.map +1 -0
  41. package/dist/apps/index.js +4 -0
  42. package/dist/apps/index.js.map +1 -0
  43. package/dist/apps/types.d.ts +204 -0
  44. package/dist/apps/types.d.ts.map +1 -0
  45. package/dist/apps/types.js +13 -0
  46. package/dist/apps/types.js.map +1 -0
  47. package/dist/client/control-plane.d.ts +49 -0
  48. package/dist/client/control-plane.d.ts.map +1 -0
  49. package/dist/client/control-plane.js +85 -0
  50. package/dist/client/control-plane.js.map +1 -0
  51. package/dist/client/do-fetch.d.ts +41 -0
  52. package/dist/client/do-fetch.d.ts.map +1 -0
  53. package/dist/client/do-fetch.js +199 -0
  54. package/dist/client/do-fetch.js.map +1 -0
  55. package/dist/client/errors.d.ts +6 -0
  56. package/dist/client/errors.d.ts.map +1 -0
  57. package/dist/client/errors.js +34 -0
  58. package/dist/client/errors.js.map +1 -0
  59. package/dist/client/factory.d.ts +53 -0
  60. package/dist/client/factory.d.ts.map +1 -0
  61. package/dist/client/factory.js +220 -0
  62. package/dist/client/factory.js.map +1 -0
  63. package/dist/client/helpers.d.ts +5 -0
  64. package/dist/client/helpers.d.ts.map +1 -0
  65. package/dist/client/helpers.js +8 -0
  66. package/dist/client/helpers.js.map +1 -0
  67. package/dist/client/index.d.ts +12 -0
  68. package/dist/client/index.d.ts.map +1 -0
  69. package/dist/client/index.js +10 -0
  70. package/dist/client/index.js.map +1 -0
  71. package/dist/client/paginated.d.ts +19 -0
  72. package/dist/client/paginated.d.ts.map +1 -0
  73. package/dist/client/paginated.js +56 -0
  74. package/dist/client/paginated.js.map +1 -0
  75. package/dist/client/retry.d.ts +34 -0
  76. package/dist/client/retry.d.ts.map +1 -0
  77. package/dist/client/retry.js +53 -0
  78. package/dist/client/retry.js.map +1 -0
  79. package/dist/config/digitalocean.config.descriptor.d.ts +197 -0
  80. package/dist/config/digitalocean.config.descriptor.d.ts.map +1 -0
  81. package/dist/config/digitalocean.config.descriptor.js +59 -0
  82. package/dist/config/digitalocean.config.descriptor.js.map +1 -0
  83. package/dist/credentials/index.d.ts +38 -0
  84. package/dist/credentials/index.d.ts.map +1 -0
  85. package/dist/credentials/index.js +56 -0
  86. package/dist/credentials/index.js.map +1 -0
  87. package/dist/databases/index.d.ts +82 -0
  88. package/dist/databases/index.d.ts.map +1 -0
  89. package/dist/databases/index.js +57 -0
  90. package/dist/databases/index.js.map +1 -0
  91. package/dist/digitalocean-friction.policy.d.ts +29 -0
  92. package/dist/digitalocean-friction.policy.d.ts.map +1 -0
  93. package/dist/digitalocean-friction.policy.js +21 -0
  94. package/dist/digitalocean-friction.policy.js.map +1 -0
  95. package/dist/digitalocean.plugin.d.ts +3 -0
  96. package/dist/digitalocean.plugin.d.ts.map +1 -0
  97. package/dist/digitalocean.plugin.js +27 -0
  98. package/dist/digitalocean.plugin.js.map +1 -0
  99. package/dist/droplets/index.d.ts +106 -0
  100. package/dist/droplets/index.d.ts.map +1 -0
  101. package/dist/droplets/index.js +227 -0
  102. package/dist/droplets/index.js.map +1 -0
  103. package/dist/index.d.ts +35 -0
  104. package/dist/index.d.ts.map +1 -0
  105. package/dist/index.js +32 -0
  106. package/dist/index.js.map +1 -0
  107. package/dist/inference-control-plane/index.d.ts +63 -0
  108. package/dist/inference-control-plane/index.d.ts.map +1 -0
  109. package/dist/inference-control-plane/index.js +93 -0
  110. package/dist/inference-control-plane/index.js.map +1 -0
  111. package/dist/infra/billing.d.ts +26 -0
  112. package/dist/infra/billing.d.ts.map +1 -0
  113. package/dist/infra/billing.js +43 -0
  114. package/dist/infra/billing.js.map +1 -0
  115. package/dist/infra/credentials.d.ts +11 -0
  116. package/dist/infra/credentials.d.ts.map +1 -0
  117. package/dist/infra/credentials.js +15 -0
  118. package/dist/infra/credentials.js.map +1 -0
  119. package/dist/infra/deployment-provider/deploy-secrets.d.ts +10 -0
  120. package/dist/infra/deployment-provider/deploy-secrets.d.ts.map +1 -0
  121. package/dist/infra/deployment-provider/deploy-secrets.js +66 -0
  122. package/dist/infra/deployment-provider/deploy-secrets.js.map +1 -0
  123. package/dist/infra/deployment-provider/digitalocean-deployment-provider.impl.d.ts +97 -0
  124. package/dist/infra/deployment-provider/digitalocean-deployment-provider.impl.d.ts.map +1 -0
  125. package/dist/infra/deployment-provider/digitalocean-deployment-provider.impl.js +242 -0
  126. package/dist/infra/deployment-provider/digitalocean-deployment-provider.impl.js.map +1 -0
  127. package/dist/infra/deployment-provider/image-publish.d.ts +39 -0
  128. package/dist/infra/deployment-provider/image-publish.d.ts.map +1 -0
  129. package/dist/infra/deployment-provider/image-publish.js +146 -0
  130. package/dist/infra/deployment-provider/image-publish.js.map +1 -0
  131. package/dist/infra/deployment-provider.descriptor.d.ts +34 -0
  132. package/dist/infra/deployment-provider.descriptor.d.ts.map +1 -0
  133. package/dist/infra/deployment-provider.descriptor.js +9 -0
  134. package/dist/infra/deployment-provider.descriptor.js.map +1 -0
  135. package/dist/infra/digitalocean-infra.plugin.d.ts +101 -0
  136. package/dist/infra/digitalocean-infra.plugin.d.ts.map +1 -0
  137. package/dist/infra/digitalocean-infra.plugin.js +283 -0
  138. package/dist/infra/digitalocean-infra.plugin.js.map +1 -0
  139. package/dist/infra/doks/clients.d.ts +183 -0
  140. package/dist/infra/doks/clients.d.ts.map +1 -0
  141. package/dist/infra/doks/clients.js +172 -0
  142. package/dist/infra/doks/clients.js.map +1 -0
  143. package/dist/infra/doks/digitalocean.d.ts +34 -0
  144. package/dist/infra/doks/digitalocean.d.ts.map +1 -0
  145. package/dist/infra/doks/digitalocean.js +267 -0
  146. package/dist/infra/doks/digitalocean.js.map +1 -0
  147. package/dist/infra/doks/service-release-schemas.d.ts +1037 -0
  148. package/dist/infra/doks/service-release-schemas.d.ts.map +1 -0
  149. package/dist/infra/doks/service-release-schemas.js +51 -0
  150. package/dist/infra/doks/service-release-schemas.js.map +1 -0
  151. package/dist/infra/doks/service-release.d.ts +415 -0
  152. package/dist/infra/doks/service-release.d.ts.map +1 -0
  153. package/dist/infra/doks/service-release.js +3201 -0
  154. package/dist/infra/doks/service-release.js.map +1 -0
  155. package/dist/infra/doks/worker.d.ts +14 -0
  156. package/dist/infra/doks/worker.d.ts.map +1 -0
  157. package/dist/infra/doks/worker.js +343 -0
  158. package/dist/infra/doks/worker.js.map +1 -0
  159. package/dist/infra/droplet.impl.d.ts +172 -0
  160. package/dist/infra/droplet.impl.d.ts.map +1 -0
  161. package/dist/infra/droplet.impl.js +379 -0
  162. package/dist/infra/droplet.impl.js.map +1 -0
  163. package/dist/infra/functions.impl.d.ts +123 -0
  164. package/dist/infra/functions.impl.d.ts.map +1 -0
  165. package/dist/infra/functions.impl.js +202 -0
  166. package/dist/infra/functions.impl.js.map +1 -0
  167. package/dist/infra/index.d.ts +15 -0
  168. package/dist/infra/index.d.ts.map +1 -0
  169. package/dist/infra/index.js +12 -0
  170. package/dist/infra/index.js.map +1 -0
  171. package/dist/infra/inventory.d.ts +7 -0
  172. package/dist/infra/inventory.d.ts.map +1 -0
  173. package/dist/infra/inventory.js +259 -0
  174. package/dist/infra/inventory.js.map +1 -0
  175. package/dist/infra/kubernetes-log-stream.d.ts +5 -0
  176. package/dist/infra/kubernetes-log-stream.d.ts.map +1 -0
  177. package/dist/infra/kubernetes-log-stream.js +186 -0
  178. package/dist/infra/kubernetes-log-stream.js.map +1 -0
  179. package/dist/infra/kubernetes-logs.d.ts +33 -0
  180. package/dist/infra/kubernetes-logs.d.ts.map +1 -0
  181. package/dist/infra/kubernetes-logs.descriptor.d.ts +14 -0
  182. package/dist/infra/kubernetes-logs.descriptor.d.ts.map +1 -0
  183. package/dist/infra/kubernetes-logs.descriptor.js +28 -0
  184. package/dist/infra/kubernetes-logs.descriptor.js.map +1 -0
  185. package/dist/infra/kubernetes-logs.js +196 -0
  186. package/dist/infra/kubernetes-logs.js.map +1 -0
  187. package/dist/infra/utilization.d.ts +44 -0
  188. package/dist/infra/utilization.d.ts.map +1 -0
  189. package/dist/infra/utilization.js +108 -0
  190. package/dist/infra/utilization.js.map +1 -0
  191. package/dist/kubernetes/authority.d.ts +40 -0
  192. package/dist/kubernetes/authority.d.ts.map +1 -0
  193. package/dist/kubernetes/authority.js +90 -0
  194. package/dist/kubernetes/authority.js.map +1 -0
  195. package/dist/kubernetes/encoding.d.ts +4 -0
  196. package/dist/kubernetes/encoding.d.ts.map +1 -0
  197. package/dist/kubernetes/encoding.js +8 -0
  198. package/dist/kubernetes/encoding.js.map +1 -0
  199. package/dist/kubernetes/index.d.ts +105 -0
  200. package/dist/kubernetes/index.d.ts.map +1 -0
  201. package/dist/kubernetes/index.js +99 -0
  202. package/dist/kubernetes/index.js.map +1 -0
  203. package/dist/kubernetes/transport.d.ts +11 -0
  204. package/dist/kubernetes/transport.d.ts.map +1 -0
  205. package/dist/kubernetes/transport.js +27 -0
  206. package/dist/kubernetes/transport.js.map +1 -0
  207. package/dist/network/index.d.ts +24 -0
  208. package/dist/network/index.d.ts.map +1 -0
  209. package/dist/network/index.js +16 -0
  210. package/dist/network/index.js.map +1 -0
  211. package/dist/registry/index.d.ts +39 -0
  212. package/dist/registry/index.d.ts.map +1 -0
  213. package/dist/registry/index.js +20 -0
  214. package/dist/registry/index.js.map +1 -0
  215. package/dist/schemas/app-deployment.d.ts +1474 -0
  216. package/dist/schemas/app-deployment.d.ts.map +1 -0
  217. package/dist/schemas/app-deployment.js +156 -0
  218. package/dist/schemas/app-deployment.js.map +1 -0
  219. package/dist/schemas/app-platform.d.ts +755 -0
  220. package/dist/schemas/app-platform.d.ts.map +1 -0
  221. package/dist/schemas/app-platform.js +253 -0
  222. package/dist/schemas/app-platform.js.map +1 -0
  223. package/dist/schemas/cache-database.d.ts +210 -0
  224. package/dist/schemas/cache-database.d.ts.map +1 -0
  225. package/dist/schemas/cache-database.js +105 -0
  226. package/dist/schemas/cache-database.js.map +1 -0
  227. package/dist/schemas/control-plane.d.ts +456 -0
  228. package/dist/schemas/control-plane.d.ts.map +1 -0
  229. package/dist/schemas/control-plane.js +123 -0
  230. package/dist/schemas/control-plane.js.map +1 -0
  231. package/dist/schemas/credential-use.d.ts +714 -0
  232. package/dist/schemas/credential-use.d.ts.map +1 -0
  233. package/dist/schemas/credential-use.js +73 -0
  234. package/dist/schemas/credential-use.js.map +1 -0
  235. package/dist/schemas/doks-worker.d.ts +4071 -0
  236. package/dist/schemas/doks-worker.d.ts.map +1 -0
  237. package/dist/schemas/doks-worker.js +330 -0
  238. package/dist/schemas/doks-worker.js.map +1 -0
  239. package/dist/schemas/droplet.d.ts +110 -0
  240. package/dist/schemas/droplet.d.ts.map +1 -0
  241. package/dist/schemas/droplet.js +22 -0
  242. package/dist/schemas/droplet.js.map +1 -0
  243. package/dist/schemas/functions.d.ts +22 -0
  244. package/dist/schemas/functions.d.ts.map +1 -0
  245. package/dist/schemas/functions.js +25 -0
  246. package/dist/schemas/functions.js.map +1 -0
  247. package/dist/schemas/gitea-git-hosting.d.ts +20 -0
  248. package/dist/schemas/gitea-git-hosting.d.ts.map +1 -0
  249. package/dist/schemas/gitea-git-hosting.js +26 -0
  250. package/dist/schemas/gitea-git-hosting.js.map +1 -0
  251. package/dist/schemas/http.d.ts +2594 -0
  252. package/dist/schemas/http.d.ts.map +1 -0
  253. package/dist/schemas/http.js +4548 -0
  254. package/dist/schemas/http.js.map +1 -0
  255. package/dist/schemas/infra-kinds.d.ts +113 -0
  256. package/dist/schemas/infra-kinds.d.ts.map +1 -0
  257. package/dist/schemas/infra-kinds.js +93 -0
  258. package/dist/schemas/infra-kinds.js.map +1 -0
  259. package/dist/schemas/kubernetes-responses.d.ts +457 -0
  260. package/dist/schemas/kubernetes-responses.d.ts.map +1 -0
  261. package/dist/schemas/kubernetes-responses.js +681 -0
  262. package/dist/schemas/kubernetes-responses.js.map +1 -0
  263. package/dist/schemas/kubernetes.d.ts +143 -0
  264. package/dist/schemas/kubernetes.d.ts.map +1 -0
  265. package/dist/schemas/kubernetes.js +68 -0
  266. package/dist/schemas/kubernetes.js.map +1 -0
  267. package/dist/schemas/logs.d.ts +15 -0
  268. package/dist/schemas/logs.d.ts.map +1 -0
  269. package/dist/schemas/logs.js +11 -0
  270. package/dist/schemas/logs.js.map +1 -0
  271. package/dist/schemas/object-storage.d.ts +167 -0
  272. package/dist/schemas/object-storage.d.ts.map +1 -0
  273. package/dist/schemas/object-storage.js +124 -0
  274. package/dist/schemas/object-storage.js.map +1 -0
  275. package/dist/schemas/service-settings.d.ts +9 -0
  276. package/dist/schemas/service-settings.d.ts.map +1 -0
  277. package/dist/schemas/service-settings.js +21 -0
  278. package/dist/schemas/service-settings.js.map +1 -0
  279. package/dist/schemas/utilization.d.ts +57 -0
  280. package/dist/schemas/utilization.d.ts.map +1 -0
  281. package/dist/schemas/utilization.js +58 -0
  282. package/dist/schemas/utilization.js.map +1 -0
  283. package/dist/schemas/worker-status.d.ts +22 -0
  284. package/dist/schemas/worker-status.d.ts.map +1 -0
  285. package/dist/schemas/worker-status.js +14 -0
  286. package/dist/schemas/worker-status.js.map +1 -0
  287. package/dist/schemas/worker.d.ts +125 -0
  288. package/dist/schemas/worker.d.ts.map +1 -0
  289. package/dist/schemas/worker.js +129 -0
  290. package/dist/schemas/worker.js.map +1 -0
  291. package/dist/secrets/app-platform/app-credentials.impl.d.ts +14 -0
  292. package/dist/secrets/app-platform/app-credentials.impl.d.ts.map +1 -0
  293. package/dist/secrets/app-platform/app-credentials.impl.js +237 -0
  294. package/dist/secrets/app-platform/app-credentials.impl.js.map +1 -0
  295. package/dist/secrets/container-registry/image-publish-settings.descriptor.d.ts +11 -0
  296. package/dist/secrets/container-registry/image-publish-settings.descriptor.d.ts.map +1 -0
  297. package/dist/secrets/container-registry/image-publish-settings.descriptor.js +26 -0
  298. package/dist/secrets/container-registry/image-publish-settings.descriptor.js.map +1 -0
  299. package/dist/secrets/doks-secret.descriptor.d.ts +18 -0
  300. package/dist/secrets/doks-secret.descriptor.d.ts.map +1 -0
  301. package/dist/secrets/doks-secret.descriptor.js +35 -0
  302. package/dist/secrets/doks-secret.descriptor.js.map +1 -0
  303. package/dist/secrets/doks-secret.impl.d.ts +98 -0
  304. package/dist/secrets/doks-secret.impl.d.ts.map +1 -0
  305. package/dist/secrets/doks-secret.impl.js +451 -0
  306. package/dist/secrets/doks-secret.impl.js.map +1 -0
  307. package/dist/secrets/index.d.ts +4 -0
  308. package/dist/secrets/index.d.ts.map +1 -0
  309. package/dist/secrets/index.js +4 -0
  310. package/dist/secrets/index.js.map +1 -0
  311. package/dist/secrets/secrets-backend-doks.plugin.d.ts +3 -0
  312. package/dist/secrets/secrets-backend-doks.plugin.d.ts.map +1 -0
  313. package/dist/secrets/secrets-backend-doks.plugin.js +35 -0
  314. package/dist/secrets/secrets-backend-doks.plugin.js.map +1 -0
  315. package/dist/storage/index.d.ts +50 -0
  316. package/dist/storage/index.d.ts.map +1 -0
  317. package/dist/storage/index.js +92 -0
  318. package/dist/storage/index.js.map +1 -0
  319. package/dist/storage/spaces-keys.d.ts +25 -0
  320. package/dist/storage/spaces-keys.d.ts.map +1 -0
  321. package/dist/storage/spaces-keys.js +32 -0
  322. package/dist/storage/spaces-keys.js.map +1 -0
  323. package/package.json +172 -4
package/LICENSE ADDED
@@ -0,0 +1,126 @@
1
+ Business Source License 1.1
2
+
3
+ Parameters
4
+
5
+ Licensor: VIBES DEV LLC
6
+ Licensed Work: @vibesdotdev/integrations-digitalocean
7
+ The Licensed Work is (c) 2026 VIBES DEV LLC.
8
+ Additional Use Grant: In this grant, "Vibes Platform" means the hosted services VIBES DEV LLC
9
+ operates at vibes.dev and its subdomains.
10
+
11
+ You may make production use of the Licensed Work, including commercial
12
+ use, subject to the limits below. Permitted production use includes:
13
+ building, operating and selling your own applications, agents and services
14
+ on or with the Vibes Platform; self-hosting the Licensed Work for use inside
15
+ your own organization; and providing consulting, integration or development
16
+ services to clients who build on the Vibes Platform.
17
+
18
+ The production use permitted above does not include use that:
19
+
20
+ (a) offers third parties a hosted, managed or embedded service that
21
+ substitutes for the Vibes Platform or a material part of it (including
22
+ agent hosting; fleet, sandbox or container provisioning; package
23
+ registry; source hosting and continuous integration; and managed AI,
24
+ storage, secrets or messaging), where the Licensed Work provides a
25
+ material part of that service's value and that service earns more than
26
+ US$1,000,000 in gross revenue in any twelve-month period;
27
+ (b) sells, rents, sublicenses or white-labels the Licensed Work, or access
28
+ to Vibes Platform functionality, as a product in its own right;
29
+ (c) removes, disables or works around entitlement checks, usage metering,
30
+ quotas or plan limits, or reaches Vibes Platform features the user's
31
+ account is not entitled to;
32
+ (d) scrapes, bulk-exports or harvests data or content from the Vibes
33
+ Platform or its users other than through documented interfaces and
34
+ within their terms, or uses outputs or data obtained from the Vibes
35
+ Platform to train or improve a product that competes with it;
36
+ (e) violates applicable law, infringes anyone's rights, commits fraud or
37
+ deception, conducts unlawful surveillance or harassment, distributes
38
+ malware, or accesses systems without authorization; or
39
+ (f) violates applicable antitrust or competition law.
40
+
41
+ A written permission from the Licensor extends this grant.
42
+ Change Date: Four years from the date the Licensed Work is published.
43
+ Change License: MIT
44
+
45
+ For information about alternative licensing arrangements for the Licensed Work,
46
+ contact VIBES DEV LLC through https://vibes.dev.
47
+
48
+ Notice
49
+
50
+ The Business Source License (this document, or the "License") is not an Open
51
+ Source license. However, the Licensed Work will eventually be made available
52
+ under an Open Source License, as stated in this License.
53
+
54
+ -----------------------------------------------------------------------------
55
+
56
+ Business Source License 1.1
57
+
58
+ License text copyright © 2017 MariaDB Corporation Ab, All Rights Reserved.
59
+ "Business Source License" is a trademark of MariaDB Corporation Ab.
60
+
61
+ Terms
62
+
63
+ The Licensor hereby grants you the right to copy, modify, create derivative
64
+ works, redistribute, and make non-production use of the Licensed Work. The
65
+ Licensor may make an Additional Use Grant, above, permitting limited
66
+ production use.
67
+
68
+ Effective on the Change Date, or the fourth anniversary of the first publicly
69
+ available distribution of a specific version of the Licensed Work under this
70
+ License, whichever comes first, the Licensor hereby grants you rights under
71
+ the terms of the Change License, and the rights granted in the paragraph
72
+ above terminate.
73
+
74
+ If your use of the Licensed Work does not comply with the requirements
75
+ currently in effect as described in this License, you must purchase a
76
+ commercial license from the Licensor, its affiliated entities, or authorized
77
+ resellers, or you must refrain from using the Licensed Work.
78
+
79
+ All copies of the original and modified Licensed Work, and derivative works
80
+ of the Licensed Work, are subject to this License. This License applies
81
+ separately for each version of the Licensed Work and the Change Date may vary
82
+ for each version of the Licensed Work released by Licensor.
83
+
84
+ You must conspicuously display this License on each original or modified copy
85
+ of the Licensed Work. If you receive the Licensed Work in original or
86
+ modified form from a third party, the terms and conditions set forth in this
87
+ License apply to your use of that work.
88
+
89
+ Any use of the Licensed Work in violation of this License will automatically
90
+ terminate your rights under this License for the current and all other
91
+ versions of the Licensed Work.
92
+
93
+ This License does not grant you any right in any trademark or logo of
94
+ Licensor or its affiliates (provided that you may use a trademark or logo of
95
+ Licensor as expressly required by this License).
96
+
97
+ TO THE EXTENT PERMITTED BY APPLICABLE LAW, THE LICENSED WORK IS PROVIDED ON
98
+ AN “AS IS” BASIS. LICENSOR HEREBY DISCLAIMS ALL WARRANTIES AND CONDITIONS,
99
+ EXPRESS OR IMPLIED, INCLUDING (WITHOUT LIMITATION) WARRANTIES OF
100
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, NON-INFRINGEMENT, AND
101
+ TITLE.
102
+
103
+ MariaDB hereby grants you permission to use this License’s text to license
104
+ your works, and to refer to it using the trademark “Business Source License”,
105
+ as long as you comply with the Covenants of Licensor below.
106
+
107
+ Covenants of Licensor
108
+
109
+ In consideration of the right to use this License’s text and the “Business
110
+ Source License” name and trademark, Licensor covenants to MariaDB, and to all
111
+ other recipients of the licensed work to be provided by Licensor:
112
+
113
+ 1. To specify as the Change License the GPL Version 2.0 or any later version,
114
+ or a license that is compatible with GPL Version 2.0 or a later version,
115
+ where “compatible” means that software provided under the Change License can
116
+ be included in a program with software provided under GPL Version 2.0 or a
117
+ later version. Licensor may specify additional Change Licenses without
118
+ limitation.
119
+
120
+ 2. To either: (a) specify an additional grant of rights to use that does not
121
+ impose any additional restriction on the right granted in this License, as
122
+ the Additional Use Grant; or (b) insert the text “None”.
123
+
124
+ 3. To specify a Change Date.
125
+
126
+ 4. Not to modify this License in any other way.
package/README.md CHANGED
@@ -1,3 +1,79 @@
1
- # Temporary Holding Version
1
+ # DigitalOcean integration
2
2
 
3
- This version is a temporary placeholder for this package. An operational version to replace this has been submitted for review and is awaiting a staged release.
3
+ `@vibesdotdev/integrations-digitalocean` provides authenticated DigitalOcean API
4
+ clients, credential references, App deployment, Kubernetes, Droplets, storage,
5
+ databases, inference, and vendor infrastructure adapters.
6
+
7
+ Compose `@vibesdotdev/integrations-digitalocean/plugin` after `integrations/base`
8
+ and resolve `getDigitalOceanClientFactory(runtime)` from `./client`. The runtime
9
+ owns this semantic client; `create(token)` supplies domain clients and
10
+ `createAppDeploy(options)` supplies the App deployment client. Typed HTTP calls
11
+ validate responses with their owning schemas. Failures use the kernel's
12
+ `CapabilityError` codes and reasons and redact provider bodies and credentials.
13
+ Configure ordered `apiTokenCandidates` in the
14
+ `integrations.digitalocean.credentials` manifest. Each candidate preserves a
15
+ complete secret reference, including its optional store, and its credential
16
+ kind. The `digitalocean-client-factory` uses the Secrets authenticated-request
17
+ owner; only the upstream response and selected-reference provenance return.
18
+ Resolved API tokens stay inside the Secrets operation, and this package adds no
19
+ organization-specific credential priority. The public `./credentials` subpath exposes reference constructors and credential settings. DigitalOcean AI generation uses the `digitalocean-inference` `ai/transport` registered by `./ai/plugin`; its OpenAI framing stays with AI, while `getDigitalOceanClientFactory(runtime).sendModelAuthenticatedRequest()` consumes ordered `modelAccessKeyCandidates` through Secrets. Only the response and safe model-key provenance return to the integration transport. Spaces candidate settings are configurable. Secrets exposes `getVibesSecretsClient(runtime).signPayload()` for HMAC, but its current contract does not perform the AWS SigV4 key-derivation chain needed by Spaces requests; no registered Spaces request operation consumes these candidates yet.
20
+
21
+ Compose `@vibesdotdev/infra-core/plugin` and `./infra/plugin` for billing,
22
+ utilization, inventory, sandbox, Functions, DOKS workers, service releases and logs.
23
+ Concrete infra implementations and pure planners remain public through
24
+ `./infra`. The lazy `digitalocean-app-credentials` runtime client builds a credential-free App structure and complete-reference bindings for component environments and log destinations, then passes them to Secrets authenticated-request. App mutations send bearer authority and nested field bindings together through Secrets authenticated-request. Caller-owned tokens and inline values live in a per-mutation, read-only by-id Secrets store registered with the runtime and released on success, refusal, or cancellation. Durable references remain complete and are resolved inside Secrets. Both dry-run modes return safe metadata without reading credentials or calling process, HTTP, or Secrets mutation boundaries. Docker image publication reads its credential
25
+ reference and registry identity from the composed
26
+ `digitalocean.image-publish` manifest.
27
+ Only `ACTIVE` is a successful terminal App phase; `ERROR`, `CANCELED` and
28
+ `SUPERSEDED` are typed failures. Compose `./ai/plugin` for DigitalOcean AI
29
+ connections and `./secrets/plugin` for the explicitly selected DOKS Secret
30
+ delivery target.
31
+
32
+ DOKS worker execution retains the Infra Deploy `create(options)` surface and
33
+ returns `planApply`, `planBuild`, `apply` and `status` through one
34
+ descriptor-authorized semantic executor. Plans are previews; apply/status
35
+ regenerate authority from the runtime-selected worker descriptor. Credential-free
36
+ target admission precedes network and credential access, and the worker Namespace
37
+ is applied before namespaced credential Secrets are delivered. The Secrets
38
+ owner verifies required keys and the source-operation annotation internally;
39
+ service execution never reads Secret data. Registry origin and package scope
40
+ come from composed service settings; both `.npmrc` and
41
+ `.bunfig.toml` formats remain supported. The files are mounted from a Kubernetes
42
+ Secret into the build container, so its process can read the package token. A
43
+ Secrets-owned registry proxy or build executor remains necessary to keep the
44
+ token outside the builder.
45
+
46
+ Source build leases are tied to an operation id recorded in the owned Job and
47
+ its unique Secret reference. Status and replacement recover that lease from
48
+ live Job metadata/spec, revoke it, and UID-delete only the matching Secret.
49
+ Concurrent creates recover the winning Job's lease and clean the losing
50
+ operation. Returned diagnostics use bounded classifications rather than raw
51
+ builder-log text. Typed refusals cover an uncomposed delivery owner, a
52
+ descriptor/target mismatch, missing registry settings, unrecoverable Job
53
+ evidence, and unsuccessful cleanup.
54
+
55
+ DOKS bootstrap uses explicitly configured ordered candidates with complete
56
+ secret references and no store scan or provider-specific fallback. The store
57
+ exposes only guarded storage operations. The canonical Secrets authenticated-request schema accepts `operation`. DOKS bootstrap forwards the original issued `StoreOperationContext` by identity through the control-plane facade to `authenticatedRequestInputSchema`; the guarded store receives that ancestry on the selected read.
58
+
59
+ Resolve `infra/logs` with id `doks-logs` for historical HTTP queries or active
60
+ `streamLogs(request)`. Active streams merge output bytes and expose completion
61
+ and async cancellation through runtime-owned execution. Request schemas come
62
+ from `@vibesdotdev/infra-core/kinds`.
63
+
64
+ See [SPEC.md](./SPEC.md) for capability locations, safety contracts, refusal
65
+ reasons, configuration ownership and verification limits. Run `bun run check`,
66
+ `bun run test`, `bun run build`, and the configured rules/Oxlint checks.
67
+ Tests stay in-process; artifact inspection runs separately from unit tests.
68
+ Configure the resolved `doks-logs.adapterConfig` and `doks-secret.config`
69
+ with the target cluster and namespaces; this package selects no production
70
+ deployment. DOKS worker execution re-derives and binds its plan from the
71
+ runtime-selected descriptor; planning validation alone is not execution
72
+ authorization. When checking credential handling, inspect stdout, stderr,
73
+ returned results and traces, logs, process arguments/environment/output, and
74
+ HTTP evidence. Verify broker revocation and UID-safe Secret deletion after
75
+ terminal status, failed replacement, reconstructed clients and overlapping
76
+ operations; value non-appearance alone does not prove cleanup. Hosts using
77
+ custom CA or client certificates must register the
78
+ `digitalocean/kubernetes-transport` contract exported from `./kubernetes`.
79
+ Unsupported TLS authority produces a typed refusal before sending credentials.
@@ -0,0 +1,4 @@
1
+ /** Canonical digitalocean AI schemas. */
2
+ export * from './providers/cloud/frontier/digitalocean/config/schemas/index.ts';
3
+ export * from './providers/cloud/frontier/digitalocean/index.ts';
4
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/ai/index.ts"],"names":[],"mappings":"AAAA,yCAAyC;AACzC,cAAc,iEAAiE,CAAC;AAChF,cAAc,kDAAkD,CAAC"}
@@ -0,0 +1,4 @@
1
+ /** Canonical digitalocean AI schemas. */
2
+ export * from "./providers/cloud/frontier/digitalocean/config/schemas/index.js";
3
+ export * from "./providers/cloud/frontier/digitalocean/index.js";
4
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/ai/index.ts"],"names":[],"mappings":"AAAA,yCAAyC;AACzC,cAAc,iEAAiE,CAAC;AAChF,cAAc,kDAAkD,CAAC"}
@@ -0,0 +1,5 @@
1
+ import type { AITransportDescriptor } from '@vibesdotdev/ai/transports/schemas/descriptor';
2
+ import type { AITransportInterface } from '@vibesdotdev/ai/transports/interfaces';
3
+ /** AI's fetch transport retains request framing; Secrets owns credential use and HTTP sending. */
4
+ export declare function createDigitalOceanInferenceTransport(descriptor: AITransportDescriptor): AITransportInterface;
5
+ //# sourceMappingURL=inference.transport.impl.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"inference.transport.impl.d.ts","sourceRoot":"","sources":["../../src/ai/inference.transport.impl.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,+CAA+C,CAAC;AAC3F,OAAO,KAAK,EAEX,oBAAoB,EAEpB,MAAM,uCAAuC,CAAC;AAgD/C,kGAAkG;AAClG,wBAAgB,oCAAoC,CACnD,UAAU,EAAE,qBAAqB,GAC/B,oBAAoB,CActB"}
@@ -0,0 +1,54 @@
1
+ import { getDigitalOceanClientFactory } from "../client/helpers.js";
2
+ import { RequestMethodSchema } from '@vibesdotdev/secrets/schemas';
3
+ function isRequest(input) {
4
+ return input instanceof Request;
5
+ }
6
+ function requestSignal(input, init, options) {
7
+ const signal = init?.signal ?? (isRequest(input) ? input.signal : undefined) ?? options.signal;
8
+ return signal === null ? undefined : signal;
9
+ }
10
+ function createAuthenticatedFetch(runtime, options) {
11
+ return async (input, init) => {
12
+ const request = isRequest(input) ? input : undefined;
13
+ const url = request?.url ?? String(input);
14
+ const headers = new Headers(request?.headers);
15
+ new Headers(init?.headers).forEach((value, name) => headers.set(name, value));
16
+ let body = init?.body;
17
+ if (body === undefined && request !== undefined && request.body !== null) {
18
+ body = await request.clone().text();
19
+ }
20
+ const credentialFactory = await getDigitalOceanClientFactory(runtime);
21
+ const requestOptions = {
22
+ method: RequestMethodSchema.parse(init?.method ?? request?.method ?? 'GET'),
23
+ headers: Object.fromEntries(headers.entries()),
24
+ maxRedirects: 0
25
+ };
26
+ if (body !== undefined && body !== null)
27
+ requestOptions.body = body;
28
+ if (options.timeoutMs !== undefined)
29
+ requestOptions.timeoutMs = options.timeoutMs;
30
+ const authenticatedRequest = { url, options: requestOptions };
31
+ const signal = requestSignal(input, init, options);
32
+ if (signal !== undefined)
33
+ authenticatedRequest.signal = signal;
34
+ const authenticated = await credentialFactory.sendModelAuthenticatedRequest(authenticatedRequest);
35
+ return authenticated.response;
36
+ };
37
+ }
38
+ /** AI's fetch transport retains request framing; Secrets owns credential use and HTTP sending. */
39
+ export function createDigitalOceanInferenceTransport(descriptor) {
40
+ return {
41
+ descriptor,
42
+ async *send(request, options) {
43
+ const fetchTransport = await options.runtime
44
+ .query('ai/transport')
45
+ .withId('fetch')
46
+ .resolve();
47
+ yield* fetchTransport.send(request, {
48
+ ...options,
49
+ fetch: createAuthenticatedFetch(options.runtime, options)
50
+ });
51
+ }
52
+ };
53
+ }
54
+ //# sourceMappingURL=inference.transport.impl.js.map
@@ -0,0 +1 @@
1
+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AC,OAAO,CAAC;iBACf,OAAO,EAAE,CAAC;YACZ,KAAK,CAAC,CAAC,cAAc,CAAC,IAAI,CAAC,OAAO,EAAE;gBACnC,GAAG,OAAO;gBACV,KAAK,EAAE,wBAAwB,CAAC,OAAO,CAAC,OAAO,EAAE,OAAO,CAAC;aACzD,CAAC,CAAC;QACJ,CAAC;KACD,CAAC;AACH,CAAC"}
@@ -0,0 +1,6 @@
1
+ import { type RuntimePlugin } from '@vibesdotdev/kernel';
2
+ /** Complete runtime boundary for Digitalocean-owned AI capabilities. */
3
+ export declare function createDigitaloceanAIPlugin(): RuntimePlugin;
4
+ export declare const digitaloceanAIPlugin: RuntimePlugin;
5
+ export default digitaloceanAIPlugin;
6
+ //# sourceMappingURL=provider.plugin.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"provider.plugin.d.ts","sourceRoot":"","sources":["../../src/ai/provider.plugin.ts"],"names":[],"mappings":"AAAA,OAAO,EAAuB,KAAK,aAAa,EAAE,MAAM,qBAAqB,CAAC;AAqF9E,wEAAwE;AACxE,wBAAgB,0BAA0B,IAAI,aAAa,CA+D1D;AAED,eAAO,MAAM,oBAAoB,EAAE,aAA4C,CAAC;AAChF,eAAe,oBAAoB,CAAC"}
@@ -0,0 +1,126 @@
1
+ import { createRuntimePlugin } from '@vibesdotdev/kernel';
2
+ import { AITransportDescriptorSchema } from '@vibesdotdev/ai/transports/schemas/descriptor';
3
+ import { AI_PROVIDER_SCHEMA_KIND } from '@vibesdotdev/ai/providers-runtime';
4
+ import { createAISpecDescriptor } from '@vibesdotdev/ai/specs/schemas/descriptor';
5
+ import digitaloceanProviderDescriptor from "./providers/cloud/frontier/digitalocean/provider.digitalocean.descriptor.js";
6
+ import { digitaloceanConnectionSchema } from "./providers/cloud/frontier/digitalocean/config/schemas/index.js";
7
+ const digitalOceanInferenceTransportDescriptor = AITransportDescriptorSchema.parse({
8
+ id: 'digitalocean-inference',
9
+ kind: 'ai/transport',
10
+ name: 'DigitalOcean Inference',
11
+ description: 'OpenAI-compatible inference requests authenticated through the configured Secrets candidates.',
12
+ scopes: ['consumer', 'cloud']
13
+ });
14
+ const digitalOceanOpenAIChatSpecDescriptor = createAISpecDescriptor({
15
+ id: 'digitalocean-openai-chat',
16
+ name: 'DigitalOcean OpenAI Chat Completions',
17
+ description: 'OpenAI chat-completions dialect over DigitalOcean authenticated inference transport.',
18
+ modalities: ['text'],
19
+ streamFraming: 'sse',
20
+ toolCallEnvelope: 'openai-tool-calls',
21
+ transports: [digitalOceanInferenceTransportDescriptor.id],
22
+ capabilities: [
23
+ 'text_generation',
24
+ 'chat_completion',
25
+ 'function_calling',
26
+ 'streaming',
27
+ 'json_mode',
28
+ 'image_understanding'
29
+ ],
30
+ priority: 100,
31
+ tags: ['digitalocean', 'openai', 'chat']
32
+ });
33
+ const digitalOceanOpenAIEmbeddingSpecDescriptor = createAISpecDescriptor({
34
+ id: 'digitalocean-openai-embedding',
35
+ name: 'DigitalOcean OpenAI-compatible Embeddings',
36
+ description: 'OpenAI embeddings dialect over DigitalOcean authenticated inference transport.',
37
+ modalities: ['embedding'],
38
+ streamFraming: 'none',
39
+ toolCallEnvelope: 'none',
40
+ transports: [digitalOceanInferenceTransportDescriptor.id],
41
+ capabilities: ['embedding_generation'],
42
+ priority: 100,
43
+ tags: ['digitalocean', 'openai-compat', 'embedding']
44
+ });
45
+ const providerSchemaDescriptor = {
46
+ id: 'integrations/digitalocean/ai/digitalocean',
47
+ kind: AI_PROVIDER_SCHEMA_KIND,
48
+ providerId: 'digitalocean',
49
+ schemaKind: 'connection',
50
+ sourcePath: 'integrations/digitalocean/src/ai/providers/cloud/frontier/digitalocean/config/schemas/index.ts',
51
+ version: '0.1.0-rc.0',
52
+ name: 'DigitalOcean Inference',
53
+ description: 'Text generation via OpenAI-compatible /v1/chat/completions.'
54
+ };
55
+ function createTransportCompatibleSpec(descriptor, implementation) {
56
+ const compatible = {
57
+ descriptor,
58
+ encodeRequest: (request, context) => implementation.encodeRequest(request, context),
59
+ decodeResponse: (chunks, request, context) => implementation.decodeResponse(chunks, request, context)
60
+ };
61
+ if (implementation.handleServerRequest !== undefined) {
62
+ compatible.handleServerRequest = implementation.handleServerRequest.bind(implementation);
63
+ }
64
+ return compatible;
65
+ }
66
+ /** Complete runtime boundary for Digitalocean-owned AI capabilities. */
67
+ export function createDigitaloceanAIPlugin() {
68
+ return createRuntimePlugin({
69
+ id: 'integrations-digitalocean/ai',
70
+ name: 'Digitalocean AI Integration',
71
+ description: 'Registers Digitalocean-owned AI descriptors and lazy implementations',
72
+ dependencies: ['ai', 'ai/providers'],
73
+ onRegister(runtime) {
74
+ // Provider variants and their matching OpenAI dialects share this plugin.
75
+ runtime.registerDescriptor('ai/provider', digitaloceanProviderDescriptor);
76
+ runtime.registerDescriptor('ai/transport', digitalOceanInferenceTransportDescriptor);
77
+ runtime.registerDescriptor('ai/spec', digitalOceanOpenAIChatSpecDescriptor);
78
+ runtime.registerDescriptor('ai/spec', digitalOceanOpenAIEmbeddingSpecDescriptor);
79
+ runtime.registerDescriptor(AI_PROVIDER_SCHEMA_KIND, providerSchemaDescriptor);
80
+ },
81
+ onActivate(runtime) {
82
+ runtime.registerLoader('ai/transport', digitalOceanInferenceTransportDescriptor.id, async () => {
83
+ const { createDigitalOceanInferenceTransport } = await import("./inference.transport.impl.js");
84
+ return { impl: createDigitalOceanInferenceTransport(digitalOceanInferenceTransportDescriptor) };
85
+ });
86
+ runtime.registerLoader('ai/spec', digitalOceanOpenAIChatSpecDescriptor.id, async () => {
87
+ const implementation = await runtime
88
+ .query('ai/spec')
89
+ .withId('openai-chat')
90
+ .resolve();
91
+ return {
92
+ impl: createTransportCompatibleSpec(digitalOceanOpenAIChatSpecDescriptor, implementation)
93
+ };
94
+ });
95
+ runtime.registerLoader('ai/spec', digitalOceanOpenAIEmbeddingSpecDescriptor.id, async () => {
96
+ const implementation = await runtime
97
+ .query('ai/spec')
98
+ .withId('openai-embedding')
99
+ .resolve();
100
+ return {
101
+ impl: createTransportCompatibleSpec(digitalOceanOpenAIEmbeddingSpecDescriptor, implementation)
102
+ };
103
+ });
104
+ runtime.registerLoader(AI_PROVIDER_SCHEMA_KIND, providerSchemaDescriptor.id, async () => ({
105
+ meta: {
106
+ id: providerSchemaDescriptor.id,
107
+ kind: AI_PROVIDER_SCHEMA_KIND,
108
+ priority: 0
109
+ },
110
+ impl: {
111
+ connectionSchema: digitaloceanConnectionSchema,
112
+ metadata: {
113
+ name: 'DigitalOcean Inference',
114
+ description: 'OpenAI-compatible chat completions and embeddings via inference.do-ai.run/v1.',
115
+ category: 'cloud',
116
+ capabilities: ['text', 'embedding', 'connection'],
117
+ fields: []
118
+ }
119
+ }
120
+ }));
121
+ }
122
+ });
123
+ }
124
+ export const digitaloceanAIPlugin = createDigitaloceanAIPlugin();
125
+ export default digitaloceanAIPlugin;
126
+ //# sourceMappingURL=provider.plugin.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"provider.plugin.js","sourceRoot":"","sources":["../../src/ai/provider.plugin.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAsB,MAAM,qBAAqB,CAAC;AAC9E,OAAO,EAAE,2BAA2B,EAAE,MAAM,+CAA+C,CAAC;AAC5F,OAAO,EACN,uBAAuB,EAEvB,MAAM,mCAAmC,CAAC;AAC3C,OAAO,EACN,sBAAsB,EAEtB,MAAM,0CAA0C,CAAC;AAElD,OAAO,8BAA8B,MAAM,6EAA6E,CAAC;AACzH,OAAO,EAAE,4BAA4B,EAAE,MAAM,iEAAiE,CAAC;AAE/G,MAAM,wCAAwC,GAAG,2BAA2B,CAAC,KAAK,CAAC;IAClF,EAAE,EAAE,wBAAwB;IAC5B,IAAI,EAAE,cAAc;IACpB,IAAI,EAAE,wBAAwB;IAC9B,WAAW,EAAE,+FAA+F;IAC5G,MAAM,EAAE,CAAC,UAAU,EAAE,OAAO,CAAC;CAC7B,CAAC,CAAC;AAEH,MAAM,oCAAoC,GAAG,sBAAsB,CAAC;IACnE,E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ChF,eAAe,oBAAoB,CAAC"}
@@ -0,0 +1,62 @@
1
+ import * as z from 'zod/v4';
2
+ /**
3
+ * Which DigitalOcean Inference surface this instance targets.
4
+ *
5
+ * - `serverless` — direct calls against `https://inference.do-ai.run/v1`.
6
+ * - `router` — inference router that fans out to underlying models by
7
+ * policy. Requires `routerId` or `routerModelId`.
8
+ * - `dedicated` — a dedicated inference endpoint provisioned for the
9
+ * account. The `baseUrl` should point at that endpoint's host.
10
+ * - `agent` — DO's agent platform (control-plane managed agents).
11
+ */
12
+ export declare const digitaloceanApiSurfaceSchema: z.ZodEnum<{
13
+ agent: "agent";
14
+ router: "router";
15
+ serverless: "serverless";
16
+ dedicated: "dedicated";
17
+ }>;
18
+ export type DigitaloceanApiSurface = z.infer<typeof digitaloceanApiSurfaceSchema>;
19
+ /**
20
+ * Which kind of credential is configured for this instance. This is
21
+ * metadata only — the secret itself is resolved through the secrets
22
+ * runtime, not stored on the connection.
23
+ *
24
+ * - `model-access-key` — DO Inference scoped model access key
25
+ * (recommended for production: scoped to specific models, can be
26
+ * restricted to a VPC, can be batch-enabled separately).
27
+ * - `personal-access-token` — DO account-wide personal access token
28
+ * (works for inference but grants broad account access; use for
29
+ * dev/dogfood only).
30
+ */
31
+ export declare const digitaloceanCredentialKindSchema: z.ZodEnum<{
32
+ "model-access-key": "model-access-key";
33
+ "personal-access-token": "personal-access-token";
34
+ }>;
35
+ export type DigitaloceanCredentialKind = z.infer<typeof digitaloceanCredentialKindSchema>;
36
+ export declare const digitaloceanConnectionSchema: z.ZodObject<{
37
+ apiKey: z.ZodOptional<z.ZodString>;
38
+ secretId: z.ZodOptional<z.ZodUUID>;
39
+ apiFormat: z.ZodOptional<z.ZodEnum<{
40
+ openai: "openai";
41
+ native: "native";
42
+ }>>;
43
+ baseUrl: z.ZodDefault<z.ZodString>;
44
+ timeout: z.ZodDefault<z.ZodNumber>;
45
+ authType: z.ZodOptional<z.ZodLiteral<"bearer">>;
46
+ apiSurface: z.ZodDefault<z.ZodEnum<{
47
+ agent: "agent";
48
+ router: "router";
49
+ serverless: "serverless";
50
+ dedicated: "dedicated";
51
+ }>>;
52
+ routerId: z.ZodOptional<z.ZodString>;
53
+ routerModelId: z.ZodOptional<z.ZodString>;
54
+ credentialKind: z.ZodOptional<z.ZodEnum<{
55
+ "model-access-key": "model-access-key";
56
+ "personal-access-token": "personal-access-token";
57
+ }>>;
58
+ allowBatchInference: z.ZodOptional<z.ZodBoolean>;
59
+ vpcRestricted: z.ZodOptional<z.ZodBoolean>;
60
+ }, z.core.$strip>;
61
+ export type DigitaloceanConnection = z.infer<typeof digitaloceanConnectionSchema>;
62
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../../src/ai/providers/cloud/frontier/digitalocean/config/schemas/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAE5B;;;;;;;;;GASG;AACH,eAAO,MAAM,4BAA4B;;;;;EAKvC,CAAC;AACH,MAAM,MAAM,sBAAsB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,4BAA4B,CAAC,CAAC;AAElF;;;;;;;;;;;GAWG;AACH,eAAO,MAAM,gCAAgC;;;EAG3C,CAAC;AACH,MAAM,MAAM,0BAA0B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,gCAAgC,CAAC,CAAC;AAE1F,eAAO,MAAM,4BAA4B;;;;;;;;;;;;;;;;;;;;;;;;iBAsCvC,CAAC;AAEH,MAAM,MAAM,sBAAsB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,4BAA4B,CAAC,CAAC"}
@@ -0,0 +1,73 @@
1
+ import * as z from 'zod/v4';
2
+ /**
3
+ * Which DigitalOcean Inference surface this instance targets.
4
+ *
5
+ * - `serverless` — direct calls against `https://inference.do-ai.run/v1`.
6
+ * - `router` — inference router that fans out to underlying models by
7
+ * policy. Requires `routerId` or `routerModelId`.
8
+ * - `dedicated` — a dedicated inference endpoint provisioned for the
9
+ * account. The `baseUrl` should point at that endpoint's host.
10
+ * - `agent` — DO's agent platform (control-plane managed agents).
11
+ */
12
+ export const digitaloceanApiSurfaceSchema = z.enum([
13
+ 'serverless',
14
+ 'router',
15
+ 'dedicated',
16
+ 'agent'
17
+ ]);
18
+ /**
19
+ * Which kind of credential is configured for this instance. This is
20
+ * metadata only — the secret itself is resolved through the secrets
21
+ * runtime, not stored on the connection.
22
+ *
23
+ * - `model-access-key` — DO Inference scoped model access key
24
+ * (recommended for production: scoped to specific models, can be
25
+ * restricted to a VPC, can be batch-enabled separately).
26
+ * - `personal-access-token` — DO account-wide personal access token
27
+ * (works for inference but grants broad account access; use for
28
+ * dev/dogfood only).
29
+ */
30
+ export const digitaloceanCredentialKindSchema = z.enum([
31
+ 'model-access-key',
32
+ 'personal-access-token'
33
+ ]);
34
+ export const digitaloceanConnectionSchema = z.object({
35
+ apiKey: z.string().optional(),
36
+ secretId: z.uuid().optional(),
37
+ apiFormat: z.enum(['openai', 'native']).optional(),
38
+ baseUrl: z.string().url().default('https://inference.do-ai.run'),
39
+ timeout: z.number().default(60000),
40
+ authType: z.literal('bearer').optional(),
41
+ /**
42
+ * Which DO Inference surface this instance targets. Defaults to
43
+ * `serverless` — the OpenAI-dialect endpoint at inference.do-ai.run.
44
+ */
45
+ apiSurface: digitaloceanApiSurfaceSchema.default('serverless'),
46
+ /**
47
+ * When `apiSurface === 'router'`, the router id or router model id
48
+ * to use for requests. DO routers accept either the router id or a
49
+ * canonical router model id like `router/auto`.
50
+ */
51
+ routerId: z.string().optional(),
52
+ routerModelId: z.string().optional(),
53
+ /**
54
+ * Metadata describing which credential kind is configured. The
55
+ * secret itself is resolved through the secrets runtime; this field
56
+ * exists so consumers (UI, audit, capability-detection) can branch
57
+ * on key kind without re-probing DO.
58
+ */
59
+ credentialKind: digitaloceanCredentialKindSchema.optional(),
60
+ /**
61
+ * Set true when the configured key is batch-enabled. Batch inference
62
+ * is opt-in per key; the inference router rejects batch requests
63
+ * from keys that are not batch-enabled.
64
+ */
65
+ allowBatchInference: z.boolean().optional(),
66
+ /**
67
+ * Set true when the configured key is VPC-restricted. VPC-restricted
68
+ * keys only work from within a registered DO VPC; calling from
69
+ * outside the VPC returns 403.
70
+ */
71
+ vpcRestricted: z.boolean().optional()
72
+ });
73
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../../src/ai/providers/cloud/frontier/digitalocean/config/schemas/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAE5B;;;;;;;;;GASG;AACH,MAAM,CAAC,MAAM,4BAA4B,GAAG,CAAC,CAAC,IAAI,CAAC;IAClD,YAAY;IACZ,QAAQ;IACR,WAAW;IACX,OAAO;CACP,CAAC,CAAC;AAGH;;;;;;;;;;;GAWG;AACH,MAAM,CAAC,MAAM,gCAAgC,GAAG,CAAC,CAAC,IAAI,CAAC;IACtD,kBAAkB;IAClB,uBAAuB;CACvB,CAAC,CAAC;AAGH,MAAM,CAAC,MAAM,4BAA4B,GAAG,CAAC,CAAC,MAAM,CAAC;IACpD,MAAM,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC7B,QAAQ,EAAE,CAAC,CAAC,IAAI,EAAE,CAAC,QAAQ,EAAE;IAC7B,SAAS,EAAE,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,EAAE,QAAQ,CAAC,CAAC,CAAC,QAAQ,EAAE;IAClD,OAAO,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,OAAO,CAAC,6BAA6B,CAAC;IAChE,OAAO,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,OAAO,CAAC,KAAK,CAAC;IAClC,QAAQ,EAAE,CAAC,CAAC,OAAO,CAAC,QAAQ,CAAC,CAAC,QAAQ,EAAE;IACxC;;;OAGG;IACH,UAAU,EAAE,4BAA4B,CAAC,OAAO,CAAC,YAAY,CAAC;IAC9D;;;;OAIG;IACH,QAAQ,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC/B,aAAa,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACpC;;;;;OAKG;IACH,cAAc,EAAE,gCAAgC,CAAC,QAAQ,EAAE;IAC3D;;;;OAIG;IACH,mBAAmB,EAAE,CAAC,CAAC,OAAO,EAAE,CAAC,QAAQ,EAAE;IAC3C;;;;OAIG;IACH,aAAa,EAAE,CAAC,CAAC,OAAO,EAAE,CAAC,QAAQ,EAAE;CACrC,CAAC,CAAC"}
@@ -0,0 +1,2 @@
1
+ export { default as digitaloceanProviderDescriptor } from './provider.digitalocean.descriptor.ts';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/ai/providers/cloud/frontier/digitalocean/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,8BAA8B,EAAE,MAAM,uCAAuC,CAAC"}
@@ -0,0 +1,2 @@
1
+ export { default as digitaloceanProviderDescriptor } from "./provider.digitalocean.descriptor.js";
2
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/ai/providers/cloud/frontier/digitalocean/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,8BAA8B,EAAE,MAAM,uCAAuC,CAAC"}