deepline 0.3.503 → 0.3.504
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/dist/bundling-sources/sdk/src/release.ts +1 -1
- package/dist/bundling-sources/shared_libs/monitors/http-error-response.ts +35 -0
- package/dist/bundling-sources/shared_libs/monitors/provider-monitor-batch-operation.ts +1 -1
- package/dist/bundling-sources/shared_libs/monitors/provider-monitor-public-aliases.ts +13 -0
- package/dist/cli/{auth-IC4WLSE3.mjs → auth-3L5AA5AX.mjs} +5 -5
- package/dist/cli/auth-UPK4IIIN.js +43 -0
- package/dist/cli/{billing-2VOV64SD.mjs → billing-E7EASVPO.mjs} +19 -12
- package/dist/cli/{billing-LWQOII22.js → billing-HOGXVE2V.js} +92 -85
- package/dist/cli/{chunk-FHJ54BHH.mjs → chunk-22OCKCYS.mjs} +1 -1
- package/dist/cli/{chunk-D27HP3HS.mjs → chunk-2ABRDH3B.mjs} +2 -2
- package/dist/cli/{chunk-WHP3FJ7T.js → chunk-2W77YCKH.js} +5 -5
- package/dist/cli/{chunk-KGLVATEB.mjs → chunk-3MLFFWDM.mjs} +2 -2
- package/dist/cli/{chunk-K7NFFQFU.mjs → chunk-4CC67XH5.mjs} +2 -2
- package/dist/cli/{chunk-DPI5OYVU.mjs → chunk-5CHBIJIM.mjs} +2 -2
- package/dist/cli/chunk-5LUF4LAR.mjs +209 -0
- package/dist/cli/{chunk-A2C6ONWA.js → chunk-5Z6EULD5.js} +6 -6
- package/dist/cli/{chunk-33JUK73X.js → chunk-67OI26OE.js} +7 -7
- package/dist/cli/{chunk-IIP46RVC.js → chunk-6JNBMTCZ.js} +1 -1
- package/dist/cli/{chunk-HRTDCXHI.js → chunk-6SMR7LU7.js} +2 -2
- package/dist/cli/{chunk-7HEDCIR3.mjs → chunk-7F4OEHQK.mjs} +1 -1
- package/dist/cli/{chunk-C5RQTTLP.js → chunk-7P2QVMBP.js} +7 -7
- package/dist/cli/{chunk-MJQOG4TZ.js → chunk-A6LA42JY.js} +16 -16
- package/dist/cli/{chunk-XYZZZLN6.mjs → chunk-BTWUNKKX.mjs} +2 -2
- package/dist/cli/{chunk-EDMV4JT5.mjs → chunk-BX45XMXZ.mjs} +2 -2
- package/dist/cli/{chunk-GIHNEYBG.mjs → chunk-DEAJVQEG.mjs} +1 -1
- package/dist/cli/{chunk-2K2QBLYO.js → chunk-FISP4LCK.js} +53 -53
- package/dist/cli/{chunk-26RSSTCF.js → chunk-FTRVCIGC.js} +26 -26
- package/dist/cli/{chunk-JJVN7OIX.mjs → chunk-GGBXNQCR.mjs} +4 -4
- package/dist/cli/{chunk-4IIYSBEP.js → chunk-GJ2DA35C.js} +30 -4
- package/dist/cli/{chunk-RVOBFO7C.js → chunk-GRAGUYIE.js} +41 -41
- package/dist/cli/{chunk-ZEQPCEV4.mjs → chunk-HUX5DZO6.mjs} +3 -3
- package/dist/cli/{chunk-6XTE6C3W.mjs → chunk-IGNQKOWT.mjs} +10 -10
- package/dist/cli/{chunk-FVDTERO2.js → chunk-IPAMOMGP.js} +21 -21
- package/dist/cli/{chunk-FZHOWPSN.js → chunk-JPR2546F.js} +16 -16
- package/dist/cli/{chunk-3CXHK4TW.js → chunk-KCKAFTPY.js} +6 -6
- package/dist/cli/{chunk-2626LTU3.js → chunk-KGUGNEKL.js} +96 -96
- package/dist/cli/{chunk-QIEYEY6Z.js → chunk-LHXYCZYO.js} +8 -8
- package/dist/cli/{chunk-PVA3MWCO.js → chunk-MJTK6Q3G.js} +3 -3
- package/dist/cli/{chunk-EQ3WMKFY.mjs → chunk-MLMWM5DV.mjs} +5 -5
- package/dist/cli/{chunk-VC5B462T.mjs → chunk-NZ7Z7WNM.mjs} +2 -2
- package/dist/cli/{chunk-5GI6NKOE.mjs → chunk-OX2D6BG4.mjs} +1 -1
- package/dist/cli/{chunk-F73PD2XD.js → chunk-QKKU2FH4.js} +7 -7
- package/dist/cli/{chunk-URZNSJE2.mjs → chunk-QOLX2O2S.mjs} +4 -4
- package/dist/cli/chunk-R7J7CJPZ.js +209 -0
- package/dist/cli/{chunk-TCQYWZFS.js → chunk-SMSQVRHE.js} +5 -5
- package/dist/cli/{chunk-J6RBOLK7.mjs → chunk-SVFTZTCI.mjs} +1 -1
- package/dist/cli/{chunk-5M5WSFRZ.mjs → chunk-UFYJTRSF.mjs} +28 -2
- package/dist/cli/{chunk-FIUTDSJX.js → chunk-UJMBG5JU.js} +4 -4
- package/dist/cli/{chunk-AARF4SOW.js → chunk-USTJEEND.js} +9 -9
- package/dist/cli/{chunk-YXGPMTAK.js → chunk-UXQQPMYO.js} +2 -2
- package/dist/cli/{chunk-GLZBFBJS.mjs → chunk-VJVJWZ6I.mjs} +5 -5
- package/dist/cli/{chunk-HS63YBT5.js → chunk-WBIDPDKJ.js} +3 -3
- package/dist/cli/{chunk-B3X4YWQ6.js → chunk-WZSFIJMG.js} +53 -53
- package/dist/cli/{chunk-BI2Q45SY.mjs → chunk-XHZSPMNC.mjs} +4 -4
- package/dist/cli/{chunk-L3TZV625.mjs → chunk-Y6XKCEPK.mjs} +1 -1
- package/dist/cli/{chunk-JPDD4Y53.mjs → chunk-Y7VEHKID.mjs} +6 -6
- package/dist/cli/{chunk-KPBBT6OS.mjs → chunk-YOQ2NNDO.mjs} +1 -1
- package/dist/cli/{chunk-WS274KID.mjs → chunk-Z6FXUDIL.mjs} +1 -1
- package/dist/cli/command-docs.d.mts +2 -1
- package/dist/cli/command-docs.d.ts +2 -1
- package/dist/cli/command-docs.js +6 -2
- package/dist/cli/command-docs.mjs +5 -1
- package/dist/cli/{csv-NEWCNOSZ.js → csv-2XWGPITO.js} +13 -13
- package/dist/cli/{csv-2TXOI3UE.mjs → csv-433JEHLQ.mjs} +4 -4
- package/dist/cli/{db-PX7EQEIG.mjs → db-K747DH43.mjs} +6 -6
- package/dist/cli/{db-J3IJS4OG.js → db-PJJMD4VH.js} +27 -27
- package/dist/cli/describe-OYS7LZJD.js +49 -0
- package/dist/cli/{describe-GQHGTZSL.mjs → describe-VEDDYW4P.mjs} +17 -17
- package/dist/cli/{executions-RO3TJUXL.js → executions-HM5T72H6.js} +8 -8
- package/dist/cli/{executions-FFKK24RY.mjs → executions-JWRX3XCT.mjs} +6 -6
- package/dist/cli/{feedback-XRR4HIS6.js → feedback-34UG4BO3.js} +8 -8
- package/dist/cli/{feedback-ZTO56SRL.mjs → feedback-MNSIA63Y.mjs} +4 -4
- package/dist/cli/git-5YQJSJFR.js +25 -0
- package/dist/cli/{git-FIPBVFYZ.mjs → git-ZKEOXV3A.mjs} +5 -5
- package/dist/cli/index.js +143 -141
- package/dist/cli/index.mjs +43 -41
- package/dist/cli/{legacy-noops-AMD2NWHF.mjs → legacy-noops-5M4T4ZVT.mjs} +5 -5
- package/dist/cli/{legacy-noops-MTBBGM27.js → legacy-noops-YXSI4FVU.js} +8 -8
- package/dist/cli/{monitors-24LDKDJX.mjs → monitors-C65OC4AW.mjs} +7 -7
- package/dist/cli/{monitors-42PIGLBF.js → monitors-O25GDOYE.js} +95 -95
- package/dist/cli/{org-GQMCA3MN.js → org-2GSPLY2A.js} +72 -72
- package/dist/cli/{org-4B7SCFRL.mjs → org-ZRMG5NS2.mjs} +6 -6
- package/dist/cli/{pages-RL2M62GJ.js → pages-45DPADK6.js} +18 -18
- package/dist/cli/{pages-PD5EGL2R.mjs → pages-TZZUFBRO.mjs} +6 -6
- package/dist/cli/{play-5V54VTUR.mjs → play-3D7HH273.mjs} +23 -217
- package/dist/cli/{play-FST6ZAHW.js → play-RCGMND6X.js} +323 -517
- package/dist/cli/{providers-HBUUPN7J.js → providers-3N3ECMTY.js} +9 -9
- package/dist/cli/{providers-N5YVCKPL.mjs → providers-PSAKV6CJ.mjs} +6 -6
- package/dist/cli/{quickstart-NJDDVTQR.mjs → quickstart-2A35SMGC.mjs} +4 -4
- package/dist/cli/{quickstart-4QIQNSHG.js → quickstart-6R6AIXM6.js} +6 -6
- package/dist/cli/{run-JHI5MTHD.mjs → run-F3TLDGUO.mjs} +22 -22
- package/dist/cli/{run-FGOKCG4J.js → run-F6ZXTASZ.js} +40 -40
- package/dist/cli/{search-EWIZBIY2.mjs → search-CZLCY3D2.mjs} +7 -7
- package/dist/cli/search-R5VEWJO2.js +32 -0
- package/dist/cli/{search-output-NAK3MWBH.mjs → search-output-MQTSTLN5.mjs} +4 -4
- package/dist/cli/{search-output-TMQTRC2W.js → search-output-R5XDNILW.js} +6 -6
- package/dist/cli/{secrets-ONQVW5SR.mjs → secrets-D3GF4B2Z.mjs} +6 -6
- package/dist/cli/{secrets-5TSUEOJB.js → secrets-DCJYHDSY.js} +15 -15
- package/dist/cli/{sessions-B7F5O3ZR.mjs → sessions-QGEQ2UYZ.mjs} +5 -5
- package/dist/cli/{sessions-BSGE5EET.js → sessions-Z4JYJSDP.js} +6 -6
- package/dist/cli/{settings-SGGFQV5R.mjs → settings-G7QEXA4N.mjs} +11 -11
- package/dist/cli/{settings-47LARBRU.js → settings-UVXXAT4A.js} +78 -78
- package/dist/cli/{setup-BNFZFXO6.js → setup-5I42W7D4.js} +49 -49
- package/dist/cli/{setup-ATGNXQUK.mjs → setup-QHJU3DUI.mjs} +9 -9
- package/dist/cli/{skills-CIMBRM5R.mjs → skills-5LRF4UKX.mjs} +7 -7
- package/dist/cli/skills-FB6TV52O.js +36 -0
- package/dist/cli/tools-L2364RPA.js +56 -0
- package/dist/cli/{tools-DTDXAULX.mjs → tools-PUT6STVG.mjs} +16 -16
- package/dist/cli/{update-EOIJBJCO.mjs → update-CJ2GA64X.mjs} +9 -9
- package/dist/cli/update-ESYJGYVZ.js +34 -0
- package/dist/cli/{workflow-IWXUJPWY.mjs → workflow-HVEWRTXD.mjs} +7 -7
- package/dist/cli/{workflow-V5VKPICQ.js → workflow-O67MEBCP.js} +17 -17
- package/dist/index.js +9 -9
- package/dist/index.mjs +6 -6
- package/dist/install-integrity.json +102 -100
- package/dist/plays/bundle-play-file.mjs +4 -4
- package/dist/release.d.mts +1 -1
- package/dist/release.d.ts +1 -1
- package/dist/release.js +2 -2
- package/dist/release.mjs +1 -1
- package/dist/server.js +5 -5
- package/dist/server.mjs +3 -3
- package/package.json +1 -1
- package/dist/cli/auth-ZCMSXZO4.js +0 -43
- package/dist/cli/describe-LE7EZCL4.js +0 -49
- package/dist/cli/git-26AH4XIO.js +0 -25
- package/dist/cli/search-CTKSEVSO.js +0 -32
- package/dist/cli/skills-6RD25MVM.js +0 -36
- package/dist/cli/tools-TDZH4XHS.js +0 -56
- package/dist/cli/update-Y32VT4VL.js +0 -34
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _chunkSMSQVRHEjs = require('./chunk-SMSQVRHE.js');
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
7
|
+
var _chunk7P2QVMBPjs = require('./chunk-7P2QVMBP.js');
|
|
8
8
|
require('./chunk-E4CABWXL.js');
|
|
9
9
|
require('./chunk-RNSHCJME.js');
|
|
10
10
|
require('./chunk-NMU3VR5U.js');
|
|
@@ -13,28 +13,28 @@ require('./chunk-WSGXBROE.js');
|
|
|
13
13
|
|
|
14
14
|
|
|
15
15
|
|
|
16
|
-
var
|
|
17
|
-
require('./chunk-
|
|
18
|
-
require('./chunk-
|
|
19
|
-
require('./chunk-
|
|
20
|
-
require('./chunk-
|
|
16
|
+
var _chunkA6LA42JYjs = require('./chunk-A6LA42JY.js');
|
|
17
|
+
require('./chunk-6SMR7LU7.js');
|
|
18
|
+
require('./chunk-GRAGUYIE.js');
|
|
19
|
+
require('./chunk-WZSFIJMG.js');
|
|
20
|
+
require('./chunk-MJTK6Q3G.js');
|
|
21
21
|
|
|
22
22
|
|
|
23
23
|
|
|
24
|
-
var
|
|
25
|
-
require('./chunk-
|
|
26
|
-
require('./chunk-
|
|
24
|
+
var _chunkQKKU2FH4js = require('./chunk-QKKU2FH4.js');
|
|
25
|
+
require('./chunk-WBIDPDKJ.js');
|
|
26
|
+
require('./chunk-UJMBG5JU.js');
|
|
27
27
|
require('./chunk-ALJJRZNJ.js');
|
|
28
28
|
require('./chunk-XNYIZMNQ.js');
|
|
29
29
|
require('./chunk-DIAWYWT5.js');
|
|
30
|
-
require('./chunk-
|
|
30
|
+
require('./chunk-6JNBMTCZ.js');
|
|
31
31
|
require('./chunk-OG64RBAC.js');
|
|
32
32
|
require('./chunk-RLX5ZFNX.js');
|
|
33
33
|
require('./chunk-COGTRVWW.js');
|
|
34
34
|
|
|
35
35
|
// src/cli/commands/settings.ts
|
|
36
36
|
var _fs = require('fs');
|
|
37
|
-
var eventHelp =
|
|
37
|
+
var eventHelp = _chunk7P2QVMBPjs.PRODUCT_NOTIFICATION_EVENT_CATALOG.map(
|
|
38
38
|
(event) => ` ${event.id.padEnd(28)} ${event.description}`
|
|
39
39
|
).join("\n");
|
|
40
40
|
function slackDestination(settings) {
|
|
@@ -46,7 +46,7 @@ function slackDestination(settings) {
|
|
|
46
46
|
archivedAt: typeof entry.archivedAt === "number" ? entry.archivedAt : void 0
|
|
47
47
|
})
|
|
48
48
|
);
|
|
49
|
-
return
|
|
49
|
+
return _chunk7P2QVMBPjs.resolveLegacySlackNotification.call(void 0, destinations);
|
|
50
50
|
}
|
|
51
51
|
function eventLines(settings, destinationId) {
|
|
52
52
|
const enabled = new Map(
|
|
@@ -68,10 +68,10 @@ function requireCatalogEvent(settings, eventType) {
|
|
|
68
68
|
return event;
|
|
69
69
|
}
|
|
70
70
|
async function printSettings(options) {
|
|
71
|
-
const settings = await new (0,
|
|
71
|
+
const settings = await new (0, _chunkSMSQVRHEjs.DeeplineClient)().getNotificationSettings();
|
|
72
72
|
const slack = slackDestination(settings);
|
|
73
73
|
const destinationId = typeof _optionalChain([slack, 'optionalAccess', _ => _._id]) === "string" ? slack._id : void 0;
|
|
74
|
-
|
|
74
|
+
_chunkQKKU2FH4js.printCommandEnvelope.call(void 0,
|
|
75
75
|
{
|
|
76
76
|
settings,
|
|
77
77
|
render: {
|
|
@@ -126,8 +126,8 @@ Automatic updates are enabled by default. Turning them on clears an existing
|
|
|
126
126
|
version pin. Pinning installs and holds one exact pin-aware CLI version.
|
|
127
127
|
`
|
|
128
128
|
).option("--json", "Emit JSON output").action((options) => {
|
|
129
|
-
const preferences =
|
|
130
|
-
|
|
129
|
+
const preferences = _chunkA6LA42JYjs.readCliUpdatePreferences.call(void 0, );
|
|
130
|
+
_chunkQKKU2FH4js.printCommandEnvelope.call(void 0,
|
|
131
131
|
{
|
|
132
132
|
autoUpdateEnabled: preferences.autoUpdateEnabled,
|
|
133
133
|
pinnedVersion: preferences.pinnedVersion,
|
|
@@ -150,8 +150,8 @@ version pin. Pinning installs and holds one exact pin-aware CLI version.
|
|
|
150
150
|
autoupdate.command(enabled ? "on" : "off").description(
|
|
151
151
|
enabled ? "Enable automatic CLI updates and clear any version pin." : "Disable automatic CLI updates."
|
|
152
152
|
).option("--json", "Emit JSON output").action((options) => {
|
|
153
|
-
const preferences =
|
|
154
|
-
|
|
153
|
+
const preferences = _chunkA6LA42JYjs.setCliAutoUpdateEnabled.call(void 0, enabled);
|
|
154
|
+
_chunkQKKU2FH4js.printCommandEnvelope.call(void 0,
|
|
155
155
|
{
|
|
156
156
|
ok: true,
|
|
157
157
|
autoUpdateEnabled: preferences.autoUpdateEnabled,
|
|
@@ -172,7 +172,7 @@ version pin. Pinning installs and holds one exact pin-aware CLI version.
|
|
|
172
172
|
});
|
|
173
173
|
}
|
|
174
174
|
autoupdate.command("pin").description("Install and hold an exact pin-aware CLI version.").argument("<version>", "Exact semantic version from a pin-aware release").option("--json", "Emit JSON output").action(async (version, options) => {
|
|
175
|
-
process.exitCode = await
|
|
175
|
+
process.exitCode = await _chunkA6LA42JYjs.runUpdateCommand.call(void 0, {
|
|
176
176
|
pin: version,
|
|
177
177
|
json: options.json,
|
|
178
178
|
executeWithJson: true
|
|
@@ -200,15 +200,15 @@ notifications; there is no general integrations CLI.
|
|
|
200
200
|
if (destination !== "slack")
|
|
201
201
|
throw new Error("Only slack is supported.");
|
|
202
202
|
if (options.dryRun) {
|
|
203
|
-
|
|
203
|
+
_chunkQKKU2FH4js.printCommandEnvelope.call(void 0,
|
|
204
204
|
{ dryRun: true, destination, action: "start_oauth" },
|
|
205
205
|
{ json: options.json }
|
|
206
206
|
);
|
|
207
207
|
return;
|
|
208
208
|
}
|
|
209
|
-
const result = await new (0,
|
|
210
|
-
const browser = options.open ?
|
|
211
|
-
|
|
209
|
+
const result = await new (0, _chunkSMSQVRHEjs.DeeplineClient)().connectNotificationSlack();
|
|
210
|
+
const browser = options.open ? _chunkQKKU2FH4js.openInBrowser.call(void 0, result.redirect_url, { deduplicate: false }) : "not_requested";
|
|
211
|
+
_chunkQKKU2FH4js.printCommandEnvelope.call(void 0,
|
|
212
212
|
{
|
|
213
213
|
...result,
|
|
214
214
|
browser,
|
|
@@ -232,10 +232,10 @@ notifications; there is no general integrations CLI.
|
|
|
232
232
|
}
|
|
233
233
|
);
|
|
234
234
|
notifications.command("channels").description("List Slack channels visible to the connected Deepline app.").option("--query <text>", "Filter channels by name").option("--json", "Emit JSON output").action(async (options) => {
|
|
235
|
-
const result = await new (0,
|
|
235
|
+
const result = await new (0, _chunkSMSQVRHEjs.DeeplineClient)().listNotificationSlackChannels(
|
|
236
236
|
options.query
|
|
237
237
|
);
|
|
238
|
-
|
|
238
|
+
_chunkQKKU2FH4js.printCommandEnvelope.call(void 0,
|
|
239
239
|
{
|
|
240
240
|
...result,
|
|
241
241
|
render: {
|
|
@@ -261,14 +261,14 @@ notifications; there is no general integrations CLI.
|
|
|
261
261
|
}
|
|
262
262
|
const target = options.memberId ? { memberId: options.memberId } : options.channel;
|
|
263
263
|
if (options.dryRun) {
|
|
264
|
-
|
|
264
|
+
_chunkQKKU2FH4js.printCommandEnvelope.call(void 0,
|
|
265
265
|
{ dryRun: true, destination, target },
|
|
266
266
|
{ json: options.json }
|
|
267
267
|
);
|
|
268
268
|
return;
|
|
269
269
|
}
|
|
270
|
-
const result = await new (0,
|
|
271
|
-
|
|
270
|
+
const result = await new (0, _chunkSMSQVRHEjs.DeeplineClient)().setNotificationSlack(target);
|
|
271
|
+
_chunkQKKU2FH4js.printCommandEnvelope.call(void 0,
|
|
272
272
|
{
|
|
273
273
|
ok: true,
|
|
274
274
|
result,
|
|
@@ -294,14 +294,14 @@ notifications; there is no general integrations CLI.
|
|
|
294
294
|
notifications.command("test").description("Send a validation ping to a destination.").argument("<destination>", "Destination kind (currently slack)").option("--dry-run", "Describe the external send without sending").option("--json", "Emit JSON output").action(async (destination, options) => {
|
|
295
295
|
if (destination !== "slack") throw new Error("Only slack is supported.");
|
|
296
296
|
if (options.dryRun) {
|
|
297
|
-
|
|
297
|
+
_chunkQKKU2FH4js.printCommandEnvelope.call(void 0,
|
|
298
298
|
{ dryRun: true, destination, action: "send_test_ping" },
|
|
299
299
|
{ json: options.json }
|
|
300
300
|
);
|
|
301
301
|
return;
|
|
302
302
|
}
|
|
303
|
-
const result = await new (0,
|
|
304
|
-
|
|
303
|
+
const result = await new (0, _chunkSMSQVRHEjs.DeeplineClient)().testNotificationSlack();
|
|
304
|
+
_chunkQKKU2FH4js.printCommandEnvelope.call(void 0,
|
|
305
305
|
{
|
|
306
306
|
...result,
|
|
307
307
|
render: {
|
|
@@ -314,14 +314,14 @@ notifications; there is no general integrations CLI.
|
|
|
314
314
|
notifications.command("disable").description("Disable a product-notification destination.").argument("<destination>", "Destination kind (currently slack)").option("--dry-run", "Describe the mutation without changing settings").option("--json", "Emit JSON output").action(async (destination, options) => {
|
|
315
315
|
if (destination !== "slack") throw new Error("Only slack is supported.");
|
|
316
316
|
if (options.dryRun) {
|
|
317
|
-
|
|
317
|
+
_chunkQKKU2FH4js.printCommandEnvelope.call(void 0,
|
|
318
318
|
{ dryRun: true, destination, action: "disable" },
|
|
319
319
|
{ json: options.json }
|
|
320
320
|
);
|
|
321
321
|
return;
|
|
322
322
|
}
|
|
323
|
-
const result = await new (0,
|
|
324
|
-
|
|
323
|
+
const result = await new (0, _chunkSMSQVRHEjs.DeeplineClient)().disableNotificationSlack();
|
|
324
|
+
_chunkQKKU2FH4js.printCommandEnvelope.call(void 0,
|
|
325
325
|
{
|
|
326
326
|
ok: true,
|
|
327
327
|
result,
|
|
@@ -340,10 +340,10 @@ ${eventHelp}
|
|
|
340
340
|
`
|
|
341
341
|
);
|
|
342
342
|
subscriptions.command("list").description("List every supported event and its current state.").option("--json", "Emit JSON output").action(async (options) => {
|
|
343
|
-
const current = await new (0,
|
|
343
|
+
const current = await new (0, _chunkSMSQVRHEjs.DeeplineClient)().getNotificationSettings();
|
|
344
344
|
const destination = slackDestination(current);
|
|
345
345
|
const destinationId = typeof _optionalChain([destination, 'optionalAccess', _2 => _2._id]) === "string" ? destination._id : void 0;
|
|
346
|
-
|
|
346
|
+
_chunkQKKU2FH4js.printCommandEnvelope.call(void 0,
|
|
347
347
|
{
|
|
348
348
|
catalog: current.catalog,
|
|
349
349
|
subscriptions: current.subscriptions,
|
|
@@ -360,14 +360,14 @@ ${eventHelp}
|
|
|
360
360
|
);
|
|
361
361
|
});
|
|
362
362
|
subscriptions.command("describe").description("Describe one event from the shared product catalog.").argument("<event>", "Event ID; run subscriptions list to enumerate").option("--json", "Emit JSON output").action(async (eventType, options) => {
|
|
363
|
-
const current = await new (0,
|
|
363
|
+
const current = await new (0, _chunkSMSQVRHEjs.DeeplineClient)().getNotificationSettings();
|
|
364
364
|
const event = requireCatalogEvent(current, eventType);
|
|
365
365
|
const destination = slackDestination(current);
|
|
366
366
|
const destinationId = typeof _optionalChain([destination, 'optionalAccess', _3 => _3._id]) === "string" ? destination._id : void 0;
|
|
367
367
|
const subscription = current.subscriptions.find(
|
|
368
368
|
(entry) => entry.eventType === event.id && (!destinationId || entry.destinationId === destinationId)
|
|
369
369
|
);
|
|
370
|
-
|
|
370
|
+
_chunkQKKU2FH4js.printCommandEnvelope.call(void 0,
|
|
371
371
|
{
|
|
372
372
|
event,
|
|
373
373
|
enabled: _optionalChain([subscription, 'optionalAccess', _4 => _4.enabled]) === true,
|
|
@@ -388,11 +388,11 @@ ${eventHelp}
|
|
|
388
388
|
});
|
|
389
389
|
for (const enabled of [true, false]) {
|
|
390
390
|
subscriptions.command(enabled ? "enable" : "disable").description(`${enabled ? "Enable" : "Disable"} one supported event.`).argument("<event>", "Event ID; run subscriptions list to enumerate").option("--dry-run", "Validate intent without changing settings").option("--json", "Emit JSON output").action(async (eventType, options) => {
|
|
391
|
-
const client = new (0,
|
|
391
|
+
const client = new (0, _chunkSMSQVRHEjs.DeeplineClient)();
|
|
392
392
|
const current = await client.getNotificationSettings();
|
|
393
393
|
const event = requireCatalogEvent(current, eventType);
|
|
394
394
|
if (options.dryRun) {
|
|
395
|
-
|
|
395
|
+
_chunkQKKU2FH4js.printCommandEnvelope.call(void 0,
|
|
396
396
|
{ dryRun: true, event, enabled },
|
|
397
397
|
{ json: options.json }
|
|
398
398
|
);
|
|
@@ -402,7 +402,7 @@ ${eventHelp}
|
|
|
402
402
|
[event.id],
|
|
403
403
|
enabled
|
|
404
404
|
);
|
|
405
|
-
|
|
405
|
+
_chunkQKKU2FH4js.printCommandEnvelope.call(void 0,
|
|
406
406
|
{
|
|
407
407
|
ok: true,
|
|
408
408
|
event: event.id,
|
|
@@ -423,11 +423,11 @@ ${eventHelp}
|
|
|
423
423
|
}
|
|
424
424
|
const dlq = notifications.command("dlq").description("Inspect and explicitly resolve inert failed deliveries.");
|
|
425
425
|
dlq.command("list").option("--limit <count>", "Maximum deliveries", "25").option("--json", "Emit JSON output").action(async (options) => {
|
|
426
|
-
const result = await new (0,
|
|
426
|
+
const result = await new (0, _chunkSMSQVRHEjs.DeeplineClient)().listNotificationDlq(
|
|
427
427
|
Number(options.limit)
|
|
428
428
|
);
|
|
429
429
|
const deliveries = _nullishCoalesce(result.deliveries, () => ( []));
|
|
430
|
-
|
|
430
|
+
_chunkQKKU2FH4js.printCommandEnvelope.call(void 0,
|
|
431
431
|
{
|
|
432
432
|
...result,
|
|
433
433
|
render: {
|
|
@@ -445,10 +445,10 @@ ${eventHelp}
|
|
|
445
445
|
);
|
|
446
446
|
});
|
|
447
447
|
dlq.command("get").argument("<delivery-id>").option("--json", "Emit JSON output").action(async (deliveryId, options) => {
|
|
448
|
-
const result = await new (0,
|
|
448
|
+
const result = await new (0, _chunkSMSQVRHEjs.DeeplineClient)().getNotificationDlqDelivery(
|
|
449
449
|
deliveryId
|
|
450
450
|
);
|
|
451
|
-
|
|
451
|
+
_chunkQKKU2FH4js.printCommandEnvelope.call(void 0, result, {
|
|
452
452
|
json: options.json
|
|
453
453
|
});
|
|
454
454
|
});
|
|
@@ -457,17 +457,17 @@ ${eventHelp}
|
|
|
457
457
|
`${action === "retry" ? "Replay once from attempt zero" : "Archive"} one delivery.`
|
|
458
458
|
).argument("<delivery-id>").option("--dry-run", "Describe the mutation without changing state").option("--json", "Emit JSON output").action(async (deliveryId, options) => {
|
|
459
459
|
if (options.dryRun) {
|
|
460
|
-
|
|
460
|
+
_chunkQKKU2FH4js.printCommandEnvelope.call(void 0,
|
|
461
461
|
{ dryRun: true, action, deliveryId },
|
|
462
462
|
{ json: options.json }
|
|
463
463
|
);
|
|
464
464
|
return;
|
|
465
465
|
}
|
|
466
|
-
const result = await new (0,
|
|
466
|
+
const result = await new (0, _chunkSMSQVRHEjs.DeeplineClient)().updateNotificationDlqDelivery(
|
|
467
467
|
deliveryId,
|
|
468
468
|
action
|
|
469
469
|
);
|
|
470
|
-
|
|
470
|
+
_chunkQKKU2FH4js.printCommandEnvelope.call(void 0,
|
|
471
471
|
{ ok: true, action, deliveryId, result },
|
|
472
472
|
{ json: options.json }
|
|
473
473
|
);
|
|
@@ -568,8 +568,8 @@ Examples:
|
|
|
568
568
|
`
|
|
569
569
|
);
|
|
570
570
|
configuration.command("get").description("Show the effective group-based notification configuration.").option("--json", "Emit JSON output").action(async (options) => {
|
|
571
|
-
const result = await new (0,
|
|
572
|
-
|
|
571
|
+
const result = await new (0, _chunkSMSQVRHEjs.DeeplineClient)().getNotificationConfiguration();
|
|
572
|
+
_chunkQKKU2FH4js.printCommandEnvelope.call(void 0,
|
|
573
573
|
{
|
|
574
574
|
...result,
|
|
575
575
|
render: {
|
|
@@ -594,21 +594,21 @@ Examples:
|
|
|
594
594
|
).option("--dry-run", "Validate and display the file without saving it").option("--json", "Emit JSON output").action(async (file, options) => {
|
|
595
595
|
const input = await readNotificationConfigurationChange(file);
|
|
596
596
|
if (options.dryRun) {
|
|
597
|
-
|
|
597
|
+
_chunkQKKU2FH4js.printCommandEnvelope.call(void 0,
|
|
598
598
|
{ dryRun: true, ...input },
|
|
599
599
|
{ json: options.json }
|
|
600
600
|
);
|
|
601
601
|
return;
|
|
602
602
|
}
|
|
603
|
-
const result = await new (0,
|
|
603
|
+
const result = await new (0, _chunkSMSQVRHEjs.DeeplineClient)().changeNotificationConfiguration(
|
|
604
604
|
input.expectedWorkspaceVersion,
|
|
605
605
|
input.change
|
|
606
606
|
);
|
|
607
|
-
|
|
607
|
+
_chunkQKKU2FH4js.printCommandEnvelope.call(void 0, result, { json: options.json });
|
|
608
608
|
});
|
|
609
609
|
notifications.command("events").description("List the Play events available to a notification.").option("--json", "Emit JSON output").action(async (options) => {
|
|
610
|
-
const settings = await new (0,
|
|
611
|
-
|
|
610
|
+
const settings = await new (0, _chunkSMSQVRHEjs.DeeplineClient)().getNotifications();
|
|
611
|
+
_chunkQKKU2FH4js.printCommandEnvelope.call(void 0,
|
|
612
612
|
{
|
|
613
613
|
events: settings.catalog,
|
|
614
614
|
render: {
|
|
@@ -626,9 +626,9 @@ Examples:
|
|
|
626
626
|
);
|
|
627
627
|
});
|
|
628
628
|
notifications.command("list").description("List named notifications and their selected Play events.").option("--json", "Emit JSON output").option("--compact", "Emit only names, state, target, and event IDs").action(async (options) => {
|
|
629
|
-
const settings = await new (0,
|
|
629
|
+
const settings = await new (0, _chunkSMSQVRHEjs.DeeplineClient)().getNotifications();
|
|
630
630
|
const rules = _nullishCoalesce(settings.notifications, () => ( []));
|
|
631
|
-
|
|
631
|
+
_chunkQKKU2FH4js.printCommandEnvelope.call(void 0,
|
|
632
632
|
{
|
|
633
633
|
notifications: options.compact ? rules.map((rule) => ({
|
|
634
634
|
id: rule.id,
|
|
@@ -656,10 +656,10 @@ Examples:
|
|
|
656
656
|
});
|
|
657
657
|
notifications.command("get").argument("<name>", "Notification name or ID").description("Show one named notification.").option("--json", "Emit JSON output").action(async (name, options) => {
|
|
658
658
|
const rule = notificationByName(
|
|
659
|
-
await new (0,
|
|
659
|
+
await new (0, _chunkSMSQVRHEjs.DeeplineClient)().getNotifications(),
|
|
660
660
|
name
|
|
661
661
|
);
|
|
662
|
-
|
|
662
|
+
_chunkQKKU2FH4js.printCommandEnvelope.call(void 0, { notification: rule }, { json: options.json });
|
|
663
663
|
});
|
|
664
664
|
notifications.command("add").argument("<name>", "Group name, for example oncall").requiredOption(
|
|
665
665
|
"--to <target>",
|
|
@@ -673,14 +673,14 @@ Examples:
|
|
|
673
673
|
[]
|
|
674
674
|
).option("--dry-run", "Describe the notification without saving it").option("--json", "Emit JSON output").action(
|
|
675
675
|
async (name, options) => {
|
|
676
|
-
const result = await new (0,
|
|
676
|
+
const result = await new (0, _chunkSMSQVRHEjs.DeeplineClient)().createNotificationGroup({
|
|
677
677
|
name,
|
|
678
678
|
targets: options.to,
|
|
679
679
|
legacyEvents: options.for,
|
|
680
680
|
dryRun: options.dryRun
|
|
681
681
|
});
|
|
682
682
|
if (result.mode === "dry_run") {
|
|
683
|
-
|
|
683
|
+
_chunkQKKU2FH4js.printCommandEnvelope.call(void 0,
|
|
684
684
|
result.compatibilityMode ? {
|
|
685
685
|
dryRun: true,
|
|
686
686
|
name: result.name,
|
|
@@ -697,7 +697,7 @@ Examples:
|
|
|
697
697
|
return;
|
|
698
698
|
}
|
|
699
699
|
if (result.mode === "legacy") {
|
|
700
|
-
|
|
700
|
+
_chunkQKKU2FH4js.printCommandEnvelope.call(void 0,
|
|
701
701
|
{
|
|
702
702
|
notification: result.notification,
|
|
703
703
|
render: {
|
|
@@ -719,7 +719,7 @@ Examples:
|
|
|
719
719
|
);
|
|
720
720
|
return;
|
|
721
721
|
}
|
|
722
|
-
|
|
722
|
+
_chunkQKKU2FH4js.printCommandEnvelope.call(void 0,
|
|
723
723
|
{
|
|
724
724
|
...result,
|
|
725
725
|
render: {
|
|
@@ -755,12 +755,12 @@ Examples:
|
|
|
755
755
|
[]
|
|
756
756
|
).option("--dry-run", "Describe the change without saving it").option("--json", "Emit JSON output").action(
|
|
757
757
|
async (name, options) => {
|
|
758
|
-
const client = new (0,
|
|
758
|
+
const client = new (0, _chunkSMSQVRHEjs.DeeplineClient)();
|
|
759
759
|
const rule = notificationByName(await client.getNotifications(), name);
|
|
760
760
|
const target = options.to ? parseSlackTarget(options.to) : rule.target.kind === "member" ? { memberId: rule.target.id } : { channel: rule.target.name };
|
|
761
761
|
const eventTypes = options.for.length ? options.for : rule.eventTypes;
|
|
762
762
|
if (options.dryRun) {
|
|
763
|
-
|
|
763
|
+
_chunkQKKU2FH4js.printCommandEnvelope.call(void 0,
|
|
764
764
|
{ dryRun: true, notification: rule.id, target, eventTypes },
|
|
765
765
|
{ json: options.json }
|
|
766
766
|
);
|
|
@@ -771,15 +771,15 @@ Examples:
|
|
|
771
771
|
...target,
|
|
772
772
|
eventTypes
|
|
773
773
|
});
|
|
774
|
-
|
|
774
|
+
_chunkQKKU2FH4js.printCommandEnvelope.call(void 0, { notification: result }, { json: options.json });
|
|
775
775
|
}
|
|
776
776
|
);
|
|
777
777
|
const slack = notifications.command("slack").description("Select a channel from the connected Slack integration.");
|
|
778
778
|
slack.command("channels").option("--search <text>", "Filter channel names").option("--json", "Emit JSON output").action(async (options) => {
|
|
779
|
-
const result = await new (0,
|
|
779
|
+
const result = await new (0, _chunkSMSQVRHEjs.DeeplineClient)().listNotificationChannels(
|
|
780
780
|
options.search
|
|
781
781
|
);
|
|
782
|
-
|
|
782
|
+
_chunkQKKU2FH4js.printCommandEnvelope.call(void 0,
|
|
783
783
|
{
|
|
784
784
|
...result,
|
|
785
785
|
render: {
|
|
@@ -799,31 +799,31 @@ Examples:
|
|
|
799
799
|
["resume", true]
|
|
800
800
|
]) {
|
|
801
801
|
notifications.command(command).argument("<name>", "Notification name or ID").option("--dry-run", "Describe the change without saving it").option("--json", "Emit JSON output").action(async (name, options) => {
|
|
802
|
-
const client = new (0,
|
|
802
|
+
const client = new (0, _chunkSMSQVRHEjs.DeeplineClient)();
|
|
803
803
|
const rule = notificationByName(await client.getNotifications(), name);
|
|
804
804
|
if (options.dryRun) {
|
|
805
|
-
|
|
805
|
+
_chunkQKKU2FH4js.printCommandEnvelope.call(void 0,
|
|
806
806
|
{ dryRun: true, notification: rule.id, enabled },
|
|
807
807
|
{ json: options.json }
|
|
808
808
|
);
|
|
809
809
|
return;
|
|
810
810
|
}
|
|
811
811
|
const result = await client.updateNotification(rule.id, { enabled });
|
|
812
|
-
|
|
812
|
+
_chunkQKKU2FH4js.printCommandEnvelope.call(void 0, { notification: result }, { json: options.json });
|
|
813
813
|
});
|
|
814
814
|
}
|
|
815
815
|
notifications.command("test").argument("<name>", "Notification name or ID").option("--dry-run", "Describe the external send without sending").option("--json", "Emit JSON output").action(async (name, options) => {
|
|
816
|
-
const client = new (0,
|
|
816
|
+
const client = new (0, _chunkSMSQVRHEjs.DeeplineClient)();
|
|
817
817
|
const rule = notificationByName(await client.getNotifications(), name);
|
|
818
818
|
if (options.dryRun) {
|
|
819
|
-
|
|
819
|
+
_chunkQKKU2FH4js.printCommandEnvelope.call(void 0,
|
|
820
820
|
{ dryRun: true, notification: rule.id, action: "send_test" },
|
|
821
821
|
{ json: options.json }
|
|
822
822
|
);
|
|
823
823
|
return;
|
|
824
824
|
}
|
|
825
825
|
const result = await client.testNotification(rule.id);
|
|
826
|
-
|
|
826
|
+
_chunkQKKU2FH4js.printCommandEnvelope.call(void 0,
|
|
827
827
|
{ ...result, notification: rule.name },
|
|
828
828
|
{ json: options.json }
|
|
829
829
|
);
|
|
@@ -831,17 +831,17 @@ Examples:
|
|
|
831
831
|
notifications.command("delete").argument("<name>", "Notification name or ID").description(
|
|
832
832
|
"Archive one notification without touching its provider integration."
|
|
833
833
|
).option("--dry-run", "Describe the deletion without changing state").option("--json", "Emit JSON output").action(async (name, options) => {
|
|
834
|
-
const client = new (0,
|
|
834
|
+
const client = new (0, _chunkSMSQVRHEjs.DeeplineClient)();
|
|
835
835
|
const rule = notificationByName(await client.getNotifications(), name);
|
|
836
836
|
if (options.dryRun) {
|
|
837
|
-
|
|
837
|
+
_chunkQKKU2FH4js.printCommandEnvelope.call(void 0,
|
|
838
838
|
{ dryRun: true, notification: rule.id, action: "archive" },
|
|
839
839
|
{ json: options.json }
|
|
840
840
|
);
|
|
841
841
|
return;
|
|
842
842
|
}
|
|
843
843
|
const result = await client.deleteNotification(rule.id);
|
|
844
|
-
|
|
844
|
+
_chunkQKKU2FH4js.printCommandEnvelope.call(void 0,
|
|
845
845
|
{ ...result, notification: rule.name },
|
|
846
846
|
{ json: options.json }
|
|
847
847
|
);
|