@naturali/cli 0.248.5 → 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.
Files changed (2) hide show
  1. package/dist/index.mjs +62 -768
  2. 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.248.5";
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 own or an installed one, 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`.
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 `marketplace_fee` stop, for work naming a priced installed listing, is restored only while the paid balance is positive. A project-confined key sees its own project's stops only.
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. `earned` writes a withdrawal or a dispute against marketplace earnings and requires `reason`; a negative one is refused while the account's balance is negative. `included` is not accepted here: a plan's monthly allowance is the billing cycle's to write.",
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. Required for `earned`.",
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",
@@ -10122,6 +9841,20 @@ const routes = {
10122
9841
  "required": false,
10123
9842
  "type": "object",
10124
9843
  "in": "body"
9844
+ },
9845
+ {
9846
+ "name": "model_aliases",
9847
+ "description": "Alias → the model id sent to the vendor.",
9848
+ "required": false,
9849
+ "type": "object",
9850
+ "in": "body"
9851
+ },
9852
+ {
9853
+ "name": "model_aliases_only",
9854
+ "description": "When `true`, a model that is not one of `model_aliases` is refused with `MODEL_NOT_OFFERED` (400).",
9855
+ "required": false,
9856
+ "type": "boolean",
9857
+ "in": "body"
10125
9858
  }
10126
9859
  ]
10127
9860
  },
@@ -10215,6 +9948,20 @@ const routes = {
10215
9948
  "required": false,
10216
9949
  "type": "object",
10217
9950
  "in": "body"
9951
+ },
9952
+ {
9953
+ "name": "model_aliases",
9954
+ "description": "Alias → the model id sent to the vendor. Replaces the whole map; `null` clears it.",
9955
+ "required": false,
9956
+ "type": "object",
9957
+ "in": "body"
9958
+ },
9959
+ {
9960
+ "name": "model_aliases_only",
9961
+ "description": "When `true`, a model that is not one of `model_aliases` is refused with `MODEL_NOT_OFFERED` (400).",
9962
+ "required": false,
9963
+ "type": "boolean",
9964
+ "in": "body"
10218
9965
  }
10219
9966
  ]
10220
9967
  },
@@ -17562,14 +17309,14 @@ const routes = {
17562
17309
  "in": "path"
17563
17310
  }]
17564
17311
  },
17565
- "list-installs": {
17566
- serviceClass: "Installs",
17567
- operationId: "listInstalls",
17568
- description: "The listings the project installed, newest first.",
17569
- moduleDocsUrl: "https://naturali.ai/docs/modules/marketplace",
17570
- httpMethod: "get",
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",
17571
17318
  pathParams: ["project_id"],
17572
- queryParams: ["limit", "cursor"],
17319
+ queryParams: [],
17573
17320
  headerParams: [],
17574
17321
  cookieParams: [],
17575
17322
  flags: [
@@ -17581,145 +17328,29 @@ const routes = {
17581
17328
  "in": "path"
17582
17329
  },
17583
17330
  {
17584
- "name": "limit",
17585
- "description": "Results per page, 1 to 100 (default 50). Above 100 it is clamped; below 1 or not an integer it is `400`.",
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.",
17586
17347
  "required": false,
17587
17348
  "type": "integer",
17588
- "in": "query"
17349
+ "in": "body"
17589
17350
  },
17590
17351
  {
17591
- "name": "cursor",
17592
- "description": "The previous page's `next_cursor`; omit it for the first page. A cursor this list did not issue is `400`.",
17593
- "required": false,
17594
- "type": "string",
17595
- "in": "query"
17596
- }
17597
- ]
17598
- },
17599
- "create-install": {
17600
- serviceClass: "Installs",
17601
- operationId: "createInstall",
17602
- 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`.",
17603
- moduleDocsUrl: "https://naturali.ai/docs/modules/marketplace",
17604
- httpMethod: "post",
17605
- pathParams: ["project_id"],
17606
- queryParams: [],
17607
- headerParams: [],
17608
- cookieParams: [],
17609
- flags: [{
17610
- "name": "project_id",
17611
- "description": "Project public ID (proj_ prefix).",
17612
- "required": true,
17613
- "type": "string",
17614
- "in": "path"
17615
- }, {
17616
- "name": "listing_id",
17617
- "description": "",
17618
- "required": true,
17619
- "type": "string",
17620
- "in": "body"
17621
- }]
17622
- },
17623
- "get-install": {
17624
- serviceClass: "Installs",
17625
- operationId: "getInstall",
17626
- description: "One of the project's installs.",
17627
- moduleDocsUrl: "https://naturali.ai/docs/modules/marketplace",
17628
- httpMethod: "get",
17629
- pathParams: ["project_id", "install_id"],
17630
- queryParams: [],
17631
- headerParams: [],
17632
- cookieParams: [],
17633
- flags: [{
17634
- "name": "project_id",
17635
- "description": "Project public ID (proj_ prefix).",
17636
- "required": true,
17637
- "type": "string",
17638
- "in": "path"
17639
- }, {
17640
- "name": "install_id",
17641
- "description": "Install public ID (ins_ prefix).",
17642
- "required": true,
17643
- "type": "string",
17644
- "in": "path"
17645
- }]
17646
- },
17647
- "delete-install": {
17648
- serviceClass: "Installs",
17649
- operationId: "deleteInstall",
17650
- 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`.",
17651
- moduleDocsUrl: "https://naturali.ai/docs/modules/marketplace",
17652
- httpMethod: "delete",
17653
- pathParams: ["project_id", "install_id"],
17654
- queryParams: ["force"],
17655
- headerParams: [],
17656
- cookieParams: [],
17657
- flags: [
17658
- {
17659
- "name": "project_id",
17660
- "description": "Project public ID (proj_ prefix).",
17661
- "required": true,
17662
- "type": "string",
17663
- "in": "path"
17664
- },
17665
- {
17666
- "name": "install_id",
17667
- "description": "Install public ID (ins_ prefix).",
17668
- "required": true,
17669
- "type": "string",
17670
- "in": "path"
17671
- },
17672
- {
17673
- "name": "force",
17674
- "description": "Uninstall even while resources still use it.",
17675
- "required": false,
17676
- "type": "boolean",
17677
- "in": "query"
17678
- }
17679
- ]
17680
- },
17681
- "search-knowledge": {
17682
- serviceClass: "Knowledge",
17683
- operationId: "searchKnowledge",
17684
- 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.",
17685
- moduleDocsUrl: "https://naturali.ai/docs/modules/knowledge",
17686
- httpMethod: "post",
17687
- pathParams: ["project_id"],
17688
- queryParams: [],
17689
- headerParams: [],
17690
- cookieParams: [],
17691
- flags: [
17692
- {
17693
- "name": "project_id",
17694
- "description": "Project public ID (proj_ prefix).",
17695
- "required": true,
17696
- "type": "string",
17697
- "in": "path"
17698
- },
17699
- {
17700
- "name": "query",
17701
- "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.",
17702
- "required": false,
17703
- "type": "string",
17704
- "in": "body"
17705
- },
17706
- {
17707
- "name": "min_similarity",
17708
- "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.",
17709
- "required": false,
17710
- "type": "number",
17711
- "in": "body"
17712
- },
17713
- {
17714
- "name": "rrf_k",
17715
- "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.",
17716
- "required": false,
17717
- "type": "integer",
17718
- "in": "body"
17719
- },
17720
- {
17721
- "name": "recency_half_life_days",
17722
- "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.",
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.",
17723
17354
  "required": false,
17724
17355
  "type": "number",
17725
17356
  "in": "body"
@@ -17789,343 +17420,6 @@ const routes = {
17789
17420
  }
17790
17421
  ]
17791
17422
  },
17792
- "list-public-listings": {
17793
- serviceClass: "Listings",
17794
- operationId: "listPublicListings",
17795
- description: "Every listed entry, newest first. `interface` is what an installing project sees of the resource, read live from the publisher.",
17796
- moduleDocsUrl: "https://naturali.ai/docs/modules/marketplace",
17797
- httpMethod: "get",
17798
- pathParams: [],
17799
- queryParams: ["limit", "cursor"],
17800
- headerParams: [],
17801
- cookieParams: [],
17802
- flags: [{
17803
- "name": "limit",
17804
- "description": "Results per page, 1 to 100 (default 50). Above 100 it is clamped; below 1 or not an integer it is `400`.",
17805
- "required": false,
17806
- "type": "integer",
17807
- "in": "query"
17808
- }, {
17809
- "name": "cursor",
17810
- "description": "The previous page's `next_cursor`; omit it for the first page. A cursor this list did not issue is `400`.",
17811
- "required": false,
17812
- "type": "string",
17813
- "in": "query"
17814
- }]
17815
- },
17816
- "get-public-listing": {
17817
- serviceClass: "Listings",
17818
- operationId: "getPublicListing",
17819
- description: "One listed entry. A listing that is not listed answers `404`.",
17820
- moduleDocsUrl: "https://naturali.ai/docs/modules/marketplace",
17821
- httpMethod: "get",
17822
- pathParams: ["listing_id"],
17823
- queryParams: [],
17824
- headerParams: [],
17825
- cookieParams: [],
17826
- flags: [{
17827
- "name": "listing_id",
17828
- "description": "Listing public ID (lst_ prefix).",
17829
- "required": true,
17830
- "type": "string",
17831
- "in": "path"
17832
- }]
17833
- },
17834
- "list-listings": {
17835
- serviceClass: "Listings",
17836
- operationId: "listListings",
17837
- description: "The listings the project publishes, newest first.",
17838
- moduleDocsUrl: "https://naturali.ai/docs/modules/marketplace",
17839
- httpMethod: "get",
17840
- pathParams: ["project_id"],
17841
- queryParams: ["limit", "cursor"],
17842
- headerParams: [],
17843
- cookieParams: [],
17844
- flags: [
17845
- {
17846
- "name": "project_id",
17847
- "description": "Project public ID (proj_ prefix).",
17848
- "required": true,
17849
- "type": "string",
17850
- "in": "path"
17851
- },
17852
- {
17853
- "name": "limit",
17854
- "description": "Results per page, 1 to 100 (default 50). Above 100 it is clamped; below 1 or not an integer it is `400`.",
17855
- "required": false,
17856
- "type": "integer",
17857
- "in": "query"
17858
- },
17859
- {
17860
- "name": "cursor",
17861
- "description": "The previous page's `next_cursor`; omit it for the first page. A cursor this list did not issue is `400`.",
17862
- "required": false,
17863
- "type": "string",
17864
- "in": "query"
17865
- }
17866
- ]
17867
- },
17868
- "create-listing": {
17869
- serviceClass: "Listings",
17870
- operationId: "createListing",
17871
- 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`.",
17872
- moduleDocsUrl: "https://naturali.ai/docs/modules/marketplace",
17873
- httpMethod: "post",
17874
- pathParams: ["project_id"],
17875
- queryParams: [],
17876
- headerParams: [],
17877
- cookieParams: [],
17878
- flags: [
17879
- {
17880
- "name": "project_id",
17881
- "description": "Project public ID (proj_ prefix).",
17882
- "required": true,
17883
- "type": "string",
17884
- "in": "path"
17885
- },
17886
- {
17887
- "name": "resource_type",
17888
- "description": "What the listing publishes.",
17889
- "required": true,
17890
- "type": "string",
17891
- "in": "body"
17892
- },
17893
- {
17894
- "name": "resource_id",
17895
- "description": "A tool or agent in this project.",
17896
- "required": true,
17897
- "type": "string",
17898
- "in": "body"
17899
- },
17900
- {
17901
- "name": "title",
17902
- "description": "",
17903
- "required": true,
17904
- "type": "string",
17905
- "in": "body"
17906
- },
17907
- {
17908
- "name": "description",
17909
- "description": "",
17910
- "required": false,
17911
- "type": "string",
17912
- "in": "body"
17913
- },
17914
- {
17915
- "name": "pricing",
17916
- "description": "What an installing project is charged per call, on top of any model cost. Omit for a free listing.\n",
17917
- "required": false,
17918
- "type": "array",
17919
- "in": "body"
17920
- }
17921
- ]
17922
- },
17923
- "get-listing": {
17924
- serviceClass: "Listings",
17925
- operationId: "getListing",
17926
- description: "One of the project's listings.",
17927
- moduleDocsUrl: "https://naturali.ai/docs/modules/marketplace",
17928
- httpMethod: "get",
17929
- pathParams: ["project_id", "listing_id"],
17930
- queryParams: [],
17931
- headerParams: [],
17932
- cookieParams: [],
17933
- flags: [{
17934
- "name": "project_id",
17935
- "description": "Project public ID (proj_ prefix).",
17936
- "required": true,
17937
- "type": "string",
17938
- "in": "path"
17939
- }, {
17940
- "name": "listing_id",
17941
- "description": "Listing public ID (lst_ prefix).",
17942
- "required": true,
17943
- "type": "string",
17944
- "in": "path"
17945
- }]
17946
- },
17947
- "update-listing": {
17948
- serviceClass: "Listings",
17949
- operationId: "updateListing",
17950
- 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`.",
17951
- moduleDocsUrl: "https://naturali.ai/docs/modules/marketplace",
17952
- httpMethod: "patch",
17953
- pathParams: ["project_id", "listing_id"],
17954
- queryParams: [],
17955
- headerParams: [],
17956
- cookieParams: [],
17957
- flags: [
17958
- {
17959
- "name": "project_id",
17960
- "description": "Project public ID (proj_ prefix).",
17961
- "required": true,
17962
- "type": "string",
17963
- "in": "path"
17964
- },
17965
- {
17966
- "name": "listing_id",
17967
- "description": "Listing public ID (lst_ prefix).",
17968
- "required": true,
17969
- "type": "string",
17970
- "in": "path"
17971
- },
17972
- {
17973
- "name": "title",
17974
- "description": "",
17975
- "required": false,
17976
- "type": "string",
17977
- "in": "body"
17978
- },
17979
- {
17980
- "name": "description",
17981
- "description": "",
17982
- "required": false,
17983
- "type": "string",
17984
- "in": "body"
17985
- },
17986
- {
17987
- "name": "state",
17988
- "description": "Pause the listing, or resume one you paused.",
17989
- "required": false,
17990
- "type": "string",
17991
- "in": "body"
17992
- },
17993
- {
17994
- "name": "pricing",
17995
- "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",
17996
- "required": false,
17997
- "type": "array",
17998
- "in": "body"
17999
- }
18000
- ]
18001
- },
18002
- "delete-listing": {
18003
- serviceClass: "Listings",
18004
- operationId: "deleteListing",
18005
- 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.",
18006
- moduleDocsUrl: "https://naturali.ai/docs/modules/marketplace",
18007
- httpMethod: "delete",
18008
- pathParams: ["project_id", "listing_id"],
18009
- queryParams: [],
18010
- headerParams: [],
18011
- cookieParams: [],
18012
- flags: [{
18013
- "name": "project_id",
18014
- "description": "Project public ID (proj_ prefix).",
18015
- "required": true,
18016
- "type": "string",
18017
- "in": "path"
18018
- }, {
18019
- "name": "listing_id",
18020
- "description": "Listing public ID (lst_ prefix).",
18021
- "required": true,
18022
- "type": "string",
18023
- "in": "path"
18024
- }]
18025
- },
18026
- "submit-listing": {
18027
- serviceClass: "Listings",
18028
- operationId: "submitListing",
18029
- 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`.",
18030
- moduleDocsUrl: "https://naturali.ai/docs/modules/marketplace",
18031
- httpMethod: "post",
18032
- pathParams: ["project_id", "listing_id"],
18033
- queryParams: [],
18034
- headerParams: [],
18035
- cookieParams: [],
18036
- flags: [{
18037
- "name": "project_id",
18038
- "description": "Project public ID (proj_ prefix).",
18039
- "required": true,
18040
- "type": "string",
18041
- "in": "path"
18042
- }, {
18043
- "name": "listing_id",
18044
- "description": "Listing public ID (lst_ prefix).",
18045
- "required": true,
18046
- "type": "string",
18047
- "in": "path"
18048
- }]
18049
- },
18050
- "list-listing-installs": {
18051
- serviceClass: "Listings",
18052
- operationId: "listListingInstalls",
18053
- description: "Each project that installed the listing, with its usage this billing cycle as last sampled. Never the content of a call.",
18054
- moduleDocsUrl: "https://naturali.ai/docs/modules/marketplace",
18055
- httpMethod: "get",
18056
- pathParams: ["project_id", "listing_id"],
18057
- queryParams: ["limit", "cursor"],
18058
- headerParams: [],
18059
- cookieParams: [],
18060
- flags: [
18061
- {
18062
- "name": "project_id",
18063
- "description": "Project public ID (proj_ prefix).",
18064
- "required": true,
18065
- "type": "string",
18066
- "in": "path"
18067
- },
18068
- {
18069
- "name": "listing_id",
18070
- "description": "Listing public ID (lst_ prefix).",
18071
- "required": true,
18072
- "type": "string",
18073
- "in": "path"
18074
- },
18075
- {
18076
- "name": "limit",
18077
- "description": "Results per page, 1 to 100 (default 50). Above 100 it is clamped; below 1 or not an integer it is `400`.",
18078
- "required": false,
18079
- "type": "integer",
18080
- "in": "query"
18081
- },
18082
- {
18083
- "name": "cursor",
18084
- "description": "The previous page's `next_cursor`; omit it for the first page. A cursor this list did not issue is `400`.",
18085
- "required": false,
18086
- "type": "string",
18087
- "in": "query"
18088
- }
18089
- ]
18090
- },
18091
- "delete-listing-install": {
18092
- serviceClass: "Listings",
18093
- operationId: "deleteListingInstall",
18094
- 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.",
18095
- moduleDocsUrl: "https://naturali.ai/docs/modules/marketplace",
18096
- httpMethod: "delete",
18097
- pathParams: [
18098
- "project_id",
18099
- "listing_id",
18100
- "install_id"
18101
- ],
18102
- queryParams: [],
18103
- headerParams: [],
18104
- cookieParams: [],
18105
- flags: [
18106
- {
18107
- "name": "project_id",
18108
- "description": "Project public ID (proj_ prefix).",
18109
- "required": true,
18110
- "type": "string",
18111
- "in": "path"
18112
- },
18113
- {
18114
- "name": "listing_id",
18115
- "description": "Listing public ID (lst_ prefix).",
18116
- "required": true,
18117
- "type": "string",
18118
- "in": "path"
18119
- },
18120
- {
18121
- "name": "install_id",
18122
- "description": "Install public ID (ins_ prefix).",
18123
- "required": true,
18124
- "type": "string",
18125
- "in": "path"
18126
- }
18127
- ]
18128
- },
18129
17423
  "list-mcp-servers": {
18130
17424
  serviceClass: "McpServers",
18131
17425
  operationId: "listMcpServers",
@@ -18163,7 +17457,7 @@ const routes = {
18163
17457
  "create-mcp-server": {
18164
17458
  serviceClass: "McpServers",
18165
17459
  operationId: "createMcpServer",
18166
- description: "Each item of `tools` is checked against the tool it names: the project's own or an installed one, 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`.",
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`.",
18167
17461
  moduleDocsUrl: "https://naturali.ai/docs/modules/mcp-servers",
18168
17462
  httpMethod: "post",
18169
17463
  pathParams: ["project_id"],
@@ -26557,7 +25851,7 @@ const routes = {
26557
25851
  "list-current-user-credits": {
26558
25852
  serviceClass: "Users",
26559
25853
  operationId: "listCurrentUserCredits",
26560
- 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`. 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.",
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`.",
26561
25855
  moduleDocsUrl: "https://naturali.ai/docs/modules/users",
26562
25856
  httpMethod: "get",
26563
25857
  pathParams: [],
@@ -26595,7 +25889,7 @@ const routes = {
26595
25889
  "list-current-user-stops": {
26596
25890
  serviceClass: "Users",
26597
25891
  operationId: "listCurrentUserStops",
26598
- 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 `marketplace_fee` stop, for work naming a priced installed listing, is restored only while the paid balance is positive. A project-confined key sees its own project's stops only.",
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.",
26599
25893
  moduleDocsUrl: "https://naturali.ai/docs/modules/users",
26600
25894
  httpMethod: "get",
26601
25895
  pathParams: [],
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@naturali/cli",
3
- "version": "0.248.5",
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.248.5",
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",