commet 2.2.1 → 2.2.3

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.js +59 -3
  2. package/package.json +3 -3
package/dist/index.js CHANGED
@@ -30,7 +30,7 @@ var import_commander11 = require("commander");
30
30
  // package.json
31
31
  var package_default = {
32
32
  name: "commet",
33
- version: "2.2.1",
33
+ version: "2.2.3",
34
34
  description: "Commet CLI - Manage your billing platform from the command line",
35
35
  bin: {
36
36
  commet: "./bin/commet"
@@ -57,7 +57,7 @@ var package_default = {
57
57
  author: "Commet Team",
58
58
  license: "MIT",
59
59
  dependencies: {
60
- "@inquirer/prompts": "8.4.3",
60
+ "@inquirer/prompts": "8.5.0",
61
61
  ably: "^2.21.0",
62
62
  chalk: "5.6.2",
63
63
  commander: "14.0.3",
@@ -163,7 +163,7 @@ function clearProjectConfig() {
163
163
  }
164
164
 
165
165
  // src/utils/telemetry.ts
166
- var CLI_VERSION = true ? "2.2.1" : "0.0.0";
166
+ var CLI_VERSION = true ? "2.2.3" : "0.0.0";
167
167
  var TELEMETRY_URL = "https://commet.co/api/cli/telemetry";
168
168
  function detectRuntime() {
169
169
  if ("Bun" in globalThis) {
@@ -4171,6 +4171,62 @@ var webhooksResource = {
4171
4171
  flag: "--description <desc>",
4172
4172
  description: "Webhook description",
4173
4173
  sdkKey: "description"
4174
+ },
4175
+ {
4176
+ flag: "--api-version <version>",
4177
+ description: "Pin the endpoint to an API version",
4178
+ sdkKey: "apiVersion"
4179
+ }
4180
+ ]
4181
+ },
4182
+ get: {
4183
+ method: "get",
4184
+ description: "Get a webhook endpoint",
4185
+ params: [
4186
+ {
4187
+ flag: "--id <id>",
4188
+ description: "Webhook endpoint ID",
4189
+ required: true,
4190
+ sdkKey: "id"
4191
+ }
4192
+ ]
4193
+ },
4194
+ update: {
4195
+ method: "update",
4196
+ description: "Update a webhook endpoint",
4197
+ params: [
4198
+ {
4199
+ flag: "--id <id>",
4200
+ description: "Webhook endpoint ID",
4201
+ required: true,
4202
+ sdkKey: "id"
4203
+ },
4204
+ {
4205
+ flag: "--url <url>",
4206
+ description: "Webhook URL",
4207
+ sdkKey: "url"
4208
+ },
4209
+ {
4210
+ flag: "--events <json>",
4211
+ description: 'Events to subscribe to (JSON array: ["subscription.created"])',
4212
+ parse: parseJson,
4213
+ sdkKey: "events"
4214
+ },
4215
+ {
4216
+ flag: "--description <desc>",
4217
+ description: "Webhook description",
4218
+ sdkKey: "description"
4219
+ },
4220
+ {
4221
+ flag: "--is-active <bool>",
4222
+ description: "Whether the endpoint is active",
4223
+ parse: parseBool,
4224
+ sdkKey: "isActive"
4225
+ },
4226
+ {
4227
+ flag: "--api-version <version>",
4228
+ description: "Pin the endpoint to an API version",
4229
+ sdkKey: "apiVersion"
4174
4230
  }
4175
4231
  ]
4176
4232
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "commet",
3
- "version": "2.2.1",
3
+ "version": "2.2.3",
4
4
  "description": "Commet CLI - Manage your billing platform from the command line",
5
5
  "bin": {
6
6
  "commet": "./bin/commet"
@@ -19,7 +19,7 @@
19
19
  "author": "Commet Team",
20
20
  "license": "MIT",
21
21
  "dependencies": {
22
- "@inquirer/prompts": "8.4.3",
22
+ "@inquirer/prompts": "8.5.0",
23
23
  "ably": "^2.21.0",
24
24
  "chalk": "5.6.2",
25
25
  "commander": "14.0.3",
@@ -28,7 +28,7 @@
28
28
  "open": "11.0.0",
29
29
  "ora": "9.4.0",
30
30
  "tar": "^7.5.13",
31
- "@commet/node": "5.0.0"
31
+ "@commet/node": "5.2.0"
32
32
  },
33
33
  "devDependencies": {
34
34
  "@types/node": "24.12.4",