@aexhq/sdk 0.52.0 → 0.53.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.
- package/README.md +99 -41
- package/dist/client/aex.d.ts +6 -1
- package/dist/client/aex.js +51 -10
- package/dist/client/aex.js.map +1 -1
- package/dist/client/credentials.d.ts +3 -3
- package/dist/client/credentials.js +8 -8
- package/dist/client/credentials.js.map +1 -1
- package/dist/client/routing.d.ts +1 -1
- package/dist/client/routing.js +2 -5
- package/dist/client/routing.js.map +1 -1
- package/dist/files/workspace-files.d.ts +55 -0
- package/dist/files/workspace-files.js +150 -0
- package/dist/files/workspace-files.js.map +1 -0
- package/dist/generated/errors.js +2 -17
- package/dist/generated/errors.js.map +1 -1
- package/dist/generated/models.d.ts +248 -796
- package/dist/generated/models.js +4 -4
- package/dist/generated/models.js.map +1 -1
- package/dist/generated/resources.d.ts +72 -519
- package/dist/generated/resources.js +49 -428
- package/dist/generated/resources.js.map +1 -1
- package/dist/generated/routes.d.ts +4 -4
- package/dist/generated/routes.js +190 -1600
- package/dist/generated/routes.js.map +1 -1
- package/dist/index.d.ts +4 -2
- package/dist/index.js +2 -1
- package/dist/index.js.map +1 -1
- package/dist/transport/transport.d.ts +9 -1
- package/dist/transport/transport.js +79 -1
- package/dist/transport/transport.js.map +1 -1
- package/package.json +1 -5
- package/dist/node/session-file-limits.d.ts +0 -4
- package/dist/node/session-file-limits.js +0 -7
- package/dist/node/session-file-limits.js.map +0 -1
- package/dist/node/session-files.d.ts +0 -80
- package/dist/node/session-files.js +0 -254
- package/dist/node/session-files.js.map +0 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// @generated by aex-contract-gen; DO NOT EDIT.
|
|
2
|
-
// Contract digest: sha256:
|
|
2
|
+
// Contract digest: sha256:e7f95cd7fc830a0871b1276cde9ae11e4245d0b843cd3dba567e133e551e051f
|
|
3
3
|
/** The `api-keys` operations. */
|
|
4
4
|
export class ApiKeysClient {
|
|
5
5
|
#executor;
|
|
@@ -33,18 +33,6 @@ export class AuthClient {
|
|
|
33
33
|
async dashboardSessionDelete() {
|
|
34
34
|
return this.#executor.execute("dashboard_session_delete");
|
|
35
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
36
|
}
|
|
49
37
|
/** The `billing` operations. */
|
|
50
38
|
export class BillingClient {
|
|
@@ -52,37 +40,33 @@ export class BillingClient {
|
|
|
52
40
|
constructor(executor) {
|
|
53
41
|
this.#executor = executor;
|
|
54
42
|
}
|
|
55
|
-
/** `GET /api/
|
|
56
|
-
async
|
|
57
|
-
return this.#executor.execute("
|
|
43
|
+
/** `GET /api/billing/balance` — Read the caller's prepaid balance and active reservations. */
|
|
44
|
+
async billingBalanceGet() {
|
|
45
|
+
return this.#executor.execute("billing_balance_get");
|
|
58
46
|
}
|
|
59
|
-
/** `
|
|
60
|
-
async
|
|
61
|
-
return this.#executor.execute("
|
|
47
|
+
/** `DELETE /api/billing/payment-methods/{paymentMethodId}` — Detach a card owned by the caller's account. */
|
|
48
|
+
async billingPaymentMethodDelete(params) {
|
|
49
|
+
return this.#executor.execute("billing_payment_method_delete", { paymentMethodId: params.paymentMethodId }, { idempotencyKey: params.idempotencyKey });
|
|
62
50
|
}
|
|
63
|
-
/** `
|
|
64
|
-
async
|
|
65
|
-
return this.#executor.execute("
|
|
51
|
+
/** `POST /api/billing/payment-method-sessions` — Create a Stripe-hosted card setup session with explicit consent. */
|
|
52
|
+
async billingPaymentMethodSessionCreate(params) {
|
|
53
|
+
return this.#executor.execute("billing_payment_method_session_create", {}, { body: params.body, idempotencyKey: params.idempotencyKey });
|
|
66
54
|
}
|
|
67
|
-
/** `
|
|
68
|
-
async
|
|
69
|
-
return this.#executor.execute("
|
|
55
|
+
/** `GET /api/billing/payment-methods` — List card display metadata for the caller's account. */
|
|
56
|
+
async billingPaymentMethodsList() {
|
|
57
|
+
return this.#executor.execute("billing_payment_methods_list");
|
|
70
58
|
}
|
|
71
|
-
/** `POST /api/
|
|
72
|
-
async
|
|
73
|
-
return this.#executor.execute("
|
|
59
|
+
/** `POST /api/billing/top-up-checkouts` — Create a one-time Stripe-hosted prepaid top-up checkout. */
|
|
60
|
+
async billingTopUpCheckoutCreate(params) {
|
|
61
|
+
return this.#executor.execute("billing_top_up_checkout_create", {}, { body: params.body, idempotencyKey: params.idempotencyKey });
|
|
74
62
|
}
|
|
75
|
-
/** `GET /api/
|
|
76
|
-
async
|
|
77
|
-
return this.#executor.execute("
|
|
63
|
+
/** `GET /api/billing/transactions` — List immutable prepaid ledger transactions, newest first. */
|
|
64
|
+
async billingTransactionsList(params = {}) {
|
|
65
|
+
return this.#executor.execute("billing_transactions_list", {}, { ...(params.query === undefined ? {} : { query: params.query }) });
|
|
78
66
|
}
|
|
79
|
-
/** `GET /api/
|
|
80
|
-
async
|
|
81
|
-
return this.#executor.execute("
|
|
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 });
|
|
67
|
+
/** `GET /api/billing/usage` — Read bounded rated usage and its settlement coverage. */
|
|
68
|
+
async billingUsageGet(params = {}) {
|
|
69
|
+
return this.#executor.execute("billing_usage_get", {}, { ...(params.query === undefined ? {} : { query: params.query }) });
|
|
86
70
|
}
|
|
87
71
|
}
|
|
88
72
|
/** The `bootstrap` operations. */
|
|
@@ -96,262 +80,29 @@ export class BootstrapClient {
|
|
|
96
80
|
return this.#executor.execute("dashboard_bootstrap_get");
|
|
97
81
|
}
|
|
98
82
|
}
|
|
99
|
-
/** The `files` operations. */
|
|
100
|
-
export class FilesClient {
|
|
101
|
-
#executor;
|
|
102
|
-
constructor(executor) {
|
|
103
|
-
this.#executor = executor;
|
|
104
|
-
}
|
|
105
|
-
/** `POST /api/sessions/{sessionId}/files/live/downloads/{fileDownloadId}/completion` — Re-stat, re-hash, and close an exact live-file download after SDK verification. */
|
|
106
|
-
async sessionFilesLiveDownloadComplete(params) {
|
|
107
|
-
return this.#executor.execute("session_files_live_download_complete", { sessionId: params.sessionId, fileDownloadId: params.fileDownloadId }, { body: params.body, idempotencyKey: params.idempotencyKey });
|
|
108
|
-
}
|
|
109
|
-
/** `POST /api/sessions/{sessionId}/files/live/downloads` — Open one exact-version live file directly from the retained generation, auto-resuming it. */
|
|
110
|
-
async sessionFilesLiveDownloadCreate(params) {
|
|
111
|
-
return this.#executor.execute("session_files_live_download_create", { sessionId: params.sessionId }, { body: params.body, idempotencyKey: params.idempotencyKey });
|
|
112
|
-
}
|
|
113
|
-
/** `DELETE /api/sessions/{sessionId}/files/live/downloads/{fileDownloadId}` — Close an abandoned live-file descriptor, auto-resuming the same generation. */
|
|
114
|
-
async sessionFilesLiveDownloadDelete(params) {
|
|
115
|
-
return this.#executor.execute("session_files_live_download_delete", { sessionId: params.sessionId, fileDownloadId: params.fileDownloadId });
|
|
116
|
-
}
|
|
117
|
-
/** `GET /api/sessions/{sessionId}/files/live/downloads/{fileDownloadId}/parts/{partNumber}` — Read one raw exact-version range directly from the retained generation. */
|
|
118
|
-
async sessionFilesLiveDownloadPartGet(params) {
|
|
119
|
-
return this.#executor.execute("session_files_live_download_part_get", { sessionId: params.sessionId, fileDownloadId: params.fileDownloadId, partNumber: String(params.partNumber) }, { query: params.query });
|
|
120
|
-
}
|
|
121
|
-
/** `POST /api/sessions/{sessionId}/files/live/list` — List the exact live generation, auto-resuming that same generation when suspended. */
|
|
122
|
-
async sessionFilesLiveList(params) {
|
|
123
|
-
return this.#executor.execute("session_files_live_list", { sessionId: params.sessionId }, { body: params.body });
|
|
124
|
-
}
|
|
125
|
-
/** `POST /api/sessions/{sessionId}/files/live/stat` — Stat one live path without following a symlink, auto-resuming the same generation. */
|
|
126
|
-
async sessionFilesLiveStat(params) {
|
|
127
|
-
return this.#executor.execute("session_files_live_stat", { sessionId: params.sessionId }, { body: params.body });
|
|
128
|
-
}
|
|
129
|
-
/** `POST /api/sessions/{sessionId}/files/live/uploads/{fileUploadId}/completion` — Verify every part and atomically publish one live file in the same generation. */
|
|
130
|
-
async sessionFilesLiveUploadComplete(params) {
|
|
131
|
-
return this.#executor.execute("session_files_live_upload_complete", { sessionId: params.sessionId, fileUploadId: params.fileUploadId }, { idempotencyKey: params.idempotencyKey });
|
|
132
|
-
}
|
|
133
|
-
/** `POST /api/sessions/{sessionId}/files/live/uploads` — Create a resumable upload in the exact live generation, auto-resuming it when suspended. */
|
|
134
|
-
async sessionFilesLiveUploadCreate(params) {
|
|
135
|
-
return this.#executor.execute("session_files_live_upload_create", { sessionId: params.sessionId }, { body: params.body, idempotencyKey: params.idempotencyKey });
|
|
136
|
-
}
|
|
137
|
-
/** `DELETE /api/sessions/{sessionId}/files/live/uploads/{fileUploadId}` — Abort a partial upload, auto-resuming the same generation to remove its temporary bytes. */
|
|
138
|
-
async sessionFilesLiveUploadDelete(params) {
|
|
139
|
-
return this.#executor.execute("session_files_live_upload_delete", { sessionId: params.sessionId, fileUploadId: params.fileUploadId });
|
|
140
|
-
}
|
|
141
|
-
/** `GET /api/sessions/{sessionId}/files/live/uploads/{fileUploadId}` — Read resumable live-upload state, auto-resuming the same generation. */
|
|
142
|
-
async sessionFilesLiveUploadGet(params) {
|
|
143
|
-
return this.#executor.execute("session_files_live_upload_get", { sessionId: params.sessionId, fileUploadId: params.fileUploadId });
|
|
144
|
-
}
|
|
145
|
-
/** `PUT /api/sessions/{sessionId}/files/live/uploads/{fileUploadId}/parts/{partNumber}` — Put one exact logical part directly into the retained generation. */
|
|
146
|
-
async sessionFilesLiveUploadPartPut(params) {
|
|
147
|
-
return this.#executor.execute("session_files_live_upload_part_put", { sessionId: params.sessionId, fileUploadId: params.fileUploadId, partNumber: String(params.partNumber) }, { query: params.query, body: params.body });
|
|
148
|
-
}
|
|
149
|
-
}
|
|
150
|
-
/** The `identity` operations. */
|
|
151
|
-
export class IdentityClient {
|
|
152
|
-
#executor;
|
|
153
|
-
constructor(executor) {
|
|
154
|
-
this.#executor = executor;
|
|
155
|
-
}
|
|
156
|
-
/** `GET /api/account` — Read the account and its operational state. */
|
|
157
|
-
async accountGet(params) {
|
|
158
|
-
return this.#executor.execute("account_get", {}, { query: params.query });
|
|
159
|
-
}
|
|
160
|
-
}
|
|
161
|
-
/** The `observations` operations. */
|
|
162
|
-
export class ObservationsClient {
|
|
163
|
-
#executor;
|
|
164
|
-
constructor(executor) {
|
|
165
|
-
this.#executor = executor;
|
|
166
|
-
}
|
|
167
|
-
/** `POST /api/observations/events/query` — Query workspace events observations. */
|
|
168
|
-
async observationsEventsQuery(params) {
|
|
169
|
-
return this.#executor.execute("observations_events_query", {}, { body: params.body });
|
|
170
|
-
}
|
|
171
|
-
/** `POST /api/observations/logs/query` — Query workspace logs observations. */
|
|
172
|
-
async observationsLogsQuery(params) {
|
|
173
|
-
return this.#executor.execute("observations_logs_query", {}, { body: params.body });
|
|
174
|
-
}
|
|
175
|
-
/** `POST /api/observations/metrics/aggregate` — Aggregate workspace metric observations. */
|
|
176
|
-
async observationsMetricsAggregate(params) {
|
|
177
|
-
return this.#executor.execute("observations_metrics_aggregate", {}, { body: params.body });
|
|
178
|
-
}
|
|
179
|
-
/** `POST /api/observations/metrics/query` — Query workspace metrics observations. */
|
|
180
|
-
async observationsMetricsQuery(params) {
|
|
181
|
-
return this.#executor.execute("observations_metrics_query", {}, { body: params.body });
|
|
182
|
-
}
|
|
183
|
-
/** `POST /api/observations/spans/query` — Query workspace spans observations. */
|
|
184
|
-
async observationsSpansQuery(params) {
|
|
185
|
-
return this.#executor.execute("observations_spans_query", {}, { body: params.body });
|
|
186
|
-
}
|
|
187
|
-
/** `POST /api/observations/telemetry/query` — Query workspace telemetry observations. */
|
|
188
|
-
async observationsTelemetryQuery(params) {
|
|
189
|
-
return this.#executor.execute("observations_telemetry_query", {}, { body: params.body });
|
|
190
|
-
}
|
|
191
|
-
/** `POST /api/observations/traces/query` — Query workspace traces observations. */
|
|
192
|
-
async observationsTracesQuery(params) {
|
|
193
|
-
return this.#executor.execute("observations_traces_query", {}, { body: params.body });
|
|
194
|
-
}
|
|
195
|
-
/** `POST /api/observations/{sessionId}/events/query` — Query session events observations. */
|
|
196
|
-
async sessionObservationsEventsQuery(params) {
|
|
197
|
-
return this.#executor.execute("session_observations_events_query", { sessionId: params.sessionId }, { body: params.body });
|
|
198
|
-
}
|
|
199
|
-
/** `POST /api/observations/{sessionId}/logs/query` — Query session logs observations. */
|
|
200
|
-
async sessionObservationsLogsQuery(params) {
|
|
201
|
-
return this.#executor.execute("session_observations_logs_query", { sessionId: params.sessionId }, { body: params.body });
|
|
202
|
-
}
|
|
203
|
-
/** `POST /api/observations/{sessionId}/metrics/aggregate` — Aggregate session metric observations. */
|
|
204
|
-
async sessionObservationsMetricsAggregate(params) {
|
|
205
|
-
return this.#executor.execute("session_observations_metrics_aggregate", { sessionId: params.sessionId }, { body: params.body });
|
|
206
|
-
}
|
|
207
|
-
/** `POST /api/observations/{sessionId}/metrics/query` — Query session metrics observations. */
|
|
208
|
-
async sessionObservationsMetricsQuery(params) {
|
|
209
|
-
return this.#executor.execute("session_observations_metrics_query", { sessionId: params.sessionId }, { body: params.body });
|
|
210
|
-
}
|
|
211
|
-
/** `POST /api/observations/{sessionId}/spans/query` — Query session spans observations. */
|
|
212
|
-
async sessionObservationsSpansQuery(params) {
|
|
213
|
-
return this.#executor.execute("session_observations_spans_query", { sessionId: params.sessionId }, { body: params.body });
|
|
214
|
-
}
|
|
215
|
-
/** `POST /api/observations/{sessionId}/telemetry/query` — Query session telemetry observations. */
|
|
216
|
-
async sessionObservationsTelemetryQuery(params) {
|
|
217
|
-
return this.#executor.execute("session_observations_telemetry_query", { sessionId: params.sessionId }, { body: params.body });
|
|
218
|
-
}
|
|
219
|
-
/** `GET /api/observations/{sessionId}/traces/{traceId}` — Read one assembled trace by its W3C identifier. */
|
|
220
|
-
async sessionObservationsTraceGet(params) {
|
|
221
|
-
return this.#executor.execute("session_observations_trace_get", { sessionId: params.sessionId, traceId: params.traceId });
|
|
222
|
-
}
|
|
223
|
-
/** `POST /api/observations/{sessionId}/traces/query` — Query session traces observations. */
|
|
224
|
-
async sessionObservationsTracesQuery(params) {
|
|
225
|
-
return this.#executor.execute("session_observations_traces_query", { sessionId: params.sessionId }, { body: params.body });
|
|
226
|
-
}
|
|
227
|
-
}
|
|
228
|
-
/** The `operations` operations. */
|
|
229
|
-
export class OperationsClient {
|
|
230
|
-
#executor;
|
|
231
|
-
constructor(executor) {
|
|
232
|
-
this.#executor = executor;
|
|
233
|
-
}
|
|
234
|
-
/** `POST /api/operations/{operationId}/cancellations` — Request cancellation of a central operation. */
|
|
235
|
-
async centralOperationCancel(params) {
|
|
236
|
-
return this.#executor.execute("central_operation_cancel", { operationId: params.operationId }, { body: params.body });
|
|
237
|
-
}
|
|
238
|
-
/** `GET /api/operations/{operationId}` — Read one central durable operation. */
|
|
239
|
-
async centralOperationGet(params) {
|
|
240
|
-
return this.#executor.execute("central_operation_get", { operationId: params.operationId });
|
|
241
|
-
}
|
|
242
|
-
/** `GET /api/operations` — List central durable operations for one organization. */
|
|
243
|
-
async centralOperationsList(params) {
|
|
244
|
-
return this.#executor.execute("central_operations_list", {}, { query: params.query });
|
|
245
|
-
}
|
|
246
|
-
/** `POST /api/operations/{operationId}/cancellations` — Request cancellation of a regional operation. */
|
|
247
|
-
async regionalOperationCancel(params) {
|
|
248
|
-
return this.#executor.execute("regional_operation_cancel", { operationId: params.operationId }, { body: params.body });
|
|
249
|
-
}
|
|
250
|
-
/** `GET /api/operations/{operationId}` — Read one regional durable operation. */
|
|
251
|
-
async regionalOperationGet(params) {
|
|
252
|
-
return this.#executor.execute("regional_operation_get", { operationId: params.operationId });
|
|
253
|
-
}
|
|
254
|
-
/** `GET /api/operations` — List regional durable operations. */
|
|
255
|
-
async regionalOperationsList(params = {}) {
|
|
256
|
-
return this.#executor.execute("regional_operations_list", {}, { ...(params.query === undefined ? {} : { query: params.query }) });
|
|
257
|
-
}
|
|
258
|
-
}
|
|
259
|
-
/** The `organizations` operations. */
|
|
260
|
-
export class OrganizationsClient {
|
|
261
|
-
#executor;
|
|
262
|
-
constructor(executor) {
|
|
263
|
-
this.#executor = executor;
|
|
264
|
-
}
|
|
265
|
-
/** `POST /api/invitations/acceptances` — Redeem every pending invitation addressed to the caller's verified email. */
|
|
266
|
-
async invitationAccept(params) {
|
|
267
|
-
return this.#executor.execute("invitation_accept", {}, { body: params.body });
|
|
268
|
-
}
|
|
269
|
-
/** `POST /api/organizations/{organizationId}/invitations` — Invite a person to the organization. */
|
|
270
|
-
async invitationCreate(params) {
|
|
271
|
-
return this.#executor.execute("invitation_create", { organizationId: params.organizationId }, { body: params.body, idempotencyKey: params.idempotencyKey });
|
|
272
|
-
}
|
|
273
|
-
/** `GET /api/organizations/{organizationId}/memberships` — List the memberships of an organization. */
|
|
274
|
-
async membershipsList(params) {
|
|
275
|
-
return this.#executor.execute("memberships_list", { organizationId: params.organizationId }, { ...(params.query === undefined ? {} : { query: params.query }) });
|
|
276
|
-
}
|
|
277
|
-
/** `POST /api/organizations` — Create an organization whose creator becomes owner. */
|
|
278
|
-
async organizationCreate(params) {
|
|
279
|
-
return this.#executor.execute("organization_create", {}, { body: params.body, idempotencyKey: params.idempotencyKey });
|
|
280
|
-
}
|
|
281
|
-
/** `GET /api/organizations/{organizationId}` — Read one organization. */
|
|
282
|
-
async organizationGet(params) {
|
|
283
|
-
return this.#executor.execute("organization_get", { organizationId: params.organizationId });
|
|
284
|
-
}
|
|
285
|
-
/** `GET /api/organizations` — List organizations the caller belongs to. */
|
|
286
|
-
async organizationsList(params = {}) {
|
|
287
|
-
return this.#executor.execute("organizations_list", {}, { ...(params.query === undefined ? {} : { query: params.query }) });
|
|
288
|
-
}
|
|
289
|
-
}
|
|
290
|
-
/** The `otlp` operations. */
|
|
291
|
-
export class OtlpClient {
|
|
292
|
-
#executor;
|
|
293
|
-
constructor(executor) {
|
|
294
|
-
this.#executor = executor;
|
|
295
|
-
}
|
|
296
|
-
/** `POST /api/otlp/v1/logs` — Admit an OTLP logs batch. */
|
|
297
|
-
async otlpLogsIngest(params) {
|
|
298
|
-
return this.#executor.execute("otlp_logs_ingest", {}, { body: params.body, idempotencyKey: params.idempotencyKey });
|
|
299
|
-
}
|
|
300
|
-
/** `POST /api/otlp/v1/metrics` — Admit an OTLP metrics batch. */
|
|
301
|
-
async otlpMetricsIngest(params) {
|
|
302
|
-
return this.#executor.execute("otlp_metrics_ingest", {}, { body: params.body, idempotencyKey: params.idempotencyKey });
|
|
303
|
-
}
|
|
304
|
-
/** `POST /api/otlp/v1/traces` — Admit an OTLP traces batch. */
|
|
305
|
-
async otlpTracesIngest(params) {
|
|
306
|
-
return this.#executor.execute("otlp_traces_ingest", {}, { body: params.body, idempotencyKey: params.idempotencyKey });
|
|
307
|
-
}
|
|
308
|
-
}
|
|
309
|
-
/** The `provider-credentials` operations. */
|
|
310
|
-
export class ProviderCredentialsClient {
|
|
311
|
-
#executor;
|
|
312
|
-
constructor(executor) {
|
|
313
|
-
this.#executor = executor;
|
|
314
|
-
}
|
|
315
|
-
/** `GET /api/workspace/provider-credentials/{providerCredentialId}` — Read one BYOK provider-credential binding. */
|
|
316
|
-
async providerCredentialGet(params) {
|
|
317
|
-
return this.#executor.execute("provider_credential_get", { providerCredentialId: params.providerCredentialId });
|
|
318
|
-
}
|
|
319
|
-
/** `POST /api/workspace/provider-credentials` — Register a dedicated BYOK provider credential; carries plaintext once. */
|
|
320
|
-
async providerCredentialRegister(params) {
|
|
321
|
-
return this.#executor.execute("provider_credential_register", {}, { body: params.body, idempotencyKey: params.idempotencyKey });
|
|
322
|
-
}
|
|
323
|
-
/** `POST /api/workspace/provider-credentials/{providerCredentialId}/revocations` — Revoke a BYOK provider-credential binding. */
|
|
324
|
-
async providerCredentialRevoke(params) {
|
|
325
|
-
return this.#executor.execute("provider_credential_revoke", { providerCredentialId: params.providerCredentialId }, { body: params.body, idempotencyKey: params.idempotencyKey });
|
|
326
|
-
}
|
|
327
|
-
/** `GET /api/workspace/provider-credentials` — List BYOK provider-credential binding metadata. */
|
|
328
|
-
async providerCredentialsList(params = {}) {
|
|
329
|
-
return this.#executor.execute("provider_credentials_list", {}, { ...(params.query === undefined ? {} : { query: params.query }) });
|
|
330
|
-
}
|
|
331
|
-
}
|
|
332
83
|
/** The `registry` operations. */
|
|
333
84
|
export class RegistryClient {
|
|
334
85
|
#executor;
|
|
335
86
|
constructor(executor) {
|
|
336
87
|
this.#executor = executor;
|
|
337
88
|
}
|
|
338
|
-
/** `DELETE /api/
|
|
89
|
+
/** `DELETE /api/files/{name}` — Delete one current workspace file. */
|
|
339
90
|
async registryFilesDelete(params) {
|
|
340
91
|
return this.#executor.execute("registry_files_delete", { name: params.name });
|
|
341
92
|
}
|
|
342
|
-
/** `POST /api/
|
|
93
|
+
/** `POST /api/files/{name}/downloads` — Mint a download grant for a ready current workspace file. */
|
|
343
94
|
async registryFilesDownloadCreate(params) {
|
|
344
95
|
return this.#executor.execute("registry_files_download_create", { name: params.name }, { body: params.body, idempotencyKey: params.idempotencyKey });
|
|
345
96
|
}
|
|
346
|
-
/** `GET /api/
|
|
97
|
+
/** `GET /api/files/{name}` — Read one current workspace file. */
|
|
347
98
|
async registryFilesGet(params) {
|
|
348
99
|
return this.#executor.execute("registry_files_get", { name: params.name });
|
|
349
100
|
}
|
|
350
|
-
/** `GET /api/
|
|
101
|
+
/** `GET /api/files` — List current workspace files. */
|
|
351
102
|
async registryFilesList(params = {}) {
|
|
352
103
|
return this.#executor.execute("registry_files_list", {}, { ...(params.query === undefined ? {} : { query: params.query }) });
|
|
353
104
|
}
|
|
354
|
-
/** `PUT /api/
|
|
105
|
+
/** `PUT /api/files/{name}` — Replace one current workspace file from inline bytes or an HTTPS URL. */
|
|
355
106
|
async registryFilesPut(params) {
|
|
356
107
|
return this.#executor.execute("registry_files_put", { name: params.name }, { body: params.body, idempotencyKey: params.idempotencyKey });
|
|
357
108
|
}
|
|
@@ -366,35 +117,43 @@ export class SessionsClient {
|
|
|
366
117
|
async sessionCancel(params) {
|
|
367
118
|
return this.#executor.execute("session_cancel", { sessionId: params.sessionId }, { body: params.body, operationId: params.operationId });
|
|
368
119
|
}
|
|
369
|
-
/** `POST /api/sessions` — Create
|
|
120
|
+
/** `POST /api/sessions` — Create a durable session and eagerly prepare its default-on sandbox in the background. */
|
|
370
121
|
async sessionCreate(params) {
|
|
371
122
|
return this.#executor.execute("session_create", {}, { body: params.body, idempotencyKey: params.idempotencyKey });
|
|
372
123
|
}
|
|
373
|
-
/** `POST /api/sessions/{sessionId}/deletions` — Irreversibly delete
|
|
124
|
+
/** `POST /api/sessions/{sessionId}/deletions` — Irreversibly delete session-scoped user content; independent workspace files remain. */
|
|
374
125
|
async sessionDelete(params) {
|
|
375
126
|
return this.#executor.execute("session_delete", { sessionId: params.sessionId }, { body: params.body, operationId: params.operationId });
|
|
376
127
|
}
|
|
377
|
-
/** `GET /api/sessions/{sessionId}` — Read session metadata
|
|
128
|
+
/** `GET /api/sessions/{sessionId}` — Read durable session metadata and sandbox preparation state. */
|
|
378
129
|
async sessionGet(params) {
|
|
379
130
|
return this.#executor.execute("session_get", { sessionId: params.sessionId });
|
|
380
131
|
}
|
|
381
|
-
/** `POST /api/sessions/{sessionId}/messages` —
|
|
132
|
+
/** `POST /api/sessions/{sessionId}/messages` — Admit one text message; file paths are referenced in text, never attached. */
|
|
382
133
|
async sessionMessageSend(params) {
|
|
383
134
|
return this.#executor.execute("session_message_send", { sessionId: params.sessionId }, { body: params.body, idempotencyKey: params.idempotencyKey });
|
|
384
135
|
}
|
|
385
|
-
/** `GET /api/sessions/{sessionId}/messages` — List complete
|
|
136
|
+
/** `GET /api/sessions/{sessionId}/messages` — List complete committed messages in immutable seal order. */
|
|
386
137
|
async sessionMessagesList(params) {
|
|
387
138
|
return this.#executor.execute("session_messages_list", { sessionId: params.sessionId }, { ...(params.query === undefined ? {} : { query: params.query }) });
|
|
388
139
|
}
|
|
389
|
-
/** `
|
|
390
|
-
|
|
391
|
-
return this.#executor.
|
|
140
|
+
/** `GET /api/sessions/{sessionId}/messages/stream` — Stream bounded assistant previews plus commit/reconcile/gap frames. */
|
|
141
|
+
sessionMessagesStream(params) {
|
|
142
|
+
return this.#executor.stream("session_messages_stream", { sessionId: params.sessionId }, { ...(params.query === undefined ? {} : { query: params.query }) });
|
|
392
143
|
}
|
|
393
|
-
/** `POST /api/sessions/{sessionId}/
|
|
394
|
-
async
|
|
395
|
-
return this.#executor.execute("
|
|
144
|
+
/** `POST /api/sessions/{sessionId}/telemetry/downloads` — Mint a short-lived download for a bounded retained telemetry export. */
|
|
145
|
+
async sessionTelemetryDownloadCreate(params) {
|
|
146
|
+
return this.#executor.execute("session_telemetry_download_create", { sessionId: params.sessionId }, { body: params.body, idempotencyKey: params.idempotencyKey });
|
|
396
147
|
}
|
|
397
|
-
/** `
|
|
148
|
+
/** `GET /api/sessions/{sessionId}/telemetry/replay` — Replay retained telemetry from compressed immutable S3 segments. */
|
|
149
|
+
sessionTelemetryReplay(params) {
|
|
150
|
+
return this.#executor.stream("session_telemetry_replay", { sessionId: params.sessionId }, { ...(params.query === undefined ? {} : { query: params.query }) });
|
|
151
|
+
}
|
|
152
|
+
/** `GET /api/sessions/{sessionId}/telemetry/stream` — Stream live trusted assistant, tool, runtime, Logs and Traces telemetry with bounded previews. */
|
|
153
|
+
sessionTelemetryStream(params) {
|
|
154
|
+
return this.#executor.stream("session_telemetry_stream", { sessionId: params.sessionId }, { ...(params.query === undefined ? {} : { query: params.query }) });
|
|
155
|
+
}
|
|
156
|
+
/** `POST /api/sessions/{sessionId}/terminations` — Destroy sandbox compute while retaining session metadata and messages. */
|
|
398
157
|
async sessionTerminate(params) {
|
|
399
158
|
return this.#executor.execute("session_terminate", { sessionId: params.sessionId }, { body: params.body, operationId: params.operationId });
|
|
400
159
|
}
|
|
@@ -403,136 +162,20 @@ export class SessionsClient {
|
|
|
403
162
|
return this.#executor.execute("sessions_list", {}, { ...(params.query === undefined ? {} : { query: params.query }) });
|
|
404
163
|
}
|
|
405
164
|
}
|
|
406
|
-
/** The `telemetry-lifecycle` operations. */
|
|
407
|
-
export class TelemetryLifecycleClient {
|
|
408
|
-
#executor;
|
|
409
|
-
constructor(executor) {
|
|
410
|
-
this.#executor = executor;
|
|
411
|
-
}
|
|
412
|
-
/** `POST /api/observations/{sessionId}/telemetry/exports` — Admit the durable session telemetry-export operation. */
|
|
413
|
-
async sessionTelemetryExportCreate(params) {
|
|
414
|
-
return this.#executor.execute("session_telemetry_export_create", { sessionId: params.sessionId }, { body: params.body, operationId: params.operationId });
|
|
415
|
-
}
|
|
416
|
-
/** `POST /api/observations/{sessionId}/telemetry/exports/{exportId}/downloads` — Mint a download grant for a ready session telemetry export. */
|
|
417
|
-
async sessionTelemetryExportDownloadCreate(params) {
|
|
418
|
-
return this.#executor.execute("session_telemetry_export_download_create", { sessionId: params.sessionId, exportId: params.exportId }, { body: params.body, idempotencyKey: params.idempotencyKey });
|
|
419
|
-
}
|
|
420
|
-
/** `GET /api/observations/{sessionId}/telemetry/exports/{exportId}` — Read one session telemetry export record. */
|
|
421
|
-
async sessionTelemetryExportGet(params) {
|
|
422
|
-
return this.#executor.execute("session_telemetry_export_get", { sessionId: params.sessionId, exportId: params.exportId });
|
|
423
|
-
}
|
|
424
|
-
/** `POST /api/observations/{sessionId}/telemetry/exports/{exportId}/revocations` — Revoke a session telemetry export and its outstanding grants. */
|
|
425
|
-
async sessionTelemetryExportRevoke(params) {
|
|
426
|
-
return this.#executor.execute("session_telemetry_export_revoke", { sessionId: params.sessionId, exportId: params.exportId }, { body: params.body, idempotencyKey: params.idempotencyKey });
|
|
427
|
-
}
|
|
428
|
-
/** `GET /api/observations/{sessionId}/telemetry/gaps/{gapId}` — Read one recorded session telemetry gap. */
|
|
429
|
-
async sessionTelemetryGapGet(params) {
|
|
430
|
-
return this.#executor.execute("session_telemetry_gap_get", { sessionId: params.sessionId, gapId: params.gapId });
|
|
431
|
-
}
|
|
432
|
-
/** `POST /api/observations/{sessionId}/telemetry/gaps/query` — Query recorded session telemetry gaps. */
|
|
433
|
-
async sessionTelemetryGapsQuery(params) {
|
|
434
|
-
return this.#executor.execute("session_telemetry_gaps_query", { sessionId: params.sessionId }, { body: params.body });
|
|
435
|
-
}
|
|
436
|
-
/** `POST /api/observations/telemetry/exports` — Admit the durable workspace telemetry-export operation. */
|
|
437
|
-
async telemetryExportCreate(params) {
|
|
438
|
-
return this.#executor.execute("telemetry_export_create", {}, { body: params.body, operationId: params.operationId });
|
|
439
|
-
}
|
|
440
|
-
/** `POST /api/observations/telemetry/exports/{exportId}/downloads` — Mint a download grant for a ready telemetry export. */
|
|
441
|
-
async telemetryExportDownloadCreate(params) {
|
|
442
|
-
return this.#executor.execute("telemetry_export_download_create", { exportId: params.exportId }, { body: params.body, idempotencyKey: params.idempotencyKey });
|
|
443
|
-
}
|
|
444
|
-
/** `GET /api/observations/telemetry/exports/{exportId}` — Read one telemetry export record. */
|
|
445
|
-
async telemetryExportGet(params) {
|
|
446
|
-
return this.#executor.execute("telemetry_export_get", { exportId: params.exportId });
|
|
447
|
-
}
|
|
448
|
-
/** `POST /api/observations/telemetry/exports/{exportId}/revocations` — Revoke a telemetry export and its outstanding grants. */
|
|
449
|
-
async telemetryExportRevoke(params) {
|
|
450
|
-
return this.#executor.execute("telemetry_export_revoke", { exportId: params.exportId }, { body: params.body, idempotencyKey: params.idempotencyKey });
|
|
451
|
-
}
|
|
452
|
-
/** `GET /api/observations/telemetry/gaps/{gapId}` — Read one recorded telemetry gap. */
|
|
453
|
-
async telemetryGapGet(params) {
|
|
454
|
-
return this.#executor.execute("telemetry_gap_get", { gapId: params.gapId });
|
|
455
|
-
}
|
|
456
|
-
/** `POST /api/observations/telemetry/gaps/query` — Query recorded workspace telemetry gaps. */
|
|
457
|
-
async telemetryGapsQuery(params) {
|
|
458
|
-
return this.#executor.execute("telemetry_gaps_query", {}, { body: params.body });
|
|
459
|
-
}
|
|
460
|
-
}
|
|
461
165
|
/** The `uploads` operations. */
|
|
462
166
|
export class UploadsClient {
|
|
463
167
|
#executor;
|
|
464
168
|
constructor(executor) {
|
|
465
169
|
this.#executor = executor;
|
|
466
170
|
}
|
|
467
|
-
/** `
|
|
468
|
-
async uploadAbort(params) {
|
|
469
|
-
return this.#executor.execute("upload_abort", { uploadId: params.uploadId });
|
|
470
|
-
}
|
|
471
|
-
/** `POST /api/workspace/uploads/{uploadId}/completion` — Complete a staged upload. */
|
|
171
|
+
/** `POST /api/uploads/{uploadId}/completions` — Verify an admitted upload and publish it only if its private overwrite intent is still current. */
|
|
472
172
|
async uploadComplete(params) {
|
|
473
173
|
return this.#executor.execute("upload_complete", { uploadId: params.uploadId }, { body: params.body, idempotencyKey: params.idempotencyKey });
|
|
474
174
|
}
|
|
475
|
-
/** `POST /api/
|
|
175
|
+
/** `POST /api/uploads` — Admit a direct upload for one current workspace-file name and return every bounded part grant. */
|
|
476
176
|
async uploadCreate(params) {
|
|
477
177
|
return this.#executor.execute("upload_create", {}, { body: params.body, idempotencyKey: params.idempotencyKey });
|
|
478
178
|
}
|
|
479
|
-
/** `POST /api/workspace/uploads/{uploadId}/parts` — Mint presigned PUT grants for the named parts. */
|
|
480
|
-
async uploadPartsGrant(params) {
|
|
481
|
-
return this.#executor.execute("upload_parts_grant", { uploadId: params.uploadId }, { body: params.body });
|
|
482
|
-
}
|
|
483
|
-
}
|
|
484
|
-
/** The `usage` operations. */
|
|
485
|
-
export class UsageClient {
|
|
486
|
-
#executor;
|
|
487
|
-
constructor(executor) {
|
|
488
|
-
this.#executor = executor;
|
|
489
|
-
}
|
|
490
|
-
/** `POST /api/billing/usage/query` — Query rated usage for this workspace. */
|
|
491
|
-
async usageQuery(params) {
|
|
492
|
-
return this.#executor.execute("usage_query", {}, { ...(params.query === undefined ? {} : { query: params.query }), body: params.body });
|
|
493
|
-
}
|
|
494
|
-
}
|
|
495
|
-
/** The `workspace` operations. */
|
|
496
|
-
export class WorkspaceClient {
|
|
497
|
-
#executor;
|
|
498
|
-
constructor(executor) {
|
|
499
|
-
this.#executor = executor;
|
|
500
|
-
}
|
|
501
|
-
/** `GET /api/workspace` — Read the workspace this credential is pinned to. */
|
|
502
|
-
async workspaceCurrentGet() {
|
|
503
|
-
return this.#executor.execute("workspace_current_get");
|
|
504
|
-
}
|
|
505
|
-
/** `GET /api/workspace/limits/{limitId}` — Read one effective workspace safety limit. */
|
|
506
|
-
async workspaceLimitGet(params) {
|
|
507
|
-
return this.#executor.execute("workspace_limit_get", { limitId: params.limitId });
|
|
508
|
-
}
|
|
509
|
-
/** `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. */
|
|
510
|
-
async workspaceLimitsList() {
|
|
511
|
-
return this.#executor.execute("workspace_limits_list");
|
|
512
|
-
}
|
|
513
|
-
}
|
|
514
|
-
/** The `workspaces` operations. */
|
|
515
|
-
export class WorkspacesClient {
|
|
516
|
-
#executor;
|
|
517
|
-
constructor(executor) {
|
|
518
|
-
this.#executor = executor;
|
|
519
|
-
}
|
|
520
|
-
/** `POST /api/workspaces` — Create a region-pinned workspace. */
|
|
521
|
-
async workspaceCreate(params) {
|
|
522
|
-
return this.#executor.execute("workspace_create", {}, { body: params.body, idempotencyKey: params.idempotencyKey });
|
|
523
|
-
}
|
|
524
|
-
/** `POST /api/workspaces/{workspaceId}/deletions` — Admit the global workspace-deletion operation. */
|
|
525
|
-
async workspaceDelete(params) {
|
|
526
|
-
return this.#executor.execute("workspace_delete", { workspaceId: params.workspaceId }, { body: params.body, operationId: params.operationId });
|
|
527
|
-
}
|
|
528
|
-
/** `GET /api/workspaces/{workspaceId}` — Read one workspace. */
|
|
529
|
-
async workspaceGet(params) {
|
|
530
|
-
return this.#executor.execute("workspace_get", { workspaceId: params.workspaceId });
|
|
531
|
-
}
|
|
532
|
-
/** `GET /api/workspaces` — List workspaces the caller can reach. */
|
|
533
|
-
async workspacesList(params = {}) {
|
|
534
|
-
return this.#executor.execute("workspaces_list", {}, { ...(params.query === undefined ? {} : { query: params.query }) });
|
|
535
|
-
}
|
|
536
179
|
}
|
|
537
180
|
/**
|
|
538
181
|
* The resource namespaces the client exposes.
|
|
@@ -550,33 +193,11 @@ export class GeneratedResources {
|
|
|
550
193
|
billing = new BillingClient(this);
|
|
551
194
|
/** The `bootstrap` operations. */
|
|
552
195
|
bootstrap = new BootstrapClient(this);
|
|
553
|
-
/** The `files` operations. */
|
|
554
|
-
files = new FilesClient(this);
|
|
555
|
-
/** The `identity` operations. */
|
|
556
|
-
identity = new IdentityClient(this);
|
|
557
|
-
/** The `observations` operations. */
|
|
558
|
-
observations = new ObservationsClient(this);
|
|
559
|
-
/** The `operations` operations. */
|
|
560
|
-
operations = new OperationsClient(this);
|
|
561
|
-
/** The `organizations` operations. */
|
|
562
|
-
organizations = new OrganizationsClient(this);
|
|
563
|
-
/** The `otlp` operations. */
|
|
564
|
-
otlp = new OtlpClient(this);
|
|
565
|
-
/** The `provider-credentials` operations. */
|
|
566
|
-
providerCredentials = new ProviderCredentialsClient(this);
|
|
567
196
|
/** The `registry` operations. */
|
|
568
197
|
registry = new RegistryClient(this);
|
|
569
198
|
/** The `sessions` operations. */
|
|
570
199
|
sessions = new SessionsClient(this);
|
|
571
|
-
/** The `telemetry-lifecycle` operations. */
|
|
572
|
-
telemetryLifecycle = new TelemetryLifecycleClient(this);
|
|
573
200
|
/** The `uploads` operations. */
|
|
574
201
|
uploads = new UploadsClient(this);
|
|
575
|
-
/** The `usage` operations. */
|
|
576
|
-
usage = new UsageClient(this);
|
|
577
|
-
/** The `workspace` operations. */
|
|
578
|
-
workspace = new WorkspaceClient(this);
|
|
579
|
-
/** The `workspaces` operations. */
|
|
580
|
-
workspaces = new WorkspacesClient(this);
|
|
581
202
|
}
|
|
582
203
|
//# sourceMappingURL=resources.js.map
|