@roarkanalytics/cli 0.1.0 → 0.2.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/README.md CHANGED
@@ -132,10 +132,10 @@ roark completion fish | source
132
132
 
133
133
  ### config
134
134
 
135
- | Command | Description |
136
- | ---------------------------------------- | --------------------- |
137
- | `roark config apply --resources <value>` | Apply a config bundle |
138
- | `roark config diff --resources <value>` | Diff a config bundle |
135
+ | Command | Description |
136
+ | -------------------------- | ------------------------------------------------------------------------------------- |
137
+ | `roark config apply [dir]` | Reconcile the project to a config directory (or bundle). Previews and confirms first. |
138
+ | `roark config diff [dir]` | Preview the changes a config directory (or bundle) would make. No writes. |
139
139
 
140
140
  ### customer-flow
141
141
 
package/commands.js CHANGED
@@ -851,7 +851,7 @@ exports.COMMANDS = [
851
851
  httpMethod: 'post',
852
852
  httpPath: '/v1/config/diff',
853
853
  summary: 'Diff a config bundle',
854
- description: 'Dry run: returns the changes reconcile a config-as-code bundle into the project. Submit the full desired set of resources; resources already managed by config are updated, new ones created, and (unless prune is false) config-managed resources absent from the bundle are deleted. Identity is by name — no ids in the bundle. No writes are performed.',
854
+ description: 'Dry run for a config-as-code apply: returns the projected changes (create / update / delete) for the submitted bundle without writing anything. Submit the full desired set of resources; identity is by name — no ids in the bundle. Run this before apply to preview what would change.',
855
855
  positionals: [],
856
856
  flags: [
857
857
  {
@@ -1756,15 +1756,15 @@ exports.COMMANDS = [
1756
1756
  bodyVariants: [
1757
1757
  {
1758
1758
  name: 'PromptMetricInput',
1759
- required: ['calculationType', 'name', 'outputType', 'analysisPackageId'],
1759
+ required: ['calculationType', 'name', 'outputType'],
1760
1760
  },
1761
1761
  {
1762
1762
  name: 'FormulaMetricInput',
1763
- required: ['calculationType', 'name', 'outputType', 'formula', 'sources', 'analysisPackageId'],
1763
+ required: ['calculationType', 'name', 'outputType', 'formula', 'sources'],
1764
1764
  },
1765
1765
  {
1766
1766
  name: 'PatternMetricInput',
1767
- required: ['calculationType', 'name', 'operation', 'outcome', 'analysisPackageId'],
1767
+ required: ['calculationType', 'name', 'operation', 'outcome'],
1768
1768
  },
1769
1769
  ],
1770
1770
  acceptsBody: true,
@@ -2250,6 +2250,16 @@ exports.COMMANDS = [
2250
2250
  ],
2251
2251
  repeatable: false,
2252
2252
  },
2253
+ {
2254
+ name: 'age',
2255
+ path: ['age'],
2256
+ location: 'body',
2257
+ required: false,
2258
+ description: "How old the caller sounds and behaves. Only ages the persona's accent has a voice for are accepted; defaults to ADULT, which every accent supports.",
2259
+ valueKind: 'string',
2260
+ enumValues: ['CHILD', 'TEENAGER', 'ADULT', 'ELDERLY'],
2261
+ repeatable: false,
2262
+ },
2253
2263
  {
2254
2264
  name: 'gender',
2255
2265
  path: ['gender'],
@@ -2621,6 +2631,16 @@ exports.COMMANDS = [
2621
2631
  ],
2622
2632
  repeatable: false,
2623
2633
  },
2634
+ {
2635
+ name: 'age',
2636
+ path: ['age'],
2637
+ location: 'body',
2638
+ required: false,
2639
+ description: "How old the caller sounds and behaves. Only ages the persona's accent has a voice for are accepted; defaults to ADULT, which every accent supports.",
2640
+ valueKind: 'string',
2641
+ enumValues: ['CHILD', 'TEENAGER', 'ADULT', 'ELDERLY'],
2642
+ repeatable: false,
2643
+ },
2624
2644
  {
2625
2645
  name: 'gender',
2626
2646
  path: ['gender'],