@naturali/cli 0.89.1 → 0.90.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/dist/index.mjs +102 -2
- package/package.json +2 -2
package/dist/index.mjs
CHANGED
|
@@ -14,7 +14,7 @@ var __exportAll = (all, no_symbols) => {
|
|
|
14
14
|
};
|
|
15
15
|
//#endregion
|
|
16
16
|
//#region package.json
|
|
17
|
-
var version = "0.
|
|
17
|
+
var version = "0.90.0";
|
|
18
18
|
//#endregion
|
|
19
19
|
//#region ../sdk/src/generated/core/bodySerializer.gen.ts
|
|
20
20
|
const serializeFormDataPair = (data, key, value) => {
|
|
@@ -1718,6 +1718,30 @@ var Auth = class {
|
|
|
1718
1718
|
});
|
|
1719
1719
|
}
|
|
1720
1720
|
};
|
|
1721
|
+
var Chains = class {
|
|
1722
|
+
/**
|
|
1723
|
+
* List continuation chains
|
|
1724
|
+
*
|
|
1725
|
+
* Returns the continuation chains in a project, newest first. Filter by `status` to find the chains that may still be spending (`active`) or the ones a budget stopped (`budget_exhausted`).
|
|
1726
|
+
*/
|
|
1727
|
+
static listChains(options) {
|
|
1728
|
+
return (options.client ?? client).get({
|
|
1729
|
+
url: "/v1/projects/{project_id}/chains",
|
|
1730
|
+
...options
|
|
1731
|
+
});
|
|
1732
|
+
}
|
|
1733
|
+
/**
|
|
1734
|
+
* Get a continuation chain
|
|
1735
|
+
*
|
|
1736
|
+
* Returns a single continuation chain. To read the generations in it, list generations filtered by `chain_id`.
|
|
1737
|
+
*/
|
|
1738
|
+
static getChain(options) {
|
|
1739
|
+
return (options.client ?? client).get({
|
|
1740
|
+
url: "/v1/projects/{project_id}/chains/{chain_id}",
|
|
1741
|
+
...options
|
|
1742
|
+
});
|
|
1743
|
+
}
|
|
1744
|
+
};
|
|
1721
1745
|
var Conversations = class {
|
|
1722
1746
|
/**
|
|
1723
1747
|
* List conversations
|
|
@@ -4480,6 +4504,7 @@ var NaturaliClient = class {
|
|
|
4480
4504
|
approvals;
|
|
4481
4505
|
auditLog;
|
|
4482
4506
|
assistant;
|
|
4507
|
+
chains;
|
|
4483
4508
|
channels;
|
|
4484
4509
|
auth;
|
|
4485
4510
|
conversations;
|
|
@@ -4529,6 +4554,7 @@ var NaturaliClient = class {
|
|
|
4529
4554
|
this.approvals = bindResource(Approvals, this.http);
|
|
4530
4555
|
this.auditLog = bindResource(AuditLog, this.http);
|
|
4531
4556
|
this.assistant = bindResource(Assistant, this.http);
|
|
4557
|
+
this.chains = bindResource(Chains, this.http);
|
|
4532
4558
|
this.channels = bindResource(Channels, this.http);
|
|
4533
4559
|
this.auth = bindResource(Auth, this.http);
|
|
4534
4560
|
this.conversations = bindResource(Conversations, this.http);
|
|
@@ -4574,6 +4600,7 @@ var src_exports = /* @__PURE__ */ __exportAll({
|
|
|
4574
4600
|
Assistant: () => Assistant,
|
|
4575
4601
|
AuditLog: () => AuditLog,
|
|
4576
4602
|
Auth: () => Auth,
|
|
4603
|
+
Chains: () => Chains,
|
|
4577
4604
|
Channels: () => Channels,
|
|
4578
4605
|
Conversations: () => Conversations,
|
|
4579
4606
|
Documents: () => Documents,
|
|
@@ -7598,6 +7625,79 @@ const routes = {
|
|
|
7598
7625
|
"in": "body"
|
|
7599
7626
|
}]
|
|
7600
7627
|
},
|
|
7628
|
+
"list-chains": {
|
|
7629
|
+
serviceClass: "Chains",
|
|
7630
|
+
operationId: "listChains",
|
|
7631
|
+
description: "Returns the continuation chains in a project, newest first. Filter by `status` to find the chains that may still be spending (`active`) or the ones a budget stopped (`budget_exhausted`).",
|
|
7632
|
+
moduleDocsUrl: "https://docs.naturali.ai/docs/modules/chains",
|
|
7633
|
+
httpMethod: "get",
|
|
7634
|
+
pathParams: ["project_id"],
|
|
7635
|
+
queryParams: [
|
|
7636
|
+
"status",
|
|
7637
|
+
"agent_id",
|
|
7638
|
+
"limit",
|
|
7639
|
+
"offset"
|
|
7640
|
+
],
|
|
7641
|
+
flags: [
|
|
7642
|
+
{
|
|
7643
|
+
"name": "project_id",
|
|
7644
|
+
"description": "Project public ID (proj_ prefix).",
|
|
7645
|
+
"required": true,
|
|
7646
|
+
"type": "string",
|
|
7647
|
+
"in": "path"
|
|
7648
|
+
},
|
|
7649
|
+
{
|
|
7650
|
+
"name": "status",
|
|
7651
|
+
"description": "Filter by chain status",
|
|
7652
|
+
"required": false,
|
|
7653
|
+
"type": "string",
|
|
7654
|
+
"in": "query"
|
|
7655
|
+
},
|
|
7656
|
+
{
|
|
7657
|
+
"name": "agent_id",
|
|
7658
|
+
"description": "Filter by the agent whose continuation opened the chain",
|
|
7659
|
+
"required": false,
|
|
7660
|
+
"type": "string",
|
|
7661
|
+
"in": "query"
|
|
7662
|
+
},
|
|
7663
|
+
{
|
|
7664
|
+
"name": "limit",
|
|
7665
|
+
"description": "Maximum number of results to return",
|
|
7666
|
+
"required": false,
|
|
7667
|
+
"type": "integer",
|
|
7668
|
+
"in": "query"
|
|
7669
|
+
},
|
|
7670
|
+
{
|
|
7671
|
+
"name": "offset",
|
|
7672
|
+
"description": "Number of results to skip",
|
|
7673
|
+
"required": false,
|
|
7674
|
+
"type": "integer",
|
|
7675
|
+
"in": "query"
|
|
7676
|
+
}
|
|
7677
|
+
]
|
|
7678
|
+
},
|
|
7679
|
+
"get-chain": {
|
|
7680
|
+
serviceClass: "Chains",
|
|
7681
|
+
operationId: "getChain",
|
|
7682
|
+
description: "Returns a single continuation chain. To read the generations in it, list generations filtered by `chain_id`.",
|
|
7683
|
+
moduleDocsUrl: "https://docs.naturali.ai/docs/modules/chains",
|
|
7684
|
+
httpMethod: "get",
|
|
7685
|
+
pathParams: ["project_id", "chain_id"],
|
|
7686
|
+
queryParams: [],
|
|
7687
|
+
flags: [{
|
|
7688
|
+
"name": "project_id",
|
|
7689
|
+
"description": "Project public ID (proj_ prefix).",
|
|
7690
|
+
"required": true,
|
|
7691
|
+
"type": "string",
|
|
7692
|
+
"in": "path"
|
|
7693
|
+
}, {
|
|
7694
|
+
"name": "chain_id",
|
|
7695
|
+
"description": "Continuation chain ID",
|
|
7696
|
+
"required": true,
|
|
7697
|
+
"type": "string",
|
|
7698
|
+
"in": "path"
|
|
7699
|
+
}]
|
|
7700
|
+
},
|
|
7601
7701
|
"list-channel-kinds": {
|
|
7602
7702
|
serviceClass: "Channels",
|
|
7603
7703
|
operationId: "listChannelKinds",
|
|
@@ -13085,7 +13185,7 @@ const routes = {
|
|
|
13085
13185
|
},
|
|
13086
13186
|
{
|
|
13087
13187
|
"name": "group_by",
|
|
13088
|
-
"description": "Dimension to bucket by.",
|
|
13188
|
+
"description": "Dimension to bucket by. `day` buckets on the event's UTC calendar day; the others on the matching id. `model` buckets on the model *and* the provider that served it, so one model name served by two providers is two groups (see `ai_provider_id`). `ai_provider` buckets on the provider the spend was billed against — a routed generation's serving target, or the agent's pinned provider — which is the total a per-provider reconciliation wants, without summing the model dimension by hand.\n",
|
|
13089
13189
|
"required": false,
|
|
13090
13190
|
"type": "string",
|
|
13091
13191
|
"in": "query"
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@naturali/cli",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.90.0",
|
|
4
4
|
"description": "Command-line interface for the naturali.ai API, generated from its OpenAPI specs",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
"tsx": "^4.23.1",
|
|
31
31
|
"typescript": "~6.0.3",
|
|
32
32
|
"vitest": "^4.1.10",
|
|
33
|
-
"@naturali/sdk": "0.
|
|
33
|
+
"@naturali/sdk": "0.90.0"
|
|
34
34
|
},
|
|
35
35
|
"scripts": {
|
|
36
36
|
"generate": "tsx scripts/generate.ts",
|