@roarkanalytics/cli 0.55.0 → 0.56.1

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/CHANGELOG.md CHANGED
@@ -1,5 +1,19 @@
1
1
  # Changelog
2
2
 
3
+ ## [0.56.1](https://github.com/roarkhq/cli-roark-analytics/compare/v0.56.0...v0.56.1) (2026-10-27)
4
+
5
+
6
+ ### Bug Fixes
7
+
8
+ * **deps:** raise the @roarkanalytics/sdk floor to 5.17.0 ([#146](https://github.com/roarkhq/cli-roark-analytics/issues/146)) ([15bfdde](https://github.com/roarkhq/cli-roark-analytics/commit/15bfdde1c7b3b792cc916ac2be32fa24620b99f5))
9
+
10
+ ## [0.56.0](https://github.com/roarkhq/cli-roark-analytics/compare/v0.55.0...v0.56.0) (2026-10-26)
11
+
12
+
13
+ ### Features
14
+
15
+ * **cli:** cli update ([#144](https://github.com/roarkhq/cli-roark-analytics/issues/144)) ([bf3e328](https://github.com/roarkhq/cli-roark-analytics/commit/bf3e3282e829631bd65d4029e3beabf7a1c75493))
16
+
3
17
  ## [0.55.0](https://github.com/roarkhq/cli-roark-analytics/compare/v0.54.0...v0.55.0) (2026-10-26)
4
18
 
5
19
 
package/README.md CHANGED
@@ -253,7 +253,7 @@ roark completion fish | source
253
253
  | `roark metric collection-job list` | List metric collection jobs |
254
254
  | `roark metric definition create --data '{ ... }'` | Create custom metric definition |
255
255
  | `roark metric definition list` | List metric definitions |
256
- | `roark metric definition update <id-or-slug>` | Update a metric definition |
256
+ | `roark metric definition update <id-or-slug> --http-request.url <value>` | Update a metric definition |
257
257
  | `roark metric policy create --name <value> --modality <value> --metrics <value>` | Create a metric policy |
258
258
  | `roark metric policy delete <policy-id>` | Delete a metric policy |
259
259
  | `roark metric policy get <policy-id>` | Get metric policy by ID |
@@ -265,6 +265,17 @@ roark completion fish | source
265
265
  | `roark metric variant list <id-or-slug>` | List a metric’s variants |
266
266
  | `roark metric variant update <id-or-slug> <variant-id>` | Update a metric variant |
267
267
 
268
+ ### phone-number
269
+
270
+ | Command | Description |
271
+ | --------------------------------------------- | ------------------------------ |
272
+ | `roark phone-number allowance get` | Get the phone number allowance |
273
+ | `roark phone-number available list` | Search available phone numbers |
274
+ | `roark phone-number create --e164 <value>` | Buy a phone number |
275
+ | `roark phone-number delete <phone-number-id>` | Release a phone number |
276
+ | `roark phone-number list` | List phone numbers |
277
+ | `roark phone-number update <phone-number-id>` | Update a phone number |
278
+
268
279
  ### project
269
280
 
270
281
  | Command | Description |
package/commands.js CHANGED
@@ -50,6 +50,9 @@ exports.GROUPS = {
50
50
  'metric definition': 'Manage metric definitions',
51
51
  'metric policy': 'Manage metric policies',
52
52
  'metric variant': 'Manage metric variants',
53
+ 'phone-number': 'Manage phone numbers',
54
+ 'phone-number allowance': 'Read phone number allowance',
55
+ 'phone-number available': 'Read phone number availables',
53
56
  project: 'Read projects',
54
57
  simulation: 'Manage simulations',
55
58
  'simulation environment': 'Manage simulation environments',
@@ -3870,6 +3873,10 @@ exports.COMMANDS = [
3870
3873
  name: 'PatternMetricInput',
3871
3874
  required: ['calculationType', 'name', 'operation', 'outcome'],
3872
3875
  },
3876
+ {
3877
+ name: 'HttpRequestMetricInput',
3878
+ required: ['calculationType', 'name', 'httpRequest'],
3879
+ },
3873
3880
  ],
3874
3881
  acceptsBody: true,
3875
3882
  requiresAuth: true,
@@ -4042,6 +4049,51 @@ exports.COMMANDS = [
4042
4049
  valueKind: 'array',
4043
4050
  repeatable: false,
4044
4051
  },
4052
+ {
4053
+ name: 'http-request',
4054
+ path: ['httpRequest'],
4055
+ location: 'body',
4056
+ required: false,
4057
+ description: 'Replacement request (HTTP_REQUEST only). Send the whole request; omitted headers are removed.',
4058
+ valueKind: 'object',
4059
+ },
4060
+ {
4061
+ name: 'http-request.url',
4062
+ path: ['httpRequest', 'url'],
4063
+ location: 'body',
4064
+ required: true,
4065
+ description: 'Public http(s) URL. May contain {{path}} placeholders into the request payload, which are URL-encoded.',
4066
+ valueKind: 'string',
4067
+ repeatable: false,
4068
+ },
4069
+ {
4070
+ name: 'http-request.method',
4071
+ path: ['httpRequest', 'method'],
4072
+ location: 'body',
4073
+ required: false,
4074
+ description: 'GET or POST (default POST). A GET request has no body.',
4075
+ valueKind: 'string',
4076
+ enumValues: ['GET', 'POST'],
4077
+ repeatable: false,
4078
+ },
4079
+ {
4080
+ name: 'http-request.headers',
4081
+ path: ['httpRequest', 'headers'],
4082
+ location: 'body',
4083
+ required: false,
4084
+ description: 'Request headers, for example your own Authorization header. Values may contain placeholders.',
4085
+ valueKind: 'object',
4086
+ repeatable: false,
4087
+ },
4088
+ {
4089
+ name: 'http-request.body',
4090
+ path: ['httpRequest', 'body'],
4091
+ location: 'body',
4092
+ required: false,
4093
+ description: 'A JSON template with {{path}} placeholders into the request payload, such as {"cardId": "{{call.properties.cardId}}"}. Omit or pass null to send the default payload.',
4094
+ valueKind: 'string',
4095
+ repeatable: false,
4096
+ },
4045
4097
  {
4046
4098
  name: 'change-reason',
4047
4099
  path: ['changeReason'],
@@ -4578,6 +4630,221 @@ exports.COMMANDS = [
4578
4630
  acceptsBody: true,
4579
4631
  requiresAuth: true,
4580
4632
  },
4633
+ {
4634
+ commandPath: ['phone-number', 'allowance', 'get'],
4635
+ clientProperty: 'phoneNumber',
4636
+ methodName: 'getAllowance',
4637
+ httpMethod: 'get',
4638
+ httpPath: '/v1/phone-number/allowance',
4639
+ summary: 'Get the phone number allowance',
4640
+ description: 'Returns how many numbers the organization gets for free, how many it holds, what a paid number costs a month, and whether a purchase would be admitted right now.',
4641
+ positionals: [],
4642
+ flags: [],
4643
+ hasParams: false,
4644
+ paramsAllOptional: true,
4645
+ bodyOpaque: false,
4646
+ bodyVariants: [],
4647
+ acceptsBody: false,
4648
+ requiresAuth: true,
4649
+ },
4650
+ {
4651
+ commandPath: ['phone-number', 'available', 'list'],
4652
+ clientProperty: 'phoneNumber',
4653
+ methodName: 'listAvailable',
4654
+ httpMethod: 'get',
4655
+ httpPath: '/v1/phone-number/available',
4656
+ summary: 'Search available phone numbers',
4657
+ description: 'Returns US numbers the carrier has for sale, narrowed by area code or by digits the number must contain. Buy one with POST /v1/phone-number.',
4658
+ positionals: [],
4659
+ flags: [
4660
+ {
4661
+ name: 'area-code',
4662
+ path: ['areaCode'],
4663
+ location: 'query',
4664
+ required: false,
4665
+ description: 'Three-digit US area code',
4666
+ valueKind: 'string',
4667
+ repeatable: false,
4668
+ },
4669
+ {
4670
+ name: 'contains',
4671
+ path: ['contains'],
4672
+ location: 'query',
4673
+ required: false,
4674
+ description: 'Digits or letters the number must contain (1 to 7, * matches any digit)',
4675
+ valueKind: 'string',
4676
+ repeatable: false,
4677
+ },
4678
+ {
4679
+ name: 'limit',
4680
+ path: ['limit'],
4681
+ location: 'query',
4682
+ required: false,
4683
+ description: 'Maximum number of results (default: 20, max: 50)',
4684
+ valueKind: 'integer',
4685
+ repeatable: false,
4686
+ },
4687
+ ],
4688
+ hasParams: true,
4689
+ paramsAllOptional: true,
4690
+ bodyOpaque: false,
4691
+ bodyVariants: [],
4692
+ acceptsBody: false,
4693
+ requiresAuth: true,
4694
+ },
4695
+ {
4696
+ commandPath: ['phone-number', 'create'],
4697
+ clientProperty: 'phoneNumber',
4698
+ methodName: 'create',
4699
+ httpMethod: 'post',
4700
+ httpPath: '/v1/phone-number',
4701
+ summary: 'Buy a phone number',
4702
+ description: 'Buys a number from the carrier for this project. Free inside the plan allowance; past it, the first month of rent is charged now and monthly after that.',
4703
+ positionals: [],
4704
+ flags: [
4705
+ {
4706
+ name: 'e164',
4707
+ path: ['e164'],
4708
+ location: 'body',
4709
+ required: true,
4710
+ description: 'The number to buy, in E.164 format, from a search result',
4711
+ valueKind: 'string',
4712
+ repeatable: false,
4713
+ },
4714
+ {
4715
+ name: 'name',
4716
+ path: ['name'],
4717
+ location: 'body',
4718
+ required: false,
4719
+ description: 'A label for the number',
4720
+ valueKind: 'string',
4721
+ repeatable: false,
4722
+ },
4723
+ {
4724
+ name: 'agent-id',
4725
+ path: ['agentId'],
4726
+ location: 'body',
4727
+ required: false,
4728
+ description: 'The agent to assign the number to',
4729
+ valueKind: 'string',
4730
+ repeatable: false,
4731
+ },
4732
+ {
4733
+ name: 'expect-free',
4734
+ path: ['expectFree'],
4735
+ location: 'body',
4736
+ required: false,
4737
+ description: 'Whether you expect this number to be free (from the allowance). The purchase is refused with 409 if that has changed since you checked.',
4738
+ valueKind: 'boolean',
4739
+ repeatable: false,
4740
+ },
4741
+ {
4742
+ name: 'expect-monthly-rent-micros',
4743
+ path: ['expectMonthlyRentMicros'],
4744
+ location: 'body',
4745
+ required: false,
4746
+ description: 'The monthly rent you expect for a paid number, in micros (from the allowance). The purchase is refused with 409 if that has changed since you checked.',
4747
+ valueKind: 'integer',
4748
+ repeatable: false,
4749
+ },
4750
+ ],
4751
+ hasParams: true,
4752
+ paramsAllOptional: false,
4753
+ bodyOpaque: false,
4754
+ bodyVariants: [],
4755
+ acceptsBody: true,
4756
+ requiresAuth: true,
4757
+ },
4758
+ {
4759
+ commandPath: ['phone-number', 'delete'],
4760
+ clientProperty: 'phoneNumber',
4761
+ methodName: 'delete',
4762
+ httpMethod: 'delete',
4763
+ httpPath: '/v1/phone-number/{phoneNumberId}',
4764
+ summary: 'Release a phone number',
4765
+ description: 'Gives the number back to the carrier. This cannot be undone: rent stops today and nothing is refunded.',
4766
+ positionals: [
4767
+ {
4768
+ name: 'phone-number-id',
4769
+ paramKey: 'phoneNumberId',
4770
+ },
4771
+ ],
4772
+ flags: [],
4773
+ hasParams: false,
4774
+ paramsAllOptional: true,
4775
+ bodyOpaque: false,
4776
+ bodyVariants: [],
4777
+ acceptsBody: false,
4778
+ requiresAuth: true,
4779
+ },
4780
+ {
4781
+ commandPath: ['phone-number', 'list'],
4782
+ clientProperty: 'phoneNumber',
4783
+ methodName: 'list',
4784
+ httpMethod: 'get',
4785
+ httpPath: '/v1/phone-number',
4786
+ summary: 'List phone numbers',
4787
+ description: 'Returns the phone numbers the project owns, oldest first, with the agent each is assigned to.',
4788
+ positionals: [],
4789
+ flags: [
4790
+ {
4791
+ name: 'agent-id',
4792
+ path: ['agentId'],
4793
+ location: 'query',
4794
+ required: false,
4795
+ description: 'Only the numbers assigned to this agent',
4796
+ valueKind: 'string',
4797
+ repeatable: false,
4798
+ },
4799
+ ],
4800
+ hasParams: true,
4801
+ paramsAllOptional: true,
4802
+ bodyOpaque: false,
4803
+ bodyVariants: [],
4804
+ acceptsBody: false,
4805
+ requiresAuth: true,
4806
+ },
4807
+ {
4808
+ commandPath: ['phone-number', 'update'],
4809
+ clientProperty: 'phoneNumber',
4810
+ methodName: 'update',
4811
+ httpMethod: 'put',
4812
+ httpPath: '/v1/phone-number/{phoneNumberId}',
4813
+ summary: 'Update a phone number',
4814
+ description: 'Relabels a number or changes which agent it is assigned to. A field left out is untouched; null clears it.',
4815
+ positionals: [
4816
+ {
4817
+ name: 'phone-number-id',
4818
+ paramKey: 'phoneNumberId',
4819
+ },
4820
+ ],
4821
+ flags: [
4822
+ {
4823
+ name: 'name',
4824
+ path: ['name'],
4825
+ location: 'body',
4826
+ required: false,
4827
+ description: 'New label; null clears it, omit to leave it alone',
4828
+ valueKind: 'string',
4829
+ repeatable: false,
4830
+ },
4831
+ {
4832
+ name: 'agent-id',
4833
+ path: ['agentId'],
4834
+ location: 'body',
4835
+ required: false,
4836
+ description: 'Agent to assign the number to; null unassigns, omit to leave it alone',
4837
+ valueKind: 'string',
4838
+ repeatable: false,
4839
+ },
4840
+ ],
4841
+ hasParams: true,
4842
+ paramsAllOptional: true,
4843
+ bodyOpaque: false,
4844
+ bodyVariants: [],
4845
+ acceptsBody: true,
4846
+ requiresAuth: true,
4847
+ },
4581
4848
  {
4582
4849
  commandPath: ['project', 'list'],
4583
4850
  clientProperty: 'project',