@knocklabs/cli 0.1.21 → 0.1.22

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.
@@ -76,6 +76,146 @@
76
76
  "ping.js"
77
77
  ]
78
78
  },
79
+ "pull": {
80
+ "aliases": [],
81
+ "args": {},
82
+ "flags": {
83
+ "service-token": {
84
+ "env": "KNOCK_SERVICE_TOKEN",
85
+ "name": "service-token",
86
+ "required": true,
87
+ "summary": "The service token to authenticate with.",
88
+ "hasDynamicHelp": false,
89
+ "multiple": false,
90
+ "type": "option"
91
+ },
92
+ "api-origin": {
93
+ "hidden": true,
94
+ "name": "api-origin",
95
+ "required": false,
96
+ "hasDynamicHelp": false,
97
+ "multiple": false,
98
+ "type": "option"
99
+ },
100
+ "environment": {
101
+ "name": "environment",
102
+ "summary": "The environment to use.",
103
+ "default": "development",
104
+ "hasDynamicHelp": false,
105
+ "multiple": false,
106
+ "type": "option"
107
+ },
108
+ "knock-dir": {
109
+ "name": "knock-dir",
110
+ "required": true,
111
+ "summary": "The target directory path to pull all resources into.",
112
+ "hasDynamicHelp": false,
113
+ "multiple": false,
114
+ "type": "option"
115
+ },
116
+ "hide-uncommitted-changes": {
117
+ "name": "hide-uncommitted-changes",
118
+ "summary": "Hide any uncommitted changes.",
119
+ "allowNo": false,
120
+ "type": "boolean"
121
+ },
122
+ "force": {
123
+ "name": "force",
124
+ "summary": "Remove the confirmation prompt.",
125
+ "allowNo": false,
126
+ "type": "boolean"
127
+ }
128
+ },
129
+ "hasDynamicHelp": false,
130
+ "hiddenAliases": [],
131
+ "id": "pull",
132
+ "pluginAlias": "@knocklabs/cli",
133
+ "pluginName": "@knocklabs/cli",
134
+ "pluginType": "core",
135
+ "strict": true,
136
+ "summary": "Pull all resources from an environment into a local file system.",
137
+ "enableJsonFlag": false,
138
+ "isESM": false,
139
+ "relativePath": [
140
+ "dist",
141
+ "commands",
142
+ "pull.js"
143
+ ]
144
+ },
145
+ "push": {
146
+ "aliases": [],
147
+ "args": {},
148
+ "flags": {
149
+ "service-token": {
150
+ "env": "KNOCK_SERVICE_TOKEN",
151
+ "name": "service-token",
152
+ "required": true,
153
+ "summary": "The service token to authenticate with.",
154
+ "hasDynamicHelp": false,
155
+ "multiple": false,
156
+ "type": "option"
157
+ },
158
+ "api-origin": {
159
+ "hidden": true,
160
+ "name": "api-origin",
161
+ "required": false,
162
+ "hasDynamicHelp": false,
163
+ "multiple": false,
164
+ "type": "option"
165
+ },
166
+ "environment": {
167
+ "name": "environment",
168
+ "summary": "Pushing resources is only allowed in the development environment",
169
+ "default": "development",
170
+ "hasDynamicHelp": false,
171
+ "multiple": false,
172
+ "options": [
173
+ "development"
174
+ ],
175
+ "type": "option"
176
+ },
177
+ "knock-dir": {
178
+ "name": "knock-dir",
179
+ "required": true,
180
+ "summary": "The target directory path to find all resources to push.",
181
+ "hasDynamicHelp": false,
182
+ "multiple": false,
183
+ "type": "option"
184
+ },
185
+ "commit": {
186
+ "name": "commit",
187
+ "summary": "Push and commit the resource(s) at the same time",
188
+ "allowNo": false,
189
+ "type": "boolean"
190
+ },
191
+ "commit-message": {
192
+ "char": "m",
193
+ "dependsOn": [
194
+ "commit"
195
+ ],
196
+ "name": "commit-message",
197
+ "summary": "Use the given value as the commit message",
198
+ "hasDynamicHelp": false,
199
+ "multiple": false,
200
+ "type": "option"
201
+ }
202
+ },
203
+ "hasDynamicHelp": false,
204
+ "hiddenAliases": [],
205
+ "id": "push",
206
+ "pluginAlias": "@knocklabs/cli",
207
+ "pluginName": "@knocklabs/cli",
208
+ "pluginType": "core",
209
+ "strict": true,
210
+ "summary": "Push all resources from a local file system to Knock.",
211
+ "enableJsonFlag": false,
212
+ "isESM": false,
213
+ "relativePath": [
214
+ "dist",
215
+ "commands",
216
+ "push.js"
217
+ ]
218
+ },
79
219
  "whoami": {
80
220
  "aliases": [],
81
221
  "args": {},
@@ -770,11 +910,11 @@
770
910
  "validate.js"
771
911
  ]
772
912
  },
773
- "partial:get": {
913
+ "message-type:get": {
774
914
  "aliases": [],
775
915
  "args": {
776
- "partialKey": {
777
- "name": "partialKey",
916
+ "messageTypeKey": {
917
+ "name": "messageTypeKey",
778
918
  "required": true
779
919
  }
780
920
  },
@@ -819,23 +959,24 @@
819
959
  }
820
960
  },
821
961
  "hasDynamicHelp": false,
962
+ "hidden": true,
822
963
  "hiddenAliases": [],
823
- "id": "partial:get",
964
+ "id": "message-type:get",
824
965
  "pluginAlias": "@knocklabs/cli",
825
966
  "pluginName": "@knocklabs/cli",
826
967
  "pluginType": "core",
827
968
  "strict": true,
828
- "summary": "Display a single partial from an environment.",
969
+ "summary": "Display a single in-app message type from an environment.",
829
970
  "enableJsonFlag": true,
830
971
  "isESM": false,
831
972
  "relativePath": [
832
973
  "dist",
833
974
  "commands",
834
- "partial",
975
+ "message-type",
835
976
  "get.js"
836
977
  ]
837
978
  },
838
- "partial:list": {
979
+ "message-type:list": {
839
980
  "aliases": [],
840
981
  "args": {},
841
982
  "flags": {
@@ -900,27 +1041,28 @@
900
1041
  }
901
1042
  },
902
1043
  "hasDynamicHelp": false,
1044
+ "hidden": true,
903
1045
  "hiddenAliases": [],
904
- "id": "partial:list",
1046
+ "id": "message-type:list",
905
1047
  "pluginAlias": "@knocklabs/cli",
906
1048
  "pluginName": "@knocklabs/cli",
907
1049
  "pluginType": "core",
908
1050
  "strict": true,
909
- "summary": "Display all partials for an environment.",
1051
+ "summary": "Display all in-app message types for an environment.",
910
1052
  "enableJsonFlag": true,
911
1053
  "isESM": false,
912
1054
  "relativePath": [
913
1055
  "dist",
914
1056
  "commands",
915
- "partial",
1057
+ "message-type",
916
1058
  "list.js"
917
1059
  ]
918
1060
  },
919
- "partial:pull": {
1061
+ "message-type:pull": {
920
1062
  "aliases": [],
921
1063
  "args": {
922
- "partialKey": {
923
- "name": "partialKey",
1064
+ "messageTypeKey": {
1065
+ "name": "messageTypeKey",
924
1066
  "required": false
925
1067
  }
926
1068
  },
@@ -952,16 +1094,16 @@
952
1094
  },
953
1095
  "all": {
954
1096
  "name": "all",
955
- "summary": "Whether to pull all partials from the specified environment.",
1097
+ "summary": "Whether to pull all in-app message types from the specified environment.",
956
1098
  "allowNo": false,
957
1099
  "type": "boolean"
958
1100
  },
959
- "partials-dir": {
1101
+ "message-types-dir": {
960
1102
  "dependsOn": [
961
1103
  "all"
962
1104
  ],
963
- "name": "partials-dir",
964
- "summary": "The target directory path to pull all partials into.",
1105
+ "name": "message-types-dir",
1106
+ "summary": "The target directory path to pull all in-app message types into.",
965
1107
  "hasDynamicHelp": false,
966
1108
  "multiple": false,
967
1109
  "type": "option"
@@ -980,27 +1122,28 @@
980
1122
  }
981
1123
  },
982
1124
  "hasDynamicHelp": false,
1125
+ "hidden": true,
983
1126
  "hiddenAliases": [],
984
- "id": "partial:pull",
1127
+ "id": "message-type:pull",
985
1128
  "pluginAlias": "@knocklabs/cli",
986
1129
  "pluginName": "@knocklabs/cli",
987
1130
  "pluginType": "core",
988
1131
  "strict": true,
989
- "summary": "Pull one or more partial from an environment into a local file system.",
1132
+ "summary": "Pull one or more in-app message types from an environment into a local file system.",
990
1133
  "enableJsonFlag": false,
991
1134
  "isESM": false,
992
1135
  "relativePath": [
993
1136
  "dist",
994
1137
  "commands",
995
- "partial",
1138
+ "message-type",
996
1139
  "pull.js"
997
1140
  ]
998
1141
  },
999
- "partial:push": {
1142
+ "message-type:push": {
1000
1143
  "aliases": [],
1001
1144
  "args": {
1002
- "partialKey": {
1003
- "name": "partialKey",
1145
+ "messageTypeKey": {
1146
+ "name": "messageTypeKey",
1004
1147
  "required": false
1005
1148
  }
1006
1149
  },
@@ -1024,7 +1167,7 @@
1024
1167
  },
1025
1168
  "environment": {
1026
1169
  "name": "environment",
1027
- "summary": "Pushing a partial is only allowed in the development environment",
1170
+ "summary": "Pushing a message type is only allowed in the development environment",
1028
1171
  "default": "development",
1029
1172
  "hasDynamicHelp": false,
1030
1173
  "multiple": false,
@@ -1035,23 +1178,23 @@
1035
1178
  },
1036
1179
  "all": {
1037
1180
  "name": "all",
1038
- "summary": "Whether to push all partials from the target directory.",
1181
+ "summary": "Whether to push all message types from the target directory.",
1039
1182
  "allowNo": false,
1040
1183
  "type": "boolean"
1041
1184
  },
1042
- "partials-dir": {
1185
+ "message-types-dir": {
1043
1186
  "dependsOn": [
1044
1187
  "all"
1045
1188
  ],
1046
- "name": "partials-dir",
1047
- "summary": "The target directory path to find all partials to push.",
1189
+ "name": "message-types-dir",
1190
+ "summary": "The target directory path to find all message types to push.",
1048
1191
  "hasDynamicHelp": false,
1049
1192
  "multiple": false,
1050
1193
  "type": "option"
1051
1194
  },
1052
1195
  "commit": {
1053
1196
  "name": "commit",
1054
- "summary": "Push and commit the partial(s) at the same time",
1197
+ "summary": "Push and commit the message type(s) at the same time",
1055
1198
  "allowNo": false,
1056
1199
  "type": "boolean"
1057
1200
  },
@@ -1068,27 +1211,28 @@
1068
1211
  }
1069
1212
  },
1070
1213
  "hasDynamicHelp": false,
1214
+ "hidden": true,
1071
1215
  "hiddenAliases": [],
1072
- "id": "partial:push",
1216
+ "id": "message-type:push",
1073
1217
  "pluginAlias": "@knocklabs/cli",
1074
1218
  "pluginName": "@knocklabs/cli",
1075
1219
  "pluginType": "core",
1076
1220
  "strict": true,
1077
- "summary": "Push one or more partials from a local file system to Knock.",
1221
+ "summary": "Push one or more message types from a local file system to Knock.",
1078
1222
  "enableJsonFlag": false,
1079
1223
  "isESM": false,
1080
1224
  "relativePath": [
1081
1225
  "dist",
1082
1226
  "commands",
1083
- "partial",
1227
+ "message-type",
1084
1228
  "push.js"
1085
1229
  ]
1086
1230
  },
1087
- "partial:validate": {
1231
+ "message-type:validate": {
1088
1232
  "aliases": [],
1089
1233
  "args": {
1090
- "partialKey": {
1091
- "name": "partialKey",
1234
+ "messageTypeKey": {
1235
+ "name": "messageTypeKey",
1092
1236
  "required": false
1093
1237
  }
1094
1238
  },
@@ -1112,7 +1256,7 @@
1112
1256
  },
1113
1257
  "environment": {
1114
1258
  "name": "environment",
1115
- "summary": "Validating a partial is only done in the development environment",
1259
+ "summary": "Validating a message type is only done in the development environment",
1116
1260
  "default": "development",
1117
1261
  "hasDynamicHelp": false,
1118
1262
  "multiple": false,
@@ -1123,44 +1267,44 @@
1123
1267
  },
1124
1268
  "all": {
1125
1269
  "name": "all",
1126
- "summary": "Whether to validate all partials from the target directory.",
1270
+ "summary": "Whether to validate all message types from the target directory.",
1127
1271
  "allowNo": false,
1128
1272
  "type": "boolean"
1129
1273
  },
1130
- "partials-dir": {
1274
+ "message-types-dir": {
1131
1275
  "dependsOn": [
1132
1276
  "all"
1133
1277
  ],
1134
- "name": "partials-dir",
1135
- "summary": "The target directory path to find all partials to validate.",
1278
+ "name": "message-types-dir",
1279
+ "summary": "The target directory path to find all message types to validate.",
1136
1280
  "hasDynamicHelp": false,
1137
1281
  "multiple": false,
1138
1282
  "type": "option"
1139
1283
  }
1140
1284
  },
1141
1285
  "hasDynamicHelp": false,
1286
+ "hidden": true,
1142
1287
  "hiddenAliases": [],
1143
- "id": "partial:validate",
1288
+ "id": "message-type:validate",
1144
1289
  "pluginAlias": "@knocklabs/cli",
1145
1290
  "pluginName": "@knocklabs/cli",
1146
1291
  "pluginType": "core",
1147
1292
  "strict": true,
1148
- "summary": "Validate one or more partials from a local file system.",
1293
+ "summary": "Validate one or more message types from a local file system.",
1149
1294
  "enableJsonFlag": false,
1150
1295
  "isESM": false,
1151
1296
  "relativePath": [
1152
1297
  "dist",
1153
1298
  "commands",
1154
- "partial",
1299
+ "message-type",
1155
1300
  "validate.js"
1156
1301
  ]
1157
1302
  },
1158
- "translation:get": {
1303
+ "partial:get": {
1159
1304
  "aliases": [],
1160
1305
  "args": {
1161
- "translationRef": {
1162
- "description": "Translation ref is a identifier string that refers to a unique translation.\nIf a translation has no namespace, it is the same as the locale, e.g. `en`.\nIf namespaced, it is formatted as namespace.locale, e.g. `admin.en`.",
1163
- "name": "translationRef",
1306
+ "partialKey": {
1307
+ "name": "partialKey",
1164
1308
  "required": true
1165
1309
  }
1166
1310
  },
@@ -1202,38 +1346,26 @@
1202
1346
  "summary": "Hide any uncommitted changes.",
1203
1347
  "allowNo": false,
1204
1348
  "type": "boolean"
1205
- },
1206
- "format": {
1207
- "name": "format",
1208
- "summary": "Specify the output format of the returned translations.",
1209
- "default": "json",
1210
- "hasDynamicHelp": false,
1211
- "multiple": false,
1212
- "options": [
1213
- "json",
1214
- "po"
1215
- ],
1216
- "type": "option"
1217
1349
  }
1218
1350
  },
1219
1351
  "hasDynamicHelp": false,
1220
1352
  "hiddenAliases": [],
1221
- "id": "translation:get",
1353
+ "id": "partial:get",
1222
1354
  "pluginAlias": "@knocklabs/cli",
1223
1355
  "pluginName": "@knocklabs/cli",
1224
1356
  "pluginType": "core",
1225
1357
  "strict": true,
1226
- "summary": "Display a single translation from an environment.",
1358
+ "summary": "Display a single partial from an environment.",
1227
1359
  "enableJsonFlag": true,
1228
1360
  "isESM": false,
1229
1361
  "relativePath": [
1230
1362
  "dist",
1231
1363
  "commands",
1232
- "translation",
1364
+ "partial",
1233
1365
  "get.js"
1234
1366
  ]
1235
1367
  },
1236
- "translation:list": {
1368
+ "partial:list": {
1237
1369
  "aliases": [],
1238
1370
  "args": {},
1239
1371
  "flags": {
@@ -1299,27 +1431,26 @@
1299
1431
  },
1300
1432
  "hasDynamicHelp": false,
1301
1433
  "hiddenAliases": [],
1302
- "id": "translation:list",
1434
+ "id": "partial:list",
1303
1435
  "pluginAlias": "@knocklabs/cli",
1304
1436
  "pluginName": "@knocklabs/cli",
1305
1437
  "pluginType": "core",
1306
1438
  "strict": true,
1307
- "summary": "Display all translations for an environment.",
1439
+ "summary": "Display all partials for an environment.",
1308
1440
  "enableJsonFlag": true,
1309
1441
  "isESM": false,
1310
1442
  "relativePath": [
1311
1443
  "dist",
1312
1444
  "commands",
1313
- "translation",
1445
+ "partial",
1314
1446
  "list.js"
1315
1447
  ]
1316
1448
  },
1317
- "translation:pull": {
1449
+ "partial:pull": {
1318
1450
  "aliases": [],
1319
1451
  "args": {
1320
- "translationRef": {
1321
- "description": "Translation ref is a identifier string that refers to a unique translation.\nIf a translation has no namespace, it is the same as the locale, e.g. `en`.\nIf namespaced, it is formatted as namespace.locale, e.g. `admin.en`.",
1322
- "name": "translationRef",
1452
+ "partialKey": {
1453
+ "name": "partialKey",
1323
1454
  "required": false
1324
1455
  }
1325
1456
  },
@@ -1351,16 +1482,16 @@
1351
1482
  },
1352
1483
  "all": {
1353
1484
  "name": "all",
1354
- "summary": "Whether to pull all translations from the specified environment.",
1485
+ "summary": "Whether to pull all partials from the specified environment.",
1355
1486
  "allowNo": false,
1356
1487
  "type": "boolean"
1357
1488
  },
1358
- "translations-dir": {
1489
+ "partials-dir": {
1359
1490
  "dependsOn": [
1360
1491
  "all"
1361
1492
  ],
1362
- "name": "translations-dir",
1363
- "summary": "The target directory path to pull all translations into.",
1493
+ "name": "partials-dir",
1494
+ "summary": "The target directory path to pull all partials into.",
1364
1495
  "hasDynamicHelp": false,
1365
1496
  "multiple": false,
1366
1497
  "type": "option"
@@ -1376,43 +1507,30 @@
1376
1507
  "summary": "Remove the confirmation prompt.",
1377
1508
  "allowNo": false,
1378
1509
  "type": "boolean"
1379
- },
1380
- "format": {
1381
- "name": "format",
1382
- "summary": "Specify the output format of the returned translations.",
1383
- "default": "json",
1384
- "hasDynamicHelp": false,
1385
- "multiple": false,
1386
- "options": [
1387
- "json",
1388
- "po"
1389
- ],
1390
- "type": "option"
1391
1510
  }
1392
1511
  },
1393
1512
  "hasDynamicHelp": false,
1394
1513
  "hiddenAliases": [],
1395
- "id": "translation:pull",
1514
+ "id": "partial:pull",
1396
1515
  "pluginAlias": "@knocklabs/cli",
1397
1516
  "pluginName": "@knocklabs/cli",
1398
1517
  "pluginType": "core",
1399
1518
  "strict": true,
1400
- "summary": "Pull one or more translations from an environment into a local file system.",
1519
+ "summary": "Pull one or more partial from an environment into a local file system.",
1401
1520
  "enableJsonFlag": false,
1402
1521
  "isESM": false,
1403
1522
  "relativePath": [
1404
1523
  "dist",
1405
1524
  "commands",
1406
- "translation",
1525
+ "partial",
1407
1526
  "pull.js"
1408
1527
  ]
1409
1528
  },
1410
- "translation:push": {
1529
+ "partial:push": {
1411
1530
  "aliases": [],
1412
1531
  "args": {
1413
- "translationRef": {
1414
- "description": "Translation ref is a identifier string that refers to a unique translation.\nIf a translation has no namespace, it is the same as the locale, e.g. `en`.\nIf namespaced, it is formatted as namespace.locale, e.g. `admin.en`.",
1415
- "name": "translationRef",
1532
+ "partialKey": {
1533
+ "name": "partialKey",
1416
1534
  "required": false
1417
1535
  }
1418
1536
  },
@@ -1436,7 +1554,7 @@
1436
1554
  },
1437
1555
  "environment": {
1438
1556
  "name": "environment",
1439
- "summary": "Pushing a translation is only allowed in the development environment",
1557
+ "summary": "Pushing a partial is only allowed in the development environment",
1440
1558
  "default": "development",
1441
1559
  "hasDynamicHelp": false,
1442
1560
  "multiple": false,
@@ -1447,23 +1565,23 @@
1447
1565
  },
1448
1566
  "all": {
1449
1567
  "name": "all",
1450
- "summary": "Whether to push all translations from the target directory.",
1568
+ "summary": "Whether to push all partials from the target directory.",
1451
1569
  "allowNo": false,
1452
1570
  "type": "boolean"
1453
1571
  },
1454
- "translations-dir": {
1572
+ "partials-dir": {
1455
1573
  "dependsOn": [
1456
1574
  "all"
1457
1575
  ],
1458
- "name": "translations-dir",
1459
- "summary": "The target directory path to find all translations to push.",
1576
+ "name": "partials-dir",
1577
+ "summary": "The target directory path to find all partials to push.",
1460
1578
  "hasDynamicHelp": false,
1461
1579
  "multiple": false,
1462
1580
  "type": "option"
1463
1581
  },
1464
1582
  "commit": {
1465
1583
  "name": "commit",
1466
- "summary": "Push and commit the translation(s) at the same time",
1584
+ "summary": "Push and commit the partial(s) at the same time",
1467
1585
  "allowNo": false,
1468
1586
  "type": "boolean"
1469
1587
  },
@@ -1481,27 +1599,26 @@
1481
1599
  },
1482
1600
  "hasDynamicHelp": false,
1483
1601
  "hiddenAliases": [],
1484
- "id": "translation:push",
1602
+ "id": "partial:push",
1485
1603
  "pluginAlias": "@knocklabs/cli",
1486
1604
  "pluginName": "@knocklabs/cli",
1487
1605
  "pluginType": "core",
1488
1606
  "strict": true,
1489
- "summary": "Push one or more translations from a local file system to Knock.",
1607
+ "summary": "Push one or more partials from a local file system to Knock.",
1490
1608
  "enableJsonFlag": false,
1491
1609
  "isESM": false,
1492
1610
  "relativePath": [
1493
1611
  "dist",
1494
1612
  "commands",
1495
- "translation",
1613
+ "partial",
1496
1614
  "push.js"
1497
1615
  ]
1498
1616
  },
1499
- "translation:validate": {
1617
+ "partial:validate": {
1500
1618
  "aliases": [],
1501
1619
  "args": {
1502
- "translationRef": {
1503
- "description": "Translation ref is a identifier string that refers to a unique translation.\nIf a translation has no namespace, it is the same as the locale, e.g. `en`.\nIf namespaced, it is formatted as namespace.locale, e.g. `admin.en`.",
1504
- "name": "translationRef",
1620
+ "partialKey": {
1621
+ "name": "partialKey",
1505
1622
  "required": false
1506
1623
  }
1507
1624
  },
@@ -1525,7 +1642,7 @@
1525
1642
  },
1526
1643
  "environment": {
1527
1644
  "name": "environment",
1528
- "summary": "Validating a translation is only done in the development environment",
1645
+ "summary": "Validating a partial is only done in the development environment",
1529
1646
  "default": "development",
1530
1647
  "hasDynamicHelp": false,
1531
1648
  "multiple": false,
@@ -1536,16 +1653,16 @@
1536
1653
  },
1537
1654
  "all": {
1538
1655
  "name": "all",
1539
- "summary": "Whether to validate all translations from the target directory.",
1656
+ "summary": "Whether to validate all partials from the target directory.",
1540
1657
  "allowNo": false,
1541
1658
  "type": "boolean"
1542
1659
  },
1543
- "translations-dir": {
1660
+ "partials-dir": {
1544
1661
  "dependsOn": [
1545
1662
  "all"
1546
1663
  ],
1547
- "name": "translations-dir",
1548
- "summary": "The target directory path to find all translations to validate.",
1664
+ "name": "partials-dir",
1665
+ "summary": "The target directory path to find all partials to validate.",
1549
1666
  "hasDynamicHelp": false,
1550
1667
  "multiple": false,
1551
1668
  "type": "option"
@@ -1553,26 +1670,27 @@
1553
1670
  },
1554
1671
  "hasDynamicHelp": false,
1555
1672
  "hiddenAliases": [],
1556
- "id": "translation:validate",
1673
+ "id": "partial:validate",
1557
1674
  "pluginAlias": "@knocklabs/cli",
1558
1675
  "pluginName": "@knocklabs/cli",
1559
1676
  "pluginType": "core",
1560
1677
  "strict": true,
1561
- "summary": "Validate one or more translations from a local file system.",
1678
+ "summary": "Validate one or more partials from a local file system.",
1562
1679
  "enableJsonFlag": false,
1563
1680
  "isESM": false,
1564
1681
  "relativePath": [
1565
1682
  "dist",
1566
1683
  "commands",
1567
- "translation",
1684
+ "partial",
1568
1685
  "validate.js"
1569
1686
  ]
1570
1687
  },
1571
- "message-type:get": {
1688
+ "translation:get": {
1572
1689
  "aliases": [],
1573
1690
  "args": {
1574
- "messageTypeKey": {
1575
- "name": "messageTypeKey",
1691
+ "translationRef": {
1692
+ "description": "Translation ref is a identifier string that refers to a unique translation.\nIf a translation has no namespace, it is the same as the locale, e.g. `en`.\nIf namespaced, it is formatted as namespace.locale, e.g. `admin.en`.",
1693
+ "name": "translationRef",
1576
1694
  "required": true
1577
1695
  }
1578
1696
  },
@@ -1614,27 +1732,38 @@
1614
1732
  "summary": "Hide any uncommitted changes.",
1615
1733
  "allowNo": false,
1616
1734
  "type": "boolean"
1735
+ },
1736
+ "format": {
1737
+ "name": "format",
1738
+ "summary": "Specify the output format of the returned translations.",
1739
+ "default": "json",
1740
+ "hasDynamicHelp": false,
1741
+ "multiple": false,
1742
+ "options": [
1743
+ "json",
1744
+ "po"
1745
+ ],
1746
+ "type": "option"
1617
1747
  }
1618
1748
  },
1619
1749
  "hasDynamicHelp": false,
1620
- "hidden": true,
1621
1750
  "hiddenAliases": [],
1622
- "id": "message-type:get",
1751
+ "id": "translation:get",
1623
1752
  "pluginAlias": "@knocklabs/cli",
1624
1753
  "pluginName": "@knocklabs/cli",
1625
1754
  "pluginType": "core",
1626
1755
  "strict": true,
1627
- "summary": "Display a single in-app message type from an environment.",
1756
+ "summary": "Display a single translation from an environment.",
1628
1757
  "enableJsonFlag": true,
1629
1758
  "isESM": false,
1630
1759
  "relativePath": [
1631
1760
  "dist",
1632
1761
  "commands",
1633
- "message-type",
1762
+ "translation",
1634
1763
  "get.js"
1635
1764
  ]
1636
1765
  },
1637
- "message-type:list": {
1766
+ "translation:list": {
1638
1767
  "aliases": [],
1639
1768
  "args": {},
1640
1769
  "flags": {
@@ -1699,28 +1828,28 @@
1699
1828
  }
1700
1829
  },
1701
1830
  "hasDynamicHelp": false,
1702
- "hidden": true,
1703
1831
  "hiddenAliases": [],
1704
- "id": "message-type:list",
1832
+ "id": "translation:list",
1705
1833
  "pluginAlias": "@knocklabs/cli",
1706
1834
  "pluginName": "@knocklabs/cli",
1707
1835
  "pluginType": "core",
1708
1836
  "strict": true,
1709
- "summary": "Display all in-app message types for an environment.",
1837
+ "summary": "Display all translations for an environment.",
1710
1838
  "enableJsonFlag": true,
1711
1839
  "isESM": false,
1712
1840
  "relativePath": [
1713
1841
  "dist",
1714
1842
  "commands",
1715
- "message-type",
1843
+ "translation",
1716
1844
  "list.js"
1717
1845
  ]
1718
1846
  },
1719
- "message-type:pull": {
1847
+ "translation:pull": {
1720
1848
  "aliases": [],
1721
1849
  "args": {
1722
- "messageTypeKey": {
1723
- "name": "messageTypeKey",
1850
+ "translationRef": {
1851
+ "description": "Translation ref is a identifier string that refers to a unique translation.\nIf a translation has no namespace, it is the same as the locale, e.g. `en`.\nIf namespaced, it is formatted as namespace.locale, e.g. `admin.en`.",
1852
+ "name": "translationRef",
1724
1853
  "required": false
1725
1854
  }
1726
1855
  },
@@ -1752,16 +1881,16 @@
1752
1881
  },
1753
1882
  "all": {
1754
1883
  "name": "all",
1755
- "summary": "Whether to pull all in-app message types from the specified environment.",
1884
+ "summary": "Whether to pull all translations from the specified environment.",
1756
1885
  "allowNo": false,
1757
1886
  "type": "boolean"
1758
1887
  },
1759
- "message-types-dir": {
1888
+ "translations-dir": {
1760
1889
  "dependsOn": [
1761
1890
  "all"
1762
1891
  ],
1763
- "name": "message-types-dir",
1764
- "summary": "The target directory path to pull all in-app message types into.",
1892
+ "name": "translations-dir",
1893
+ "summary": "The target directory path to pull all translations into.",
1765
1894
  "hasDynamicHelp": false,
1766
1895
  "multiple": false,
1767
1896
  "type": "option"
@@ -1777,31 +1906,43 @@
1777
1906
  "summary": "Remove the confirmation prompt.",
1778
1907
  "allowNo": false,
1779
1908
  "type": "boolean"
1909
+ },
1910
+ "format": {
1911
+ "name": "format",
1912
+ "summary": "Specify the output format of the returned translations.",
1913
+ "default": "json",
1914
+ "hasDynamicHelp": false,
1915
+ "multiple": false,
1916
+ "options": [
1917
+ "json",
1918
+ "po"
1919
+ ],
1920
+ "type": "option"
1780
1921
  }
1781
1922
  },
1782
1923
  "hasDynamicHelp": false,
1783
- "hidden": true,
1784
1924
  "hiddenAliases": [],
1785
- "id": "message-type:pull",
1925
+ "id": "translation:pull",
1786
1926
  "pluginAlias": "@knocklabs/cli",
1787
1927
  "pluginName": "@knocklabs/cli",
1788
1928
  "pluginType": "core",
1789
1929
  "strict": true,
1790
- "summary": "Pull one or more in-app message types from an environment into a local file system.",
1930
+ "summary": "Pull one or more translations from an environment into a local file system.",
1791
1931
  "enableJsonFlag": false,
1792
1932
  "isESM": false,
1793
1933
  "relativePath": [
1794
1934
  "dist",
1795
1935
  "commands",
1796
- "message-type",
1936
+ "translation",
1797
1937
  "pull.js"
1798
1938
  ]
1799
1939
  },
1800
- "message-type:push": {
1940
+ "translation:push": {
1801
1941
  "aliases": [],
1802
1942
  "args": {
1803
- "messageTypeKey": {
1804
- "name": "messageTypeKey",
1943
+ "translationRef": {
1944
+ "description": "Translation ref is a identifier string that refers to a unique translation.\nIf a translation has no namespace, it is the same as the locale, e.g. `en`.\nIf namespaced, it is formatted as namespace.locale, e.g. `admin.en`.",
1945
+ "name": "translationRef",
1805
1946
  "required": false
1806
1947
  }
1807
1948
  },
@@ -1825,7 +1966,7 @@
1825
1966
  },
1826
1967
  "environment": {
1827
1968
  "name": "environment",
1828
- "summary": "Pushing a message type is only allowed in the development environment",
1969
+ "summary": "Pushing a translation is only allowed in the development environment",
1829
1970
  "default": "development",
1830
1971
  "hasDynamicHelp": false,
1831
1972
  "multiple": false,
@@ -1836,23 +1977,23 @@
1836
1977
  },
1837
1978
  "all": {
1838
1979
  "name": "all",
1839
- "summary": "Whether to push all message types from the target directory.",
1980
+ "summary": "Whether to push all translations from the target directory.",
1840
1981
  "allowNo": false,
1841
1982
  "type": "boolean"
1842
1983
  },
1843
- "message-types-dir": {
1984
+ "translations-dir": {
1844
1985
  "dependsOn": [
1845
1986
  "all"
1846
1987
  ],
1847
- "name": "message-types-dir",
1848
- "summary": "The target directory path to find all message types to push.",
1988
+ "name": "translations-dir",
1989
+ "summary": "The target directory path to find all translations to push.",
1849
1990
  "hasDynamicHelp": false,
1850
1991
  "multiple": false,
1851
1992
  "type": "option"
1852
1993
  },
1853
1994
  "commit": {
1854
1995
  "name": "commit",
1855
- "summary": "Push and commit the message type(s) at the same time",
1996
+ "summary": "Push and commit the translation(s) at the same time",
1856
1997
  "allowNo": false,
1857
1998
  "type": "boolean"
1858
1999
  },
@@ -1869,28 +2010,28 @@
1869
2010
  }
1870
2011
  },
1871
2012
  "hasDynamicHelp": false,
1872
- "hidden": true,
1873
2013
  "hiddenAliases": [],
1874
- "id": "message-type:push",
2014
+ "id": "translation:push",
1875
2015
  "pluginAlias": "@knocklabs/cli",
1876
2016
  "pluginName": "@knocklabs/cli",
1877
2017
  "pluginType": "core",
1878
2018
  "strict": true,
1879
- "summary": "Push one or more message types from a local file system to Knock.",
2019
+ "summary": "Push one or more translations from a local file system to Knock.",
1880
2020
  "enableJsonFlag": false,
1881
2021
  "isESM": false,
1882
2022
  "relativePath": [
1883
2023
  "dist",
1884
2024
  "commands",
1885
- "message-type",
2025
+ "translation",
1886
2026
  "push.js"
1887
2027
  ]
1888
2028
  },
1889
- "message-type:validate": {
2029
+ "translation:validate": {
1890
2030
  "aliases": [],
1891
2031
  "args": {
1892
- "messageTypeKey": {
1893
- "name": "messageTypeKey",
2032
+ "translationRef": {
2033
+ "description": "Translation ref is a identifier string that refers to a unique translation.\nIf a translation has no namespace, it is the same as the locale, e.g. `en`.\nIf namespaced, it is formatted as namespace.locale, e.g. `admin.en`.",
2034
+ "name": "translationRef",
1894
2035
  "required": false
1895
2036
  }
1896
2037
  },
@@ -1914,7 +2055,7 @@
1914
2055
  },
1915
2056
  "environment": {
1916
2057
  "name": "environment",
1917
- "summary": "Validating a message type is only done in the development environment",
2058
+ "summary": "Validating a translation is only done in the development environment",
1918
2059
  "default": "development",
1919
2060
  "hasDynamicHelp": false,
1920
2061
  "multiple": false,
@@ -1925,36 +2066,35 @@
1925
2066
  },
1926
2067
  "all": {
1927
2068
  "name": "all",
1928
- "summary": "Whether to validate all message types from the target directory.",
2069
+ "summary": "Whether to validate all translations from the target directory.",
1929
2070
  "allowNo": false,
1930
2071
  "type": "boolean"
1931
2072
  },
1932
- "message-types-dir": {
2073
+ "translations-dir": {
1933
2074
  "dependsOn": [
1934
2075
  "all"
1935
2076
  ],
1936
- "name": "message-types-dir",
1937
- "summary": "The target directory path to find all message types to validate.",
2077
+ "name": "translations-dir",
2078
+ "summary": "The target directory path to find all translations to validate.",
1938
2079
  "hasDynamicHelp": false,
1939
2080
  "multiple": false,
1940
2081
  "type": "option"
1941
2082
  }
1942
2083
  },
1943
2084
  "hasDynamicHelp": false,
1944
- "hidden": true,
1945
2085
  "hiddenAliases": [],
1946
- "id": "message-type:validate",
2086
+ "id": "translation:validate",
1947
2087
  "pluginAlias": "@knocklabs/cli",
1948
2088
  "pluginName": "@knocklabs/cli",
1949
2089
  "pluginType": "core",
1950
2090
  "strict": true,
1951
- "summary": "Validate one or more message types from a local file system.",
2091
+ "summary": "Validate one or more translations from a local file system.",
1952
2092
  "enableJsonFlag": false,
1953
2093
  "isESM": false,
1954
2094
  "relativePath": [
1955
2095
  "dist",
1956
2096
  "commands",
1957
- "message-type",
2097
+ "translation",
1958
2098
  "validate.js"
1959
2099
  ]
1960
2100
  },
@@ -2612,5 +2752,5 @@
2612
2752
  ]
2613
2753
  }
2614
2754
  },
2615
- "version": "0.1.21"
2755
+ "version": "0.1.22"
2616
2756
  }