@naturali/cli 0.249.0 → 0.250.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 +47 -781
- package/package.json +2 -2
package/dist/index.mjs
CHANGED
|
@@ -17,7 +17,7 @@ var __exportAll = (all, no_symbols) => {
|
|
|
17
17
|
};
|
|
18
18
|
//#endregion
|
|
19
19
|
//#region package.json
|
|
20
|
-
var version = "0.
|
|
20
|
+
var version = "0.250.0";
|
|
21
21
|
//#endregion
|
|
22
22
|
//#region ../sdk/src/generated/core/bodySerializer.gen.ts
|
|
23
23
|
const serializeFormDataPair = (data, key, value) => {
|
|
@@ -1243,34 +1243,6 @@ var Admin = class {
|
|
|
1243
1243
|
...options
|
|
1244
1244
|
});
|
|
1245
1245
|
}
|
|
1246
|
-
/**
|
|
1247
|
-
* List listings for review
|
|
1248
|
-
*
|
|
1249
|
-
* Every listing in one state, newest first — `in_review` by default, the queue an operator works through.
|
|
1250
|
-
*
|
|
1251
|
-
*/
|
|
1252
|
-
static listAdminListings(options) {
|
|
1253
|
-
return (options?.client ?? client).get({
|
|
1254
|
-
url: "/v1/admin/listings",
|
|
1255
|
-
...options
|
|
1256
|
-
});
|
|
1257
|
-
}
|
|
1258
|
-
/**
|
|
1259
|
-
* Review a listing
|
|
1260
|
-
*
|
|
1261
|
-
* List a listing in review or one that is suspended, send one in review back to `draft`, or suspend any listing. A listing an operator suspends cannot be resumed by its publisher. An invalid move answers `409 invalid_listing_state`.
|
|
1262
|
-
*
|
|
1263
|
-
*/
|
|
1264
|
-
static setAdminListingState(options) {
|
|
1265
|
-
return (options.client ?? client).put({
|
|
1266
|
-
url: "/v1/admin/listings/{listing_id}/state",
|
|
1267
|
-
...options,
|
|
1268
|
-
headers: {
|
|
1269
|
-
"Content-Type": "application/json",
|
|
1270
|
-
...options.headers
|
|
1271
|
-
}
|
|
1272
|
-
});
|
|
1273
|
-
}
|
|
1274
1246
|
};
|
|
1275
1247
|
var Agents = class {
|
|
1276
1248
|
/**
|
|
@@ -3744,60 +3716,6 @@ var IngestionRules = class {
|
|
|
3744
3716
|
});
|
|
3745
3717
|
}
|
|
3746
3718
|
};
|
|
3747
|
-
var Installs = class {
|
|
3748
|
-
/**
|
|
3749
|
-
* List installs
|
|
3750
|
-
*
|
|
3751
|
-
* The listings the project installed, newest first.
|
|
3752
|
-
*/
|
|
3753
|
-
static listInstalls(options) {
|
|
3754
|
-
return (options.client ?? client).get({
|
|
3755
|
-
url: "/v1/projects/{project_id}/installs",
|
|
3756
|
-
...options
|
|
3757
|
-
});
|
|
3758
|
-
}
|
|
3759
|
-
/**
|
|
3760
|
-
* Install a listing
|
|
3761
|
-
*
|
|
3762
|
-
* Install a listing by its id. A listed entry, a draft and a listing in review all install; a suspended one answers `409 listing_suspended`. Installing again answers the existing install.
|
|
3763
|
-
* After the publisher removed this project's access, installing answers `403 install_blocked`.
|
|
3764
|
-
*
|
|
3765
|
-
*/
|
|
3766
|
-
static createInstall(options) {
|
|
3767
|
-
return (options.client ?? client).post({
|
|
3768
|
-
url: "/v1/projects/{project_id}/installs",
|
|
3769
|
-
...options,
|
|
3770
|
-
headers: {
|
|
3771
|
-
"Content-Type": "application/json",
|
|
3772
|
-
...options.headers
|
|
3773
|
-
}
|
|
3774
|
-
});
|
|
3775
|
-
}
|
|
3776
|
-
/**
|
|
3777
|
-
* Uninstall a listing
|
|
3778
|
-
*
|
|
3779
|
-
* Remove the install. While the project's agents, ingestion rules or other resources still name the installed resource, this answers `409 install_in_use` with them in `details.references`; `force=true` uninstalls anyway and those resources stop reaching it.
|
|
3780
|
-
* A `blocked` install, and the install managed conversion uses, answer `403`.
|
|
3781
|
-
*
|
|
3782
|
-
*/
|
|
3783
|
-
static deleteInstall(options) {
|
|
3784
|
-
return (options.client ?? client).delete({
|
|
3785
|
-
url: "/v1/projects/{project_id}/installs/{install_id}",
|
|
3786
|
-
...options
|
|
3787
|
-
});
|
|
3788
|
-
}
|
|
3789
|
-
/**
|
|
3790
|
-
* Get an install
|
|
3791
|
-
*
|
|
3792
|
-
* One of the project's installs.
|
|
3793
|
-
*/
|
|
3794
|
-
static getInstall(options) {
|
|
3795
|
-
return (options.client ?? client).get({
|
|
3796
|
-
url: "/v1/projects/{project_id}/installs/{install_id}",
|
|
3797
|
-
...options
|
|
3798
|
-
});
|
|
3799
|
-
}
|
|
3800
|
-
};
|
|
3801
3719
|
var Knowledge = class {
|
|
3802
3720
|
/**
|
|
3803
3721
|
* Search knowledge
|
|
@@ -3815,135 +3733,6 @@ var Knowledge = class {
|
|
|
3815
3733
|
});
|
|
3816
3734
|
}
|
|
3817
3735
|
};
|
|
3818
|
-
var Listings = class {
|
|
3819
|
-
/**
|
|
3820
|
-
* Browse the marketplace
|
|
3821
|
-
*
|
|
3822
|
-
* Every listed entry, newest first. `interface` is what an installing project sees of the resource, read live from the publisher.
|
|
3823
|
-
*
|
|
3824
|
-
*/
|
|
3825
|
-
static listPublicListings(options) {
|
|
3826
|
-
return (options?.client ?? client).get({
|
|
3827
|
-
url: "/v1/listings",
|
|
3828
|
-
...options
|
|
3829
|
-
});
|
|
3830
|
-
}
|
|
3831
|
-
/**
|
|
3832
|
-
* Get a public listing
|
|
3833
|
-
*
|
|
3834
|
-
* One listed entry. A listing that is not listed answers `404`.
|
|
3835
|
-
*/
|
|
3836
|
-
static getPublicListing(options) {
|
|
3837
|
-
return (options.client ?? client).get({
|
|
3838
|
-
url: "/v1/listings/{listing_id}",
|
|
3839
|
-
...options
|
|
3840
|
-
});
|
|
3841
|
-
}
|
|
3842
|
-
/**
|
|
3843
|
-
* List a project's listings
|
|
3844
|
-
*
|
|
3845
|
-
* The listings the project publishes, newest first.
|
|
3846
|
-
*/
|
|
3847
|
-
static listListings(options) {
|
|
3848
|
-
return (options.client ?? client).get({
|
|
3849
|
-
url: "/v1/projects/{project_id}/listings",
|
|
3850
|
-
...options
|
|
3851
|
-
});
|
|
3852
|
-
}
|
|
3853
|
-
/**
|
|
3854
|
-
* Create a listing
|
|
3855
|
-
*
|
|
3856
|
-
* Publish one of the project's tools or agents as a `draft`. Any project member may publish.
|
|
3857
|
-
* An agent on a naturali model whose model has no price answers `503 model_not_priced`. A resource that does not exist in the project answers `400 resource_not_found`, and one that already has a listing `409 listing_exists`.
|
|
3858
|
-
*
|
|
3859
|
-
*/
|
|
3860
|
-
static createListing(options) {
|
|
3861
|
-
return (options.client ?? client).post({
|
|
3862
|
-
url: "/v1/projects/{project_id}/listings",
|
|
3863
|
-
...options,
|
|
3864
|
-
headers: {
|
|
3865
|
-
"Content-Type": "application/json",
|
|
3866
|
-
...options.headers
|
|
3867
|
-
}
|
|
3868
|
-
});
|
|
3869
|
-
}
|
|
3870
|
-
/**
|
|
3871
|
-
* Delete a listing
|
|
3872
|
-
*
|
|
3873
|
-
* Remove a listing and stop sharing its resource. Refused with `409 listing_has_installs` while any project holds an install, in any state: remove each one first, which takes two deletes of `/installs/{install_id}` for an `active` or `suspended` install. The listing's price stops applying from the next minute, and a later listing of the same resource starts from no price. The tool or agent itself is not touched.
|
|
3874
|
-
*
|
|
3875
|
-
*/
|
|
3876
|
-
static deleteListing(options) {
|
|
3877
|
-
return (options.client ?? client).delete({
|
|
3878
|
-
url: "/v1/projects/{project_id}/listings/{listing_id}",
|
|
3879
|
-
...options
|
|
3880
|
-
});
|
|
3881
|
-
}
|
|
3882
|
-
/**
|
|
3883
|
-
* Get a listing
|
|
3884
|
-
*
|
|
3885
|
-
* One of the project's listings.
|
|
3886
|
-
*/
|
|
3887
|
-
static getListing(options) {
|
|
3888
|
-
return (options.client ?? client).get({
|
|
3889
|
-
url: "/v1/projects/{project_id}/listings/{listing_id}",
|
|
3890
|
-
...options
|
|
3891
|
-
});
|
|
3892
|
-
}
|
|
3893
|
-
/**
|
|
3894
|
-
* Update a listing
|
|
3895
|
-
*
|
|
3896
|
-
* Change the title or description, or pause and resume the listing.
|
|
3897
|
-
* `state: suspended` stops a `listed` listing for every installing project at once; their installs are kept. `state: listed` resumes a listing you suspended, provided naturali had listed it; nobody reinstalls. A listing naturali suspended cannot be resumed here, and an invalid move answers `409 invalid_listing_state`.
|
|
3898
|
-
*
|
|
3899
|
-
*/
|
|
3900
|
-
static updateListing(options) {
|
|
3901
|
-
return (options.client ?? client).patch({
|
|
3902
|
-
url: "/v1/projects/{project_id}/listings/{listing_id}",
|
|
3903
|
-
...options,
|
|
3904
|
-
headers: {
|
|
3905
|
-
"Content-Type": "application/json",
|
|
3906
|
-
...options.headers
|
|
3907
|
-
}
|
|
3908
|
-
});
|
|
3909
|
-
}
|
|
3910
|
-
/**
|
|
3911
|
-
* Submit a listing for review
|
|
3912
|
-
*
|
|
3913
|
-
* Move a `draft` listing to `in_review`. naturali lists it in the marketplace or sends it back to `draft`. Any other state answers `409 invalid_listing_state`.
|
|
3914
|
-
*
|
|
3915
|
-
*/
|
|
3916
|
-
static submitListing(options) {
|
|
3917
|
-
return (options.client ?? client).post({
|
|
3918
|
-
url: "/v1/projects/{project_id}/listings/{listing_id}:submit",
|
|
3919
|
-
...options
|
|
3920
|
-
});
|
|
3921
|
-
}
|
|
3922
|
-
/**
|
|
3923
|
-
* List a listing's installs
|
|
3924
|
-
*
|
|
3925
|
-
* Each project that installed the listing, with its usage this billing cycle as last sampled. Never the content of a call.
|
|
3926
|
-
*
|
|
3927
|
-
*/
|
|
3928
|
-
static listListingInstalls(options) {
|
|
3929
|
-
return (options.client ?? client).get({
|
|
3930
|
-
url: "/v1/projects/{project_id}/listings/{listing_id}/installs",
|
|
3931
|
-
...options
|
|
3932
|
-
});
|
|
3933
|
-
}
|
|
3934
|
-
/**
|
|
3935
|
-
* Remove a project's install
|
|
3936
|
-
*
|
|
3937
|
-
* Cut one installing project off. An `active` or `suspended` install becomes `blocked`, and that project cannot install the listing again. Deleting a `blocked` install removes it, which lets that project install again.
|
|
3938
|
-
*
|
|
3939
|
-
*/
|
|
3940
|
-
static deleteListingInstall(options) {
|
|
3941
|
-
return (options.client ?? client).delete({
|
|
3942
|
-
url: "/v1/projects/{project_id}/listings/{listing_id}/installs/{install_id}",
|
|
3943
|
-
...options
|
|
3944
|
-
});
|
|
3945
|
-
}
|
|
3946
|
-
};
|
|
3947
3736
|
var McpServers = class {
|
|
3948
3737
|
/**
|
|
3949
3738
|
* List MCP servers
|
|
@@ -3959,7 +3748,7 @@ var McpServers = class {
|
|
|
3959
3748
|
/**
|
|
3960
3749
|
* Create an MCP server
|
|
3961
3750
|
*
|
|
3962
|
-
* Each item of `tools` is checked against the tool it names: the project's
|
|
3751
|
+
* Each item of `tools` is checked against the tool it names: one of the project's, else `400`. `action` is required, and must be one of the tool's available actions, when the tool declares `actions`; otherwise it is ignored and stored as `null`. A tool whose definition reads `{{context:naturali_caller_…}}` is refused unless `auth.type` is `oauth`.
|
|
3963
3752
|
* `daily_call_limit` is required when `auth` is `none`.
|
|
3964
3753
|
*
|
|
3965
3754
|
*/
|
|
@@ -6556,8 +6345,6 @@ var Users = class {
|
|
|
6556
6345
|
*
|
|
6557
6346
|
* A `usage` line is managed model spend, written as the meter is reconciled every 15 minutes per project, so the ledger grows by a line per project per window that spent anything. Filter with `kind`.
|
|
6558
6347
|
*
|
|
6559
|
-
* The other side of a marketplace line is another account's project, so a `fee` or `earned` line names the cycle it settles, not that project.
|
|
6560
|
-
*
|
|
6561
6348
|
*/
|
|
6562
6349
|
static listCurrentUserCredits(options) {
|
|
6563
6350
|
return (options?.client ?? client).get({
|
|
@@ -6570,7 +6357,7 @@ var Users = class {
|
|
|
6570
6357
|
*
|
|
6571
6358
|
* Schedule triggers, eval runs, orchestration runs and workflow tasks the platform stopped on this account's projects because the credit balance went below zero or a Free plan's runs ran out, and that have not been restored or dismissed yet. Newest first.
|
|
6572
6359
|
*
|
|
6573
|
-
* `blocked_by` names the ceiling still closed: while it is set, nothing can be restored. Top up for `debt`; upgrade or wait for the month to turn for `run_allowance`. A
|
|
6360
|
+
* `blocked_by` names the ceiling still closed: while it is set, nothing can be restored. Top up for `debt`; upgrade or wait for the month to turn for `run_allowance`. A project-confined key sees its own project's stops only.
|
|
6574
6361
|
*
|
|
6575
6362
|
*/
|
|
6576
6363
|
static listCurrentUserStops(options) {
|
|
@@ -7091,9 +6878,7 @@ var NaturaliClient = class {
|
|
|
7091
6878
|
generations;
|
|
7092
6879
|
guardrails;
|
|
7093
6880
|
ingestionRules;
|
|
7094
|
-
installs;
|
|
7095
6881
|
knowledge;
|
|
7096
|
-
listings;
|
|
7097
6882
|
mcpServers;
|
|
7098
6883
|
memories;
|
|
7099
6884
|
memoryRules;
|
|
@@ -7152,9 +6937,7 @@ var NaturaliClient = class {
|
|
|
7152
6937
|
this.generations = bindResource(Generations, this.http);
|
|
7153
6938
|
this.guardrails = bindResource(Guardrails, this.http);
|
|
7154
6939
|
this.ingestionRules = bindResource(IngestionRules, this.http);
|
|
7155
|
-
this.installs = bindResource(Installs, this.http);
|
|
7156
6940
|
this.knowledge = bindResource(Knowledge, this.http);
|
|
7157
|
-
this.listings = bindResource(Listings, this.http);
|
|
7158
6941
|
this.mcpServers = bindResource(McpServers, this.http);
|
|
7159
6942
|
this.memories = bindResource(Memories, this.http);
|
|
7160
6943
|
this.memoryRules = bindResource(MemoryRules, this.http);
|
|
@@ -7208,9 +6991,7 @@ var src_exports = /* @__PURE__ */ __exportAll({
|
|
|
7208
6991
|
Generations: () => Generations,
|
|
7209
6992
|
Guardrails: () => Guardrails,
|
|
7210
6993
|
IngestionRules: () => IngestionRules,
|
|
7211
|
-
Installs: () => Installs,
|
|
7212
6994
|
Knowledge: () => Knowledge,
|
|
7213
|
-
Listings: () => Listings,
|
|
7214
6995
|
McpServers: () => McpServers,
|
|
7215
6996
|
Memories: () => Memories,
|
|
7216
6997
|
MemoryRules: () => MemoryRules,
|
|
@@ -8766,7 +8547,7 @@ const routes = {
|
|
|
8766
8547
|
},
|
|
8767
8548
|
{
|
|
8768
8549
|
"name": "kind",
|
|
8769
|
-
"description": "What this line is. `purchased` for money that arrived, `granted` for credit naturali gave away — the two report differently, so it is required rather than defaulted. `
|
|
8550
|
+
"description": "What this line is. `purchased` for money that arrived, `granted` for credit naturali gave away — the two report differently, so it is required rather than defaulted. `included` is not accepted here: a plan's monthly allowance is the billing cycle's to write.",
|
|
8770
8551
|
"required": true,
|
|
8771
8552
|
"type": "string",
|
|
8772
8553
|
"in": "body"
|
|
@@ -8780,7 +8561,7 @@ const routes = {
|
|
|
8780
8561
|
},
|
|
8781
8562
|
{
|
|
8782
8563
|
"name": "reason",
|
|
8783
|
-
"description": "Why, for the record.
|
|
8564
|
+
"description": "Why, for the record.",
|
|
8784
8565
|
"required": false,
|
|
8785
8566
|
"type": "string",
|
|
8786
8567
|
"in": "body"
|
|
@@ -8851,68 +8632,6 @@ const routes = {
|
|
|
8851
8632
|
}
|
|
8852
8633
|
]
|
|
8853
8634
|
},
|
|
8854
|
-
"list-admin-listings": {
|
|
8855
|
-
serviceClass: "Admin",
|
|
8856
|
-
operationId: "listAdminListings",
|
|
8857
|
-
description: "Every listing in one state, newest first — `in_review` by default, the queue an operator works through.",
|
|
8858
|
-
moduleDocsUrl: "https://naturali.ai/docs",
|
|
8859
|
-
httpMethod: "get",
|
|
8860
|
-
pathParams: [],
|
|
8861
|
-
queryParams: [
|
|
8862
|
-
"state",
|
|
8863
|
-
"limit",
|
|
8864
|
-
"cursor"
|
|
8865
|
-
],
|
|
8866
|
-
headerParams: [],
|
|
8867
|
-
cookieParams: [],
|
|
8868
|
-
flags: [
|
|
8869
|
-
{
|
|
8870
|
-
"name": "state",
|
|
8871
|
-
"description": "",
|
|
8872
|
-
"required": false,
|
|
8873
|
-
"type": "string",
|
|
8874
|
-
"in": "query"
|
|
8875
|
-
},
|
|
8876
|
-
{
|
|
8877
|
-
"name": "limit",
|
|
8878
|
-
"description": "Results per page, 1 to 100 (default 50). Above 100 it is clamped; below 1 or not an integer it is `400`.",
|
|
8879
|
-
"required": false,
|
|
8880
|
-
"type": "integer",
|
|
8881
|
-
"in": "query"
|
|
8882
|
-
},
|
|
8883
|
-
{
|
|
8884
|
-
"name": "cursor",
|
|
8885
|
-
"description": "The previous page's `next_cursor`; omit it for the first page. A cursor this list did not issue is `400`.",
|
|
8886
|
-
"required": false,
|
|
8887
|
-
"type": "string",
|
|
8888
|
-
"in": "query"
|
|
8889
|
-
}
|
|
8890
|
-
]
|
|
8891
|
-
},
|
|
8892
|
-
"set-admin-listing-state": {
|
|
8893
|
-
serviceClass: "Admin",
|
|
8894
|
-
operationId: "setAdminListingState",
|
|
8895
|
-
description: "List a listing in review or one that is suspended, send one in review back to `draft`, or suspend any listing. A listing an operator suspends cannot be resumed by its publisher. An invalid move answers `409 invalid_listing_state`.",
|
|
8896
|
-
moduleDocsUrl: "https://naturali.ai/docs",
|
|
8897
|
-
httpMethod: "put",
|
|
8898
|
-
pathParams: ["listing_id"],
|
|
8899
|
-
queryParams: [],
|
|
8900
|
-
headerParams: [],
|
|
8901
|
-
cookieParams: [],
|
|
8902
|
-
flags: [{
|
|
8903
|
-
"name": "listing_id",
|
|
8904
|
-
"description": "",
|
|
8905
|
-
"required": true,
|
|
8906
|
-
"type": "string",
|
|
8907
|
-
"in": "path"
|
|
8908
|
-
}, {
|
|
8909
|
-
"name": "state",
|
|
8910
|
-
"description": "",
|
|
8911
|
-
"required": true,
|
|
8912
|
-
"type": "string",
|
|
8913
|
-
"in": "body"
|
|
8914
|
-
}]
|
|
8915
|
-
},
|
|
8916
8635
|
"list-agents": {
|
|
8917
8636
|
serviceClass: "Agents",
|
|
8918
8637
|
operationId: "listAgents",
|
|
@@ -17590,14 +17309,14 @@ const routes = {
|
|
|
17590
17309
|
"in": "path"
|
|
17591
17310
|
}]
|
|
17592
17311
|
},
|
|
17593
|
-
"
|
|
17594
|
-
serviceClass: "
|
|
17595
|
-
operationId: "
|
|
17596
|
-
description: "
|
|
17597
|
-
moduleDocsUrl: "https://naturali.ai/docs/modules/
|
|
17598
|
-
httpMethod: "
|
|
17312
|
+
"search-knowledge": {
|
|
17313
|
+
serviceClass: "Knowledge",
|
|
17314
|
+
operationId: "searchKnowledge",
|
|
17315
|
+
description: "Searches across documents and memories using hybrid retrieval — a vector query and a full-text query per source, fused by reciprocal rank — or by file paths, document IDs, memory store IDs, or tags. At least one of `query`, `tags`, `document_paths`, `document_ids`, or `memory_store_ids` must be provided.",
|
|
17316
|
+
moduleDocsUrl: "https://naturali.ai/docs/modules/knowledge",
|
|
17317
|
+
httpMethod: "post",
|
|
17599
17318
|
pathParams: ["project_id"],
|
|
17600
|
-
queryParams: [
|
|
17319
|
+
queryParams: [],
|
|
17601
17320
|
headerParams: [],
|
|
17602
17321
|
cookieParams: [],
|
|
17603
17322
|
flags: [
|
|
@@ -17608,160 +17327,44 @@ const routes = {
|
|
|
17608
17327
|
"type": "string",
|
|
17609
17328
|
"in": "path"
|
|
17610
17329
|
},
|
|
17330
|
+
{
|
|
17331
|
+
"name": "query",
|
|
17332
|
+
"description": "Search query text. Runs a vector query and a full-text query over each store and fuses the rankings; the full-text channel matches exact tokens and phrases, the vector channel everything else.",
|
|
17333
|
+
"required": false,
|
|
17334
|
+
"type": "string",
|
|
17335
|
+
"in": "body"
|
|
17336
|
+
},
|
|
17337
|
+
{
|
|
17338
|
+
"name": "min_similarity",
|
|
17339
|
+
"description": "Minimum raw cosine `similarity_score` a **vector** candidate must reach to take part in ranking, applied before fusion. Only applies when `query` is provided. Lexical candidates are deliberately exempt: a result that literally contains the searched token is the evidence, and dropping it for a low cosine is the failure hybrid search exists to prevent. Not a floor on `score`, whose fused value encodes rank position rather than similarity.",
|
|
17340
|
+
"required": false,
|
|
17341
|
+
"type": "number",
|
|
17342
|
+
"in": "body"
|
|
17343
|
+
},
|
|
17344
|
+
{
|
|
17345
|
+
"name": "rrf_k",
|
|
17346
|
+
"description": "The `k` in the reciprocal rank fusion term `1 / (k + rank)`, which sets how steeply a result's contribution decays with its position in each ranked list. A smaller value weights the very top of each list more heavily. Defaults to 60. Only applies when `query` is provided.",
|
|
17347
|
+
"required": false,
|
|
17348
|
+
"type": "integer",
|
|
17349
|
+
"in": "body"
|
|
17350
|
+
},
|
|
17351
|
+
{
|
|
17352
|
+
"name": "recency_half_life_days",
|
|
17353
|
+
"description": "Half-life, in days, of a recency decay applied to **memory store** results after fusion: a result's `score` is multiplied by `2 ^ (-age_in_days / recency_half_life_days)`, where age is measured from its `updated_at`. Document results are never decayed. `0`, the default, disables the blend entirely. Accepts fractions (`0.5` is twelve hours). How many ranks a given half-life costs depends on `rrf_k`. Only applies when `query` is provided. **No value is known to be safe in general**: every half-life measured against the reference corpus that lifted recency-sensitive queries also cost relevance-sensitive ones, which is why this ships disabled. Measure against your own corpus before setting it.",
|
|
17354
|
+
"required": false,
|
|
17355
|
+
"type": "number",
|
|
17356
|
+
"in": "body"
|
|
17357
|
+
},
|
|
17611
17358
|
{
|
|
17612
17359
|
"name": "limit",
|
|
17613
|
-
"description": "
|
|
17360
|
+
"description": "Maximum number of results to return (default 10). A value above 100 is clamped to 100 — the ceiling bounds the vector scan this one request performs, so a larger `limit` returns everything there is up to that many rows rather than being refused.",
|
|
17614
17361
|
"required": false,
|
|
17615
17362
|
"type": "integer",
|
|
17616
|
-
"in": "
|
|
17363
|
+
"in": "body"
|
|
17617
17364
|
},
|
|
17618
17365
|
{
|
|
17619
|
-
"name": "
|
|
17620
|
-
"description": "
|
|
17621
|
-
"required": false,
|
|
17622
|
-
"type": "string",
|
|
17623
|
-
"in": "query"
|
|
17624
|
-
}
|
|
17625
|
-
]
|
|
17626
|
-
},
|
|
17627
|
-
"create-install": {
|
|
17628
|
-
serviceClass: "Installs",
|
|
17629
|
-
operationId: "createInstall",
|
|
17630
|
-
description: "Install a listing by its id. A listed entry, a draft and a listing in review all install; a suspended one answers `409 listing_suspended`. Installing again answers the existing install. After the publisher removed this project's access, installing answers `403 install_blocked`.",
|
|
17631
|
-
moduleDocsUrl: "https://naturali.ai/docs/modules/marketplace",
|
|
17632
|
-
httpMethod: "post",
|
|
17633
|
-
pathParams: ["project_id"],
|
|
17634
|
-
queryParams: [],
|
|
17635
|
-
headerParams: [],
|
|
17636
|
-
cookieParams: [],
|
|
17637
|
-
flags: [{
|
|
17638
|
-
"name": "project_id",
|
|
17639
|
-
"description": "Project public ID (proj_ prefix).",
|
|
17640
|
-
"required": true,
|
|
17641
|
-
"type": "string",
|
|
17642
|
-
"in": "path"
|
|
17643
|
-
}, {
|
|
17644
|
-
"name": "listing_id",
|
|
17645
|
-
"description": "",
|
|
17646
|
-
"required": true,
|
|
17647
|
-
"type": "string",
|
|
17648
|
-
"in": "body"
|
|
17649
|
-
}]
|
|
17650
|
-
},
|
|
17651
|
-
"get-install": {
|
|
17652
|
-
serviceClass: "Installs",
|
|
17653
|
-
operationId: "getInstall",
|
|
17654
|
-
description: "One of the project's installs.",
|
|
17655
|
-
moduleDocsUrl: "https://naturali.ai/docs/modules/marketplace",
|
|
17656
|
-
httpMethod: "get",
|
|
17657
|
-
pathParams: ["project_id", "install_id"],
|
|
17658
|
-
queryParams: [],
|
|
17659
|
-
headerParams: [],
|
|
17660
|
-
cookieParams: [],
|
|
17661
|
-
flags: [{
|
|
17662
|
-
"name": "project_id",
|
|
17663
|
-
"description": "Project public ID (proj_ prefix).",
|
|
17664
|
-
"required": true,
|
|
17665
|
-
"type": "string",
|
|
17666
|
-
"in": "path"
|
|
17667
|
-
}, {
|
|
17668
|
-
"name": "install_id",
|
|
17669
|
-
"description": "Install public ID (ins_ prefix).",
|
|
17670
|
-
"required": true,
|
|
17671
|
-
"type": "string",
|
|
17672
|
-
"in": "path"
|
|
17673
|
-
}]
|
|
17674
|
-
},
|
|
17675
|
-
"delete-install": {
|
|
17676
|
-
serviceClass: "Installs",
|
|
17677
|
-
operationId: "deleteInstall",
|
|
17678
|
-
description: "Remove the install. While the project's agents, ingestion rules or other resources still name the installed resource, this answers `409 install_in_use` with them in `details.references`; `force=true` uninstalls anyway and those resources stop reaching it. A `blocked` install, and the install managed conversion uses, answer `403`.",
|
|
17679
|
-
moduleDocsUrl: "https://naturali.ai/docs/modules/marketplace",
|
|
17680
|
-
httpMethod: "delete",
|
|
17681
|
-
pathParams: ["project_id", "install_id"],
|
|
17682
|
-
queryParams: ["force"],
|
|
17683
|
-
headerParams: [],
|
|
17684
|
-
cookieParams: [],
|
|
17685
|
-
flags: [
|
|
17686
|
-
{
|
|
17687
|
-
"name": "project_id",
|
|
17688
|
-
"description": "Project public ID (proj_ prefix).",
|
|
17689
|
-
"required": true,
|
|
17690
|
-
"type": "string",
|
|
17691
|
-
"in": "path"
|
|
17692
|
-
},
|
|
17693
|
-
{
|
|
17694
|
-
"name": "install_id",
|
|
17695
|
-
"description": "Install public ID (ins_ prefix).",
|
|
17696
|
-
"required": true,
|
|
17697
|
-
"type": "string",
|
|
17698
|
-
"in": "path"
|
|
17699
|
-
},
|
|
17700
|
-
{
|
|
17701
|
-
"name": "force",
|
|
17702
|
-
"description": "Uninstall even while resources still use it.",
|
|
17703
|
-
"required": false,
|
|
17704
|
-
"type": "boolean",
|
|
17705
|
-
"in": "query"
|
|
17706
|
-
}
|
|
17707
|
-
]
|
|
17708
|
-
},
|
|
17709
|
-
"search-knowledge": {
|
|
17710
|
-
serviceClass: "Knowledge",
|
|
17711
|
-
operationId: "searchKnowledge",
|
|
17712
|
-
description: "Searches across documents and memories using hybrid retrieval — a vector query and a full-text query per source, fused by reciprocal rank — or by file paths, document IDs, memory store IDs, or tags. At least one of `query`, `tags`, `document_paths`, `document_ids`, or `memory_store_ids` must be provided.",
|
|
17713
|
-
moduleDocsUrl: "https://naturali.ai/docs/modules/knowledge",
|
|
17714
|
-
httpMethod: "post",
|
|
17715
|
-
pathParams: ["project_id"],
|
|
17716
|
-
queryParams: [],
|
|
17717
|
-
headerParams: [],
|
|
17718
|
-
cookieParams: [],
|
|
17719
|
-
flags: [
|
|
17720
|
-
{
|
|
17721
|
-
"name": "project_id",
|
|
17722
|
-
"description": "Project public ID (proj_ prefix).",
|
|
17723
|
-
"required": true,
|
|
17724
|
-
"type": "string",
|
|
17725
|
-
"in": "path"
|
|
17726
|
-
},
|
|
17727
|
-
{
|
|
17728
|
-
"name": "query",
|
|
17729
|
-
"description": "Search query text. Runs a vector query and a full-text query over each store and fuses the rankings; the full-text channel matches exact tokens and phrases, the vector channel everything else.",
|
|
17730
|
-
"required": false,
|
|
17731
|
-
"type": "string",
|
|
17732
|
-
"in": "body"
|
|
17733
|
-
},
|
|
17734
|
-
{
|
|
17735
|
-
"name": "min_similarity",
|
|
17736
|
-
"description": "Minimum raw cosine `similarity_score` a **vector** candidate must reach to take part in ranking, applied before fusion. Only applies when `query` is provided. Lexical candidates are deliberately exempt: a result that literally contains the searched token is the evidence, and dropping it for a low cosine is the failure hybrid search exists to prevent. Not a floor on `score`, whose fused value encodes rank position rather than similarity.",
|
|
17737
|
-
"required": false,
|
|
17738
|
-
"type": "number",
|
|
17739
|
-
"in": "body"
|
|
17740
|
-
},
|
|
17741
|
-
{
|
|
17742
|
-
"name": "rrf_k",
|
|
17743
|
-
"description": "The `k` in the reciprocal rank fusion term `1 / (k + rank)`, which sets how steeply a result's contribution decays with its position in each ranked list. A smaller value weights the very top of each list more heavily. Defaults to 60. Only applies when `query` is provided.",
|
|
17744
|
-
"required": false,
|
|
17745
|
-
"type": "integer",
|
|
17746
|
-
"in": "body"
|
|
17747
|
-
},
|
|
17748
|
-
{
|
|
17749
|
-
"name": "recency_half_life_days",
|
|
17750
|
-
"description": "Half-life, in days, of a recency decay applied to **memory store** results after fusion: a result's `score` is multiplied by `2 ^ (-age_in_days / recency_half_life_days)`, where age is measured from its `updated_at`. Document results are never decayed. `0`, the default, disables the blend entirely. Accepts fractions (`0.5` is twelve hours). How many ranks a given half-life costs depends on `rrf_k`. Only applies when `query` is provided. **No value is known to be safe in general**: every half-life measured against the reference corpus that lifted recency-sensitive queries also cost relevance-sensitive ones, which is why this ships disabled. Measure against your own corpus before setting it.",
|
|
17751
|
-
"required": false,
|
|
17752
|
-
"type": "number",
|
|
17753
|
-
"in": "body"
|
|
17754
|
-
},
|
|
17755
|
-
{
|
|
17756
|
-
"name": "limit",
|
|
17757
|
-
"description": "Maximum number of results to return (default 10). A value above 100 is clamped to 100 — the ceiling bounds the vector scan this one request performs, so a larger `limit` returns everything there is up to that many rows rather than being refused.",
|
|
17758
|
-
"required": false,
|
|
17759
|
-
"type": "integer",
|
|
17760
|
-
"in": "body"
|
|
17761
|
-
},
|
|
17762
|
-
{
|
|
17763
|
-
"name": "include_documents",
|
|
17764
|
-
"description": "Set `false` to leave the document store out of this search. A `query` names no store, so it reaches both; the store-specific filters narrow *within* a store rather than choosing between them. This is the switch, and a filter naming the other store never overrides it. `false` for both stores is `400`.",
|
|
17366
|
+
"name": "include_documents",
|
|
17367
|
+
"description": "Set `false` to leave the document store out of this search. A `query` names no store, so it reaches both; the store-specific filters narrow *within* a store rather than choosing between them. This is the switch, and a filter naming the other store never overrides it. `false` for both stores is `400`.",
|
|
17765
17368
|
"required": false,
|
|
17766
17369
|
"type": "boolean",
|
|
17767
17370
|
"in": "body"
|
|
@@ -17817,343 +17420,6 @@ const routes = {
|
|
|
17817
17420
|
}
|
|
17818
17421
|
]
|
|
17819
17422
|
},
|
|
17820
|
-
"list-public-listings": {
|
|
17821
|
-
serviceClass: "Listings",
|
|
17822
|
-
operationId: "listPublicListings",
|
|
17823
|
-
description: "Every listed entry, newest first. `interface` is what an installing project sees of the resource, read live from the publisher.",
|
|
17824
|
-
moduleDocsUrl: "https://naturali.ai/docs/modules/marketplace",
|
|
17825
|
-
httpMethod: "get",
|
|
17826
|
-
pathParams: [],
|
|
17827
|
-
queryParams: ["limit", "cursor"],
|
|
17828
|
-
headerParams: [],
|
|
17829
|
-
cookieParams: [],
|
|
17830
|
-
flags: [{
|
|
17831
|
-
"name": "limit",
|
|
17832
|
-
"description": "Results per page, 1 to 100 (default 50). Above 100 it is clamped; below 1 or not an integer it is `400`.",
|
|
17833
|
-
"required": false,
|
|
17834
|
-
"type": "integer",
|
|
17835
|
-
"in": "query"
|
|
17836
|
-
}, {
|
|
17837
|
-
"name": "cursor",
|
|
17838
|
-
"description": "The previous page's `next_cursor`; omit it for the first page. A cursor this list did not issue is `400`.",
|
|
17839
|
-
"required": false,
|
|
17840
|
-
"type": "string",
|
|
17841
|
-
"in": "query"
|
|
17842
|
-
}]
|
|
17843
|
-
},
|
|
17844
|
-
"get-public-listing": {
|
|
17845
|
-
serviceClass: "Listings",
|
|
17846
|
-
operationId: "getPublicListing",
|
|
17847
|
-
description: "One listed entry. A listing that is not listed answers `404`.",
|
|
17848
|
-
moduleDocsUrl: "https://naturali.ai/docs/modules/marketplace",
|
|
17849
|
-
httpMethod: "get",
|
|
17850
|
-
pathParams: ["listing_id"],
|
|
17851
|
-
queryParams: [],
|
|
17852
|
-
headerParams: [],
|
|
17853
|
-
cookieParams: [],
|
|
17854
|
-
flags: [{
|
|
17855
|
-
"name": "listing_id",
|
|
17856
|
-
"description": "Listing public ID (lst_ prefix).",
|
|
17857
|
-
"required": true,
|
|
17858
|
-
"type": "string",
|
|
17859
|
-
"in": "path"
|
|
17860
|
-
}]
|
|
17861
|
-
},
|
|
17862
|
-
"list-listings": {
|
|
17863
|
-
serviceClass: "Listings",
|
|
17864
|
-
operationId: "listListings",
|
|
17865
|
-
description: "The listings the project publishes, newest first.",
|
|
17866
|
-
moduleDocsUrl: "https://naturali.ai/docs/modules/marketplace",
|
|
17867
|
-
httpMethod: "get",
|
|
17868
|
-
pathParams: ["project_id"],
|
|
17869
|
-
queryParams: ["limit", "cursor"],
|
|
17870
|
-
headerParams: [],
|
|
17871
|
-
cookieParams: [],
|
|
17872
|
-
flags: [
|
|
17873
|
-
{
|
|
17874
|
-
"name": "project_id",
|
|
17875
|
-
"description": "Project public ID (proj_ prefix).",
|
|
17876
|
-
"required": true,
|
|
17877
|
-
"type": "string",
|
|
17878
|
-
"in": "path"
|
|
17879
|
-
},
|
|
17880
|
-
{
|
|
17881
|
-
"name": "limit",
|
|
17882
|
-
"description": "Results per page, 1 to 100 (default 50). Above 100 it is clamped; below 1 or not an integer it is `400`.",
|
|
17883
|
-
"required": false,
|
|
17884
|
-
"type": "integer",
|
|
17885
|
-
"in": "query"
|
|
17886
|
-
},
|
|
17887
|
-
{
|
|
17888
|
-
"name": "cursor",
|
|
17889
|
-
"description": "The previous page's `next_cursor`; omit it for the first page. A cursor this list did not issue is `400`.",
|
|
17890
|
-
"required": false,
|
|
17891
|
-
"type": "string",
|
|
17892
|
-
"in": "query"
|
|
17893
|
-
}
|
|
17894
|
-
]
|
|
17895
|
-
},
|
|
17896
|
-
"create-listing": {
|
|
17897
|
-
serviceClass: "Listings",
|
|
17898
|
-
operationId: "createListing",
|
|
17899
|
-
description: "Publish one of the project's tools or agents as a `draft`. Any project member may publish. An agent on a naturali model whose model has no price answers `503 model_not_priced`. A resource that does not exist in the project answers `400 resource_not_found`, and one that already has a listing `409 listing_exists`.",
|
|
17900
|
-
moduleDocsUrl: "https://naturali.ai/docs/modules/marketplace",
|
|
17901
|
-
httpMethod: "post",
|
|
17902
|
-
pathParams: ["project_id"],
|
|
17903
|
-
queryParams: [],
|
|
17904
|
-
headerParams: [],
|
|
17905
|
-
cookieParams: [],
|
|
17906
|
-
flags: [
|
|
17907
|
-
{
|
|
17908
|
-
"name": "project_id",
|
|
17909
|
-
"description": "Project public ID (proj_ prefix).",
|
|
17910
|
-
"required": true,
|
|
17911
|
-
"type": "string",
|
|
17912
|
-
"in": "path"
|
|
17913
|
-
},
|
|
17914
|
-
{
|
|
17915
|
-
"name": "resource_type",
|
|
17916
|
-
"description": "What the listing publishes.",
|
|
17917
|
-
"required": true,
|
|
17918
|
-
"type": "string",
|
|
17919
|
-
"in": "body"
|
|
17920
|
-
},
|
|
17921
|
-
{
|
|
17922
|
-
"name": "resource_id",
|
|
17923
|
-
"description": "A tool or agent in this project.",
|
|
17924
|
-
"required": true,
|
|
17925
|
-
"type": "string",
|
|
17926
|
-
"in": "body"
|
|
17927
|
-
},
|
|
17928
|
-
{
|
|
17929
|
-
"name": "title",
|
|
17930
|
-
"description": "",
|
|
17931
|
-
"required": true,
|
|
17932
|
-
"type": "string",
|
|
17933
|
-
"in": "body"
|
|
17934
|
-
},
|
|
17935
|
-
{
|
|
17936
|
-
"name": "description",
|
|
17937
|
-
"description": "",
|
|
17938
|
-
"required": false,
|
|
17939
|
-
"type": "string",
|
|
17940
|
-
"in": "body"
|
|
17941
|
-
},
|
|
17942
|
-
{
|
|
17943
|
-
"name": "pricing",
|
|
17944
|
-
"description": "What an installing project is charged per call, on top of any model cost. Omit for a free listing.\n",
|
|
17945
|
-
"required": false,
|
|
17946
|
-
"type": "array",
|
|
17947
|
-
"in": "body"
|
|
17948
|
-
}
|
|
17949
|
-
]
|
|
17950
|
-
},
|
|
17951
|
-
"get-listing": {
|
|
17952
|
-
serviceClass: "Listings",
|
|
17953
|
-
operationId: "getListing",
|
|
17954
|
-
description: "One of the project's listings.",
|
|
17955
|
-
moduleDocsUrl: "https://naturali.ai/docs/modules/marketplace",
|
|
17956
|
-
httpMethod: "get",
|
|
17957
|
-
pathParams: ["project_id", "listing_id"],
|
|
17958
|
-
queryParams: [],
|
|
17959
|
-
headerParams: [],
|
|
17960
|
-
cookieParams: [],
|
|
17961
|
-
flags: [{
|
|
17962
|
-
"name": "project_id",
|
|
17963
|
-
"description": "Project public ID (proj_ prefix).",
|
|
17964
|
-
"required": true,
|
|
17965
|
-
"type": "string",
|
|
17966
|
-
"in": "path"
|
|
17967
|
-
}, {
|
|
17968
|
-
"name": "listing_id",
|
|
17969
|
-
"description": "Listing public ID (lst_ prefix).",
|
|
17970
|
-
"required": true,
|
|
17971
|
-
"type": "string",
|
|
17972
|
-
"in": "path"
|
|
17973
|
-
}]
|
|
17974
|
-
},
|
|
17975
|
-
"update-listing": {
|
|
17976
|
-
serviceClass: "Listings",
|
|
17977
|
-
operationId: "updateListing",
|
|
17978
|
-
description: "Change the title or description, or pause and resume the listing. `state: suspended` stops a `listed` listing for every installing project at once; their installs are kept. `state: listed` resumes a listing you suspended, provided naturali had listed it; nobody reinstalls. A listing naturali suspended cannot be resumed here, and an invalid move answers `409 invalid_listing_state`.",
|
|
17979
|
-
moduleDocsUrl: "https://naturali.ai/docs/modules/marketplace",
|
|
17980
|
-
httpMethod: "patch",
|
|
17981
|
-
pathParams: ["project_id", "listing_id"],
|
|
17982
|
-
queryParams: [],
|
|
17983
|
-
headerParams: [],
|
|
17984
|
-
cookieParams: [],
|
|
17985
|
-
flags: [
|
|
17986
|
-
{
|
|
17987
|
-
"name": "project_id",
|
|
17988
|
-
"description": "Project public ID (proj_ prefix).",
|
|
17989
|
-
"required": true,
|
|
17990
|
-
"type": "string",
|
|
17991
|
-
"in": "path"
|
|
17992
|
-
},
|
|
17993
|
-
{
|
|
17994
|
-
"name": "listing_id",
|
|
17995
|
-
"description": "Listing public ID (lst_ prefix).",
|
|
17996
|
-
"required": true,
|
|
17997
|
-
"type": "string",
|
|
17998
|
-
"in": "path"
|
|
17999
|
-
},
|
|
18000
|
-
{
|
|
18001
|
-
"name": "title",
|
|
18002
|
-
"description": "",
|
|
18003
|
-
"required": false,
|
|
18004
|
-
"type": "string",
|
|
18005
|
-
"in": "body"
|
|
18006
|
-
},
|
|
18007
|
-
{
|
|
18008
|
-
"name": "description",
|
|
18009
|
-
"description": "",
|
|
18010
|
-
"required": false,
|
|
18011
|
-
"type": "string",
|
|
18012
|
-
"in": "body"
|
|
18013
|
-
},
|
|
18014
|
-
{
|
|
18015
|
-
"name": "state",
|
|
18016
|
-
"description": "Pause the listing, or resume one you paused.",
|
|
18017
|
-
"required": false,
|
|
18018
|
-
"type": "string",
|
|
18019
|
-
"in": "body"
|
|
18020
|
-
},
|
|
18021
|
-
{
|
|
18022
|
-
"name": "pricing",
|
|
18023
|
-
"description": "The new price, replacing the whole list. A lower price applies the next minute. A higher unit price or a new component applies 7 days later, is returned in `pricing_next` meanwhile, and is emailed to every installing project. A component left out is no longer charged.\n",
|
|
18024
|
-
"required": false,
|
|
18025
|
-
"type": "array",
|
|
18026
|
-
"in": "body"
|
|
18027
|
-
}
|
|
18028
|
-
]
|
|
18029
|
-
},
|
|
18030
|
-
"delete-listing": {
|
|
18031
|
-
serviceClass: "Listings",
|
|
18032
|
-
operationId: "deleteListing",
|
|
18033
|
-
description: "Remove a listing and stop sharing its resource. Refused with `409 listing_has_installs` while any project holds an install, in any state: remove each one first, which takes two deletes of `/installs/{install_id}` for an `active` or `suspended` install. The listing's price stops applying from the next minute, and a later listing of the same resource starts from no price. The tool or agent itself is not touched.",
|
|
18034
|
-
moduleDocsUrl: "https://naturali.ai/docs/modules/marketplace",
|
|
18035
|
-
httpMethod: "delete",
|
|
18036
|
-
pathParams: ["project_id", "listing_id"],
|
|
18037
|
-
queryParams: [],
|
|
18038
|
-
headerParams: [],
|
|
18039
|
-
cookieParams: [],
|
|
18040
|
-
flags: [{
|
|
18041
|
-
"name": "project_id",
|
|
18042
|
-
"description": "Project public ID (proj_ prefix).",
|
|
18043
|
-
"required": true,
|
|
18044
|
-
"type": "string",
|
|
18045
|
-
"in": "path"
|
|
18046
|
-
}, {
|
|
18047
|
-
"name": "listing_id",
|
|
18048
|
-
"description": "Listing public ID (lst_ prefix).",
|
|
18049
|
-
"required": true,
|
|
18050
|
-
"type": "string",
|
|
18051
|
-
"in": "path"
|
|
18052
|
-
}]
|
|
18053
|
-
},
|
|
18054
|
-
"submit-listing": {
|
|
18055
|
-
serviceClass: "Listings",
|
|
18056
|
-
operationId: "submitListing",
|
|
18057
|
-
description: "Move a `draft` listing to `in_review`. naturali lists it in the marketplace or sends it back to `draft`. Any other state answers `409 invalid_listing_state`.",
|
|
18058
|
-
moduleDocsUrl: "https://naturali.ai/docs/modules/marketplace",
|
|
18059
|
-
httpMethod: "post",
|
|
18060
|
-
pathParams: ["project_id", "listing_id"],
|
|
18061
|
-
queryParams: [],
|
|
18062
|
-
headerParams: [],
|
|
18063
|
-
cookieParams: [],
|
|
18064
|
-
flags: [{
|
|
18065
|
-
"name": "project_id",
|
|
18066
|
-
"description": "Project public ID (proj_ prefix).",
|
|
18067
|
-
"required": true,
|
|
18068
|
-
"type": "string",
|
|
18069
|
-
"in": "path"
|
|
18070
|
-
}, {
|
|
18071
|
-
"name": "listing_id",
|
|
18072
|
-
"description": "Listing public ID (lst_ prefix).",
|
|
18073
|
-
"required": true,
|
|
18074
|
-
"type": "string",
|
|
18075
|
-
"in": "path"
|
|
18076
|
-
}]
|
|
18077
|
-
},
|
|
18078
|
-
"list-listing-installs": {
|
|
18079
|
-
serviceClass: "Listings",
|
|
18080
|
-
operationId: "listListingInstalls",
|
|
18081
|
-
description: "Each project that installed the listing, with its usage this billing cycle as last sampled. Never the content of a call.",
|
|
18082
|
-
moduleDocsUrl: "https://naturali.ai/docs/modules/marketplace",
|
|
18083
|
-
httpMethod: "get",
|
|
18084
|
-
pathParams: ["project_id", "listing_id"],
|
|
18085
|
-
queryParams: ["limit", "cursor"],
|
|
18086
|
-
headerParams: [],
|
|
18087
|
-
cookieParams: [],
|
|
18088
|
-
flags: [
|
|
18089
|
-
{
|
|
18090
|
-
"name": "project_id",
|
|
18091
|
-
"description": "Project public ID (proj_ prefix).",
|
|
18092
|
-
"required": true,
|
|
18093
|
-
"type": "string",
|
|
18094
|
-
"in": "path"
|
|
18095
|
-
},
|
|
18096
|
-
{
|
|
18097
|
-
"name": "listing_id",
|
|
18098
|
-
"description": "Listing public ID (lst_ prefix).",
|
|
18099
|
-
"required": true,
|
|
18100
|
-
"type": "string",
|
|
18101
|
-
"in": "path"
|
|
18102
|
-
},
|
|
18103
|
-
{
|
|
18104
|
-
"name": "limit",
|
|
18105
|
-
"description": "Results per page, 1 to 100 (default 50). Above 100 it is clamped; below 1 or not an integer it is `400`.",
|
|
18106
|
-
"required": false,
|
|
18107
|
-
"type": "integer",
|
|
18108
|
-
"in": "query"
|
|
18109
|
-
},
|
|
18110
|
-
{
|
|
18111
|
-
"name": "cursor",
|
|
18112
|
-
"description": "The previous page's `next_cursor`; omit it for the first page. A cursor this list did not issue is `400`.",
|
|
18113
|
-
"required": false,
|
|
18114
|
-
"type": "string",
|
|
18115
|
-
"in": "query"
|
|
18116
|
-
}
|
|
18117
|
-
]
|
|
18118
|
-
},
|
|
18119
|
-
"delete-listing-install": {
|
|
18120
|
-
serviceClass: "Listings",
|
|
18121
|
-
operationId: "deleteListingInstall",
|
|
18122
|
-
description: "Cut one installing project off. An `active` or `suspended` install becomes `blocked`, and that project cannot install the listing again. Deleting a `blocked` install removes it, which lets that project install again.",
|
|
18123
|
-
moduleDocsUrl: "https://naturali.ai/docs/modules/marketplace",
|
|
18124
|
-
httpMethod: "delete",
|
|
18125
|
-
pathParams: [
|
|
18126
|
-
"project_id",
|
|
18127
|
-
"listing_id",
|
|
18128
|
-
"install_id"
|
|
18129
|
-
],
|
|
18130
|
-
queryParams: [],
|
|
18131
|
-
headerParams: [],
|
|
18132
|
-
cookieParams: [],
|
|
18133
|
-
flags: [
|
|
18134
|
-
{
|
|
18135
|
-
"name": "project_id",
|
|
18136
|
-
"description": "Project public ID (proj_ prefix).",
|
|
18137
|
-
"required": true,
|
|
18138
|
-
"type": "string",
|
|
18139
|
-
"in": "path"
|
|
18140
|
-
},
|
|
18141
|
-
{
|
|
18142
|
-
"name": "listing_id",
|
|
18143
|
-
"description": "Listing public ID (lst_ prefix).",
|
|
18144
|
-
"required": true,
|
|
18145
|
-
"type": "string",
|
|
18146
|
-
"in": "path"
|
|
18147
|
-
},
|
|
18148
|
-
{
|
|
18149
|
-
"name": "install_id",
|
|
18150
|
-
"description": "Install public ID (ins_ prefix).",
|
|
18151
|
-
"required": true,
|
|
18152
|
-
"type": "string",
|
|
18153
|
-
"in": "path"
|
|
18154
|
-
}
|
|
18155
|
-
]
|
|
18156
|
-
},
|
|
18157
17423
|
"list-mcp-servers": {
|
|
18158
17424
|
serviceClass: "McpServers",
|
|
18159
17425
|
operationId: "listMcpServers",
|
|
@@ -18191,7 +17457,7 @@ const routes = {
|
|
|
18191
17457
|
"create-mcp-server": {
|
|
18192
17458
|
serviceClass: "McpServers",
|
|
18193
17459
|
operationId: "createMcpServer",
|
|
18194
|
-
description: "Each item of `tools` is checked against the tool it names: the project's
|
|
17460
|
+
description: "Each item of `tools` is checked against the tool it names: one of the project's, else `400`. `action` is required, and must be one of the tool's available actions, when the tool declares `actions`; otherwise it is ignored and stored as `null`. A tool whose definition reads `{{context:naturali_caller_…}}` is refused unless `auth.type` is `oauth`. `daily_call_limit` is required when `auth` is `none`.",
|
|
18195
17461
|
moduleDocsUrl: "https://naturali.ai/docs/modules/mcp-servers",
|
|
18196
17462
|
httpMethod: "post",
|
|
18197
17463
|
pathParams: ["project_id"],
|
|
@@ -26585,7 +25851,7 @@ const routes = {
|
|
|
26585
25851
|
"list-current-user-credits": {
|
|
26586
25852
|
serviceClass: "Users",
|
|
26587
25853
|
operationId: "listCurrentUserCredits",
|
|
26588
|
-
description: "A cursor page of the account's model-credit ledger, newest first, with the balance the whole ledger sums to. The ledger is append-only: a correction is a new line, never an edit. A `usage` line is managed model spend, written as the meter is reconciled every 15 minutes per project, so the ledger grows by a line per project per window that spent anything. Filter with `kind`.
|
|
25854
|
+
description: "A cursor page of the account's model-credit ledger, newest first, with the balance the whole ledger sums to. The ledger is append-only: a correction is a new line, never an edit. A `usage` line is managed model spend, written as the meter is reconciled every 15 minutes per project, so the ledger grows by a line per project per window that spent anything. Filter with `kind`.",
|
|
26589
25855
|
moduleDocsUrl: "https://naturali.ai/docs/modules/users",
|
|
26590
25856
|
httpMethod: "get",
|
|
26591
25857
|
pathParams: [],
|
|
@@ -26623,7 +25889,7 @@ const routes = {
|
|
|
26623
25889
|
"list-current-user-stops": {
|
|
26624
25890
|
serviceClass: "Users",
|
|
26625
25891
|
operationId: "listCurrentUserStops",
|
|
26626
|
-
description: "Schedule triggers, eval runs, orchestration runs and workflow tasks the platform stopped on this account's projects because the credit balance went below zero or a Free plan's runs ran out, and that have not been restored or dismissed yet. Newest first. `blocked_by` names the ceiling still closed: while it is set, nothing can be restored. Top up for `debt`; upgrade or wait for the month to turn for `run_allowance`. A
|
|
25892
|
+
description: "Schedule triggers, eval runs, orchestration runs and workflow tasks the platform stopped on this account's projects because the credit balance went below zero or a Free plan's runs ran out, and that have not been restored or dismissed yet. Newest first. `blocked_by` names the ceiling still closed: while it is set, nothing can be restored. Top up for `debt`; upgrade or wait for the month to turn for `run_allowance`. A project-confined key sees its own project's stops only.",
|
|
26627
25893
|
moduleDocsUrl: "https://naturali.ai/docs/modules/users",
|
|
26628
25894
|
httpMethod: "get",
|
|
26629
25895
|
pathParams: [],
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@naturali/cli",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.250.0",
|
|
4
4
|
"description": "Command-line interface for the naturali.ai API, generated from its OpenAPI specs",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"naturali",
|
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
"yaml": "^2.9.1"
|
|
32
32
|
},
|
|
33
33
|
"devDependencies": {
|
|
34
|
-
"@naturali/sdk": "0.
|
|
34
|
+
"@naturali/sdk": "0.250.0",
|
|
35
35
|
"@ttoss/openapi-codegen": "^0.10.1",
|
|
36
36
|
"@types/node": "^26.5.1",
|
|
37
37
|
"tsdown": "^0.23.0",
|