@aexhq/sdk 0.54.0 → 0.55.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 (57) hide show
  1. package/README.md +16 -123
  2. package/dist/errors.d.ts +33 -0
  3. package/dist/errors.js +69 -0
  4. package/dist/index.d.ts +16 -23
  5. package/dist/index.js +18 -16
  6. package/dist/json.d.ts +4 -0
  7. package/dist/json.js +46 -0
  8. package/dist/session.d.ts +74 -0
  9. package/dist/session.js +255 -0
  10. package/dist/transport.d.ts +22 -0
  11. package/dist/transport.js +196 -0
  12. package/package.json +16 -64
  13. package/LICENSE +0 -201
  14. package/NOTICE +0 -38
  15. package/dist/client/aex.d.ts +0 -38
  16. package/dist/client/aex.js +0 -149
  17. package/dist/client/aex.js.map +0 -1
  18. package/dist/client/credentials.d.ts +0 -25
  19. package/dist/client/credentials.js +0 -97
  20. package/dist/client/credentials.js.map +0 -1
  21. package/dist/client/routing.d.ts +0 -7
  22. package/dist/client/routing.js +0 -26
  23. package/dist/client/routing.js.map +0 -1
  24. package/dist/downloads/download.d.ts +0 -18
  25. package/dist/downloads/download.js +0 -67
  26. package/dist/downloads/download.js.map +0 -1
  27. package/dist/files/workspace-files.d.ts +0 -55
  28. package/dist/files/workspace-files.js +0 -150
  29. package/dist/files/workspace-files.js.map +0 -1
  30. package/dist/generated/errors.d.ts +0 -12
  31. package/dist/generated/errors.js +0 -66
  32. package/dist/generated/errors.js.map +0 -1
  33. package/dist/generated/models.d.ts +0 -853
  34. package/dist/generated/models.js +0 -62
  35. package/dist/generated/models.js.map +0 -1
  36. package/dist/generated/resources.d.ts +0 -265
  37. package/dist/generated/resources.js +0 -207
  38. package/dist/generated/resources.js.map +0 -1
  39. package/dist/generated/routes.d.ts +0 -44
  40. package/dist/generated/routes.js +0 -510
  41. package/dist/generated/routes.js.map +0 -1
  42. package/dist/index.js.map +0 -1
  43. package/dist/observations/stream.d.ts +0 -1
  44. package/dist/observations/stream.js +0 -18
  45. package/dist/observations/stream.js.map +0 -1
  46. package/dist/transport/errors.d.ts +0 -60
  47. package/dist/transport/errors.js +0 -107
  48. package/dist/transport/errors.js.map +0 -1
  49. package/dist/transport/pagination.d.ts +0 -8
  50. package/dist/transport/pagination.js +0 -34
  51. package/dist/transport/pagination.js.map +0 -1
  52. package/dist/transport/retry.d.ts +0 -21
  53. package/dist/transport/retry.js +0 -37
  54. package/dist/transport/retry.js.map +0 -1
  55. package/dist/transport/transport.d.ts +0 -33
  56. package/dist/transport/transport.js +0 -111
  57. package/dist/transport/transport.js.map +0 -1
@@ -1,62 +0,0 @@
1
- // @generated by aex-contract-gen; DO NOT EDIT.
2
- // Contract digest: sha256:ec8637e9442587d0020caccfed0ab6fccef5a6d61dae1c162fe2d78e2af0dec8
3
- /**
4
- * The public wire model types used by the generated SDK resources.
5
- *
6
- * These declarations and identifier utilities are projected from the same
7
- * authored contract as `@aexhq/wire`, but carry no runtime validator dependency.
8
- */
9
- export const ID_PREFIXES = {
10
- user: "usr",
11
- account: "acc",
12
- organization: "org",
13
- membership: "mem",
14
- invitation: "inv",
15
- workspace: "wsp",
16
- api_key: "key",
17
- provider_credential: "pcr",
18
- session: "ses",
19
- message: "msg",
20
- agent: "agt",
21
- tool_call: "tcl",
22
- operation: "op",
23
- approval: "apr",
24
- generation: "gen",
25
- file_upload: "ful",
26
- file_download: "fdl",
27
- observation: "obs",
28
- upload: "upl",
29
- measurement: "msr",
30
- statement: "stm",
31
- payment_method: "pmt",
32
- billing_transaction: "txn",
33
- };
34
- export const ID_KINDS = Object.freeze(Object.keys(ID_PREFIXES));
35
- const ID_BODY_PATTERN = "[0-9a-hjkmnp-tv-z]{26}";
36
- const ID_PATTERNS = new Map();
37
- const CROCKFORD = "0123456789abcdefghjkmnpqrstvwxyz";
38
- export function idPatternSource(kind) { return `^${ID_PREFIXES[kind]}_${ID_BODY_PATTERN}$`; }
39
- export function idPattern(kind) { const found = ID_PATTERNS.get(kind); if (found)
40
- return found; const pattern = new RegExp(idPatternSource(kind)); ID_PATTERNS.set(kind, pattern); return pattern; }
41
- function isUuidV7Body(value) { let encoded = 0n; for (const character of value) {
42
- const digit = CROCKFORD.indexOf(character);
43
- if (digit < 0)
44
- return false;
45
- encoded = (encoded << 5n) | BigInt(digit);
46
- } if (encoded >= (1n << 128n))
47
- return false; const bytes = new Uint8Array(16); for (let index = 15; index >= 0; index -= 1) {
48
- bytes[index] = Number(encoded & 255n);
49
- encoded >>= 8n;
50
- } return (bytes[6] & 0xf0) === 0x70 && (bytes[8] & 0xc0) === 0x80; }
51
- export function isId(kind, value) { return typeof value === "string" && idPattern(kind).test(value) && isUuidV7Body(value.slice(value.indexOf("_") + 1)); }
52
- export function assertId(kind, value, label = `${kind} id`) { if (isId(kind, value))
53
- return value; const got = typeof value === "string" ? JSON.stringify(value) : `<${typeof value}>`; throw new Error(`${label} must match ${idPatternSource(kind)}, got ${got}`); }
54
- function toBase32(bytes) { let value = 0n; for (const byte of bytes)
55
- value = (value << 8n) | BigInt(byte); let result = ""; for (let index = 0; index < 26; index += 1) {
56
- result = CROCKFORD[Number(value & 31n)] + result;
57
- value >>= 5n;
58
- } return result; }
59
- export function newId(kind) { const prefix = ID_PREFIXES[kind]; const crypto = globalThis.crypto; if (prefix === undefined)
60
- throw new Error(`newId: unknown id kind ${String(kind)}`); if (typeof crypto?.getRandomValues !== "function")
61
- throw new Error("newId: crypto.getRandomValues is unavailable"); const bytes = crypto.getRandomValues(new Uint8Array(16)); const timestamp = Date.now(); bytes[0] = Math.floor(timestamp / 2 ** 40) & 0xff; bytes[1] = Math.floor(timestamp / 2 ** 32) & 0xff; bytes[2] = Math.floor(timestamp / 2 ** 24) & 0xff; bytes[3] = Math.floor(timestamp / 2 ** 16) & 0xff; bytes[4] = Math.floor(timestamp / 2 ** 8) & 0xff; bytes[5] = timestamp & 0xff; bytes[6] = (bytes[6] & 0x0f) | 0x70; bytes[8] = (bytes[8] & 0x3f) | 0x80; return `${prefix}_${toBase32(bytes)}`; }
62
- //# sourceMappingURL=models.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"models.js","sourceRoot":"","sources":["../../src/generated/models.ts"],"names":[],"mappings":"AAAA,+CAA+C;AAC/C,2FAA2F;AAE3F;;;;;GAKG;AAEH,MAAM,CAAC,MAAM,WAAW,GAAG;IACzB,IAAI,EAAE,KAAK;IACX,OAAO,EAAE,KAAK;IACd,YAAY,EAAE,KAAK;IACnB,UAAU,EAAE,KAAK;IACjB,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE,KAAK;IAChB,OAAO,EAAE,KAAK;IACd,mBAAmB,EAAE,KAAK;IAC1B,OAAO,EAAE,KAAK;IACd,OAAO,EAAE,KAAK;IACd,KAAK,EAAE,KAAK;IACZ,SAAS,EAAE,KAAK;IAChB,SAAS,EAAE,IAAI;IACf,QAAQ,EAAE,KAAK;IACf,UAAU,EAAE,KAAK;IACjB,WAAW,EAAE,KAAK;IAClB,aAAa,EAAE,KAAK;IACpB,WAAW,EAAE,KAAK;IAClB,MAAM,EAAE,KAAK;IACb,WAAW,EAAE,KAAK;IAClB,SAAS,EAAE,KAAK;IAChB,cAAc,EAAE,KAAK;IACrB,mBAAmB,EAAE,KAAK;CAClB,CAAC;AAGX,MAAM,CAAC,MAAM,QAAQ,GAAG,MAAM,CAAC,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,WAAW,CAAa,CAAC,CAAC;AAC5E,MAAM,eAAe,GAAG,wBAAwB,CAAC;AACjD,MAAM,WAAW,GAAG,IAAI,GAAG,EAAkB,CAAC;AAC9C,MAAM,SAAS,GAAG,kCAAkC,CAAC;AACrD,MAAM,UAAU,eAAe,CAAC,IAAY,IAAY,OAAO,IAAI,WAAW,CAAC,IAAI,CAAC,IAAI,eAAe,GAAG,CAAC,CAAC,CAAC;AAC7G,MAAM,UAAU,SAAS,CAAC,IAAY,IAAY,MAAM,KAAK,GAAG,WAAW,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC,CAAC,IAAI,KAAK;I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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 * as Models from "./models.js";
10
- import type { RouteId } from "./routes.js";
11
- /** The one client capability every generated resource method needs. */
12
- export interface ResourceExecutor {
13
- execute<T>(routeId: RouteId, bindings?: Readonly<Record<string, string>>, options?: ExecuteOptions): Promise<T>;
14
- stream<T>(routeId: RouteId, bindings?: Readonly<Record<string, string>>, options?: ExecuteOptions): AsyncIterable<T>;
15
- }
16
- /** Everything beyond the path a single call can carry. */
17
- export interface ExecuteOptions {
18
- /** Query parameters, already rendered as wire strings. */
19
- readonly query?: Readonly<Record<string, string>>;
20
- /** The request body; binary routes require `Uint8Array`, all others use canonical JSON. */
21
- readonly body?: unknown | Uint8Array;
22
- /** `Idempotency-Key`, for a route that requires one. */
23
- readonly idempotencyKey?: string;
24
- /** `Aex-Operation-Id`, for a route that admits a durable operation. */
25
- readonly operationId?: string;
26
- }
27
- /** The `api-keys` operations. */
28
- export declare class ApiKeysClient {
29
- #private;
30
- constructor(executor: ResourceExecutor);
31
- /** `POST /api/api-keys` — Mint a workspace API key whose value is returned once. */
32
- apiKeyCreate(params: {
33
- readonly body: Models.ApiKeyCreateRequest;
34
- readonly idempotencyKey: string;
35
- }): Promise<Models.NewApiKey>;
36
- /** `DELETE /api/api-keys/{apiKeyId}` — Revoke a workspace API key. */
37
- apiKeyRevoke(params: {
38
- readonly apiKeyId: Models.Id<"api_key">;
39
- }): Promise<void>;
40
- /** `GET /api/api-keys` — List workspace API key metadata. */
41
- apiKeysList(params: {
42
- readonly query: {
43
- readonly cursor?: string;
44
- readonly limit?: string;
45
- readonly workspaceId: string;
46
- };
47
- }): Promise<Models.ApiKeyPage>;
48
- }
49
- /** The `auth` operations. */
50
- export declare class AuthClient {
51
- #private;
52
- constructor(executor: ResourceExecutor);
53
- /** `GET /api/auth/config` — Read the public Google OAuth configuration required by the native CLI. */
54
- authConfigGet(): Promise<Models.CliAuthConfig>;
55
- /** `POST /api/auth/sessions` — Exchange a provider authorization code for a first-party user session. */
56
- dashboardSessionCreate(params: {
57
- readonly body: Models.DashboardSessionRequest;
58
- }): Promise<Models.DashboardSessionCredential>;
59
- /** `DELETE /api/auth/sessions/current` — Close the first-party user session the caller presented. */
60
- dashboardSessionDelete(): Promise<void>;
61
- }
62
- /** The `billing` operations. */
63
- export declare class BillingClient {
64
- #private;
65
- constructor(executor: ResourceExecutor);
66
- /** `GET /api/billing/balance` — Read the caller's prepaid balance and active reservations. */
67
- billingBalanceGet(): Promise<Models.BillingBalance>;
68
- /** `DELETE /api/billing/payment-methods/{paymentMethodId}` — Detach a card owned by the caller's account. */
69
- billingPaymentMethodDelete(params: {
70
- readonly paymentMethodId: Models.Id<"payment_method">;
71
- readonly idempotencyKey: string;
72
- }): Promise<void>;
73
- /** `POST /api/billing/payment-method-sessions` — Create a Stripe-hosted card setup session with explicit consent. */
74
- billingPaymentMethodSessionCreate(params: {
75
- readonly body: Models.PaymentMethodSessionRequest;
76
- readonly idempotencyKey: string;
77
- }): Promise<Models.HostedSession>;
78
- /** `GET /api/billing/payment-methods` — List card display metadata for the caller's account. */
79
- billingPaymentMethodsList(): Promise<Models.PaymentMethodPage>;
80
- /** `POST /api/billing/top-up-checkouts` — Create a one-time Stripe-hosted prepaid top-up checkout. */
81
- billingTopUpCheckoutCreate(params: {
82
- readonly body: Models.TopUpCheckoutRequest;
83
- readonly idempotencyKey: string;
84
- }): Promise<Models.HostedSession>;
85
- /** `GET /api/billing/transactions` — List immutable prepaid ledger transactions, newest first. */
86
- billingTransactionsList(params?: {
87
- readonly query?: {
88
- readonly cursor?: string;
89
- readonly limit?: string;
90
- };
91
- }): Promise<Models.BillingTransactionPage>;
92
- /** `GET /api/billing/usage` — Read bounded rated usage and its settlement coverage. */
93
- billingUsageGet(params?: {
94
- readonly query?: {
95
- readonly category?: string;
96
- readonly cursor?: string;
97
- readonly from?: string;
98
- readonly limit?: string;
99
- readonly sessionId?: string;
100
- readonly to?: string;
101
- };
102
- }): Promise<Models.BillingUsagePage>;
103
- }
104
- /** The `bootstrap` operations. */
105
- export declare class BootstrapClient {
106
- #private;
107
- constructor(executor: ResourceExecutor);
108
- /** `GET /api/bootstrap` — One bounded read that fills the dashboard shell. */
109
- dashboardBootstrapGet(): Promise<Models.DashboardBootstrap>;
110
- }
111
- /** The `registry` operations. */
112
- export declare class RegistryClient {
113
- #private;
114
- constructor(executor: ResourceExecutor);
115
- /** `DELETE /api/files/{name}` — Delete one current workspace file. */
116
- registryFilesDelete(params: {
117
- readonly name: string;
118
- }): Promise<void>;
119
- /** `POST /api/files/{name}/downloads` — Mint a download grant for a ready current workspace file. */
120
- registryFilesDownloadCreate(params: {
121
- readonly name: string;
122
- readonly body: Models.RegistryDownloadRequest;
123
- readonly idempotencyKey: string;
124
- }): Promise<Models.DownloadGrant>;
125
- /** `GET /api/files/{name}` — Read one current workspace file. */
126
- registryFilesGet(params: {
127
- readonly name: string;
128
- }): Promise<Models.RegisteredFile>;
129
- /** `GET /api/files` — List current workspace files. */
130
- registryFilesList(params?: {
131
- readonly query?: {
132
- readonly cursor?: string;
133
- readonly limit?: string;
134
- };
135
- }): Promise<Models.RegisteredFilePage>;
136
- /** `PUT /api/files/{name}` — Replace one current workspace file from inline bytes or an HTTPS URL. */
137
- registryFilesPut(params: {
138
- readonly name: string;
139
- readonly body: Models.RegisteredFileValue;
140
- readonly idempotencyKey: string;
141
- }): Promise<Models.RegisteredFile>;
142
- }
143
- /** The `sessions` operations. */
144
- export declare class SessionsClient {
145
- #private;
146
- constructor(executor: ResourceExecutor);
147
- /** `POST /api/sessions/{sessionId}/cancellations` — Cancel current work and return the session to idle. */
148
- sessionCancel(params: {
149
- readonly sessionId: Models.Id<"session">;
150
- readonly body: Models.EmptyRequest;
151
- readonly operationId: Models.Id<"operation">;
152
- }): Promise<Models.SessionCommandReceipt>;
153
- /** `POST /api/sessions` — Create a durable session and eagerly prepare its default-on sandbox in the background. */
154
- sessionCreate(params: {
155
- readonly body: Models.SessionCreateRequest;
156
- readonly idempotencyKey: string;
157
- }): Promise<Models.Session>;
158
- /** `POST /api/sessions/{sessionId}/deletions` — Irreversibly delete session-scoped user content; independent workspace files remain. */
159
- sessionDelete(params: {
160
- readonly sessionId: Models.Id<"session">;
161
- readonly body: Models.EmptyRequest;
162
- readonly operationId: Models.Id<"operation">;
163
- }): Promise<Models.SessionCommandReceipt>;
164
- /** `GET /api/sessions/{sessionId}` — Read durable session metadata and sandbox preparation state. */
165
- sessionGet(params: {
166
- readonly sessionId: Models.Id<"session">;
167
- }): Promise<Models.Session>;
168
- /** `POST /api/sessions/{sessionId}/messages` — Admit one text message; file paths are referenced in text, never attached. */
169
- sessionMessageSend(params: {
170
- readonly sessionId: Models.Id<"session">;
171
- readonly body: Models.MessageSendRequest;
172
- readonly idempotencyKey: string;
173
- }): Promise<Models.MessageSendResult>;
174
- /** `GET /api/sessions/{sessionId}/messages` — List complete committed messages in immutable seal order. */
175
- sessionMessagesList(params: {
176
- readonly sessionId: Models.Id<"session">;
177
- readonly query?: {
178
- readonly cursor?: string;
179
- readonly limit?: string;
180
- };
181
- }): Promise<Models.MessagePage>;
182
- /** `GET /api/sessions/{sessionId}/messages/stream` — Stream bounded assistant previews plus commit/reconcile/gap frames. */
183
- sessionMessagesStream(params: {
184
- readonly sessionId: Models.Id<"session">;
185
- readonly query?: {
186
- readonly after?: string;
187
- };
188
- }): AsyncIterable<Models.MessageStreamFrame>;
189
- /** `POST /api/sessions/{sessionId}/telemetry/downloads` — Mint a short-lived download for a bounded retained telemetry export. */
190
- sessionTelemetryDownloadCreate(params: {
191
- readonly sessionId: Models.Id<"session">;
192
- readonly body: Models.TelemetryDownloadRequest;
193
- readonly idempotencyKey: string;
194
- }): Promise<Models.TelemetryDownloadGrant>;
195
- /** `GET /api/sessions/{sessionId}/telemetry/replay` — Replay retained telemetry from compressed immutable S3 segments. */
196
- sessionTelemetryReplay(params: {
197
- readonly sessionId: Models.Id<"session">;
198
- readonly query?: {
199
- readonly after?: string;
200
- readonly limit?: string;
201
- };
202
- }): AsyncIterable<Models.TelemetryFrame>;
203
- /** `GET /api/sessions/{sessionId}/telemetry/stream` — Stream live trusted assistant, tool, runtime, Logs and Traces telemetry with bounded previews. */
204
- sessionTelemetryStream(params: {
205
- readonly sessionId: Models.Id<"session">;
206
- readonly query?: {
207
- readonly after?: string;
208
- };
209
- }): AsyncIterable<Models.TelemetryFrame>;
210
- /** `POST /api/sessions/{sessionId}/terminations` — Destroy sandbox compute while retaining session metadata and messages. */
211
- sessionTerminate(params: {
212
- readonly sessionId: Models.Id<"session">;
213
- readonly body: Models.EmptyRequest;
214
- readonly operationId: Models.Id<"operation">;
215
- }): Promise<Models.SessionCommandReceipt>;
216
- /** `GET /api/sessions` — List sessions in the workspace. */
217
- sessionsList(params?: {
218
- readonly query?: {
219
- readonly cursor?: string;
220
- readonly limit?: string;
221
- readonly status?: string;
222
- };
223
- }): Promise<Models.SessionListPage>;
224
- }
225
- /** The `uploads` operations. */
226
- export declare class UploadsClient {
227
- #private;
228
- constructor(executor: ResourceExecutor);
229
- /** `POST /api/uploads/{uploadId}/completions` — Verify an admitted upload and publish it only if its private overwrite intent is still current. */
230
- uploadComplete(params: {
231
- readonly uploadId: Models.Id<"upload">;
232
- readonly body: Models.UploadCompleteRequest;
233
- readonly idempotencyKey: string;
234
- }): Promise<Models.RegisteredFile>;
235
- /** `POST /api/uploads` — Admit a direct upload for one current workspace-file name and return every bounded part grant. */
236
- uploadCreate(params: {
237
- readonly body: Models.UploadCreateRequest;
238
- readonly idempotencyKey: string;
239
- }): Promise<Models.UploadAdmission>;
240
- }
241
- /**
242
- * The resource namespaces the client exposes.
243
- *
244
- * The client extends this rather than listing the namespaces itself, so a
245
- * fragment whose last served operation lands or leaves cannot be forgotten
246
- * in the hand-written half.
247
- */
248
- export declare abstract class GeneratedResources implements ResourceExecutor {
249
- abstract execute<T>(routeId: RouteId, bindings?: Readonly<Record<string, string>>, options?: ExecuteOptions): Promise<T>;
250
- abstract stream<T>(routeId: RouteId, bindings?: Readonly<Record<string, string>>, options?: ExecuteOptions): AsyncIterable<T>;
251
- /** The `api-keys` operations. */
252
- readonly apiKeys: ApiKeysClient;
253
- /** The `auth` operations. */
254
- readonly auth: AuthClient;
255
- /** The `billing` operations. */
256
- readonly billing: BillingClient;
257
- /** The `bootstrap` operations. */
258
- readonly bootstrap: BootstrapClient;
259
- /** The `registry` operations. */
260
- readonly registry: RegistryClient;
261
- /** The `sessions` operations. */
262
- readonly sessions: SessionsClient;
263
- /** The `uploads` operations. */
264
- readonly uploads: UploadsClient;
265
- }
@@ -1,207 +0,0 @@
1
- // @generated by aex-contract-gen; DO NOT EDIT.
2
- // Contract digest: sha256:ec8637e9442587d0020caccfed0ab6fccef5a6d61dae1c162fe2d78e2af0dec8
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
- /** `GET /api/auth/config` — Read the public Google OAuth configuration required by the native CLI. */
29
- async authConfigGet() {
30
- return this.#executor.execute("auth_config_get");
31
- }
32
- /** `POST /api/auth/sessions` — Exchange a provider authorization code for a first-party user session. */
33
- async dashboardSessionCreate(params) {
34
- return this.#executor.execute("dashboard_session_create", {}, { body: params.body });
35
- }
36
- /** `DELETE /api/auth/sessions/current` — Close the first-party user session the caller presented. */
37
- async dashboardSessionDelete() {
38
- return this.#executor.execute("dashboard_session_delete");
39
- }
40
- }
41
- /** The `billing` operations. */
42
- export class BillingClient {
43
- #executor;
44
- constructor(executor) {
45
- this.#executor = executor;
46
- }
47
- /** `GET /api/billing/balance` — Read the caller's prepaid balance and active reservations. */
48
- async billingBalanceGet() {
49
- return this.#executor.execute("billing_balance_get");
50
- }
51
- /** `DELETE /api/billing/payment-methods/{paymentMethodId}` — Detach a card owned by the caller's account. */
52
- async billingPaymentMethodDelete(params) {
53
- return this.#executor.execute("billing_payment_method_delete", { paymentMethodId: params.paymentMethodId }, { idempotencyKey: params.idempotencyKey });
54
- }
55
- /** `POST /api/billing/payment-method-sessions` — Create a Stripe-hosted card setup session with explicit consent. */
56
- async billingPaymentMethodSessionCreate(params) {
57
- return this.#executor.execute("billing_payment_method_session_create", {}, { body: params.body, idempotencyKey: params.idempotencyKey });
58
- }
59
- /** `GET /api/billing/payment-methods` — List card display metadata for the caller's account. */
60
- async billingPaymentMethodsList() {
61
- return this.#executor.execute("billing_payment_methods_list");
62
- }
63
- /** `POST /api/billing/top-up-checkouts` — Create a one-time Stripe-hosted prepaid top-up checkout. */
64
- async billingTopUpCheckoutCreate(params) {
65
- return this.#executor.execute("billing_top_up_checkout_create", {}, { body: params.body, idempotencyKey: params.idempotencyKey });
66
- }
67
- /** `GET /api/billing/transactions` — List immutable prepaid ledger transactions, newest first. */
68
- async billingTransactionsList(params = {}) {
69
- return this.#executor.execute("billing_transactions_list", {}, { ...(params.query === undefined ? {} : { query: params.query }) });
70
- }
71
- /** `GET /api/billing/usage` — Read bounded rated usage and its settlement coverage. */
72
- async billingUsageGet(params = {}) {
73
- return this.#executor.execute("billing_usage_get", {}, { ...(params.query === undefined ? {} : { query: params.query }) });
74
- }
75
- }
76
- /** The `bootstrap` operations. */
77
- export class BootstrapClient {
78
- #executor;
79
- constructor(executor) {
80
- this.#executor = executor;
81
- }
82
- /** `GET /api/bootstrap` — One bounded read that fills the dashboard shell. */
83
- async dashboardBootstrapGet() {
84
- return this.#executor.execute("dashboard_bootstrap_get");
85
- }
86
- }
87
- /** The `registry` operations. */
88
- export class RegistryClient {
89
- #executor;
90
- constructor(executor) {
91
- this.#executor = executor;
92
- }
93
- /** `DELETE /api/files/{name}` — Delete one current workspace file. */
94
- async registryFilesDelete(params) {
95
- return this.#executor.execute("registry_files_delete", { name: params.name });
96
- }
97
- /** `POST /api/files/{name}/downloads` — Mint a download grant for a ready current workspace file. */
98
- async registryFilesDownloadCreate(params) {
99
- return this.#executor.execute("registry_files_download_create", { name: params.name }, { body: params.body, idempotencyKey: params.idempotencyKey });
100
- }
101
- /** `GET /api/files/{name}` — Read one current workspace file. */
102
- async registryFilesGet(params) {
103
- return this.#executor.execute("registry_files_get", { name: params.name });
104
- }
105
- /** `GET /api/files` — List current workspace files. */
106
- async registryFilesList(params = {}) {
107
- return this.#executor.execute("registry_files_list", {}, { ...(params.query === undefined ? {} : { query: params.query }) });
108
- }
109
- /** `PUT /api/files/{name}` — Replace one current workspace file from inline bytes or an HTTPS URL. */
110
- async registryFilesPut(params) {
111
- return this.#executor.execute("registry_files_put", { name: params.name }, { body: params.body, idempotencyKey: params.idempotencyKey });
112
- }
113
- }
114
- /** The `sessions` operations. */
115
- export class SessionsClient {
116
- #executor;
117
- constructor(executor) {
118
- this.#executor = executor;
119
- }
120
- /** `POST /api/sessions/{sessionId}/cancellations` — Cancel current work and return the session to idle. */
121
- async sessionCancel(params) {
122
- return this.#executor.execute("session_cancel", { sessionId: params.sessionId }, { body: params.body, operationId: params.operationId });
123
- }
124
- /** `POST /api/sessions` — Create a durable session and eagerly prepare its default-on sandbox in the background. */
125
- async sessionCreate(params) {
126
- return this.#executor.execute("session_create", {}, { body: params.body, idempotencyKey: params.idempotencyKey });
127
- }
128
- /** `POST /api/sessions/{sessionId}/deletions` — Irreversibly delete session-scoped user content; independent workspace files remain. */
129
- async sessionDelete(params) {
130
- return this.#executor.execute("session_delete", { sessionId: params.sessionId }, { body: params.body, operationId: params.operationId });
131
- }
132
- /** `GET /api/sessions/{sessionId}` — Read durable session metadata and sandbox preparation state. */
133
- async sessionGet(params) {
134
- return this.#executor.execute("session_get", { sessionId: params.sessionId });
135
- }
136
- /** `POST /api/sessions/{sessionId}/messages` — Admit one text message; file paths are referenced in text, never attached. */
137
- async sessionMessageSend(params) {
138
- return this.#executor.execute("session_message_send", { sessionId: params.sessionId }, { body: params.body, idempotencyKey: params.idempotencyKey });
139
- }
140
- /** `GET /api/sessions/{sessionId}/messages` — List complete committed messages in immutable seal order. */
141
- async sessionMessagesList(params) {
142
- return this.#executor.execute("session_messages_list", { sessionId: params.sessionId }, { ...(params.query === undefined ? {} : { query: params.query }) });
143
- }
144
- /** `GET /api/sessions/{sessionId}/messages/stream` — Stream bounded assistant previews plus commit/reconcile/gap frames. */
145
- sessionMessagesStream(params) {
146
- return this.#executor.stream("session_messages_stream", { sessionId: params.sessionId }, { ...(params.query === undefined ? {} : { query: params.query }) });
147
- }
148
- /** `POST /api/sessions/{sessionId}/telemetry/downloads` — Mint a short-lived download for a bounded retained telemetry export. */
149
- async sessionTelemetryDownloadCreate(params) {
150
- return this.#executor.execute("session_telemetry_download_create", { sessionId: params.sessionId }, { body: params.body, idempotencyKey: params.idempotencyKey });
151
- }
152
- /** `GET /api/sessions/{sessionId}/telemetry/replay` — Replay retained telemetry from compressed immutable S3 segments. */
153
- sessionTelemetryReplay(params) {
154
- return this.#executor.stream("session_telemetry_replay", { sessionId: params.sessionId }, { ...(params.query === undefined ? {} : { query: params.query }) });
155
- }
156
- /** `GET /api/sessions/{sessionId}/telemetry/stream` — Stream live trusted assistant, tool, runtime, Logs and Traces telemetry with bounded previews. */
157
- sessionTelemetryStream(params) {
158
- return this.#executor.stream("session_telemetry_stream", { sessionId: params.sessionId }, { ...(params.query === undefined ? {} : { query: params.query }) });
159
- }
160
- /** `POST /api/sessions/{sessionId}/terminations` — Destroy sandbox compute while retaining session metadata and messages. */
161
- async sessionTerminate(params) {
162
- return this.#executor.execute("session_terminate", { sessionId: params.sessionId }, { body: params.body, operationId: params.operationId });
163
- }
164
- /** `GET /api/sessions` — List sessions in the workspace. */
165
- async sessionsList(params = {}) {
166
- return this.#executor.execute("sessions_list", {}, { ...(params.query === undefined ? {} : { query: params.query }) });
167
- }
168
- }
169
- /** The `uploads` operations. */
170
- export class UploadsClient {
171
- #executor;
172
- constructor(executor) {
173
- this.#executor = executor;
174
- }
175
- /** `POST /api/uploads/{uploadId}/completions` — Verify an admitted upload and publish it only if its private overwrite intent is still current. */
176
- async uploadComplete(params) {
177
- return this.#executor.execute("upload_complete", { uploadId: params.uploadId }, { body: params.body, idempotencyKey: params.idempotencyKey });
178
- }
179
- /** `POST /api/uploads` — Admit a direct upload for one current workspace-file name and return every bounded part grant. */
180
- async uploadCreate(params) {
181
- return this.#executor.execute("upload_create", {}, { body: params.body, idempotencyKey: params.idempotencyKey });
182
- }
183
- }
184
- /**
185
- * The resource namespaces the client exposes.
186
- *
187
- * The client extends this rather than listing the namespaces itself, so a
188
- * fragment whose last served operation lands or leaves cannot be forgotten
189
- * in the hand-written half.
190
- */
191
- export class GeneratedResources {
192
- /** The `api-keys` operations. */
193
- apiKeys = new ApiKeysClient(this);
194
- /** The `auth` operations. */
195
- auth = new AuthClient(this);
196
- /** The `billing` operations. */
197
- billing = new BillingClient(this);
198
- /** The `bootstrap` operations. */
199
- bootstrap = new BootstrapClient(this);
200
- /** The `registry` operations. */
201
- registry = new RegistryClient(this);
202
- /** The `sessions` operations. */
203
- sessions = new SessionsClient(this);
204
- /** The `uploads` operations. */
205
- uploads = new UploadsClient(this);
206
- }
207
- //# sourceMappingURL=resources.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"resources.js","sourceRoot":"","sources":["../../src/generated/resources.ts"],"names":[],"mappings":"AAAA,+CAA+C;AAC/C,2FAA2F;AAwC3F,iCAAiC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,cAAc,EAAE,CAAC,CAAC;IAC3I,CAAC;CACF;AAED;;;;;;GAMG;AACH,MAAM,OAAgB,kBAAkB;IAYtC,iCAAiC;IACxB,OAAO,GAAkB,IAAI,aAAa,CAAC,IAAI,CAAC,CAAC;IAE1D,6BAA6B;IACpB,IAAI,GAAe,IAAI,UAAU,CAAC,IAAI,CAAC,CAAC;IAEjD,gCAAgC;IACvB,OAAO,GAAkB,IAAI,aAAa,CAAC,IAAI,CAAC,CAAC;IAE1D,kCAAkC;IACzB,SAAS,GAAoB,IAAI,eAAe,CAAC,IAAI,CAAC,CAAC;IAEhE,iCAAiC;IACxB,QAAQ,GAAmB,IAAI,cAAc,CAAC,IAAI,CAAC,CAAC;IAE7D,iCAAiC;IACxB,QAAQ,GAAmB,IAAI,cAAc,CAAC,IAAI,CAAC,CAAC;IAE7D,gCAAgC;IACvB,OAAO,GAAkB,IAAI,aAAa,CAAC,IAAI,CAAC,CAAC;CAC3D"}
@@ -1,44 +0,0 @@
1
- /**
2
- * The public route table, projected from the authored contract.
3
- *
4
- * The SDK is published with no runtime dependencies, so the table is emitted
5
- * into the package rather than imported from `@aexhq/wire`. Nothing here is
6
- * hand-maintained: `cargo run -p aex-contract-gen -- check` fails if this file
7
- * is not what the contract produces.
8
- */
9
- /** The contract the table below was projected from. */
10
- export declare const CONTRACT_DIGEST: "sha256:ec8637e9442587d0020caccfed0ab6fccef5a6d61dae1c162fe2d78e2af0dec8";
11
- export type RouteId = "api_key_create" | "api_key_revoke" | "api_keys_list" | "auth_config_get" | "billing_balance_get" | "billing_payment_method_delete" | "billing_payment_method_session_create" | "billing_payment_methods_list" | "billing_top_up_checkout_create" | "billing_transactions_list" | "billing_usage_get" | "dashboard_bootstrap_get" | "dashboard_session_create" | "dashboard_session_delete" | "registry_files_delete" | "registry_files_download_create" | "registry_files_get" | "registry_files_list" | "registry_files_put" | "session_cancel" | "session_create" | "session_delete" | "session_get" | "session_message_send" | "session_messages_list" | "session_messages_stream" | "session_telemetry_download_create" | "session_telemetry_replay" | "session_telemetry_stream" | "session_terminate" | "sessions_list" | "upload_complete" | "upload_create";
12
- export interface RouteDescriptor {
13
- /** The `operationId` the contract declares. */
14
- readonly id: RouteId;
15
- /** HTTP method. */
16
- readonly method: "DELETE" | "GET" | "POST" | "PUT";
17
- /** Path template, rooted at `/api`, with `{name}` placeholders. */
18
- readonly path: string;
19
- /** Which plane serves the operation. */
20
- readonly plane: "central" | "regional";
21
- /** Whether an identical retry is safe without a replay identity. */
22
- readonly safeRetry: boolean;
23
- /** Replay-identity requirement. */
24
- readonly idempotency: "idempotency_key" | "none" | "operation_id";
25
- /** How the response is delivered. */
26
- readonly transport: "ndjson" | "unary";
27
- /** How the request body is encoded. */
28
- readonly bodyClass: "aex_json" | "none";
29
- /** Path placeholders, in the order the contract declares them. */
30
- readonly pathParams: readonly string[];
31
- /** The closed set of query parameters the operation accepts. */
32
- readonly queryParams: readonly string[];
33
- /** Whether the operation still answers while the account is paused. */
34
- readonly pauseExempt: boolean;
35
- /**
36
- * Whether the contract declares the operation and nothing serves it yet.
37
- *
38
- * Informational only. The server is the sole authority on what it serves:
39
- * an installed SDK pins one contract digest forever, so refusing locally on
40
- * this flag would hard-fail a call to an operation that started working.
41
- */
42
- readonly deferred: boolean;
43
- }
44
- export declare const ROUTES: Readonly<Record<RouteId, RouteDescriptor>>;