@aexhq/sdk 0.46.4-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,730 @@
1
+ /**
2
+ * The typed resource surface, one method per served operation.
3
+ *
4
+ * Nothing here is hand-maintained. A route that leaves the deferral ledger
5
+ * gains its method in the same regeneration that publishes it, and a route
6
+ * that enters the ledger loses it, so the published client surface is exactly
7
+ * what the platform answers.
8
+ */
9
+ import type { RouteId } from "./routes.js";
10
+ /** The one client capability every generated resource method needs. */
11
+ export interface ResourceExecutor {
12
+ execute<T>(routeId: RouteId, bindings?: Readonly<Record<string, string>>, options?: ExecuteOptions): Promise<T>;
13
+ }
14
+ /** Everything beyond the path a single call can carry. */
15
+ export interface ExecuteOptions {
16
+ /** Query parameters, already rendered as wire strings. */
17
+ readonly query?: Readonly<Record<string, string>>;
18
+ /** The request body, encoded as canonical JSON by the client. */
19
+ readonly body?: unknown;
20
+ /** `Idempotency-Key`, for a route that requires one. */
21
+ readonly idempotencyKey?: string;
22
+ /** `Aex-Operation-Id`, for a route that admits a durable operation. */
23
+ readonly operationId?: string;
24
+ }
25
+ /** The `api-keys` operations. */
26
+ export declare class ApiKeysClient {
27
+ #private;
28
+ constructor(executor: ResourceExecutor);
29
+ /** `POST /api/api-keys` — Mint a workspace API key whose value is returned once. */
30
+ apiKeyCreate<T = unknown>(params: {
31
+ readonly body: unknown;
32
+ readonly idempotencyKey: string;
33
+ }): Promise<T>;
34
+ /** `DELETE /api/api-keys/{apiKeyId}` — Revoke a workspace API key. */
35
+ apiKeyRevoke<T = unknown>(params: {
36
+ readonly apiKeyId: string;
37
+ }): Promise<T>;
38
+ /** `GET /api/api-keys` — List workspace API key metadata. */
39
+ apiKeysList<T = unknown>(params: {
40
+ readonly query: {
41
+ readonly cursor?: string;
42
+ readonly limit?: string;
43
+ readonly workspaceId: string;
44
+ };
45
+ }): Promise<T>;
46
+ }
47
+ /** The `auth` operations. */
48
+ export declare class AuthClient {
49
+ #private;
50
+ constructor(executor: ResourceExecutor);
51
+ /** `POST /api/auth/sessions` — Exchange a provider authorization code for a browser session. */
52
+ dashboardSessionCreate<T = unknown>(params: {
53
+ readonly body: unknown;
54
+ }): Promise<T>;
55
+ /** `DELETE /api/auth/sessions/current` — Close the browser session the caller presented. */
56
+ dashboardSessionDelete<T = unknown>(): Promise<T>;
57
+ /** `POST /api/auth/device/authorizations` — Begin the CLI device-authorization flow. */
58
+ deviceAuthorizationCreate<T = unknown>(params: {
59
+ readonly body: unknown;
60
+ readonly idempotencyKey: string;
61
+ }): Promise<T>;
62
+ /** `POST /api/auth/device/decisions` — Approve or deny a pending device authorization. */
63
+ deviceDecisionCreate<T = unknown>(params: {
64
+ readonly body: unknown;
65
+ }): Promise<T>;
66
+ /** `POST /api/auth/device/tokens` — Exchange an approved device code for an account token. */
67
+ deviceTokenCreate<T = unknown>(params: {
68
+ readonly body: unknown;
69
+ }): Promise<T>;
70
+ }
71
+ /** The `billing` operations. */
72
+ export declare class BillingClient {
73
+ #private;
74
+ constructor(executor: ResourceExecutor);
75
+ /** `GET /api/organizations/{organizationId}/billing/auto-topup-policy` — Read the automatic top-up policy. */
76
+ billingAutoTopupPolicyGet<T = unknown>(params: {
77
+ readonly organizationId: string;
78
+ }): Promise<T>;
79
+ /** `PUT /api/organizations/{organizationId}/billing/auto-topup-policy` — Replace the automatic top-up policy. */
80
+ billingAutoTopupPolicyPut<T = unknown>(params: {
81
+ readonly organizationId: string;
82
+ readonly body: unknown;
83
+ readonly idempotencyKey: string;
84
+ }): Promise<T>;
85
+ /** `GET /api/billing/balance` — Read the prepaid balance of an organization. */
86
+ billingBalanceGet<T = unknown>(params?: {
87
+ readonly query?: {
88
+ readonly organizationId?: string;
89
+ };
90
+ }): Promise<T>;
91
+ /** `POST /api/organizations/{organizationId}/billing/portal-sessions` — Create a hosted billing portal session. */
92
+ billingPortalSessionCreate<T = unknown>(params: {
93
+ readonly organizationId: string;
94
+ readonly body: unknown;
95
+ readonly idempotencyKey: string;
96
+ }): Promise<T>;
97
+ /** `POST /api/organizations/{organizationId}/billing/statements/{statementId}/downloads` — Mint a download grant for an issued statement. */
98
+ billingStatementDownloadCreate<T = unknown>(params: {
99
+ readonly organizationId: string;
100
+ readonly statementId: string;
101
+ readonly body: unknown;
102
+ readonly idempotencyKey: string;
103
+ }): Promise<T>;
104
+ /** `GET /api/organizations/{organizationId}/billing/statements/{statementId}` — Read one immutable issued statement. */
105
+ billingStatementGet<T = unknown>(params: {
106
+ readonly organizationId: string;
107
+ readonly statementId: string;
108
+ }): Promise<T>;
109
+ /** `GET /api/organizations/{organizationId}/billing/statements` — List issued statements, newest first. */
110
+ billingStatementsList<T = unknown>(params: {
111
+ readonly organizationId: string;
112
+ readonly query?: {
113
+ readonly cursor?: string;
114
+ readonly limit?: string;
115
+ };
116
+ }): Promise<T>;
117
+ /** `POST /api/organizations/{organizationId}/billing/top-up-checkouts` — Create a hosted top-up checkout. */
118
+ billingTopUpCheckoutCreate<T = unknown>(params: {
119
+ readonly organizationId: string;
120
+ readonly body: unknown;
121
+ readonly idempotencyKey: string;
122
+ }): Promise<T>;
123
+ }
124
+ /** The `bootstrap` operations. */
125
+ export declare class BootstrapClient {
126
+ #private;
127
+ constructor(executor: ResourceExecutor);
128
+ /** `GET /api/bootstrap` — One bounded read that fills the dashboard shell. */
129
+ dashboardBootstrapGet<T = unknown>(): Promise<T>;
130
+ }
131
+ /** The `identity` operations. */
132
+ export declare class IdentityClient {
133
+ #private;
134
+ constructor(executor: ResourceExecutor);
135
+ /** `GET /api/account` — Read the account and its operational state. */
136
+ accountGet<T = unknown>(params: {
137
+ readonly query: {
138
+ readonly organizationId: string;
139
+ };
140
+ }): Promise<T>;
141
+ }
142
+ /** The `observations` operations. */
143
+ export declare class ObservationsClient {
144
+ #private;
145
+ constructor(executor: ResourceExecutor);
146
+ /** `POST /api/observations/events/query` — Query workspace events observations. */
147
+ observationsEventsQuery<T = unknown>(params: {
148
+ readonly body: unknown;
149
+ }): Promise<T>;
150
+ /** `POST /api/observations/logs/query` — Query workspace logs observations. */
151
+ observationsLogsQuery<T = unknown>(params: {
152
+ readonly body: unknown;
153
+ }): Promise<T>;
154
+ /** `POST /api/observations/metrics/aggregate` — Aggregate workspace metric observations. */
155
+ observationsMetricsAggregate<T = unknown>(params: {
156
+ readonly body: unknown;
157
+ }): Promise<T>;
158
+ /** `POST /api/observations/metrics/query` — Query workspace metrics observations. */
159
+ observationsMetricsQuery<T = unknown>(params: {
160
+ readonly body: unknown;
161
+ }): Promise<T>;
162
+ /** `POST /api/observations/spans/query` — Query workspace spans observations. */
163
+ observationsSpansQuery<T = unknown>(params: {
164
+ readonly body: unknown;
165
+ }): Promise<T>;
166
+ /** `POST /api/observations/telemetry/query` — Query workspace telemetry observations. */
167
+ observationsTelemetryQuery<T = unknown>(params: {
168
+ readonly body: unknown;
169
+ }): Promise<T>;
170
+ /** `POST /api/observations/traces/query` — Query workspace traces observations. */
171
+ observationsTracesQuery<T = unknown>(params: {
172
+ readonly body: unknown;
173
+ }): Promise<T>;
174
+ /** `POST /api/observations/{sessionId}/events/query` — Query session events observations. */
175
+ sessionObservationsEventsQuery<T = unknown>(params: {
176
+ readonly sessionId: string;
177
+ readonly body: unknown;
178
+ }): Promise<T>;
179
+ /** `POST /api/observations/{sessionId}/logs/query` — Query session logs observations. */
180
+ sessionObservationsLogsQuery<T = unknown>(params: {
181
+ readonly sessionId: string;
182
+ readonly body: unknown;
183
+ }): Promise<T>;
184
+ /** `POST /api/observations/{sessionId}/metrics/aggregate` — Aggregate session metric observations. */
185
+ sessionObservationsMetricsAggregate<T = unknown>(params: {
186
+ readonly sessionId: string;
187
+ readonly body: unknown;
188
+ }): Promise<T>;
189
+ /** `POST /api/observations/{sessionId}/metrics/query` — Query session metrics observations. */
190
+ sessionObservationsMetricsQuery<T = unknown>(params: {
191
+ readonly sessionId: string;
192
+ readonly body: unknown;
193
+ }): Promise<T>;
194
+ /** `POST /api/observations/{sessionId}/spans/query` — Query session spans observations. */
195
+ sessionObservationsSpansQuery<T = unknown>(params: {
196
+ readonly sessionId: string;
197
+ readonly body: unknown;
198
+ }): Promise<T>;
199
+ /** `POST /api/observations/{sessionId}/telemetry/query` — Query session telemetry observations. */
200
+ sessionObservationsTelemetryQuery<T = unknown>(params: {
201
+ readonly sessionId: string;
202
+ readonly body: unknown;
203
+ }): Promise<T>;
204
+ /** `GET /api/observations/{sessionId}/traces/{traceId}` — Read one assembled trace by its W3C identifier. */
205
+ sessionObservationsTraceGet<T = unknown>(params: {
206
+ readonly sessionId: string;
207
+ readonly traceId: string;
208
+ }): Promise<T>;
209
+ /** `POST /api/observations/{sessionId}/traces/query` — Query session traces observations. */
210
+ sessionObservationsTracesQuery<T = unknown>(params: {
211
+ readonly sessionId: string;
212
+ readonly body: unknown;
213
+ }): Promise<T>;
214
+ }
215
+ /** The `operations` operations. */
216
+ export declare class OperationsClient {
217
+ #private;
218
+ constructor(executor: ResourceExecutor);
219
+ /** `POST /api/operations/{operationId}/cancellations` — Request cancellation of a central operation. */
220
+ centralOperationCancel<T = unknown>(params: {
221
+ readonly operationId: string;
222
+ readonly body: unknown;
223
+ }): Promise<T>;
224
+ /** `GET /api/operations/{operationId}` — Read one central durable operation. */
225
+ centralOperationGet<T = unknown>(params: {
226
+ readonly operationId: string;
227
+ }): Promise<T>;
228
+ /** `GET /api/operations` — List central durable operations for one organization. */
229
+ centralOperationsList<T = unknown>(params: {
230
+ readonly query: {
231
+ readonly cursor?: string;
232
+ readonly kind?: string;
233
+ readonly limit?: string;
234
+ readonly organizationId: string;
235
+ readonly status?: string;
236
+ };
237
+ }): Promise<T>;
238
+ /** `POST /api/operations/{operationId}/cancellations` — Request cancellation of a regional operation. */
239
+ regionalOperationCancel<T = unknown>(params: {
240
+ readonly operationId: string;
241
+ readonly body: unknown;
242
+ }): Promise<T>;
243
+ /** `GET /api/operations/{operationId}` — Read one regional durable operation. */
244
+ regionalOperationGet<T = unknown>(params: {
245
+ readonly operationId: string;
246
+ }): Promise<T>;
247
+ /** `GET /api/operations` — List regional durable operations. */
248
+ regionalOperationsList<T = unknown>(params?: {
249
+ readonly query?: {
250
+ readonly cursor?: string;
251
+ readonly kind?: string;
252
+ readonly limit?: string;
253
+ readonly sessionId?: string;
254
+ readonly status?: string;
255
+ };
256
+ }): Promise<T>;
257
+ }
258
+ /** The `organizations` operations. */
259
+ export declare class OrganizationsClient {
260
+ #private;
261
+ constructor(executor: ResourceExecutor);
262
+ /** `POST /api/invitations/acceptances` — Redeem every pending invitation addressed to the caller's verified email. */
263
+ invitationAccept<T = unknown>(params: {
264
+ readonly body: unknown;
265
+ }): Promise<T>;
266
+ /** `POST /api/organizations/{organizationId}/invitations` — Invite a person to the organization. */
267
+ invitationCreate<T = unknown>(params: {
268
+ readonly organizationId: string;
269
+ readonly body: unknown;
270
+ readonly idempotencyKey: string;
271
+ }): Promise<T>;
272
+ /** `GET /api/organizations/{organizationId}/memberships` — List the memberships of an organization. */
273
+ membershipsList<T = unknown>(params: {
274
+ readonly organizationId: string;
275
+ readonly query?: {
276
+ readonly cursor?: string;
277
+ readonly limit?: string;
278
+ };
279
+ }): Promise<T>;
280
+ /** `POST /api/organizations` — Create an organization whose creator becomes owner. */
281
+ organizationCreate<T = unknown>(params: {
282
+ readonly body: unknown;
283
+ readonly idempotencyKey: string;
284
+ }): Promise<T>;
285
+ /** `GET /api/organizations/{organizationId}` — Read one organization. */
286
+ organizationGet<T = unknown>(params: {
287
+ readonly organizationId: string;
288
+ }): Promise<T>;
289
+ /** `GET /api/organizations` — List organizations the caller belongs to. */
290
+ organizationsList<T = unknown>(params?: {
291
+ readonly query?: {
292
+ readonly cursor?: string;
293
+ readonly limit?: string;
294
+ };
295
+ }): Promise<T>;
296
+ }
297
+ /** The `otlp` operations. */
298
+ export declare class OtlpClient {
299
+ #private;
300
+ constructor(executor: ResourceExecutor);
301
+ /** `POST /api/otlp/v1/logs` — Admit an OTLP logs batch. */
302
+ otlpLogsIngest<T = unknown>(params: {
303
+ readonly body: unknown;
304
+ readonly idempotencyKey: string;
305
+ }): Promise<T>;
306
+ /** `POST /api/otlp/v1/metrics` — Admit an OTLP metrics batch. */
307
+ otlpMetricsIngest<T = unknown>(params: {
308
+ readonly body: unknown;
309
+ readonly idempotencyKey: string;
310
+ }): Promise<T>;
311
+ /** `POST /api/otlp/v1/traces` — Admit an OTLP traces batch. */
312
+ otlpTracesIngest<T = unknown>(params: {
313
+ readonly body: unknown;
314
+ readonly idempotencyKey: string;
315
+ }): Promise<T>;
316
+ }
317
+ /** The `provider-credentials` operations. */
318
+ export declare class ProviderCredentialsClient {
319
+ #private;
320
+ constructor(executor: ResourceExecutor);
321
+ /** `GET /api/workspace/provider-credentials/{providerCredentialId}` — Read one provider-credential binding. */
322
+ providerCredentialGet<T = unknown>(params: {
323
+ readonly providerCredentialId: string;
324
+ }): Promise<T>;
325
+ /** `POST /api/secrets/provider-credentials` — Register a BYOK provider credential; carries plaintext. */
326
+ providerCredentialRegister<T = unknown>(params: {
327
+ readonly body: unknown;
328
+ readonly idempotencyKey: string;
329
+ }): Promise<T>;
330
+ /** `POST /api/workspace/provider-credentials/{providerCredentialId}/revocations` — Revoke a provider-credential binding. */
331
+ providerCredentialRevoke<T = unknown>(params: {
332
+ readonly providerCredentialId: string;
333
+ readonly body: unknown;
334
+ readonly idempotencyKey: string;
335
+ }): Promise<T>;
336
+ /** `GET /api/workspace/provider-credentials` — List provider-credential binding metadata. */
337
+ providerCredentialsList<T = unknown>(params?: {
338
+ readonly query?: {
339
+ readonly cursor?: string;
340
+ readonly limit?: string;
341
+ readonly provider?: string;
342
+ };
343
+ }): Promise<T>;
344
+ }
345
+ /** The `registry` operations. */
346
+ export declare class RegistryClient {
347
+ #private;
348
+ constructor(executor: ResourceExecutor);
349
+ /** `DELETE /api/workspace/files/{name}` — Delete one registered entry from files. */
350
+ registryFilesDelete<T = unknown>(params: {
351
+ readonly name: string;
352
+ }): Promise<T>;
353
+ /** `POST /api/workspace/files/{name}/downloads` — Mint a download grant for a registered file. */
354
+ registryFilesDownloadCreate<T = unknown>(params: {
355
+ readonly name: string;
356
+ readonly body: unknown;
357
+ readonly idempotencyKey: string;
358
+ }): Promise<T>;
359
+ /** `GET /api/workspace/files/{name}` — Read one registered entry from files. */
360
+ registryFilesGet<T = unknown>(params: {
361
+ readonly name: string;
362
+ }): Promise<T>;
363
+ /** `GET /api/workspace/files` — List registered files. */
364
+ registryFilesList<T = unknown>(params?: {
365
+ readonly query?: {
366
+ readonly cursor?: string;
367
+ readonly limit?: string;
368
+ };
369
+ }): Promise<T>;
370
+ /** `PUT /api/workspace/files/{name}` — Replace one registered entry in files. */
371
+ registryFilesPut<T = unknown>(params: {
372
+ readonly name: string;
373
+ readonly body: unknown;
374
+ readonly idempotencyKey: string;
375
+ }): Promise<T>;
376
+ /** `DELETE /api/workspace/instructions/{name}` — Delete one registered entry from instructions. */
377
+ registryInstructionsDelete<T = unknown>(params: {
378
+ readonly name: string;
379
+ }): Promise<T>;
380
+ /** `GET /api/workspace/instructions/{name}` — Read one registered entry from instructions. */
381
+ registryInstructionsGet<T = unknown>(params: {
382
+ readonly name: string;
383
+ }): Promise<T>;
384
+ /** `GET /api/workspace/instructions` — List registered instructions. */
385
+ registryInstructionsList<T = unknown>(params?: {
386
+ readonly query?: {
387
+ readonly cursor?: string;
388
+ readonly limit?: string;
389
+ };
390
+ }): Promise<T>;
391
+ /** `PUT /api/workspace/instructions/{name}` — Replace one registered entry in instructions. */
392
+ registryInstructionsPut<T = unknown>(params: {
393
+ readonly name: string;
394
+ readonly body: unknown;
395
+ readonly idempotencyKey: string;
396
+ }): Promise<T>;
397
+ /** `DELETE /api/workspace/mcp-servers/{name}` — Delete one registered entry from MCP servers. */
398
+ registryMcpServersDelete<T = unknown>(params: {
399
+ readonly name: string;
400
+ }): Promise<T>;
401
+ /** `GET /api/workspace/mcp-servers/{name}` — Read one registered entry from MCP servers. */
402
+ registryMcpServersGet<T = unknown>(params: {
403
+ readonly name: string;
404
+ }): Promise<T>;
405
+ /** `GET /api/workspace/mcp-servers` — List registered MCP servers. */
406
+ registryMcpServersList<T = unknown>(params?: {
407
+ readonly query?: {
408
+ readonly cursor?: string;
409
+ readonly limit?: string;
410
+ };
411
+ }): Promise<T>;
412
+ /** `PUT /api/workspace/mcp-servers/{name}` — Replace one registered entry in MCP servers. */
413
+ registryMcpServersPut<T = unknown>(params: {
414
+ readonly name: string;
415
+ readonly body: unknown;
416
+ readonly idempotencyKey: string;
417
+ }): Promise<T>;
418
+ /** `DELETE /api/workspace/skills/{name}` — Delete one registered entry from skills. */
419
+ registrySkillsDelete<T = unknown>(params: {
420
+ readonly name: string;
421
+ }): Promise<T>;
422
+ /** `GET /api/workspace/skills/{name}` — Read one registered entry from skills. */
423
+ registrySkillsGet<T = unknown>(params: {
424
+ readonly name: string;
425
+ }): Promise<T>;
426
+ /** `GET /api/workspace/skills` — List registered skills. */
427
+ registrySkillsList<T = unknown>(params?: {
428
+ readonly query?: {
429
+ readonly cursor?: string;
430
+ readonly limit?: string;
431
+ };
432
+ }): Promise<T>;
433
+ /** `PUT /api/workspace/skills/{name}` — Replace one registered entry in skills. */
434
+ registrySkillsPut<T = unknown>(params: {
435
+ readonly name: string;
436
+ readonly body: unknown;
437
+ readonly idempotencyKey: string;
438
+ }): Promise<T>;
439
+ /** `DELETE /api/workspace/tools/{name}` — Delete one registered entry from tools. */
440
+ registryToolsDelete<T = unknown>(params: {
441
+ readonly name: string;
442
+ }): Promise<T>;
443
+ /** `GET /api/workspace/tools/{name}` — Read one registered entry from tools. */
444
+ registryToolsGet<T = unknown>(params: {
445
+ readonly name: string;
446
+ }): Promise<T>;
447
+ /** `GET /api/workspace/tools` — List registered tools. */
448
+ registryToolsList<T = unknown>(params?: {
449
+ readonly query?: {
450
+ readonly cursor?: string;
451
+ readonly limit?: string;
452
+ };
453
+ }): Promise<T>;
454
+ /** `PUT /api/workspace/tools/{name}` — Replace one registered entry in tools. */
455
+ registryToolsPut<T = unknown>(params: {
456
+ readonly name: string;
457
+ readonly body: unknown;
458
+ readonly idempotencyKey: string;
459
+ }): Promise<T>;
460
+ }
461
+ /** The `secrets` operations. */
462
+ export declare class SecretsClient {
463
+ #private;
464
+ constructor(executor: ResourceExecutor);
465
+ /** `DELETE /api/secrets/{name}` — Delete a secret, affecting future admission only. */
466
+ secretDelete<T = unknown>(params: {
467
+ readonly name: string;
468
+ }): Promise<T>;
469
+ /** `GET /api/workspace/secrets/{name}` — Read one secret metadata record. */
470
+ secretGet<T = unknown>(params: {
471
+ readonly name: string;
472
+ }): Promise<T>;
473
+ /** `PUT /api/secrets/{name}` — Set a secret value for future admission. */
474
+ secretPut<T = unknown>(params: {
475
+ readonly name: string;
476
+ readonly body: unknown;
477
+ readonly idempotencyKey: string;
478
+ }): Promise<T>;
479
+ /** `POST /api/secrets/{name}/revocations` — Revoke a secret and cancel current custody. */
480
+ secretRevoke<T = unknown>(params: {
481
+ readonly name: string;
482
+ readonly body: unknown;
483
+ readonly idempotencyKey: string;
484
+ }): Promise<T>;
485
+ /** `GET /api/workspace/secrets` — List secret metadata; values are never readable. */
486
+ secretsList<T = unknown>(params?: {
487
+ readonly query?: {
488
+ readonly cursor?: string;
489
+ readonly limit?: string;
490
+ };
491
+ }): Promise<T>;
492
+ }
493
+ /** The `sessions` operations. */
494
+ export declare class SessionsClient {
495
+ #private;
496
+ constructor(executor: ResourceExecutor);
497
+ /** `GET /api/sessions/{sessionId}` — Read one session, its deleting resource, or its tombstone. */
498
+ sessionGet<T = unknown>(params: {
499
+ readonly sessionId: string;
500
+ }): Promise<T>;
501
+ /** `GET /api/sessions/{sessionId}/messages` — List complete sealed messages in immutable seal-visibility order. */
502
+ sessionMessagesList<T = unknown>(params: {
503
+ readonly sessionId: string;
504
+ readonly query?: {
505
+ readonly cursor?: string;
506
+ readonly limit?: string;
507
+ };
508
+ }): Promise<T>;
509
+ /** `POST /api/sessions/{sessionId}/restores` — Admit the durable restore operation, which is legal only inside the recovery window. */
510
+ sessionRestore<T = unknown>(params: {
511
+ readonly sessionId: string;
512
+ readonly body: unknown;
513
+ readonly operationId: string;
514
+ }): Promise<T>;
515
+ /** `GET /api/sessions/{sessionId}/runs/{runId}` — Read one run. */
516
+ sessionRunGet<T = unknown>(params: {
517
+ readonly sessionId: string;
518
+ readonly runId: string;
519
+ }): Promise<T>;
520
+ /** `GET /api/sessions/{sessionId}/runs` — List the runs of a session. */
521
+ sessionRunsList<T = unknown>(params: {
522
+ readonly sessionId: string;
523
+ readonly query?: {
524
+ readonly cursor?: string;
525
+ readonly limit?: string;
526
+ };
527
+ }): Promise<T>;
528
+ /** `POST /api/sessions/{sessionId}/stops` — Admit the durable stop operation. */
529
+ sessionStop<T = unknown>(params: {
530
+ readonly sessionId: string;
531
+ readonly body: unknown;
532
+ readonly operationId: string;
533
+ }): Promise<T>;
534
+ /** `POST /api/sessions/{sessionId}/trashes` — Admit the durable trash operation, which starts the recovery window. */
535
+ sessionTrash<T = unknown>(params: {
536
+ readonly sessionId: string;
537
+ readonly body: unknown;
538
+ readonly operationId: string;
539
+ }): Promise<T>;
540
+ /** `GET /api/sessions` — List sessions in the workspace. */
541
+ sessionsList<T = unknown>(params?: {
542
+ readonly query?: {
543
+ readonly cursor?: string;
544
+ readonly limit?: string;
545
+ readonly status?: string;
546
+ };
547
+ }): Promise<T>;
548
+ }
549
+ /** The `telemetry-lifecycle` operations. */
550
+ export declare class TelemetryLifecycleClient {
551
+ #private;
552
+ constructor(executor: ResourceExecutor);
553
+ /** `POST /api/observations/{sessionId}/telemetry/exports/{exportId}/downloads` — Mint a download grant for a ready session telemetry export. */
554
+ sessionTelemetryExportDownloadCreate<T = unknown>(params: {
555
+ readonly sessionId: string;
556
+ readonly exportId: string;
557
+ readonly body: unknown;
558
+ readonly idempotencyKey: string;
559
+ }): Promise<T>;
560
+ /** `GET /api/observations/{sessionId}/telemetry/exports/{exportId}` — Read one session telemetry export record. */
561
+ sessionTelemetryExportGet<T = unknown>(params: {
562
+ readonly sessionId: string;
563
+ readonly exportId: string;
564
+ }): Promise<T>;
565
+ /** `POST /api/observations/{sessionId}/telemetry/exports/{exportId}/revocations` — Revoke a session telemetry export and its outstanding grants. */
566
+ sessionTelemetryExportRevoke<T = unknown>(params: {
567
+ readonly sessionId: string;
568
+ readonly exportId: string;
569
+ readonly body: unknown;
570
+ readonly idempotencyKey: string;
571
+ }): Promise<T>;
572
+ /** `GET /api/observations/{sessionId}/telemetry/gaps/{gapId}` — Read one recorded session telemetry gap. */
573
+ sessionTelemetryGapGet<T = unknown>(params: {
574
+ readonly sessionId: string;
575
+ readonly gapId: string;
576
+ }): Promise<T>;
577
+ /** `POST /api/observations/{sessionId}/telemetry/gaps/query` — Query recorded session telemetry gaps. */
578
+ sessionTelemetryGapsQuery<T = unknown>(params: {
579
+ readonly sessionId: string;
580
+ readonly body: unknown;
581
+ }): Promise<T>;
582
+ /** `POST /api/observations/telemetry/exports/{exportId}/downloads` — Mint a download grant for a ready telemetry export. */
583
+ telemetryExportDownloadCreate<T = unknown>(params: {
584
+ readonly exportId: string;
585
+ readonly body: unknown;
586
+ readonly idempotencyKey: string;
587
+ }): Promise<T>;
588
+ /** `GET /api/observations/telemetry/exports/{exportId}` — Read one telemetry export record. */
589
+ telemetryExportGet<T = unknown>(params: {
590
+ readonly exportId: string;
591
+ }): Promise<T>;
592
+ /** `POST /api/observations/telemetry/exports/{exportId}/revocations` — Revoke a telemetry export and its outstanding grants. */
593
+ telemetryExportRevoke<T = unknown>(params: {
594
+ readonly exportId: string;
595
+ readonly body: unknown;
596
+ readonly idempotencyKey: string;
597
+ }): Promise<T>;
598
+ /** `GET /api/observations/telemetry/gaps/{gapId}` — Read one recorded telemetry gap. */
599
+ telemetryGapGet<T = unknown>(params: {
600
+ readonly gapId: string;
601
+ }): Promise<T>;
602
+ /** `POST /api/observations/telemetry/gaps/query` — Query recorded workspace telemetry gaps. */
603
+ telemetryGapsQuery<T = unknown>(params: {
604
+ readonly body: unknown;
605
+ }): Promise<T>;
606
+ }
607
+ /** The `uploads` operations. */
608
+ export declare class UploadsClient {
609
+ #private;
610
+ constructor(executor: ResourceExecutor);
611
+ /** `DELETE /api/workspace/uploads/{uploadId}` — Abort a staged upload. */
612
+ uploadAbort<T = unknown>(params: {
613
+ readonly uploadId: string;
614
+ }): Promise<T>;
615
+ /** `POST /api/workspace/uploads/{uploadId}/completion` — Complete a staged upload. */
616
+ uploadComplete<T = unknown>(params: {
617
+ readonly uploadId: string;
618
+ readonly body: unknown;
619
+ readonly idempotencyKey: string;
620
+ }): Promise<T>;
621
+ /** `POST /api/workspace/uploads` — Stage a large registered-resource value. */
622
+ uploadCreate<T = unknown>(params: {
623
+ readonly body: unknown;
624
+ readonly idempotencyKey: string;
625
+ }): Promise<T>;
626
+ /** `POST /api/workspace/uploads/{uploadId}/parts` — Mint presigned PUT grants for the named parts. */
627
+ uploadPartsGrant<T = unknown>(params: {
628
+ readonly uploadId: string;
629
+ readonly body: unknown;
630
+ }): Promise<T>;
631
+ }
632
+ /** The `usage` operations. */
633
+ export declare class UsageClient {
634
+ #private;
635
+ constructor(executor: ResourceExecutor);
636
+ /** `POST /api/billing/usage/query` — Query rated usage for this workspace. */
637
+ usageQuery<T = unknown>(params: {
638
+ readonly query?: {
639
+ readonly workspaceId?: string;
640
+ };
641
+ readonly body: unknown;
642
+ }): Promise<T>;
643
+ }
644
+ /** The `workspace` operations. */
645
+ export declare class WorkspaceClient {
646
+ #private;
647
+ constructor(executor: ResourceExecutor);
648
+ /** `GET /api/workspace` — Read the workspace this credential is pinned to. */
649
+ workspaceCurrentGet<T = unknown>(): Promise<T>;
650
+ /** `GET /api/workspace/limits/{limitId}` — Read one effective workspace safety limit. */
651
+ workspaceLimitGet<T = unknown>(params: {
652
+ readonly limitId: string;
653
+ }): Promise<T>;
654
+ /** `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. */
655
+ workspaceLimitsList<T = unknown>(): Promise<T>;
656
+ }
657
+ /** The `workspaces` operations. */
658
+ export declare class WorkspacesClient {
659
+ #private;
660
+ constructor(executor: ResourceExecutor);
661
+ /** `POST /api/workspaces` — Create a region-pinned workspace. */
662
+ workspaceCreate<T = unknown>(params: {
663
+ readonly body: unknown;
664
+ readonly idempotencyKey: string;
665
+ }): Promise<T>;
666
+ /** `POST /api/workspaces/{workspaceId}/deletions` — Admit the global workspace-deletion operation. */
667
+ workspaceDelete<T = unknown>(params: {
668
+ readonly workspaceId: string;
669
+ readonly body: unknown;
670
+ readonly operationId: string;
671
+ }): Promise<T>;
672
+ /** `GET /api/workspaces/{workspaceId}` — Read one workspace. */
673
+ workspaceGet<T = unknown>(params: {
674
+ readonly workspaceId: string;
675
+ }): Promise<T>;
676
+ /** `GET /api/workspaces` — List workspaces the caller can reach. */
677
+ workspacesList<T = unknown>(params?: {
678
+ readonly query?: {
679
+ readonly cursor?: string;
680
+ readonly limit?: string;
681
+ readonly organizationId?: string;
682
+ };
683
+ }): Promise<T>;
684
+ }
685
+ /**
686
+ * The resource namespaces the client exposes.
687
+ *
688
+ * The client extends this rather than listing the namespaces itself, so a
689
+ * fragment whose last served operation lands or leaves cannot be forgotten
690
+ * in the hand-written half.
691
+ */
692
+ export declare abstract class GeneratedResources implements ResourceExecutor {
693
+ abstract execute<T>(routeId: RouteId, bindings?: Readonly<Record<string, string>>, options?: ExecuteOptions): Promise<T>;
694
+ /** The `api-keys` operations. */
695
+ readonly apiKeys: ApiKeysClient;
696
+ /** The `auth` operations. */
697
+ readonly auth: AuthClient;
698
+ /** The `billing` operations. */
699
+ readonly billing: BillingClient;
700
+ /** The `bootstrap` operations. */
701
+ readonly bootstrap: BootstrapClient;
702
+ /** The `identity` operations. */
703
+ readonly identity: IdentityClient;
704
+ /** The `observations` operations. */
705
+ readonly observations: ObservationsClient;
706
+ /** The `operations` operations. */
707
+ readonly operations: OperationsClient;
708
+ /** The `organizations` operations. */
709
+ readonly organizations: OrganizationsClient;
710
+ /** The `otlp` operations. */
711
+ readonly otlp: OtlpClient;
712
+ /** The `provider-credentials` operations. */
713
+ readonly providerCredentials: ProviderCredentialsClient;
714
+ /** The `registry` operations. */
715
+ readonly registry: RegistryClient;
716
+ /** The `secrets` operations. */
717
+ readonly secrets: SecretsClient;
718
+ /** The `sessions` operations. */
719
+ readonly sessions: SessionsClient;
720
+ /** The `telemetry-lifecycle` operations. */
721
+ readonly telemetryLifecycle: TelemetryLifecycleClient;
722
+ /** The `uploads` operations. */
723
+ readonly uploads: UploadsClient;
724
+ /** The `usage` operations. */
725
+ readonly usage: UsageClient;
726
+ /** The `workspace` operations. */
727
+ readonly workspace: WorkspaceClient;
728
+ /** The `workspaces` operations. */
729
+ readonly workspaces: WorkspacesClient;
730
+ }