@knocklabs/cli 0.2.1 → 0.2.2

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 (57) hide show
  1. package/README.md +258 -36
  2. package/dist/commands/branch/create.js +1 -1
  3. package/dist/commands/branch/delete.js +1 -1
  4. package/dist/commands/commit/get.js +4 -4
  5. package/dist/commands/commit/index.js +47 -2
  6. package/dist/commands/commit/list.js +61 -13
  7. package/dist/commands/guide/activate.js +48 -4
  8. package/dist/commands/guide/generate-types.js +4 -1
  9. package/dist/commands/guide/get.js +46 -3
  10. package/dist/commands/guide/list.js +46 -3
  11. package/dist/commands/guide/pull.js +6 -4
  12. package/dist/commands/guide/push.js +4 -3
  13. package/dist/commands/guide/validate.js +4 -3
  14. package/dist/commands/layout/get.js +46 -1
  15. package/dist/commands/layout/list.js +46 -1
  16. package/dist/commands/layout/pull.js +6 -2
  17. package/dist/commands/layout/push.js +4 -1
  18. package/dist/commands/layout/validate.js +4 -1
  19. package/dist/commands/login.js +1 -0
  20. package/dist/commands/logout.js +1 -0
  21. package/dist/commands/message-type/get.js +46 -3
  22. package/dist/commands/message-type/list.js +46 -3
  23. package/dist/commands/message-type/pull.js +6 -4
  24. package/dist/commands/message-type/push.js +4 -3
  25. package/dist/commands/message-type/validate.js +4 -3
  26. package/dist/commands/partial/get.js +46 -1
  27. package/dist/commands/partial/list.js +46 -1
  28. package/dist/commands/partial/pull.js +6 -2
  29. package/dist/commands/partial/push.js +4 -1
  30. package/dist/commands/partial/validate.js +6 -1
  31. package/dist/commands/pull.js +28 -8
  32. package/dist/commands/push.js +27 -8
  33. package/dist/commands/translation/get.js +5 -1
  34. package/dist/commands/translation/list.js +5 -1
  35. package/dist/commands/translation/pull.js +8 -3
  36. package/dist/commands/translation/push.js +4 -1
  37. package/dist/commands/translation/validate.js +4 -1
  38. package/dist/commands/workflow/activate.js +47 -3
  39. package/dist/commands/workflow/generate-types.js +4 -1
  40. package/dist/commands/workflow/get.js +9 -4
  41. package/dist/commands/workflow/list.js +5 -1
  42. package/dist/commands/workflow/pull.js +6 -2
  43. package/dist/commands/workflow/push.js +4 -1
  44. package/dist/commands/workflow/run.js +46 -2
  45. package/dist/commands/workflow/validate.js +4 -1
  46. package/dist/lib/api-v1.js +35 -12
  47. package/dist/lib/helpers/arg.js +6 -5
  48. package/dist/lib/helpers/command.js +14 -0
  49. package/dist/lib/helpers/flag.js +18 -0
  50. package/dist/lib/helpers/string.js +4 -0
  51. package/dist/lib/marshal/commit/index.js +0 -1
  52. package/dist/lib/resources.js +6 -1
  53. package/dist/lib/urls.js +4 -0
  54. package/oclif.manifest.json +316 -50
  55. package/package.json +13 -4
  56. package/dist/commands/ping.js +0 -37
  57. package/dist/lib/marshal/commit/types.js +0 -5
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@knocklabs/cli",
3
- "version": "0.2.1",
3
+ "version": "0.2.2",
4
4
  "description": "Knock CLI",
5
5
  "author": "@knocklabs",
6
6
  "bin": {
@@ -17,20 +17,20 @@
17
17
  "/oclif.manifest.json"
18
18
  ],
19
19
  "dependencies": {
20
- "@knocklabs/mgmt": "^0.5.0",
20
+ "@knocklabs/mgmt": "^0.8.0",
21
21
  "@oclif/core": "^3",
22
22
  "@oclif/plugin-help": "^6",
23
23
  "@prantlf/jsonlint": "^14.1.0",
24
24
  "axios": "^1.11.0",
25
25
  "date-fns": "^2.30.0",
26
26
  "enquirer": "^2.4.1",
27
- "fs-extra": "^11.3.1",
27
+ "fs-extra": "^11.3.2",
28
28
  "liquidjs": "^10.21.1",
29
29
  "locale-codes": "^1.3.1",
30
30
  "lodash": "^4.17.21",
31
31
  "open": "8.4.2",
32
32
  "quicktype-core": "^23.2.6",
33
- "zod": "^4.1.8"
33
+ "zod": "^4.1.11"
34
34
  },
35
35
  "devDependencies": {
36
36
  "@oclif/test": "^3",
@@ -71,6 +71,15 @@
71
71
  "commit": {
72
72
  "description": "Commit or promote changes."
73
73
  },
74
+ "guide": {
75
+ "description": "Manage in-app guides."
76
+ },
77
+ "message-type": {
78
+ "description": "Manage message types for guides."
79
+ },
80
+ "partial": {
81
+ "description": "Manage template partials."
82
+ },
74
83
  "workflow": {
75
84
  "description": "Manage notification workflows."
76
85
  },
@@ -1,37 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", {
3
- value: true
4
- });
5
- Object.defineProperty(exports, "default", {
6
- enumerable: true,
7
- get: function() {
8
- return Ping;
9
- }
10
- });
11
- const _basecommand = /*#__PURE__*/ _interop_require_default(require("../lib/base-command"));
12
- function _define_property(obj, key, value) {
13
- if (key in obj) {
14
- Object.defineProperty(obj, key, {
15
- value: value,
16
- enumerable: true,
17
- configurable: true,
18
- writable: true
19
- });
20
- } else {
21
- obj[key] = value;
22
- }
23
- return obj;
24
- }
25
- function _interop_require_default(obj) {
26
- return obj && obj.__esModule ? obj : {
27
- default: obj
28
- };
29
- }
30
- class Ping extends _basecommand.default {
31
- async run() {
32
- const resp = await this.apiV1.ping();
33
- this.log(resp.data);
34
- }
35
- }
36
- // Deprecated, in favor of the whoami command.
37
- _define_property(Ping, "hidden", true);
@@ -1,5 +0,0 @@
1
- // Commit payload data from the API.
2
- "use strict";
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });