@naturali/sdk 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.
package/dist/index.mjs CHANGED
@@ -1222,34 +1222,6 @@ var Admin = class {
1222
1222
  ...options
1223
1223
  });
1224
1224
  }
1225
- /**
1226
- * List listings for review
1227
- *
1228
- * Every listing in one state, newest first — `in_review` by default, the queue an operator works through.
1229
- *
1230
- */
1231
- static listAdminListings(options) {
1232
- return (options?.client ?? client).get({
1233
- url: "/v1/admin/listings",
1234
- ...options
1235
- });
1236
- }
1237
- /**
1238
- * Review a listing
1239
- *
1240
- * 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`.
1241
- *
1242
- */
1243
- static setAdminListingState(options) {
1244
- return (options.client ?? client).put({
1245
- url: "/v1/admin/listings/{listing_id}/state",
1246
- ...options,
1247
- headers: {
1248
- "Content-Type": "application/json",
1249
- ...options.headers
1250
- }
1251
- });
1252
- }
1253
1225
  };
1254
1226
  var Agents = class {
1255
1227
  /**
@@ -3723,60 +3695,6 @@ var IngestionRules = class {
3723
3695
  });
3724
3696
  }
3725
3697
  };
3726
- var Installs = class {
3727
- /**
3728
- * List installs
3729
- *
3730
- * The listings the project installed, newest first.
3731
- */
3732
- static listInstalls(options) {
3733
- return (options.client ?? client).get({
3734
- url: "/v1/projects/{project_id}/installs",
3735
- ...options
3736
- });
3737
- }
3738
- /**
3739
- * Install a listing
3740
- *
3741
- * 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.
3742
- * After the publisher removed this project's access, installing answers `403 install_blocked`.
3743
- *
3744
- */
3745
- static createInstall(options) {
3746
- return (options.client ?? client).post({
3747
- url: "/v1/projects/{project_id}/installs",
3748
- ...options,
3749
- headers: {
3750
- "Content-Type": "application/json",
3751
- ...options.headers
3752
- }
3753
- });
3754
- }
3755
- /**
3756
- * Uninstall a listing
3757
- *
3758
- * 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.
3759
- * A `blocked` install, and the install managed conversion uses, answer `403`.
3760
- *
3761
- */
3762
- static deleteInstall(options) {
3763
- return (options.client ?? client).delete({
3764
- url: "/v1/projects/{project_id}/installs/{install_id}",
3765
- ...options
3766
- });
3767
- }
3768
- /**
3769
- * Get an install
3770
- *
3771
- * One of the project's installs.
3772
- */
3773
- static getInstall(options) {
3774
- return (options.client ?? client).get({
3775
- url: "/v1/projects/{project_id}/installs/{install_id}",
3776
- ...options
3777
- });
3778
- }
3779
- };
3780
3698
  var Knowledge = class {
3781
3699
  /**
3782
3700
  * Search knowledge
@@ -3794,135 +3712,6 @@ var Knowledge = class {
3794
3712
  });
3795
3713
  }
3796
3714
  };
3797
- var Listings = class {
3798
- /**
3799
- * Browse the marketplace
3800
- *
3801
- * Every listed entry, newest first. `interface` is what an installing project sees of the resource, read live from the publisher.
3802
- *
3803
- */
3804
- static listPublicListings(options) {
3805
- return (options?.client ?? client).get({
3806
- url: "/v1/listings",
3807
- ...options
3808
- });
3809
- }
3810
- /**
3811
- * Get a public listing
3812
- *
3813
- * One listed entry. A listing that is not listed answers `404`.
3814
- */
3815
- static getPublicListing(options) {
3816
- return (options.client ?? client).get({
3817
- url: "/v1/listings/{listing_id}",
3818
- ...options
3819
- });
3820
- }
3821
- /**
3822
- * List a project's listings
3823
- *
3824
- * The listings the project publishes, newest first.
3825
- */
3826
- static listListings(options) {
3827
- return (options.client ?? client).get({
3828
- url: "/v1/projects/{project_id}/listings",
3829
- ...options
3830
- });
3831
- }
3832
- /**
3833
- * Create a listing
3834
- *
3835
- * Publish one of the project's tools or agents as a `draft`. Any project member may publish.
3836
- * 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`.
3837
- *
3838
- */
3839
- static createListing(options) {
3840
- return (options.client ?? client).post({
3841
- url: "/v1/projects/{project_id}/listings",
3842
- ...options,
3843
- headers: {
3844
- "Content-Type": "application/json",
3845
- ...options.headers
3846
- }
3847
- });
3848
- }
3849
- /**
3850
- * Delete a listing
3851
- *
3852
- * 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.
3853
- *
3854
- */
3855
- static deleteListing(options) {
3856
- return (options.client ?? client).delete({
3857
- url: "/v1/projects/{project_id}/listings/{listing_id}",
3858
- ...options
3859
- });
3860
- }
3861
- /**
3862
- * Get a listing
3863
- *
3864
- * One of the project's listings.
3865
- */
3866
- static getListing(options) {
3867
- return (options.client ?? client).get({
3868
- url: "/v1/projects/{project_id}/listings/{listing_id}",
3869
- ...options
3870
- });
3871
- }
3872
- /**
3873
- * Update a listing
3874
- *
3875
- * Change the title or description, or pause and resume the listing.
3876
- * `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`.
3877
- *
3878
- */
3879
- static updateListing(options) {
3880
- return (options.client ?? client).patch({
3881
- url: "/v1/projects/{project_id}/listings/{listing_id}",
3882
- ...options,
3883
- headers: {
3884
- "Content-Type": "application/json",
3885
- ...options.headers
3886
- }
3887
- });
3888
- }
3889
- /**
3890
- * Submit a listing for review
3891
- *
3892
- * 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`.
3893
- *
3894
- */
3895
- static submitListing(options) {
3896
- return (options.client ?? client).post({
3897
- url: "/v1/projects/{project_id}/listings/{listing_id}:submit",
3898
- ...options
3899
- });
3900
- }
3901
- /**
3902
- * List a listing's installs
3903
- *
3904
- * Each project that installed the listing, with its usage this billing cycle as last sampled. Never the content of a call.
3905
- *
3906
- */
3907
- static listListingInstalls(options) {
3908
- return (options.client ?? client).get({
3909
- url: "/v1/projects/{project_id}/listings/{listing_id}/installs",
3910
- ...options
3911
- });
3912
- }
3913
- /**
3914
- * Remove a project's install
3915
- *
3916
- * 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.
3917
- *
3918
- */
3919
- static deleteListingInstall(options) {
3920
- return (options.client ?? client).delete({
3921
- url: "/v1/projects/{project_id}/listings/{listing_id}/installs/{install_id}",
3922
- ...options
3923
- });
3924
- }
3925
- };
3926
3715
  var McpServers = class {
3927
3716
  /**
3928
3717
  * List MCP servers
@@ -3938,7 +3727,7 @@ var McpServers = class {
3938
3727
  /**
3939
3728
  * Create an MCP server
3940
3729
  *
3941
- * 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`.
3730
+ * 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`.
3942
3731
  * `daily_call_limit` is required when `auth` is `none`.
3943
3732
  *
3944
3733
  */
@@ -6535,8 +6324,6 @@ var Users = class {
6535
6324
  *
6536
6325
  * 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`.
6537
6326
  *
6538
- * 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.
6539
- *
6540
6327
  */
6541
6328
  static listCurrentUserCredits(options) {
6542
6329
  return (options?.client ?? client).get({
@@ -6549,7 +6336,7 @@ var Users = class {
6549
6336
  *
6550
6337
  * 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.
6551
6338
  *
6552
- * `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.
6339
+ * `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.
6553
6340
  *
6554
6341
  */
6555
6342
  static listCurrentUserStops(options) {
@@ -7070,9 +6857,7 @@ var NaturaliClient = class {
7070
6857
  generations;
7071
6858
  guardrails;
7072
6859
  ingestionRules;
7073
- installs;
7074
6860
  knowledge;
7075
- listings;
7076
6861
  mcpServers;
7077
6862
  memories;
7078
6863
  memoryRules;
@@ -7131,9 +6916,7 @@ var NaturaliClient = class {
7131
6916
  this.generations = bindResource(Generations, this.http);
7132
6917
  this.guardrails = bindResource(Guardrails, this.http);
7133
6918
  this.ingestionRules = bindResource(IngestionRules, this.http);
7134
- this.installs = bindResource(Installs, this.http);
7135
6919
  this.knowledge = bindResource(Knowledge, this.http);
7136
- this.listings = bindResource(Listings, this.http);
7137
6920
  this.mcpServers = bindResource(McpServers, this.http);
7138
6921
  this.memories = bindResource(Memories, this.http);
7139
6922
  this.memoryRules = bindResource(MemoryRules, this.http);
@@ -7160,4 +6943,4 @@ var NaturaliClient = class {
7160
6943
  }
7161
6944
  };
7162
6945
  //#endregion
7163
- export { Activity, Actors, Admin, AgentVersions, Agents, AiProviders, ApiKeys, Approvals, Assistant, AuditLog, Auth, Chains, Channels, Collections, Conversations, Deciders, Documents, Embeddings, Evaluations, Exceptions, Files, Formations, Generations, Guardrails, IngestionRules, Installs, Knowledge, Listings, McpServers, Memories, MemoryRules, MemoryStores, MetadataSchemas, ModelRoutes, Models, NaturaliClient, OauthClients, OauthConnections, Orchestrations, Playbooks, Policies, Projects, Quotas, Secrets, Sessions, Tasks, Tools, Traces, Triggers, Users, Webhooks, Workflows, createClient, createConfig };
6946
+ export { Activity, Actors, Admin, AgentVersions, Agents, AiProviders, ApiKeys, Approvals, Assistant, AuditLog, Auth, Chains, Channels, Collections, Conversations, Deciders, Documents, Embeddings, Evaluations, Exceptions, Files, Formations, Generations, Guardrails, IngestionRules, Knowledge, McpServers, Memories, MemoryRules, MemoryStores, MetadataSchemas, ModelRoutes, Models, NaturaliClient, OauthClients, OauthConnections, Orchestrations, Playbooks, Policies, Projects, Quotas, Secrets, Sessions, Tasks, Tools, Traces, Triggers, Users, Webhooks, Workflows, createClient, createConfig };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@naturali/sdk",
3
- "version": "0.248.5",
3
+ "version": "0.250.0",
4
4
  "description": "TypeScript SDK for the naturali.ai API, generated from its OpenAPI specs",
5
5
  "keywords": [
6
6
  "naturali",
@@ -38,7 +38,7 @@
38
38
  },
39
39
  "devDependencies": {
40
40
  "@hey-api/openapi-ts": "^0.99.0",
41
- "@naturali/api": "0.248.5",
41
+ "@naturali/api": "0.250.0",
42
42
  "@ttoss/openapi-codegen": "^0.10.1",
43
43
  "@types/node": "^26.5.1",
44
44
  "tsdown": "^0.23.0",