@curviate/cli 0.50.0-next.4 → 0.50.0-next.6
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/CHANGELOG.md +9 -0
- package/README.md +43 -0
- package/dist/{account-7KKJEHAM.js → account-TBPPGZME.js} +8 -8
- package/dist/{analytics-XBAFRYSC.js → analytics-ECRDJRTF.js} +5 -5
- package/dist/{beta-consent-FP2QGN6M.js → beta-consent-7RLD2CJU.js} +4 -4
- package/dist/{billing-AQ5VNIYA.js → billing-6AJ4AB77.js} +5 -5
- package/dist/{chunk-73DJ3KNE.js → chunk-FBBZVIFJ.js} +2 -1
- package/dist/{chunk-RRSWFGXM.js → chunk-K26JD5NC.js} +6 -6
- package/dist/{chunk-3SF6JIMA.js → chunk-LTPME424.js} +2 -2
- package/dist/{chunk-56JSZNRW.js → chunk-N7UA24IK.js} +1 -1
- package/dist/{chunk-2MWTZLAG.js → chunk-NKB4RJUH.js} +129 -45
- package/dist/{chunk-JYCNHE72.js → chunk-QFUZCTD7.js} +2 -2
- package/dist/{chunk-COYDNWKF.js → chunk-QOVYLEUY.js} +2 -2
- package/dist/{chunk-2W4RN5ON.js → chunk-QW5K5DTC.js} +2 -0
- package/dist/{chunk-5I6JJJIV.js → chunk-VHNF6OZD.js} +8 -3
- package/dist/{chunk-QL6VKMTA.js → chunk-XJOWMIW2.js} +11 -11
- package/dist/{chunk-FO54X4T2.js → chunk-XPQP2FZX.js} +1 -1
- package/dist/{chunk-Q5GVXN7Z.js → chunk-YGNDS4CW.js} +1 -1
- package/dist/cli.js +25 -25
- package/dist/{comment-OZZGWNIV.js → comment-7QCABJ53.js} +13 -13
- package/dist/{company-HM23JZT4.js → company-LH56TXM6.js} +12 -12
- package/dist/{config-KHXQZD6F.js → config-YBFTZASA.js} +2 -2
- package/dist/{connect-HBQ4PLTS.js → connect-5X5VIQOO.js} +11 -11
- package/dist/{contact-325QZ5IB.js → contact-6GSXKSL7.js} +8 -8
- package/dist/{contact-groups-TXPUYQYC.js → contact-groups-6S6AM5WV.js} +10 -10
- package/dist/{contact-import-6G2DUCIN.js → contact-import-CQW3RQGN.js} +9 -9
- package/dist/core-5NYENM4A.js +46 -0
- package/dist/{do-not-contact-CP6WKW5T.js → do-not-contact-6DFZYGRI.js} +5 -5
- package/dist/{doctor-GDBH2PH7.js → doctor-OUDGTEYR.js} +4 -4
- package/dist/{draft-IWI7E5VJ.js → draft-AETHWRIX.js} +9 -9
- package/dist/{enrollment-2JVHRUNI.js → enrollment-KXLN32RT.js} +6 -6
- package/dist/{examples-74FXGJ7X.js → examples-ICAGL2S5.js} +1 -1
- package/dist/{exit-codes-7DBETBDT.js → exit-codes-CYQHN4NE.js} +1 -1
- package/dist/{export-URIKCSIO.js → export-XOAHDY7W.js} +4 -4
- package/dist/{feed-ZBATBTD2.js → feed-W3LMXJHQ.js} +6 -6
- package/dist/{group-D43R5JQU.js → group-TLC75WME.js} +6 -6
- package/dist/{inbox-6DTW4XJE.js → inbox-ID4EFMTQ.js} +6 -6
- package/dist/{inboxes-TFZQ57MK.js → inboxes-SRBQ3FAI.js} +6 -6
- package/dist/{incoming-RHKXXZQE.js → incoming-I3TNXHDV.js} +5 -5
- package/dist/{job-ARXJVJID.js → job-V5BVH6EN.js} +6 -6
- package/dist/{login-CH75UC6I.js → login-TRGTHHB3.js} +2 -2
- package/dist/{message-WTGOJZGL.js → message-CAAOJEYQ.js} +7 -7
- package/dist/{motion-TQU6ZS6N.js → motion-NQKMLNH4.js} +90 -7
- package/dist/{network-JUQA3X5S.js → network-CDMKWOZG.js} +5 -5
- package/dist/{notification-GN5Y25GL.js → notification-SC4SHB5F.js} +6 -6
- package/dist/{notifications-C5CBK574.js → notifications-VN2MDDPZ.js} +6 -6
- package/dist/{post-HT2UWXXO.js → post-TWHMSQP4.js} +12 -12
- package/dist/{profile-ZSBAZPFQ.js → profile-4J3RB7US.js} +16 -16
- package/dist/{recruiter-CSG4XSZ4.js → recruiter-QUNXM3CY.js} +11 -11
- package/dist/{sales-nav-LDI7MTGU.js → sales-nav-4U6F7GPN.js} +11 -11
- package/dist/{search-NLIL5SXI.js → search-7HD2X2WX.js} +14 -14
- package/dist/{setup-UGELD4FZ.js → setup-YH5DNST4.js} +4 -4
- package/dist/{team-LWDBXG4K.js → team-G5C3LDYA.js} +5 -5
- package/dist/{tier-LOI4ZOVV.js → tier-N7CENZXH.js} +4 -4
- package/dist/{unibox-IL6SRMK2.js → unibox-I7VDPY6A.js} +13 -6
- package/dist/{webhook-TAXMQNEK.js → webhook-OPXGVBFW.js} +5 -5
- package/package.json +2 -2
- package/dist/core-HXREJJCJ.js +0 -46
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
} from "./chunk-UEAX6KUB.js";
|
|
5
5
|
import {
|
|
6
6
|
requireAccount
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-QFUZCTD7.js";
|
|
8
8
|
import {
|
|
9
9
|
pageDelayFromFlags,
|
|
10
10
|
readCursorFlag,
|
|
@@ -13,7 +13,7 @@ import {
|
|
|
13
13
|
readablePage,
|
|
14
14
|
rejectPaginationModifiersWithoutAll,
|
|
15
15
|
streamAll
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-XPQP2FZX.js";
|
|
17
17
|
import {
|
|
18
18
|
renderError,
|
|
19
19
|
renderSuccess,
|
|
@@ -23,7 +23,7 @@ import {
|
|
|
23
23
|
import {
|
|
24
24
|
createClient,
|
|
25
25
|
resolveEffectiveConfig
|
|
26
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-N7UA24IK.js";
|
|
27
27
|
import {
|
|
28
28
|
GLOBAL_FLAGS,
|
|
29
29
|
READ_SINGLE_FLAGS,
|
|
@@ -31,9 +31,9 @@ import {
|
|
|
31
31
|
} from "./chunk-RYWWSZUH.js";
|
|
32
32
|
import {
|
|
33
33
|
DESCRIPTIONS
|
|
34
|
-
} from "./chunk-
|
|
34
|
+
} from "./chunk-FBBZVIFJ.js";
|
|
35
35
|
import "./chunk-ZYURL5VK.js";
|
|
36
|
-
import "./chunk-
|
|
36
|
+
import "./chunk-QW5K5DTC.js";
|
|
37
37
|
|
|
38
38
|
// src/commands/group.ts
|
|
39
39
|
import { defineCommand } from "citty";
|
|
@@ -60,7 +60,7 @@ function resolveOutputOpts(flags) {
|
|
|
60
60
|
async function handleSdkError(err, outOpts, out) {
|
|
61
61
|
const { CurviateError } = await import("@curviate/sdk");
|
|
62
62
|
if (err instanceof CurviateError) {
|
|
63
|
-
const { getExitCode } = await import("./exit-codes-
|
|
63
|
+
const { getExitCode } = await import("./exit-codes-CYQHN4NE.js");
|
|
64
64
|
renderError(err, outOpts, out);
|
|
65
65
|
process.exit(getExitCode(err));
|
|
66
66
|
}
|
|
@@ -12,7 +12,7 @@ import {
|
|
|
12
12
|
} from "./chunk-UEAX6KUB.js";
|
|
13
13
|
import {
|
|
14
14
|
requireAccount
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-QFUZCTD7.js";
|
|
16
16
|
import {
|
|
17
17
|
buildPreviewOutput
|
|
18
18
|
} from "./chunk-TCUYH5GO.js";
|
|
@@ -24,7 +24,7 @@ import {
|
|
|
24
24
|
readablePage,
|
|
25
25
|
rejectPaginationModifiersWithoutAll,
|
|
26
26
|
streamAll
|
|
27
|
-
} from "./chunk-
|
|
27
|
+
} from "./chunk-XPQP2FZX.js";
|
|
28
28
|
import {
|
|
29
29
|
renderError,
|
|
30
30
|
renderSuccess,
|
|
@@ -34,7 +34,7 @@ import {
|
|
|
34
34
|
import {
|
|
35
35
|
createClient,
|
|
36
36
|
resolveEffectiveConfig
|
|
37
|
-
} from "./chunk-
|
|
37
|
+
} from "./chunk-N7UA24IK.js";
|
|
38
38
|
import {
|
|
39
39
|
GLOBAL_FLAGS,
|
|
40
40
|
READ_SINGLE_FLAGS,
|
|
@@ -43,9 +43,9 @@ import {
|
|
|
43
43
|
} from "./chunk-RYWWSZUH.js";
|
|
44
44
|
import {
|
|
45
45
|
DESCRIPTIONS
|
|
46
|
-
} from "./chunk-
|
|
46
|
+
} from "./chunk-FBBZVIFJ.js";
|
|
47
47
|
import "./chunk-ZYURL5VK.js";
|
|
48
|
-
import "./chunk-
|
|
48
|
+
import "./chunk-QW5K5DTC.js";
|
|
49
49
|
|
|
50
50
|
// src/commands/inbox.ts
|
|
51
51
|
import { defineCommand } from "citty";
|
|
@@ -107,7 +107,7 @@ function validateInboxFolder(raw, out) {
|
|
|
107
107
|
async function handleSdkError(err, outOpts, out) {
|
|
108
108
|
const { CurviateError } = await import("@curviate/sdk");
|
|
109
109
|
if (err instanceof CurviateError) {
|
|
110
|
-
const { getExitCode } = await import("./exit-codes-
|
|
110
|
+
const { getExitCode } = await import("./exit-codes-CYQHN4NE.js");
|
|
111
111
|
renderError(err, outOpts, out);
|
|
112
112
|
process.exit(getExitCode(err));
|
|
113
113
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import {
|
|
3
3
|
requireAccount
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-QFUZCTD7.js";
|
|
5
5
|
import {
|
|
6
6
|
pageDelayFromFlags,
|
|
7
7
|
readCursorFlag,
|
|
@@ -10,7 +10,7 @@ import {
|
|
|
10
10
|
readablePage,
|
|
11
11
|
rejectPaginationModifiersWithoutAll,
|
|
12
12
|
streamAll
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-XPQP2FZX.js";
|
|
14
14
|
import {
|
|
15
15
|
renderError,
|
|
16
16
|
renderSuccess,
|
|
@@ -20,7 +20,7 @@ import {
|
|
|
20
20
|
import {
|
|
21
21
|
createClient,
|
|
22
22
|
resolveEffectiveConfig
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-N7UA24IK.js";
|
|
24
24
|
import {
|
|
25
25
|
GLOBAL_FLAGS,
|
|
26
26
|
READ_SINGLE_FLAGS,
|
|
@@ -28,9 +28,9 @@ import {
|
|
|
28
28
|
} from "./chunk-RYWWSZUH.js";
|
|
29
29
|
import {
|
|
30
30
|
DESCRIPTIONS
|
|
31
|
-
} from "./chunk-
|
|
31
|
+
} from "./chunk-FBBZVIFJ.js";
|
|
32
32
|
import "./chunk-ZYURL5VK.js";
|
|
33
|
-
import "./chunk-
|
|
33
|
+
import "./chunk-QW5K5DTC.js";
|
|
34
34
|
|
|
35
35
|
// src/commands/inboxes.ts
|
|
36
36
|
import { defineCommand } from "citty";
|
|
@@ -57,7 +57,7 @@ function resolveOutputOpts(flags) {
|
|
|
57
57
|
async function handleSdkError(err, outOpts, out) {
|
|
58
58
|
const { CurviateError } = await import("@curviate/sdk");
|
|
59
59
|
if (err instanceof CurviateError) {
|
|
60
|
-
const { getExitCode } = await import("./exit-codes-
|
|
60
|
+
const { getExitCode } = await import("./exit-codes-CYQHN4NE.js");
|
|
61
61
|
renderError(err, outOpts, out);
|
|
62
62
|
process.exit(getExitCode(err));
|
|
63
63
|
}
|
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
outputOpts,
|
|
5
5
|
rootClient,
|
|
6
6
|
usage
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-LTPME424.js";
|
|
8
8
|
import {
|
|
9
9
|
buildPreviewOutput
|
|
10
10
|
} from "./chunk-TCUYH5GO.js";
|
|
@@ -18,12 +18,12 @@ import {
|
|
|
18
18
|
readablePage,
|
|
19
19
|
rejectPaginationModifiersWithoutAll,
|
|
20
20
|
streamAll
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-XPQP2FZX.js";
|
|
22
22
|
import {
|
|
23
23
|
renderSuccess,
|
|
24
24
|
writeNdjsonItem
|
|
25
25
|
} from "./chunk-QM57YDJE.js";
|
|
26
|
-
import "./chunk-
|
|
26
|
+
import "./chunk-N7UA24IK.js";
|
|
27
27
|
import {
|
|
28
28
|
GLOBAL_FLAGS,
|
|
29
29
|
READ_SINGLE_FLAGS,
|
|
@@ -32,7 +32,7 @@ import {
|
|
|
32
32
|
} from "./chunk-RYWWSZUH.js";
|
|
33
33
|
import {
|
|
34
34
|
DESCRIPTIONS
|
|
35
|
-
} from "./chunk-
|
|
35
|
+
} from "./chunk-FBBZVIFJ.js";
|
|
36
36
|
import "./chunk-ZYURL5VK.js";
|
|
37
37
|
|
|
38
38
|
// src/commands/incoming.ts
|
|
@@ -209,7 +209,7 @@ var incomingCommand = defineCommand({
|
|
|
209
209
|
meta: { name: "incoming", description: DESCRIPTIONS.incoming },
|
|
210
210
|
subCommands: { create: createCmd, list: listCmd, get: getCmd, update: updateCmd, delete: deleteCmd, rotate: rotateCmd, capture: captureCmd, arrivals: arrivalsCmd },
|
|
211
211
|
async run() {
|
|
212
|
-
const { showHelp } = await import("./examples-
|
|
212
|
+
const { showHelp } = await import("./examples-ICAGL2S5.js");
|
|
213
213
|
await showHelp(incomingCommand, ["curviate", "incoming"]);
|
|
214
214
|
}
|
|
215
215
|
});
|
|
@@ -15,7 +15,7 @@ import {
|
|
|
15
15
|
} from "./chunk-XDG3TOKG.js";
|
|
16
16
|
import {
|
|
17
17
|
requireAccount
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-QFUZCTD7.js";
|
|
19
19
|
import {
|
|
20
20
|
buildPreviewOutput
|
|
21
21
|
} from "./chunk-TCUYH5GO.js";
|
|
@@ -29,7 +29,7 @@ import {
|
|
|
29
29
|
readablePage,
|
|
30
30
|
rejectPaginationModifiersWithoutAll,
|
|
31
31
|
streamAll
|
|
32
|
-
} from "./chunk-
|
|
32
|
+
} from "./chunk-XPQP2FZX.js";
|
|
33
33
|
import {
|
|
34
34
|
renderError,
|
|
35
35
|
renderSuccess,
|
|
@@ -40,7 +40,7 @@ import {
|
|
|
40
40
|
createClient,
|
|
41
41
|
downloadBinary,
|
|
42
42
|
resolveEffectiveConfig
|
|
43
|
-
} from "./chunk-
|
|
43
|
+
} from "./chunk-N7UA24IK.js";
|
|
44
44
|
import {
|
|
45
45
|
GLOBAL_FLAGS,
|
|
46
46
|
READ_SINGLE_FLAGS,
|
|
@@ -49,9 +49,9 @@ import {
|
|
|
49
49
|
} from "./chunk-RYWWSZUH.js";
|
|
50
50
|
import {
|
|
51
51
|
DESCRIPTIONS
|
|
52
|
-
} from "./chunk-
|
|
52
|
+
} from "./chunk-FBBZVIFJ.js";
|
|
53
53
|
import "./chunk-ZYURL5VK.js";
|
|
54
|
-
import "./chunk-
|
|
54
|
+
import "./chunk-QW5K5DTC.js";
|
|
55
55
|
|
|
56
56
|
// src/commands/job.ts
|
|
57
57
|
import { defineCommand } from "citty";
|
|
@@ -107,7 +107,7 @@ function requireEnum(value, allowed, flag, out) {
|
|
|
107
107
|
async function handleSdkError(err, outOpts, out) {
|
|
108
108
|
const { CurviateError } = await import("@curviate/sdk");
|
|
109
109
|
if (err instanceof CurviateError) {
|
|
110
|
-
const { getExitCode } = await import("./exit-codes-
|
|
110
|
+
const { getExitCode } = await import("./exit-codes-CYQHN4NE.js");
|
|
111
111
|
renderError(err, outOpts, out);
|
|
112
112
|
process.exit(getExitCode(err));
|
|
113
113
|
}
|
|
@@ -5,13 +5,13 @@ import {
|
|
|
5
5
|
import {
|
|
6
6
|
baseUrlProblem,
|
|
7
7
|
writeProfile
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-N7UA24IK.js";
|
|
9
9
|
import {
|
|
10
10
|
GLOBAL_FLAGS
|
|
11
11
|
} from "./chunk-RYWWSZUH.js";
|
|
12
12
|
import {
|
|
13
13
|
DESCRIPTIONS
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-FBBZVIFJ.js";
|
|
15
15
|
import {
|
|
16
16
|
defaultReadStdin,
|
|
17
17
|
resolveTextOrStdin
|
|
@@ -13,21 +13,21 @@ import {
|
|
|
13
13
|
runMessageSend,
|
|
14
14
|
sentAsNotice,
|
|
15
15
|
willSendAsNotice
|
|
16
|
-
} from "./chunk-
|
|
17
|
-
import "./chunk-5I6JJJIV.js";
|
|
16
|
+
} from "./chunk-NKB4RJUH.js";
|
|
18
17
|
import "./chunk-UWO2D4HW.js";
|
|
19
18
|
import "./chunk-Q3ZPRFUX.js";
|
|
20
19
|
import "./chunk-UEAX6KUB.js";
|
|
21
|
-
import "./chunk-
|
|
20
|
+
import "./chunk-VHNF6OZD.js";
|
|
21
|
+
import "./chunk-QFUZCTD7.js";
|
|
22
22
|
import "./chunk-TCUYH5GO.js";
|
|
23
|
-
import "./chunk-
|
|
23
|
+
import "./chunk-XPQP2FZX.js";
|
|
24
24
|
import "./chunk-QM57YDJE.js";
|
|
25
|
-
import "./chunk-
|
|
25
|
+
import "./chunk-N7UA24IK.js";
|
|
26
26
|
import "./chunk-RYWWSZUH.js";
|
|
27
|
-
import "./chunk-
|
|
27
|
+
import "./chunk-FBBZVIFJ.js";
|
|
28
28
|
import "./chunk-FDJMAF7D.js";
|
|
29
29
|
import "./chunk-ZYURL5VK.js";
|
|
30
|
-
import "./chunk-
|
|
30
|
+
import "./chunk-QW5K5DTC.js";
|
|
31
31
|
export {
|
|
32
32
|
guardBareMessageForm,
|
|
33
33
|
messageCommand,
|
|
@@ -1,14 +1,18 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
+
import {
|
|
3
|
+
AttachError,
|
|
4
|
+
readAttachment
|
|
5
|
+
} from "./chunk-VHNF6OZD.js";
|
|
2
6
|
import {
|
|
3
7
|
sendInChunks
|
|
4
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-QOVYLEUY.js";
|
|
5
9
|
import {
|
|
6
10
|
fail,
|
|
7
11
|
listFlag,
|
|
8
12
|
outputOpts,
|
|
9
13
|
rootClient,
|
|
10
14
|
usage
|
|
11
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-LTPME424.js";
|
|
12
16
|
import {
|
|
13
17
|
buildPreviewOutput
|
|
14
18
|
} from "./chunk-TCUYH5GO.js";
|
|
@@ -23,12 +27,12 @@ import {
|
|
|
23
27
|
readablePage,
|
|
24
28
|
rejectPaginationModifiersWithoutAll,
|
|
25
29
|
streamAll
|
|
26
|
-
} from "./chunk-
|
|
30
|
+
} from "./chunk-XPQP2FZX.js";
|
|
27
31
|
import {
|
|
28
32
|
renderSuccess,
|
|
29
33
|
writeNdjsonItem
|
|
30
34
|
} from "./chunk-QM57YDJE.js";
|
|
31
|
-
import "./chunk-
|
|
35
|
+
import "./chunk-N7UA24IK.js";
|
|
32
36
|
import {
|
|
33
37
|
GLOBAL_FLAGS,
|
|
34
38
|
READ_SINGLE_FLAGS,
|
|
@@ -37,7 +41,7 @@ import {
|
|
|
37
41
|
} from "./chunk-RYWWSZUH.js";
|
|
38
42
|
import {
|
|
39
43
|
DESCRIPTIONS
|
|
40
|
-
} from "./chunk-
|
|
44
|
+
} from "./chunk-FBBZVIFJ.js";
|
|
41
45
|
import {
|
|
42
46
|
documentSchema,
|
|
43
47
|
parseDocument,
|
|
@@ -53,6 +57,7 @@ import {
|
|
|
53
57
|
// src/commands/motion.ts
|
|
54
58
|
import { defineCommand } from "citty";
|
|
55
59
|
import { writeFile } from "fs/promises";
|
|
60
|
+
import { basename } from "path";
|
|
56
61
|
|
|
57
62
|
// src/lib/sequence-report.ts
|
|
58
63
|
function valueOffsets(text) {
|
|
@@ -552,6 +557,33 @@ var membership = (kind) => async (c, f) => {
|
|
|
552
557
|
};
|
|
553
558
|
renderSuccess(merged, outputOpts(f), process);
|
|
554
559
|
};
|
|
560
|
+
async function runVoiceClipUpload(c, f) {
|
|
561
|
+
const path = f.file ?? "";
|
|
562
|
+
if (path.trim() === "") usage("the audio file is missing. Pass its path: `curviate motion voice-clip upload intro.mp3`.");
|
|
563
|
+
const filename = basename(path);
|
|
564
|
+
let bytes;
|
|
565
|
+
try {
|
|
566
|
+
bytes = await readAttachment(path);
|
|
567
|
+
} catch (err) {
|
|
568
|
+
if (err instanceof AttachError) usage(err.message);
|
|
569
|
+
throw err;
|
|
570
|
+
}
|
|
571
|
+
if (f.preview) {
|
|
572
|
+
return void process.stdout.write(JSON.stringify(buildPreviewOutput({ method: "motions.voiceClips.upload", args: { filename }, body: {}, attachments: [{ name: filename, buffer: bytes }] })) + "\n");
|
|
573
|
+
}
|
|
574
|
+
try {
|
|
575
|
+
renderSuccess(await c.motions.voiceClips.upload(bytes, { filename }), outputOpts(f), process);
|
|
576
|
+
} catch (err) {
|
|
577
|
+
await fail(err, f);
|
|
578
|
+
}
|
|
579
|
+
}
|
|
580
|
+
async function runVoiceClipGet(c, f) {
|
|
581
|
+
try {
|
|
582
|
+
renderSuccess(await c.motions.voiceClips.get(f.id ?? ""), outputOpts(f), process);
|
|
583
|
+
} catch (err) {
|
|
584
|
+
await fail(err, f);
|
|
585
|
+
}
|
|
586
|
+
}
|
|
555
587
|
async function runLint(f) {
|
|
556
588
|
const text = await readFileFlag("file", f.file ?? "", { others: f });
|
|
557
589
|
const doc = parseDocument("file", text);
|
|
@@ -847,6 +879,56 @@ var initCmd = defineCommand({
|
|
|
847
879
|
await runInit(args);
|
|
848
880
|
}
|
|
849
881
|
});
|
|
882
|
+
var voiceClipUploadCmd = defineCommand({
|
|
883
|
+
meta: {
|
|
884
|
+
name: "upload",
|
|
885
|
+
description: "Upload one audio file (MP3, WAV, M4A, WebM or Ogg) and print the clip: its `id` (vc_...) is the `clip_id` of a `voice.send` step. 1 to 120 seconds, up to 20 MiB, 100 uploads per Team per 24 hours. The file is converted once and the original is discarded. Nothing reaches LinkedIn. Needs Automate.",
|
|
886
|
+
risk: "write",
|
|
887
|
+
rules: {
|
|
888
|
+
changes: "Stores one converted clip for your Team. No Motion changes and nothing is sent to anyone.",
|
|
889
|
+
visible_to: "Your Team.",
|
|
890
|
+
budget_rows: [],
|
|
891
|
+
retry: "A retry stores a second clip (it counts toward the 24-hour cap); an unused clip is deleted 30 days after its upload.",
|
|
892
|
+
undo: "Not needed: a clip no Sequence uses is deleted after 30 days."
|
|
893
|
+
},
|
|
894
|
+
output: ["The clip: `id`, `duration_ms`, `bytes`, `filename`, `created_at`. No download link."],
|
|
895
|
+
errors: {
|
|
896
|
+
VOICE_CLIP_INVALID: "the file is empty, is not audio, cannot be decoded, is under 1 second or is over 120 seconds; the message names the reason. A clip is never shortened.",
|
|
897
|
+
PAYLOAD_TOO_LARGE: "the file is over 20 MiB.",
|
|
898
|
+
RATE_LIMIT_TENANT: "100 uploads in the last 24 hours; Retry-After is the wait.",
|
|
899
|
+
TIER_REQUIRED: "Voice clips need the Automate plan.",
|
|
900
|
+
...ROLE_ERRORS
|
|
901
|
+
},
|
|
902
|
+
seeAlso: ["curviate motion voice-clip get", "curviate motion lint", "curviate motion create"],
|
|
903
|
+
examples: ["curviate motion voice-clip upload intro.mp3", "curviate motion voice-clip upload intro.m4a --preview"]
|
|
904
|
+
},
|
|
905
|
+
args: {
|
|
906
|
+
...WRITE_SINGLE_FLAGS,
|
|
907
|
+
file: { type: "positional", required: true, description: "The audio file's path." }
|
|
908
|
+
},
|
|
909
|
+
run: online(runVoiceClipUpload)
|
|
910
|
+
});
|
|
911
|
+
var voiceClipGetCmd = defineCommand({
|
|
912
|
+
meta: {
|
|
913
|
+
name: "get",
|
|
914
|
+
description: "One Voice clip: duration, size, file name and upload time. No download link. Another Team's clip is RESOURCE_NOT_FOUND, like an unknown id.",
|
|
915
|
+
risk: "read",
|
|
916
|
+
examples: ["curviate motion voice-clip get vc_YOUR_CLIP_ID"]
|
|
917
|
+
},
|
|
918
|
+
args: {
|
|
919
|
+
...readOnly(READ_SINGLE_FLAGS),
|
|
920
|
+
id: { type: "positional", description: "Voice clip id (vc_...)." }
|
|
921
|
+
},
|
|
922
|
+
run: online(runVoiceClipGet)
|
|
923
|
+
});
|
|
924
|
+
var voiceClipCommand = defineCommand({
|
|
925
|
+
meta: { name: "voice-clip", description: DESCRIPTIONS.motionVoiceClip },
|
|
926
|
+
subCommands: { upload: voiceClipUploadCmd, get: voiceClipGetCmd },
|
|
927
|
+
async run() {
|
|
928
|
+
const { showHelp } = await import("./examples-ICAGL2S5.js");
|
|
929
|
+
await showHelp(voiceClipCommand, ["curviate", "motion", "voice-clip"]);
|
|
930
|
+
}
|
|
931
|
+
});
|
|
850
932
|
var motionCommand = defineCommand({
|
|
851
933
|
meta: { name: "motion", description: DESCRIPTIONS.motion },
|
|
852
934
|
subCommands: {
|
|
@@ -863,10 +945,11 @@ var motionCommand = defineCommand({
|
|
|
863
945
|
add: membershipCmd("add"),
|
|
864
946
|
remove: membershipCmd("remove"),
|
|
865
947
|
lint: lintCmd,
|
|
866
|
-
init: initCmd
|
|
948
|
+
init: initCmd,
|
|
949
|
+
"voice-clip": voiceClipCommand
|
|
867
950
|
},
|
|
868
951
|
async run() {
|
|
869
|
-
const { showHelp } = await import("./examples-
|
|
952
|
+
const { showHelp } = await import("./examples-ICAGL2S5.js");
|
|
870
953
|
await showHelp(motionCommand, ["curviate", "motion"]);
|
|
871
954
|
}
|
|
872
955
|
});
|
|
@@ -13,7 +13,7 @@ import {
|
|
|
13
13
|
outputOpts,
|
|
14
14
|
rootClient,
|
|
15
15
|
usage
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-LTPME424.js";
|
|
17
17
|
import {
|
|
18
18
|
buildPreviewOutput
|
|
19
19
|
} from "./chunk-TCUYH5GO.js";
|
|
@@ -27,12 +27,12 @@ import {
|
|
|
27
27
|
readablePage,
|
|
28
28
|
rejectPaginationModifiersWithoutAll,
|
|
29
29
|
streamAll
|
|
30
|
-
} from "./chunk-
|
|
30
|
+
} from "./chunk-XPQP2FZX.js";
|
|
31
31
|
import {
|
|
32
32
|
renderSuccess,
|
|
33
33
|
writeNdjsonItem
|
|
34
34
|
} from "./chunk-QM57YDJE.js";
|
|
35
|
-
import "./chunk-
|
|
35
|
+
import "./chunk-N7UA24IK.js";
|
|
36
36
|
import {
|
|
37
37
|
GLOBAL_FLAGS,
|
|
38
38
|
WRITE_SINGLE_FLAGS,
|
|
@@ -40,7 +40,7 @@ import {
|
|
|
40
40
|
} from "./chunk-RYWWSZUH.js";
|
|
41
41
|
import {
|
|
42
42
|
DESCRIPTIONS
|
|
43
|
-
} from "./chunk-
|
|
43
|
+
} from "./chunk-FBBZVIFJ.js";
|
|
44
44
|
import "./chunk-ZYURL5VK.js";
|
|
45
45
|
|
|
46
46
|
// src/commands/network.ts
|
|
@@ -225,7 +225,7 @@ var networkCommand = defineCommand({
|
|
|
225
225
|
meta: { name: "network", description: DESCRIPTIONS.network },
|
|
226
226
|
subCommands: { list: listCmd, status: statusCmd, export: exportCmd, resync: resyncCmd },
|
|
227
227
|
async run() {
|
|
228
|
-
const { showHelp } = await import("./examples-
|
|
228
|
+
const { showHelp } = await import("./examples-ICAGL2S5.js");
|
|
229
229
|
await showHelp(networkCommand, ["curviate", "network"]);
|
|
230
230
|
}
|
|
231
231
|
});
|
|
@@ -5,7 +5,7 @@ import {
|
|
|
5
5
|
} from "./chunk-Q3ZPRFUX.js";
|
|
6
6
|
import {
|
|
7
7
|
requireAccount
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-QFUZCTD7.js";
|
|
9
9
|
import {
|
|
10
10
|
buildPreviewOutput
|
|
11
11
|
} from "./chunk-TCUYH5GO.js";
|
|
@@ -16,7 +16,7 @@ import {
|
|
|
16
16
|
readablePage,
|
|
17
17
|
rejectPaginationModifiersWithoutAll,
|
|
18
18
|
streamAll
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-XPQP2FZX.js";
|
|
20
20
|
import {
|
|
21
21
|
renderError,
|
|
22
22
|
renderSuccess,
|
|
@@ -26,7 +26,7 @@ import {
|
|
|
26
26
|
import {
|
|
27
27
|
createClient,
|
|
28
28
|
resolveEffectiveConfig
|
|
29
|
-
} from "./chunk-
|
|
29
|
+
} from "./chunk-N7UA24IK.js";
|
|
30
30
|
import {
|
|
31
31
|
GLOBAL_FLAGS,
|
|
32
32
|
WRITE_SINGLE_FLAGS,
|
|
@@ -34,9 +34,9 @@ import {
|
|
|
34
34
|
} from "./chunk-RYWWSZUH.js";
|
|
35
35
|
import {
|
|
36
36
|
DESCRIPTIONS
|
|
37
|
-
} from "./chunk-
|
|
37
|
+
} from "./chunk-FBBZVIFJ.js";
|
|
38
38
|
import "./chunk-ZYURL5VK.js";
|
|
39
|
-
import "./chunk-
|
|
39
|
+
import "./chunk-QW5K5DTC.js";
|
|
40
40
|
|
|
41
41
|
// src/commands/notification.ts
|
|
42
42
|
import { defineCommand } from "citty";
|
|
@@ -57,7 +57,7 @@ function resolveOutputOpts(flags) {
|
|
|
57
57
|
async function handleSdkError(err, outOpts, out) {
|
|
58
58
|
const { CurviateError } = await import("@curviate/sdk");
|
|
59
59
|
if (err instanceof CurviateError) {
|
|
60
|
-
const { getExitCode } = await import("./exit-codes-
|
|
60
|
+
const { getExitCode } = await import("./exit-codes-CYQHN4NE.js");
|
|
61
61
|
renderError(err, outOpts, out);
|
|
62
62
|
process.exit(getExitCode(err));
|
|
63
63
|
}
|
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
outputOpts,
|
|
5
5
|
rootClient,
|
|
6
6
|
usage
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-LTPME424.js";
|
|
8
8
|
import {
|
|
9
9
|
buildPreviewOutput
|
|
10
10
|
} from "./chunk-TCUYH5GO.js";
|
|
@@ -19,12 +19,12 @@ import {
|
|
|
19
19
|
readablePage,
|
|
20
20
|
rejectPaginationModifiersWithoutAll,
|
|
21
21
|
streamAll
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-XPQP2FZX.js";
|
|
23
23
|
import {
|
|
24
24
|
renderSuccess,
|
|
25
25
|
writeNdjsonItem
|
|
26
26
|
} from "./chunk-QM57YDJE.js";
|
|
27
|
-
import "./chunk-
|
|
27
|
+
import "./chunk-N7UA24IK.js";
|
|
28
28
|
import {
|
|
29
29
|
GLOBAL_FLAGS,
|
|
30
30
|
READ_SINGLE_FLAGS,
|
|
@@ -33,7 +33,7 @@ import {
|
|
|
33
33
|
} from "./chunk-RYWWSZUH.js";
|
|
34
34
|
import {
|
|
35
35
|
DESCRIPTIONS
|
|
36
|
-
} from "./chunk-
|
|
36
|
+
} from "./chunk-FBBZVIFJ.js";
|
|
37
37
|
import "./chunk-ZYURL5VK.js";
|
|
38
38
|
|
|
39
39
|
// src/commands/notifications.ts
|
|
@@ -103,7 +103,7 @@ var update = (body) => async (c, f) => {
|
|
|
103
103
|
if (notFoundError) {
|
|
104
104
|
process.stderr.write(`error: ${notFound.length} of ${all.length} notifications were not found (not yours, or already gone): ${notFound.join(", ")}. The others were applied.
|
|
105
105
|
`);
|
|
106
|
-
const { getExitCode } = await import("./exit-codes-
|
|
106
|
+
const { getExitCode } = await import("./exit-codes-CYQHN4NE.js");
|
|
107
107
|
process.exit(getExitCode(notFoundError));
|
|
108
108
|
}
|
|
109
109
|
};
|
|
@@ -222,7 +222,7 @@ var notificationsCommand = defineCommand({
|
|
|
222
222
|
meta: { name: "notification", description: DESCRIPTIONS.notification },
|
|
223
223
|
subCommands: { list: listCmd, count: countCmd, read: readCmd, "read-all": readAllCmd, archive: archiveCmd, unarchive: unarchiveCmd },
|
|
224
224
|
async run() {
|
|
225
|
-
const { showHelp } = await import("./examples-
|
|
225
|
+
const { showHelp } = await import("./examples-ICAGL2S5.js");
|
|
226
226
|
await showHelp(notificationsCommand, ["curviate", "notification"]);
|
|
227
227
|
}
|
|
228
228
|
});
|
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import {
|
|
3
3
|
resolveMemberOrMeProviderId
|
|
4
|
-
} from "./chunk-
|
|
5
|
-
import {
|
|
6
|
-
AttachError,
|
|
7
|
-
readAttachment,
|
|
8
|
-
toAttachmentPayload
|
|
9
|
-
} from "./chunk-5I6JJJIV.js";
|
|
4
|
+
} from "./chunk-YGNDS4CW.js";
|
|
10
5
|
import {
|
|
11
6
|
AS_ACCOUNT,
|
|
12
7
|
BUDGET,
|
|
13
8
|
TARGET
|
|
14
9
|
} from "./chunk-Q3ZPRFUX.js";
|
|
15
10
|
import "./chunk-UEAX6KUB.js";
|
|
11
|
+
import {
|
|
12
|
+
AttachError,
|
|
13
|
+
readAttachment,
|
|
14
|
+
toAttachmentPayload
|
|
15
|
+
} from "./chunk-VHNF6OZD.js";
|
|
16
16
|
import {
|
|
17
17
|
requireAccount
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-QFUZCTD7.js";
|
|
19
19
|
import {
|
|
20
20
|
buildPreviewOutput
|
|
21
21
|
} from "./chunk-TCUYH5GO.js";
|
|
@@ -27,7 +27,7 @@ import {
|
|
|
27
27
|
readablePage,
|
|
28
28
|
rejectPaginationModifiersWithoutAll,
|
|
29
29
|
streamAll
|
|
30
|
-
} from "./chunk-
|
|
30
|
+
} from "./chunk-XPQP2FZX.js";
|
|
31
31
|
import {
|
|
32
32
|
renderError,
|
|
33
33
|
renderSuccess,
|
|
@@ -37,7 +37,7 @@ import {
|
|
|
37
37
|
import {
|
|
38
38
|
createClient,
|
|
39
39
|
resolveEffectiveConfig
|
|
40
|
-
} from "./chunk-
|
|
40
|
+
} from "./chunk-N7UA24IK.js";
|
|
41
41
|
import {
|
|
42
42
|
GLOBAL_FLAGS,
|
|
43
43
|
READ_SINGLE_FLAGS,
|
|
@@ -47,11 +47,11 @@ import {
|
|
|
47
47
|
} from "./chunk-RYWWSZUH.js";
|
|
48
48
|
import {
|
|
49
49
|
DESCRIPTIONS
|
|
50
|
-
} from "./chunk-
|
|
50
|
+
} from "./chunk-FBBZVIFJ.js";
|
|
51
51
|
import {
|
|
52
52
|
resolveTextOrStdin
|
|
53
53
|
} from "./chunk-ZYURL5VK.js";
|
|
54
|
-
import "./chunk-
|
|
54
|
+
import "./chunk-QW5K5DTC.js";
|
|
55
55
|
|
|
56
56
|
// src/commands/post.ts
|
|
57
57
|
import { defineCommand } from "citty";
|
|
@@ -89,7 +89,7 @@ function normalizeAttachPaths(attach) {
|
|
|
89
89
|
async function handleSdkError(err, outOpts, out) {
|
|
90
90
|
const { CurviateError } = await import("@curviate/sdk");
|
|
91
91
|
if (err instanceof CurviateError) {
|
|
92
|
-
const { getExitCode } = await import("./exit-codes-
|
|
92
|
+
const { getExitCode } = await import("./exit-codes-CYQHN4NE.js");
|
|
93
93
|
renderError(err, outOpts, out);
|
|
94
94
|
process.exit(getExitCode(err));
|
|
95
95
|
}
|