deepline 0.3.339 → 0.3.341
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/observability/scheduled-jobs.json +20 -2
- package/dist/cli/auth-R7MYOAIT.js +31 -0
- package/dist/cli/{auth-DLHLIJBP.mjs → auth-VIQ6WBU5.mjs} +4 -4
- package/dist/cli/{billing-MLOOWHEX.mjs → billing-7MIYVDBJ.mjs} +4 -4
- package/dist/cli/{billing-7UQXVLH2.js → billing-FW5TG3CQ.js} +71 -71
- package/dist/cli/{chunk-7CQBFUGN.mjs → chunk-24RQUGMX.mjs} +6 -6
- package/dist/cli/{chunk-6KKVUVA6.js → chunk-2DFZELZG.js} +225 -225
- package/dist/cli/{chunk-TJSLXGQ2.mjs → chunk-4LXK5CMK.mjs} +1 -1
- package/dist/cli/{chunk-G7DUWWKO.js → chunk-5GQQMICZ.js} +9 -9
- package/dist/cli/{chunk-JMKUKFQS.mjs → chunk-5RSBKWF6.mjs} +2 -2
- package/dist/cli/{chunk-CI6TSINO.js → chunk-7IT3B2BL.js} +8 -8
- package/dist/cli/{chunk-FC4X6GQI.mjs → chunk-7ZBSHTYB.mjs} +4 -4
- package/dist/cli/{chunk-S3WJ6LZJ.js → chunk-AFCZAA2Y.js} +8 -8
- package/dist/cli/{chunk-RKSYETCE.js → chunk-ASW2NN7E.js} +2 -2
- package/dist/cli/{chunk-OWNN6BDD.js → chunk-ATLE7AKN.js} +15 -15
- package/dist/cli/{chunk-FTV2LY4S.mjs → chunk-BX6GJWBS.mjs} +3 -3
- package/dist/cli/{chunk-OAQ3JR4F.js → chunk-FH6IVCYY.js} +48 -48
- package/dist/cli/{chunk-YSM3GVSU.mjs → chunk-IWSPBSV7.mjs} +1 -1
- package/dist/cli/{chunk-TOB6N2QF.mjs → chunk-KIGZU235.mjs} +2 -2
- package/dist/cli/{chunk-DOGZHHO5.js → chunk-LT33BWLY.js} +6 -6
- package/dist/cli/{chunk-2UGEF3HR.js → chunk-MGYI6JH2.js} +26 -26
- package/dist/cli/{chunk-RWPA6MGP.js → chunk-NUIPBZVP.js} +45 -45
- package/dist/cli/{chunk-2OJGKWOX.js → chunk-PIVZA4GI.js} +4 -4
- package/dist/cli/{chunk-35IBDQNW.mjs → chunk-TU3WZZG4.mjs} +5 -5
- package/dist/cli/{chunk-KGMWBR5S.mjs → chunk-TVNBP3CX.mjs} +1 -1
- package/dist/cli/{chunk-RI7LPAUP.mjs → chunk-U4VULGDJ.mjs} +2 -2
- package/dist/cli/{chunk-KSHINNFC.mjs → chunk-VO4RF766.mjs} +1 -1
- package/dist/cli/{chunk-ISV5JQ43.js → chunk-WQ5LPOFC.js} +60 -60
- package/dist/cli/{chunk-2HTS4ZMF.js → chunk-XQD53NOJ.js} +1 -1
- package/dist/cli/{chunk-G5KDPFKG.mjs → chunk-Y2BTWBO7.mjs} +1 -1
- package/dist/cli/{chunk-MIMOIQXH.mjs → chunk-ZK7BK7OD.mjs} +2 -2
- package/dist/cli/{client-NVSE7EBL.mjs → client-5FQFKJS3.mjs} +3 -3
- package/dist/cli/client-HTXSC666.js +20 -0
- package/dist/cli/{csv-FC2PSRSE.mjs → csv-J7CGFUZO.mjs} +3 -3
- package/dist/cli/{csv-L7MQDTXX.js → csv-X5GUUDBX.js} +12 -12
- package/dist/cli/{db-G5HO22EN.mjs → db-DXPCEPTU.mjs} +4 -4
- package/dist/cli/{db-7WOBHZBZ.js → db-SQXA3O74.js} +29 -29
- package/dist/cli/{describe-AWFEE2EE.js → describe-EQTSIVVZ.js} +15 -15
- package/dist/cli/{describe-KCUL54J3.mjs → describe-VHW7FVBJ.mjs} +8 -8
- package/dist/cli/{executions-MXEI32CR.js → executions-4XLP2D45.js} +6 -6
- package/dist/cli/{executions-TSEMNPMJ.mjs → executions-OSF7KBAM.mjs} +4 -4
- package/dist/cli/{feedback-EPVGGNT6.js → feedback-7EBKMWNP.js} +7 -7
- package/dist/cli/{feedback-R72V4O7H.mjs → feedback-HM4OG6GJ.mjs} +3 -3
- package/dist/cli/git-4VXVJGO6.js +23 -0
- package/dist/cli/{git-GVFRGXZI.mjs → git-LXIXK5ZP.mjs} +4 -4
- package/dist/cli/index.js +79 -79
- package/dist/cli/index.mjs +31 -31
- package/dist/cli/{legacy-noops-4QF2EUUO.mjs → legacy-noops-HEDDLUOF.mjs} +4 -4
- package/dist/cli/{legacy-noops-3Q4O5QJT.js → legacy-noops-O5TQI3GH.js} +7 -7
- package/dist/cli/{monitors-RKV3XM5P.js → monitors-334IBGT6.js} +85 -85
- package/dist/cli/{monitors-AWGYR66F.mjs → monitors-6EX3T2US.mjs} +4 -4
- package/dist/cli/{org-DTERGBF7.js → org-VWLMFKI7.js} +60 -60
- package/dist/cli/{org-YMHTIEYB.mjs → org-ZMKKQ5EY.mjs} +4 -4
- package/dist/cli/play-4OUTDB4O.js +153 -0
- package/dist/cli/{play-VRTGFHNX.mjs → play-CSMPSPXC.mjs} +7 -7
- package/dist/cli/{providers-VJJSRFOV.mjs → providers-PE4K7ZNQ.mjs} +4 -4
- package/dist/cli/{providers-WIKQGBZQ.js → providers-Z3F3M67Z.js} +7 -7
- package/dist/cli/{quickstart-BUXTOSWT.js → quickstart-BBO4ZMFA.js} +5 -5
- package/dist/cli/{quickstart-MJUJ3JM2.mjs → quickstart-P6Q5NLOI.mjs} +3 -3
- package/dist/cli/search-6MGGRBOO.js +26 -0
- package/dist/cli/{search-LAJ4V4OY.mjs → search-WLQSHUO5.mjs} +5 -5
- package/dist/cli/{secrets-UDB4XWHC.js → secrets-IITTIRV2.js} +13 -13
- package/dist/cli/{secrets-JGZRDC7K.mjs → secrets-JAYFSPQL.mjs} +4 -4
- package/dist/cli/{sessions-YO24QYTQ.js → sessions-EAWCTMCB.js} +5 -5
- package/dist/cli/{sessions-5BPLCV4K.mjs → sessions-XIGZKWJG.mjs} +4 -4
- package/dist/cli/{settings-YLWSKW7F.js → settings-S6CF5T6U.js} +74 -74
- package/dist/cli/{settings-RMHY4XMX.mjs → settings-XOZ3IVRT.mjs} +7 -7
- package/dist/cli/{setup-MVCAZC64.js → setup-PO6TJJ5P.js} +41 -41
- package/dist/cli/{setup-MWD2WOPN.mjs → setup-QGS4YTRD.mjs} +6 -6
- package/dist/cli/skills-2LS3SJP6.js +28 -0
- package/dist/cli/{skills-7XXKMWN3.mjs → skills-I6ZYMTOV.mjs} +4 -4
- package/dist/cli/tools-JEO4GEFK.js +40 -0
- package/dist/cli/{tools-BM22TL5A.mjs → tools-XLYFZCRO.mjs} +6 -6
- package/dist/cli/{update-BLLLZRDG.mjs → update-JTTZPF4K.mjs} +6 -6
- package/dist/cli/update-NYIWSIRQ.js +28 -0
- package/dist/cli/{workflow-EOMW666N.mjs → workflow-2R4X2YR5.mjs} +5 -5
- package/dist/cli/{workflow-WG6QFCFL.js → workflow-D2YLWJDP.js} +15 -15
- package/dist/index.js +6 -6
- package/dist/index.mjs +3 -3
- package/dist/install-integrity.json +74 -74
- 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/viewer/viewer.js +86 -11
- package/package.json +1 -1
- package/dist/cli/auth-M5OWKMLF.js +0 -31
- package/dist/cli/client-7RSITSKJ.js +0 -20
- package/dist/cli/git-FZN5IHKS.js +0 -23
- package/dist/cli/play-F7ZUV3HE.js +0 -153
- package/dist/cli/search-5MYDHDTY.js +0 -26
- package/dist/cli/skills-D7IDTAKN.js +0 -28
- package/dist/cli/tools-BH4LHBHV.js +0 -40
- package/dist/cli/update-BF2BPMYK.js +0 -28
|
@@ -200,7 +200,7 @@ export const SDK_RELEASE = {
|
|
|
200
200
|
// getters keep their established compatibility behavior.
|
|
201
201
|
// 0.3.1 deprecated the legacy `deepline enrich` command in favor of Plays.
|
|
202
202
|
// 0.3.90 is the first deliberately versioned SDK release for API v3.
|
|
203
|
-
version: '0.3.
|
|
203
|
+
version: '0.3.341',
|
|
204
204
|
updateSummary:
|
|
205
205
|
'Play grep now returns concise results with the matched fields and terms. Automatic CLI updates are enabled by default; use `deepline settings autoupdate off` to opt out, `deepline settings autoupdate on` to re-enable updates, or `deepline settings autoupdate pin <version>` to hold an exact release.',
|
|
206
206
|
packageCapabilities: {
|
|
@@ -747,10 +747,10 @@
|
|
|
747
747
|
"id": "convex.credit-blocked-automation-recovery",
|
|
748
748
|
"name": "Credit-blocked automation recovery",
|
|
749
749
|
"scheduler": "convex_scheduled_action",
|
|
750
|
-
"cadence": "runAfter(0)
|
|
750
|
+
"cadence": "runAfter(0) from the per-workspace notification worker when a queued balance change crosses a Play or Monitor admission threshold upward; Monitor recovery only at the non-admitting-to-positive crossing",
|
|
751
751
|
"timezone": "UTC",
|
|
752
752
|
"source": "packages/convex/scheduledJobsNode.ts",
|
|
753
|
-
"locator": "
|
|
753
|
+
"locator": "reactToCreditBalanceChange",
|
|
754
754
|
"owner": "billing",
|
|
755
755
|
"criticality": "critical",
|
|
756
756
|
"purpose": "Recover scheduled Plays and provider Monitors blocked by insufficient credits after a positive balance movement.",
|
|
@@ -761,6 +761,24 @@
|
|
|
761
761
|
"failureAlert": "convex_action_wrapper",
|
|
762
762
|
"domainReportRequired": true
|
|
763
763
|
},
|
|
764
|
+
{
|
|
765
|
+
"id": "convex.credit-balance-auto-recharge-trigger",
|
|
766
|
+
"name": "Credit-balance automatic recharge trigger",
|
|
767
|
+
"scheduler": "convex_scheduled_action",
|
|
768
|
+
"cadence": "runAfter(0) from the per-workspace notification worker when a queued balance change crosses the workspace's enabled recharge threshold downward",
|
|
769
|
+
"timezone": "UTC",
|
|
770
|
+
"source": "packages/convex/scheduledJobsNode.ts",
|
|
771
|
+
"locator": "reactToCreditBalanceChange",
|
|
772
|
+
"owner": "billing",
|
|
773
|
+
"criticality": "critical",
|
|
774
|
+
"purpose": "Ask the app's capped recharge controller to evaluate one workspace as soon as its balance reaches the recharge threshold, instead of waiting for the autobill sweep.",
|
|
775
|
+
"successDefinition": "The controller returns a durable recharge status; above-threshold, disabled, pending and cap-limited outcomes are valid no-ops.",
|
|
776
|
+
"failureDefinition": "The app trigger is unreachable or returns a non-2xx response. The ten-minute autobill sweep remains the backstop.",
|
|
777
|
+
"startGraceMs": 120000,
|
|
778
|
+
"runTimeoutMs": 300000,
|
|
779
|
+
"failureAlert": "convex_action_wrapper",
|
|
780
|
+
"domainReportRequired": true
|
|
781
|
+
},
|
|
764
782
|
{
|
|
765
783
|
"id": "inngest.workflow-run-watchdog",
|
|
766
784
|
"name": "Workflow run watchdog",
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
var _chunkFH6IVCYYjs = require('./chunk-FH6IVCYY.js');
|
|
13
|
+
require('./chunk-LT33BWLY.js');
|
|
14
|
+
require('./chunk-PIVZA4GI.js');
|
|
15
|
+
require('./chunk-XNYIZMNQ.js');
|
|
16
|
+
require('./chunk-XQD53NOJ.js');
|
|
17
|
+
require('./chunk-7P5AA3SN.js');
|
|
18
|
+
require('./chunk-OG64RBAC.js');
|
|
19
|
+
require('./chunk-COGTRVWW.js');
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
exports.EXIT_WORKSPACE_MISMATCH = _chunkFH6IVCYYjs.EXIT_WORKSPACE_MISMATCH; exports.clearPendingClaim = _chunkFH6IVCYYjs.clearPendingClaim; exports.clearSatisfiedPendingClaim = _chunkFH6IVCYYjs.clearSatisfiedPendingClaim; exports.handleRegister = _chunkFH6IVCYYjs.handleRegister; exports.handleStatus = _chunkFH6IVCYYjs.handleStatus; exports.handleWait = _chunkFH6IVCYYjs.handleWait; exports.readPendingAuthClaim = _chunkFH6IVCYYjs.readPendingAuthClaim; exports.registerAuthCommands = _chunkFH6IVCYYjs.registerAuthCommands; exports.reportSetupCompleted = _chunkFH6IVCYYjs.reportSetupCompleted; exports.resolvePendingAuthClaimForResume = _chunkFH6IVCYYjs.resolvePendingAuthClaimForResume;
|
|
@@ -9,11 +9,11 @@ import {
|
|
|
9
9
|
registerAuthCommands,
|
|
10
10
|
reportSetupCompleted,
|
|
11
11
|
resolvePendingAuthClaimForResume
|
|
12
|
-
} from "./chunk-
|
|
13
|
-
import "./chunk-
|
|
14
|
-
import "./chunk-
|
|
12
|
+
} from "./chunk-ZK7BK7OD.mjs";
|
|
13
|
+
import "./chunk-IWSPBSV7.mjs";
|
|
14
|
+
import "./chunk-VO4RF766.mjs";
|
|
15
15
|
import "./chunk-DLIRSHV6.mjs";
|
|
16
|
-
import "./chunk-
|
|
16
|
+
import "./chunk-TVNBP3CX.mjs";
|
|
17
17
|
import "./chunk-NXGCO4JB.mjs";
|
|
18
18
|
import "./chunk-WZYKRD7T.mjs";
|
|
19
19
|
import "./chunk-KRD6H754.mjs";
|
|
@@ -2,7 +2,7 @@ import {
|
|
|
2
2
|
DeeplineClient,
|
|
3
3
|
iterateCursorPages,
|
|
4
4
|
requireBillingIdempotencyKey
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-Y2BTWBO7.mjs";
|
|
6
6
|
import "./chunk-CBVIJSHF.mjs";
|
|
7
7
|
import {
|
|
8
8
|
createTimestampedName,
|
|
@@ -10,13 +10,13 @@ import {
|
|
|
10
10
|
openInBrowser,
|
|
11
11
|
printCommandEnvelope,
|
|
12
12
|
shouldEmitJson
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-IWSPBSV7.mjs";
|
|
14
14
|
import {
|
|
15
15
|
AuthError,
|
|
16
16
|
ConfigError
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-VO4RF766.mjs";
|
|
18
18
|
import "./chunk-DLIRSHV6.mjs";
|
|
19
|
-
import "./chunk-
|
|
19
|
+
import "./chunk-TVNBP3CX.mjs";
|
|
20
20
|
import "./chunk-6IKARAYD.mjs";
|
|
21
21
|
import {
|
|
22
22
|
DeeplineError
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
|
|
5
|
-
var
|
|
5
|
+
var _chunk5GQQMICZjs = require('./chunk-5GQQMICZ.js');
|
|
6
6
|
require('./chunk-LA46MMTL.js');
|
|
7
7
|
|
|
8
8
|
|
|
@@ -10,13 +10,13 @@ require('./chunk-LA46MMTL.js');
|
|
|
10
10
|
|
|
11
11
|
|
|
12
12
|
|
|
13
|
-
var
|
|
13
|
+
var _chunkLT33BWLYjs = require('./chunk-LT33BWLY.js');
|
|
14
14
|
|
|
15
15
|
|
|
16
16
|
|
|
17
|
-
var
|
|
17
|
+
var _chunkPIVZA4GIjs = require('./chunk-PIVZA4GI.js');
|
|
18
18
|
require('./chunk-XNYIZMNQ.js');
|
|
19
|
-
require('./chunk-
|
|
19
|
+
require('./chunk-XQD53NOJ.js');
|
|
20
20
|
require('./chunk-S6R3OX7B.js');
|
|
21
21
|
|
|
22
22
|
|
|
@@ -35,7 +35,7 @@ var SUBSCRIPTION_CANCEL_PATH = "/api/v2/billing/subscription/cancel";
|
|
|
35
35
|
var BILLING_TOP_UP_PATH = "/api/v2/billing/top-up";
|
|
36
36
|
var DEFAULT_BALANCE_RECOVERY_CREDITS = 100;
|
|
37
37
|
function billingFailureFromError(error, options) {
|
|
38
|
-
if (error instanceof
|
|
38
|
+
if (error instanceof _chunkPIVZA4GIjs.AuthError) {
|
|
39
39
|
return {
|
|
40
40
|
exitCode: 3,
|
|
41
41
|
code: "AUTH_ERROR",
|
|
@@ -69,7 +69,7 @@ function reportBillingFailure(failure, options) {
|
|
|
69
69
|
if (failure.next) {
|
|
70
70
|
textLines.push(`Next: ${failure.next}`);
|
|
71
71
|
}
|
|
72
|
-
|
|
72
|
+
_chunkLT33BWLYjs.printCommandEnvelope.call(void 0,
|
|
73
73
|
{
|
|
74
74
|
ok: false,
|
|
75
75
|
exitCode: failure.exitCode,
|
|
@@ -90,7 +90,7 @@ function parseTopUpCredits(raw) {
|
|
|
90
90
|
return parsed;
|
|
91
91
|
}
|
|
92
92
|
function topUpIdempotencyKey(raw) {
|
|
93
|
-
return raw === void 0 ? `cli_topup:${Date.now()}:${_crypto.randomUUID.call(void 0, )}` :
|
|
93
|
+
return raw === void 0 ? `cli_topup:${Date.now()}:${_crypto.randomUUID.call(void 0, )}` : _chunk5GQQMICZjs.requireBillingIdempotencyKey.call(void 0, raw);
|
|
94
94
|
}
|
|
95
95
|
function targetBillingIdempotencyKey(raw) {
|
|
96
96
|
return typeof raw === "string" ? raw : `cli_target_billing:${Date.now()}:${_crypto.randomUUID.call(void 0, )}`;
|
|
@@ -127,7 +127,7 @@ function apiErrorCode(error) {
|
|
|
127
127
|
return _nullishCoalesce(error.code, () => ( "BILLING_API_ERROR"));
|
|
128
128
|
}
|
|
129
129
|
function billingTopUpFailureFromError(error, input) {
|
|
130
|
-
if (error instanceof
|
|
130
|
+
if (error instanceof _chunkPIVZA4GIjs.AuthError || error instanceof _chunkPIVZA4GIjs.ConfigError) {
|
|
131
131
|
return {
|
|
132
132
|
exitCode: 3,
|
|
133
133
|
code: "AUTH_ERROR",
|
|
@@ -296,7 +296,7 @@ function defaultLedgerExportPath() {
|
|
|
296
296
|
);
|
|
297
297
|
}
|
|
298
298
|
async function handleBalance(options) {
|
|
299
|
-
const { http } =
|
|
299
|
+
const { http } = _chunkLT33BWLYjs.getAuthedHttpClient.call(void 0, );
|
|
300
300
|
const payload = await http.get(
|
|
301
301
|
"/api/v2/billing/balance"
|
|
302
302
|
);
|
|
@@ -364,7 +364,7 @@ async function handleBalance(options) {
|
|
|
364
364
|
...options.verbose ? detail : [],
|
|
365
365
|
...lines.slice(1)
|
|
366
366
|
];
|
|
367
|
-
|
|
367
|
+
_chunkLT33BWLYjs.printCommandEnvelope.call(void 0,
|
|
368
368
|
{
|
|
369
369
|
...payload,
|
|
370
370
|
...recovery ? { recovery } : {},
|
|
@@ -388,7 +388,7 @@ function quoteShellArgument(value) {
|
|
|
388
388
|
return `'${value.replace(/'/g, `'\\''`)}'`;
|
|
389
389
|
}
|
|
390
390
|
async function handleUsage(options) {
|
|
391
|
-
const { http } =
|
|
391
|
+
const { http } = _chunkLT33BWLYjs.getAuthedHttpClient.call(void 0, );
|
|
392
392
|
const params = new URLSearchParams();
|
|
393
393
|
if (options.requestId !== void 0) {
|
|
394
394
|
const requestId = options.requestId.trim();
|
|
@@ -469,7 +469,7 @@ async function handleUsage(options) {
|
|
|
469
469
|
"No continuation is available for this view. Use deepline billing ledger export all --json for the full ledger."
|
|
470
470
|
] : []
|
|
471
471
|
];
|
|
472
|
-
|
|
472
|
+
_chunkLT33BWLYjs.printCommandEnvelope.call(void 0,
|
|
473
473
|
{
|
|
474
474
|
...payload,
|
|
475
475
|
recent: {
|
|
@@ -483,7 +483,7 @@ async function handleUsage(options) {
|
|
|
483
483
|
);
|
|
484
484
|
}
|
|
485
485
|
async function handleLimit(options) {
|
|
486
|
-
const { http } =
|
|
486
|
+
const { http } = _chunkLT33BWLYjs.getAuthedHttpClient.call(void 0, );
|
|
487
487
|
const payload = await http.get(
|
|
488
488
|
"/api/v2/billing/limit"
|
|
489
489
|
);
|
|
@@ -491,7 +491,7 @@ async function handleLimit(options) {
|
|
|
491
491
|
`Monthly usage cap: ${_nullishCoalesce(payload.monthly_credits_limit, () => ( "(unknown)"))}`,
|
|
492
492
|
"Enforcement: checked before new calls; in-flight work can exceed the cap."
|
|
493
493
|
] : ["Monthly usage cap: off"];
|
|
494
|
-
|
|
494
|
+
_chunkLT33BWLYjs.printCommandEnvelope.call(void 0,
|
|
495
495
|
{
|
|
496
496
|
...payload,
|
|
497
497
|
render: { sections: [{ title: "billing limit", lines }] }
|
|
@@ -500,12 +500,12 @@ async function handleLimit(options) {
|
|
|
500
500
|
);
|
|
501
501
|
}
|
|
502
502
|
async function handleSetLimit(credits, options) {
|
|
503
|
-
const { http } =
|
|
503
|
+
const { http } = _chunkLT33BWLYjs.getAuthedHttpClient.call(void 0, );
|
|
504
504
|
const payload = await http.request("/api/v2/billing/limit", {
|
|
505
505
|
method: "PUT",
|
|
506
506
|
body: { monthly_credits_limit: Number.parseInt(credits, 10) }
|
|
507
507
|
});
|
|
508
|
-
|
|
508
|
+
_chunkLT33BWLYjs.printCommandEnvelope.call(void 0,
|
|
509
509
|
{
|
|
510
510
|
...payload,
|
|
511
511
|
render: {
|
|
@@ -521,11 +521,11 @@ async function handleSetLimit(credits, options) {
|
|
|
521
521
|
);
|
|
522
522
|
}
|
|
523
523
|
async function handleLimitOff(options) {
|
|
524
|
-
const { http } =
|
|
524
|
+
const { http } = _chunkLT33BWLYjs.getAuthedHttpClient.call(void 0, );
|
|
525
525
|
const payload = await http.request("/api/v2/billing/limit", {
|
|
526
526
|
method: "DELETE"
|
|
527
527
|
});
|
|
528
|
-
|
|
528
|
+
_chunkLT33BWLYjs.printCommandEnvelope.call(void 0,
|
|
529
529
|
{
|
|
530
530
|
...payload,
|
|
531
531
|
render: {
|
|
@@ -545,7 +545,7 @@ async function exportLedger(http, outputPath, options) {
|
|
|
545
545
|
let initialized = false;
|
|
546
546
|
let pageNumber = 0;
|
|
547
547
|
console.error(`Exporting billing ledger to ${outputPath}`);
|
|
548
|
-
for await (const entries of
|
|
548
|
+
for await (const entries of _chunk5GQQMICZjs.iterateCursorPages.call(void 0, async (cursor) => {
|
|
549
549
|
pageNumber += 1;
|
|
550
550
|
console.error(
|
|
551
551
|
`Fetching page ${pageNumber}; ${summary.row_count} rows written.`
|
|
@@ -584,7 +584,7 @@ async function exportLedger(http, outputPath, options) {
|
|
|
584
584
|
return summary;
|
|
585
585
|
}
|
|
586
586
|
async function handleHistory(options) {
|
|
587
|
-
const { http } =
|
|
587
|
+
const { http } = _chunkLT33BWLYjs.getAuthedHttpClient.call(void 0, );
|
|
588
588
|
const windows = {
|
|
589
589
|
"1d": 86400,
|
|
590
590
|
"1w": 604800,
|
|
@@ -596,10 +596,10 @@ async function handleHistory(options) {
|
|
|
596
596
|
process.cwd(),
|
|
597
597
|
"deepline",
|
|
598
598
|
"data",
|
|
599
|
-
|
|
599
|
+
_chunkLT33BWLYjs.createTimestampedName.call(void 0, `billing-history-${options.time}`, "csv")
|
|
600
600
|
);
|
|
601
601
|
const summary = await exportLedger(http, outputPath, { sinceAt });
|
|
602
|
-
|
|
602
|
+
_chunkLT33BWLYjs.printCommandEnvelope.call(void 0,
|
|
603
603
|
{
|
|
604
604
|
output_path: outputPath,
|
|
605
605
|
row_count: summary.row_count,
|
|
@@ -636,14 +636,14 @@ async function handleLedgerExportAll(options) {
|
|
|
636
636
|
);
|
|
637
637
|
return;
|
|
638
638
|
}
|
|
639
|
-
const { http } =
|
|
639
|
+
const { http } = _chunkLT33BWLYjs.getAuthedHttpClient.call(void 0, );
|
|
640
640
|
const outputPath = options.output ? _path.resolve.call(void 0, String(options.output)) : defaultLedgerExportPath();
|
|
641
641
|
const summary = await exportLedger(http, outputPath, {
|
|
642
642
|
sinceAt,
|
|
643
643
|
runId: options.runId,
|
|
644
644
|
operation: options.operation
|
|
645
645
|
});
|
|
646
|
-
|
|
646
|
+
_chunkLT33BWLYjs.printCommandEnvelope.call(void 0,
|
|
647
647
|
{
|
|
648
648
|
output_path: outputPath,
|
|
649
649
|
row_count: summary.row_count,
|
|
@@ -682,7 +682,7 @@ function targetPlanLine(plan) {
|
|
|
682
682
|
return `${plan.name} (${plan.sku}) | ${planPriceText(plan.recurring_price_usd, plan.interval)} | ${plan.included_credits} included credits/month | $${plan.purchased_credit_price_usd}/purchased credit | ${plan.acquisition_enabled ? "available" : "unavailable"}`;
|
|
683
683
|
}
|
|
684
684
|
async function handlePlans(options) {
|
|
685
|
-
const client = new (0,
|
|
685
|
+
const client = new (0, _chunk5GQQMICZjs.DeeplineClient)();
|
|
686
686
|
const payload = await client.billing.targetPlans();
|
|
687
687
|
const listedCurrentPlan = payload.plans.find(
|
|
688
688
|
(plan) => plan.sku === payload.current_plan_sku
|
|
@@ -695,8 +695,8 @@ async function handlePlans(options) {
|
|
|
695
695
|
...payload.plans.length === 0 ? ["Plans: none available"] : ["Plans:", ...payload.plans.map(targetPlanLine)],
|
|
696
696
|
"Change plan: deepline billing change-plan <plan_sku> --json"
|
|
697
697
|
];
|
|
698
|
-
const legacyPayload =
|
|
699
|
-
|
|
698
|
+
const legacyPayload = _chunkLT33BWLYjs.shouldEmitJson.call(void 0, options.json) ? await client.billing.plans() : null;
|
|
699
|
+
_chunkLT33BWLYjs.printCommandEnvelope.call(void 0,
|
|
700
700
|
{
|
|
701
701
|
..._nullishCoalesce(legacyPayload, () => ( payload)),
|
|
702
702
|
...legacyPayload ? { target_billing: payload } : {},
|
|
@@ -706,7 +706,7 @@ async function handlePlans(options) {
|
|
|
706
706
|
);
|
|
707
707
|
}
|
|
708
708
|
async function handleSubscribe(planVersionId, options) {
|
|
709
|
-
const { http } =
|
|
709
|
+
const { http } = _chunkLT33BWLYjs.getAuthedHttpClient.call(void 0, );
|
|
710
710
|
const payload = await http.request(
|
|
711
711
|
"/api/v2/billing/subscription/checkout",
|
|
712
712
|
{
|
|
@@ -715,8 +715,8 @@ async function handleSubscribe(planVersionId, options) {
|
|
|
715
715
|
}
|
|
716
716
|
);
|
|
717
717
|
const url = String(payload.checkout_url || "");
|
|
718
|
-
if (!options.json && options.open !== false && url)
|
|
719
|
-
|
|
718
|
+
if (!options.json && options.open !== false && url) _chunkLT33BWLYjs.openInBrowser.call(void 0, url);
|
|
719
|
+
_chunkLT33BWLYjs.printCommandEnvelope.call(void 0,
|
|
720
720
|
{
|
|
721
721
|
...payload,
|
|
722
722
|
render: {
|
|
@@ -732,7 +732,7 @@ async function handleSubscribe(planVersionId, options) {
|
|
|
732
732
|
);
|
|
733
733
|
}
|
|
734
734
|
async function handleSubscriptionStatus(options) {
|
|
735
|
-
const client = new (0,
|
|
735
|
+
const client = new (0, _chunk5GQQMICZjs.DeeplineClient)();
|
|
736
736
|
const payload = await client.billing.subscription.status();
|
|
737
737
|
const pools = _nullishCoalesce(payload.credit_pools, () => ( []));
|
|
738
738
|
const lines = [
|
|
@@ -752,7 +752,7 @@ async function handleSubscriptionStatus(options) {
|
|
|
752
752
|
],
|
|
753
753
|
`Assigned by: ${_nullishCoalesce(payload.assigned_by, () => ( "default"))}`
|
|
754
754
|
];
|
|
755
|
-
|
|
755
|
+
_chunkLT33BWLYjs.printCommandEnvelope.call(void 0,
|
|
756
756
|
{
|
|
757
757
|
...payload,
|
|
758
758
|
render: { sections: [{ title: "billing subscription", lines }] }
|
|
@@ -761,7 +761,7 @@ async function handleSubscriptionStatus(options) {
|
|
|
761
761
|
);
|
|
762
762
|
}
|
|
763
763
|
async function handleSubscriptionCancel(options) {
|
|
764
|
-
const client = new (0,
|
|
764
|
+
const client = new (0, _chunk5GQQMICZjs.DeeplineClient)();
|
|
765
765
|
const action = options.undo ? "undo_cancel" : "cancel";
|
|
766
766
|
if (options.dryRun) {
|
|
767
767
|
const status = await client.billing.subscription.status();
|
|
@@ -778,7 +778,7 @@ async function handleSubscriptionCancel(options) {
|
|
|
778
778
|
return;
|
|
779
779
|
}
|
|
780
780
|
const consequence = action === "cancel" ? `Would schedule cancellation at period end${status.current_period_end ? ` (${status.current_period_end})` : ""}. The subscription stays active until then and remaining credits are kept.` : "Would reverse the pending cancellation; the subscription would renew normally.";
|
|
781
|
-
|
|
781
|
+
_chunkLT33BWLYjs.printCommandEnvelope.call(void 0,
|
|
782
782
|
{
|
|
783
783
|
ok: true,
|
|
784
784
|
dry_run: true,
|
|
@@ -833,7 +833,7 @@ async function handleSubscriptionCancel(options) {
|
|
|
833
833
|
"Remaining credits are yours to keep \u2014 cancellation never removes credits.",
|
|
834
834
|
"Undo with: deepline billing subscription cancel --undo"
|
|
835
835
|
];
|
|
836
|
-
|
|
836
|
+
_chunkLT33BWLYjs.printCommandEnvelope.call(void 0,
|
|
837
837
|
{
|
|
838
838
|
ok: true,
|
|
839
839
|
...result,
|
|
@@ -887,7 +887,7 @@ async function handleInvoices(options) {
|
|
|
887
887
|
return;
|
|
888
888
|
}
|
|
889
889
|
}
|
|
890
|
-
const client = new (0,
|
|
890
|
+
const client = new (0, _chunk5GQQMICZjs.DeeplineClient)();
|
|
891
891
|
let payload;
|
|
892
892
|
try {
|
|
893
893
|
payload = await client.billing.invoices.list(
|
|
@@ -916,7 +916,7 @@ async function handleInvoices(options) {
|
|
|
916
916
|
url: entry.url
|
|
917
917
|
}))
|
|
918
918
|
} : { ...payload, count: entries.length };
|
|
919
|
-
|
|
919
|
+
_chunkLT33BWLYjs.printCommandEnvelope.call(void 0,
|
|
920
920
|
{
|
|
921
921
|
...envelope,
|
|
922
922
|
render: { sections: [{ title: "billing invoices", lines }] }
|
|
@@ -925,7 +925,7 @@ async function handleInvoices(options) {
|
|
|
925
925
|
);
|
|
926
926
|
}
|
|
927
927
|
async function handleCheckout(options) {
|
|
928
|
-
const { http } =
|
|
928
|
+
const { http } = _chunkLT33BWLYjs.getAuthedHttpClient.call(void 0, );
|
|
929
929
|
const payload = await http.post(
|
|
930
930
|
"/api/v2/billing/checkout",
|
|
931
931
|
{
|
|
@@ -935,8 +935,8 @@ async function handleCheckout(options) {
|
|
|
935
935
|
}
|
|
936
936
|
);
|
|
937
937
|
const url = String(payload.url || payload.checkout_url || "");
|
|
938
|
-
if (!options.json && !options.noOpen && url)
|
|
939
|
-
|
|
938
|
+
if (!options.json && !options.noOpen && url) _chunkLT33BWLYjs.openInBrowser.call(void 0, url);
|
|
939
|
+
_chunkLT33BWLYjs.printCommandEnvelope.call(void 0,
|
|
940
940
|
{
|
|
941
941
|
...payload,
|
|
942
942
|
render: {
|
|
@@ -981,7 +981,7 @@ async function handleTopUp(creditsRaw, options) {
|
|
|
981
981
|
return;
|
|
982
982
|
}
|
|
983
983
|
if (options.dryRun) {
|
|
984
|
-
|
|
984
|
+
_chunkLT33BWLYjs.printCommandEnvelope.call(void 0,
|
|
985
985
|
{
|
|
986
986
|
ok: true,
|
|
987
987
|
dry_run: true,
|
|
@@ -1011,7 +1011,7 @@ async function handleTopUp(creditsRaw, options) {
|
|
|
1011
1011
|
);
|
|
1012
1012
|
return;
|
|
1013
1013
|
}
|
|
1014
|
-
const client = new (0,
|
|
1014
|
+
const client = new (0, _chunk5GQQMICZjs.DeeplineClient)();
|
|
1015
1015
|
let payload;
|
|
1016
1016
|
try {
|
|
1017
1017
|
payload = await client.billing.topUpWithReceipt({
|
|
@@ -1028,7 +1028,7 @@ async function handleTopUp(creditsRaw, options) {
|
|
|
1028
1028
|
return;
|
|
1029
1029
|
}
|
|
1030
1030
|
if (payload.status === "pending") {
|
|
1031
|
-
|
|
1031
|
+
_chunkLT33BWLYjs.printCommandEnvelope.call(void 0,
|
|
1032
1032
|
{
|
|
1033
1033
|
ok: true,
|
|
1034
1034
|
...payload,
|
|
@@ -1092,17 +1092,17 @@ async function handleTopUp(creditsRaw, options) {
|
|
|
1092
1092
|
]
|
|
1093
1093
|
}
|
|
1094
1094
|
};
|
|
1095
|
-
|
|
1095
|
+
_chunkLT33BWLYjs.printCommandEnvelope.call(void 0, options.compact ? compactEnvelope : fullEnvelope, {
|
|
1096
1096
|
json: options.json
|
|
1097
1097
|
});
|
|
1098
1098
|
}
|
|
1099
1099
|
async function handleTargetStatus(options) {
|
|
1100
|
-
const client = new (0,
|
|
1100
|
+
const client = new (0, _chunk5GQQMICZjs.DeeplineClient)();
|
|
1101
1101
|
const payload = await client.billing.targetStatus();
|
|
1102
1102
|
const balanceCommand = "deepline billing balance --json";
|
|
1103
1103
|
const recentChargesCommand = "deepline billing usage --limit 5 --json";
|
|
1104
1104
|
const exactChargeCommand = "deepline billing usage --request-id <job_id> --json";
|
|
1105
|
-
|
|
1105
|
+
_chunkLT33BWLYjs.printCommandEnvelope.call(void 0,
|
|
1106
1106
|
{
|
|
1107
1107
|
ok: true,
|
|
1108
1108
|
...payload,
|
|
@@ -1132,7 +1132,7 @@ async function handleTargetStatus(options) {
|
|
|
1132
1132
|
);
|
|
1133
1133
|
}
|
|
1134
1134
|
async function handleAutoRechargeStatus(options) {
|
|
1135
|
-
const payload = await new (0,
|
|
1135
|
+
const payload = await new (0, _chunk5GQQMICZjs.DeeplineClient)().billing.autoRecharge.get();
|
|
1136
1136
|
const state = payload.available ? payload.enabled ? "on" : "off" : "unavailable";
|
|
1137
1137
|
const lines = [
|
|
1138
1138
|
`State: ${state}`,
|
|
@@ -1142,7 +1142,7 @@ async function handleAutoRechargeStatus(options) {
|
|
|
1142
1142
|
`Automatic credit purchase cap: ${payload.purchase_limit_credits} credits per rolling 30 days`
|
|
1143
1143
|
] : []
|
|
1144
1144
|
];
|
|
1145
|
-
|
|
1145
|
+
_chunkLT33BWLYjs.printCommandEnvelope.call(void 0,
|
|
1146
1146
|
{
|
|
1147
1147
|
ok: true,
|
|
1148
1148
|
...payload,
|
|
@@ -1191,7 +1191,7 @@ async function handleAutoRechargeSet(options) {
|
|
|
1191
1191
|
}
|
|
1192
1192
|
const idempotencyKey = targetBillingIdempotencyKey(options.idempotencyKey);
|
|
1193
1193
|
if (options.dryRun) {
|
|
1194
|
-
|
|
1194
|
+
_chunkLT33BWLYjs.printCommandEnvelope.call(void 0,
|
|
1195
1195
|
{
|
|
1196
1196
|
ok: true,
|
|
1197
1197
|
dry_run: true,
|
|
@@ -1212,7 +1212,7 @@ async function handleAutoRechargeSet(options) {
|
|
|
1212
1212
|
);
|
|
1213
1213
|
return;
|
|
1214
1214
|
}
|
|
1215
|
-
const payload = await new (0,
|
|
1215
|
+
const payload = await new (0, _chunk5GQQMICZjs.DeeplineClient)().billing.autoRecharge.update({
|
|
1216
1216
|
enabled: true,
|
|
1217
1217
|
thresholdCredits,
|
|
1218
1218
|
refillToCredits,
|
|
@@ -1220,7 +1220,7 @@ async function handleAutoRechargeSet(options) {
|
|
|
1220
1220
|
...rollingLimitCredits !== void 0 ? { purchaseLimitCredits: rollingLimitCredits } : {},
|
|
1221
1221
|
idempotencyKey
|
|
1222
1222
|
});
|
|
1223
|
-
|
|
1223
|
+
_chunkLT33BWLYjs.printCommandEnvelope.call(void 0,
|
|
1224
1224
|
{ ok: true, idempotency_key: idempotencyKey, ...payload },
|
|
1225
1225
|
{ json: options.json }
|
|
1226
1226
|
);
|
|
@@ -1228,7 +1228,7 @@ async function handleAutoRechargeSet(options) {
|
|
|
1228
1228
|
async function handleAutoRechargeOff(options) {
|
|
1229
1229
|
const idempotencyKey = targetBillingIdempotencyKey(options.idempotencyKey);
|
|
1230
1230
|
if (options.dryRun) {
|
|
1231
|
-
|
|
1231
|
+
_chunkLT33BWLYjs.printCommandEnvelope.call(void 0,
|
|
1232
1232
|
{
|
|
1233
1233
|
ok: true,
|
|
1234
1234
|
dry_run: true,
|
|
@@ -1243,11 +1243,11 @@ async function handleAutoRechargeOff(options) {
|
|
|
1243
1243
|
);
|
|
1244
1244
|
return;
|
|
1245
1245
|
}
|
|
1246
|
-
const payload = await new (0,
|
|
1246
|
+
const payload = await new (0, _chunk5GQQMICZjs.DeeplineClient)().billing.autoRecharge.update({
|
|
1247
1247
|
enabled: false,
|
|
1248
1248
|
idempotencyKey
|
|
1249
1249
|
});
|
|
1250
|
-
|
|
1250
|
+
_chunkLT33BWLYjs.printCommandEnvelope.call(void 0,
|
|
1251
1251
|
{ ok: true, idempotency_key: idempotencyKey, ...payload },
|
|
1252
1252
|
{ json: options.json }
|
|
1253
1253
|
);
|
|
@@ -1266,11 +1266,11 @@ async function handleBuyCredits(creditsRaw, options) {
|
|
|
1266
1266
|
return;
|
|
1267
1267
|
}
|
|
1268
1268
|
const idempotencyKey = targetBillingIdempotencyKey(options.idempotencyKey);
|
|
1269
|
-
const payload = await new (0,
|
|
1269
|
+
const payload = await new (0, _chunk5GQQMICZjs.DeeplineClient)().billing.purchaseCredits({
|
|
1270
1270
|
credits,
|
|
1271
1271
|
idempotencyKey
|
|
1272
1272
|
});
|
|
1273
|
-
|
|
1273
|
+
_chunkLT33BWLYjs.printCommandEnvelope.call(void 0,
|
|
1274
1274
|
{ ok: true, idempotency_key: idempotencyKey, ...payload },
|
|
1275
1275
|
{ json: options.json }
|
|
1276
1276
|
);
|
|
@@ -1306,7 +1306,7 @@ async function handleTopUpRecover(creditsRaw, options) {
|
|
|
1306
1306
|
return;
|
|
1307
1307
|
}
|
|
1308
1308
|
if (options.dryRun) {
|
|
1309
|
-
|
|
1309
|
+
_chunkLT33BWLYjs.printCommandEnvelope.call(void 0,
|
|
1310
1310
|
{
|
|
1311
1311
|
ok: true,
|
|
1312
1312
|
dry_run: true,
|
|
@@ -1319,12 +1319,12 @@ async function handleTopUpRecover(creditsRaw, options) {
|
|
|
1319
1319
|
);
|
|
1320
1320
|
return;
|
|
1321
1321
|
}
|
|
1322
|
-
const payload = await new (0,
|
|
1322
|
+
const payload = await new (0, _chunk5GQQMICZjs.DeeplineClient)().billing.recoverCreditPurchase({
|
|
1323
1323
|
credits,
|
|
1324
1324
|
orgId: options.orgId,
|
|
1325
1325
|
idempotencyKey: options.idempotencyKey
|
|
1326
1326
|
});
|
|
1327
|
-
|
|
1327
|
+
_chunkLT33BWLYjs.printCommandEnvelope.call(void 0,
|
|
1328
1328
|
{ ok: true, idempotency_key: options.idempotencyKey, ...payload },
|
|
1329
1329
|
{ json: options.json }
|
|
1330
1330
|
);
|
|
@@ -1344,37 +1344,37 @@ async function handleTargetPlan(planSku, options) {
|
|
|
1344
1344
|
return;
|
|
1345
1345
|
}
|
|
1346
1346
|
const idempotencyKey = targetBillingIdempotencyKey(options.idempotencyKey);
|
|
1347
|
-
const payload = await new (0,
|
|
1347
|
+
const payload = await new (0, _chunk5GQQMICZjs.DeeplineClient)().billing.transitionPlan({
|
|
1348
1348
|
action: "start_or_change",
|
|
1349
1349
|
targetPlanSku: planSku,
|
|
1350
1350
|
...options.billingEmail ? { billingEmail: options.billingEmail } : {},
|
|
1351
1351
|
idempotencyKey
|
|
1352
1352
|
});
|
|
1353
|
-
|
|
1353
|
+
_chunkLT33BWLYjs.printCommandEnvelope.call(void 0,
|
|
1354
1354
|
{ ok: true, idempotency_key: idempotencyKey, ...payload },
|
|
1355
1355
|
{ json: options.json }
|
|
1356
1356
|
);
|
|
1357
1357
|
}
|
|
1358
1358
|
async function handleTargetPlanCancellation(options) {
|
|
1359
1359
|
const idempotencyKey = targetBillingIdempotencyKey(options.idempotencyKey);
|
|
1360
|
-
const payload = await new (0,
|
|
1360
|
+
const payload = await new (0, _chunk5GQQMICZjs.DeeplineClient)().billing.transitionPlan({
|
|
1361
1361
|
action: options.undo ? "undo_cancel" : "cancel",
|
|
1362
1362
|
idempotencyKey
|
|
1363
1363
|
});
|
|
1364
|
-
|
|
1364
|
+
_chunkLT33BWLYjs.printCommandEnvelope.call(void 0,
|
|
1365
1365
|
{ ok: true, idempotency_key: idempotencyKey, ...payload },
|
|
1366
1366
|
{ json: options.json }
|
|
1367
1367
|
);
|
|
1368
1368
|
}
|
|
1369
1369
|
async function handleTargetPortal(options) {
|
|
1370
|
-
const payload = await new (0,
|
|
1370
|
+
const payload = await new (0, _chunk5GQQMICZjs.DeeplineClient)().billing.portalSession(
|
|
1371
1371
|
options.billingAddress ? { flow: "customer_update" } : void 0
|
|
1372
1372
|
);
|
|
1373
|
-
if (!options.json && !options.noOpen)
|
|
1374
|
-
|
|
1373
|
+
if (!options.json && !options.noOpen) _chunkLT33BWLYjs.openInBrowser.call(void 0, payload.url);
|
|
1374
|
+
_chunkLT33BWLYjs.printCommandEnvelope.call(void 0, { ok: true, ...payload }, { json: options.json });
|
|
1375
1375
|
}
|
|
1376
1376
|
async function handleRedeemCode(code, options) {
|
|
1377
|
-
const { http } =
|
|
1377
|
+
const { http } = _chunkLT33BWLYjs.getAuthedHttpClient.call(void 0, );
|
|
1378
1378
|
const payload = await http.post(
|
|
1379
1379
|
"/api/v2/billing/checkout",
|
|
1380
1380
|
{
|
|
@@ -1382,8 +1382,8 @@ async function handleRedeemCode(code, options) {
|
|
|
1382
1382
|
}
|
|
1383
1383
|
);
|
|
1384
1384
|
const url = String(payload.url || payload.checkout_url || "");
|
|
1385
|
-
if (!options.json && !options.noOpen && url)
|
|
1386
|
-
|
|
1385
|
+
if (!options.json && !options.noOpen && url) _chunkLT33BWLYjs.openInBrowser.call(void 0, url);
|
|
1386
|
+
_chunkLT33BWLYjs.printCommandEnvelope.call(void 0,
|
|
1387
1387
|
{
|
|
1388
1388
|
...payload,
|
|
1389
1389
|
render: {
|
|
@@ -1652,8 +1652,8 @@ Examples:
|
|
|
1652
1652
|
new (0, _commander.Command)("trigger").description(
|
|
1653
1653
|
"Evaluate capped automatic recharge and resume any pending purchase."
|
|
1654
1654
|
).option("--json", "Emit JSON output").action(async (options) => {
|
|
1655
|
-
const result = await new (0,
|
|
1656
|
-
|
|
1655
|
+
const result = await new (0, _chunk5GQQMICZjs.DeeplineClient)().billing.autoRecharge.trigger();
|
|
1656
|
+
_chunkLT33BWLYjs.printCommandEnvelope.call(void 0, { ok: true, ...result }, { json: options.json });
|
|
1657
1657
|
})
|
|
1658
1658
|
);
|
|
1659
1659
|
billing.command("change-plan").description("Start or change the target billing plan.").argument("<plan_sku>", "payg-v1, builder-v1, growth-v1, or team-v1").option(
|