@naturali/cli 0.197.0 → 0.198.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 +37 -1
  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.197.0";
20
+ var version = "0.198.0";
21
21
  //#endregion
22
22
  //#region ../sdk/src/generated/core/bodySerializer.gen.ts
23
23
  const serializeFormDataPair = (data, key, value) => {
@@ -3671,6 +3671,18 @@ var Listings = class {
3671
3671
  });
3672
3672
  }
3673
3673
  /**
3674
+ * Delete a listing
3675
+ *
3676
+ * 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.
3677
+ *
3678
+ */
3679
+ static deleteListing(options) {
3680
+ return (options.client ?? client).delete({
3681
+ url: "/v1/projects/{project_id}/listings/{listing_id}",
3682
+ ...options
3683
+ });
3684
+ }
3685
+ /**
3674
3686
  * Get a listing
3675
3687
  *
3676
3688
  * One of the project's listings.
@@ -16485,6 +16497,30 @@ const routes = {
16485
16497
  }
16486
16498
  ]
16487
16499
  },
16500
+ "delete-listing": {
16501
+ serviceClass: "Listings",
16502
+ operationId: "deleteListing",
16503
+ 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.",
16504
+ moduleDocsUrl: "https://naturali.ai/docs/modules/listings",
16505
+ httpMethod: "delete",
16506
+ pathParams: ["project_id", "listing_id"],
16507
+ queryParams: [],
16508
+ headerParams: [],
16509
+ cookieParams: [],
16510
+ flags: [{
16511
+ "name": "project_id",
16512
+ "description": "Project public ID (proj_ prefix).",
16513
+ "required": true,
16514
+ "type": "string",
16515
+ "in": "path"
16516
+ }, {
16517
+ "name": "listing_id",
16518
+ "description": "Listing public ID (lst_ prefix).",
16519
+ "required": true,
16520
+ "type": "string",
16521
+ "in": "path"
16522
+ }]
16523
+ },
16488
16524
  "submit-listing": {
16489
16525
  serviceClass: "Listings",
16490
16526
  operationId: "submitListing",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@naturali/cli",
3
- "version": "0.197.0",
3
+ "version": "0.198.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.197.0",
34
+ "@naturali/sdk": "0.198.0",
35
35
  "@ttoss/openapi-codegen": "^0.5.0",
36
36
  "@types/node": "^26.5.1",
37
37
  "tsdown": "^0.23.0",