deepline 0.3.401 → 0.3.402
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/play-runtime/scheduler-backends/run-ledger-outbox-recovery.ts +3 -1
- package/dist/cli/auth-CF34E66T.js +40 -0
- package/dist/cli/{auth-4AWRW6ED.mjs → auth-GJGFHAUP.mjs} +4 -4
- package/dist/cli/{billing-AMQDNFSL.mjs → billing-7YYI5OFD.mjs} +4 -4
- package/dist/cli/{billing-FPHECIIS.js → billing-UBBNYU74.js} +73 -73
- package/dist/cli/{chunk-C7JATIE5.mjs → chunk-4EWCKDFC.mjs} +1 -1
- package/dist/cli/{chunk-RWVQQ7O4.js → chunk-5Z7SAD3Q.js} +44 -44
- package/dist/cli/{chunk-M3R2BG3A.js → chunk-65YHUBYZ.js} +8 -8
- package/dist/cli/{chunk-GDKUYYCJ.js → chunk-B2FAQ3AX.js} +50 -50
- package/dist/cli/{chunk-S56LMBGA.js → chunk-CBPK2TLC.js} +65 -65
- package/dist/cli/{chunk-WSKN3U4U.js → chunk-CIOMFOJJ.js} +6 -6
- package/dist/cli/{chunk-5QD6F5TW.js → chunk-IK7J2DE5.js} +1 -1
- package/dist/cli/{chunk-BHEJDACQ.js → chunk-JHFX74T6.js} +4 -4
- package/dist/cli/{chunk-JDA2E5MQ.mjs → chunk-JT7XZP4U.mjs} +1 -1
- package/dist/cli/{chunk-72ESQ66A.js → chunk-L5UOVDJV.js} +2 -2
- package/dist/cli/{chunk-OIODIUIC.js → chunk-LQS5XUFL.js} +6 -6
- package/dist/cli/{chunk-LD7WUOAZ.js → chunk-MSS6UHGK.js} +26 -26
- package/dist/cli/{chunk-R2S7OCRB.mjs → chunk-NMPFKSZN.mjs} +1 -1
- package/dist/cli/{chunk-MSOOPRSP.mjs → chunk-OIUXHL7G.mjs} +3 -3
- package/dist/cli/{chunk-TPA6R5EF.mjs → chunk-OPS5KQVF.mjs} +2 -2
- package/dist/cli/{chunk-X6WLVELL.mjs → chunk-Q77JWGMZ.mjs} +1 -1
- package/dist/cli/{chunk-BXRIA6OQ.mjs → chunk-QPIAVCCS.mjs} +2 -2
- package/dist/cli/{chunk-YJZM6SMA.mjs → chunk-RLL23M7M.mjs} +2 -2
- package/dist/cli/{chunk-RMW6SXGP.mjs → chunk-TPPHH3FS.mjs} +3 -3
- package/dist/cli/{chunk-H4QOCJNY.mjs → chunk-TWZEHT5L.mjs} +5 -5
- package/dist/cli/{chunk-YGHWGZMF.mjs → chunk-V4TFEZ47.mjs} +1 -1
- package/dist/cli/{chunk-SXGVRWAW.js → chunk-VHZOTHAD.js} +15 -15
- package/dist/cli/{chunk-ZKV52IDD.mjs → chunk-Z7MNFHHE.mjs} +4 -4
- package/dist/cli/{chunk-D5KFELCC.js → chunk-ZOKF4F65.js} +8 -8
- package/dist/cli/{csv-FICXQQRA.mjs → csv-USUSIYER.mjs} +3 -3
- package/dist/cli/{csv-ARB6UC2S.js → csv-V6JDZEWY.js} +12 -12
- package/dist/cli/{db-OG5PJUEH.mjs → db-F5GMBQ65.mjs} +4 -4
- package/dist/cli/{db-HFQAZHLR.js → db-HRWKCFXF.js} +25 -25
- package/dist/cli/{describe-HSHMULQM.js → describe-R6KMEHL5.js} +10 -10
- package/dist/cli/{describe-OU3J552L.mjs → describe-S5O6FVT3.mjs} +6 -6
- package/dist/cli/{executions-74BX6WTW.js → executions-PZIPKQBP.js} +6 -6
- package/dist/cli/{executions-6JBC2LEV.mjs → executions-YPZREEMY.mjs} +4 -4
- package/dist/cli/{feedback-DQMLYSYA.mjs → feedback-BTETOM6H.mjs} +3 -3
- package/dist/cli/{feedback-QVDE26VJ.js → feedback-VDJR5X3J.js} +7 -7
- package/dist/cli/git-B5DP75FD.js +24 -0
- package/dist/cli/{git-CLGBVWOE.mjs → git-INUECEXT.mjs} +4 -4
- package/dist/cli/index.js +89 -89
- package/dist/cli/index.mjs +32 -32
- package/dist/cli/{legacy-noops-3WGVVY3K.js → legacy-noops-45WQXPUD.js} +7 -7
- package/dist/cli/{legacy-noops-WRSE7SQJ.mjs → legacy-noops-MDN77QAS.mjs} +4 -4
- package/dist/cli/{monitors-ZKFTF7YR.mjs → monitors-4BTZGTJW.mjs} +4 -4
- package/dist/cli/{monitors-GY4VQLAC.js → monitors-BMQEIYV6.js} +84 -84
- package/dist/cli/{org-D3PC2XSX.mjs → org-6YNJ7VNJ.mjs} +4 -4
- package/dist/cli/{org-TYO2HXYG.js → org-GTZDYRD3.js} +64 -64
- package/dist/cli/{play-ZVHBPWSF.js → play-BDIBVDSU.js} +231 -231
- package/dist/cli/{play-3OQWZXXS.mjs → play-GGQBJQG4.mjs} +7 -7
- package/dist/cli/{providers-FFGKI5TY.mjs → providers-6EYFXCHM.mjs} +4 -4
- package/dist/cli/{providers-PGMUOSED.js → providers-AFQ6FQWQ.js} +7 -7
- package/dist/cli/{quickstart-JCOPUMOG.mjs → quickstart-FIK5TO73.mjs} +3 -3
- package/dist/cli/{quickstart-PSA6H2J4.js → quickstart-PUXYA3QD.js} +5 -5
- package/dist/cli/search-64GE26YS.js +30 -0
- package/dist/cli/{search-UBDRYRKV.mjs → search-UTPRENV4.mjs} +5 -5
- package/dist/cli/{secrets-35D7PHB6.js → secrets-FMM4RFK2.js} +13 -13
- package/dist/cli/{secrets-KERFAL3Q.mjs → secrets-R2RJ2J7Z.mjs} +4 -4
- package/dist/cli/{sessions-O2Z2KW6M.mjs → sessions-HA2B7AYB.mjs} +4 -4
- package/dist/cli/{sessions-FDQFQHRN.js → sessions-ZRXUQIVV.js} +5 -5
- package/dist/cli/{settings-4ZS7FR2D.mjs → settings-HPGNP7UU.mjs} +7 -7
- package/dist/cli/{settings-4FANCMJK.js → settings-KKHOBBKF.js} +74 -74
- package/dist/cli/{setup-DO7JN6D5.js → setup-FTSDFQOK.js} +41 -41
- package/dist/cli/{setup-M2PE4H6S.mjs → setup-WERVZIIX.mjs} +6 -6
- package/dist/cli/{skills-TQBVDZRT.mjs → skills-D4BGGD5D.mjs} +4 -4
- package/dist/cli/skills-O7HGWWGF.js +29 -0
- package/dist/cli/{tools-3NNIOEWK.js → tools-EKVHV35B.js} +7 -7
- package/dist/cli/{tools-WNRMVURQ.mjs → tools-TKQW72OL.mjs} +6 -6
- package/dist/cli/update-5CP72TRU.js +29 -0
- package/dist/cli/{update-3MF6MZJC.mjs → update-O77BPQAE.mjs} +6 -6
- package/dist/cli/{workflow-EK3HMPGH.js → workflow-GIDAYVSL.js} +15 -15
- package/dist/cli/{workflow-UJB633SZ.mjs → workflow-IJCMSPGJ.mjs} +5 -5
- package/dist/index.js +6 -6
- package/dist/index.mjs +3 -3
- package/dist/install-integrity.json +70 -70
- 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/package.json +1 -1
- package/dist/cli/auth-K6U65ROB.js +0 -40
- package/dist/cli/git-62XASBWF.js +0 -24
- package/dist/cli/search-OLW7VOVW.js +0 -30
- package/dist/cli/skills-OLGAL6KZ.js +0 -29
- package/dist/cli/update-6CWJ56OJ.js +0 -29
|
@@ -202,7 +202,7 @@ export const SDK_RELEASE = {
|
|
|
202
202
|
// getters keep their established compatibility behavior.
|
|
203
203
|
// 0.3.1 deprecated the legacy `deepline enrich` command in favor of Plays.
|
|
204
204
|
// 0.3.90 is the first deliberately versioned SDK release for API v3.
|
|
205
|
-
version: '0.3.
|
|
205
|
+
version: '0.3.402',
|
|
206
206
|
updateSummary:
|
|
207
207
|
'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.',
|
|
208
208
|
packageCapabilities: {
|
|
@@ -1031,7 +1031,9 @@ export function startRunLedgerOutboxRecoveryController(input: {
|
|
|
1031
1031
|
dispatchRunLedgerOutboxToLedgerBatchOnceWithClientScope(
|
|
1032
1032
|
(operation, trace) =>
|
|
1033
1033
|
withRuntimeSchedulerClient(
|
|
1034
|
-
|
|
1034
|
+
// Bulk indexing must not occupy the clients needed to renew,
|
|
1035
|
+
// acknowledge, or durably settle its search delivery lease.
|
|
1036
|
+
input.poolOptions,
|
|
1035
1037
|
operation,
|
|
1036
1038
|
trace,
|
|
1037
1039
|
),
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
var _chunkB2FAQ3AXjs = require('./chunk-B2FAQ3AX.js');
|
|
17
|
+
require('./chunk-CIOMFOJJ.js');
|
|
18
|
+
require('./chunk-JHFX74T6.js');
|
|
19
|
+
require('./chunk-Q2E4E4FJ.js');
|
|
20
|
+
require('./chunk-XNYIZMNQ.js');
|
|
21
|
+
require('./chunk-7P5AA3SN.js');
|
|
22
|
+
require('./chunk-IK7J2DE5.js');
|
|
23
|
+
require('./chunk-OG64RBAC.js');
|
|
24
|
+
require('./chunk-COGTRVWW.js');
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
|
|
35
|
+
|
|
36
|
+
|
|
37
|
+
|
|
38
|
+
|
|
39
|
+
|
|
40
|
+
exports.EXIT_WORKSPACE_MISMATCH = _chunkB2FAQ3AXjs.EXIT_WORKSPACE_MISMATCH; exports.authStatusLine = _chunkB2FAQ3AXjs.authStatusLine; exports.clearPendingClaim = _chunkB2FAQ3AXjs.clearPendingClaim; exports.clearSatisfiedPendingClaim = _chunkB2FAQ3AXjs.clearSatisfiedPendingClaim; exports.handleRegister = _chunkB2FAQ3AXjs.handleRegister; exports.handleStatus = _chunkB2FAQ3AXjs.handleStatus; exports.handleWait = _chunkB2FAQ3AXjs.handleWait; exports.httpJson = _chunkB2FAQ3AXjs.httpJson; exports.readPendingAuthClaim = _chunkB2FAQ3AXjs.readPendingAuthClaim; exports.readStatusBanner = _chunkB2FAQ3AXjs.readStatusBanner; exports.registerAuthCommands = _chunkB2FAQ3AXjs.registerAuthCommands; exports.reportSetupCompleted = _chunkB2FAQ3AXjs.reportSetupCompleted; exports.resolvePendingAuthClaimForResume = _chunkB2FAQ3AXjs.resolvePendingAuthClaimForResume; exports.statusBannerLine = _chunkB2FAQ3AXjs.statusBannerLine;
|
|
@@ -13,13 +13,13 @@ import {
|
|
|
13
13
|
reportSetupCompleted,
|
|
14
14
|
resolvePendingAuthClaimForResume,
|
|
15
15
|
statusBannerLine
|
|
16
|
-
} from "./chunk-
|
|
17
|
-
import "./chunk-
|
|
18
|
-
import "./chunk-
|
|
16
|
+
} from "./chunk-RLL23M7M.mjs";
|
|
17
|
+
import "./chunk-JT7XZP4U.mjs";
|
|
18
|
+
import "./chunk-Q77JWGMZ.mjs";
|
|
19
19
|
import "./chunk-YHPYUZZX.mjs";
|
|
20
20
|
import "./chunk-DLIRSHV6.mjs";
|
|
21
21
|
import "./chunk-NXGCO4JB.mjs";
|
|
22
|
-
import "./chunk-
|
|
22
|
+
import "./chunk-NMPFKSZN.mjs";
|
|
23
23
|
import "./chunk-WZYKRD7T.mjs";
|
|
24
24
|
import "./chunk-KRD6H754.mjs";
|
|
25
25
|
export {
|
|
@@ -2,7 +2,7 @@ import {
|
|
|
2
2
|
DeeplineClient,
|
|
3
3
|
iterateCursorPages,
|
|
4
4
|
requireBillingIdempotencyKey
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-4EWCKDFC.mjs";
|
|
6
6
|
import "./chunk-6IKARAYD.mjs";
|
|
7
7
|
import "./chunk-JI2B4RZP.mjs";
|
|
8
8
|
import "./chunk-EIMG75BT.mjs";
|
|
@@ -13,8 +13,8 @@ import {
|
|
|
13
13
|
openInBrowser,
|
|
14
14
|
printCommandEnvelope,
|
|
15
15
|
shouldEmitJson
|
|
16
|
-
} from "./chunk-
|
|
17
|
-
import "./chunk-
|
|
16
|
+
} from "./chunk-JT7XZP4U.mjs";
|
|
17
|
+
import "./chunk-Q77JWGMZ.mjs";
|
|
18
18
|
import {
|
|
19
19
|
AuthError,
|
|
20
20
|
ConfigError
|
|
@@ -23,7 +23,7 @@ import "./chunk-DLIRSHV6.mjs";
|
|
|
23
23
|
import {
|
|
24
24
|
DeeplineError
|
|
25
25
|
} from "./chunk-NXGCO4JB.mjs";
|
|
26
|
-
import "./chunk-
|
|
26
|
+
import "./chunk-NMPFKSZN.mjs";
|
|
27
27
|
import "./chunk-WZYKRD7T.mjs";
|
|
28
28
|
import "./chunk-KRD6H754.mjs";
|
|
29
29
|
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
|
|
5
|
-
var
|
|
5
|
+
var _chunkLQS5XUFLjs = require('./chunk-LQS5XUFL.js');
|
|
6
6
|
require('./chunk-S6R3OX7B.js');
|
|
7
7
|
require('./chunk-UHNDVD3P.js');
|
|
8
8
|
require('./chunk-KXMNM4AQ.js');
|
|
@@ -13,8 +13,8 @@ require('./chunk-XDVT3GOM.js');
|
|
|
13
13
|
|
|
14
14
|
|
|
15
15
|
|
|
16
|
-
var
|
|
17
|
-
require('./chunk-
|
|
16
|
+
var _chunkCIOMFOJJjs = require('./chunk-CIOMFOJJ.js');
|
|
17
|
+
require('./chunk-JHFX74T6.js');
|
|
18
18
|
|
|
19
19
|
|
|
20
20
|
|
|
@@ -23,7 +23,7 @@ require('./chunk-XNYIZMNQ.js');
|
|
|
23
23
|
|
|
24
24
|
|
|
25
25
|
var _chunk7P5AA3SNjs = require('./chunk-7P5AA3SN.js');
|
|
26
|
-
require('./chunk-
|
|
26
|
+
require('./chunk-IK7J2DE5.js');
|
|
27
27
|
require('./chunk-OG64RBAC.js');
|
|
28
28
|
require('./chunk-COGTRVWW.js');
|
|
29
29
|
|
|
@@ -72,7 +72,7 @@ function reportBillingFailure(failure, options) {
|
|
|
72
72
|
if (failure.next) {
|
|
73
73
|
textLines.push(`Next: ${failure.next}`);
|
|
74
74
|
}
|
|
75
|
-
|
|
75
|
+
_chunkCIOMFOJJjs.printCommandEnvelope.call(void 0,
|
|
76
76
|
{
|
|
77
77
|
ok: false,
|
|
78
78
|
exitCode: failure.exitCode,
|
|
@@ -93,7 +93,7 @@ function parseTopUpCredits(raw) {
|
|
|
93
93
|
return parsed;
|
|
94
94
|
}
|
|
95
95
|
function topUpIdempotencyKey(raw) {
|
|
96
|
-
return raw === void 0 ? `cli_topup:${Date.now()}:${_crypto.randomUUID.call(void 0, )}` :
|
|
96
|
+
return raw === void 0 ? `cli_topup:${Date.now()}:${_crypto.randomUUID.call(void 0, )}` : _chunkLQS5XUFLjs.requireBillingIdempotencyKey.call(void 0, raw);
|
|
97
97
|
}
|
|
98
98
|
function targetBillingIdempotencyKey(raw) {
|
|
99
99
|
return typeof raw === "string" ? raw : `cli_target_billing:${Date.now()}:${_crypto.randomUUID.call(void 0, )}`;
|
|
@@ -299,7 +299,7 @@ function defaultLedgerExportPath() {
|
|
|
299
299
|
);
|
|
300
300
|
}
|
|
301
301
|
async function handleBalance(options) {
|
|
302
|
-
const { http } =
|
|
302
|
+
const { http } = _chunkCIOMFOJJjs.getAuthedHttpClient.call(void 0, );
|
|
303
303
|
const payload = await http.get(
|
|
304
304
|
"/api/v2/billing/balance"
|
|
305
305
|
);
|
|
@@ -367,7 +367,7 @@ async function handleBalance(options) {
|
|
|
367
367
|
...options.verbose ? detail : [],
|
|
368
368
|
...lines.slice(1)
|
|
369
369
|
];
|
|
370
|
-
|
|
370
|
+
_chunkCIOMFOJJjs.printCommandEnvelope.call(void 0,
|
|
371
371
|
{
|
|
372
372
|
...payload,
|
|
373
373
|
...recovery ? { recovery } : {},
|
|
@@ -391,7 +391,7 @@ function quoteShellArgument(value) {
|
|
|
391
391
|
return `'${value.replace(/'/g, `'\\''`)}'`;
|
|
392
392
|
}
|
|
393
393
|
async function handleUsage(options) {
|
|
394
|
-
const { http } =
|
|
394
|
+
const { http } = _chunkCIOMFOJJjs.getAuthedHttpClient.call(void 0, );
|
|
395
395
|
const params = new URLSearchParams();
|
|
396
396
|
if (options.requestId !== void 0) {
|
|
397
397
|
const requestId = options.requestId.trim();
|
|
@@ -472,7 +472,7 @@ async function handleUsage(options) {
|
|
|
472
472
|
"No continuation is available for this view. Use deepline billing ledger export all for the full ledger."
|
|
473
473
|
] : []
|
|
474
474
|
];
|
|
475
|
-
|
|
475
|
+
_chunkCIOMFOJJjs.printCommandEnvelope.call(void 0,
|
|
476
476
|
{
|
|
477
477
|
...payload,
|
|
478
478
|
recent: {
|
|
@@ -486,7 +486,7 @@ async function handleUsage(options) {
|
|
|
486
486
|
);
|
|
487
487
|
}
|
|
488
488
|
async function handleLimit(options) {
|
|
489
|
-
const { http } =
|
|
489
|
+
const { http } = _chunkCIOMFOJJjs.getAuthedHttpClient.call(void 0, );
|
|
490
490
|
const payload = await http.get(
|
|
491
491
|
"/api/v2/billing/limit"
|
|
492
492
|
);
|
|
@@ -494,7 +494,7 @@ async function handleLimit(options) {
|
|
|
494
494
|
`Monthly usage cap: ${_nullishCoalesce(payload.monthly_credits_limit, () => ( "(unknown)"))}`,
|
|
495
495
|
"Enforcement: checked before new calls; in-flight work can exceed the cap."
|
|
496
496
|
] : ["Monthly usage cap: off"];
|
|
497
|
-
|
|
497
|
+
_chunkCIOMFOJJjs.printCommandEnvelope.call(void 0,
|
|
498
498
|
{
|
|
499
499
|
...payload,
|
|
500
500
|
render: { sections: [{ title: "billing limit", lines }] }
|
|
@@ -503,12 +503,12 @@ async function handleLimit(options) {
|
|
|
503
503
|
);
|
|
504
504
|
}
|
|
505
505
|
async function handleSetLimit(credits, options) {
|
|
506
|
-
const { http } =
|
|
506
|
+
const { http } = _chunkCIOMFOJJjs.getAuthedHttpClient.call(void 0, );
|
|
507
507
|
const payload = await http.request("/api/v2/billing/limit", {
|
|
508
508
|
method: "PUT",
|
|
509
509
|
body: { monthly_credits_limit: Number.parseInt(credits, 10) }
|
|
510
510
|
});
|
|
511
|
-
|
|
511
|
+
_chunkCIOMFOJJjs.printCommandEnvelope.call(void 0,
|
|
512
512
|
{
|
|
513
513
|
...payload,
|
|
514
514
|
render: {
|
|
@@ -524,11 +524,11 @@ async function handleSetLimit(credits, options) {
|
|
|
524
524
|
);
|
|
525
525
|
}
|
|
526
526
|
async function handleLimitOff(options) {
|
|
527
|
-
const { http } =
|
|
527
|
+
const { http } = _chunkCIOMFOJJjs.getAuthedHttpClient.call(void 0, );
|
|
528
528
|
const payload = await http.request("/api/v2/billing/limit", {
|
|
529
529
|
method: "DELETE"
|
|
530
530
|
});
|
|
531
|
-
|
|
531
|
+
_chunkCIOMFOJJjs.printCommandEnvelope.call(void 0,
|
|
532
532
|
{
|
|
533
533
|
...payload,
|
|
534
534
|
render: {
|
|
@@ -548,7 +548,7 @@ async function exportLedger(http, outputPath, options) {
|
|
|
548
548
|
let initialized = false;
|
|
549
549
|
let pageNumber = 0;
|
|
550
550
|
console.error(`Exporting billing ledger to ${outputPath}`);
|
|
551
|
-
for await (const entries of
|
|
551
|
+
for await (const entries of _chunkLQS5XUFLjs.iterateCursorPages.call(void 0, async (cursor) => {
|
|
552
552
|
pageNumber += 1;
|
|
553
553
|
console.error(
|
|
554
554
|
`Fetching page ${pageNumber}; ${summary.row_count} rows written.`
|
|
@@ -587,7 +587,7 @@ async function exportLedger(http, outputPath, options) {
|
|
|
587
587
|
return summary;
|
|
588
588
|
}
|
|
589
589
|
async function handleHistory(options) {
|
|
590
|
-
const { http } =
|
|
590
|
+
const { http } = _chunkCIOMFOJJjs.getAuthedHttpClient.call(void 0, );
|
|
591
591
|
const windows = {
|
|
592
592
|
"1d": 86400,
|
|
593
593
|
"1w": 604800,
|
|
@@ -599,10 +599,10 @@ async function handleHistory(options) {
|
|
|
599
599
|
process.cwd(),
|
|
600
600
|
"deepline",
|
|
601
601
|
"data",
|
|
602
|
-
|
|
602
|
+
_chunkCIOMFOJJjs.createTimestampedName.call(void 0, `billing-history-${options.time}`, "csv")
|
|
603
603
|
);
|
|
604
604
|
const summary = await exportLedger(http, outputPath, { sinceAt });
|
|
605
|
-
|
|
605
|
+
_chunkCIOMFOJJjs.printCommandEnvelope.call(void 0,
|
|
606
606
|
{
|
|
607
607
|
output_path: outputPath,
|
|
608
608
|
row_count: summary.row_count,
|
|
@@ -639,14 +639,14 @@ async function handleLedgerExportAll(options) {
|
|
|
639
639
|
);
|
|
640
640
|
return;
|
|
641
641
|
}
|
|
642
|
-
const { http } =
|
|
642
|
+
const { http } = _chunkCIOMFOJJjs.getAuthedHttpClient.call(void 0, );
|
|
643
643
|
const outputPath = options.output ? _path.resolve.call(void 0, String(options.output)) : defaultLedgerExportPath();
|
|
644
644
|
const summary = await exportLedger(http, outputPath, {
|
|
645
645
|
sinceAt,
|
|
646
646
|
runId: options.runId,
|
|
647
647
|
operation: options.operation
|
|
648
648
|
});
|
|
649
|
-
|
|
649
|
+
_chunkCIOMFOJJjs.printCommandEnvelope.call(void 0,
|
|
650
650
|
{
|
|
651
651
|
output_path: outputPath,
|
|
652
652
|
row_count: summary.row_count,
|
|
@@ -685,7 +685,7 @@ function targetPlanLine(plan) {
|
|
|
685
685
|
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"}`;
|
|
686
686
|
}
|
|
687
687
|
async function handlePlans(options) {
|
|
688
|
-
const client = new (0,
|
|
688
|
+
const client = new (0, _chunkLQS5XUFLjs.DeeplineClient)();
|
|
689
689
|
const payload = await client.billing.targetPlans();
|
|
690
690
|
const listedCurrentPlan = payload.plans.find(
|
|
691
691
|
(plan) => plan.sku === payload.current_plan_sku
|
|
@@ -698,8 +698,8 @@ async function handlePlans(options) {
|
|
|
698
698
|
...payload.plans.length === 0 ? ["Plans: none available"] : ["Plans:", ...payload.plans.map(targetPlanLine)],
|
|
699
699
|
"Change plan: deepline billing change-plan <plan_sku>"
|
|
700
700
|
];
|
|
701
|
-
const legacyPayload =
|
|
702
|
-
|
|
701
|
+
const legacyPayload = _chunkCIOMFOJJjs.shouldEmitJson.call(void 0, options.json) ? await client.billing.plans() : null;
|
|
702
|
+
_chunkCIOMFOJJjs.printCommandEnvelope.call(void 0,
|
|
703
703
|
{
|
|
704
704
|
..._nullishCoalesce(legacyPayload, () => ( payload)),
|
|
705
705
|
...legacyPayload ? { target_billing: payload } : {},
|
|
@@ -709,7 +709,7 @@ async function handlePlans(options) {
|
|
|
709
709
|
);
|
|
710
710
|
}
|
|
711
711
|
async function handleSubscribe(planVersionId, options) {
|
|
712
|
-
const { http } =
|
|
712
|
+
const { http } = _chunkCIOMFOJJjs.getAuthedHttpClient.call(void 0, );
|
|
713
713
|
const payload = await http.request(
|
|
714
714
|
"/api/v2/billing/subscription/checkout",
|
|
715
715
|
{
|
|
@@ -718,8 +718,8 @@ async function handleSubscribe(planVersionId, options) {
|
|
|
718
718
|
}
|
|
719
719
|
);
|
|
720
720
|
const url = String(payload.checkout_url || "");
|
|
721
|
-
if (!options.json && options.open !== false && url)
|
|
722
|
-
|
|
721
|
+
if (!options.json && options.open !== false && url) _chunkCIOMFOJJjs.openInBrowser.call(void 0, url);
|
|
722
|
+
_chunkCIOMFOJJjs.printCommandEnvelope.call(void 0,
|
|
723
723
|
{
|
|
724
724
|
...payload,
|
|
725
725
|
render: {
|
|
@@ -735,7 +735,7 @@ async function handleSubscribe(planVersionId, options) {
|
|
|
735
735
|
);
|
|
736
736
|
}
|
|
737
737
|
async function handleSubscriptionStatus(options) {
|
|
738
|
-
const client = new (0,
|
|
738
|
+
const client = new (0, _chunkLQS5XUFLjs.DeeplineClient)();
|
|
739
739
|
const payload = await client.billing.subscription.status();
|
|
740
740
|
const pools = _nullishCoalesce(payload.credit_pools, () => ( []));
|
|
741
741
|
const lines = [
|
|
@@ -755,7 +755,7 @@ async function handleSubscriptionStatus(options) {
|
|
|
755
755
|
],
|
|
756
756
|
`Assigned by: ${_nullishCoalesce(payload.assigned_by, () => ( "default"))}`
|
|
757
757
|
];
|
|
758
|
-
|
|
758
|
+
_chunkCIOMFOJJjs.printCommandEnvelope.call(void 0,
|
|
759
759
|
{
|
|
760
760
|
...payload,
|
|
761
761
|
render: { sections: [{ title: "billing subscription", lines }] }
|
|
@@ -764,7 +764,7 @@ async function handleSubscriptionStatus(options) {
|
|
|
764
764
|
);
|
|
765
765
|
}
|
|
766
766
|
async function handleSubscriptionCancel(options) {
|
|
767
|
-
const client = new (0,
|
|
767
|
+
const client = new (0, _chunkLQS5XUFLjs.DeeplineClient)();
|
|
768
768
|
const action = options.undo ? "undo_cancel" : "cancel";
|
|
769
769
|
if (options.dryRun) {
|
|
770
770
|
const status = await client.billing.subscription.status();
|
|
@@ -781,7 +781,7 @@ async function handleSubscriptionCancel(options) {
|
|
|
781
781
|
return;
|
|
782
782
|
}
|
|
783
783
|
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.";
|
|
784
|
-
|
|
784
|
+
_chunkCIOMFOJJjs.printCommandEnvelope.call(void 0,
|
|
785
785
|
{
|
|
786
786
|
ok: true,
|
|
787
787
|
dry_run: true,
|
|
@@ -836,7 +836,7 @@ async function handleSubscriptionCancel(options) {
|
|
|
836
836
|
"Remaining credits are yours to keep \u2014 cancellation never removes credits.",
|
|
837
837
|
"Undo with: deepline billing subscription cancel --undo"
|
|
838
838
|
];
|
|
839
|
-
|
|
839
|
+
_chunkCIOMFOJJjs.printCommandEnvelope.call(void 0,
|
|
840
840
|
{
|
|
841
841
|
ok: true,
|
|
842
842
|
...result,
|
|
@@ -890,7 +890,7 @@ async function handleInvoices(options) {
|
|
|
890
890
|
return;
|
|
891
891
|
}
|
|
892
892
|
}
|
|
893
|
-
const client = new (0,
|
|
893
|
+
const client = new (0, _chunkLQS5XUFLjs.DeeplineClient)();
|
|
894
894
|
let payload;
|
|
895
895
|
try {
|
|
896
896
|
payload = await client.billing.invoices.list(
|
|
@@ -919,7 +919,7 @@ async function handleInvoices(options) {
|
|
|
919
919
|
url: entry.url
|
|
920
920
|
}))
|
|
921
921
|
} : { ...payload, count: entries.length };
|
|
922
|
-
|
|
922
|
+
_chunkCIOMFOJJjs.printCommandEnvelope.call(void 0,
|
|
923
923
|
{
|
|
924
924
|
...envelope,
|
|
925
925
|
render: { sections: [{ title: "billing invoices", lines }] }
|
|
@@ -928,7 +928,7 @@ async function handleInvoices(options) {
|
|
|
928
928
|
);
|
|
929
929
|
}
|
|
930
930
|
async function handleCheckout(options) {
|
|
931
|
-
const { http } =
|
|
931
|
+
const { http } = _chunkCIOMFOJJjs.getAuthedHttpClient.call(void 0, );
|
|
932
932
|
const payload = await http.post(
|
|
933
933
|
"/api/v2/billing/checkout",
|
|
934
934
|
{
|
|
@@ -938,8 +938,8 @@ async function handleCheckout(options) {
|
|
|
938
938
|
}
|
|
939
939
|
);
|
|
940
940
|
const url = String(payload.url || payload.checkout_url || "");
|
|
941
|
-
if (!options.json && !options.noOpen && url)
|
|
942
|
-
|
|
941
|
+
if (!options.json && !options.noOpen && url) _chunkCIOMFOJJjs.openInBrowser.call(void 0, url);
|
|
942
|
+
_chunkCIOMFOJJjs.printCommandEnvelope.call(void 0,
|
|
943
943
|
{
|
|
944
944
|
...payload,
|
|
945
945
|
render: {
|
|
@@ -984,7 +984,7 @@ async function handleTopUp(creditsRaw, options) {
|
|
|
984
984
|
return;
|
|
985
985
|
}
|
|
986
986
|
if (options.dryRun) {
|
|
987
|
-
|
|
987
|
+
_chunkCIOMFOJJjs.printCommandEnvelope.call(void 0,
|
|
988
988
|
{
|
|
989
989
|
ok: true,
|
|
990
990
|
dry_run: true,
|
|
@@ -1014,7 +1014,7 @@ async function handleTopUp(creditsRaw, options) {
|
|
|
1014
1014
|
);
|
|
1015
1015
|
return;
|
|
1016
1016
|
}
|
|
1017
|
-
const client = new (0,
|
|
1017
|
+
const client = new (0, _chunkLQS5XUFLjs.DeeplineClient)();
|
|
1018
1018
|
let payload;
|
|
1019
1019
|
try {
|
|
1020
1020
|
payload = await client.billing.topUpWithReceipt({
|
|
@@ -1031,7 +1031,7 @@ async function handleTopUp(creditsRaw, options) {
|
|
|
1031
1031
|
return;
|
|
1032
1032
|
}
|
|
1033
1033
|
if (payload.status === "pending") {
|
|
1034
|
-
|
|
1034
|
+
_chunkCIOMFOJJjs.printCommandEnvelope.call(void 0,
|
|
1035
1035
|
{
|
|
1036
1036
|
ok: true,
|
|
1037
1037
|
...payload,
|
|
@@ -1095,17 +1095,17 @@ async function handleTopUp(creditsRaw, options) {
|
|
|
1095
1095
|
]
|
|
1096
1096
|
}
|
|
1097
1097
|
};
|
|
1098
|
-
|
|
1098
|
+
_chunkCIOMFOJJjs.printCommandEnvelope.call(void 0, options.compact ? compactEnvelope : fullEnvelope, {
|
|
1099
1099
|
json: options.json
|
|
1100
1100
|
});
|
|
1101
1101
|
}
|
|
1102
1102
|
async function handleTargetStatus(options) {
|
|
1103
|
-
const client = new (0,
|
|
1103
|
+
const client = new (0, _chunkLQS5XUFLjs.DeeplineClient)();
|
|
1104
1104
|
const payload = await client.billing.targetStatus();
|
|
1105
1105
|
const balanceCommand = "deepline billing balance";
|
|
1106
1106
|
const recentChargesCommand = "deepline billing usage --limit 5";
|
|
1107
1107
|
const exactChargeCommand = "deepline billing usage --request-id <job_id>";
|
|
1108
|
-
|
|
1108
|
+
_chunkCIOMFOJJjs.printCommandEnvelope.call(void 0,
|
|
1109
1109
|
{
|
|
1110
1110
|
ok: true,
|
|
1111
1111
|
...payload,
|
|
@@ -1135,8 +1135,8 @@ async function handleTargetStatus(options) {
|
|
|
1135
1135
|
);
|
|
1136
1136
|
}
|
|
1137
1137
|
async function handleEntitlements(options) {
|
|
1138
|
-
const payload = await new (0,
|
|
1139
|
-
|
|
1138
|
+
const payload = await new (0, _chunkLQS5XUFLjs.DeeplineClient)().billing.entitlements();
|
|
1139
|
+
_chunkCIOMFOJJjs.printCommandEnvelope.call(void 0,
|
|
1140
1140
|
{
|
|
1141
1141
|
ok: true,
|
|
1142
1142
|
...payload,
|
|
@@ -1161,7 +1161,7 @@ async function handleEntitlements(options) {
|
|
|
1161
1161
|
);
|
|
1162
1162
|
}
|
|
1163
1163
|
async function handleAutoRechargeStatus(options) {
|
|
1164
|
-
const payload = await new (0,
|
|
1164
|
+
const payload = await new (0, _chunkLQS5XUFLjs.DeeplineClient)().billing.autoRecharge.get();
|
|
1165
1165
|
const state = payload.available ? payload.enabled ? "on" : "off" : "unavailable";
|
|
1166
1166
|
const lines = [
|
|
1167
1167
|
`State: ${state}`,
|
|
@@ -1171,7 +1171,7 @@ async function handleAutoRechargeStatus(options) {
|
|
|
1171
1171
|
`Automatic credit purchase cap: ${payload.purchase_limit_credits} credits per rolling 30 days`
|
|
1172
1172
|
] : []
|
|
1173
1173
|
];
|
|
1174
|
-
|
|
1174
|
+
_chunkCIOMFOJJjs.printCommandEnvelope.call(void 0,
|
|
1175
1175
|
{
|
|
1176
1176
|
ok: true,
|
|
1177
1177
|
...payload,
|
|
@@ -1220,7 +1220,7 @@ async function handleAutoRechargeSet(options) {
|
|
|
1220
1220
|
}
|
|
1221
1221
|
const idempotencyKey = targetBillingIdempotencyKey(options.idempotencyKey);
|
|
1222
1222
|
if (options.dryRun) {
|
|
1223
|
-
|
|
1223
|
+
_chunkCIOMFOJJjs.printCommandEnvelope.call(void 0,
|
|
1224
1224
|
{
|
|
1225
1225
|
ok: true,
|
|
1226
1226
|
dry_run: true,
|
|
@@ -1241,7 +1241,7 @@ async function handleAutoRechargeSet(options) {
|
|
|
1241
1241
|
);
|
|
1242
1242
|
return;
|
|
1243
1243
|
}
|
|
1244
|
-
const payload = await new (0,
|
|
1244
|
+
const payload = await new (0, _chunkLQS5XUFLjs.DeeplineClient)().billing.autoRecharge.update({
|
|
1245
1245
|
enabled: true,
|
|
1246
1246
|
thresholdCredits,
|
|
1247
1247
|
refillToCredits,
|
|
@@ -1249,7 +1249,7 @@ async function handleAutoRechargeSet(options) {
|
|
|
1249
1249
|
...rollingLimitCredits !== void 0 ? { purchaseLimitCredits: rollingLimitCredits } : {},
|
|
1250
1250
|
idempotencyKey
|
|
1251
1251
|
});
|
|
1252
|
-
|
|
1252
|
+
_chunkCIOMFOJJjs.printCommandEnvelope.call(void 0,
|
|
1253
1253
|
{ ok: true, idempotency_key: idempotencyKey, ...payload },
|
|
1254
1254
|
{ json: options.json }
|
|
1255
1255
|
);
|
|
@@ -1257,7 +1257,7 @@ async function handleAutoRechargeSet(options) {
|
|
|
1257
1257
|
async function handleAutoRechargeOff(options) {
|
|
1258
1258
|
const idempotencyKey = targetBillingIdempotencyKey(options.idempotencyKey);
|
|
1259
1259
|
if (options.dryRun) {
|
|
1260
|
-
|
|
1260
|
+
_chunkCIOMFOJJjs.printCommandEnvelope.call(void 0,
|
|
1261
1261
|
{
|
|
1262
1262
|
ok: true,
|
|
1263
1263
|
dry_run: true,
|
|
@@ -1272,11 +1272,11 @@ async function handleAutoRechargeOff(options) {
|
|
|
1272
1272
|
);
|
|
1273
1273
|
return;
|
|
1274
1274
|
}
|
|
1275
|
-
const payload = await new (0,
|
|
1275
|
+
const payload = await new (0, _chunkLQS5XUFLjs.DeeplineClient)().billing.autoRecharge.update({
|
|
1276
1276
|
enabled: false,
|
|
1277
1277
|
idempotencyKey
|
|
1278
1278
|
});
|
|
1279
|
-
|
|
1279
|
+
_chunkCIOMFOJJjs.printCommandEnvelope.call(void 0,
|
|
1280
1280
|
{ ok: true, idempotency_key: idempotencyKey, ...payload },
|
|
1281
1281
|
{ json: options.json }
|
|
1282
1282
|
);
|
|
@@ -1295,11 +1295,11 @@ async function handleBuyCredits(creditsRaw, options) {
|
|
|
1295
1295
|
return;
|
|
1296
1296
|
}
|
|
1297
1297
|
const idempotencyKey = targetBillingIdempotencyKey(options.idempotencyKey);
|
|
1298
|
-
const payload = await new (0,
|
|
1298
|
+
const payload = await new (0, _chunkLQS5XUFLjs.DeeplineClient)().billing.purchaseCredits({
|
|
1299
1299
|
credits,
|
|
1300
1300
|
idempotencyKey
|
|
1301
1301
|
});
|
|
1302
|
-
|
|
1302
|
+
_chunkCIOMFOJJjs.printCommandEnvelope.call(void 0,
|
|
1303
1303
|
{ ok: true, idempotency_key: idempotencyKey, ...payload },
|
|
1304
1304
|
{ json: options.json }
|
|
1305
1305
|
);
|
|
@@ -1335,7 +1335,7 @@ async function handleTopUpRecover(creditsRaw, options) {
|
|
|
1335
1335
|
return;
|
|
1336
1336
|
}
|
|
1337
1337
|
if (options.dryRun) {
|
|
1338
|
-
|
|
1338
|
+
_chunkCIOMFOJJjs.printCommandEnvelope.call(void 0,
|
|
1339
1339
|
{
|
|
1340
1340
|
ok: true,
|
|
1341
1341
|
dry_run: true,
|
|
@@ -1348,12 +1348,12 @@ async function handleTopUpRecover(creditsRaw, options) {
|
|
|
1348
1348
|
);
|
|
1349
1349
|
return;
|
|
1350
1350
|
}
|
|
1351
|
-
const payload = await new (0,
|
|
1351
|
+
const payload = await new (0, _chunkLQS5XUFLjs.DeeplineClient)().billing.recoverCreditPurchase({
|
|
1352
1352
|
credits,
|
|
1353
1353
|
orgId: options.orgId,
|
|
1354
1354
|
idempotencyKey: options.idempotencyKey
|
|
1355
1355
|
});
|
|
1356
|
-
|
|
1356
|
+
_chunkCIOMFOJJjs.printCommandEnvelope.call(void 0,
|
|
1357
1357
|
{ ok: true, idempotency_key: options.idempotencyKey, ...payload },
|
|
1358
1358
|
{ json: options.json }
|
|
1359
1359
|
);
|
|
@@ -1373,37 +1373,37 @@ async function handleTargetPlan(planSku, options) {
|
|
|
1373
1373
|
return;
|
|
1374
1374
|
}
|
|
1375
1375
|
const idempotencyKey = targetBillingIdempotencyKey(options.idempotencyKey);
|
|
1376
|
-
const payload = await new (0,
|
|
1376
|
+
const payload = await new (0, _chunkLQS5XUFLjs.DeeplineClient)().billing.transitionPlan({
|
|
1377
1377
|
action: "start_or_change",
|
|
1378
1378
|
targetPlanSku: planSku,
|
|
1379
1379
|
...options.billingEmail ? { billingEmail: options.billingEmail } : {},
|
|
1380
1380
|
idempotencyKey
|
|
1381
1381
|
});
|
|
1382
|
-
|
|
1382
|
+
_chunkCIOMFOJJjs.printCommandEnvelope.call(void 0,
|
|
1383
1383
|
{ ok: true, idempotency_key: idempotencyKey, ...payload },
|
|
1384
1384
|
{ json: options.json }
|
|
1385
1385
|
);
|
|
1386
1386
|
}
|
|
1387
1387
|
async function handleTargetPlanCancellation(options) {
|
|
1388
1388
|
const idempotencyKey = targetBillingIdempotencyKey(options.idempotencyKey);
|
|
1389
|
-
const payload = await new (0,
|
|
1389
|
+
const payload = await new (0, _chunkLQS5XUFLjs.DeeplineClient)().billing.transitionPlan({
|
|
1390
1390
|
action: options.undo ? "undo_cancel" : "cancel",
|
|
1391
1391
|
idempotencyKey
|
|
1392
1392
|
});
|
|
1393
|
-
|
|
1393
|
+
_chunkCIOMFOJJjs.printCommandEnvelope.call(void 0,
|
|
1394
1394
|
{ ok: true, idempotency_key: idempotencyKey, ...payload },
|
|
1395
1395
|
{ json: options.json }
|
|
1396
1396
|
);
|
|
1397
1397
|
}
|
|
1398
1398
|
async function handleTargetPortal(options) {
|
|
1399
|
-
const payload = await new (0,
|
|
1399
|
+
const payload = await new (0, _chunkLQS5XUFLjs.DeeplineClient)().billing.portalSession(
|
|
1400
1400
|
options.billingAddress ? { flow: "customer_update" } : void 0
|
|
1401
1401
|
);
|
|
1402
|
-
if (!options.json && !options.noOpen)
|
|
1403
|
-
|
|
1402
|
+
if (!options.json && !options.noOpen) _chunkCIOMFOJJjs.openInBrowser.call(void 0, payload.url);
|
|
1403
|
+
_chunkCIOMFOJJjs.printCommandEnvelope.call(void 0, { ok: true, ...payload }, { json: options.json });
|
|
1404
1404
|
}
|
|
1405
1405
|
async function handleRedeemCode(code, options) {
|
|
1406
|
-
const { http } =
|
|
1406
|
+
const { http } = _chunkCIOMFOJJjs.getAuthedHttpClient.call(void 0, );
|
|
1407
1407
|
const payload = await http.post(
|
|
1408
1408
|
"/api/v2/billing/checkout",
|
|
1409
1409
|
{
|
|
@@ -1411,8 +1411,8 @@ async function handleRedeemCode(code, options) {
|
|
|
1411
1411
|
}
|
|
1412
1412
|
);
|
|
1413
1413
|
const url = String(payload.url || payload.checkout_url || "");
|
|
1414
|
-
if (!options.json && !options.noOpen && url)
|
|
1415
|
-
|
|
1414
|
+
if (!options.json && !options.noOpen && url) _chunkCIOMFOJJjs.openInBrowser.call(void 0, url);
|
|
1415
|
+
_chunkCIOMFOJJjs.printCommandEnvelope.call(void 0,
|
|
1416
1416
|
{
|
|
1417
1417
|
...payload,
|
|
1418
1418
|
render: {
|
|
@@ -1470,14 +1470,14 @@ Examples:
|
|
|
1470
1470
|
if (!Number.isSafeInteger(quantity) || quantity <= 0) {
|
|
1471
1471
|
throw new Error("--quantity must be a positive safe integer.");
|
|
1472
1472
|
}
|
|
1473
|
-
const quote = await new (0,
|
|
1473
|
+
const quote = await new (0, _chunkLQS5XUFLjs.DeeplineClient)().billing.quote({
|
|
1474
1474
|
quantity,
|
|
1475
1475
|
sandbox_runtime: {
|
|
1476
1476
|
timeout: options.sandboxTimeout,
|
|
1477
1477
|
size: "standard"
|
|
1478
1478
|
}
|
|
1479
1479
|
});
|
|
1480
|
-
|
|
1480
|
+
_chunkCIOMFOJJjs.printCommandEnvelope.call(void 0, quote, {
|
|
1481
1481
|
json: options.json,
|
|
1482
1482
|
text: `Sandbox session ceiling: ${quote.maximum_credits} Deepline credits (${quote.quantity} session${quote.quantity === 1 ? "" : "s"}).
|
|
1483
1483
|
${quote.explanation}
|
|
@@ -1708,8 +1708,8 @@ Examples:
|
|
|
1708
1708
|
new (0, _commander.Command)("trigger").description(
|
|
1709
1709
|
"Evaluate capped automatic recharge and resume any pending purchase."
|
|
1710
1710
|
).option("--json", "Emit JSON output").action(async (options) => {
|
|
1711
|
-
const result = await new (0,
|
|
1712
|
-
|
|
1711
|
+
const result = await new (0, _chunkLQS5XUFLjs.DeeplineClient)().billing.autoRecharge.trigger();
|
|
1712
|
+
_chunkCIOMFOJJjs.printCommandEnvelope.call(void 0, { ok: true, ...result }, { json: options.json });
|
|
1713
1713
|
})
|
|
1714
1714
|
);
|
|
1715
1715
|
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(
|