@aexhq/sdk 0.46.5-canary → 0.50.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (337) hide show
  1. package/LICENSE +201 -0
  2. package/NOTICE +38 -0
  3. package/README.md +23 -31
  4. package/dist/client/aex.d.ts +33 -0
  5. package/dist/client/aex.js +98 -0
  6. package/dist/client/aex.js.map +1 -0
  7. package/dist/client/credentials.d.ts +25 -0
  8. package/dist/client/credentials.js +97 -0
  9. package/dist/client/credentials.js.map +1 -0
  10. package/dist/client/routing.d.ts +7 -0
  11. package/dist/client/routing.js +29 -0
  12. package/dist/client/routing.js.map +1 -0
  13. package/dist/downloads/download.d.ts +25 -0
  14. package/dist/downloads/download.js +53 -0
  15. package/dist/downloads/download.js.map +1 -0
  16. package/dist/generated/errors.d.ts +12 -0
  17. package/dist/generated/errors.js +81 -0
  18. package/dist/generated/errors.js.map +1 -0
  19. package/dist/generated/resources.d.ts +730 -0
  20. package/dist/generated/resources.js +606 -0
  21. package/dist/generated/resources.js.map +1 -0
  22. package/dist/generated/routes.d.ts +42 -0
  23. package/dist/generated/routes.js +2101 -0
  24. package/dist/generated/routes.js.map +1 -0
  25. package/dist/index.d.ts +20 -50
  26. package/dist/index.js +11 -62
  27. package/dist/index.js.map +1 -1
  28. package/dist/observations/stream.d.ts +1 -0
  29. package/dist/observations/stream.js +18 -0
  30. package/dist/observations/stream.js.map +1 -0
  31. package/dist/transport/errors.d.ts +60 -0
  32. package/dist/transport/errors.js +107 -0
  33. package/dist/transport/errors.js.map +1 -0
  34. package/dist/transport/pagination.d.ts +8 -0
  35. package/dist/transport/pagination.js +34 -0
  36. package/dist/transport/pagination.js.map +1 -0
  37. package/dist/transport/retry.d.ts +21 -0
  38. package/dist/transport/retry.js +37 -0
  39. package/dist/transport/retry.js.map +1 -0
  40. package/dist/transport/transport.d.ts +25 -0
  41. package/dist/transport/transport.js +28 -0
  42. package/dist/transport/transport.js.map +1 -0
  43. package/package.json +63 -30
  44. package/dist/_contracts/account-operations.d.ts +0 -101
  45. package/dist/_contracts/account-operations.js +0 -242
  46. package/dist/_contracts/account-types.d.ts +0 -461
  47. package/dist/_contracts/account-types.js +0 -1
  48. package/dist/_contracts/api-key.d.ts +0 -61
  49. package/dist/_contracts/api-key.js +0 -101
  50. package/dist/_contracts/api-routes.d.ts +0 -20
  51. package/dist/_contracts/api-routes.js +0 -109
  52. package/dist/_contracts/archive-limits.d.ts +0 -3
  53. package/dist/_contracts/archive-limits.js +0 -23
  54. package/dist/_contracts/asset-authoring.d.ts +0 -22
  55. package/dist/_contracts/asset-authoring.js +0 -106
  56. package/dist/_contracts/asset-bundle.d.ts +0 -64
  57. package/dist/_contracts/asset-bundle.js +0 -263
  58. package/dist/_contracts/asset-upload-helper.d.ts +0 -31
  59. package/dist/_contracts/asset-upload-helper.js +0 -84
  60. package/dist/_contracts/billing-admission.d.ts +0 -29
  61. package/dist/_contracts/billing-admission.js +0 -28
  62. package/dist/_contracts/bundle-manifest.d.ts +0 -89
  63. package/dist/_contracts/bundle-manifest.js +0 -158
  64. package/dist/_contracts/canonical-sha256.d.ts +0 -8
  65. package/dist/_contracts/canonical-sha256.js +0 -8
  66. package/dist/_contracts/connection-ticket.d.ts +0 -22
  67. package/dist/_contracts/connection-ticket.js +0 -54
  68. package/dist/_contracts/continuation-event.d.ts +0 -31
  69. package/dist/_contracts/continuation-event.js +0 -6
  70. package/dist/_contracts/contract-parse-error.d.ts +0 -12
  71. package/dist/_contracts/contract-parse-error.js +0 -51
  72. package/dist/_contracts/error-codes.d.ts +0 -26
  73. package/dist/_contracts/error-codes.js +0 -116
  74. package/dist/_contracts/error-factory.d.ts +0 -32
  75. package/dist/_contracts/error-factory.js +0 -174
  76. package/dist/_contracts/event-envelope.d.ts +0 -471
  77. package/dist/_contracts/event-envelope.js +0 -501
  78. package/dist/_contracts/event-stream-client.d.ts +0 -122
  79. package/dist/_contracts/event-stream-client.js +0 -445
  80. package/dist/_contracts/event-view.d.ts +0 -44
  81. package/dist/_contracts/event-view.js +0 -69
  82. package/dist/_contracts/failure-class.d.ts +0 -29
  83. package/dist/_contracts/failure-class.js +0 -73
  84. package/dist/_contracts/http.d.ts +0 -135
  85. package/dist/_contracts/http.js +0 -434
  86. package/dist/_contracts/ids.d.ts +0 -66
  87. package/dist/_contracts/ids.js +0 -119
  88. package/dist/_contracts/index.d.ts +0 -42
  89. package/dist/_contracts/index.js +0 -52
  90. package/dist/_contracts/internal.d.ts +0 -55
  91. package/dist/_contracts/internal.js +0 -113
  92. package/dist/_contracts/models.d.ts +0 -30
  93. package/dist/_contracts/models.js +0 -28
  94. package/dist/_contracts/operation-core.d.ts +0 -36
  95. package/dist/_contracts/operation-core.js +0 -70
  96. package/dist/_contracts/operations.d.ts +0 -218
  97. package/dist/_contracts/operations.js +0 -1496
  98. package/dist/_contracts/otlp-projection.d.ts +0 -78
  99. package/dist/_contracts/otlp-projection.js +0 -171
  100. package/dist/_contracts/post-hook.d.ts +0 -31
  101. package/dist/_contracts/post-hook.js +0 -61
  102. package/dist/_contracts/provider-fault.d.ts +0 -34
  103. package/dist/_contracts/provider-fault.js +0 -68
  104. package/dist/_contracts/retry-core.d.ts +0 -29
  105. package/dist/_contracts/retry-core.js +0 -79
  106. package/dist/_contracts/runner-event.d.ts +0 -117
  107. package/dist/_contracts/runner-event.js +0 -172
  108. package/dist/_contracts/runtime-kind.d.ts +0 -60
  109. package/dist/_contracts/runtime-kind.js +0 -70
  110. package/dist/_contracts/runtime-manifest.d.ts +0 -121
  111. package/dist/_contracts/runtime-manifest.js +0 -83
  112. package/dist/_contracts/runtime-security-profile.d.ts +0 -26
  113. package/dist/_contracts/runtime-security-profile.js +0 -73
  114. package/dist/_contracts/runtime-sizes.d.ts +0 -104
  115. package/dist/_contracts/runtime-sizes.js +0 -111
  116. package/dist/_contracts/runtime-types.d.ts +0 -618
  117. package/dist/_contracts/runtime-types.js +0 -58
  118. package/dist/_contracts/schemas/asset-bundle.d.ts +0 -70
  119. package/dist/_contracts/schemas/asset-bundle.js +0 -107
  120. package/dist/_contracts/schemas/asset-ref.d.ts +0 -61
  121. package/dist/_contracts/schemas/asset-ref.js +0 -118
  122. package/dist/_contracts/schemas/bundle-manifest.d.ts +0 -66
  123. package/dist/_contracts/schemas/bundle-manifest.js +0 -77
  124. package/dist/_contracts/schemas/index.d.ts +0 -32
  125. package/dist/_contracts/schemas/index.js +0 -30
  126. package/dist/_contracts/schemas/mcp-server.d.ts +0 -99
  127. package/dist/_contracts/schemas/mcp-server.js +0 -209
  128. package/dist/_contracts/schemas/models.d.ts +0 -29
  129. package/dist/_contracts/schemas/models.js +0 -51
  130. package/dist/_contracts/schemas/numeric.d.ts +0 -18
  131. package/dist/_contracts/schemas/numeric.js +0 -28
  132. package/dist/_contracts/schemas/post-hook.d.ts +0 -45
  133. package/dist/_contracts/schemas/post-hook.js +0 -68
  134. package/dist/_contracts/schemas/response-assets.d.ts +0 -75
  135. package/dist/_contracts/schemas/response-assets.js +0 -81
  136. package/dist/_contracts/schemas/response-billing.d.ts +0 -208
  137. package/dist/_contracts/schemas/response-billing.js +0 -139
  138. package/dist/_contracts/schemas/response-common.d.ts +0 -132
  139. package/dist/_contracts/schemas/response-common.js +0 -162
  140. package/dist/_contracts/schemas/response-identity.d.ts +0 -648
  141. package/dist/_contracts/schemas/response-identity.js +0 -131
  142. package/dist/_contracts/schemas/response-mcp-servers.d.ts +0 -51
  143. package/dist/_contracts/schemas/response-mcp-servers.js +0 -32
  144. package/dist/_contracts/schemas/response-secrets.d.ts +0 -50
  145. package/dist/_contracts/schemas/response-secrets.js +0 -32
  146. package/dist/_contracts/schemas/response-sessions-internal.d.ts +0 -200
  147. package/dist/_contracts/schemas/response-sessions-internal.js +0 -142
  148. package/dist/_contracts/schemas/response-sessions.d.ts +0 -1598
  149. package/dist/_contracts/schemas/response-sessions.js +0 -377
  150. package/dist/_contracts/schemas/response-webhooks.d.ts +0 -76
  151. package/dist/_contracts/schemas/response-webhooks.js +0 -42
  152. package/dist/_contracts/schemas/response-workspace.d.ts +0 -225
  153. package/dist/_contracts/schemas/response-workspace.js +0 -99
  154. package/dist/_contracts/schemas/runtime-kind.d.ts +0 -31
  155. package/dist/_contracts/schemas/runtime-kind.js +0 -29
  156. package/dist/_contracts/schemas/runtime-security-profile.d.ts +0 -28
  157. package/dist/_contracts/schemas/runtime-security-profile.js +0 -26
  158. package/dist/_contracts/schemas/runtime-sizes.d.ts +0 -70
  159. package/dist/_contracts/schemas/runtime-sizes.js +0 -127
  160. package/dist/_contracts/schemas/session-limits.d.ts +0 -34
  161. package/dist/_contracts/schemas/session-limits.js +0 -39
  162. package/dist/_contracts/schemas/session-machine.d.ts +0 -23
  163. package/dist/_contracts/schemas/session-machine.js +0 -24
  164. package/dist/_contracts/schemas/session-request-config.d.ts +0 -58
  165. package/dist/_contracts/schemas/session-request-config.js +0 -134
  166. package/dist/_contracts/schemas/session-webhook.d.ts +0 -11
  167. package/dist/_contracts/schemas/session-webhook.js +0 -38
  168. package/dist/_contracts/schemas/side-effect-audit.d.ts +0 -98
  169. package/dist/_contracts/schemas/side-effect-audit.js +0 -102
  170. package/dist/_contracts/schemas/submission-assets.d.ts +0 -117
  171. package/dist/_contracts/schemas/submission-assets.js +0 -147
  172. package/dist/_contracts/schemas/submission-body.d.ts +0 -251
  173. package/dist/_contracts/schemas/submission-body.js +0 -378
  174. package/dist/_contracts/schemas/submission-environment.d.ts +0 -79
  175. package/dist/_contracts/schemas/submission-environment.js +0 -179
  176. package/dist/_contracts/schemas/submission-request.d.ts +0 -158
  177. package/dist/_contracts/schemas/submission-request.js +0 -49
  178. package/dist/_contracts/schemas/submission-secrets.d.ts +0 -47
  179. package/dist/_contracts/schemas/submission-secrets.js +0 -108
  180. package/dist/_contracts/schemas/wire.d.ts +0 -118
  181. package/dist/_contracts/schemas/wire.js +0 -171
  182. package/dist/_contracts/schemas/workspace-resources.d.ts +0 -50
  183. package/dist/_contracts/schemas/workspace-resources.js +0 -87
  184. package/dist/_contracts/sdk-errors.d.ts +0 -212
  185. package/dist/_contracts/sdk-errors.js +0 -313
  186. package/dist/_contracts/sdk-secrets.d.ts +0 -67
  187. package/dist/_contracts/sdk-secrets.js +0 -427
  188. package/dist/_contracts/session-archive.d.ts +0 -16
  189. package/dist/_contracts/session-archive.js +0 -92
  190. package/dist/_contracts/session-artifacts.d.ts +0 -189
  191. package/dist/_contracts/session-artifacts.js +0 -264
  192. package/dist/_contracts/session-config.d.ts +0 -373
  193. package/dist/_contracts/session-config.js +0 -562
  194. package/dist/_contracts/session-cost-types.d.ts +0 -211
  195. package/dist/_contracts/session-cost-types.js +0 -69
  196. package/dist/_contracts/session-cost.d.ts +0 -8
  197. package/dist/_contracts/session-cost.js +0 -582
  198. package/dist/_contracts/session-custody.d.ts +0 -165
  199. package/dist/_contracts/session-custody.js +0 -345
  200. package/dist/_contracts/session-file-query.d.ts +0 -14
  201. package/dist/_contracts/session-file-query.js +0 -178
  202. package/dist/_contracts/session-record.d.ts +0 -112
  203. package/dist/_contracts/session-record.js +0 -165
  204. package/dist/_contracts/session-retention.d.ts +0 -201
  205. package/dist/_contracts/session-retention.js +0 -450
  206. package/dist/_contracts/side-effect-audit.d.ts +0 -126
  207. package/dist/_contracts/side-effect-audit.js +0 -520
  208. package/dist/_contracts/sse.d.ts +0 -74
  209. package/dist/_contracts/sse.js +0 -227
  210. package/dist/_contracts/stable.d.ts +0 -45
  211. package/dist/_contracts/stable.js +0 -62
  212. package/dist/_contracts/status.d.ts +0 -25
  213. package/dist/_contracts/status.js +0 -57
  214. package/dist/_contracts/submission-limits.d.ts +0 -61
  215. package/dist/_contracts/submission-limits.js +0 -60
  216. package/dist/_contracts/submission.d.ts +0 -547
  217. package/dist/_contracts/submission.js +0 -812
  218. package/dist/_contracts/suggest.d.ts +0 -15
  219. package/dist/_contracts/suggest.js +0 -53
  220. package/dist/_contracts/testing/response-bindings.d.ts +0 -45
  221. package/dist/_contracts/testing/response-bindings.js +0 -256
  222. package/dist/_contracts/testing/wire-conformance-entry.d.ts +0 -10
  223. package/dist/_contracts/testing/wire-conformance-entry.js +0 -8
  224. package/dist/_contracts/testing/wire-conformance.d.ts +0 -169
  225. package/dist/_contracts/testing/wire-conformance.js +0 -276
  226. package/dist/_contracts/turn-trace.d.ts +0 -28
  227. package/dist/_contracts/turn-trace.js +0 -1
  228. package/dist/_contracts/unknown-field-error.d.ts +0 -13
  229. package/dist/_contracts/unknown-field-error.js +0 -21
  230. package/dist/_contracts/value-guards.d.ts +0 -20
  231. package/dist/_contracts/value-guards.js +0 -34
  232. package/dist/_contracts/webhook-verify.d.ts +0 -34
  233. package/dist/_contracts/webhook-verify.js +0 -93
  234. package/dist/_contracts/wire-observer.d.ts +0 -49
  235. package/dist/_contracts/wire-observer.js +0 -34
  236. package/dist/_contracts/workflow-status.d.ts +0 -7
  237. package/dist/_contracts/workflow-status.js +0 -43
  238. package/dist/_contracts/workspace-resources.d.ts +0 -98
  239. package/dist/_contracts/workspace-resources.js +0 -39
  240. package/dist/archive-limits.d.ts +0 -1
  241. package/dist/archive-limits.js +0 -2
  242. package/dist/archive-limits.js.map +0 -1
  243. package/dist/asset-upload.d.ts +0 -47
  244. package/dist/asset-upload.js +0 -269
  245. package/dist/asset-upload.js.map +0 -1
  246. package/dist/bundle.d.ts +0 -9
  247. package/dist/bundle.js +0 -20
  248. package/dist/bundle.js.map +0 -1
  249. package/dist/canonical-zip.d.ts +0 -68
  250. package/dist/canonical-zip.js +0 -355
  251. package/dist/canonical-zip.js.map +0 -1
  252. package/dist/cli.mjs +0 -12048
  253. package/dist/cli.mjs.sha256 +0 -1
  254. package/dist/client-types.d.ts +0 -192
  255. package/dist/client-types.js +0 -2
  256. package/dist/client-types.js.map +0 -1
  257. package/dist/client.d.ts +0 -464
  258. package/dist/client.js +0 -1207
  259. package/dist/client.js.map +0 -1
  260. package/dist/event-projection.d.ts +0 -22
  261. package/dist/event-projection.js +0 -380
  262. package/dist/event-projection.js.map +0 -1
  263. package/dist/fetch-archive.d.ts +0 -16
  264. package/dist/fetch-archive.js +0 -252
  265. package/dist/fetch-archive.js.map +0 -1
  266. package/dist/file.d.ts +0 -96
  267. package/dist/file.js +0 -272
  268. package/dist/file.js.map +0 -1
  269. package/dist/instructions.d.ts +0 -20
  270. package/dist/instructions.js +0 -40
  271. package/dist/instructions.js.map +0 -1
  272. package/dist/legacy-session-provider-fault.d.ts +0 -7
  273. package/dist/legacy-session-provider-fault.js +0 -38
  274. package/dist/legacy-session-provider-fault.js.map +0 -1
  275. package/dist/mcp-server.d.ts +0 -84
  276. package/dist/mcp-server.js +0 -117
  277. package/dist/mcp-server.js.map +0 -1
  278. package/dist/node-fs.d.ts +0 -29
  279. package/dist/node-fs.js +0 -19
  280. package/dist/node-fs.js.map +0 -1
  281. package/dist/node-walk.d.ts +0 -69
  282. package/dist/node-walk.js +0 -151
  283. package/dist/node-walk.js.map +0 -1
  284. package/dist/path-basename.d.ts +0 -5
  285. package/dist/path-basename.js +0 -9
  286. package/dist/path-basename.js.map +0 -1
  287. package/dist/retry.d.ts +0 -70
  288. package/dist/retry.js +0 -155
  289. package/dist/retry.js.map +0 -1
  290. package/dist/secret.d.ts +0 -65
  291. package/dist/secret.js +0 -110
  292. package/dist/secret.js.map +0 -1
  293. package/dist/session-validate.d.ts +0 -100
  294. package/dist/session-validate.js +0 -303
  295. package/dist/session-validate.js.map +0 -1
  296. package/dist/skill.d.ts +0 -99
  297. package/dist/skill.js +0 -169
  298. package/dist/skill.js.map +0 -1
  299. package/dist/submission-wire.d.ts +0 -13
  300. package/dist/submission-wire.js +0 -69
  301. package/dist/submission-wire.js.map +0 -1
  302. package/dist/tool.d.ts +0 -41
  303. package/dist/tool.js +0 -76
  304. package/dist/tool.js.map +0 -1
  305. package/dist/version.d.ts +0 -9
  306. package/dist/version.js +0 -10
  307. package/dist/version.js.map +0 -1
  308. package/docs/authentication.md +0 -125
  309. package/docs/billing.md +0 -164
  310. package/docs/cleanup.md +0 -27
  311. package/docs/concepts/agent-tools.md +0 -47
  312. package/docs/concepts/composition.md +0 -60
  313. package/docs/concepts/providers-and-runtimes.md +0 -121
  314. package/docs/concepts/sessions.md +0 -51
  315. package/docs/concepts/subagents.md +0 -35
  316. package/docs/credentials.md +0 -116
  317. package/docs/defaults.md +0 -51
  318. package/docs/errors.md +0 -258
  319. package/docs/events.md +0 -143
  320. package/docs/files.md +0 -130
  321. package/docs/limits-and-quotas.md +0 -114
  322. package/docs/limits.md +0 -51
  323. package/docs/mcp.md +0 -47
  324. package/docs/networking.md +0 -114
  325. package/docs/provider-runtime-capabilities.md +0 -32
  326. package/docs/public-surface.json +0 -73
  327. package/docs/quickstart.md +0 -135
  328. package/docs/release.md +0 -44
  329. package/docs/retries.md +0 -108
  330. package/docs/secrets.md +0 -141
  331. package/docs/session-config.md +0 -51
  332. package/docs/session-record.md +0 -58
  333. package/docs/skills.md +0 -65
  334. package/docs/telemetry.md +0 -66
  335. package/docs/testing.md +0 -35
  336. package/docs/vision-skills.md +0 -94
  337. package/docs/webhooks.md +0 -143
@@ -0,0 +1,606 @@
1
+ // @generated by aex-contract-gen; DO NOT EDIT.
2
+ // Contract digest: sha256:20d11fdca3dff3d75d7502a60456949b23e16df9094593f0c3f619368ab2218e
3
+ /** The `api-keys` operations. */
4
+ export class ApiKeysClient {
5
+ #executor;
6
+ constructor(executor) {
7
+ this.#executor = executor;
8
+ }
9
+ /** `POST /api/api-keys` — Mint a workspace API key whose value is returned once. */
10
+ async apiKeyCreate(params) {
11
+ return this.#executor.execute("api_key_create", {}, { body: params.body, idempotencyKey: params.idempotencyKey });
12
+ }
13
+ /** `DELETE /api/api-keys/{apiKeyId}` — Revoke a workspace API key. */
14
+ async apiKeyRevoke(params) {
15
+ return this.#executor.execute("api_key_revoke", { apiKeyId: params.apiKeyId });
16
+ }
17
+ /** `GET /api/api-keys` — List workspace API key metadata. */
18
+ async apiKeysList(params) {
19
+ return this.#executor.execute("api_keys_list", {}, { query: params.query });
20
+ }
21
+ }
22
+ /** The `auth` operations. */
23
+ export class AuthClient {
24
+ #executor;
25
+ constructor(executor) {
26
+ this.#executor = executor;
27
+ }
28
+ /** `POST /api/auth/sessions` — Exchange a provider authorization code for a browser session. */
29
+ async dashboardSessionCreate(params) {
30
+ return this.#executor.execute("dashboard_session_create", {}, { body: params.body });
31
+ }
32
+ /** `DELETE /api/auth/sessions/current` — Close the browser session the caller presented. */
33
+ async dashboardSessionDelete() {
34
+ return this.#executor.execute("dashboard_session_delete");
35
+ }
36
+ /** `POST /api/auth/device/authorizations` — Begin the CLI device-authorization flow. */
37
+ async deviceAuthorizationCreate(params) {
38
+ return this.#executor.execute("device_authorization_create", {}, { body: params.body, idempotencyKey: params.idempotencyKey });
39
+ }
40
+ /** `POST /api/auth/device/decisions` — Approve or deny a pending device authorization. */
41
+ async deviceDecisionCreate(params) {
42
+ return this.#executor.execute("device_decision_create", {}, { body: params.body });
43
+ }
44
+ /** `POST /api/auth/device/tokens` — Exchange an approved device code for an account token. */
45
+ async deviceTokenCreate(params) {
46
+ return this.#executor.execute("device_token_create", {}, { body: params.body });
47
+ }
48
+ }
49
+ /** The `billing` operations. */
50
+ export class BillingClient {
51
+ #executor;
52
+ constructor(executor) {
53
+ this.#executor = executor;
54
+ }
55
+ /** `GET /api/organizations/{organizationId}/billing/auto-topup-policy` — Read the automatic top-up policy. */
56
+ async billingAutoTopupPolicyGet(params) {
57
+ return this.#executor.execute("billing_auto_topup_policy_get", { organizationId: params.organizationId });
58
+ }
59
+ /** `PUT /api/organizations/{organizationId}/billing/auto-topup-policy` — Replace the automatic top-up policy. */
60
+ async billingAutoTopupPolicyPut(params) {
61
+ return this.#executor.execute("billing_auto_topup_policy_put", { organizationId: params.organizationId }, { body: params.body, idempotencyKey: params.idempotencyKey });
62
+ }
63
+ /** `GET /api/billing/balance` — Read the prepaid balance of an organization. */
64
+ async billingBalanceGet(params = {}) {
65
+ return this.#executor.execute("billing_balance_get", {}, { ...(params.query === undefined ? {} : { query: params.query }) });
66
+ }
67
+ /** `POST /api/organizations/{organizationId}/billing/portal-sessions` — Create a hosted billing portal session. */
68
+ async billingPortalSessionCreate(params) {
69
+ return this.#executor.execute("billing_portal_session_create", { organizationId: params.organizationId }, { body: params.body, idempotencyKey: params.idempotencyKey });
70
+ }
71
+ /** `POST /api/organizations/{organizationId}/billing/statements/{statementId}/downloads` — Mint a download grant for an issued statement. */
72
+ async billingStatementDownloadCreate(params) {
73
+ return this.#executor.execute("billing_statement_download_create", { organizationId: params.organizationId, statementId: params.statementId }, { body: params.body, idempotencyKey: params.idempotencyKey });
74
+ }
75
+ /** `GET /api/organizations/{organizationId}/billing/statements/{statementId}` — Read one immutable issued statement. */
76
+ async billingStatementGet(params) {
77
+ return this.#executor.execute("billing_statement_get", { organizationId: params.organizationId, statementId: params.statementId });
78
+ }
79
+ /** `GET /api/organizations/{organizationId}/billing/statements` — List issued statements, newest first. */
80
+ async billingStatementsList(params) {
81
+ return this.#executor.execute("billing_statements_list", { organizationId: params.organizationId }, { ...(params.query === undefined ? {} : { query: params.query }) });
82
+ }
83
+ /** `POST /api/organizations/{organizationId}/billing/top-up-checkouts` — Create a hosted top-up checkout. */
84
+ async billingTopUpCheckoutCreate(params) {
85
+ return this.#executor.execute("billing_top_up_checkout_create", { organizationId: params.organizationId }, { body: params.body, idempotencyKey: params.idempotencyKey });
86
+ }
87
+ }
88
+ /** The `bootstrap` operations. */
89
+ export class BootstrapClient {
90
+ #executor;
91
+ constructor(executor) {
92
+ this.#executor = executor;
93
+ }
94
+ /** `GET /api/bootstrap` — One bounded read that fills the dashboard shell. */
95
+ async dashboardBootstrapGet() {
96
+ return this.#executor.execute("dashboard_bootstrap_get");
97
+ }
98
+ }
99
+ /** The `identity` operations. */
100
+ export class IdentityClient {
101
+ #executor;
102
+ constructor(executor) {
103
+ this.#executor = executor;
104
+ }
105
+ /** `GET /api/account` — Read the account and its operational state. */
106
+ async accountGet(params) {
107
+ return this.#executor.execute("account_get", {}, { query: params.query });
108
+ }
109
+ }
110
+ /** The `observations` operations. */
111
+ export class ObservationsClient {
112
+ #executor;
113
+ constructor(executor) {
114
+ this.#executor = executor;
115
+ }
116
+ /** `POST /api/observations/events/query` — Query workspace events observations. */
117
+ async observationsEventsQuery(params) {
118
+ return this.#executor.execute("observations_events_query", {}, { body: params.body });
119
+ }
120
+ /** `POST /api/observations/logs/query` — Query workspace logs observations. */
121
+ async observationsLogsQuery(params) {
122
+ return this.#executor.execute("observations_logs_query", {}, { body: params.body });
123
+ }
124
+ /** `POST /api/observations/metrics/aggregate` — Aggregate workspace metric observations. */
125
+ async observationsMetricsAggregate(params) {
126
+ return this.#executor.execute("observations_metrics_aggregate", {}, { body: params.body });
127
+ }
128
+ /** `POST /api/observations/metrics/query` — Query workspace metrics observations. */
129
+ async observationsMetricsQuery(params) {
130
+ return this.#executor.execute("observations_metrics_query", {}, { body: params.body });
131
+ }
132
+ /** `POST /api/observations/spans/query` — Query workspace spans observations. */
133
+ async observationsSpansQuery(params) {
134
+ return this.#executor.execute("observations_spans_query", {}, { body: params.body });
135
+ }
136
+ /** `POST /api/observations/telemetry/query` — Query workspace telemetry observations. */
137
+ async observationsTelemetryQuery(params) {
138
+ return this.#executor.execute("observations_telemetry_query", {}, { body: params.body });
139
+ }
140
+ /** `POST /api/observations/traces/query` — Query workspace traces observations. */
141
+ async observationsTracesQuery(params) {
142
+ return this.#executor.execute("observations_traces_query", {}, { body: params.body });
143
+ }
144
+ /** `POST /api/observations/{sessionId}/events/query` — Query session events observations. */
145
+ async sessionObservationsEventsQuery(params) {
146
+ return this.#executor.execute("session_observations_events_query", { sessionId: params.sessionId }, { body: params.body });
147
+ }
148
+ /** `POST /api/observations/{sessionId}/logs/query` — Query session logs observations. */
149
+ async sessionObservationsLogsQuery(params) {
150
+ return this.#executor.execute("session_observations_logs_query", { sessionId: params.sessionId }, { body: params.body });
151
+ }
152
+ /** `POST /api/observations/{sessionId}/metrics/aggregate` — Aggregate session metric observations. */
153
+ async sessionObservationsMetricsAggregate(params) {
154
+ return this.#executor.execute("session_observations_metrics_aggregate", { sessionId: params.sessionId }, { body: params.body });
155
+ }
156
+ /** `POST /api/observations/{sessionId}/metrics/query` — Query session metrics observations. */
157
+ async sessionObservationsMetricsQuery(params) {
158
+ return this.#executor.execute("session_observations_metrics_query", { sessionId: params.sessionId }, { body: params.body });
159
+ }
160
+ /** `POST /api/observations/{sessionId}/spans/query` — Query session spans observations. */
161
+ async sessionObservationsSpansQuery(params) {
162
+ return this.#executor.execute("session_observations_spans_query", { sessionId: params.sessionId }, { body: params.body });
163
+ }
164
+ /** `POST /api/observations/{sessionId}/telemetry/query` — Query session telemetry observations. */
165
+ async sessionObservationsTelemetryQuery(params) {
166
+ return this.#executor.execute("session_observations_telemetry_query", { sessionId: params.sessionId }, { body: params.body });
167
+ }
168
+ /** `GET /api/observations/{sessionId}/traces/{traceId}` — Read one assembled trace by its W3C identifier. */
169
+ async sessionObservationsTraceGet(params) {
170
+ return this.#executor.execute("session_observations_trace_get", { sessionId: params.sessionId, traceId: params.traceId });
171
+ }
172
+ /** `POST /api/observations/{sessionId}/traces/query` — Query session traces observations. */
173
+ async sessionObservationsTracesQuery(params) {
174
+ return this.#executor.execute("session_observations_traces_query", { sessionId: params.sessionId }, { body: params.body });
175
+ }
176
+ }
177
+ /** The `operations` operations. */
178
+ export class OperationsClient {
179
+ #executor;
180
+ constructor(executor) {
181
+ this.#executor = executor;
182
+ }
183
+ /** `POST /api/operations/{operationId}/cancellations` — Request cancellation of a central operation. */
184
+ async centralOperationCancel(params) {
185
+ return this.#executor.execute("central_operation_cancel", { operationId: params.operationId }, { body: params.body });
186
+ }
187
+ /** `GET /api/operations/{operationId}` — Read one central durable operation. */
188
+ async centralOperationGet(params) {
189
+ return this.#executor.execute("central_operation_get", { operationId: params.operationId });
190
+ }
191
+ /** `GET /api/operations` — List central durable operations for one organization. */
192
+ async centralOperationsList(params) {
193
+ return this.#executor.execute("central_operations_list", {}, { query: params.query });
194
+ }
195
+ /** `POST /api/operations/{operationId}/cancellations` — Request cancellation of a regional operation. */
196
+ async regionalOperationCancel(params) {
197
+ return this.#executor.execute("regional_operation_cancel", { operationId: params.operationId }, { body: params.body });
198
+ }
199
+ /** `GET /api/operations/{operationId}` — Read one regional durable operation. */
200
+ async regionalOperationGet(params) {
201
+ return this.#executor.execute("regional_operation_get", { operationId: params.operationId });
202
+ }
203
+ /** `GET /api/operations` — List regional durable operations. */
204
+ async regionalOperationsList(params = {}) {
205
+ return this.#executor.execute("regional_operations_list", {}, { ...(params.query === undefined ? {} : { query: params.query }) });
206
+ }
207
+ }
208
+ /** The `organizations` operations. */
209
+ export class OrganizationsClient {
210
+ #executor;
211
+ constructor(executor) {
212
+ this.#executor = executor;
213
+ }
214
+ /** `POST /api/invitations/acceptances` — Redeem every pending invitation addressed to the caller's verified email. */
215
+ async invitationAccept(params) {
216
+ return this.#executor.execute("invitation_accept", {}, { body: params.body });
217
+ }
218
+ /** `POST /api/organizations/{organizationId}/invitations` — Invite a person to the organization. */
219
+ async invitationCreate(params) {
220
+ return this.#executor.execute("invitation_create", { organizationId: params.organizationId }, { body: params.body, idempotencyKey: params.idempotencyKey });
221
+ }
222
+ /** `GET /api/organizations/{organizationId}/memberships` — List the memberships of an organization. */
223
+ async membershipsList(params) {
224
+ return this.#executor.execute("memberships_list", { organizationId: params.organizationId }, { ...(params.query === undefined ? {} : { query: params.query }) });
225
+ }
226
+ /** `POST /api/organizations` — Create an organization whose creator becomes owner. */
227
+ async organizationCreate(params) {
228
+ return this.#executor.execute("organization_create", {}, { body: params.body, idempotencyKey: params.idempotencyKey });
229
+ }
230
+ /** `GET /api/organizations/{organizationId}` — Read one organization. */
231
+ async organizationGet(params) {
232
+ return this.#executor.execute("organization_get", { organizationId: params.organizationId });
233
+ }
234
+ /** `GET /api/organizations` — List organizations the caller belongs to. */
235
+ async organizationsList(params = {}) {
236
+ return this.#executor.execute("organizations_list", {}, { ...(params.query === undefined ? {} : { query: params.query }) });
237
+ }
238
+ }
239
+ /** The `otlp` operations. */
240
+ export class OtlpClient {
241
+ #executor;
242
+ constructor(executor) {
243
+ this.#executor = executor;
244
+ }
245
+ /** `POST /api/otlp/v1/logs` — Admit an OTLP logs batch. */
246
+ async otlpLogsIngest(params) {
247
+ return this.#executor.execute("otlp_logs_ingest", {}, { body: params.body, idempotencyKey: params.idempotencyKey });
248
+ }
249
+ /** `POST /api/otlp/v1/metrics` — Admit an OTLP metrics batch. */
250
+ async otlpMetricsIngest(params) {
251
+ return this.#executor.execute("otlp_metrics_ingest", {}, { body: params.body, idempotencyKey: params.idempotencyKey });
252
+ }
253
+ /** `POST /api/otlp/v1/traces` — Admit an OTLP traces batch. */
254
+ async otlpTracesIngest(params) {
255
+ return this.#executor.execute("otlp_traces_ingest", {}, { body: params.body, idempotencyKey: params.idempotencyKey });
256
+ }
257
+ }
258
+ /** The `provider-credentials` operations. */
259
+ export class ProviderCredentialsClient {
260
+ #executor;
261
+ constructor(executor) {
262
+ this.#executor = executor;
263
+ }
264
+ /** `GET /api/workspace/provider-credentials/{providerCredentialId}` — Read one provider-credential binding. */
265
+ async providerCredentialGet(params) {
266
+ return this.#executor.execute("provider_credential_get", { providerCredentialId: params.providerCredentialId });
267
+ }
268
+ /** `POST /api/secrets/provider-credentials` — Register a BYOK provider credential; carries plaintext. */
269
+ async providerCredentialRegister(params) {
270
+ return this.#executor.execute("provider_credential_register", {}, { body: params.body, idempotencyKey: params.idempotencyKey });
271
+ }
272
+ /** `POST /api/workspace/provider-credentials/{providerCredentialId}/revocations` — Revoke a provider-credential binding. */
273
+ async providerCredentialRevoke(params) {
274
+ return this.#executor.execute("provider_credential_revoke", { providerCredentialId: params.providerCredentialId }, { body: params.body, idempotencyKey: params.idempotencyKey });
275
+ }
276
+ /** `GET /api/workspace/provider-credentials` — List provider-credential binding metadata. */
277
+ async providerCredentialsList(params = {}) {
278
+ return this.#executor.execute("provider_credentials_list", {}, { ...(params.query === undefined ? {} : { query: params.query }) });
279
+ }
280
+ }
281
+ /** The `registry` operations. */
282
+ export class RegistryClient {
283
+ #executor;
284
+ constructor(executor) {
285
+ this.#executor = executor;
286
+ }
287
+ /** `DELETE /api/workspace/files/{name}` — Delete one registered entry from files. */
288
+ async registryFilesDelete(params) {
289
+ return this.#executor.execute("registry_files_delete", { name: params.name });
290
+ }
291
+ /** `POST /api/workspace/files/{name}/downloads` — Mint a download grant for a registered file. */
292
+ async registryFilesDownloadCreate(params) {
293
+ return this.#executor.execute("registry_files_download_create", { name: params.name }, { body: params.body, idempotencyKey: params.idempotencyKey });
294
+ }
295
+ /** `GET /api/workspace/files/{name}` — Read one registered entry from files. */
296
+ async registryFilesGet(params) {
297
+ return this.#executor.execute("registry_files_get", { name: params.name });
298
+ }
299
+ /** `GET /api/workspace/files` — List registered files. */
300
+ async registryFilesList(params = {}) {
301
+ return this.#executor.execute("registry_files_list", {}, { ...(params.query === undefined ? {} : { query: params.query }) });
302
+ }
303
+ /** `PUT /api/workspace/files/{name}` — Replace one registered entry in files. */
304
+ async registryFilesPut(params) {
305
+ return this.#executor.execute("registry_files_put", { name: params.name }, { body: params.body, idempotencyKey: params.idempotencyKey });
306
+ }
307
+ /** `DELETE /api/workspace/instructions/{name}` — Delete one registered entry from instructions. */
308
+ async registryInstructionsDelete(params) {
309
+ return this.#executor.execute("registry_instructions_delete", { name: params.name });
310
+ }
311
+ /** `GET /api/workspace/instructions/{name}` — Read one registered entry from instructions. */
312
+ async registryInstructionsGet(params) {
313
+ return this.#executor.execute("registry_instructions_get", { name: params.name });
314
+ }
315
+ /** `GET /api/workspace/instructions` — List registered instructions. */
316
+ async registryInstructionsList(params = {}) {
317
+ return this.#executor.execute("registry_instructions_list", {}, { ...(params.query === undefined ? {} : { query: params.query }) });
318
+ }
319
+ /** `PUT /api/workspace/instructions/{name}` — Replace one registered entry in instructions. */
320
+ async registryInstructionsPut(params) {
321
+ return this.#executor.execute("registry_instructions_put", { name: params.name }, { body: params.body, idempotencyKey: params.idempotencyKey });
322
+ }
323
+ /** `DELETE /api/workspace/mcp-servers/{name}` — Delete one registered entry from MCP servers. */
324
+ async registryMcpServersDelete(params) {
325
+ return this.#executor.execute("registry_mcp_servers_delete", { name: params.name });
326
+ }
327
+ /** `GET /api/workspace/mcp-servers/{name}` — Read one registered entry from MCP servers. */
328
+ async registryMcpServersGet(params) {
329
+ return this.#executor.execute("registry_mcp_servers_get", { name: params.name });
330
+ }
331
+ /** `GET /api/workspace/mcp-servers` — List registered MCP servers. */
332
+ async registryMcpServersList(params = {}) {
333
+ return this.#executor.execute("registry_mcp_servers_list", {}, { ...(params.query === undefined ? {} : { query: params.query }) });
334
+ }
335
+ /** `PUT /api/workspace/mcp-servers/{name}` — Replace one registered entry in MCP servers. */
336
+ async registryMcpServersPut(params) {
337
+ return this.#executor.execute("registry_mcp_servers_put", { name: params.name }, { body: params.body, idempotencyKey: params.idempotencyKey });
338
+ }
339
+ /** `DELETE /api/workspace/skills/{name}` — Delete one registered entry from skills. */
340
+ async registrySkillsDelete(params) {
341
+ return this.#executor.execute("registry_skills_delete", { name: params.name });
342
+ }
343
+ /** `GET /api/workspace/skills/{name}` — Read one registered entry from skills. */
344
+ async registrySkillsGet(params) {
345
+ return this.#executor.execute("registry_skills_get", { name: params.name });
346
+ }
347
+ /** `GET /api/workspace/skills` — List registered skills. */
348
+ async registrySkillsList(params = {}) {
349
+ return this.#executor.execute("registry_skills_list", {}, { ...(params.query === undefined ? {} : { query: params.query }) });
350
+ }
351
+ /** `PUT /api/workspace/skills/{name}` — Replace one registered entry in skills. */
352
+ async registrySkillsPut(params) {
353
+ return this.#executor.execute("registry_skills_put", { name: params.name }, { body: params.body, idempotencyKey: params.idempotencyKey });
354
+ }
355
+ /** `DELETE /api/workspace/tools/{name}` — Delete one registered entry from tools. */
356
+ async registryToolsDelete(params) {
357
+ return this.#executor.execute("registry_tools_delete", { name: params.name });
358
+ }
359
+ /** `GET /api/workspace/tools/{name}` — Read one registered entry from tools. */
360
+ async registryToolsGet(params) {
361
+ return this.#executor.execute("registry_tools_get", { name: params.name });
362
+ }
363
+ /** `GET /api/workspace/tools` — List registered tools. */
364
+ async registryToolsList(params = {}) {
365
+ return this.#executor.execute("registry_tools_list", {}, { ...(params.query === undefined ? {} : { query: params.query }) });
366
+ }
367
+ /** `PUT /api/workspace/tools/{name}` — Replace one registered entry in tools. */
368
+ async registryToolsPut(params) {
369
+ return this.#executor.execute("registry_tools_put", { name: params.name }, { body: params.body, idempotencyKey: params.idempotencyKey });
370
+ }
371
+ }
372
+ /** The `secrets` operations. */
373
+ export class SecretsClient {
374
+ #executor;
375
+ constructor(executor) {
376
+ this.#executor = executor;
377
+ }
378
+ /** `DELETE /api/secrets/{name}` — Delete a secret, affecting future admission only. */
379
+ async secretDelete(params) {
380
+ return this.#executor.execute("secret_delete", { name: params.name });
381
+ }
382
+ /** `GET /api/workspace/secrets/{name}` — Read one secret metadata record. */
383
+ async secretGet(params) {
384
+ return this.#executor.execute("secret_get", { name: params.name });
385
+ }
386
+ /** `PUT /api/secrets/{name}` — Set a secret value for future admission. */
387
+ async secretPut(params) {
388
+ return this.#executor.execute("secret_put", { name: params.name }, { body: params.body, idempotencyKey: params.idempotencyKey });
389
+ }
390
+ /** `POST /api/secrets/{name}/revocations` — Revoke a secret and cancel current custody. */
391
+ async secretRevoke(params) {
392
+ return this.#executor.execute("secret_revoke", { name: params.name }, { body: params.body, idempotencyKey: params.idempotencyKey });
393
+ }
394
+ /** `GET /api/workspace/secrets` — List secret metadata; values are never readable. */
395
+ async secretsList(params = {}) {
396
+ return this.#executor.execute("secrets_list", {}, { ...(params.query === undefined ? {} : { query: params.query }) });
397
+ }
398
+ }
399
+ /** The `sessions` operations. */
400
+ export class SessionsClient {
401
+ #executor;
402
+ constructor(executor) {
403
+ this.#executor = executor;
404
+ }
405
+ /** `GET /api/sessions/{sessionId}` — Read one session, its deleting resource, or its tombstone. */
406
+ async sessionGet(params) {
407
+ return this.#executor.execute("session_get", { sessionId: params.sessionId });
408
+ }
409
+ /** `GET /api/sessions/{sessionId}/messages` — List complete sealed messages in immutable seal-visibility order. */
410
+ async sessionMessagesList(params) {
411
+ return this.#executor.execute("session_messages_list", { sessionId: params.sessionId }, { ...(params.query === undefined ? {} : { query: params.query }) });
412
+ }
413
+ /** `POST /api/sessions/{sessionId}/restores` — Admit the durable restore operation, which is legal only inside the recovery window. */
414
+ async sessionRestore(params) {
415
+ return this.#executor.execute("session_restore", { sessionId: params.sessionId }, { body: params.body, operationId: params.operationId });
416
+ }
417
+ /** `GET /api/sessions/{sessionId}/runs/{runId}` — Read one run. */
418
+ async sessionRunGet(params) {
419
+ return this.#executor.execute("session_run_get", { sessionId: params.sessionId, runId: params.runId });
420
+ }
421
+ /** `GET /api/sessions/{sessionId}/runs` — List the runs of a session. */
422
+ async sessionRunsList(params) {
423
+ return this.#executor.execute("session_runs_list", { sessionId: params.sessionId }, { ...(params.query === undefined ? {} : { query: params.query }) });
424
+ }
425
+ /** `POST /api/sessions/{sessionId}/stops` — Admit the durable stop operation. */
426
+ async sessionStop(params) {
427
+ return this.#executor.execute("session_stop", { sessionId: params.sessionId }, { body: params.body, operationId: params.operationId });
428
+ }
429
+ /** `POST /api/sessions/{sessionId}/trashes` — Admit the durable trash operation, which starts the recovery window. */
430
+ async sessionTrash(params) {
431
+ return this.#executor.execute("session_trash", { sessionId: params.sessionId }, { body: params.body, operationId: params.operationId });
432
+ }
433
+ /** `GET /api/sessions` — List sessions in the workspace. */
434
+ async sessionsList(params = {}) {
435
+ return this.#executor.execute("sessions_list", {}, { ...(params.query === undefined ? {} : { query: params.query }) });
436
+ }
437
+ }
438
+ /** The `telemetry-lifecycle` operations. */
439
+ export class TelemetryLifecycleClient {
440
+ #executor;
441
+ constructor(executor) {
442
+ this.#executor = executor;
443
+ }
444
+ /** `POST /api/observations/{sessionId}/telemetry/exports/{exportId}/downloads` — Mint a download grant for a ready session telemetry export. */
445
+ async sessionTelemetryExportDownloadCreate(params) {
446
+ return this.#executor.execute("session_telemetry_export_download_create", { sessionId: params.sessionId, exportId: params.exportId }, { body: params.body, idempotencyKey: params.idempotencyKey });
447
+ }
448
+ /** `GET /api/observations/{sessionId}/telemetry/exports/{exportId}` — Read one session telemetry export record. */
449
+ async sessionTelemetryExportGet(params) {
450
+ return this.#executor.execute("session_telemetry_export_get", { sessionId: params.sessionId, exportId: params.exportId });
451
+ }
452
+ /** `POST /api/observations/{sessionId}/telemetry/exports/{exportId}/revocations` — Revoke a session telemetry export and its outstanding grants. */
453
+ async sessionTelemetryExportRevoke(params) {
454
+ return this.#executor.execute("session_telemetry_export_revoke", { sessionId: params.sessionId, exportId: params.exportId }, { body: params.body, idempotencyKey: params.idempotencyKey });
455
+ }
456
+ /** `GET /api/observations/{sessionId}/telemetry/gaps/{gapId}` — Read one recorded session telemetry gap. */
457
+ async sessionTelemetryGapGet(params) {
458
+ return this.#executor.execute("session_telemetry_gap_get", { sessionId: params.sessionId, gapId: params.gapId });
459
+ }
460
+ /** `POST /api/observations/{sessionId}/telemetry/gaps/query` — Query recorded session telemetry gaps. */
461
+ async sessionTelemetryGapsQuery(params) {
462
+ return this.#executor.execute("session_telemetry_gaps_query", { sessionId: params.sessionId }, { body: params.body });
463
+ }
464
+ /** `POST /api/observations/telemetry/exports/{exportId}/downloads` — Mint a download grant for a ready telemetry export. */
465
+ async telemetryExportDownloadCreate(params) {
466
+ return this.#executor.execute("telemetry_export_download_create", { exportId: params.exportId }, { body: params.body, idempotencyKey: params.idempotencyKey });
467
+ }
468
+ /** `GET /api/observations/telemetry/exports/{exportId}` — Read one telemetry export record. */
469
+ async telemetryExportGet(params) {
470
+ return this.#executor.execute("telemetry_export_get", { exportId: params.exportId });
471
+ }
472
+ /** `POST /api/observations/telemetry/exports/{exportId}/revocations` — Revoke a telemetry export and its outstanding grants. */
473
+ async telemetryExportRevoke(params) {
474
+ return this.#executor.execute("telemetry_export_revoke", { exportId: params.exportId }, { body: params.body, idempotencyKey: params.idempotencyKey });
475
+ }
476
+ /** `GET /api/observations/telemetry/gaps/{gapId}` — Read one recorded telemetry gap. */
477
+ async telemetryGapGet(params) {
478
+ return this.#executor.execute("telemetry_gap_get", { gapId: params.gapId });
479
+ }
480
+ /** `POST /api/observations/telemetry/gaps/query` — Query recorded workspace telemetry gaps. */
481
+ async telemetryGapsQuery(params) {
482
+ return this.#executor.execute("telemetry_gaps_query", {}, { body: params.body });
483
+ }
484
+ }
485
+ /** The `uploads` operations. */
486
+ export class UploadsClient {
487
+ #executor;
488
+ constructor(executor) {
489
+ this.#executor = executor;
490
+ }
491
+ /** `DELETE /api/workspace/uploads/{uploadId}` — Abort a staged upload. */
492
+ async uploadAbort(params) {
493
+ return this.#executor.execute("upload_abort", { uploadId: params.uploadId });
494
+ }
495
+ /** `POST /api/workspace/uploads/{uploadId}/completion` — Complete a staged upload. */
496
+ async uploadComplete(params) {
497
+ return this.#executor.execute("upload_complete", { uploadId: params.uploadId }, { body: params.body, idempotencyKey: params.idempotencyKey });
498
+ }
499
+ /** `POST /api/workspace/uploads` — Stage a large registered-resource value. */
500
+ async uploadCreate(params) {
501
+ return this.#executor.execute("upload_create", {}, { body: params.body, idempotencyKey: params.idempotencyKey });
502
+ }
503
+ /** `POST /api/workspace/uploads/{uploadId}/parts` — Mint presigned PUT grants for the named parts. */
504
+ async uploadPartsGrant(params) {
505
+ return this.#executor.execute("upload_parts_grant", { uploadId: params.uploadId }, { body: params.body });
506
+ }
507
+ }
508
+ /** The `usage` operations. */
509
+ export class UsageClient {
510
+ #executor;
511
+ constructor(executor) {
512
+ this.#executor = executor;
513
+ }
514
+ /** `POST /api/billing/usage/query` — Query rated usage for this workspace. */
515
+ async usageQuery(params) {
516
+ return this.#executor.execute("usage_query", {}, { ...(params.query === undefined ? {} : { query: params.query }), body: params.body });
517
+ }
518
+ }
519
+ /** The `workspace` operations. */
520
+ export class WorkspaceClient {
521
+ #executor;
522
+ constructor(executor) {
523
+ this.#executor = executor;
524
+ }
525
+ /** `GET /api/workspace` — Read the workspace this credential is pinned to. */
526
+ async workspaceCurrentGet() {
527
+ return this.#executor.execute("workspace_current_get");
528
+ }
529
+ /** `GET /api/workspace/limits/{limitId}` — Read one effective workspace safety limit. */
530
+ async workspaceLimitGet(params) {
531
+ return this.#executor.execute("workspace_limit_get", { limitId: params.limitId });
532
+ }
533
+ /** `GET /api/workspace/limits` — List the effective workspace safety limits. The registry is closed and complete, so the whole set is one page and no continuation is ever minted. */
534
+ async workspaceLimitsList() {
535
+ return this.#executor.execute("workspace_limits_list");
536
+ }
537
+ }
538
+ /** The `workspaces` operations. */
539
+ export class WorkspacesClient {
540
+ #executor;
541
+ constructor(executor) {
542
+ this.#executor = executor;
543
+ }
544
+ /** `POST /api/workspaces` — Create a region-pinned workspace. */
545
+ async workspaceCreate(params) {
546
+ return this.#executor.execute("workspace_create", {}, { body: params.body, idempotencyKey: params.idempotencyKey });
547
+ }
548
+ /** `POST /api/workspaces/{workspaceId}/deletions` — Admit the global workspace-deletion operation. */
549
+ async workspaceDelete(params) {
550
+ return this.#executor.execute("workspace_delete", { workspaceId: params.workspaceId }, { body: params.body, operationId: params.operationId });
551
+ }
552
+ /** `GET /api/workspaces/{workspaceId}` — Read one workspace. */
553
+ async workspaceGet(params) {
554
+ return this.#executor.execute("workspace_get", { workspaceId: params.workspaceId });
555
+ }
556
+ /** `GET /api/workspaces` — List workspaces the caller can reach. */
557
+ async workspacesList(params = {}) {
558
+ return this.#executor.execute("workspaces_list", {}, { ...(params.query === undefined ? {} : { query: params.query }) });
559
+ }
560
+ }
561
+ /**
562
+ * The resource namespaces the client exposes.
563
+ *
564
+ * The client extends this rather than listing the namespaces itself, so a
565
+ * fragment whose last served operation lands or leaves cannot be forgotten
566
+ * in the hand-written half.
567
+ */
568
+ export class GeneratedResources {
569
+ /** The `api-keys` operations. */
570
+ apiKeys = new ApiKeysClient(this);
571
+ /** The `auth` operations. */
572
+ auth = new AuthClient(this);
573
+ /** The `billing` operations. */
574
+ billing = new BillingClient(this);
575
+ /** The `bootstrap` operations. */
576
+ bootstrap = new BootstrapClient(this);
577
+ /** The `identity` operations. */
578
+ identity = new IdentityClient(this);
579
+ /** The `observations` operations. */
580
+ observations = new ObservationsClient(this);
581
+ /** The `operations` operations. */
582
+ operations = new OperationsClient(this);
583
+ /** The `organizations` operations. */
584
+ organizations = new OrganizationsClient(this);
585
+ /** The `otlp` operations. */
586
+ otlp = new OtlpClient(this);
587
+ /** The `provider-credentials` operations. */
588
+ providerCredentials = new ProviderCredentialsClient(this);
589
+ /** The `registry` operations. */
590
+ registry = new RegistryClient(this);
591
+ /** The `secrets` operations. */
592
+ secrets = new SecretsClient(this);
593
+ /** The `sessions` operations. */
594
+ sessions = new SessionsClient(this);
595
+ /** The `telemetry-lifecycle` operations. */
596
+ telemetryLifecycle = new TelemetryLifecycleClient(this);
597
+ /** The `uploads` operations. */
598
+ uploads = new UploadsClient(this);
599
+ /** The `usage` operations. */
600
+ usage = new UsageClient(this);
601
+ /** The `workspace` operations. */
602
+ workspace = new WorkspaceClient(this);
603
+ /** The `workspaces` operations. */
604
+ workspaces = new WorkspacesClient(this);
605
+ }
606
+ //# sourceMappingURL=resources.js.map