@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.
Files changed (55) hide show
  1. package/README.md +1 -1
  2. package/dist/cjs/BaseClient.js +2 -2
  3. package/dist/cjs/api/resources/aop/client/Client.d.ts +54 -0
  4. package/dist/cjs/api/resources/aop/client/Client.js +196 -0
  5. package/dist/cjs/api/resources/aop/client/requests/AopBatchExecuteRequestIn.d.ts +34 -0
  6. package/dist/cjs/api/resources/aop/client/requests/AopBatchExecuteRequestIn.js +3 -0
  7. package/dist/cjs/api/resources/aop/client/requests/GetBatchStatusAopRequest.d.ts +18 -0
  8. package/dist/cjs/api/resources/aop/client/requests/GetBatchStatusAopRequest.js +3 -0
  9. package/dist/cjs/api/resources/aop/client/requests/index.d.ts +2 -0
  10. package/dist/cjs/api/resources/semanticModel/client/Client.d.ts +1 -1
  11. package/dist/cjs/api/resources/semanticModel/client/Client.js +1 -1
  12. package/dist/cjs/api/types/AopBatchExecuteResponseOut.d.ts +14 -0
  13. package/dist/cjs/api/types/AopBatchExecuteResponseOut.js +3 -0
  14. package/dist/cjs/api/types/AopBatchRunIn.d.ts +11 -0
  15. package/dist/cjs/api/types/AopBatchRunIn.js +3 -0
  16. package/dist/cjs/api/types/AopBatchRunLaunchOut.d.ts +15 -0
  17. package/dist/cjs/api/types/AopBatchRunLaunchOut.js +3 -0
  18. package/dist/cjs/api/types/AopBatchRunStatusOut.d.ts +21 -0
  19. package/dist/cjs/api/types/AopBatchRunStatusOut.js +3 -0
  20. package/dist/cjs/api/types/AopBatchStatusCountsOut.d.ts +12 -0
  21. package/dist/cjs/api/types/AopBatchStatusCountsOut.js +3 -0
  22. package/dist/cjs/api/types/AopBatchStatusResponseOut.d.ts +20 -0
  23. package/dist/cjs/api/types/AopBatchStatusResponseOut.js +3 -0
  24. package/dist/cjs/api/types/index.d.ts +6 -0
  25. package/dist/cjs/api/types/index.js +6 -0
  26. package/dist/cjs/version.d.ts +1 -1
  27. package/dist/cjs/version.js +1 -1
  28. package/dist/esm/BaseClient.mjs +2 -2
  29. package/dist/esm/api/resources/aop/client/Client.d.mts +54 -0
  30. package/dist/esm/api/resources/aop/client/Client.mjs +196 -0
  31. package/dist/esm/api/resources/aop/client/requests/AopBatchExecuteRequestIn.d.mts +34 -0
  32. package/dist/esm/api/resources/aop/client/requests/AopBatchExecuteRequestIn.mjs +2 -0
  33. package/dist/esm/api/resources/aop/client/requests/GetBatchStatusAopRequest.d.mts +18 -0
  34. package/dist/esm/api/resources/aop/client/requests/GetBatchStatusAopRequest.mjs +2 -0
  35. package/dist/esm/api/resources/aop/client/requests/index.d.mts +2 -0
  36. package/dist/esm/api/resources/semanticModel/client/Client.d.mts +1 -1
  37. package/dist/esm/api/resources/semanticModel/client/Client.mjs +1 -1
  38. package/dist/esm/api/types/AopBatchExecuteResponseOut.d.mts +14 -0
  39. package/dist/esm/api/types/AopBatchExecuteResponseOut.mjs +2 -0
  40. package/dist/esm/api/types/AopBatchRunIn.d.mts +11 -0
  41. package/dist/esm/api/types/AopBatchRunIn.mjs +2 -0
  42. package/dist/esm/api/types/AopBatchRunLaunchOut.d.mts +15 -0
  43. package/dist/esm/api/types/AopBatchRunLaunchOut.mjs +2 -0
  44. package/dist/esm/api/types/AopBatchRunStatusOut.d.mts +21 -0
  45. package/dist/esm/api/types/AopBatchRunStatusOut.mjs +2 -0
  46. package/dist/esm/api/types/AopBatchStatusCountsOut.d.mts +12 -0
  47. package/dist/esm/api/types/AopBatchStatusCountsOut.mjs +2 -0
  48. package/dist/esm/api/types/AopBatchStatusResponseOut.d.mts +20 -0
  49. package/dist/esm/api/types/AopBatchStatusResponseOut.mjs +2 -0
  50. package/dist/esm/api/types/index.d.mts +6 -0
  51. package/dist/esm/api/types/index.mjs +6 -0
  52. package/dist/esm/version.d.mts +1 -1
  53. package/dist/esm/version.mjs +1 -1
  54. package/package.json +1 -1
  55. 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. Dataset-backed models must use the authenticated query endpoint instead so source Dataset permissions are checked per query.
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>