hanzoai 2.2.10 → 8.5.89

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 (759) hide show
  1. package/dist/api/admin-api.d.ts +16 -16
  2. package/dist/api/admin-api.js +16 -16
  3. package/dist/api/ai-api.d.ts +1409 -2449
  4. package/dist/api/ai-api.js +1026 -1623
  5. package/dist/api/allowance-api.d.ts +71 -0
  6. package/dist/api/allowance-api.js +122 -0
  7. package/dist/api/audio-api.d.ts +8 -8
  8. package/dist/api/audio-api.js +8 -8
  9. package/dist/api/benchmark-api.d.ts +182 -0
  10. package/dist/api/benchmark-api.js +224 -0
  11. package/dist/api/billing-api.d.ts +58 -0
  12. package/dist/api/billing-api.js +118 -0
  13. package/dist/api/chat-api.d.ts +29 -0
  14. package/dist/api/chat-api.js +59 -0
  15. package/dist/api/compliance-api.d.ts +8 -8
  16. package/dist/api/compliance-api.js +8 -8
  17. package/dist/api/default-api.d.ts +29 -0
  18. package/dist/api/default-api.js +56 -0
  19. package/dist/api/documents-api.d.ts +21 -4
  20. package/dist/api/documents-api.js +15 -8
  21. package/dist/api/edge-api.d.ts +71 -0
  22. package/dist/api/edge-api.js +122 -0
  23. package/dist/api/esign-api.d.ts +12 -12
  24. package/dist/api/esign-api.js +12 -12
  25. package/dist/api/iam-api.d.ts +435 -13
  26. package/dist/api/iam-api.js +632 -17
  27. package/dist/api/instances-api.d.ts +1214 -0
  28. package/dist/api/instances-api.js +1855 -0
  29. package/dist/api/integrations-api.d.ts +30 -0
  30. package/dist/api/integrations-api.js +59 -0
  31. package/dist/api/o11y-api.d.ts +4 -4
  32. package/dist/api/o11y-api.js +4 -4
  33. package/dist/api/responses-api.d.ts +4 -4
  34. package/dist/api/responses-api.js +4 -4
  35. package/dist/api/router-api.d.ts +6 -7
  36. package/dist/api/runner-api.d.ts +4 -81
  37. package/dist/api/runner-api.js +4 -129
  38. package/dist/api/s3-api.d.ts +0 -171
  39. package/dist/api/s3-api.js +0 -256
  40. package/dist/api/search-api.d.ts +24 -147
  41. package/dist/api/search-api.js +23 -212
  42. package/dist/api/{sentry-api.d.ts → sentinel-api.d.ts} +282 -282
  43. package/dist/api/{sentry-api.js → sentinel-api.js} +318 -318
  44. package/dist/api/sites-api.d.ts +461 -0
  45. package/dist/api/sites-api.js +621 -0
  46. package/dist/api/vector-api.d.ts +0 -171
  47. package/dist/api/vector-api.js +0 -256
  48. package/dist/api/videos-api.d.ts +42 -8
  49. package/dist/api/videos-api.js +30 -16
  50. package/dist/api/wecom-bot-api.d.ts +42 -8
  51. package/dist/api/wecom-bot-api.js +30 -16
  52. package/dist/api.d.ts +4 -11
  53. package/dist/api.js +4 -11
  54. package/dist/esm/api/admin-api.d.ts +16 -16
  55. package/dist/esm/api/admin-api.js +16 -16
  56. package/dist/esm/api/ai-api.d.ts +1409 -2449
  57. package/dist/esm/api/ai-api.js +1027 -1624
  58. package/dist/esm/api/allowance-api.d.ts +70 -0
  59. package/dist/esm/api/allowance-api.js +112 -0
  60. package/dist/esm/api/audio-api.d.ts +8 -8
  61. package/dist/esm/api/audio-api.js +8 -8
  62. package/dist/esm/api/benchmark-api.d.ts +182 -0
  63. package/dist/esm/api/benchmark-api.js +224 -0
  64. package/dist/esm/api/billing-api.d.ts +58 -0
  65. package/dist/esm/api/billing-api.js +118 -0
  66. package/dist/esm/api/chat-api.d.ts +29 -0
  67. package/dist/esm/api/chat-api.js +59 -0
  68. package/dist/esm/api/compliance-api.d.ts +8 -8
  69. package/dist/esm/api/compliance-api.js +8 -8
  70. package/dist/esm/api/default-api.d.ts +29 -0
  71. package/dist/esm/api/default-api.js +56 -0
  72. package/dist/esm/api/documents-api.d.ts +21 -4
  73. package/dist/esm/api/documents-api.js +16 -9
  74. package/dist/esm/api/edge-api.d.ts +70 -0
  75. package/dist/esm/api/edge-api.js +112 -0
  76. package/dist/esm/api/esign-api.d.ts +12 -12
  77. package/dist/esm/api/esign-api.js +12 -12
  78. package/dist/esm/api/iam-api.d.ts +435 -13
  79. package/dist/esm/api/iam-api.js +632 -17
  80. package/dist/esm/api/instances-api.d.ts +1213 -0
  81. package/dist/esm/api/instances-api.js +1845 -0
  82. package/dist/esm/api/integrations-api.d.ts +30 -0
  83. package/dist/esm/api/integrations-api.js +59 -0
  84. package/dist/esm/api/o11y-api.d.ts +4 -4
  85. package/dist/esm/api/o11y-api.js +4 -4
  86. package/dist/esm/api/responses-api.d.ts +4 -4
  87. package/dist/esm/api/responses-api.js +4 -4
  88. package/dist/esm/api/router-api.d.ts +6 -7
  89. package/dist/esm/api/runner-api.d.ts +4 -81
  90. package/dist/esm/api/runner-api.js +4 -129
  91. package/dist/esm/api/s3-api.d.ts +0 -171
  92. package/dist/esm/api/s3-api.js +1 -257
  93. package/dist/esm/api/search-api.d.ts +24 -147
  94. package/dist/esm/api/search-api.js +23 -212
  95. package/dist/esm/api/{sentry-api.d.ts → sentinel-api.d.ts} +282 -282
  96. package/dist/esm/api/{sentry-api.js → sentinel-api.js} +313 -313
  97. package/dist/esm/api/sites-api.d.ts +461 -0
  98. package/dist/esm/api/sites-api.js +621 -0
  99. package/dist/esm/api/vector-api.d.ts +0 -171
  100. package/dist/esm/api/vector-api.js +1 -257
  101. package/dist/esm/api/videos-api.d.ts +42 -8
  102. package/dist/esm/api/videos-api.js +31 -17
  103. package/dist/esm/api/wecom-bot-api.d.ts +42 -8
  104. package/dist/esm/api/wecom-bot-api.js +31 -17
  105. package/dist/esm/api.d.ts +4 -11
  106. package/dist/esm/api.js +4 -11
  107. package/dist/{models/resource-metrics.d.ts → esm/models/allowance.d.ts} +17 -17
  108. package/dist/{models/service-port.d.ts → esm/models/backend-status.d.ts} +14 -14
  109. package/dist/esm/models/claim-row.d.ts +72 -0
  110. package/dist/esm/models/claims-out.d.ts +31 -0
  111. package/dist/esm/models/edge-state.d.ts +62 -0
  112. package/dist/esm/models/gitlab-project-view.d.ts +66 -0
  113. package/dist/esm/models/gitlab-projects-out.d.ts +31 -0
  114. package/dist/{models/remote-app.d.ts → esm/models/history-out.d.ts} +14 -19
  115. package/dist/{models/block.d.ts → esm/models/iam-account-body.d.ts} +10 -16
  116. package/dist/esm/models/{get-ai-chats200-response.d.ts → iam-assume-body.d.ts} +10 -3
  117. package/dist/esm/models/iam-create-organization-input.d.ts +12 -0
  118. package/dist/esm/models/iam-organization.d.ts +12 -0
  119. package/dist/esm/models/{activity.d.ts → iam-search-organizations-output.d.ts} +9 -10
  120. package/dist/esm/models/{session.d.ts → iam-set-avatar-input.d.ts} +11 -11
  121. package/dist/esm/models/iam-update-organization-input.d.ts +12 -0
  122. package/dist/esm/models/iam-webauthn-credential.d.ts +6 -0
  123. package/dist/esm/models/index.d.ts +21 -103
  124. package/dist/esm/models/index.js +21 -103
  125. package/dist/esm/models/integrity.d.ts +13 -7
  126. package/dist/esm/models/leader-row.d.ts +42 -0
  127. package/dist/esm/models/{vector-score.d.ts → match.d.ts} +13 -7
  128. package/dist/esm/models/{lb-view.d.ts → model-history.d.ts} +13 -30
  129. package/dist/esm/models/published-claim.d.ts +54 -0
  130. package/dist/esm/models/put-claims-in.d.ts +31 -0
  131. package/dist/esm/models/{env-variable.d.ts → put-claims-out.d.ts} +10 -10
  132. package/dist/esm/models/request.d.ts +60 -0
  133. package/dist/esm/models/response.d.ts +50 -0
  134. package/dist/esm/models/run-point.d.ts +48 -0
  135. package/dist/esm/models/runner-build-req.d.ts +0 -6
  136. package/dist/esm/models/runner-build-resp.d.ts +2 -2
  137. package/dist/esm/models/trail.d.ts +49 -0
  138. package/dist/{esm/models/resource-metrics.d.ts → models/allowance.d.ts} +17 -17
  139. package/dist/{esm/models/service-port.d.ts → models/backend-status.d.ts} +14 -14
  140. package/dist/models/claim-row.d.ts +72 -0
  141. package/dist/models/claims-out.d.ts +31 -0
  142. package/dist/models/edge-state.d.ts +62 -0
  143. package/dist/models/gitlab-project-view.d.ts +66 -0
  144. package/dist/models/gitlab-projects-out.d.ts +31 -0
  145. package/dist/{esm/models/remote-app.d.ts → models/history-out.d.ts} +14 -19
  146. package/dist/{esm/models/block.d.ts → models/iam-account-body.d.ts} +10 -16
  147. package/dist/{esm/models/get-ai-activities200-response.d.ts → models/iam-assume-body.d.ts} +10 -3
  148. package/dist/models/iam-create-organization-input.d.ts +12 -0
  149. package/dist/models/iam-organization.d.ts +12 -0
  150. package/dist/{esm/models/application-config-option.d.ts → models/iam-search-organizations-output.d.ts} +8 -7
  151. package/dist/models/{session.d.ts → iam-set-avatar-input.d.ts} +11 -11
  152. package/dist/models/iam-update-organization-input.d.ts +12 -0
  153. package/dist/models/iam-webauthn-credential.d.ts +6 -0
  154. package/dist/models/index.d.ts +21 -103
  155. package/dist/models/index.js +21 -103
  156. package/dist/models/integrity.d.ts +13 -7
  157. package/dist/models/leader-row.d.ts +42 -0
  158. package/dist/models/{vector-score.d.ts → match.d.ts} +13 -7
  159. package/dist/{esm/models/model-search-result.d.ts → models/model-history.d.ts} +14 -25
  160. package/dist/models/published-claim.d.ts +54 -0
  161. package/dist/models/put-claims-in.d.ts +31 -0
  162. package/dist/models/put-claims-out.d.ts +30 -0
  163. package/dist/models/request.d.ts +60 -0
  164. package/dist/models/response.d.ts +50 -0
  165. package/dist/models/run-point.d.ts +48 -0
  166. package/dist/models/runner-build-req.d.ts +0 -6
  167. package/dist/models/runner-build-resp.d.ts +2 -2
  168. package/dist/models/trail.d.ts +49 -0
  169. package/package.json +1 -1
  170. package/src/api/admin-api.ts +16 -16
  171. package/src/api/ai-api.ts +1568 -3194
  172. package/src/api/allowance-api.ts +128 -0
  173. package/src/api/audio-api.ts +8 -8
  174. package/src/api/benchmark-api.ts +338 -0
  175. package/src/api/billing-api.ts +132 -0
  176. package/src/api/chat-api.ts +66 -0
  177. package/src/api/compliance-api.ts +8 -8
  178. package/src/api/default-api.ts +62 -0
  179. package/src/api/documents-api.ts +29 -8
  180. package/src/api/edge-api.ts +128 -0
  181. package/src/api/esign-api.ts +12 -12
  182. package/src/api/iam-api.ts +844 -18
  183. package/src/api/instances-api.ts +2357 -0
  184. package/src/api/integrations-api.ts +68 -0
  185. package/src/api/o11y-api.ts +4 -4
  186. package/src/api/responses-api.ts +4 -4
  187. package/src/api/router-api.ts +4 -6
  188. package/src/api/runner-api.ts +4 -161
  189. package/src/api/s3-api.ts +0 -335
  190. package/src/api/search-api.ts +31 -273
  191. package/src/api/{sentry-api.ts → sentinel-api.ts} +418 -418
  192. package/src/api/sites-api.ts +864 -1
  193. package/src/api/vector-api.ts +0 -335
  194. package/src/api/videos-api.ts +58 -16
  195. package/src/api/wecom-bot-api.ts +58 -16
  196. package/src/api.ts +4 -11
  197. package/src/models/{resource-metrics.ts → allowance.ts} +17 -17
  198. package/src/models/{service-port.ts → backend-status.ts} +14 -14
  199. package/src/models/claim-row.ts +78 -0
  200. package/src/models/{lb-list.ts → claims-out.ts} +13 -7
  201. package/src/models/edge-state.ts +66 -0
  202. package/src/models/gitlab-project-view.ts +72 -0
  203. package/src/models/{vpc-list.ts → gitlab-projects-out.ts} +13 -7
  204. package/src/models/{remote-app.ts → history-out.ts} +16 -19
  205. package/src/models/{block.ts → iam-account-body.ts} +10 -16
  206. package/src/models/{get-ai-files200-response.ts → iam-assume-body.ts} +10 -6
  207. package/src/models/iam-create-organization-input.ts +12 -0
  208. package/src/models/iam-organization.ts +12 -0
  209. package/src/models/{container-detail.ts → iam-search-organizations-output.ts} +8 -14
  210. package/src/models/{session.ts → iam-set-avatar-input.ts} +11 -11
  211. package/src/models/iam-update-organization-input.ts +12 -0
  212. package/src/models/iam-webauthn-credential.ts +6 -0
  213. package/src/models/index.ts +21 -103
  214. package/src/models/integrity.ts +13 -7
  215. package/src/models/leader-row.ts +42 -0
  216. package/src/models/{vector-score.ts → match.ts} +13 -7
  217. package/src/models/{lb-view.ts → model-history.ts} +15 -30
  218. package/src/models/published-claim.ts +60 -0
  219. package/src/models/{self-release-list.ts → put-claims-in.ts} +13 -7
  220. package/src/models/{application-config-option.ts → put-claims-out.ts} +10 -10
  221. package/src/models/request.ts +66 -0
  222. package/src/models/response.ts +60 -0
  223. package/src/models/run-point.ts +54 -0
  224. package/src/models/runner-build-req.ts +0 -6
  225. package/src/models/runner-build-resp.ts +2 -2
  226. package/src/models/trail.ts +57 -0
  227. package/dist/api/balancers-api.d.ts +0 -211
  228. package/dist/api/balancers-api.js +0 -321
  229. package/dist/api/datastore-api.d.ts +0 -212
  230. package/dist/api/datastore-api.js +0 -319
  231. package/dist/api/docdb-api.d.ts +0 -212
  232. package/dist/api/docdb-api.js +0 -319
  233. package/dist/api/generate-text-to-speech-audio-api.d.ts +0 -70
  234. package/dist/api/generate-text-to-speech-audio-api.js +0 -122
  235. package/dist/api/generate-text-to-speech-audio-stream-api.d.ts +0 -70
  236. package/dist/api/generate-text-to-speech-audio-stream-api.js +0 -122
  237. package/dist/api/health-api.d.ts +0 -70
  238. package/dist/api/health-api.js +0 -122
  239. package/dist/api/kv-api.d.ts +0 -212
  240. package/dist/api/kv-api.js +0 -319
  241. package/dist/api/process-speech-to-text-api.d.ts +0 -70
  242. package/dist/api/process-speech-to-text-api.js +0 -122
  243. package/dist/api/sql-api.d.ts +0 -212
  244. package/dist/api/sql-api.js +0 -319
  245. package/dist/api/vpcs-api.d.ts +0 -211
  246. package/dist/api/vpcs-api.js +0 -321
  247. package/dist/esm/api/balancers-api.d.ts +0 -210
  248. package/dist/esm/api/balancers-api.js +0 -311
  249. package/dist/esm/api/datastore-api.d.ts +0 -211
  250. package/dist/esm/api/datastore-api.js +0 -309
  251. package/dist/esm/api/docdb-api.d.ts +0 -211
  252. package/dist/esm/api/docdb-api.js +0 -309
  253. package/dist/esm/api/generate-text-to-speech-audio-api.d.ts +0 -69
  254. package/dist/esm/api/generate-text-to-speech-audio-api.js +0 -112
  255. package/dist/esm/api/generate-text-to-speech-audio-stream-api.d.ts +0 -69
  256. package/dist/esm/api/generate-text-to-speech-audio-stream-api.js +0 -112
  257. package/dist/esm/api/health-api.d.ts +0 -69
  258. package/dist/esm/api/health-api.js +0 -112
  259. package/dist/esm/api/kv-api.d.ts +0 -211
  260. package/dist/esm/api/kv-api.js +0 -309
  261. package/dist/esm/api/process-speech-to-text-api.d.ts +0 -69
  262. package/dist/esm/api/process-speech-to-text-api.js +0 -112
  263. package/dist/esm/api/sql-api.d.ts +0 -211
  264. package/dist/esm/api/sql-api.js +0 -309
  265. package/dist/esm/api/vpcs-api.d.ts +0 -210
  266. package/dist/esm/api/vpcs-api.js +0 -311
  267. package/dist/esm/models/agent-mcp-tools.d.ts +0 -36
  268. package/dist/esm/models/application-event.d.ts +0 -72
  269. package/dist/esm/models/application-view.d.ts +0 -71
  270. package/dist/esm/models/article.d.ts +0 -73
  271. package/dist/esm/models/asset.d.ts +0 -108
  272. package/dist/esm/models/audit.d.ts +0 -204
  273. package/dist/esm/models/chat.d.ts +0 -168
  274. package/dist/esm/models/connection.d.ts +0 -156
  275. package/dist/esm/models/container-detail.d.ts +0 -37
  276. package/dist/esm/models/create-lbreq.d.ts +0 -49
  277. package/dist/esm/models/create-vpcreq.d.ts +0 -36
  278. package/dist/esm/models/deployment-detail.d.ts +0 -55
  279. package/dist/esm/models/envelope.d.ts +0 -47
  280. package/dist/esm/models/envelope.js +0 -17
  281. package/dist/esm/models/example-question.d.ts +0 -36
  282. package/dist/esm/models/form-item.d.ts +0 -48
  283. package/dist/esm/models/form.d.ts +0 -79
  284. package/dist/esm/models/fwd-rule.d.ts +0 -42
  285. package/dist/esm/models/get-ai-articles200-response.d.ts +0 -17
  286. package/dist/esm/models/get-ai-articles200-response.js +0 -14
  287. package/dist/esm/models/get-ai-assets200-response.d.ts +0 -17
  288. package/dist/esm/models/get-ai-assets200-response.js +0 -14
  289. package/dist/esm/models/get-ai-chats200-response.js +0 -14
  290. package/dist/esm/models/get-ai-deployments200-response.d.ts +0 -17
  291. package/dist/esm/models/get-ai-deployments200-response.js +0 -14
  292. package/dist/esm/models/get-ai-files200-response.d.ts +0 -17
  293. package/dist/esm/models/get-ai-files200-response.js +0 -14
  294. package/dist/esm/models/get-ai-forms200-response.d.ts +0 -17
  295. package/dist/esm/models/get-ai-forms200-response.js +0 -14
  296. package/dist/esm/models/get-ai-graphs200-response.d.ts +0 -17
  297. package/dist/esm/models/get-ai-graphs200-response.js +0 -14
  298. package/dist/esm/models/get-ai-messages200-response.d.ts +0 -17
  299. package/dist/esm/models/get-ai-messages200-response.js +0 -14
  300. package/dist/esm/models/get-ai-nodes200-response.d.ts +0 -17
  301. package/dist/esm/models/get-ai-nodes200-response.js +0 -14
  302. package/dist/esm/models/get-ai-providers200-response.d.ts +0 -17
  303. package/dist/esm/models/get-ai-providers200-response.js +0 -14
  304. package/dist/esm/models/get-ai-records200-response.d.ts +0 -17
  305. package/dist/esm/models/get-ai-records200-response.js +0 -14
  306. package/dist/esm/models/get-ai-remote-connections200-response.d.ts +0 -17
  307. package/dist/esm/models/get-ai-remote-connections200-response.js +0 -14
  308. package/dist/esm/models/get-ai-routes200-response.d.ts +0 -17
  309. package/dist/esm/models/get-ai-routes200-response.js +0 -14
  310. package/dist/esm/models/get-ai-scales200-response.d.ts +0 -17
  311. package/dist/esm/models/get-ai-scales200-response.js +0 -14
  312. package/dist/esm/models/get-ai-scans200-response.d.ts +0 -17
  313. package/dist/esm/models/get-ai-scans200-response.js +0 -14
  314. package/dist/esm/models/get-ai-signin-sessions200-response.d.ts +0 -17
  315. package/dist/esm/models/get-ai-signin-sessions200-response.js +0 -14
  316. package/dist/esm/models/get-ai-stores200-response.d.ts +0 -17
  317. package/dist/esm/models/get-ai-stores200-response.js +0 -14
  318. package/dist/esm/models/get-ai-tasks200-response.d.ts +0 -17
  319. package/dist/esm/models/get-ai-tasks200-response.js +0 -14
  320. package/dist/esm/models/get-ai-templates200-response.d.ts +0 -17
  321. package/dist/esm/models/get-ai-templates200-response.js +0 -14
  322. package/dist/esm/models/get-ai-usages200-response.d.ts +0 -17
  323. package/dist/esm/models/get-ai-usages200-response.js +0 -14
  324. package/dist/esm/models/get-ai-vectors200-response.d.ts +0 -17
  325. package/dist/esm/models/get-ai-vectors200-response.js +0 -14
  326. package/dist/esm/models/get-ai-videos200-response.d.ts +0 -17
  327. package/dist/esm/models/get-ai-videos200-response.js +0 -14
  328. package/dist/esm/models/get-ai-workflows200-response.d.ts +0 -17
  329. package/dist/esm/models/get-ai-workflows200-response.js +0 -14
  330. package/dist/esm/models/graph.d.ts +0 -90
  331. package/dist/esm/models/graph.js +0 -14
  332. package/dist/esm/models/label.d.ts +0 -78
  333. package/dist/esm/models/label.js +0 -14
  334. package/dist/esm/models/lb-list.d.ts +0 -25
  335. package/dist/esm/models/lb-list.js +0 -14
  336. package/dist/esm/models/lb-view.js +0 -14
  337. package/dist/esm/models/message.d.ts +0 -232
  338. package/dist/esm/models/message.js +0 -14
  339. package/dist/esm/models/model-file.d.ts +0 -84
  340. package/dist/esm/models/model-file.js +0 -14
  341. package/dist/esm/models/model-route.d.ts +0 -126
  342. package/dist/esm/models/model-route.js +0 -14
  343. package/dist/esm/models/model-search-result.js +0 -14
  344. package/dist/esm/models/model-tool-call.d.ts +0 -36
  345. package/dist/esm/models/model-tool-call.js +0 -14
  346. package/dist/esm/models/node.d.ts +0 -183
  347. package/dist/esm/models/node.js +0 -14
  348. package/dist/esm/models/patch.d.ts +0 -72
  349. package/dist/esm/models/patch.js +0 -14
  350. package/dist/esm/models/post-ai-articles200-response.d.ts +0 -17
  351. package/dist/esm/models/post-ai-articles200-response.js +0 -14
  352. package/dist/esm/models/post-ai-assets200-response.d.ts +0 -17
  353. package/dist/esm/models/post-ai-assets200-response.js +0 -14
  354. package/dist/esm/models/post-ai-chats200-response.d.ts +0 -17
  355. package/dist/esm/models/post-ai-chats200-response.js +0 -14
  356. package/dist/esm/models/post-ai-deployments200-response.d.ts +0 -17
  357. package/dist/esm/models/post-ai-deployments200-response.js +0 -14
  358. package/dist/esm/models/post-ai-files200-response.d.ts +0 -17
  359. package/dist/esm/models/post-ai-files200-response.js +0 -14
  360. package/dist/esm/models/post-ai-forms200-response.d.ts +0 -17
  361. package/dist/esm/models/post-ai-forms200-response.js +0 -14
  362. package/dist/esm/models/post-ai-graphs200-response.d.ts +0 -17
  363. package/dist/esm/models/post-ai-graphs200-response.js +0 -14
  364. package/dist/esm/models/post-ai-messages200-response.d.ts +0 -17
  365. package/dist/esm/models/post-ai-messages200-response.js +0 -14
  366. package/dist/esm/models/post-ai-nodes200-response.d.ts +0 -17
  367. package/dist/esm/models/post-ai-nodes200-response.js +0 -14
  368. package/dist/esm/models/post-ai-providers200-response.d.ts +0 -17
  369. package/dist/esm/models/post-ai-providers200-response.js +0 -14
  370. package/dist/esm/models/post-ai-records200-response.d.ts +0 -17
  371. package/dist/esm/models/post-ai-records200-response.js +0 -14
  372. package/dist/esm/models/post-ai-remote-connections200-response.d.ts +0 -17
  373. package/dist/esm/models/post-ai-remote-connections200-response.js +0 -14
  374. package/dist/esm/models/post-ai-routes200-response.d.ts +0 -17
  375. package/dist/esm/models/post-ai-routes200-response.js +0 -14
  376. package/dist/esm/models/post-ai-scales200-response.d.ts +0 -17
  377. package/dist/esm/models/post-ai-scales200-response.js +0 -14
  378. package/dist/esm/models/post-ai-scans200-response.d.ts +0 -17
  379. package/dist/esm/models/post-ai-scans200-response.js +0 -14
  380. package/dist/esm/models/post-ai-signin-sessions200-response.d.ts +0 -17
  381. package/dist/esm/models/post-ai-signin-sessions200-response.js +0 -14
  382. package/dist/esm/models/post-ai-stores200-response.d.ts +0 -17
  383. package/dist/esm/models/post-ai-stores200-response.js +0 -14
  384. package/dist/esm/models/post-ai-tasks200-response.d.ts +0 -17
  385. package/dist/esm/models/post-ai-tasks200-response.js +0 -14
  386. package/dist/esm/models/post-ai-templates200-response.d.ts +0 -17
  387. package/dist/esm/models/post-ai-templates200-response.js +0 -14
  388. package/dist/esm/models/post-ai-tree-files200-response.d.ts +0 -17
  389. package/dist/esm/models/post-ai-tree-files200-response.js +0 -14
  390. package/dist/esm/models/post-ai-vectors200-response.d.ts +0 -17
  391. package/dist/esm/models/post-ai-vectors200-response.js +0 -14
  392. package/dist/esm/models/post-ai-videos200-response.d.ts +0 -17
  393. package/dist/esm/models/post-ai-videos200-response.js +0 -14
  394. package/dist/esm/models/post-ai-workflows200-response.d.ts +0 -17
  395. package/dist/esm/models/post-ai-workflows200-response.js +0 -14
  396. package/dist/esm/models/properties.d.ts +0 -30
  397. package/dist/esm/models/properties.js +0 -14
  398. package/dist/esm/models/provider.d.ts +0 -301
  399. package/dist/esm/models/provider.js +0 -14
  400. package/dist/esm/models/release-state.d.ts +0 -72
  401. package/dist/esm/models/release-state.js +0 -14
  402. package/dist/esm/models/remark.d.ts +0 -48
  403. package/dist/esm/models/remark.js +0 -14
  404. package/dist/esm/models/remote-app.js +0 -14
  405. package/dist/esm/models/resource-metrics.js +0 -14
  406. package/dist/esm/models/resource-requests.d.ts +0 -30
  407. package/dist/esm/models/resource-requests.js +0 -14
  408. package/dist/esm/models/scale.d.ts +0 -54
  409. package/dist/esm/models/scale.js +0 -14
  410. package/dist/esm/models/self-release-list.d.ts +0 -25
  411. package/dist/esm/models/self-release-list.js +0 -14
  412. package/dist/esm/models/service-detail.d.ts +0 -67
  413. package/dist/esm/models/service-detail.js +0 -14
  414. package/dist/esm/models/service-port.js +0 -14
  415. package/dist/esm/models/service.d.ts +0 -72
  416. package/dist/esm/models/service.js +0 -14
  417. package/dist/esm/models/session.js +0 -14
  418. package/dist/esm/models/store.d.ts +0 -311
  419. package/dist/esm/models/store.js +0 -14
  420. package/dist/esm/models/task.d.ts +0 -132
  421. package/dist/esm/models/task.js +0 -14
  422. package/dist/esm/models/template-config-option.d.ts +0 -54
  423. package/dist/esm/models/template-config-option.js +0 -14
  424. package/dist/esm/models/template.d.ts +0 -91
  425. package/dist/esm/models/template.js +0 -14
  426. package/dist/esm/models/tree-file.d.ts +0 -60
  427. package/dist/esm/models/tree-file.js +0 -14
  428. package/dist/esm/models/vector-score.js +0 -14
  429. package/dist/esm/models/vector.d.ts +0 -108
  430. package/dist/esm/models/vector.js +0 -14
  431. package/dist/esm/models/video.d.ts +0 -274
  432. package/dist/esm/models/video.js +0 -14
  433. package/dist/esm/models/vpc-list.d.ts +0 -25
  434. package/dist/esm/models/vpc-list.js +0 -14
  435. package/dist/esm/models/vpc-view.d.ts +0 -54
  436. package/dist/esm/models/vpc-view.js +0 -14
  437. package/dist/esm/models/workflow.d.ts +0 -66
  438. package/dist/esm/models/workflow.js +0 -14
  439. package/dist/models/activity.d.ts +0 -32
  440. package/dist/models/agent-mcp-tools.d.ts +0 -36
  441. package/dist/models/application-config-option.d.ts +0 -30
  442. package/dist/models/application-event.d.ts +0 -72
  443. package/dist/models/application-view.d.ts +0 -71
  444. package/dist/models/article.d.ts +0 -73
  445. package/dist/models/asset.d.ts +0 -108
  446. package/dist/models/audit.d.ts +0 -204
  447. package/dist/models/chat.d.ts +0 -168
  448. package/dist/models/connection.d.ts +0 -156
  449. package/dist/models/container-detail.d.ts +0 -37
  450. package/dist/models/create-lbreq.d.ts +0 -49
  451. package/dist/models/create-vpcreq.d.ts +0 -36
  452. package/dist/models/deployment-detail.d.ts +0 -55
  453. package/dist/models/env-variable.d.ts +0 -30
  454. package/dist/models/envelope.d.ts +0 -47
  455. package/dist/models/envelope.js +0 -20
  456. package/dist/models/example-question.d.ts +0 -36
  457. package/dist/models/form-item.d.ts +0 -48
  458. package/dist/models/form.d.ts +0 -79
  459. package/dist/models/fwd-rule.d.ts +0 -42
  460. package/dist/models/get-ai-activities200-response.d.ts +0 -17
  461. package/dist/models/get-ai-articles200-response.d.ts +0 -17
  462. package/dist/models/get-ai-articles200-response.js +0 -15
  463. package/dist/models/get-ai-assets200-response.d.ts +0 -17
  464. package/dist/models/get-ai-assets200-response.js +0 -15
  465. package/dist/models/get-ai-chats200-response.d.ts +0 -17
  466. package/dist/models/get-ai-chats200-response.js +0 -15
  467. package/dist/models/get-ai-deployments200-response.d.ts +0 -17
  468. package/dist/models/get-ai-deployments200-response.js +0 -15
  469. package/dist/models/get-ai-files200-response.d.ts +0 -17
  470. package/dist/models/get-ai-files200-response.js +0 -15
  471. package/dist/models/get-ai-forms200-response.d.ts +0 -17
  472. package/dist/models/get-ai-forms200-response.js +0 -15
  473. package/dist/models/get-ai-graphs200-response.d.ts +0 -17
  474. package/dist/models/get-ai-graphs200-response.js +0 -15
  475. package/dist/models/get-ai-messages200-response.d.ts +0 -17
  476. package/dist/models/get-ai-messages200-response.js +0 -15
  477. package/dist/models/get-ai-nodes200-response.d.ts +0 -17
  478. package/dist/models/get-ai-nodes200-response.js +0 -15
  479. package/dist/models/get-ai-providers200-response.d.ts +0 -17
  480. package/dist/models/get-ai-providers200-response.js +0 -15
  481. package/dist/models/get-ai-records200-response.d.ts +0 -17
  482. package/dist/models/get-ai-records200-response.js +0 -15
  483. package/dist/models/get-ai-remote-connections200-response.d.ts +0 -17
  484. package/dist/models/get-ai-remote-connections200-response.js +0 -15
  485. package/dist/models/get-ai-routes200-response.d.ts +0 -17
  486. package/dist/models/get-ai-routes200-response.js +0 -15
  487. package/dist/models/get-ai-scales200-response.d.ts +0 -17
  488. package/dist/models/get-ai-scales200-response.js +0 -15
  489. package/dist/models/get-ai-scans200-response.d.ts +0 -17
  490. package/dist/models/get-ai-scans200-response.js +0 -15
  491. package/dist/models/get-ai-signin-sessions200-response.d.ts +0 -17
  492. package/dist/models/get-ai-signin-sessions200-response.js +0 -15
  493. package/dist/models/get-ai-stores200-response.d.ts +0 -17
  494. package/dist/models/get-ai-stores200-response.js +0 -15
  495. package/dist/models/get-ai-tasks200-response.d.ts +0 -17
  496. package/dist/models/get-ai-tasks200-response.js +0 -15
  497. package/dist/models/get-ai-templates200-response.d.ts +0 -17
  498. package/dist/models/get-ai-templates200-response.js +0 -15
  499. package/dist/models/get-ai-usages200-response.d.ts +0 -17
  500. package/dist/models/get-ai-usages200-response.js +0 -15
  501. package/dist/models/get-ai-vectors200-response.d.ts +0 -17
  502. package/dist/models/get-ai-vectors200-response.js +0 -15
  503. package/dist/models/get-ai-videos200-response.d.ts +0 -17
  504. package/dist/models/get-ai-videos200-response.js +0 -15
  505. package/dist/models/get-ai-workflows200-response.d.ts +0 -17
  506. package/dist/models/get-ai-workflows200-response.js +0 -15
  507. package/dist/models/graph.d.ts +0 -90
  508. package/dist/models/graph.js +0 -15
  509. package/dist/models/label.d.ts +0 -78
  510. package/dist/models/label.js +0 -15
  511. package/dist/models/lb-list.d.ts +0 -25
  512. package/dist/models/lb-list.js +0 -15
  513. package/dist/models/lb-view.d.ts +0 -54
  514. package/dist/models/lb-view.js +0 -15
  515. package/dist/models/message.d.ts +0 -232
  516. package/dist/models/message.js +0 -15
  517. package/dist/models/model-file.d.ts +0 -84
  518. package/dist/models/model-file.js +0 -15
  519. package/dist/models/model-route.d.ts +0 -126
  520. package/dist/models/model-route.js +0 -15
  521. package/dist/models/model-search-result.d.ts +0 -48
  522. package/dist/models/model-search-result.js +0 -15
  523. package/dist/models/model-tool-call.d.ts +0 -36
  524. package/dist/models/model-tool-call.js +0 -15
  525. package/dist/models/node.d.ts +0 -183
  526. package/dist/models/node.js +0 -15
  527. package/dist/models/patch.d.ts +0 -72
  528. package/dist/models/patch.js +0 -15
  529. package/dist/models/post-ai-articles200-response.d.ts +0 -17
  530. package/dist/models/post-ai-articles200-response.js +0 -15
  531. package/dist/models/post-ai-assets200-response.d.ts +0 -17
  532. package/dist/models/post-ai-assets200-response.js +0 -15
  533. package/dist/models/post-ai-chats200-response.d.ts +0 -17
  534. package/dist/models/post-ai-chats200-response.js +0 -15
  535. package/dist/models/post-ai-deployments200-response.d.ts +0 -17
  536. package/dist/models/post-ai-deployments200-response.js +0 -15
  537. package/dist/models/post-ai-files200-response.d.ts +0 -17
  538. package/dist/models/post-ai-files200-response.js +0 -15
  539. package/dist/models/post-ai-forms200-response.d.ts +0 -17
  540. package/dist/models/post-ai-forms200-response.js +0 -15
  541. package/dist/models/post-ai-graphs200-response.d.ts +0 -17
  542. package/dist/models/post-ai-graphs200-response.js +0 -15
  543. package/dist/models/post-ai-messages200-response.d.ts +0 -17
  544. package/dist/models/post-ai-messages200-response.js +0 -15
  545. package/dist/models/post-ai-nodes200-response.d.ts +0 -17
  546. package/dist/models/post-ai-nodes200-response.js +0 -15
  547. package/dist/models/post-ai-providers200-response.d.ts +0 -17
  548. package/dist/models/post-ai-providers200-response.js +0 -15
  549. package/dist/models/post-ai-records200-response.d.ts +0 -17
  550. package/dist/models/post-ai-records200-response.js +0 -15
  551. package/dist/models/post-ai-remote-connections200-response.d.ts +0 -17
  552. package/dist/models/post-ai-remote-connections200-response.js +0 -15
  553. package/dist/models/post-ai-routes200-response.d.ts +0 -17
  554. package/dist/models/post-ai-routes200-response.js +0 -15
  555. package/dist/models/post-ai-scales200-response.d.ts +0 -17
  556. package/dist/models/post-ai-scales200-response.js +0 -15
  557. package/dist/models/post-ai-scans200-response.d.ts +0 -17
  558. package/dist/models/post-ai-scans200-response.js +0 -15
  559. package/dist/models/post-ai-signin-sessions200-response.d.ts +0 -17
  560. package/dist/models/post-ai-signin-sessions200-response.js +0 -15
  561. package/dist/models/post-ai-stores200-response.d.ts +0 -17
  562. package/dist/models/post-ai-stores200-response.js +0 -15
  563. package/dist/models/post-ai-tasks200-response.d.ts +0 -17
  564. package/dist/models/post-ai-tasks200-response.js +0 -15
  565. package/dist/models/post-ai-templates200-response.d.ts +0 -17
  566. package/dist/models/post-ai-templates200-response.js +0 -15
  567. package/dist/models/post-ai-tree-files200-response.d.ts +0 -17
  568. package/dist/models/post-ai-tree-files200-response.js +0 -15
  569. package/dist/models/post-ai-vectors200-response.d.ts +0 -17
  570. package/dist/models/post-ai-vectors200-response.js +0 -15
  571. package/dist/models/post-ai-videos200-response.d.ts +0 -17
  572. package/dist/models/post-ai-videos200-response.js +0 -15
  573. package/dist/models/post-ai-workflows200-response.d.ts +0 -17
  574. package/dist/models/post-ai-workflows200-response.js +0 -15
  575. package/dist/models/properties.d.ts +0 -30
  576. package/dist/models/properties.js +0 -15
  577. package/dist/models/provider.d.ts +0 -301
  578. package/dist/models/provider.js +0 -15
  579. package/dist/models/release-state.d.ts +0 -72
  580. package/dist/models/release-state.js +0 -15
  581. package/dist/models/remark.d.ts +0 -48
  582. package/dist/models/remark.js +0 -15
  583. package/dist/models/remote-app.js +0 -15
  584. package/dist/models/resource-metrics.js +0 -15
  585. package/dist/models/resource-requests.d.ts +0 -30
  586. package/dist/models/resource-requests.js +0 -15
  587. package/dist/models/scale.d.ts +0 -54
  588. package/dist/models/scale.js +0 -15
  589. package/dist/models/self-release-list.d.ts +0 -25
  590. package/dist/models/self-release-list.js +0 -15
  591. package/dist/models/service-detail.d.ts +0 -67
  592. package/dist/models/service-detail.js +0 -15
  593. package/dist/models/service-port.js +0 -15
  594. package/dist/models/service.d.ts +0 -72
  595. package/dist/models/service.js +0 -15
  596. package/dist/models/session.js +0 -15
  597. package/dist/models/store.d.ts +0 -311
  598. package/dist/models/store.js +0 -15
  599. package/dist/models/task.d.ts +0 -132
  600. package/dist/models/task.js +0 -15
  601. package/dist/models/template-config-option.d.ts +0 -54
  602. package/dist/models/template-config-option.js +0 -15
  603. package/dist/models/template.d.ts +0 -91
  604. package/dist/models/template.js +0 -15
  605. package/dist/models/tree-file.d.ts +0 -60
  606. package/dist/models/tree-file.js +0 -15
  607. package/dist/models/vector-score.js +0 -15
  608. package/dist/models/vector.d.ts +0 -108
  609. package/dist/models/vector.js +0 -15
  610. package/dist/models/video.d.ts +0 -274
  611. package/dist/models/video.js +0 -15
  612. package/dist/models/vpc-list.d.ts +0 -25
  613. package/dist/models/vpc-list.js +0 -15
  614. package/dist/models/vpc-view.d.ts +0 -54
  615. package/dist/models/vpc-view.js +0 -15
  616. package/dist/models/workflow.d.ts +0 -66
  617. package/dist/models/workflow.js +0 -15
  618. package/src/api/balancers-api.ts +0 -395
  619. package/src/api/datastore-api.ts +0 -395
  620. package/src/api/docdb-api.ts +0 -395
  621. package/src/api/generate-text-to-speech-audio-api.ts +0 -126
  622. package/src/api/generate-text-to-speech-audio-stream-api.ts +0 -126
  623. package/src/api/health-api.ts +0 -126
  624. package/src/api/kv-api.ts +0 -395
  625. package/src/api/process-speech-to-text-api.ts +0 -126
  626. package/src/api/sql-api.ts +0 -395
  627. package/src/api/vpcs-api.ts +0 -395
  628. package/src/models/activity.ts +0 -36
  629. package/src/models/agent-mcp-tools.ts +0 -42
  630. package/src/models/application-event.ts +0 -78
  631. package/src/models/application-view.ts +0 -87
  632. package/src/models/article.ts +0 -81
  633. package/src/models/asset.ts +0 -114
  634. package/src/models/audit.ts +0 -210
  635. package/src/models/chat.ts +0 -174
  636. package/src/models/connection.ts +0 -162
  637. package/src/models/create-lbreq.ts +0 -57
  638. package/src/models/create-vpcreq.ts +0 -42
  639. package/src/models/deployment-detail.ts +0 -63
  640. package/src/models/env-variable.ts +0 -36
  641. package/src/models/envelope.ts +0 -56
  642. package/src/models/example-question.ts +0 -42
  643. package/src/models/form-item.ts +0 -54
  644. package/src/models/form.ts +0 -87
  645. package/src/models/fwd-rule.ts +0 -48
  646. package/src/models/get-ai-activities200-response.ts +0 -29
  647. package/src/models/get-ai-articles200-response.ts +0 -29
  648. package/src/models/get-ai-assets200-response.ts +0 -29
  649. package/src/models/get-ai-chats200-response.ts +0 -29
  650. package/src/models/get-ai-deployments200-response.ts +0 -29
  651. package/src/models/get-ai-forms200-response.ts +0 -29
  652. package/src/models/get-ai-graphs200-response.ts +0 -29
  653. package/src/models/get-ai-messages200-response.ts +0 -29
  654. package/src/models/get-ai-nodes200-response.ts +0 -29
  655. package/src/models/get-ai-providers200-response.ts +0 -29
  656. package/src/models/get-ai-records200-response.ts +0 -29
  657. package/src/models/get-ai-remote-connections200-response.ts +0 -29
  658. package/src/models/get-ai-routes200-response.ts +0 -29
  659. package/src/models/get-ai-scales200-response.ts +0 -29
  660. package/src/models/get-ai-scans200-response.ts +0 -29
  661. package/src/models/get-ai-signin-sessions200-response.ts +0 -29
  662. package/src/models/get-ai-stores200-response.ts +0 -29
  663. package/src/models/get-ai-tasks200-response.ts +0 -29
  664. package/src/models/get-ai-templates200-response.ts +0 -29
  665. package/src/models/get-ai-usages200-response.ts +0 -29
  666. package/src/models/get-ai-vectors200-response.ts +0 -29
  667. package/src/models/get-ai-videos200-response.ts +0 -29
  668. package/src/models/get-ai-workflows200-response.ts +0 -29
  669. package/src/models/graph.ts +0 -96
  670. package/src/models/label.ts +0 -84
  671. package/src/models/message.ts +0 -246
  672. package/src/models/model-file.ts +0 -90
  673. package/src/models/model-route.ts +0 -132
  674. package/src/models/model-search-result.ts +0 -54
  675. package/src/models/model-tool-call.ts +0 -42
  676. package/src/models/node.ts +0 -195
  677. package/src/models/patch.ts +0 -78
  678. package/src/models/post-ai-articles200-response.ts +0 -29
  679. package/src/models/post-ai-assets200-response.ts +0 -29
  680. package/src/models/post-ai-chats200-response.ts +0 -29
  681. package/src/models/post-ai-deployments200-response.ts +0 -29
  682. package/src/models/post-ai-files200-response.ts +0 -26
  683. package/src/models/post-ai-forms200-response.ts +0 -29
  684. package/src/models/post-ai-graphs200-response.ts +0 -29
  685. package/src/models/post-ai-messages200-response.ts +0 -29
  686. package/src/models/post-ai-nodes200-response.ts +0 -29
  687. package/src/models/post-ai-providers200-response.ts +0 -29
  688. package/src/models/post-ai-records200-response.ts +0 -29
  689. package/src/models/post-ai-remote-connections200-response.ts +0 -29
  690. package/src/models/post-ai-routes200-response.ts +0 -29
  691. package/src/models/post-ai-scales200-response.ts +0 -29
  692. package/src/models/post-ai-scans200-response.ts +0 -29
  693. package/src/models/post-ai-signin-sessions200-response.ts +0 -29
  694. package/src/models/post-ai-stores200-response.ts +0 -29
  695. package/src/models/post-ai-tasks200-response.ts +0 -29
  696. package/src/models/post-ai-templates200-response.ts +0 -29
  697. package/src/models/post-ai-tree-files200-response.ts +0 -29
  698. package/src/models/post-ai-vectors200-response.ts +0 -29
  699. package/src/models/post-ai-videos200-response.ts +0 -29
  700. package/src/models/post-ai-workflows200-response.ts +0 -29
  701. package/src/models/properties.ts +0 -36
  702. package/src/models/provider.ts +0 -309
  703. package/src/models/release-state.ts +0 -78
  704. package/src/models/remark.ts +0 -54
  705. package/src/models/resource-requests.ts +0 -36
  706. package/src/models/scale.ts +0 -60
  707. package/src/models/service-detail.ts +0 -75
  708. package/src/models/service.ts +0 -78
  709. package/src/models/store.ts +0 -321
  710. package/src/models/task.ts +0 -138
  711. package/src/models/template-config-option.ts +0 -60
  712. package/src/models/template.ts +0 -99
  713. package/src/models/tree-file.ts +0 -66
  714. package/src/models/vector.ts +0 -114
  715. package/src/models/video.ts +0 -282
  716. package/src/models/vpc-view.ts +0 -60
  717. package/src/models/workflow.ts +0 -72
  718. /package/dist/esm/models/{activity.js → allowance.js} +0 -0
  719. /package/dist/esm/models/{agent-mcp-tools.js → backend-status.js} +0 -0
  720. /package/dist/esm/models/{application-config-option.js → claim-row.js} +0 -0
  721. /package/dist/esm/models/{application-event.js → claims-out.js} +0 -0
  722. /package/dist/esm/models/{application-view.js → edge-state.js} +0 -0
  723. /package/dist/esm/models/{article.js → gitlab-project-view.js} +0 -0
  724. /package/dist/esm/models/{asset.js → gitlab-projects-out.js} +0 -0
  725. /package/dist/esm/models/{audit.js → history-out.js} +0 -0
  726. /package/dist/esm/models/{block.js → iam-account-body.js} +0 -0
  727. /package/dist/esm/models/{chat.js → iam-assume-body.js} +0 -0
  728. /package/dist/esm/models/{connection.js → iam-search-organizations-output.js} +0 -0
  729. /package/dist/esm/models/{container-detail.js → iam-set-avatar-input.js} +0 -0
  730. /package/dist/esm/models/{create-lbreq.js → match.js} +0 -0
  731. /package/dist/esm/models/{create-vpcreq.js → model-history.js} +0 -0
  732. /package/dist/esm/models/{deployment-detail.js → published-claim.js} +0 -0
  733. /package/dist/esm/models/{env-variable.js → put-claims-in.js} +0 -0
  734. /package/dist/esm/models/{example-question.js → put-claims-out.js} +0 -0
  735. /package/dist/esm/models/{form-item.js → request.js} +0 -0
  736. /package/dist/esm/models/{form.js → response.js} +0 -0
  737. /package/dist/esm/models/{fwd-rule.js → run-point.js} +0 -0
  738. /package/dist/esm/models/{get-ai-activities200-response.js → trail.js} +0 -0
  739. /package/dist/models/{activity.js → allowance.js} +0 -0
  740. /package/dist/models/{agent-mcp-tools.js → backend-status.js} +0 -0
  741. /package/dist/models/{application-config-option.js → claim-row.js} +0 -0
  742. /package/dist/models/{application-event.js → claims-out.js} +0 -0
  743. /package/dist/models/{application-view.js → edge-state.js} +0 -0
  744. /package/dist/models/{article.js → gitlab-project-view.js} +0 -0
  745. /package/dist/models/{asset.js → gitlab-projects-out.js} +0 -0
  746. /package/dist/models/{audit.js → history-out.js} +0 -0
  747. /package/dist/models/{block.js → iam-account-body.js} +0 -0
  748. /package/dist/models/{chat.js → iam-assume-body.js} +0 -0
  749. /package/dist/models/{connection.js → iam-search-organizations-output.js} +0 -0
  750. /package/dist/models/{container-detail.js → iam-set-avatar-input.js} +0 -0
  751. /package/dist/models/{create-lbreq.js → match.js} +0 -0
  752. /package/dist/models/{create-vpcreq.js → model-history.js} +0 -0
  753. /package/dist/models/{deployment-detail.js → published-claim.js} +0 -0
  754. /package/dist/models/{env-variable.js → put-claims-in.js} +0 -0
  755. /package/dist/models/{example-question.js → put-claims-out.js} +0 -0
  756. /package/dist/models/{form-item.js → request.js} +0 -0
  757. /package/dist/models/{form.js → response.js} +0 -0
  758. /package/dist/models/{fwd-rule.js → run-point.js} +0 -0
  759. /package/dist/models/{get-ai-activities200-response.js → trail.js} +0 -0
@@ -22,6 +22,8 @@ import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObj
22
22
  // @ts-ignore
23
23
  import { BASE_PATH, COLLECTION_FORMATS, type RequestArgs, BaseAPI, RequiredError, operationServerMap } from '../base';
24
24
  // @ts-ignore
25
+ import type { ProjectsBoundDomains } from '../models';
26
+ // @ts-ignore
25
27
  import type { ProjectsBuildSite } from '../models';
26
28
  // @ts-ignore
27
29
  import type { ProjectsComplete } from '../models';
@@ -32,6 +34,16 @@ import type { ProjectsDeployStart } from '../models';
32
34
  // @ts-ignore
33
35
  import type { ProjectsDeployment } from '../models';
34
36
  // @ts-ignore
37
+ import type { ProjectsDomain } from '../models';
38
+ // @ts-ignore
39
+ import type { ProjectsDomains } from '../models';
40
+ // @ts-ignore
41
+ import type { ProjectsDomainsBind } from '../models';
42
+ // @ts-ignore
43
+ import type { ProjectsFork } from '../models';
44
+ // @ts-ignore
45
+ import type { ProjectsProject } from '../models';
46
+ // @ts-ignore
35
47
  import type { ProjectsPublish } from '../models';
36
48
  // @ts-ignore
37
49
  import type { ProjectsRelease } from '../models';
@@ -39,12 +51,94 @@ import type { ProjectsRelease } from '../models';
39
51
  import type { ProjectsSite } from '../models';
40
52
  // @ts-ignore
41
53
  import type { ProjectsSiteDeploy } from '../models';
54
+ // @ts-ignore
55
+ import type { ProjectsUpdate } from '../models';
42
56
  /**
43
57
  * SitesApi - axios parameter creator
44
58
  * @export
45
59
  */
46
60
  export const SitesApiAxiosParamCreator = function (configuration?: Configuration) {
47
61
  return {
62
+ /**
63
+ * Deletes a project and takes its site off the internet. The metadata delete is authoritative and everything after it is best-effort, in this order: the public `<slug>` subdomain binding is released so the slug is free to reclaim, the release rows are dropped so a reclaimed slug never inherits the previous owner\'s rollback menu, the git source is retired on every copy it has so a reclaimed slug never adopts a repository left behind (visibility.go), the S3 origin is purged under BOTH `<org>/<slug>/` and the site\'s sibling release space, and the edge cache-tag is flushed. A failure in any of those is logged and the delete still answers 204 — resurrecting a project because a purge missed would be worse than a leaked prefix. Scope: a validated principal is required (403 without one) and the project is resolved within that principal\'s org, so another tenant\'s slug is a 404 and nothing of theirs is touched.
64
+ * @summary Deletes a project and takes its site off the internet.
65
+ * @param {string} slug Slug is the project to act on, from the path. It is unique within the caller\&#39;s org and nowhere else, so another tenant\&#39;s slug is a 404.
66
+ * @param {*} [options] Override http request option.
67
+ * @throws {RequiredError}
68
+ */
69
+ deleteSitesBySlug: async (slug: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
70
+ // verify required parameter 'slug' is not null or undefined
71
+ assertParamExists('deleteSitesBySlug', 'slug', slug)
72
+ const localVarPath = `/v1/sites/{slug}`
73
+ .replace(`{${"slug"}}`, encodeURIComponent(String(slug)));
74
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
75
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
76
+ let baseOptions;
77
+ if (configuration) {
78
+ baseOptions = configuration.baseOptions;
79
+ }
80
+
81
+ const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
82
+ const localVarHeaderParameter = {} as any;
83
+ const localVarQueryParameter = {} as any;
84
+
85
+ // authentication bearer required
86
+ // http bearer authentication required
87
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
88
+
89
+
90
+
91
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
92
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
93
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
94
+
95
+ return {
96
+ url: toPathString(localVarUrlObj),
97
+ options: localVarRequestOptions,
98
+ };
99
+ },
100
+ /**
101
+ * Gives a custom hostname back, so the name is free to reuse. A claim is FIRST-COME and global, so an add-only surface was not ownership but a leak: a customer who mistyped a domain, or claimed one they later moved elsewhere, could neither reuse it nor let anyone else. This is the third writer that closes it. The release is scoped to (host, org, slug), so it can only ever drop THIS tenant\'s own claim, and it is IDEMPOTENT: releasing a host we do not hold is a clean 204, never a 404 that would let a caller probe which hosts other tenants hold. The edge cache-tag is flushed, since the host stops routing here. Scope: a validated principal is required (403 without one) and the site is resolved within that principal\'s org, so another tenant\'s slug is a 404.
102
+ * @summary Gives a custom hostname back, so the name is free to reuse.
103
+ * @param {string} slug Slug is the project the host is attached to, from the path.
104
+ * @param {string} host Host is the custom hostname, from the path. It is cleaned to its canonical form (lowercased, trailing dot dropped) before anything is looked up.
105
+ * @param {*} [options] Override http request option.
106
+ * @throws {RequiredError}
107
+ */
108
+ deleteSitesBySlugDomainsByHost: async (slug: string, host: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
109
+ // verify required parameter 'slug' is not null or undefined
110
+ assertParamExists('deleteSitesBySlugDomainsByHost', 'slug', slug)
111
+ // verify required parameter 'host' is not null or undefined
112
+ assertParamExists('deleteSitesBySlugDomainsByHost', 'host', host)
113
+ const localVarPath = `/v1/sites/{slug}/domains/{host}`
114
+ .replace(`{${"slug"}}`, encodeURIComponent(String(slug)))
115
+ .replace(`{${"host"}}`, encodeURIComponent(String(host)));
116
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
117
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
118
+ let baseOptions;
119
+ if (configuration) {
120
+ baseOptions = configuration.baseOptions;
121
+ }
122
+
123
+ const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
124
+ const localVarHeaderParameter = {} as any;
125
+ const localVarQueryParameter = {} as any;
126
+
127
+ // authentication bearer required
128
+ // http bearer authentication required
129
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
130
+
131
+
132
+
133
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
134
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
135
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
136
+
137
+ return {
138
+ url: toPathString(localVarUrlObj),
139
+ options: localVarRequestOptions,
140
+ };
141
+ },
48
142
  /**
49
143
  * Returns the org\'s deployed sites at the pretty URLs they serve at. It reads the SAME org-scoped store as /v1/projects and keeps only the projects that are actually `live`, so a draft or a failed build is not advertised as a site. Scope: a validated principal is required (403 without one) and the list is keyed by that principal\'s org.
50
144
  * @summary Returns the org\'s deployed sites at the pretty URLs they serve at.
@@ -188,6 +282,44 @@ export const SitesApiAxiosParamCreator = function (configuration?: Configuration
188
282
 
189
283
 
190
284
 
285
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
286
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
287
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
288
+
289
+ return {
290
+ url: toPathString(localVarUrlObj),
291
+ options: localVarRequestOptions,
292
+ };
293
+ },
294
+ /**
295
+ * Returns every custom hostname this site holds: the live ones, plus any pending claim with the DNS records it still owes. `domains` is the routing answer — the hosts that are verified right now — while `claims` is the full panel, one row per host, each saying whether it is live or pending and, if pending, exactly what to publish. Scope: a validated principal is required (403 without one) and the site is resolved within that principal\'s org, so another tenant\'s slug is a 404.
296
+ * @summary Returns every custom hostname this site holds: the live ones, plus any pending claim with the DNS records it still owes.
297
+ * @param {string} slug Slug is the project to act on, from the path. It is unique within the caller\&#39;s org and nowhere else, so another tenant\&#39;s slug is a 404.
298
+ * @param {*} [options] Override http request option.
299
+ * @throws {RequiredError}
300
+ */
301
+ getSitesBySlugDomains: async (slug: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
302
+ // verify required parameter 'slug' is not null or undefined
303
+ assertParamExists('getSitesBySlugDomains', 'slug', slug)
304
+ const localVarPath = `/v1/sites/{slug}/domains`
305
+ .replace(`{${"slug"}}`, encodeURIComponent(String(slug)));
306
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
307
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
308
+ let baseOptions;
309
+ if (configuration) {
310
+ baseOptions = configuration.baseOptions;
311
+ }
312
+
313
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
314
+ const localVarHeaderParameter = {} as any;
315
+ const localVarQueryParameter = {} as any;
316
+
317
+ // authentication bearer required
318
+ // http bearer authentication required
319
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
320
+
321
+
322
+
191
323
  setSearchParams(localVarUrlObj, localVarQueryParameter);
192
324
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
193
325
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
@@ -235,6 +367,50 @@ export const SitesApiAxiosParamCreator = function (configuration?: Configuration
235
367
  options: localVarRequestOptions,
236
368
  };
237
369
  },
370
+ /**
371
+ * Changes a project\'s settings, and only the settings you send. Every field is optional and absent means \"leave it\": `name` may not be blanked, `framework` must stay a known build hint, and `cacheControl` is capped at 256 characters with no newlines (it becomes a response header). `visibility` flips public/private under the same rule as create — public is free, private needs a funded org. `upstream` and `license` are free-text credit for third-party work, and sending \"\" clears one. Changing anything reconciles the project\'s canonical git repo, so a visibility change reaches the source and not just the listing. `hidden`/`hiddenReason` are platform MODERATION and are ignored unless the caller is a platform admin; they remove a project from the public catalogue without touching the publisher\'s own visibility choice, so un-hiding restores exactly what they asked for. Scope: a validated principal is required (403 without one) and the project is resolved within that principal\'s org, so another tenant\'s slug is a 404.
372
+ * @summary Changes a project\'s settings, and only the settings you send.
373
+ * @param {string} slug Slug is the project to update, from the path. The URL is the addressing authority — a &#x60;slug&#x60; in the body cannot move the write to another project.
374
+ * @param {ProjectsUpdate} projectsUpdate
375
+ * @param {*} [options] Override http request option.
376
+ * @throws {RequiredError}
377
+ */
378
+ patchSitesBySlug: async (slug: string, projectsUpdate: ProjectsUpdate, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
379
+ // verify required parameter 'slug' is not null or undefined
380
+ assertParamExists('patchSitesBySlug', 'slug', slug)
381
+ // verify required parameter 'projectsUpdate' is not null or undefined
382
+ assertParamExists('patchSitesBySlug', 'projectsUpdate', projectsUpdate)
383
+ const localVarPath = `/v1/sites/{slug}`
384
+ .replace(`{${"slug"}}`, encodeURIComponent(String(slug)));
385
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
386
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
387
+ let baseOptions;
388
+ if (configuration) {
389
+ baseOptions = configuration.baseOptions;
390
+ }
391
+
392
+ const localVarRequestOptions = { method: 'PATCH', ...baseOptions, ...options};
393
+ const localVarHeaderParameter = {} as any;
394
+ const localVarQueryParameter = {} as any;
395
+
396
+ // authentication bearer required
397
+ // http bearer authentication required
398
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
399
+
400
+
401
+
402
+ localVarHeaderParameter['Content-Type'] = 'application/json';
403
+
404
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
405
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
406
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
407
+ localVarRequestOptions.data = serializeDataIfNeeded(projectsUpdate, localVarRequestOptions, configuration)
408
+
409
+ return {
410
+ url: toPathString(localVarUrlObj),
411
+ options: localVarRequestOptions,
412
+ };
413
+ },
238
414
  /**
239
415
  * Generates a self-contained, mobile-responsive static site from a natural-language brief and deploys it live in one call. One inference call turns `brief` (capped at 8 KiB) into a file manifest, which then runs through the SAME validation, guards and viewport guarantee as a hand-supplied manifest: index.html required at the root, absolute and traversal paths rejected, per-file and total size capped, and a mobile viewport meta tag injected into every HTML document that lacks one. The generated site is fully inline — no CDNs, no remote fonts or images — so it is CSP-safe. `slug` and `name` are optional: the model\'s own title is preferred, and a slug is derived or minted when none is given. It writes into the SAME org-scoped store as /v1/projects — it ensures a project (framework `static`) for the resolved slug and records a deployment — so this is a second door onto one publish pipeline, not a second copy of project state. Ordering is the billing contract: the hosting gate runs BEFORE any inference or upload, so a denied gate generates and uploads NOTHING, and the debit lands once, only after the site is actually live. The tokens are billed to the same ledger the hosting fee was reserved against. Answers 503 when object storage or inference is unconfigured, and 400 when the model\'s manifest cannot be parsed or fails the guards. Scope: a validated principal is required (403 without one) and the site is published into THAT principal\'s org.
240
416
  * @summary Generates a self-contained, mobile-responsive static site from a natural-language brief and deploys it live in one call.
@@ -275,6 +451,48 @@ export const SitesApiAxiosParamCreator = function (configuration?: Configuration
275
451
  options: localVarRequestOptions,
276
452
  };
277
453
  },
454
+ /**
455
+ * Takes a built site live at `https://<slug>.hanzo.app` in one call. The body is the site itself — a `zip` or `tar.gz` holding `index.html` at its root (or a single wrapper directory that does), sent raw or as a multipart file part. It is unpacked to the site\'s own storage prefix and served immediately, answering the finished deployment. It is bounded by the edge body limit (16 MiB by default), and that bound is the whole reason the other path exists: an oversized POST is refused by the server BEFORE any handler runs and surfaces as an opaque `400 Error when parsing request` that reads like a malformed payload rather than a size cap. A site too large for one archive opens a deployment with `POST /v1/sites/{slug}/deployments` instead and writes its files straight to storage against the scoped grant that answers with — no body limit, and no bytes through this API at all. Billing is fail-closed and fails FIRST: the hosting gate runs before anything is parsed or uploaded, so an unfunded org is 402 and an unreachable commerce is 503 with nothing written. The debit lands only on success — a failed upload is never billed and never flips the live site — and a redeploy answers the SAME URL, because slug and apex are stable. Scope: a validated principal is required (403 without one) and the site is resolved within that principal\'s org, so another tenant\'s slug is a 404. Object storage must be configured (503); an archive that does not walk is a 400 and one over the size cap is a 413.
456
+ * @summary Upload a built site as one archive and serve it
457
+ * @param {string} slug
458
+ * @param {File} [body]
459
+ * @param {*} [options] Override http request option.
460
+ * @throws {RequiredError}
461
+ */
462
+ postSitesBySlugDeploy: async (slug: string, body?: File, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
463
+ // verify required parameter 'slug' is not null or undefined
464
+ assertParamExists('postSitesBySlugDeploy', 'slug', slug)
465
+ const localVarPath = `/v1/sites/{slug}/deploy`
466
+ .replace(`{${"slug"}}`, encodeURIComponent(String(slug)));
467
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
468
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
469
+ let baseOptions;
470
+ if (configuration) {
471
+ baseOptions = configuration.baseOptions;
472
+ }
473
+
474
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
475
+ const localVarHeaderParameter = {} as any;
476
+ const localVarQueryParameter = {} as any;
477
+
478
+ // authentication bearer required
479
+ // http bearer authentication required
480
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
481
+
482
+
483
+
484
+ localVarHeaderParameter['Content-Type'] = 'application/octet-stream';
485
+
486
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
487
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
488
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
489
+ localVarRequestOptions.data = serializeDataIfNeeded(body, localVarRequestOptions, configuration)
490
+
491
+ return {
492
+ url: toPathString(localVarUrlObj),
493
+ options: localVarRequestOptions,
494
+ };
495
+ },
278
496
  /**
279
497
  * Opens a deployment and hands back a short-lived, prefix-scoped grant to write its bytes straight to object storage. Answers 202. This is the path for a site too large to send as one archive: a real export is hundreds of megabytes against a 16 MiB body limit, so the bytes deliberately do NOT pass through the API. The answer carries `bucket`, `prefix` and `upload` — a presigned POST policy that S3 itself confines to this site\'s prefix (starts-with `<org>/<slug>/`), expires in 30 minutes and bounds each object. So a build writes its own files and holds no standing bucket credential; there is nothing to rotate and nothing that leaks between tenants. Never guess the prefix — it is server-derived, and a guessed one lands where nothing is served. The deployment is `queued` until POST .../deployments/{id}/complete flips it live (or error). That completion is also where DELETION happens: the grant authorizes writes only, so a build cannot remove a file, and cloud reconciles the prefix against the `keys` manifest the completion carries. A build that dies before completing leaves the deployment queued rather than a half-live site. The grant is on the 202 and NOWHERE else — it is never stored and never replayed on a later read, so it cannot outlive the build it was minted for. A deployment whose grant could not be minted is still created and still completable; it simply carries no `upload`, and a caller with no other way to write should treat that as the failure it is. Billing: the hosting gate runs BEFORE anything is created (402 unfunded, 503 commerce unreachable), and the debit lands on the completion that goes live — never on a queued or failed build. Scope: a validated principal is required (403 without one) and the site is resolved within that principal\'s org, so another tenant\'s slug is a 404.
280
498
  * @summary Opens a deployment and hands back a short-lived, prefix-scoped grant to write its bytes straight to object storage.
@@ -367,6 +585,92 @@ export const SitesApiAxiosParamCreator = function (configuration?: Configuration
367
585
  options: localVarRequestOptions,
368
586
  };
369
587
  },
588
+ /**
589
+ * Attaches one or more CUSTOM public hostnames to this org\'s site. Binding a host you do not own would let you shadow it at the edge, so which outcome you get depends on whether ownership is already established: a SuperAdmin vouches (the operator manages the customer\'s DNS, so its bind IS the proof) and binds VERIFIED immediately; every other caller, INCLUDING an admin of the deployment\'s own brand org, has the host CLAIMED as pending and gets the DNS challenge back in `bound[].records`. A pending claim HOLDS the name so nobody else can take it, but it does not route until POST .../domains/{host}/verify proves control. A hostname we operate is refused to a non-vouched caller (those are assigned by the platform, never claimed), a host another site already holds is a 409, and a name the platform holds is a 400 for EVERY caller — a vouch skips the ownership proof, never the host table\'s own invariant. Claims and binds are idempotent for the same (org, slug), and re-claiming returns the SAME token rather than invalidating a record the customer has already published. The edge cache-tag is flushed afterwards so a newly-verified host serves the current build immediately. Scope: a validated principal is required (403 without one) and the site is resolved within that principal\'s org, so another tenant\'s slug is a 404.
590
+ * @summary Attaches one or more CUSTOM public hostnames to this org\'s site.
591
+ * @param {string} slug Slug is the site the hosts attach to, from the path.
592
+ * @param {ProjectsDomainsBind} projectsDomainsBind
593
+ * @param {*} [options] Override http request option.
594
+ * @throws {RequiredError}
595
+ */
596
+ postSitesBySlugDomains: async (slug: string, projectsDomainsBind: ProjectsDomainsBind, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
597
+ // verify required parameter 'slug' is not null or undefined
598
+ assertParamExists('postSitesBySlugDomains', 'slug', slug)
599
+ // verify required parameter 'projectsDomainsBind' is not null or undefined
600
+ assertParamExists('postSitesBySlugDomains', 'projectsDomainsBind', projectsDomainsBind)
601
+ const localVarPath = `/v1/sites/{slug}/domains`
602
+ .replace(`{${"slug"}}`, encodeURIComponent(String(slug)));
603
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
604
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
605
+ let baseOptions;
606
+ if (configuration) {
607
+ baseOptions = configuration.baseOptions;
608
+ }
609
+
610
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
611
+ const localVarHeaderParameter = {} as any;
612
+ const localVarQueryParameter = {} as any;
613
+
614
+ // authentication bearer required
615
+ // http bearer authentication required
616
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
617
+
618
+
619
+
620
+ localVarHeaderParameter['Content-Type'] = 'application/json';
621
+
622
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
623
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
624
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
625
+ localVarRequestOptions.data = serializeDataIfNeeded(projectsDomainsBind, localVarRequestOptions, configuration)
626
+
627
+ return {
628
+ url: toPathString(localVarUrlObj),
629
+ options: localVarRequestOptions,
630
+ };
631
+ },
632
+ /**
633
+ * Checks the DNS challenge for a pending custom hostname and, when it passes, promotes the host so it begins routing at the edge. It answers 200 either way, with the host\'s honest current state: verified once the TXT record is found, still pending — with the records to publish and the resolver\'s own explanation in `detail` — when it is not. A not-yet is not an error: the check ran, DNS simply has not propagated, and the customer retries. An already-verified host is returned unchanged without re-resolving. On a successful promotion the edge cache-tag is flushed, since the host routes as of that moment. Scope: a validated principal is required (403 without one). Both the site and the claim are resolved within that principal\'s org, so a host claimed by another tenant is \"not claimed by this site\".
634
+ * @summary Checks the DNS challenge for a pending custom hostname and, when it passes, promotes the host so it begins routing at the edge.
635
+ * @param {string} slug Slug is the project the host is attached to, from the path.
636
+ * @param {string} host Host is the custom hostname, from the path. It is cleaned to its canonical form (lowercased, trailing dot dropped) before anything is looked up.
637
+ * @param {*} [options] Override http request option.
638
+ * @throws {RequiredError}
639
+ */
640
+ postSitesBySlugDomainsByHostVerify: async (slug: string, host: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
641
+ // verify required parameter 'slug' is not null or undefined
642
+ assertParamExists('postSitesBySlugDomainsByHostVerify', 'slug', slug)
643
+ // verify required parameter 'host' is not null or undefined
644
+ assertParamExists('postSitesBySlugDomainsByHostVerify', 'host', host)
645
+ const localVarPath = `/v1/sites/{slug}/domains/{host}/verify`
646
+ .replace(`{${"slug"}}`, encodeURIComponent(String(slug)))
647
+ .replace(`{${"host"}}`, encodeURIComponent(String(host)));
648
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
649
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
650
+ let baseOptions;
651
+ if (configuration) {
652
+ baseOptions = configuration.baseOptions;
653
+ }
654
+
655
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
656
+ const localVarHeaderParameter = {} as any;
657
+ const localVarQueryParameter = {} as any;
658
+
659
+ // authentication bearer required
660
+ // http bearer authentication required
661
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
662
+
663
+
664
+
665
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
666
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
667
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
668
+
669
+ return {
670
+ url: toPathString(localVarUrlObj),
671
+ options: localVarRequestOptions,
672
+ };
673
+ },
370
674
  /**
371
675
  * Promotes a build output into a new release AND goes live with it — create+activate in one call, which is the 99% path. It is exactly the two halves in sequence with no extra semantics, so the staged flow and the one-shot flow can never drift apart: `source` is promoted under the same org-relative rule and the same guards CreateRelease applies, then the site\'s pointer is flipped to it, the public host is claimed and the edge is purged. Idempotent on unchanged bytes — same manifest, same release id, no copy — and billed once, after the release exists. Scope: a validated principal is required (403 without one) and the site is resolved within that principal\'s org, so another tenant\'s slug is a 404.
372
676
  * @summary Promotes a build output into a new release AND goes live with it — create+activate in one call, which is the 99% path.
@@ -411,6 +715,44 @@ export const SitesApiAxiosParamCreator = function (configuration?: Configuration
411
715
  options: localVarRequestOptions,
412
716
  };
413
717
  },
718
+ /**
719
+ * Flushes the site\'s edge cache without redeploying anything. It invalidates the edge cache-tag `site-<org>-<slug>` and stamps `lastPurgeAt` (unix seconds), and it NEVER writes or deletes the S3 origin — the live build keeps serving; only stale copies held at the edge drop, so the next request re-fetches the current artifact from origin. Idempotent, and an edge that is unconfigured or failing is not fatal: `lastPurgeAt` is still stamped and the answer is still the updated project. Scope: a validated principal is required (403 without one) and the project is resolved within that principal\'s org, so another tenant\'s slug is a 404.
720
+ * @summary Flushes the site\'s edge cache without redeploying anything.
721
+ * @param {string} slug Slug is the project to act on, from the path. It is unique within the caller\&#39;s org and nowhere else, so another tenant\&#39;s slug is a 404.
722
+ * @param {*} [options] Override http request option.
723
+ * @throws {RequiredError}
724
+ */
725
+ postSitesBySlugPurge: async (slug: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
726
+ // verify required parameter 'slug' is not null or undefined
727
+ assertParamExists('postSitesBySlugPurge', 'slug', slug)
728
+ const localVarPath = `/v1/sites/{slug}/purge`
729
+ .replace(`{${"slug"}}`, encodeURIComponent(String(slug)));
730
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
731
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
732
+ let baseOptions;
733
+ if (configuration) {
734
+ baseOptions = configuration.baseOptions;
735
+ }
736
+
737
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
738
+ const localVarHeaderParameter = {} as any;
739
+ const localVarQueryParameter = {} as any;
740
+
741
+ // authentication bearer required
742
+ // http bearer authentication required
743
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
744
+
745
+
746
+
747
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
748
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
749
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
750
+
751
+ return {
752
+ url: toPathString(localVarUrlObj),
753
+ options: localVarRequestOptions,
754
+ };
755
+ },
414
756
  /**
415
757
  * Promotes a build output into a new immutable release WITHOUT serving it — the staged half of publishing, for when you want to check a release before it goes live. Answers 201. `source` is a path RELATIVE to your org\'s own storage space: the org segment is prepended server-side from the validated principal and the bucket is never in the request at all, so a server-side copy can only ever reach bytes your org already owns. The prefix is listed, content-addressed (SHA-256 over the sorted manifest of key/size/etag), and copied into an immutable `<org>/.releases/<slug>/<id>/` prefix; the row is written LAST, so a partial copy is unreachable rather than merely unlikely. Re-publishing an unchanged source is idempotent BY CONSTRUCTION — same bytes, same id, no copy at all. The source must contain index.html at its root and stay under the same file and byte caps an artifact deploy does (413 past them); a source that changes mid-copy is a 409 and the release is abandoned. Each publish also reclaims releases past the retention depth, so a site\'s release space stays bounded. This is the billable half — the hosting gate runs before any copy, and the debit lands once the release exists. Scope: a validated principal is required (403 without one) and the site is resolved within that principal\'s org, so another tenant\'s slug is a 404.
416
758
  * @summary Promotes a build output into a new immutable release WITHOUT serving it — the staged half of publishing, for when you want to check a release before it goes live.
@@ -532,6 +874,46 @@ export const SitesApiAxiosParamCreator = function (configuration?: Configuration
532
874
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
533
875
  localVarRequestOptions.data = serializeDataIfNeeded(projectsDeploySite, localVarRequestOptions, configuration)
534
876
 
877
+ return {
878
+ url: toPathString(localVarUrlObj),
879
+ options: localVarRequestOptions,
880
+ };
881
+ },
882
+ /**
883
+ * Creates a project seeded from a PUBLISHED EXAMPLE — either a starter-kit template from the ONE embedded gallery catalog, or any live project on the platform (an example a seeded creator published, or another org\'s app serving at <slug>.hanzo.app). Answers 201 with the new project. `slug` names the PARENT to fork and is required. Templates resolve first, and the caller org\'s own private templates ahead of the public gallery, so a curated template slug keeps meaning the same thing even if someone later publishes a live project under it; `variant` picks that template\'s format/page/theme. If no template matches, the slug resolves to the UNIQUE live project that owns it across all orgs — the same resolution the site edge uses to serve <slug>.hanzo.app, so what you can browse is what you can fork. `name` and `target` override the derived project name and slug; everything else is inherited from the parent. A live parent contributes its REPO, so the child builds from the same source — the parent\'s deployed bytes are never copied, because releases are per-tenant by design and the fork publishes its own. The parent it actually resolved is stamped on the child as `forkedFrom`, so attribution is a fact recorded at fork time rather than a claim reconstructed later. It funnels through the SAME create path POST /v1/projects uses, so slug validation, org scoping, ID minting and the 409 on a slug the caller\'s own org already uses are identical. Scope: a validated principal is required (403 without one) and the child is created in THAT principal\'s org.
884
+ * @summary Creates a project seeded from a PUBLISHED EXAMPLE — either a starter-kit template from the ONE embedded gallery catalog, or any live project on the platform (an example a seeded creator published, or another org\'s app serving at <slug>.hanzo.app).
885
+ * @param {ProjectsFork} projectsFork
886
+ * @param {*} [options] Override http request option.
887
+ * @throws {RequiredError}
888
+ */
889
+ postSitesFork: async (projectsFork: ProjectsFork, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
890
+ // verify required parameter 'projectsFork' is not null or undefined
891
+ assertParamExists('postSitesFork', 'projectsFork', projectsFork)
892
+ const localVarPath = `/v1/sites/fork`;
893
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
894
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
895
+ let baseOptions;
896
+ if (configuration) {
897
+ baseOptions = configuration.baseOptions;
898
+ }
899
+
900
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
901
+ const localVarHeaderParameter = {} as any;
902
+ const localVarQueryParameter = {} as any;
903
+
904
+ // authentication bearer required
905
+ // http bearer authentication required
906
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
907
+
908
+
909
+
910
+ localVarHeaderParameter['Content-Type'] = 'application/json';
911
+
912
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
913
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
914
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
915
+ localVarRequestOptions.data = serializeDataIfNeeded(projectsFork, localVarRequestOptions, configuration)
916
+
535
917
  return {
536
918
  url: toPathString(localVarUrlObj),
537
919
  options: localVarRequestOptions,
@@ -547,6 +929,33 @@ export const SitesApiAxiosParamCreator = function (configuration?: Configuration
547
929
  export const SitesApiFp = function(configuration?: Configuration) {
548
930
  const localVarAxiosParamCreator = SitesApiAxiosParamCreator(configuration)
549
931
  return {
932
+ /**
933
+ * Deletes a project and takes its site off the internet. The metadata delete is authoritative and everything after it is best-effort, in this order: the public `<slug>` subdomain binding is released so the slug is free to reclaim, the release rows are dropped so a reclaimed slug never inherits the previous owner\'s rollback menu, the git source is retired on every copy it has so a reclaimed slug never adopts a repository left behind (visibility.go), the S3 origin is purged under BOTH `<org>/<slug>/` and the site\'s sibling release space, and the edge cache-tag is flushed. A failure in any of those is logged and the delete still answers 204 — resurrecting a project because a purge missed would be worse than a leaked prefix. Scope: a validated principal is required (403 without one) and the project is resolved within that principal\'s org, so another tenant\'s slug is a 404 and nothing of theirs is touched.
934
+ * @summary Deletes a project and takes its site off the internet.
935
+ * @param {string} slug Slug is the project to act on, from the path. It is unique within the caller\&#39;s org and nowhere else, so another tenant\&#39;s slug is a 404.
936
+ * @param {*} [options] Override http request option.
937
+ * @throws {RequiredError}
938
+ */
939
+ async deleteSitesBySlug(slug: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
940
+ const localVarAxiosArgs = await localVarAxiosParamCreator.deleteSitesBySlug(slug, options);
941
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
942
+ const localVarOperationServerBasePath = operationServerMap['SitesApi.deleteSitesBySlug']?.[localVarOperationServerIndex]?.url;
943
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
944
+ },
945
+ /**
946
+ * Gives a custom hostname back, so the name is free to reuse. A claim is FIRST-COME and global, so an add-only surface was not ownership but a leak: a customer who mistyped a domain, or claimed one they later moved elsewhere, could neither reuse it nor let anyone else. This is the third writer that closes it. The release is scoped to (host, org, slug), so it can only ever drop THIS tenant\'s own claim, and it is IDEMPOTENT: releasing a host we do not hold is a clean 204, never a 404 that would let a caller probe which hosts other tenants hold. The edge cache-tag is flushed, since the host stops routing here. Scope: a validated principal is required (403 without one) and the site is resolved within that principal\'s org, so another tenant\'s slug is a 404.
947
+ * @summary Gives a custom hostname back, so the name is free to reuse.
948
+ * @param {string} slug Slug is the project the host is attached to, from the path.
949
+ * @param {string} host Host is the custom hostname, from the path. It is cleaned to its canonical form (lowercased, trailing dot dropped) before anything is looked up.
950
+ * @param {*} [options] Override http request option.
951
+ * @throws {RequiredError}
952
+ */
953
+ async deleteSitesBySlugDomainsByHost(slug: string, host: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
954
+ const localVarAxiosArgs = await localVarAxiosParamCreator.deleteSitesBySlugDomainsByHost(slug, host, options);
955
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
956
+ const localVarOperationServerBasePath = operationServerMap['SitesApi.deleteSitesBySlugDomainsByHost']?.[localVarOperationServerIndex]?.url;
957
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
958
+ },
550
959
  /**
551
960
  * Returns the org\'s deployed sites at the pretty URLs they serve at. It reads the SAME org-scoped store as /v1/projects and keeps only the projects that are actually `live`, so a draft or a failed build is not advertised as a site. Scope: a validated principal is required (403 without one) and the list is keyed by that principal\'s org.
552
961
  * @summary Returns the org\'s deployed sites at the pretty URLs they serve at.
@@ -596,7 +1005,20 @@ export const SitesApiFp = function(configuration?: Configuration) {
596
1005
  async getSitesBySlugDeploymentsById(slug: string, id: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ProjectsDeployment>> {
597
1006
  const localVarAxiosArgs = await localVarAxiosParamCreator.getSitesBySlugDeploymentsById(slug, id, options);
598
1007
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
599
- const localVarOperationServerBasePath = operationServerMap['SitesApi.getSitesBySlugDeploymentsById']?.[localVarOperationServerIndex]?.url;
1008
+ const localVarOperationServerBasePath = operationServerMap['SitesApi.getSitesBySlugDeploymentsById']?.[localVarOperationServerIndex]?.url;
1009
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1010
+ },
1011
+ /**
1012
+ * Returns every custom hostname this site holds: the live ones, plus any pending claim with the DNS records it still owes. `domains` is the routing answer — the hosts that are verified right now — while `claims` is the full panel, one row per host, each saying whether it is live or pending and, if pending, exactly what to publish. Scope: a validated principal is required (403 without one) and the site is resolved within that principal\'s org, so another tenant\'s slug is a 404.
1013
+ * @summary Returns every custom hostname this site holds: the live ones, plus any pending claim with the DNS records it still owes.
1014
+ * @param {string} slug Slug is the project to act on, from the path. It is unique within the caller\&#39;s org and nowhere else, so another tenant\&#39;s slug is a 404.
1015
+ * @param {*} [options] Override http request option.
1016
+ * @throws {RequiredError}
1017
+ */
1018
+ async getSitesBySlugDomains(slug: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ProjectsDomains>> {
1019
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getSitesBySlugDomains(slug, options);
1020
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1021
+ const localVarOperationServerBasePath = operationServerMap['SitesApi.getSitesBySlugDomains']?.[localVarOperationServerIndex]?.url;
600
1022
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
601
1023
  },
602
1024
  /**
@@ -612,6 +1034,20 @@ export const SitesApiFp = function(configuration?: Configuration) {
612
1034
  const localVarOperationServerBasePath = operationServerMap['SitesApi.getSitesBySlugReleases']?.[localVarOperationServerIndex]?.url;
613
1035
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
614
1036
  },
1037
+ /**
1038
+ * Changes a project\'s settings, and only the settings you send. Every field is optional and absent means \"leave it\": `name` may not be blanked, `framework` must stay a known build hint, and `cacheControl` is capped at 256 characters with no newlines (it becomes a response header). `visibility` flips public/private under the same rule as create — public is free, private needs a funded org. `upstream` and `license` are free-text credit for third-party work, and sending \"\" clears one. Changing anything reconciles the project\'s canonical git repo, so a visibility change reaches the source and not just the listing. `hidden`/`hiddenReason` are platform MODERATION and are ignored unless the caller is a platform admin; they remove a project from the public catalogue without touching the publisher\'s own visibility choice, so un-hiding restores exactly what they asked for. Scope: a validated principal is required (403 without one) and the project is resolved within that principal\'s org, so another tenant\'s slug is a 404.
1039
+ * @summary Changes a project\'s settings, and only the settings you send.
1040
+ * @param {string} slug Slug is the project to update, from the path. The URL is the addressing authority — a &#x60;slug&#x60; in the body cannot move the write to another project.
1041
+ * @param {ProjectsUpdate} projectsUpdate
1042
+ * @param {*} [options] Override http request option.
1043
+ * @throws {RequiredError}
1044
+ */
1045
+ async patchSitesBySlug(slug: string, projectsUpdate: ProjectsUpdate, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ProjectsProject>> {
1046
+ const localVarAxiosArgs = await localVarAxiosParamCreator.patchSitesBySlug(slug, projectsUpdate, options);
1047
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1048
+ const localVarOperationServerBasePath = operationServerMap['SitesApi.patchSitesBySlug']?.[localVarOperationServerIndex]?.url;
1049
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1050
+ },
615
1051
  /**
616
1052
  * Generates a self-contained, mobile-responsive static site from a natural-language brief and deploys it live in one call. One inference call turns `brief` (capped at 8 KiB) into a file manifest, which then runs through the SAME validation, guards and viewport guarantee as a hand-supplied manifest: index.html required at the root, absolute and traversal paths rejected, per-file and total size capped, and a mobile viewport meta tag injected into every HTML document that lacks one. The generated site is fully inline — no CDNs, no remote fonts or images — so it is CSP-safe. `slug` and `name` are optional: the model\'s own title is preferred, and a slug is derived or minted when none is given. It writes into the SAME org-scoped store as /v1/projects — it ensures a project (framework `static`) for the resolved slug and records a deployment — so this is a second door onto one publish pipeline, not a second copy of project state. Ordering is the billing contract: the hosting gate runs BEFORE any inference or upload, so a denied gate generates and uploads NOTHING, and the debit lands once, only after the site is actually live. The tokens are billed to the same ledger the hosting fee was reserved against. Answers 503 when object storage or inference is unconfigured, and 400 when the model\'s manifest cannot be parsed or fails the guards. Scope: a validated principal is required (403 without one) and the site is published into THAT principal\'s org.
617
1053
  * @summary Generates a self-contained, mobile-responsive static site from a natural-language brief and deploys it live in one call.
@@ -625,6 +1061,20 @@ export const SitesApiFp = function(configuration?: Configuration) {
625
1061
  const localVarOperationServerBasePath = operationServerMap['SitesApi.postSites']?.[localVarOperationServerIndex]?.url;
626
1062
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
627
1063
  },
1064
+ /**
1065
+ * Takes a built site live at `https://<slug>.hanzo.app` in one call. The body is the site itself — a `zip` or `tar.gz` holding `index.html` at its root (or a single wrapper directory that does), sent raw or as a multipart file part. It is unpacked to the site\'s own storage prefix and served immediately, answering the finished deployment. It is bounded by the edge body limit (16 MiB by default), and that bound is the whole reason the other path exists: an oversized POST is refused by the server BEFORE any handler runs and surfaces as an opaque `400 Error when parsing request` that reads like a malformed payload rather than a size cap. A site too large for one archive opens a deployment with `POST /v1/sites/{slug}/deployments` instead and writes its files straight to storage against the scoped grant that answers with — no body limit, and no bytes through this API at all. Billing is fail-closed and fails FIRST: the hosting gate runs before anything is parsed or uploaded, so an unfunded org is 402 and an unreachable commerce is 503 with nothing written. The debit lands only on success — a failed upload is never billed and never flips the live site — and a redeploy answers the SAME URL, because slug and apex are stable. Scope: a validated principal is required (403 without one) and the site is resolved within that principal\'s org, so another tenant\'s slug is a 404. Object storage must be configured (503); an archive that does not walk is a 400 and one over the size cap is a 413.
1066
+ * @summary Upload a built site as one archive and serve it
1067
+ * @param {string} slug
1068
+ * @param {File} [body]
1069
+ * @param {*} [options] Override http request option.
1070
+ * @throws {RequiredError}
1071
+ */
1072
+ async postSitesBySlugDeploy(slug: string, body?: File, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ProjectsDeployment>> {
1073
+ const localVarAxiosArgs = await localVarAxiosParamCreator.postSitesBySlugDeploy(slug, body, options);
1074
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1075
+ const localVarOperationServerBasePath = operationServerMap['SitesApi.postSitesBySlugDeploy']?.[localVarOperationServerIndex]?.url;
1076
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1077
+ },
628
1078
  /**
629
1079
  * Opens a deployment and hands back a short-lived, prefix-scoped grant to write its bytes straight to object storage. Answers 202. This is the path for a site too large to send as one archive: a real export is hundreds of megabytes against a 16 MiB body limit, so the bytes deliberately do NOT pass through the API. The answer carries `bucket`, `prefix` and `upload` — a presigned POST policy that S3 itself confines to this site\'s prefix (starts-with `<org>/<slug>/`), expires in 30 minutes and bounds each object. So a build writes its own files and holds no standing bucket credential; there is nothing to rotate and nothing that leaks between tenants. Never guess the prefix — it is server-derived, and a guessed one lands where nothing is served. The deployment is `queued` until POST .../deployments/{id}/complete flips it live (or error). That completion is also where DELETION happens: the grant authorizes writes only, so a build cannot remove a file, and cloud reconciles the prefix against the `keys` manifest the completion carries. A build that dies before completing leaves the deployment queued rather than a half-live site. The grant is on the 202 and NOWHERE else — it is never stored and never replayed on a later read, so it cannot outlive the build it was minted for. A deployment whose grant could not be minted is still created and still completable; it simply carries no `upload`, and a caller with no other way to write should treat that as the failure it is. Billing: the hosting gate runs BEFORE anything is created (402 unfunded, 503 commerce unreachable), and the debit lands on the completion that goes live — never on a queued or failed build. Scope: a validated principal is required (403 without one) and the site is resolved within that principal\'s org, so another tenant\'s slug is a 404.
630
1080
  * @summary Opens a deployment and hands back a short-lived, prefix-scoped grant to write its bytes straight to object storage.
@@ -654,6 +1104,34 @@ export const SitesApiFp = function(configuration?: Configuration) {
654
1104
  const localVarOperationServerBasePath = operationServerMap['SitesApi.postSitesBySlugDeploymentsByIdComplete']?.[localVarOperationServerIndex]?.url;
655
1105
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
656
1106
  },
1107
+ /**
1108
+ * Attaches one or more CUSTOM public hostnames to this org\'s site. Binding a host you do not own would let you shadow it at the edge, so which outcome you get depends on whether ownership is already established: a SuperAdmin vouches (the operator manages the customer\'s DNS, so its bind IS the proof) and binds VERIFIED immediately; every other caller, INCLUDING an admin of the deployment\'s own brand org, has the host CLAIMED as pending and gets the DNS challenge back in `bound[].records`. A pending claim HOLDS the name so nobody else can take it, but it does not route until POST .../domains/{host}/verify proves control. A hostname we operate is refused to a non-vouched caller (those are assigned by the platform, never claimed), a host another site already holds is a 409, and a name the platform holds is a 400 for EVERY caller — a vouch skips the ownership proof, never the host table\'s own invariant. Claims and binds are idempotent for the same (org, slug), and re-claiming returns the SAME token rather than invalidating a record the customer has already published. The edge cache-tag is flushed afterwards so a newly-verified host serves the current build immediately. Scope: a validated principal is required (403 without one) and the site is resolved within that principal\'s org, so another tenant\'s slug is a 404.
1109
+ * @summary Attaches one or more CUSTOM public hostnames to this org\'s site.
1110
+ * @param {string} slug Slug is the site the hosts attach to, from the path.
1111
+ * @param {ProjectsDomainsBind} projectsDomainsBind
1112
+ * @param {*} [options] Override http request option.
1113
+ * @throws {RequiredError}
1114
+ */
1115
+ async postSitesBySlugDomains(slug: string, projectsDomainsBind: ProjectsDomainsBind, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ProjectsBoundDomains>> {
1116
+ const localVarAxiosArgs = await localVarAxiosParamCreator.postSitesBySlugDomains(slug, projectsDomainsBind, options);
1117
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1118
+ const localVarOperationServerBasePath = operationServerMap['SitesApi.postSitesBySlugDomains']?.[localVarOperationServerIndex]?.url;
1119
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1120
+ },
1121
+ /**
1122
+ * Checks the DNS challenge for a pending custom hostname and, when it passes, promotes the host so it begins routing at the edge. It answers 200 either way, with the host\'s honest current state: verified once the TXT record is found, still pending — with the records to publish and the resolver\'s own explanation in `detail` — when it is not. A not-yet is not an error: the check ran, DNS simply has not propagated, and the customer retries. An already-verified host is returned unchanged without re-resolving. On a successful promotion the edge cache-tag is flushed, since the host routes as of that moment. Scope: a validated principal is required (403 without one). Both the site and the claim are resolved within that principal\'s org, so a host claimed by another tenant is \"not claimed by this site\".
1123
+ * @summary Checks the DNS challenge for a pending custom hostname and, when it passes, promotes the host so it begins routing at the edge.
1124
+ * @param {string} slug Slug is the project the host is attached to, from the path.
1125
+ * @param {string} host Host is the custom hostname, from the path. It is cleaned to its canonical form (lowercased, trailing dot dropped) before anything is looked up.
1126
+ * @param {*} [options] Override http request option.
1127
+ * @throws {RequiredError}
1128
+ */
1129
+ async postSitesBySlugDomainsByHostVerify(slug: string, host: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ProjectsDomain>> {
1130
+ const localVarAxiosArgs = await localVarAxiosParamCreator.postSitesBySlugDomainsByHostVerify(slug, host, options);
1131
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1132
+ const localVarOperationServerBasePath = operationServerMap['SitesApi.postSitesBySlugDomainsByHostVerify']?.[localVarOperationServerIndex]?.url;
1133
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1134
+ },
657
1135
  /**
658
1136
  * Promotes a build output into a new release AND goes live with it — create+activate in one call, which is the 99% path. It is exactly the two halves in sequence with no extra semantics, so the staged flow and the one-shot flow can never drift apart: `source` is promoted under the same org-relative rule and the same guards CreateRelease applies, then the site\'s pointer is flipped to it, the public host is claimed and the edge is purged. Idempotent on unchanged bytes — same manifest, same release id, no copy — and billed once, after the release exists. Scope: a validated principal is required (403 without one) and the site is resolved within that principal\'s org, so another tenant\'s slug is a 404.
659
1137
  * @summary Promotes a build output into a new release AND goes live with it — create+activate in one call, which is the 99% path.
@@ -668,6 +1146,19 @@ export const SitesApiFp = function(configuration?: Configuration) {
668
1146
  const localVarOperationServerBasePath = operationServerMap['SitesApi.postSitesBySlugPublish']?.[localVarOperationServerIndex]?.url;
669
1147
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
670
1148
  },
1149
+ /**
1150
+ * Flushes the site\'s edge cache without redeploying anything. It invalidates the edge cache-tag `site-<org>-<slug>` and stamps `lastPurgeAt` (unix seconds), and it NEVER writes or deletes the S3 origin — the live build keeps serving; only stale copies held at the edge drop, so the next request re-fetches the current artifact from origin. Idempotent, and an edge that is unconfigured or failing is not fatal: `lastPurgeAt` is still stamped and the answer is still the updated project. Scope: a validated principal is required (403 without one) and the project is resolved within that principal\'s org, so another tenant\'s slug is a 404.
1151
+ * @summary Flushes the site\'s edge cache without redeploying anything.
1152
+ * @param {string} slug Slug is the project to act on, from the path. It is unique within the caller\&#39;s org and nowhere else, so another tenant\&#39;s slug is a 404.
1153
+ * @param {*} [options] Override http request option.
1154
+ * @throws {RequiredError}
1155
+ */
1156
+ async postSitesBySlugPurge(slug: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ProjectsProject>> {
1157
+ const localVarAxiosArgs = await localVarAxiosParamCreator.postSitesBySlugPurge(slug, options);
1158
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1159
+ const localVarOperationServerBasePath = operationServerMap['SitesApi.postSitesBySlugPurge']?.[localVarOperationServerIndex]?.url;
1160
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1161
+ },
671
1162
  /**
672
1163
  * Promotes a build output into a new immutable release WITHOUT serving it — the staged half of publishing, for when you want to check a release before it goes live. Answers 201. `source` is a path RELATIVE to your org\'s own storage space: the org segment is prepended server-side from the validated principal and the bucket is never in the request at all, so a server-side copy can only ever reach bytes your org already owns. The prefix is listed, content-addressed (SHA-256 over the sorted manifest of key/size/etag), and copied into an immutable `<org>/.releases/<slug>/<id>/` prefix; the row is written LAST, so a partial copy is unreachable rather than merely unlikely. Re-publishing an unchanged source is idempotent BY CONSTRUCTION — same bytes, same id, no copy at all. The source must contain index.html at its root and stay under the same file and byte caps an artifact deploy does (413 past them); a source that changes mid-copy is a 409 and the release is abandoned. Each publish also reclaims releases past the retention depth, so a site\'s release space stays bounded. This is the billable half — the hosting gate runs before any copy, and the debit lands once the release exists. Scope: a validated principal is required (403 without one) and the site is resolved within that principal\'s org, so another tenant\'s slug is a 404.
673
1164
  * @summary Promotes a build output into a new immutable release WITHOUT serving it — the staged half of publishing, for when you want to check a release before it goes live.
@@ -709,6 +1200,19 @@ export const SitesApiFp = function(configuration?: Configuration) {
709
1200
  const localVarOperationServerBasePath = operationServerMap['SitesApi.postSitesDeploy']?.[localVarOperationServerIndex]?.url;
710
1201
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
711
1202
  },
1203
+ /**
1204
+ * Creates a project seeded from a PUBLISHED EXAMPLE — either a starter-kit template from the ONE embedded gallery catalog, or any live project on the platform (an example a seeded creator published, or another org\'s app serving at <slug>.hanzo.app). Answers 201 with the new project. `slug` names the PARENT to fork and is required. Templates resolve first, and the caller org\'s own private templates ahead of the public gallery, so a curated template slug keeps meaning the same thing even if someone later publishes a live project under it; `variant` picks that template\'s format/page/theme. If no template matches, the slug resolves to the UNIQUE live project that owns it across all orgs — the same resolution the site edge uses to serve <slug>.hanzo.app, so what you can browse is what you can fork. `name` and `target` override the derived project name and slug; everything else is inherited from the parent. A live parent contributes its REPO, so the child builds from the same source — the parent\'s deployed bytes are never copied, because releases are per-tenant by design and the fork publishes its own. The parent it actually resolved is stamped on the child as `forkedFrom`, so attribution is a fact recorded at fork time rather than a claim reconstructed later. It funnels through the SAME create path POST /v1/projects uses, so slug validation, org scoping, ID minting and the 409 on a slug the caller\'s own org already uses are identical. Scope: a validated principal is required (403 without one) and the child is created in THAT principal\'s org.
1205
+ * @summary Creates a project seeded from a PUBLISHED EXAMPLE — either a starter-kit template from the ONE embedded gallery catalog, or any live project on the platform (an example a seeded creator published, or another org\'s app serving at <slug>.hanzo.app).
1206
+ * @param {ProjectsFork} projectsFork
1207
+ * @param {*} [options] Override http request option.
1208
+ * @throws {RequiredError}
1209
+ */
1210
+ async postSitesFork(projectsFork: ProjectsFork, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ProjectsProject>> {
1211
+ const localVarAxiosArgs = await localVarAxiosParamCreator.postSitesFork(projectsFork, options);
1212
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1213
+ const localVarOperationServerBasePath = operationServerMap['SitesApi.postSitesFork']?.[localVarOperationServerIndex]?.url;
1214
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1215
+ },
712
1216
  }
713
1217
  };
714
1218
 
@@ -719,6 +1223,26 @@ export const SitesApiFp = function(configuration?: Configuration) {
719
1223
  export const SitesApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
720
1224
  const localVarFp = SitesApiFp(configuration)
721
1225
  return {
1226
+ /**
1227
+ * Deletes a project and takes its site off the internet. The metadata delete is authoritative and everything after it is best-effort, in this order: the public `<slug>` subdomain binding is released so the slug is free to reclaim, the release rows are dropped so a reclaimed slug never inherits the previous owner\'s rollback menu, the git source is retired on every copy it has so a reclaimed slug never adopts a repository left behind (visibility.go), the S3 origin is purged under BOTH `<org>/<slug>/` and the site\'s sibling release space, and the edge cache-tag is flushed. A failure in any of those is logged and the delete still answers 204 — resurrecting a project because a purge missed would be worse than a leaked prefix. Scope: a validated principal is required (403 without one) and the project is resolved within that principal\'s org, so another tenant\'s slug is a 404 and nothing of theirs is touched.
1228
+ * @summary Deletes a project and takes its site off the internet.
1229
+ * @param {SitesApiDeleteSitesBySlugRequest} requestParameters Request parameters.
1230
+ * @param {*} [options] Override http request option.
1231
+ * @throws {RequiredError}
1232
+ */
1233
+ deleteSitesBySlug(requestParameters: SitesApiDeleteSitesBySlugRequest, options?: RawAxiosRequestConfig): AxiosPromise<void> {
1234
+ return localVarFp.deleteSitesBySlug(requestParameters.slug, options).then((request) => request(axios, basePath));
1235
+ },
1236
+ /**
1237
+ * Gives a custom hostname back, so the name is free to reuse. A claim is FIRST-COME and global, so an add-only surface was not ownership but a leak: a customer who mistyped a domain, or claimed one they later moved elsewhere, could neither reuse it nor let anyone else. This is the third writer that closes it. The release is scoped to (host, org, slug), so it can only ever drop THIS tenant\'s own claim, and it is IDEMPOTENT: releasing a host we do not hold is a clean 204, never a 404 that would let a caller probe which hosts other tenants hold. The edge cache-tag is flushed, since the host stops routing here. Scope: a validated principal is required (403 without one) and the site is resolved within that principal\'s org, so another tenant\'s slug is a 404.
1238
+ * @summary Gives a custom hostname back, so the name is free to reuse.
1239
+ * @param {SitesApiDeleteSitesBySlugDomainsByHostRequest} requestParameters Request parameters.
1240
+ * @param {*} [options] Override http request option.
1241
+ * @throws {RequiredError}
1242
+ */
1243
+ deleteSitesBySlugDomainsByHost(requestParameters: SitesApiDeleteSitesBySlugDomainsByHostRequest, options?: RawAxiosRequestConfig): AxiosPromise<void> {
1244
+ return localVarFp.deleteSitesBySlugDomainsByHost(requestParameters.slug, requestParameters.host, options).then((request) => request(axios, basePath));
1245
+ },
722
1246
  /**
723
1247
  * Returns the org\'s deployed sites at the pretty URLs they serve at. It reads the SAME org-scoped store as /v1/projects and keeps only the projects that are actually `live`, so a draft or a failed build is not advertised as a site. Scope: a validated principal is required (403 without one) and the list is keyed by that principal\'s org.
724
1248
  * @summary Returns the org\'s deployed sites at the pretty URLs they serve at.
@@ -758,6 +1282,16 @@ export const SitesApiFactory = function (configuration?: Configuration, basePath
758
1282
  getSitesBySlugDeploymentsById(requestParameters: SitesApiGetSitesBySlugDeploymentsByIdRequest, options?: RawAxiosRequestConfig): AxiosPromise<ProjectsDeployment> {
759
1283
  return localVarFp.getSitesBySlugDeploymentsById(requestParameters.slug, requestParameters.id, options).then((request) => request(axios, basePath));
760
1284
  },
1285
+ /**
1286
+ * Returns every custom hostname this site holds: the live ones, plus any pending claim with the DNS records it still owes. `domains` is the routing answer — the hosts that are verified right now — while `claims` is the full panel, one row per host, each saying whether it is live or pending and, if pending, exactly what to publish. Scope: a validated principal is required (403 without one) and the site is resolved within that principal\'s org, so another tenant\'s slug is a 404.
1287
+ * @summary Returns every custom hostname this site holds: the live ones, plus any pending claim with the DNS records it still owes.
1288
+ * @param {SitesApiGetSitesBySlugDomainsRequest} requestParameters Request parameters.
1289
+ * @param {*} [options] Override http request option.
1290
+ * @throws {RequiredError}
1291
+ */
1292
+ getSitesBySlugDomains(requestParameters: SitesApiGetSitesBySlugDomainsRequest, options?: RawAxiosRequestConfig): AxiosPromise<ProjectsDomains> {
1293
+ return localVarFp.getSitesBySlugDomains(requestParameters.slug, options).then((request) => request(axios, basePath));
1294
+ },
761
1295
  /**
762
1296
  * Returns a site\'s releases newest-first, marking the active one — the rollback menu. Each row carries the release id to activate, the source it was promoted from, its object and byte counts, and the URL if it is the one serving. Retention bounds the list, so it is the set that can actually still be rolled back to, not a full history. Scope: a validated principal is required (403 without one) and the site is resolved within that principal\'s org, so another tenant\'s slug is a 404.
763
1297
  * @summary Returns a site\'s releases newest-first, marking the active one — the rollback menu.
@@ -768,6 +1302,16 @@ export const SitesApiFactory = function (configuration?: Configuration, basePath
768
1302
  getSitesBySlugReleases(requestParameters: SitesApiGetSitesBySlugReleasesRequest, options?: RawAxiosRequestConfig): AxiosPromise<Array<ProjectsRelease>> {
769
1303
  return localVarFp.getSitesBySlugReleases(requestParameters.slug, options).then((request) => request(axios, basePath));
770
1304
  },
1305
+ /**
1306
+ * Changes a project\'s settings, and only the settings you send. Every field is optional and absent means \"leave it\": `name` may not be blanked, `framework` must stay a known build hint, and `cacheControl` is capped at 256 characters with no newlines (it becomes a response header). `visibility` flips public/private under the same rule as create — public is free, private needs a funded org. `upstream` and `license` are free-text credit for third-party work, and sending \"\" clears one. Changing anything reconciles the project\'s canonical git repo, so a visibility change reaches the source and not just the listing. `hidden`/`hiddenReason` are platform MODERATION and are ignored unless the caller is a platform admin; they remove a project from the public catalogue without touching the publisher\'s own visibility choice, so un-hiding restores exactly what they asked for. Scope: a validated principal is required (403 without one) and the project is resolved within that principal\'s org, so another tenant\'s slug is a 404.
1307
+ * @summary Changes a project\'s settings, and only the settings you send.
1308
+ * @param {SitesApiPatchSitesBySlugRequest} requestParameters Request parameters.
1309
+ * @param {*} [options] Override http request option.
1310
+ * @throws {RequiredError}
1311
+ */
1312
+ patchSitesBySlug(requestParameters: SitesApiPatchSitesBySlugRequest, options?: RawAxiosRequestConfig): AxiosPromise<ProjectsProject> {
1313
+ return localVarFp.patchSitesBySlug(requestParameters.slug, requestParameters.projectsUpdate, options).then((request) => request(axios, basePath));
1314
+ },
771
1315
  /**
772
1316
  * Generates a self-contained, mobile-responsive static site from a natural-language brief and deploys it live in one call. One inference call turns `brief` (capped at 8 KiB) into a file manifest, which then runs through the SAME validation, guards and viewport guarantee as a hand-supplied manifest: index.html required at the root, absolute and traversal paths rejected, per-file and total size capped, and a mobile viewport meta tag injected into every HTML document that lacks one. The generated site is fully inline — no CDNs, no remote fonts or images — so it is CSP-safe. `slug` and `name` are optional: the model\'s own title is preferred, and a slug is derived or minted when none is given. It writes into the SAME org-scoped store as /v1/projects — it ensures a project (framework `static`) for the resolved slug and records a deployment — so this is a second door onto one publish pipeline, not a second copy of project state. Ordering is the billing contract: the hosting gate runs BEFORE any inference or upload, so a denied gate generates and uploads NOTHING, and the debit lands once, only after the site is actually live. The tokens are billed to the same ledger the hosting fee was reserved against. Answers 503 when object storage or inference is unconfigured, and 400 when the model\'s manifest cannot be parsed or fails the guards. Scope: a validated principal is required (403 without one) and the site is published into THAT principal\'s org.
773
1317
  * @summary Generates a self-contained, mobile-responsive static site from a natural-language brief and deploys it live in one call.
@@ -778,6 +1322,16 @@ export const SitesApiFactory = function (configuration?: Configuration, basePath
778
1322
  postSites(requestParameters: SitesApiPostSitesRequest, options?: RawAxiosRequestConfig): AxiosPromise<ProjectsSiteDeploy> {
779
1323
  return localVarFp.postSites(requestParameters.projectsBuildSite, options).then((request) => request(axios, basePath));
780
1324
  },
1325
+ /**
1326
+ * Takes a built site live at `https://<slug>.hanzo.app` in one call. The body is the site itself — a `zip` or `tar.gz` holding `index.html` at its root (or a single wrapper directory that does), sent raw or as a multipart file part. It is unpacked to the site\'s own storage prefix and served immediately, answering the finished deployment. It is bounded by the edge body limit (16 MiB by default), and that bound is the whole reason the other path exists: an oversized POST is refused by the server BEFORE any handler runs and surfaces as an opaque `400 Error when parsing request` that reads like a malformed payload rather than a size cap. A site too large for one archive opens a deployment with `POST /v1/sites/{slug}/deployments` instead and writes its files straight to storage against the scoped grant that answers with — no body limit, and no bytes through this API at all. Billing is fail-closed and fails FIRST: the hosting gate runs before anything is parsed or uploaded, so an unfunded org is 402 and an unreachable commerce is 503 with nothing written. The debit lands only on success — a failed upload is never billed and never flips the live site — and a redeploy answers the SAME URL, because slug and apex are stable. Scope: a validated principal is required (403 without one) and the site is resolved within that principal\'s org, so another tenant\'s slug is a 404. Object storage must be configured (503); an archive that does not walk is a 400 and one over the size cap is a 413.
1327
+ * @summary Upload a built site as one archive and serve it
1328
+ * @param {SitesApiPostSitesBySlugDeployRequest} requestParameters Request parameters.
1329
+ * @param {*} [options] Override http request option.
1330
+ * @throws {RequiredError}
1331
+ */
1332
+ postSitesBySlugDeploy(requestParameters: SitesApiPostSitesBySlugDeployRequest, options?: RawAxiosRequestConfig): AxiosPromise<ProjectsDeployment> {
1333
+ return localVarFp.postSitesBySlugDeploy(requestParameters.slug, requestParameters.body, options).then((request) => request(axios, basePath));
1334
+ },
781
1335
  /**
782
1336
  * Opens a deployment and hands back a short-lived, prefix-scoped grant to write its bytes straight to object storage. Answers 202. This is the path for a site too large to send as one archive: a real export is hundreds of megabytes against a 16 MiB body limit, so the bytes deliberately do NOT pass through the API. The answer carries `bucket`, `prefix` and `upload` — a presigned POST policy that S3 itself confines to this site\'s prefix (starts-with `<org>/<slug>/`), expires in 30 minutes and bounds each object. So a build writes its own files and holds no standing bucket credential; there is nothing to rotate and nothing that leaks between tenants. Never guess the prefix — it is server-derived, and a guessed one lands where nothing is served. The deployment is `queued` until POST .../deployments/{id}/complete flips it live (or error). That completion is also where DELETION happens: the grant authorizes writes only, so a build cannot remove a file, and cloud reconciles the prefix against the `keys` manifest the completion carries. A build that dies before completing leaves the deployment queued rather than a half-live site. The grant is on the 202 and NOWHERE else — it is never stored and never replayed on a later read, so it cannot outlive the build it was minted for. A deployment whose grant could not be minted is still created and still completable; it simply carries no `upload`, and a caller with no other way to write should treat that as the failure it is. Billing: the hosting gate runs BEFORE anything is created (402 unfunded, 503 commerce unreachable), and the debit lands on the completion that goes live — never on a queued or failed build. Scope: a validated principal is required (403 without one) and the site is resolved within that principal\'s org, so another tenant\'s slug is a 404.
783
1337
  * @summary Opens a deployment and hands back a short-lived, prefix-scoped grant to write its bytes straight to object storage.
@@ -798,6 +1352,26 @@ export const SitesApiFactory = function (configuration?: Configuration, basePath
798
1352
  postSitesBySlugDeploymentsByIdComplete(requestParameters: SitesApiPostSitesBySlugDeploymentsByIdCompleteRequest, options?: RawAxiosRequestConfig): AxiosPromise<ProjectsDeployment> {
799
1353
  return localVarFp.postSitesBySlugDeploymentsByIdComplete(requestParameters.slug, requestParameters.id, requestParameters.projectsComplete, options).then((request) => request(axios, basePath));
800
1354
  },
1355
+ /**
1356
+ * Attaches one or more CUSTOM public hostnames to this org\'s site. Binding a host you do not own would let you shadow it at the edge, so which outcome you get depends on whether ownership is already established: a SuperAdmin vouches (the operator manages the customer\'s DNS, so its bind IS the proof) and binds VERIFIED immediately; every other caller, INCLUDING an admin of the deployment\'s own brand org, has the host CLAIMED as pending and gets the DNS challenge back in `bound[].records`. A pending claim HOLDS the name so nobody else can take it, but it does not route until POST .../domains/{host}/verify proves control. A hostname we operate is refused to a non-vouched caller (those are assigned by the platform, never claimed), a host another site already holds is a 409, and a name the platform holds is a 400 for EVERY caller — a vouch skips the ownership proof, never the host table\'s own invariant. Claims and binds are idempotent for the same (org, slug), and re-claiming returns the SAME token rather than invalidating a record the customer has already published. The edge cache-tag is flushed afterwards so a newly-verified host serves the current build immediately. Scope: a validated principal is required (403 without one) and the site is resolved within that principal\'s org, so another tenant\'s slug is a 404.
1357
+ * @summary Attaches one or more CUSTOM public hostnames to this org\'s site.
1358
+ * @param {SitesApiPostSitesBySlugDomainsRequest} requestParameters Request parameters.
1359
+ * @param {*} [options] Override http request option.
1360
+ * @throws {RequiredError}
1361
+ */
1362
+ postSitesBySlugDomains(requestParameters: SitesApiPostSitesBySlugDomainsRequest, options?: RawAxiosRequestConfig): AxiosPromise<ProjectsBoundDomains> {
1363
+ return localVarFp.postSitesBySlugDomains(requestParameters.slug, requestParameters.projectsDomainsBind, options).then((request) => request(axios, basePath));
1364
+ },
1365
+ /**
1366
+ * Checks the DNS challenge for a pending custom hostname and, when it passes, promotes the host so it begins routing at the edge. It answers 200 either way, with the host\'s honest current state: verified once the TXT record is found, still pending — with the records to publish and the resolver\'s own explanation in `detail` — when it is not. A not-yet is not an error: the check ran, DNS simply has not propagated, and the customer retries. An already-verified host is returned unchanged without re-resolving. On a successful promotion the edge cache-tag is flushed, since the host routes as of that moment. Scope: a validated principal is required (403 without one). Both the site and the claim are resolved within that principal\'s org, so a host claimed by another tenant is \"not claimed by this site\".
1367
+ * @summary Checks the DNS challenge for a pending custom hostname and, when it passes, promotes the host so it begins routing at the edge.
1368
+ * @param {SitesApiPostSitesBySlugDomainsByHostVerifyRequest} requestParameters Request parameters.
1369
+ * @param {*} [options] Override http request option.
1370
+ * @throws {RequiredError}
1371
+ */
1372
+ postSitesBySlugDomainsByHostVerify(requestParameters: SitesApiPostSitesBySlugDomainsByHostVerifyRequest, options?: RawAxiosRequestConfig): AxiosPromise<ProjectsDomain> {
1373
+ return localVarFp.postSitesBySlugDomainsByHostVerify(requestParameters.slug, requestParameters.host, options).then((request) => request(axios, basePath));
1374
+ },
801
1375
  /**
802
1376
  * Promotes a build output into a new release AND goes live with it — create+activate in one call, which is the 99% path. It is exactly the two halves in sequence with no extra semantics, so the staged flow and the one-shot flow can never drift apart: `source` is promoted under the same org-relative rule and the same guards CreateRelease applies, then the site\'s pointer is flipped to it, the public host is claimed and the edge is purged. Idempotent on unchanged bytes — same manifest, same release id, no copy — and billed once, after the release exists. Scope: a validated principal is required (403 without one) and the site is resolved within that principal\'s org, so another tenant\'s slug is a 404.
803
1377
  * @summary Promotes a build output into a new release AND goes live with it — create+activate in one call, which is the 99% path.
@@ -808,6 +1382,16 @@ export const SitesApiFactory = function (configuration?: Configuration, basePath
808
1382
  postSitesBySlugPublish(requestParameters: SitesApiPostSitesBySlugPublishRequest, options?: RawAxiosRequestConfig): AxiosPromise<ProjectsRelease> {
809
1383
  return localVarFp.postSitesBySlugPublish(requestParameters.slug, requestParameters.projectsPublish, options).then((request) => request(axios, basePath));
810
1384
  },
1385
+ /**
1386
+ * Flushes the site\'s edge cache without redeploying anything. It invalidates the edge cache-tag `site-<org>-<slug>` and stamps `lastPurgeAt` (unix seconds), and it NEVER writes or deletes the S3 origin — the live build keeps serving; only stale copies held at the edge drop, so the next request re-fetches the current artifact from origin. Idempotent, and an edge that is unconfigured or failing is not fatal: `lastPurgeAt` is still stamped and the answer is still the updated project. Scope: a validated principal is required (403 without one) and the project is resolved within that principal\'s org, so another tenant\'s slug is a 404.
1387
+ * @summary Flushes the site\'s edge cache without redeploying anything.
1388
+ * @param {SitesApiPostSitesBySlugPurgeRequest} requestParameters Request parameters.
1389
+ * @param {*} [options] Override http request option.
1390
+ * @throws {RequiredError}
1391
+ */
1392
+ postSitesBySlugPurge(requestParameters: SitesApiPostSitesBySlugPurgeRequest, options?: RawAxiosRequestConfig): AxiosPromise<ProjectsProject> {
1393
+ return localVarFp.postSitesBySlugPurge(requestParameters.slug, options).then((request) => request(axios, basePath));
1394
+ },
811
1395
  /**
812
1396
  * Promotes a build output into a new immutable release WITHOUT serving it — the staged half of publishing, for when you want to check a release before it goes live. Answers 201. `source` is a path RELATIVE to your org\'s own storage space: the org segment is prepended server-side from the validated principal and the bucket is never in the request at all, so a server-side copy can only ever reach bytes your org already owns. The prefix is listed, content-addressed (SHA-256 over the sorted manifest of key/size/etag), and copied into an immutable `<org>/.releases/<slug>/<id>/` prefix; the row is written LAST, so a partial copy is unreachable rather than merely unlikely. Re-publishing an unchanged source is idempotent BY CONSTRUCTION — same bytes, same id, no copy at all. The source must contain index.html at its root and stay under the same file and byte caps an artifact deploy does (413 past them); a source that changes mid-copy is a 409 and the release is abandoned. Each publish also reclaims releases past the retention depth, so a site\'s release space stays bounded. This is the billable half — the hosting gate runs before any copy, and the debit lands once the release exists. Scope: a validated principal is required (403 without one) and the site is resolved within that principal\'s org, so another tenant\'s slug is a 404.
813
1397
  * @summary Promotes a build output into a new immutable release WITHOUT serving it — the staged half of publishing, for when you want to check a release before it goes live.
@@ -838,9 +1422,54 @@ export const SitesApiFactory = function (configuration?: Configuration, basePath
838
1422
  postSitesDeploy(requestParameters: SitesApiPostSitesDeployRequest, options?: RawAxiosRequestConfig): AxiosPromise<ProjectsSiteDeploy> {
839
1423
  return localVarFp.postSitesDeploy(requestParameters.projectsDeploySite, options).then((request) => request(axios, basePath));
840
1424
  },
1425
+ /**
1426
+ * Creates a project seeded from a PUBLISHED EXAMPLE — either a starter-kit template from the ONE embedded gallery catalog, or any live project on the platform (an example a seeded creator published, or another org\'s app serving at <slug>.hanzo.app). Answers 201 with the new project. `slug` names the PARENT to fork and is required. Templates resolve first, and the caller org\'s own private templates ahead of the public gallery, so a curated template slug keeps meaning the same thing even if someone later publishes a live project under it; `variant` picks that template\'s format/page/theme. If no template matches, the slug resolves to the UNIQUE live project that owns it across all orgs — the same resolution the site edge uses to serve <slug>.hanzo.app, so what you can browse is what you can fork. `name` and `target` override the derived project name and slug; everything else is inherited from the parent. A live parent contributes its REPO, so the child builds from the same source — the parent\'s deployed bytes are never copied, because releases are per-tenant by design and the fork publishes its own. The parent it actually resolved is stamped on the child as `forkedFrom`, so attribution is a fact recorded at fork time rather than a claim reconstructed later. It funnels through the SAME create path POST /v1/projects uses, so slug validation, org scoping, ID minting and the 409 on a slug the caller\'s own org already uses are identical. Scope: a validated principal is required (403 without one) and the child is created in THAT principal\'s org.
1427
+ * @summary Creates a project seeded from a PUBLISHED EXAMPLE — either a starter-kit template from the ONE embedded gallery catalog, or any live project on the platform (an example a seeded creator published, or another org\'s app serving at <slug>.hanzo.app).
1428
+ * @param {SitesApiPostSitesForkRequest} requestParameters Request parameters.
1429
+ * @param {*} [options] Override http request option.
1430
+ * @throws {RequiredError}
1431
+ */
1432
+ postSitesFork(requestParameters: SitesApiPostSitesForkRequest, options?: RawAxiosRequestConfig): AxiosPromise<ProjectsProject> {
1433
+ return localVarFp.postSitesFork(requestParameters.projectsFork, options).then((request) => request(axios, basePath));
1434
+ },
841
1435
  };
842
1436
  };
843
1437
 
1438
+ /**
1439
+ * Request parameters for deleteSitesBySlug operation in SitesApi.
1440
+ * @export
1441
+ * @interface SitesApiDeleteSitesBySlugRequest
1442
+ */
1443
+ export interface SitesApiDeleteSitesBySlugRequest {
1444
+ /**
1445
+ * Slug is the project to act on, from the path. It is unique within the caller\&#39;s org and nowhere else, so another tenant\&#39;s slug is a 404.
1446
+ * @type {string}
1447
+ * @memberof SitesApiDeleteSitesBySlug
1448
+ */
1449
+ readonly slug: string
1450
+ }
1451
+
1452
+ /**
1453
+ * Request parameters for deleteSitesBySlugDomainsByHost operation in SitesApi.
1454
+ * @export
1455
+ * @interface SitesApiDeleteSitesBySlugDomainsByHostRequest
1456
+ */
1457
+ export interface SitesApiDeleteSitesBySlugDomainsByHostRequest {
1458
+ /**
1459
+ * Slug is the project the host is attached to, from the path.
1460
+ * @type {string}
1461
+ * @memberof SitesApiDeleteSitesBySlugDomainsByHost
1462
+ */
1463
+ readonly slug: string
1464
+
1465
+ /**
1466
+ * Host is the custom hostname, from the path. It is cleaned to its canonical form (lowercased, trailing dot dropped) before anything is looked up.
1467
+ * @type {string}
1468
+ * @memberof SitesApiDeleteSitesBySlugDomainsByHost
1469
+ */
1470
+ readonly host: string
1471
+ }
1472
+
844
1473
  /**
845
1474
  * Request parameters for getSitesBySlug operation in SitesApi.
846
1475
  * @export
@@ -890,6 +1519,20 @@ export interface SitesApiGetSitesBySlugDeploymentsByIdRequest {
890
1519
  readonly id: string
891
1520
  }
892
1521
 
1522
+ /**
1523
+ * Request parameters for getSitesBySlugDomains operation in SitesApi.
1524
+ * @export
1525
+ * @interface SitesApiGetSitesBySlugDomainsRequest
1526
+ */
1527
+ export interface SitesApiGetSitesBySlugDomainsRequest {
1528
+ /**
1529
+ * Slug is the project to act on, from the path. It is unique within the caller\&#39;s org and nowhere else, so another tenant\&#39;s slug is a 404.
1530
+ * @type {string}
1531
+ * @memberof SitesApiGetSitesBySlugDomains
1532
+ */
1533
+ readonly slug: string
1534
+ }
1535
+
893
1536
  /**
894
1537
  * Request parameters for getSitesBySlugReleases operation in SitesApi.
895
1538
  * @export
@@ -904,6 +1547,27 @@ export interface SitesApiGetSitesBySlugReleasesRequest {
904
1547
  readonly slug: string
905
1548
  }
906
1549
 
1550
+ /**
1551
+ * Request parameters for patchSitesBySlug operation in SitesApi.
1552
+ * @export
1553
+ * @interface SitesApiPatchSitesBySlugRequest
1554
+ */
1555
+ export interface SitesApiPatchSitesBySlugRequest {
1556
+ /**
1557
+ * Slug is the project to update, from the path. The URL is the addressing authority — a &#x60;slug&#x60; in the body cannot move the write to another project.
1558
+ * @type {string}
1559
+ * @memberof SitesApiPatchSitesBySlug
1560
+ */
1561
+ readonly slug: string
1562
+
1563
+ /**
1564
+ *
1565
+ * @type {ProjectsUpdate}
1566
+ * @memberof SitesApiPatchSitesBySlug
1567
+ */
1568
+ readonly projectsUpdate: ProjectsUpdate
1569
+ }
1570
+
907
1571
  /**
908
1572
  * Request parameters for postSites operation in SitesApi.
909
1573
  * @export
@@ -918,6 +1582,27 @@ export interface SitesApiPostSitesRequest {
918
1582
  readonly projectsBuildSite: ProjectsBuildSite
919
1583
  }
920
1584
 
1585
+ /**
1586
+ * Request parameters for postSitesBySlugDeploy operation in SitesApi.
1587
+ * @export
1588
+ * @interface SitesApiPostSitesBySlugDeployRequest
1589
+ */
1590
+ export interface SitesApiPostSitesBySlugDeployRequest {
1591
+ /**
1592
+ *
1593
+ * @type {string}
1594
+ * @memberof SitesApiPostSitesBySlugDeploy
1595
+ */
1596
+ readonly slug: string
1597
+
1598
+ /**
1599
+ *
1600
+ * @type {File}
1601
+ * @memberof SitesApiPostSitesBySlugDeploy
1602
+ */
1603
+ readonly body?: File
1604
+ }
1605
+
921
1606
  /**
922
1607
  * Request parameters for postSitesBySlugDeployments operation in SitesApi.
923
1608
  * @export
@@ -967,6 +1652,48 @@ export interface SitesApiPostSitesBySlugDeploymentsByIdCompleteRequest {
967
1652
  readonly projectsComplete: ProjectsComplete
968
1653
  }
969
1654
 
1655
+ /**
1656
+ * Request parameters for postSitesBySlugDomains operation in SitesApi.
1657
+ * @export
1658
+ * @interface SitesApiPostSitesBySlugDomainsRequest
1659
+ */
1660
+ export interface SitesApiPostSitesBySlugDomainsRequest {
1661
+ /**
1662
+ * Slug is the site the hosts attach to, from the path.
1663
+ * @type {string}
1664
+ * @memberof SitesApiPostSitesBySlugDomains
1665
+ */
1666
+ readonly slug: string
1667
+
1668
+ /**
1669
+ *
1670
+ * @type {ProjectsDomainsBind}
1671
+ * @memberof SitesApiPostSitesBySlugDomains
1672
+ */
1673
+ readonly projectsDomainsBind: ProjectsDomainsBind
1674
+ }
1675
+
1676
+ /**
1677
+ * Request parameters for postSitesBySlugDomainsByHostVerify operation in SitesApi.
1678
+ * @export
1679
+ * @interface SitesApiPostSitesBySlugDomainsByHostVerifyRequest
1680
+ */
1681
+ export interface SitesApiPostSitesBySlugDomainsByHostVerifyRequest {
1682
+ /**
1683
+ * Slug is the project the host is attached to, from the path.
1684
+ * @type {string}
1685
+ * @memberof SitesApiPostSitesBySlugDomainsByHostVerify
1686
+ */
1687
+ readonly slug: string
1688
+
1689
+ /**
1690
+ * Host is the custom hostname, from the path. It is cleaned to its canonical form (lowercased, trailing dot dropped) before anything is looked up.
1691
+ * @type {string}
1692
+ * @memberof SitesApiPostSitesBySlugDomainsByHostVerify
1693
+ */
1694
+ readonly host: string
1695
+ }
1696
+
970
1697
  /**
971
1698
  * Request parameters for postSitesBySlugPublish operation in SitesApi.
972
1699
  * @export
@@ -988,6 +1715,20 @@ export interface SitesApiPostSitesBySlugPublishRequest {
988
1715
  readonly projectsPublish: ProjectsPublish
989
1716
  }
990
1717
 
1718
+ /**
1719
+ * Request parameters for postSitesBySlugPurge operation in SitesApi.
1720
+ * @export
1721
+ * @interface SitesApiPostSitesBySlugPurgeRequest
1722
+ */
1723
+ export interface SitesApiPostSitesBySlugPurgeRequest {
1724
+ /**
1725
+ * Slug is the project to act on, from the path. It is unique within the caller\&#39;s org and nowhere else, so another tenant\&#39;s slug is a 404.
1726
+ * @type {string}
1727
+ * @memberof SitesApiPostSitesBySlugPurge
1728
+ */
1729
+ readonly slug: string
1730
+ }
1731
+
991
1732
  /**
992
1733
  * Request parameters for postSitesBySlugReleases operation in SitesApi.
993
1734
  * @export
@@ -1044,6 +1785,20 @@ export interface SitesApiPostSitesDeployRequest {
1044
1785
  readonly projectsDeploySite: ProjectsDeploySite
1045
1786
  }
1046
1787
 
1788
+ /**
1789
+ * Request parameters for postSitesFork operation in SitesApi.
1790
+ * @export
1791
+ * @interface SitesApiPostSitesForkRequest
1792
+ */
1793
+ export interface SitesApiPostSitesForkRequest {
1794
+ /**
1795
+ *
1796
+ * @type {ProjectsFork}
1797
+ * @memberof SitesApiPostSitesFork
1798
+ */
1799
+ readonly projectsFork: ProjectsFork
1800
+ }
1801
+
1047
1802
  /**
1048
1803
  * SitesApi - object-oriented interface
1049
1804
  * @export
@@ -1051,6 +1806,30 @@ export interface SitesApiPostSitesDeployRequest {
1051
1806
  * @extends {BaseAPI}
1052
1807
  */
1053
1808
  export class SitesApi extends BaseAPI {
1809
+ /**
1810
+ * Deletes a project and takes its site off the internet. The metadata delete is authoritative and everything after it is best-effort, in this order: the public `<slug>` subdomain binding is released so the slug is free to reclaim, the release rows are dropped so a reclaimed slug never inherits the previous owner\'s rollback menu, the git source is retired on every copy it has so a reclaimed slug never adopts a repository left behind (visibility.go), the S3 origin is purged under BOTH `<org>/<slug>/` and the site\'s sibling release space, and the edge cache-tag is flushed. A failure in any of those is logged and the delete still answers 204 — resurrecting a project because a purge missed would be worse than a leaked prefix. Scope: a validated principal is required (403 without one) and the project is resolved within that principal\'s org, so another tenant\'s slug is a 404 and nothing of theirs is touched.
1811
+ * @summary Deletes a project and takes its site off the internet.
1812
+ * @param {SitesApiDeleteSitesBySlugRequest} requestParameters Request parameters.
1813
+ * @param {*} [options] Override http request option.
1814
+ * @throws {RequiredError}
1815
+ * @memberof SitesApi
1816
+ */
1817
+ public deleteSitesBySlug(requestParameters: SitesApiDeleteSitesBySlugRequest, options?: RawAxiosRequestConfig) {
1818
+ return SitesApiFp(this.configuration).deleteSitesBySlug(requestParameters.slug, options).then((request) => request(this.axios, this.basePath));
1819
+ }
1820
+
1821
+ /**
1822
+ * Gives a custom hostname back, so the name is free to reuse. A claim is FIRST-COME and global, so an add-only surface was not ownership but a leak: a customer who mistyped a domain, or claimed one they later moved elsewhere, could neither reuse it nor let anyone else. This is the third writer that closes it. The release is scoped to (host, org, slug), so it can only ever drop THIS tenant\'s own claim, and it is IDEMPOTENT: releasing a host we do not hold is a clean 204, never a 404 that would let a caller probe which hosts other tenants hold. The edge cache-tag is flushed, since the host stops routing here. Scope: a validated principal is required (403 without one) and the site is resolved within that principal\'s org, so another tenant\'s slug is a 404.
1823
+ * @summary Gives a custom hostname back, so the name is free to reuse.
1824
+ * @param {SitesApiDeleteSitesBySlugDomainsByHostRequest} requestParameters Request parameters.
1825
+ * @param {*} [options] Override http request option.
1826
+ * @throws {RequiredError}
1827
+ * @memberof SitesApi
1828
+ */
1829
+ public deleteSitesBySlugDomainsByHost(requestParameters: SitesApiDeleteSitesBySlugDomainsByHostRequest, options?: RawAxiosRequestConfig) {
1830
+ return SitesApiFp(this.configuration).deleteSitesBySlugDomainsByHost(requestParameters.slug, requestParameters.host, options).then((request) => request(this.axios, this.basePath));
1831
+ }
1832
+
1054
1833
  /**
1055
1834
  * Returns the org\'s deployed sites at the pretty URLs they serve at. It reads the SAME org-scoped store as /v1/projects and keeps only the projects that are actually `live`, so a draft or a failed build is not advertised as a site. Scope: a validated principal is required (403 without one) and the list is keyed by that principal\'s org.
1056
1835
  * @summary Returns the org\'s deployed sites at the pretty URLs they serve at.
@@ -1098,6 +1877,18 @@ export class SitesApi extends BaseAPI {
1098
1877
  return SitesApiFp(this.configuration).getSitesBySlugDeploymentsById(requestParameters.slug, requestParameters.id, options).then((request) => request(this.axios, this.basePath));
1099
1878
  }
1100
1879
 
1880
+ /**
1881
+ * Returns every custom hostname this site holds: the live ones, plus any pending claim with the DNS records it still owes. `domains` is the routing answer — the hosts that are verified right now — while `claims` is the full panel, one row per host, each saying whether it is live or pending and, if pending, exactly what to publish. Scope: a validated principal is required (403 without one) and the site is resolved within that principal\'s org, so another tenant\'s slug is a 404.
1882
+ * @summary Returns every custom hostname this site holds: the live ones, plus any pending claim with the DNS records it still owes.
1883
+ * @param {SitesApiGetSitesBySlugDomainsRequest} requestParameters Request parameters.
1884
+ * @param {*} [options] Override http request option.
1885
+ * @throws {RequiredError}
1886
+ * @memberof SitesApi
1887
+ */
1888
+ public getSitesBySlugDomains(requestParameters: SitesApiGetSitesBySlugDomainsRequest, options?: RawAxiosRequestConfig) {
1889
+ return SitesApiFp(this.configuration).getSitesBySlugDomains(requestParameters.slug, options).then((request) => request(this.axios, this.basePath));
1890
+ }
1891
+
1101
1892
  /**
1102
1893
  * Returns a site\'s releases newest-first, marking the active one — the rollback menu. Each row carries the release id to activate, the source it was promoted from, its object and byte counts, and the URL if it is the one serving. Retention bounds the list, so it is the set that can actually still be rolled back to, not a full history. Scope: a validated principal is required (403 without one) and the site is resolved within that principal\'s org, so another tenant\'s slug is a 404.
1103
1894
  * @summary Returns a site\'s releases newest-first, marking the active one — the rollback menu.
@@ -1110,6 +1901,18 @@ export class SitesApi extends BaseAPI {
1110
1901
  return SitesApiFp(this.configuration).getSitesBySlugReleases(requestParameters.slug, options).then((request) => request(this.axios, this.basePath));
1111
1902
  }
1112
1903
 
1904
+ /**
1905
+ * Changes a project\'s settings, and only the settings you send. Every field is optional and absent means \"leave it\": `name` may not be blanked, `framework` must stay a known build hint, and `cacheControl` is capped at 256 characters with no newlines (it becomes a response header). `visibility` flips public/private under the same rule as create — public is free, private needs a funded org. `upstream` and `license` are free-text credit for third-party work, and sending \"\" clears one. Changing anything reconciles the project\'s canonical git repo, so a visibility change reaches the source and not just the listing. `hidden`/`hiddenReason` are platform MODERATION and are ignored unless the caller is a platform admin; they remove a project from the public catalogue without touching the publisher\'s own visibility choice, so un-hiding restores exactly what they asked for. Scope: a validated principal is required (403 without one) and the project is resolved within that principal\'s org, so another tenant\'s slug is a 404.
1906
+ * @summary Changes a project\'s settings, and only the settings you send.
1907
+ * @param {SitesApiPatchSitesBySlugRequest} requestParameters Request parameters.
1908
+ * @param {*} [options] Override http request option.
1909
+ * @throws {RequiredError}
1910
+ * @memberof SitesApi
1911
+ */
1912
+ public patchSitesBySlug(requestParameters: SitesApiPatchSitesBySlugRequest, options?: RawAxiosRequestConfig) {
1913
+ return SitesApiFp(this.configuration).patchSitesBySlug(requestParameters.slug, requestParameters.projectsUpdate, options).then((request) => request(this.axios, this.basePath));
1914
+ }
1915
+
1113
1916
  /**
1114
1917
  * Generates a self-contained, mobile-responsive static site from a natural-language brief and deploys it live in one call. One inference call turns `brief` (capped at 8 KiB) into a file manifest, which then runs through the SAME validation, guards and viewport guarantee as a hand-supplied manifest: index.html required at the root, absolute and traversal paths rejected, per-file and total size capped, and a mobile viewport meta tag injected into every HTML document that lacks one. The generated site is fully inline — no CDNs, no remote fonts or images — so it is CSP-safe. `slug` and `name` are optional: the model\'s own title is preferred, and a slug is derived or minted when none is given. It writes into the SAME org-scoped store as /v1/projects — it ensures a project (framework `static`) for the resolved slug and records a deployment — so this is a second door onto one publish pipeline, not a second copy of project state. Ordering is the billing contract: the hosting gate runs BEFORE any inference or upload, so a denied gate generates and uploads NOTHING, and the debit lands once, only after the site is actually live. The tokens are billed to the same ledger the hosting fee was reserved against. Answers 503 when object storage or inference is unconfigured, and 400 when the model\'s manifest cannot be parsed or fails the guards. Scope: a validated principal is required (403 without one) and the site is published into THAT principal\'s org.
1115
1918
  * @summary Generates a self-contained, mobile-responsive static site from a natural-language brief and deploys it live in one call.
@@ -1122,6 +1925,18 @@ export class SitesApi extends BaseAPI {
1122
1925
  return SitesApiFp(this.configuration).postSites(requestParameters.projectsBuildSite, options).then((request) => request(this.axios, this.basePath));
1123
1926
  }
1124
1927
 
1928
+ /**
1929
+ * Takes a built site live at `https://<slug>.hanzo.app` in one call. The body is the site itself — a `zip` or `tar.gz` holding `index.html` at its root (or a single wrapper directory that does), sent raw or as a multipart file part. It is unpacked to the site\'s own storage prefix and served immediately, answering the finished deployment. It is bounded by the edge body limit (16 MiB by default), and that bound is the whole reason the other path exists: an oversized POST is refused by the server BEFORE any handler runs and surfaces as an opaque `400 Error when parsing request` that reads like a malformed payload rather than a size cap. A site too large for one archive opens a deployment with `POST /v1/sites/{slug}/deployments` instead and writes its files straight to storage against the scoped grant that answers with — no body limit, and no bytes through this API at all. Billing is fail-closed and fails FIRST: the hosting gate runs before anything is parsed or uploaded, so an unfunded org is 402 and an unreachable commerce is 503 with nothing written. The debit lands only on success — a failed upload is never billed and never flips the live site — and a redeploy answers the SAME URL, because slug and apex are stable. Scope: a validated principal is required (403 without one) and the site is resolved within that principal\'s org, so another tenant\'s slug is a 404. Object storage must be configured (503); an archive that does not walk is a 400 and one over the size cap is a 413.
1930
+ * @summary Upload a built site as one archive and serve it
1931
+ * @param {SitesApiPostSitesBySlugDeployRequest} requestParameters Request parameters.
1932
+ * @param {*} [options] Override http request option.
1933
+ * @throws {RequiredError}
1934
+ * @memberof SitesApi
1935
+ */
1936
+ public postSitesBySlugDeploy(requestParameters: SitesApiPostSitesBySlugDeployRequest, options?: RawAxiosRequestConfig) {
1937
+ return SitesApiFp(this.configuration).postSitesBySlugDeploy(requestParameters.slug, requestParameters.body, options).then((request) => request(this.axios, this.basePath));
1938
+ }
1939
+
1125
1940
  /**
1126
1941
  * Opens a deployment and hands back a short-lived, prefix-scoped grant to write its bytes straight to object storage. Answers 202. This is the path for a site too large to send as one archive: a real export is hundreds of megabytes against a 16 MiB body limit, so the bytes deliberately do NOT pass through the API. The answer carries `bucket`, `prefix` and `upload` — a presigned POST policy that S3 itself confines to this site\'s prefix (starts-with `<org>/<slug>/`), expires in 30 minutes and bounds each object. So a build writes its own files and holds no standing bucket credential; there is nothing to rotate and nothing that leaks between tenants. Never guess the prefix — it is server-derived, and a guessed one lands where nothing is served. The deployment is `queued` until POST .../deployments/{id}/complete flips it live (or error). That completion is also where DELETION happens: the grant authorizes writes only, so a build cannot remove a file, and cloud reconciles the prefix against the `keys` manifest the completion carries. A build that dies before completing leaves the deployment queued rather than a half-live site. The grant is on the 202 and NOWHERE else — it is never stored and never replayed on a later read, so it cannot outlive the build it was minted for. A deployment whose grant could not be minted is still created and still completable; it simply carries no `upload`, and a caller with no other way to write should treat that as the failure it is. Billing: the hosting gate runs BEFORE anything is created (402 unfunded, 503 commerce unreachable), and the debit lands on the completion that goes live — never on a queued or failed build. Scope: a validated principal is required (403 without one) and the site is resolved within that principal\'s org, so another tenant\'s slug is a 404.
1127
1942
  * @summary Opens a deployment and hands back a short-lived, prefix-scoped grant to write its bytes straight to object storage.
@@ -1146,6 +1961,30 @@ export class SitesApi extends BaseAPI {
1146
1961
  return SitesApiFp(this.configuration).postSitesBySlugDeploymentsByIdComplete(requestParameters.slug, requestParameters.id, requestParameters.projectsComplete, options).then((request) => request(this.axios, this.basePath));
1147
1962
  }
1148
1963
 
1964
+ /**
1965
+ * Attaches one or more CUSTOM public hostnames to this org\'s site. Binding a host you do not own would let you shadow it at the edge, so which outcome you get depends on whether ownership is already established: a SuperAdmin vouches (the operator manages the customer\'s DNS, so its bind IS the proof) and binds VERIFIED immediately; every other caller, INCLUDING an admin of the deployment\'s own brand org, has the host CLAIMED as pending and gets the DNS challenge back in `bound[].records`. A pending claim HOLDS the name so nobody else can take it, but it does not route until POST .../domains/{host}/verify proves control. A hostname we operate is refused to a non-vouched caller (those are assigned by the platform, never claimed), a host another site already holds is a 409, and a name the platform holds is a 400 for EVERY caller — a vouch skips the ownership proof, never the host table\'s own invariant. Claims and binds are idempotent for the same (org, slug), and re-claiming returns the SAME token rather than invalidating a record the customer has already published. The edge cache-tag is flushed afterwards so a newly-verified host serves the current build immediately. Scope: a validated principal is required (403 without one) and the site is resolved within that principal\'s org, so another tenant\'s slug is a 404.
1966
+ * @summary Attaches one or more CUSTOM public hostnames to this org\'s site.
1967
+ * @param {SitesApiPostSitesBySlugDomainsRequest} requestParameters Request parameters.
1968
+ * @param {*} [options] Override http request option.
1969
+ * @throws {RequiredError}
1970
+ * @memberof SitesApi
1971
+ */
1972
+ public postSitesBySlugDomains(requestParameters: SitesApiPostSitesBySlugDomainsRequest, options?: RawAxiosRequestConfig) {
1973
+ return SitesApiFp(this.configuration).postSitesBySlugDomains(requestParameters.slug, requestParameters.projectsDomainsBind, options).then((request) => request(this.axios, this.basePath));
1974
+ }
1975
+
1976
+ /**
1977
+ * Checks the DNS challenge for a pending custom hostname and, when it passes, promotes the host so it begins routing at the edge. It answers 200 either way, with the host\'s honest current state: verified once the TXT record is found, still pending — with the records to publish and the resolver\'s own explanation in `detail` — when it is not. A not-yet is not an error: the check ran, DNS simply has not propagated, and the customer retries. An already-verified host is returned unchanged without re-resolving. On a successful promotion the edge cache-tag is flushed, since the host routes as of that moment. Scope: a validated principal is required (403 without one). Both the site and the claim are resolved within that principal\'s org, so a host claimed by another tenant is \"not claimed by this site\".
1978
+ * @summary Checks the DNS challenge for a pending custom hostname and, when it passes, promotes the host so it begins routing at the edge.
1979
+ * @param {SitesApiPostSitesBySlugDomainsByHostVerifyRequest} requestParameters Request parameters.
1980
+ * @param {*} [options] Override http request option.
1981
+ * @throws {RequiredError}
1982
+ * @memberof SitesApi
1983
+ */
1984
+ public postSitesBySlugDomainsByHostVerify(requestParameters: SitesApiPostSitesBySlugDomainsByHostVerifyRequest, options?: RawAxiosRequestConfig) {
1985
+ return SitesApiFp(this.configuration).postSitesBySlugDomainsByHostVerify(requestParameters.slug, requestParameters.host, options).then((request) => request(this.axios, this.basePath));
1986
+ }
1987
+
1149
1988
  /**
1150
1989
  * Promotes a build output into a new release AND goes live with it — create+activate in one call, which is the 99% path. It is exactly the two halves in sequence with no extra semantics, so the staged flow and the one-shot flow can never drift apart: `source` is promoted under the same org-relative rule and the same guards CreateRelease applies, then the site\'s pointer is flipped to it, the public host is claimed and the edge is purged. Idempotent on unchanged bytes — same manifest, same release id, no copy — and billed once, after the release exists. Scope: a validated principal is required (403 without one) and the site is resolved within that principal\'s org, so another tenant\'s slug is a 404.
1151
1990
  * @summary Promotes a build output into a new release AND goes live with it — create+activate in one call, which is the 99% path.
@@ -1158,6 +1997,18 @@ export class SitesApi extends BaseAPI {
1158
1997
  return SitesApiFp(this.configuration).postSitesBySlugPublish(requestParameters.slug, requestParameters.projectsPublish, options).then((request) => request(this.axios, this.basePath));
1159
1998
  }
1160
1999
 
2000
+ /**
2001
+ * Flushes the site\'s edge cache without redeploying anything. It invalidates the edge cache-tag `site-<org>-<slug>` and stamps `lastPurgeAt` (unix seconds), and it NEVER writes or deletes the S3 origin — the live build keeps serving; only stale copies held at the edge drop, so the next request re-fetches the current artifact from origin. Idempotent, and an edge that is unconfigured or failing is not fatal: `lastPurgeAt` is still stamped and the answer is still the updated project. Scope: a validated principal is required (403 without one) and the project is resolved within that principal\'s org, so another tenant\'s slug is a 404.
2002
+ * @summary Flushes the site\'s edge cache without redeploying anything.
2003
+ * @param {SitesApiPostSitesBySlugPurgeRequest} requestParameters Request parameters.
2004
+ * @param {*} [options] Override http request option.
2005
+ * @throws {RequiredError}
2006
+ * @memberof SitesApi
2007
+ */
2008
+ public postSitesBySlugPurge(requestParameters: SitesApiPostSitesBySlugPurgeRequest, options?: RawAxiosRequestConfig) {
2009
+ return SitesApiFp(this.configuration).postSitesBySlugPurge(requestParameters.slug, options).then((request) => request(this.axios, this.basePath));
2010
+ }
2011
+
1161
2012
  /**
1162
2013
  * Promotes a build output into a new immutable release WITHOUT serving it — the staged half of publishing, for when you want to check a release before it goes live. Answers 201. `source` is a path RELATIVE to your org\'s own storage space: the org segment is prepended server-side from the validated principal and the bucket is never in the request at all, so a server-side copy can only ever reach bytes your org already owns. The prefix is listed, content-addressed (SHA-256 over the sorted manifest of key/size/etag), and copied into an immutable `<org>/.releases/<slug>/<id>/` prefix; the row is written LAST, so a partial copy is unreachable rather than merely unlikely. Re-publishing an unchanged source is idempotent BY CONSTRUCTION — same bytes, same id, no copy at all. The source must contain index.html at its root and stay under the same file and byte caps an artifact deploy does (413 past them); a source that changes mid-copy is a 409 and the release is abandoned. Each publish also reclaims releases past the retention depth, so a site\'s release space stays bounded. This is the billable half — the hosting gate runs before any copy, and the debit lands once the release exists. Scope: a validated principal is required (403 without one) and the site is resolved within that principal\'s org, so another tenant\'s slug is a 404.
1163
2014
  * @summary Promotes a build output into a new immutable release WITHOUT serving it — the staged half of publishing, for when you want to check a release before it goes live.
@@ -1193,5 +2044,17 @@ export class SitesApi extends BaseAPI {
1193
2044
  public postSitesDeploy(requestParameters: SitesApiPostSitesDeployRequest, options?: RawAxiosRequestConfig) {
1194
2045
  return SitesApiFp(this.configuration).postSitesDeploy(requestParameters.projectsDeploySite, options).then((request) => request(this.axios, this.basePath));
1195
2046
  }
2047
+
2048
+ /**
2049
+ * Creates a project seeded from a PUBLISHED EXAMPLE — either a starter-kit template from the ONE embedded gallery catalog, or any live project on the platform (an example a seeded creator published, or another org\'s app serving at <slug>.hanzo.app). Answers 201 with the new project. `slug` names the PARENT to fork and is required. Templates resolve first, and the caller org\'s own private templates ahead of the public gallery, so a curated template slug keeps meaning the same thing even if someone later publishes a live project under it; `variant` picks that template\'s format/page/theme. If no template matches, the slug resolves to the UNIQUE live project that owns it across all orgs — the same resolution the site edge uses to serve <slug>.hanzo.app, so what you can browse is what you can fork. `name` and `target` override the derived project name and slug; everything else is inherited from the parent. A live parent contributes its REPO, so the child builds from the same source — the parent\'s deployed bytes are never copied, because releases are per-tenant by design and the fork publishes its own. The parent it actually resolved is stamped on the child as `forkedFrom`, so attribution is a fact recorded at fork time rather than a claim reconstructed later. It funnels through the SAME create path POST /v1/projects uses, so slug validation, org scoping, ID minting and the 409 on a slug the caller\'s own org already uses are identical. Scope: a validated principal is required (403 without one) and the child is created in THAT principal\'s org.
2050
+ * @summary Creates a project seeded from a PUBLISHED EXAMPLE — either a starter-kit template from the ONE embedded gallery catalog, or any live project on the platform (an example a seeded creator published, or another org\'s app serving at <slug>.hanzo.app).
2051
+ * @param {SitesApiPostSitesForkRequest} requestParameters Request parameters.
2052
+ * @param {*} [options] Override http request option.
2053
+ * @throws {RequiredError}
2054
+ * @memberof SitesApi
2055
+ */
2056
+ public postSitesFork(requestParameters: SitesApiPostSitesForkRequest, options?: RawAxiosRequestConfig) {
2057
+ return SitesApiFp(this.configuration).postSitesFork(requestParameters.projectsFork, options).then((request) => request(this.axios, this.basePath));
2058
+ }
1196
2059
  }
1197
2060