@athenaintel/sdk 4.3.2165 → 4.3.2167
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 +1 -1
- package/dist/cjs/BaseClient.js +2 -2
- package/dist/cjs/api/resources/aop/client/Client.d.ts +54 -0
- package/dist/cjs/api/resources/aop/client/Client.js +196 -0
- package/dist/cjs/api/resources/aop/client/requests/AopBatchExecuteRequestIn.d.ts +34 -0
- package/dist/cjs/api/resources/aop/client/requests/AopBatchExecuteRequestIn.js +3 -0
- package/dist/cjs/api/resources/aop/client/requests/GetBatchStatusAopRequest.d.ts +18 -0
- package/dist/cjs/api/resources/aop/client/requests/GetBatchStatusAopRequest.js +3 -0
- package/dist/cjs/api/resources/aop/client/requests/index.d.ts +2 -0
- package/dist/cjs/api/resources/semanticModel/client/Client.d.ts +1 -1
- package/dist/cjs/api/resources/semanticModel/client/Client.js +1 -1
- package/dist/cjs/api/types/AopBatchExecuteResponseOut.d.ts +14 -0
- package/dist/cjs/api/types/AopBatchExecuteResponseOut.js +3 -0
- package/dist/cjs/api/types/AopBatchRunIn.d.ts +11 -0
- package/dist/cjs/api/types/AopBatchRunIn.js +3 -0
- package/dist/cjs/api/types/AopBatchRunLaunchOut.d.ts +15 -0
- package/dist/cjs/api/types/AopBatchRunLaunchOut.js +3 -0
- package/dist/cjs/api/types/AopBatchRunStatusOut.d.ts +21 -0
- package/dist/cjs/api/types/AopBatchRunStatusOut.js +3 -0
- package/dist/cjs/api/types/AopBatchStatusCountsOut.d.ts +12 -0
- package/dist/cjs/api/types/AopBatchStatusCountsOut.js +3 -0
- package/dist/cjs/api/types/AopBatchStatusResponseOut.d.ts +20 -0
- package/dist/cjs/api/types/AopBatchStatusResponseOut.js +3 -0
- package/dist/cjs/api/types/index.d.ts +6 -0
- package/dist/cjs/api/types/index.js +6 -0
- package/dist/cjs/version.d.ts +1 -1
- package/dist/cjs/version.js +1 -1
- package/dist/esm/BaseClient.mjs +2 -2
- package/dist/esm/api/resources/aop/client/Client.d.mts +54 -0
- package/dist/esm/api/resources/aop/client/Client.mjs +196 -0
- package/dist/esm/api/resources/aop/client/requests/AopBatchExecuteRequestIn.d.mts +34 -0
- package/dist/esm/api/resources/aop/client/requests/AopBatchExecuteRequestIn.mjs +2 -0
- package/dist/esm/api/resources/aop/client/requests/GetBatchStatusAopRequest.d.mts +18 -0
- package/dist/esm/api/resources/aop/client/requests/GetBatchStatusAopRequest.mjs +2 -0
- package/dist/esm/api/resources/aop/client/requests/index.d.mts +2 -0
- package/dist/esm/api/resources/semanticModel/client/Client.d.mts +1 -1
- package/dist/esm/api/resources/semanticModel/client/Client.mjs +1 -1
- package/dist/esm/api/types/AopBatchExecuteResponseOut.d.mts +14 -0
- package/dist/esm/api/types/AopBatchExecuteResponseOut.mjs +2 -0
- package/dist/esm/api/types/AopBatchRunIn.d.mts +11 -0
- package/dist/esm/api/types/AopBatchRunIn.mjs +2 -0
- package/dist/esm/api/types/AopBatchRunLaunchOut.d.mts +15 -0
- package/dist/esm/api/types/AopBatchRunLaunchOut.mjs +2 -0
- package/dist/esm/api/types/AopBatchRunStatusOut.d.mts +21 -0
- package/dist/esm/api/types/AopBatchRunStatusOut.mjs +2 -0
- package/dist/esm/api/types/AopBatchStatusCountsOut.d.mts +12 -0
- package/dist/esm/api/types/AopBatchStatusCountsOut.mjs +2 -0
- package/dist/esm/api/types/AopBatchStatusResponseOut.d.mts +20 -0
- package/dist/esm/api/types/AopBatchStatusResponseOut.mjs +2 -0
- package/dist/esm/api/types/index.d.mts +6 -0
- package/dist/esm/api/types/index.mjs +6 -0
- package/dist/esm/version.d.mts +1 -1
- package/dist/esm/version.mjs +1 -1
- package/package.json +1 -1
- package/reference.md +148 -1
package/reference.md
CHANGED
|
@@ -1,5 +1,72 @@
|
|
|
1
1
|
# Reference
|
|
2
2
|
## Aop
|
|
3
|
+
<details><summary><code>client.aop.<a href="/src/api/resources/aop/client/Client.ts">getBatchStatus</a>({ ...params }) -> AthenaIntelligence.AopBatchStatusResponseOut</code></summary>
|
|
4
|
+
<dl>
|
|
5
|
+
<dd>
|
|
6
|
+
|
|
7
|
+
#### 📝 Description
|
|
8
|
+
|
|
9
|
+
<dl>
|
|
10
|
+
<dd>
|
|
11
|
+
|
|
12
|
+
<dl>
|
|
13
|
+
<dd>
|
|
14
|
+
|
|
15
|
+
Aggregate lifecycle status of every run launched under a batch handle from `POST /aop/execute-batch`: counts per canonical run status, an `is_complete` flag, and a cursor-paged list of runs. Poll this once per batch instead of `GET /threads/{thread_id}/status` per thread; fetch a run's messages from the thread status endpoint only once it is terminal. This read never loads transcripts.
|
|
16
|
+
</dd>
|
|
17
|
+
</dl>
|
|
18
|
+
</dd>
|
|
19
|
+
</dl>
|
|
20
|
+
|
|
21
|
+
#### 🔌 Usage
|
|
22
|
+
|
|
23
|
+
<dl>
|
|
24
|
+
<dd>
|
|
25
|
+
|
|
26
|
+
<dl>
|
|
27
|
+
<dd>
|
|
28
|
+
|
|
29
|
+
```typescript
|
|
30
|
+
await client.aop.getBatchStatus({
|
|
31
|
+
batch_id: "batch_0f4c3c3e-1c1a-4a3e-9a5f-0d3f1a2b3c4d",
|
|
32
|
+
status: "terminal",
|
|
33
|
+
limit: 200
|
|
34
|
+
});
|
|
35
|
+
|
|
36
|
+
```
|
|
37
|
+
</dd>
|
|
38
|
+
</dl>
|
|
39
|
+
</dd>
|
|
40
|
+
</dl>
|
|
41
|
+
|
|
42
|
+
#### ⚙️ Parameters
|
|
43
|
+
|
|
44
|
+
<dl>
|
|
45
|
+
<dd>
|
|
46
|
+
|
|
47
|
+
<dl>
|
|
48
|
+
<dd>
|
|
49
|
+
|
|
50
|
+
**request:** `AthenaIntelligence.GetBatchStatusAopRequest`
|
|
51
|
+
|
|
52
|
+
</dd>
|
|
53
|
+
</dl>
|
|
54
|
+
|
|
55
|
+
<dl>
|
|
56
|
+
<dd>
|
|
57
|
+
|
|
58
|
+
**requestOptions:** `AopClient.RequestOptions`
|
|
59
|
+
|
|
60
|
+
</dd>
|
|
61
|
+
</dl>
|
|
62
|
+
</dd>
|
|
63
|
+
</dl>
|
|
64
|
+
|
|
65
|
+
|
|
66
|
+
</dd>
|
|
67
|
+
</dl>
|
|
68
|
+
</details>
|
|
69
|
+
|
|
3
70
|
<details><summary><code>client.aop.<a href="/src/api/resources/aop/client/Client.ts">create</a>({ ...params }) -> AthenaIntelligence.AopCreateResponseOut</code></summary>
|
|
4
71
|
<dl>
|
|
5
72
|
<dd>
|
|
@@ -214,6 +281,86 @@ await client.aop.executeAsync({
|
|
|
214
281
|
</dl>
|
|
215
282
|
|
|
216
283
|
|
|
284
|
+
</dd>
|
|
285
|
+
</dl>
|
|
286
|
+
</details>
|
|
287
|
+
|
|
288
|
+
<details><summary><code>client.aop.<a href="/src/api/resources/aop/client/Client.ts">executeBatch</a>({ ...params }) -> AthenaIntelligence.AopBatchExecuteResponseOut</code></summary>
|
|
289
|
+
<dl>
|
|
290
|
+
<dd>
|
|
291
|
+
|
|
292
|
+
#### 📝 Description
|
|
293
|
+
|
|
294
|
+
<dl>
|
|
295
|
+
<dd>
|
|
296
|
+
|
|
297
|
+
<dl>
|
|
298
|
+
<dd>
|
|
299
|
+
|
|
300
|
+
Start many Agent Operating Procedure (AOP) runs under one batch handle. Each run is queued exactly like `POST /aop/execute-async`; the response returns a `batch_id` so the caller polls `GET /aop/batches/{batch_id}` once per batch instead of once per thread. Pass the `batch_id` back to append more runs to the same batch. Runs are launched independently: a run that fails to launch is reported with an error and does not stop the others.
|
|
301
|
+
</dd>
|
|
302
|
+
</dl>
|
|
303
|
+
</dd>
|
|
304
|
+
</dl>
|
|
305
|
+
|
|
306
|
+
#### 🔌 Usage
|
|
307
|
+
|
|
308
|
+
<dl>
|
|
309
|
+
<dd>
|
|
310
|
+
|
|
311
|
+
<dl>
|
|
312
|
+
<dd>
|
|
313
|
+
|
|
314
|
+
```typescript
|
|
315
|
+
await client.aop.executeBatch({
|
|
316
|
+
asset_id: "asset_9249292-d118-42d3-95b4-00eccfe0754f",
|
|
317
|
+
run_budget: {
|
|
318
|
+
max_cost_usd: 30,
|
|
319
|
+
max_model_calls: 80
|
|
320
|
+
},
|
|
321
|
+
runs: [{
|
|
322
|
+
client_ref: "row-1",
|
|
323
|
+
user_inputs: {
|
|
324
|
+
"company": "Acme Corp"
|
|
325
|
+
}
|
|
326
|
+
}, {
|
|
327
|
+
client_ref: "row-2",
|
|
328
|
+
user_inputs: {
|
|
329
|
+
"company": "Globex"
|
|
330
|
+
}
|
|
331
|
+
}]
|
|
332
|
+
});
|
|
333
|
+
|
|
334
|
+
```
|
|
335
|
+
</dd>
|
|
336
|
+
</dl>
|
|
337
|
+
</dd>
|
|
338
|
+
</dl>
|
|
339
|
+
|
|
340
|
+
#### ⚙️ Parameters
|
|
341
|
+
|
|
342
|
+
<dl>
|
|
343
|
+
<dd>
|
|
344
|
+
|
|
345
|
+
<dl>
|
|
346
|
+
<dd>
|
|
347
|
+
|
|
348
|
+
**request:** `AthenaIntelligence.AopBatchExecuteRequestIn`
|
|
349
|
+
|
|
350
|
+
</dd>
|
|
351
|
+
</dl>
|
|
352
|
+
|
|
353
|
+
<dl>
|
|
354
|
+
<dd>
|
|
355
|
+
|
|
356
|
+
**requestOptions:** `AopClient.RequestOptions`
|
|
357
|
+
|
|
358
|
+
</dd>
|
|
359
|
+
</dl>
|
|
360
|
+
</dd>
|
|
361
|
+
</dl>
|
|
362
|
+
|
|
363
|
+
|
|
217
364
|
</dd>
|
|
218
365
|
</dl>
|
|
219
366
|
</details>
|
|
@@ -3135,7 +3282,7 @@ await client.query.executeSnippet({
|
|
|
3135
3282
|
<dl>
|
|
3136
3283
|
<dd>
|
|
3137
3284
|
|
|
3138
|
-
Generate a short-lived JWT token for direct access to the semantic model's Cube REST API. Use this token to query /cubejs-api/v1/load and /cubejs-api/v1/meta directly. Token expires after 1 hour. The token carries only a credential-free, user/workspace/schema-scoped authorization grant — database credentials are NOT included and are resolved server-side by Cube via callback.
|
|
3285
|
+
Generate a short-lived JWT token for direct access to the semantic model's Cube REST API. Use this token to query /cubejs-api/v1/load and /cubejs-api/v1/meta directly. Token expires after 1 hour. The token carries only a credential-free, user/workspace/schema-scoped authorization grant — database credentials are NOT included and are resolved server-side by Cube via callback. Lakehouse-backed models must use the authenticated query endpoint instead so namespace permissions are checked per query.
|
|
3139
3286
|
</dd>
|
|
3140
3287
|
</dl>
|
|
3141
3288
|
</dd>
|