hanzoai 8.5.640 → 8.5.648

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 (301) hide show
  1. package/dist/api/account-api.d.ts +103 -49
  2. package/dist/api/account-api.js +122 -50
  3. package/dist/api/iam-api.d.ts +16 -16
  4. package/dist/api/iam-api.js +16 -16
  5. package/dist/api/train-api.d.ts +1198 -0
  6. package/dist/api/train-api.js +1687 -0
  7. package/dist/api.d.ts +1 -0
  8. package/dist/api.js +1 -0
  9. package/dist/esm/api/account-api.d.ts +103 -49
  10. package/dist/esm/api/account-api.js +122 -50
  11. package/dist/esm/api/iam-api.d.ts +16 -16
  12. package/dist/esm/api/iam-api.js +16 -16
  13. package/dist/esm/api/train-api.d.ts +1197 -0
  14. package/dist/esm/api/train-api.js +1677 -0
  15. package/dist/esm/api.d.ts +1 -0
  16. package/dist/esm/api.js +1 -0
  17. package/dist/esm/models/account-api-key-list.d.ts +1 -1
  18. package/dist/esm/models/account-api-key.d.ts +72 -5
  19. package/dist/esm/models/account-key-budget.d.ts +30 -0
  20. package/dist/esm/models/account-key-edit.d.ts +55 -0
  21. package/dist/esm/models/account-key-in.d.ts +55 -0
  22. package/dist/esm/models/iam-key.d.ts +24 -0
  23. package/dist/esm/models/index.d.ts +52 -3
  24. package/dist/esm/models/index.js +52 -3
  25. package/dist/esm/models/train-adaptation.d.ts +67 -0
  26. package/dist/esm/models/train-adaptation.js +14 -0
  27. package/dist/esm/models/train-artifact.d.ts +66 -0
  28. package/dist/esm/models/train-artifact.js +14 -0
  29. package/dist/esm/models/train-artifacts-out.d.ts +25 -0
  30. package/dist/esm/models/train-artifacts-out.js +14 -0
  31. package/dist/esm/models/train-assignment.d.ts +38 -0
  32. package/dist/esm/models/train-assignment.js +14 -0
  33. package/dist/esm/models/train-budget.d.ts +30 -0
  34. package/dist/esm/models/train-budget.js +14 -0
  35. package/dist/esm/models/train-catalog.d.ts +25 -0
  36. package/dist/esm/models/train-catalog.js +14 -0
  37. package/dist/esm/models/train-chose.d.ts +30 -0
  38. package/dist/esm/models/train-chose.js +14 -0
  39. package/dist/esm/models/train-claim-in.d.ts +49 -0
  40. package/dist/esm/models/train-claim-in.js +14 -0
  41. package/dist/esm/models/train-claimed.d.ts +72 -0
  42. package/dist/esm/models/train-claimed.js +14 -0
  43. package/dist/esm/models/train-client-list.d.ts +24 -0
  44. package/dist/esm/models/train-client-list.js +14 -0
  45. package/dist/esm/models/train-create-client-in.d.ts +44 -0
  46. package/dist/esm/models/train-create-client-in.js +14 -0
  47. package/dist/esm/models/train-dataset.d.ts +32 -0
  48. package/dist/esm/models/train-dataset.js +14 -0
  49. package/dist/esm/models/{account-revoked-key.d.ts → train-deleted-out.d.ts} +8 -8
  50. package/dist/esm/models/train-deleted-out.js +14 -0
  51. package/dist/esm/models/train-download.d.ts +78 -0
  52. package/dist/esm/models/train-download.js +14 -0
  53. package/dist/esm/models/train-evaluation.d.ts +24 -0
  54. package/dist/esm/models/train-evaluation.js +14 -0
  55. package/dist/esm/models/train-event.d.ts +42 -0
  56. package/dist/esm/models/train-event.js +14 -0
  57. package/dist/esm/models/train-events-out.d.ts +37 -0
  58. package/dist/esm/models/train-events-out.js +14 -0
  59. package/dist/esm/models/train-family.d.ts +79 -0
  60. package/dist/esm/models/train-family.js +14 -0
  61. package/dist/esm/models/train-forward-in.d.ts +30 -0
  62. package/dist/esm/models/train-forward-in.js +14 -0
  63. package/dist/esm/models/train-job.d.ts +166 -0
  64. package/dist/esm/models/train-job.js +14 -0
  65. package/dist/esm/models/train-jobs-out.d.ts +25 -0
  66. package/dist/esm/models/train-jobs-out.js +14 -0
  67. package/dist/esm/models/train-metrics-out.d.ts +25 -0
  68. package/dist/esm/models/train-metrics-out.js +14 -0
  69. package/dist/esm/models/train-object.d.ts +78 -0
  70. package/dist/esm/models/train-object.js +14 -0
  71. package/dist/esm/models/train-objective.d.ts +31 -0
  72. package/dist/esm/models/train-objective.js +14 -0
  73. package/dist/esm/models/train-objects-out.d.ts +25 -0
  74. package/dist/esm/models/train-objects-out.js +14 -0
  75. package/dist/esm/models/train-optim-in.d.ts +30 -0
  76. package/dist/esm/models/train-optim-in.js +14 -0
  77. package/dist/esm/models/train-options.d.ts +30 -0
  78. package/dist/esm/models/train-options.js +14 -0
  79. package/dist/esm/models/train-output.d.ts +30 -0
  80. package/dist/esm/models/train-output.js +14 -0
  81. package/dist/esm/models/train-part.d.ts +50 -0
  82. package/dist/esm/models/train-part.js +14 -0
  83. package/dist/esm/models/train-projection.d.ts +24 -0
  84. package/dist/esm/models/train-projection.js +14 -0
  85. package/dist/esm/models/train-protect.d.ts +50 -0
  86. package/dist/esm/models/train-protect.js +14 -0
  87. package/dist/esm/models/train-publish-in.d.ts +43 -0
  88. package/dist/esm/models/train-publish-in.js +14 -0
  89. package/dist/esm/models/train-register-in.d.ts +68 -0
  90. package/dist/esm/models/train-register-in.js +14 -0
  91. package/dist/esm/models/train-register-out.d.ts +37 -0
  92. package/dist/esm/models/train-register-out.js +14 -0
  93. package/dist/esm/models/train-report-in.d.ts +42 -0
  94. package/dist/esm/models/train-report-in.js +14 -0
  95. package/dist/esm/models/train-report-out.d.ts +42 -0
  96. package/dist/esm/models/train-report-out.js +14 -0
  97. package/dist/esm/models/train-resources.d.ts +48 -0
  98. package/dist/esm/models/train-resources.js +14 -0
  99. package/dist/esm/models/train-route.d.ts +33 -0
  100. package/dist/esm/models/train-route.js +14 -0
  101. package/dist/esm/models/train-run.d.ts +36 -0
  102. package/dist/esm/models/train-run.js +14 -0
  103. package/dist/esm/models/train-sample-in.d.ts +48 -0
  104. package/dist/esm/models/train-sample-in.js +14 -0
  105. package/dist/esm/models/train-save-in.d.ts +37 -0
  106. package/dist/esm/models/train-save-in.js +14 -0
  107. package/dist/esm/models/train-series.d.ts +30 -0
  108. package/dist/esm/models/train-series.js +14 -0
  109. package/dist/esm/models/train-spec.d.ts +85 -0
  110. package/dist/esm/models/train-spec.js +14 -0
  111. package/dist/esm/models/train-supports.d.ts +42 -0
  112. package/dist/esm/models/train-supports.js +14 -0
  113. package/dist/esm/models/train-task-view.d.ts +78 -0
  114. package/dist/esm/models/train-task-view.js +14 -0
  115. package/dist/esm/models/train-term.d.ts +36 -0
  116. package/dist/esm/models/train-term.js +14 -0
  117. package/dist/esm/models/train-upload-in.d.ts +42 -0
  118. package/dist/esm/models/train-upload-in.js +14 -0
  119. package/dist/esm/models/train-upload.d.ts +51 -0
  120. package/dist/esm/models/train-upload.js +14 -0
  121. package/dist/esm/models/train-usage.d.ts +36 -0
  122. package/dist/esm/models/train-usage.js +14 -0
  123. package/dist/models/account-api-key-list.d.ts +1 -1
  124. package/dist/models/account-api-key.d.ts +72 -5
  125. package/dist/models/account-key-budget.d.ts +30 -0
  126. package/dist/models/account-key-edit.d.ts +55 -0
  127. package/dist/models/account-key-in.d.ts +55 -0
  128. package/dist/models/iam-key.d.ts +24 -0
  129. package/dist/models/index.d.ts +52 -3
  130. package/dist/models/index.js +52 -3
  131. package/dist/models/train-adaptation.d.ts +67 -0
  132. package/dist/models/train-adaptation.js +15 -0
  133. package/dist/models/train-artifact.d.ts +66 -0
  134. package/dist/models/train-artifact.js +15 -0
  135. package/dist/models/train-artifacts-out.d.ts +25 -0
  136. package/dist/models/train-artifacts-out.js +15 -0
  137. package/dist/models/train-assignment.d.ts +38 -0
  138. package/dist/models/train-assignment.js +15 -0
  139. package/dist/models/train-budget.d.ts +30 -0
  140. package/dist/models/train-budget.js +15 -0
  141. package/dist/models/train-catalog.d.ts +25 -0
  142. package/dist/models/train-catalog.js +15 -0
  143. package/dist/models/train-chose.d.ts +30 -0
  144. package/dist/models/train-chose.js +15 -0
  145. package/dist/models/train-claim-in.d.ts +49 -0
  146. package/dist/models/train-claim-in.js +15 -0
  147. package/dist/models/train-claimed.d.ts +72 -0
  148. package/dist/models/train-claimed.js +15 -0
  149. package/dist/models/train-client-list.d.ts +24 -0
  150. package/dist/models/train-client-list.js +15 -0
  151. package/dist/models/train-create-client-in.d.ts +44 -0
  152. package/dist/models/train-create-client-in.js +15 -0
  153. package/dist/models/train-dataset.d.ts +32 -0
  154. package/dist/models/train-dataset.js +15 -0
  155. package/dist/models/{account-revoked-key.d.ts → train-deleted-out.d.ts} +8 -8
  156. package/dist/models/train-deleted-out.js +15 -0
  157. package/dist/models/train-download.d.ts +78 -0
  158. package/dist/models/train-download.js +15 -0
  159. package/dist/models/train-evaluation.d.ts +24 -0
  160. package/dist/models/train-evaluation.js +15 -0
  161. package/dist/models/train-event.d.ts +42 -0
  162. package/dist/models/train-event.js +15 -0
  163. package/dist/models/train-events-out.d.ts +37 -0
  164. package/dist/models/train-events-out.js +15 -0
  165. package/dist/models/train-family.d.ts +79 -0
  166. package/dist/models/train-family.js +15 -0
  167. package/dist/models/train-forward-in.d.ts +30 -0
  168. package/dist/models/train-forward-in.js +15 -0
  169. package/dist/models/train-job.d.ts +166 -0
  170. package/dist/models/train-job.js +15 -0
  171. package/dist/models/train-jobs-out.d.ts +25 -0
  172. package/dist/models/train-jobs-out.js +15 -0
  173. package/dist/models/train-metrics-out.d.ts +25 -0
  174. package/dist/models/train-metrics-out.js +15 -0
  175. package/dist/models/train-object.d.ts +78 -0
  176. package/dist/models/train-object.js +15 -0
  177. package/dist/models/train-objective.d.ts +31 -0
  178. package/dist/models/train-objective.js +15 -0
  179. package/dist/models/train-objects-out.d.ts +25 -0
  180. package/dist/models/train-objects-out.js +15 -0
  181. package/dist/models/train-optim-in.d.ts +30 -0
  182. package/dist/models/train-optim-in.js +15 -0
  183. package/dist/models/train-options.d.ts +30 -0
  184. package/dist/models/train-options.js +15 -0
  185. package/dist/models/train-output.d.ts +30 -0
  186. package/dist/models/train-output.js +15 -0
  187. package/dist/models/train-part.d.ts +50 -0
  188. package/dist/models/train-part.js +15 -0
  189. package/dist/models/train-projection.d.ts +24 -0
  190. package/dist/models/train-projection.js +15 -0
  191. package/dist/models/train-protect.d.ts +50 -0
  192. package/dist/models/train-protect.js +15 -0
  193. package/dist/models/train-publish-in.d.ts +43 -0
  194. package/dist/models/train-publish-in.js +15 -0
  195. package/dist/models/train-register-in.d.ts +68 -0
  196. package/dist/models/train-register-in.js +15 -0
  197. package/dist/models/train-register-out.d.ts +37 -0
  198. package/dist/models/train-register-out.js +15 -0
  199. package/dist/models/train-report-in.d.ts +42 -0
  200. package/dist/models/train-report-in.js +15 -0
  201. package/dist/models/train-report-out.d.ts +42 -0
  202. package/dist/models/train-report-out.js +15 -0
  203. package/dist/models/train-resources.d.ts +48 -0
  204. package/dist/models/train-resources.js +15 -0
  205. package/dist/models/train-route.d.ts +33 -0
  206. package/dist/models/train-route.js +15 -0
  207. package/dist/models/train-run.d.ts +36 -0
  208. package/dist/models/train-run.js +15 -0
  209. package/dist/models/train-sample-in.d.ts +48 -0
  210. package/dist/models/train-sample-in.js +15 -0
  211. package/dist/models/train-save-in.d.ts +37 -0
  212. package/dist/models/train-save-in.js +15 -0
  213. package/dist/models/train-series.d.ts +30 -0
  214. package/dist/models/train-series.js +15 -0
  215. package/dist/models/train-spec.d.ts +85 -0
  216. package/dist/models/train-spec.js +15 -0
  217. package/dist/models/train-supports.d.ts +42 -0
  218. package/dist/models/train-supports.js +15 -0
  219. package/dist/models/train-task-view.d.ts +78 -0
  220. package/dist/models/train-task-view.js +15 -0
  221. package/dist/models/train-term.d.ts +36 -0
  222. package/dist/models/train-term.js +15 -0
  223. package/dist/models/train-upload-in.d.ts +42 -0
  224. package/dist/models/train-upload-in.js +15 -0
  225. package/dist/models/train-upload.d.ts +51 -0
  226. package/dist/models/train-upload.js +15 -0
  227. package/dist/models/train-usage.d.ts +36 -0
  228. package/dist/models/train-usage.js +15 -0
  229. package/package.json +1 -1
  230. package/src/api/account-api.ts +164 -64
  231. package/src/api/iam-api.ts +16 -16
  232. package/src/api/train-api.ts +2281 -0
  233. package/src/api.ts +1 -0
  234. package/src/models/account-api-key-list.ts +1 -1
  235. package/src/models/account-api-key.ts +74 -5
  236. package/src/models/account-key-budget.ts +36 -0
  237. package/src/models/account-key-edit.ts +63 -0
  238. package/src/models/account-key-in.ts +63 -0
  239. package/src/models/iam-key.ts +24 -0
  240. package/src/models/index.ts +52 -3
  241. package/src/models/train-adaptation.ts +75 -0
  242. package/src/models/train-artifact.ts +72 -0
  243. package/src/models/train-artifacts-out.ts +33 -0
  244. package/src/models/train-assignment.ts +48 -0
  245. package/src/models/train-budget.ts +36 -0
  246. package/src/models/train-catalog.ts +33 -0
  247. package/src/models/train-chose.ts +36 -0
  248. package/src/models/train-claim-in.ts +57 -0
  249. package/src/models/train-claimed.ts +78 -0
  250. package/src/models/train-client-list.ts +30 -0
  251. package/src/models/train-create-client-in.ts +54 -0
  252. package/src/models/train-dataset.ts +36 -0
  253. package/src/models/{account-revoked-key.ts → train-deleted-out.ts} +8 -8
  254. package/src/models/train-download.ts +84 -0
  255. package/src/models/train-evaluation.ts +30 -0
  256. package/src/models/train-event.ts +48 -0
  257. package/src/models/train-events-out.ts +45 -0
  258. package/src/models/train-family.ts +87 -0
  259. package/src/models/train-forward-in.ts +36 -0
  260. package/src/models/train-job.ts +192 -0
  261. package/src/models/train-jobs-out.ts +33 -0
  262. package/src/models/train-metrics-out.ts +33 -0
  263. package/src/models/train-object.ts +84 -0
  264. package/src/models/train-objective.ts +39 -0
  265. package/src/models/train-objects-out.ts +33 -0
  266. package/src/models/train-optim-in.ts +36 -0
  267. package/src/models/train-options.ts +36 -0
  268. package/src/models/train-output.ts +36 -0
  269. package/src/models/train-part.ts +54 -0
  270. package/src/models/train-projection.ts +30 -0
  271. package/src/models/train-protect.ts +60 -0
  272. package/src/models/train-publish-in.ts +51 -0
  273. package/src/models/train-register-in.ts +72 -0
  274. package/src/models/train-register-out.ts +45 -0
  275. package/src/models/train-report-in.ts +48 -0
  276. package/src/models/train-report-out.ts +48 -0
  277. package/src/models/train-resources.ts +54 -0
  278. package/src/models/train-route.ts +39 -0
  279. package/src/models/train-run.ts +42 -0
  280. package/src/models/train-sample-in.ts +54 -0
  281. package/src/models/train-save-in.ts +45 -0
  282. package/src/models/train-series.ts +36 -0
  283. package/src/models/train-spec.ts +105 -0
  284. package/src/models/train-supports.ts +48 -0
  285. package/src/models/train-task-view.ts +84 -0
  286. package/src/models/train-term.ts +42 -0
  287. package/src/models/train-upload-in.ts +48 -0
  288. package/src/models/train-upload.ts +57 -0
  289. package/src/models/train-usage.ts +42 -0
  290. package/dist/esm/models/account-key-type-in.d.ts +0 -30
  291. package/dist/esm/models/account-minted-key.d.ts +0 -42
  292. package/dist/models/account-key-type-in.d.ts +0 -30
  293. package/dist/models/account-minted-key.d.ts +0 -42
  294. package/src/models/account-key-type-in.ts +0 -36
  295. package/src/models/account-minted-key.ts +0 -48
  296. /package/dist/esm/models/{account-key-type-in.js → account-key-budget.js} +0 -0
  297. /package/dist/esm/models/{account-minted-key.js → account-key-edit.js} +0 -0
  298. /package/dist/esm/models/{account-revoked-key.js → account-key-in.js} +0 -0
  299. /package/dist/models/{account-key-type-in.js → account-key-budget.js} +0 -0
  300. /package/dist/models/{account-minted-key.js → account-key-edit.js} +0 -0
  301. /package/dist/models/{account-revoked-key.js → account-key-in.js} +0 -0
@@ -13,28 +13,28 @@ import type { Configuration } from '../configuration';
13
13
  import type { AxiosPromise, AxiosInstance, RawAxiosRequestConfig } from 'axios';
14
14
  import globalAxios from 'axios';
15
15
  import { type RequestArgs, BaseAPI } from '../base';
16
+ import type { AccountApiKey } from '../models';
16
17
  import type { AccountApiKeyList } from '../models';
17
18
  import type { AccountAppearance } from '../models';
18
19
  import type { AccountCsrfResp } from '../models';
19
20
  import type { AccountEmbedStatusResp } from '../models';
20
- import type { AccountKeyTypeIn } from '../models';
21
- import type { AccountMintedKey } from '../models';
21
+ import type { AccountKeyEdit } from '../models';
22
+ import type { AccountKeyIn } from '../models';
22
23
  import type { AccountOnboardReq } from '../models';
23
24
  import type { AccountOnboardResp } from '../models';
24
- import type { AccountRevokedKey } from '../models';
25
25
  /**
26
26
  * AccountApi - axios parameter creator
27
27
  * @export
28
28
  */
29
29
  export declare const AccountApiAxiosParamCreator: (configuration?: Configuration) => {
30
30
  /**
31
- * Revokes the caller\'s own API key of the requested class. The class is the same field mint takes — `?type=publishable`, defaulting to secret — so revoking the key that ships in a browser bundle does not sign its holder out of their own API: the other key keeps working. Revoking is how a key is replaced when it does not need replacing; minting the same class again rotates it in one step. IAM drops the credential immediately, but cloud caches a home key\'s principal for up to 60s, so a request inside that window may still be served. A member\'s key is never cached. For callers written against the older shape, the class is also accepted in a JSON request body, read only when `?type=` is absent.
32
- * @summary Revokes the caller\'s own API key of the requested class.
33
- * @param {string} [type] Type is the key class to act on: \"secret\" (sk-, session-equivalent, belongs on a server) or \"publishable\" (pk-, org-identifying, safe in a browser bundle). Omitted means secret, which is what every existing caller means.
31
+ * Revokes exactly one API key, by id. Every other key keeps working. The key stays listed as revoked, with who revoked it and when, and can never be used again. IAM refuses it at once; cloud caches a resolved key for up to 60 seconds, so a request inside that window may still be served. A member revokes their own keys; an org admin revokes any of the org\'s, and revoking someone else\'s is recorded on the audit trail.
32
+ * @summary Revokes exactly one API key, by id.
33
+ * @param {string} id ID is the key to act on, from the path.
34
34
  * @param {*} [options] Override http request option.
35
35
  * @throws {RequiredError}
36
36
  */
37
- deleteAccountKeys: (type?: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
37
+ deleteAccountKeysById: (id: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
38
38
  /**
39
39
  * Returns the signed-in caller\'s own appearance preference — text size, density and accent — read from their IAM account so it is the same on every device and every Hanzo surface. An unset preference is an empty object. A transient IAM read failure reports the empty preference rather than a 5xx, so a surface applies its published default and never error-toasts on load — the same fail-soft the key read uses.
40
40
  * @summary Returns the signed-in caller\'s own appearance preference — text size, density and accent — read from their IAM account so it is the same on every device and every Hanzo surface.
@@ -68,12 +68,21 @@ export declare const AccountApiAxiosParamCreator: (configuration?: Configuration
68
68
  */
69
69
  getAccountEmbed: (app?: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
70
70
  /**
71
- * Returns the caller\'s own API keys — every type they hold, read AUTHORITATIVELY from IAM rather than from the session claim, which lags a key minted moments ago. No secret material comes back: a secret key is represented by its prefix, and only a publishable key (public by construction) carries its full value. A transient IAM read failure reports an empty set rather than a 5xx, so the page shows the honest empty state and never a fabricated key.
72
- * @summary Returns the caller\'s own API keys — every type they hold, read AUTHORITATIVELY from IAM rather than from the session claim, which lags a key minted moments ago.
71
+ * Returns the API keys the caller may see, newest first: their own, or every key the org holds when the caller administers it. Each is its own credential with its own name, prefix, status, expiry and limit. Revoked keys stay listed. No secret material comes back; a publishable key, which is public by construction, carries its full value.
72
+ * @summary Returns the API keys the caller may see, newest first: their own, or every key the org holds when the caller administers it.
73
73
  * @param {*} [options] Override http request option.
74
74
  * @throws {RequiredError}
75
75
  */
76
76
  getAccountKeys: (options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
77
+ /**
78
+ * Changes one key\'s name, permissions, budget, rate or expiry. The secret is not reissued: the key in your deployment keeps working, under its new policy. Only the person the key belongs to may edit it, and a revoked key cannot be edited.
79
+ * @summary Changes one key\'s name, permissions, budget, rate or expiry.
80
+ * @param {string} id ID is the key to edit, from the path.
81
+ * @param {AccountKeyEdit} accountKeyEdit
82
+ * @param {*} [options] Override http request option.
83
+ * @throws {RequiredError}
84
+ */
85
+ patchAccountKeysById: (id: string, accountKeyEdit: AccountKeyEdit, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
77
86
  /**
78
87
  * Stores the caller\'s appearance preference on their IAM account, preserving every other field of the row. The accent is validated as a real colour token before it is stored; an unset or invalid axis is dropped rather than stored.
79
88
  * @summary Stores the caller\'s appearance preference on their IAM account, preserving every other field of the row.
@@ -90,13 +99,13 @@ export declare const AccountApiAxiosParamCreator: (configuration?: Configuration
90
99
  */
91
100
  postAccountAvatar: (options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
92
101
  /**
93
- * Creates — or rotates — the caller\'s API key of the requested type and returns it ONCE. A real IAM failure surfaces as 502, never a fabricated key. Rotating is what creating means here: a user holds one key per type, so the endpoint is idempotent by (caller, type) and the superseded credential stops working. Two live secrets for one user would make \"revoke my key\" a lie.
94
- * @summary Creates — or rotates — the caller\'s API key of the requested type and returns it ONCE.
95
- * @param {AccountKeyTypeIn} accountKeyTypeIn
102
+ * Creates a NEW API key and returns its secret ONCE. It never revokes or changes any other key: every key the caller already holds keeps working. The key is filed in the org the caller acts in and names them as its creator. An org holds at most 1,000 live keys; past that the create is refused until one is revoked.
103
+ * @summary Creates a NEW API key and returns its secret ONCE.
104
+ * @param {AccountKeyIn} accountKeyIn
96
105
  * @param {*} [options] Override http request option.
97
106
  * @throws {RequiredError}
98
107
  */
99
- postAccountKeys: (accountKeyTypeIn: AccountKeyTypeIn, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
108
+ postAccountKeys: (accountKeyIn: AccountKeyIn, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
100
109
  /**
101
110
  * Creates the caller\'s organization. Two flows, keyed on whether the caller already has a home org (mirrors app/onboard/route.ts): - FIRST-RUN (no home org): create + MOVE the user in as admin, so their next JWT carries the new owner and the cloud scopes everything to it. This is the path a fresh OAuth sign-up takes, from the sign-up application\'s org. - ADDITIONAL (owner set): create the org but do NOT move the user — a move changes their IAM owner (stripping a SuperAdmin\'s status + orphaning their current org). They reach the new org via the OrgSwitcher, which re-scopes X-Org-Id without touching IAM membership. A personal-org request from someone who already has an org is meaningless → 409.
102
111
  * @summary Creates the caller\'s organization.
@@ -112,13 +121,13 @@ export declare const AccountApiAxiosParamCreator: (configuration?: Configuration
112
121
  */
113
122
  export declare const AccountApiFp: (configuration?: Configuration) => {
114
123
  /**
115
- * Revokes the caller\'s own API key of the requested class. The class is the same field mint takes — `?type=publishable`, defaulting to secret — so revoking the key that ships in a browser bundle does not sign its holder out of their own API: the other key keeps working. Revoking is how a key is replaced when it does not need replacing; minting the same class again rotates it in one step. IAM drops the credential immediately, but cloud caches a home key\'s principal for up to 60s, so a request inside that window may still be served. A member\'s key is never cached. For callers written against the older shape, the class is also accepted in a JSON request body, read only when `?type=` is absent.
116
- * @summary Revokes the caller\'s own API key of the requested class.
117
- * @param {string} [type] Type is the key class to act on: \&quot;secret\&quot; (sk-, session-equivalent, belongs on a server) or \&quot;publishable\&quot; (pk-, org-identifying, safe in a browser bundle). Omitted means secret, which is what every existing caller means.
124
+ * Revokes exactly one API key, by id. Every other key keeps working. The key stays listed as revoked, with who revoked it and when, and can never be used again. IAM refuses it at once; cloud caches a resolved key for up to 60 seconds, so a request inside that window may still be served. A member revokes their own keys; an org admin revokes any of the org\'s, and revoking someone else\'s is recorded on the audit trail.
125
+ * @summary Revokes exactly one API key, by id.
126
+ * @param {string} id ID is the key to act on, from the path.
118
127
  * @param {*} [options] Override http request option.
119
128
  * @throws {RequiredError}
120
129
  */
121
- deleteAccountKeys(type?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AccountRevokedKey>>;
130
+ deleteAccountKeysById(id: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AccountApiKey>>;
122
131
  /**
123
132
  * Returns the signed-in caller\'s own appearance preference — text size, density and accent — read from their IAM account so it is the same on every device and every Hanzo surface. An unset preference is an empty object. A transient IAM read failure reports the empty preference rather than a 5xx, so a surface applies its published default and never error-toasts on load — the same fail-soft the key read uses.
124
133
  * @summary Returns the signed-in caller\'s own appearance preference — text size, density and accent — read from their IAM account so it is the same on every device and every Hanzo surface.
@@ -152,12 +161,21 @@ export declare const AccountApiFp: (configuration?: Configuration) => {
152
161
  */
153
162
  getAccountEmbed(app?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AccountEmbedStatusResp>>;
154
163
  /**
155
- * Returns the caller\'s own API keys — every type they hold, read AUTHORITATIVELY from IAM rather than from the session claim, which lags a key minted moments ago. No secret material comes back: a secret key is represented by its prefix, and only a publishable key (public by construction) carries its full value. A transient IAM read failure reports an empty set rather than a 5xx, so the page shows the honest empty state and never a fabricated key.
156
- * @summary Returns the caller\'s own API keys — every type they hold, read AUTHORITATIVELY from IAM rather than from the session claim, which lags a key minted moments ago.
164
+ * Returns the API keys the caller may see, newest first: their own, or every key the org holds when the caller administers it. Each is its own credential with its own name, prefix, status, expiry and limit. Revoked keys stay listed. No secret material comes back; a publishable key, which is public by construction, carries its full value.
165
+ * @summary Returns the API keys the caller may see, newest first: their own, or every key the org holds when the caller administers it.
157
166
  * @param {*} [options] Override http request option.
158
167
  * @throws {RequiredError}
159
168
  */
160
169
  getAccountKeys(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AccountApiKeyList>>;
170
+ /**
171
+ * Changes one key\'s name, permissions, budget, rate or expiry. The secret is not reissued: the key in your deployment keeps working, under its new policy. Only the person the key belongs to may edit it, and a revoked key cannot be edited.
172
+ * @summary Changes one key\'s name, permissions, budget, rate or expiry.
173
+ * @param {string} id ID is the key to edit, from the path.
174
+ * @param {AccountKeyEdit} accountKeyEdit
175
+ * @param {*} [options] Override http request option.
176
+ * @throws {RequiredError}
177
+ */
178
+ patchAccountKeysById(id: string, accountKeyEdit: AccountKeyEdit, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AccountApiKey>>;
161
179
  /**
162
180
  * Stores the caller\'s appearance preference on their IAM account, preserving every other field of the row. The accent is validated as a real colour token before it is stored; an unset or invalid axis is dropped rather than stored.
163
181
  * @summary Stores the caller\'s appearance preference on their IAM account, preserving every other field of the row.
@@ -174,13 +192,13 @@ export declare const AccountApiFp: (configuration?: Configuration) => {
174
192
  */
175
193
  postAccountAvatar(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
176
194
  /**
177
- * Creates — or rotates — the caller\'s API key of the requested type and returns it ONCE. A real IAM failure surfaces as 502, never a fabricated key. Rotating is what creating means here: a user holds one key per type, so the endpoint is idempotent by (caller, type) and the superseded credential stops working. Two live secrets for one user would make \"revoke my key\" a lie.
178
- * @summary Creates — or rotates — the caller\'s API key of the requested type and returns it ONCE.
179
- * @param {AccountKeyTypeIn} accountKeyTypeIn
195
+ * Creates a NEW API key and returns its secret ONCE. It never revokes or changes any other key: every key the caller already holds keeps working. The key is filed in the org the caller acts in and names them as its creator. An org holds at most 1,000 live keys; past that the create is refused until one is revoked.
196
+ * @summary Creates a NEW API key and returns its secret ONCE.
197
+ * @param {AccountKeyIn} accountKeyIn
180
198
  * @param {*} [options] Override http request option.
181
199
  * @throws {RequiredError}
182
200
  */
183
- postAccountKeys(accountKeyTypeIn: AccountKeyTypeIn, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AccountMintedKey>>;
201
+ postAccountKeys(accountKeyIn: AccountKeyIn, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AccountApiKey>>;
184
202
  /**
185
203
  * Creates the caller\'s organization. Two flows, keyed on whether the caller already has a home org (mirrors app/onboard/route.ts): - FIRST-RUN (no home org): create + MOVE the user in as admin, so their next JWT carries the new owner and the cloud scopes everything to it. This is the path a fresh OAuth sign-up takes, from the sign-up application\'s org. - ADDITIONAL (owner set): create the org but do NOT move the user — a move changes their IAM owner (stripping a SuperAdmin\'s status + orphaning their current org). They reach the new org via the OrgSwitcher, which re-scopes X-Org-Id without touching IAM membership. A personal-org request from someone who already has an org is meaningless → 409.
186
204
  * @summary Creates the caller\'s organization.
@@ -196,13 +214,13 @@ export declare const AccountApiFp: (configuration?: Configuration) => {
196
214
  */
197
215
  export declare const AccountApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
198
216
  /**
199
- * Revokes the caller\'s own API key of the requested class. The class is the same field mint takes — `?type=publishable`, defaulting to secret — so revoking the key that ships in a browser bundle does not sign its holder out of their own API: the other key keeps working. Revoking is how a key is replaced when it does not need replacing; minting the same class again rotates it in one step. IAM drops the credential immediately, but cloud caches a home key\'s principal for up to 60s, so a request inside that window may still be served. A member\'s key is never cached. For callers written against the older shape, the class is also accepted in a JSON request body, read only when `?type=` is absent.
200
- * @summary Revokes the caller\'s own API key of the requested class.
201
- * @param {AccountApiDeleteAccountKeysRequest} requestParameters Request parameters.
217
+ * Revokes exactly one API key, by id. Every other key keeps working. The key stays listed as revoked, with who revoked it and when, and can never be used again. IAM refuses it at once; cloud caches a resolved key for up to 60 seconds, so a request inside that window may still be served. A member revokes their own keys; an org admin revokes any of the org\'s, and revoking someone else\'s is recorded on the audit trail.
218
+ * @summary Revokes exactly one API key, by id.
219
+ * @param {AccountApiDeleteAccountKeysByIdRequest} requestParameters Request parameters.
202
220
  * @param {*} [options] Override http request option.
203
221
  * @throws {RequiredError}
204
222
  */
205
- deleteAccountKeys(requestParameters?: AccountApiDeleteAccountKeysRequest, options?: RawAxiosRequestConfig): AxiosPromise<AccountRevokedKey>;
223
+ deleteAccountKeysById(requestParameters: AccountApiDeleteAccountKeysByIdRequest, options?: RawAxiosRequestConfig): AxiosPromise<AccountApiKey>;
206
224
  /**
207
225
  * Returns the signed-in caller\'s own appearance preference — text size, density and accent — read from their IAM account so it is the same on every device and every Hanzo surface. An unset preference is an empty object. A transient IAM read failure reports the empty preference rather than a 5xx, so a surface applies its published default and never error-toasts on load — the same fail-soft the key read uses.
208
226
  * @summary Returns the signed-in caller\'s own appearance preference — text size, density and accent — read from their IAM account so it is the same on every device and every Hanzo surface.
@@ -234,12 +252,20 @@ export declare const AccountApiFactory: (configuration?: Configuration, basePath
234
252
  */
235
253
  getAccountEmbed(requestParameters?: AccountApiGetAccountEmbedRequest, options?: RawAxiosRequestConfig): AxiosPromise<AccountEmbedStatusResp>;
236
254
  /**
237
- * Returns the caller\'s own API keys — every type they hold, read AUTHORITATIVELY from IAM rather than from the session claim, which lags a key minted moments ago. No secret material comes back: a secret key is represented by its prefix, and only a publishable key (public by construction) carries its full value. A transient IAM read failure reports an empty set rather than a 5xx, so the page shows the honest empty state and never a fabricated key.
238
- * @summary Returns the caller\'s own API keys — every type they hold, read AUTHORITATIVELY from IAM rather than from the session claim, which lags a key minted moments ago.
255
+ * Returns the API keys the caller may see, newest first: their own, or every key the org holds when the caller administers it. Each is its own credential with its own name, prefix, status, expiry and limit. Revoked keys stay listed. No secret material comes back; a publishable key, which is public by construction, carries its full value.
256
+ * @summary Returns the API keys the caller may see, newest first: their own, or every key the org holds when the caller administers it.
239
257
  * @param {*} [options] Override http request option.
240
258
  * @throws {RequiredError}
241
259
  */
242
260
  getAccountKeys(options?: RawAxiosRequestConfig): AxiosPromise<AccountApiKeyList>;
261
+ /**
262
+ * Changes one key\'s name, permissions, budget, rate or expiry. The secret is not reissued: the key in your deployment keeps working, under its new policy. Only the person the key belongs to may edit it, and a revoked key cannot be edited.
263
+ * @summary Changes one key\'s name, permissions, budget, rate or expiry.
264
+ * @param {AccountApiPatchAccountKeysByIdRequest} requestParameters Request parameters.
265
+ * @param {*} [options] Override http request option.
266
+ * @throws {RequiredError}
267
+ */
268
+ patchAccountKeysById(requestParameters: AccountApiPatchAccountKeysByIdRequest, options?: RawAxiosRequestConfig): AxiosPromise<AccountApiKey>;
243
269
  /**
244
270
  * Stores the caller\'s appearance preference on their IAM account, preserving every other field of the row. The accent is validated as a real colour token before it is stored; an unset or invalid axis is dropped rather than stored.
245
271
  * @summary Stores the caller\'s appearance preference on their IAM account, preserving every other field of the row.
@@ -256,13 +282,13 @@ export declare const AccountApiFactory: (configuration?: Configuration, basePath
256
282
  */
257
283
  postAccountAvatar(options?: RawAxiosRequestConfig): AxiosPromise<void>;
258
284
  /**
259
- * Creates — or rotates — the caller\'s API key of the requested type and returns it ONCE. A real IAM failure surfaces as 502, never a fabricated key. Rotating is what creating means here: a user holds one key per type, so the endpoint is idempotent by (caller, type) and the superseded credential stops working. Two live secrets for one user would make \"revoke my key\" a lie.
260
- * @summary Creates — or rotates — the caller\'s API key of the requested type and returns it ONCE.
285
+ * Creates a NEW API key and returns its secret ONCE. It never revokes or changes any other key: every key the caller already holds keeps working. The key is filed in the org the caller acts in and names them as its creator. An org holds at most 1,000 live keys; past that the create is refused until one is revoked.
286
+ * @summary Creates a NEW API key and returns its secret ONCE.
261
287
  * @param {AccountApiPostAccountKeysRequest} requestParameters Request parameters.
262
288
  * @param {*} [options] Override http request option.
263
289
  * @throws {RequiredError}
264
290
  */
265
- postAccountKeys(requestParameters: AccountApiPostAccountKeysRequest, options?: RawAxiosRequestConfig): AxiosPromise<AccountMintedKey>;
291
+ postAccountKeys(requestParameters: AccountApiPostAccountKeysRequest, options?: RawAxiosRequestConfig): AxiosPromise<AccountApiKey>;
266
292
  /**
267
293
  * Creates the caller\'s organization. Two flows, keyed on whether the caller already has a home org (mirrors app/onboard/route.ts): - FIRST-RUN (no home org): create + MOVE the user in as admin, so their next JWT carries the new owner and the cloud scopes everything to it. This is the path a fresh OAuth sign-up takes, from the sign-up application\'s org. - ADDITIONAL (owner set): create the org but do NOT move the user — a move changes their IAM owner (stripping a SuperAdmin\'s status + orphaning their current org). They reach the new org via the OrgSwitcher, which re-scopes X-Org-Id without touching IAM membership. A personal-org request from someone who already has an org is meaningless → 409.
268
294
  * @summary Creates the caller\'s organization.
@@ -273,17 +299,17 @@ export declare const AccountApiFactory: (configuration?: Configuration, basePath
273
299
  postAccountOrgs(requestParameters: AccountApiPostAccountOrgsRequest, options?: RawAxiosRequestConfig): AxiosPromise<AccountOnboardResp>;
274
300
  };
275
301
  /**
276
- * Request parameters for deleteAccountKeys operation in AccountApi.
302
+ * Request parameters for deleteAccountKeysById operation in AccountApi.
277
303
  * @export
278
- * @interface AccountApiDeleteAccountKeysRequest
304
+ * @interface AccountApiDeleteAccountKeysByIdRequest
279
305
  */
280
- export interface AccountApiDeleteAccountKeysRequest {
306
+ export interface AccountApiDeleteAccountKeysByIdRequest {
281
307
  /**
282
- * Type is the key class to act on: \&quot;secret\&quot; (sk-, session-equivalent, belongs on a server) or \&quot;publishable\&quot; (pk-, org-identifying, safe in a browser bundle). Omitted means secret, which is what every existing caller means.
308
+ * ID is the key to act on, from the path.
283
309
  * @type {string}
284
- * @memberof AccountApiDeleteAccountKeys
310
+ * @memberof AccountApiDeleteAccountKeysById
285
311
  */
286
- readonly type?: string;
312
+ readonly id: string;
287
313
  }
288
314
  /**
289
315
  * Request parameters for getAccountAvatarByOrgByUserByDigest operation in AccountApi.
@@ -323,6 +349,25 @@ export interface AccountApiGetAccountEmbedRequest {
323
349
  */
324
350
  readonly app?: string;
325
351
  }
352
+ /**
353
+ * Request parameters for patchAccountKeysById operation in AccountApi.
354
+ * @export
355
+ * @interface AccountApiPatchAccountKeysByIdRequest
356
+ */
357
+ export interface AccountApiPatchAccountKeysByIdRequest {
358
+ /**
359
+ * ID is the key to edit, from the path.
360
+ * @type {string}
361
+ * @memberof AccountApiPatchAccountKeysById
362
+ */
363
+ readonly id: string;
364
+ /**
365
+ *
366
+ * @type {AccountKeyEdit}
367
+ * @memberof AccountApiPatchAccountKeysById
368
+ */
369
+ readonly accountKeyEdit: AccountKeyEdit;
370
+ }
326
371
  /**
327
372
  * Request parameters for postAccountAppearance operation in AccountApi.
328
373
  * @export
@@ -344,10 +389,10 @@ export interface AccountApiPostAccountAppearanceRequest {
344
389
  export interface AccountApiPostAccountKeysRequest {
345
390
  /**
346
391
  *
347
- * @type {AccountKeyTypeIn}
392
+ * @type {AccountKeyIn}
348
393
  * @memberof AccountApiPostAccountKeys
349
394
  */
350
- readonly accountKeyTypeIn: AccountKeyTypeIn;
395
+ readonly accountKeyIn: AccountKeyIn;
351
396
  }
352
397
  /**
353
398
  * Request parameters for postAccountOrgs operation in AccountApi.
@@ -370,14 +415,14 @@ export interface AccountApiPostAccountOrgsRequest {
370
415
  */
371
416
  export declare class AccountApi extends BaseAPI {
372
417
  /**
373
- * Revokes the caller\'s own API key of the requested class. The class is the same field mint takes — `?type=publishable`, defaulting to secret — so revoking the key that ships in a browser bundle does not sign its holder out of their own API: the other key keeps working. Revoking is how a key is replaced when it does not need replacing; minting the same class again rotates it in one step. IAM drops the credential immediately, but cloud caches a home key\'s principal for up to 60s, so a request inside that window may still be served. A member\'s key is never cached. For callers written against the older shape, the class is also accepted in a JSON request body, read only when `?type=` is absent.
374
- * @summary Revokes the caller\'s own API key of the requested class.
375
- * @param {AccountApiDeleteAccountKeysRequest} requestParameters Request parameters.
418
+ * Revokes exactly one API key, by id. Every other key keeps working. The key stays listed as revoked, with who revoked it and when, and can never be used again. IAM refuses it at once; cloud caches a resolved key for up to 60 seconds, so a request inside that window may still be served. A member revokes their own keys; an org admin revokes any of the org\'s, and revoking someone else\'s is recorded on the audit trail.
419
+ * @summary Revokes exactly one API key, by id.
420
+ * @param {AccountApiDeleteAccountKeysByIdRequest} requestParameters Request parameters.
376
421
  * @param {*} [options] Override http request option.
377
422
  * @throws {RequiredError}
378
423
  * @memberof AccountApi
379
424
  */
380
- deleteAccountKeys(requestParameters?: AccountApiDeleteAccountKeysRequest, options?: RawAxiosRequestConfig): Promise<globalAxios.AxiosResponse<AccountRevokedKey, any, {}>>;
425
+ deleteAccountKeysById(requestParameters: AccountApiDeleteAccountKeysByIdRequest, options?: RawAxiosRequestConfig): Promise<globalAxios.AxiosResponse<AccountApiKey, any, {}>>;
381
426
  /**
382
427
  * Returns the signed-in caller\'s own appearance preference — text size, density and accent — read from their IAM account so it is the same on every device and every Hanzo surface. An unset preference is an empty object. A transient IAM read failure reports the empty preference rather than a 5xx, so a surface applies its published default and never error-toasts on load — the same fail-soft the key read uses.
383
428
  * @summary Returns the signed-in caller\'s own appearance preference — text size, density and accent — read from their IAM account so it is the same on every device and every Hanzo surface.
@@ -413,13 +458,22 @@ export declare class AccountApi extends BaseAPI {
413
458
  */
414
459
  getAccountEmbed(requestParameters?: AccountApiGetAccountEmbedRequest, options?: RawAxiosRequestConfig): Promise<globalAxios.AxiosResponse<AccountEmbedStatusResp, any, {}>>;
415
460
  /**
416
- * Returns the caller\'s own API keys — every type they hold, read AUTHORITATIVELY from IAM rather than from the session claim, which lags a key minted moments ago. No secret material comes back: a secret key is represented by its prefix, and only a publishable key (public by construction) carries its full value. A transient IAM read failure reports an empty set rather than a 5xx, so the page shows the honest empty state and never a fabricated key.
417
- * @summary Returns the caller\'s own API keys — every type they hold, read AUTHORITATIVELY from IAM rather than from the session claim, which lags a key minted moments ago.
461
+ * Returns the API keys the caller may see, newest first: their own, or every key the org holds when the caller administers it. Each is its own credential with its own name, prefix, status, expiry and limit. Revoked keys stay listed. No secret material comes back; a publishable key, which is public by construction, carries its full value.
462
+ * @summary Returns the API keys the caller may see, newest first: their own, or every key the org holds when the caller administers it.
418
463
  * @param {*} [options] Override http request option.
419
464
  * @throws {RequiredError}
420
465
  * @memberof AccountApi
421
466
  */
422
467
  getAccountKeys(options?: RawAxiosRequestConfig): Promise<globalAxios.AxiosResponse<AccountApiKeyList, any, {}>>;
468
+ /**
469
+ * Changes one key\'s name, permissions, budget, rate or expiry. The secret is not reissued: the key in your deployment keeps working, under its new policy. Only the person the key belongs to may edit it, and a revoked key cannot be edited.
470
+ * @summary Changes one key\'s name, permissions, budget, rate or expiry.
471
+ * @param {AccountApiPatchAccountKeysByIdRequest} requestParameters Request parameters.
472
+ * @param {*} [options] Override http request option.
473
+ * @throws {RequiredError}
474
+ * @memberof AccountApi
475
+ */
476
+ patchAccountKeysById(requestParameters: AccountApiPatchAccountKeysByIdRequest, options?: RawAxiosRequestConfig): Promise<globalAxios.AxiosResponse<AccountApiKey, any, {}>>;
423
477
  /**
424
478
  * Stores the caller\'s appearance preference on their IAM account, preserving every other field of the row. The accent is validated as a real colour token before it is stored; an unset or invalid axis is dropped rather than stored.
425
479
  * @summary Stores the caller\'s appearance preference on their IAM account, preserving every other field of the row.
@@ -438,14 +492,14 @@ export declare class AccountApi extends BaseAPI {
438
492
  */
439
493
  postAccountAvatar(options?: RawAxiosRequestConfig): Promise<globalAxios.AxiosResponse<void, any, {}>>;
440
494
  /**
441
- * Creates — or rotates — the caller\'s API key of the requested type and returns it ONCE. A real IAM failure surfaces as 502, never a fabricated key. Rotating is what creating means here: a user holds one key per type, so the endpoint is idempotent by (caller, type) and the superseded credential stops working. Two live secrets for one user would make \"revoke my key\" a lie.
442
- * @summary Creates — or rotates — the caller\'s API key of the requested type and returns it ONCE.
495
+ * Creates a NEW API key and returns its secret ONCE. It never revokes or changes any other key: every key the caller already holds keeps working. The key is filed in the org the caller acts in and names them as its creator. An org holds at most 1,000 live keys; past that the create is refused until one is revoked.
496
+ * @summary Creates a NEW API key and returns its secret ONCE.
443
497
  * @param {AccountApiPostAccountKeysRequest} requestParameters Request parameters.
444
498
  * @param {*} [options] Override http request option.
445
499
  * @throws {RequiredError}
446
500
  * @memberof AccountApi
447
501
  */
448
- postAccountKeys(requestParameters: AccountApiPostAccountKeysRequest, options?: RawAxiosRequestConfig): Promise<globalAxios.AxiosResponse<AccountMintedKey, any, {}>>;
502
+ postAccountKeys(requestParameters: AccountApiPostAccountKeysRequest, options?: RawAxiosRequestConfig): Promise<globalAxios.AxiosResponse<AccountApiKey, any, {}>>;
449
503
  /**
450
504
  * Creates the caller\'s organization. Two flows, keyed on whether the caller already has a home org (mirrors app/onboard/route.ts): - FIRST-RUN (no home org): create + MOVE the user in as admin, so their next JWT carries the new owner and the cloud scopes everything to it. This is the path a fresh OAuth sign-up takes, from the sign-up application\'s org. - ADDITIONAL (owner set): create the org but do NOT move the user — a move changes their IAM owner (stripping a SuperAdmin\'s status + orphaning their current org). They reach the new org via the OrgSwitcher, which re-scopes X-Org-Id without touching IAM membership. A personal-org request from someone who already has an org is meaningless → 409.
451
505
  * @summary Creates the caller\'s organization.