@lazehq/cli 0.1.55 → 0.1.56
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/laze.mjs +25 -8
- package/package.json +1 -1
package/dist/laze.mjs
CHANGED
|
@@ -35777,7 +35777,7 @@ function flagText({
|
|
|
35777
35777
|
}
|
|
35778
35778
|
|
|
35779
35779
|
// src/rules/cli-version.rules.ts
|
|
35780
|
-
var STAMPED = "0.1.
|
|
35780
|
+
var STAMPED = "0.1.56";
|
|
35781
35781
|
function cliVersionOf({ stamped = STAMPED } = {}) {
|
|
35782
35782
|
return stamped.startsWith("__") ? "dev" : stamped;
|
|
35783
35783
|
}
|
|
@@ -59246,8 +59246,11 @@ var markReadInputSchema = markReadInputSchemaDefinition;
|
|
|
59246
59246
|
var markUnreadInputSchemaDefinition = external_exports.object({
|
|
59247
59247
|
workspaceId: workspaceIdSchema,
|
|
59248
59248
|
channelId: idSchema4,
|
|
59249
|
-
/**
|
|
59250
|
-
|
|
59249
|
+
/**
|
|
59250
|
+
* The message to read again from: the marker moves to just before it. Absent: the last
|
|
59251
|
+
* message that counts as unread for the reader, and the marker never moves forward.
|
|
59252
|
+
*/
|
|
59253
|
+
seq: external_exports.number().int().positive().optional()
|
|
59251
59254
|
});
|
|
59252
59255
|
var markUnreadInputSchema = markUnreadInputSchemaDefinition;
|
|
59253
59256
|
var searchInputSchemaDefinition = external_exports.object({
|
|
@@ -59539,7 +59542,15 @@ var draftSchemaDefinition = external_exports.object({
|
|
|
59539
59542
|
reachable: external_exports.boolean()
|
|
59540
59543
|
});
|
|
59541
59544
|
var draftSchema = draftSchemaDefinition;
|
|
59542
|
-
var
|
|
59545
|
+
var clearedDraftSchemaDefinition = external_exports.object({
|
|
59546
|
+
channelId: idSchema4,
|
|
59547
|
+
threadRootId: idSchema4.nullable(),
|
|
59548
|
+
savedAt: external_exports.iso.datetime()
|
|
59549
|
+
});
|
|
59550
|
+
var draftListSchemaDefinition = external_exports.object({
|
|
59551
|
+
drafts: external_exports.array(draftSchemaDefinition),
|
|
59552
|
+
cleared: external_exports.array(clearedDraftSchemaDefinition).default([])
|
|
59553
|
+
});
|
|
59543
59554
|
var draftListSchema = draftListSchemaDefinition;
|
|
59544
59555
|
var saveDraftInputSchemaDefinition = external_exports.object({
|
|
59545
59556
|
workspaceId: workspaceIdSchema,
|
|
@@ -60605,7 +60616,9 @@ var readMarkerMovedPayloadSchemaDefinition = external_exports.object({
|
|
|
60605
60616
|
seq: external_exports.number().int().nonnegative(),
|
|
60606
60617
|
at: external_exports.iso.datetime(),
|
|
60607
60618
|
/** A mirror moved it to match its source, so the source needs no telling. */
|
|
60608
|
-
fromSource: external_exports.boolean().default(false)
|
|
60619
|
+
fromSource: external_exports.boolean().default(false),
|
|
60620
|
+
/** The reader marked it unread: a Laze-side change the source never hears of. */
|
|
60621
|
+
markedUnread: external_exports.boolean().optional()
|
|
60609
60622
|
});
|
|
60610
60623
|
var realtimePublicationSchemaDefinition = external_exports.discriminatedUnion("type", [
|
|
60611
60624
|
external_exports.object({
|
|
@@ -68037,6 +68050,11 @@ var slackMoveByKeyInputSchemaDefinition = slackMoveInputSchema.omit(noWorkspace)
|
|
|
68037
68050
|
var positiveInt4 = external_exports.coerce.number().int().positive();
|
|
68038
68051
|
var slackConfig = Config.define((c) => ({
|
|
68039
68052
|
publicBaseUrl,
|
|
68053
|
+
/**
|
|
68054
|
+
* The origin Slack sends people back to after consent, when it is not `publicBaseUrl`: the
|
|
68055
|
+
* origin the Slack app lists as its redirect URL during a domain move (docs/ops/domains.md).
|
|
68056
|
+
*/
|
|
68057
|
+
oauthBaseUrl: c.env("SLACK_OAUTH_BASE_URL", external_exports.url().optional()),
|
|
68040
68058
|
/** The Web API base; methods are `${apiUrl}/<method>`. */
|
|
68041
68059
|
apiUrl: c.env("SLACK_API_URL", external_exports.url().default("https://slack.com/api")),
|
|
68042
68060
|
/** Slack's install and sign-in consent page. */
|
|
@@ -79371,7 +79389,7 @@ var CHAT_ACTIONS_USAGE = `Usage:
|
|
|
79371
79389
|
laze message restore <messageId> put a scrubbed secret back in your message (people)
|
|
79372
79390
|
laze pins <channel> a conversation's pinned messages
|
|
79373
79391
|
laze channel read <channel> [--seq <n>] mark it read, up to a message or to the newest
|
|
79374
|
-
laze channel unread <channel> --seq <n>
|
|
79392
|
+
laze channel unread <channel> [--seq <n>] mark it unread from a message, or its last one
|
|
79375
79393
|
laze files <channel> [--before <fileId>] [--limit <n>] its files, newest first
|
|
79376
79394
|
laze file link <fileId> [--variant original|thumbnail|poster|preview] [--download]
|
|
79377
79395
|
laze file rename <fileId> <name> rename a file you posted
|
|
@@ -79549,10 +79567,9 @@ var channelRead = async ({ context, args, client }) => {
|
|
|
79549
79567
|
};
|
|
79550
79568
|
var channelUnread = async ({ context, args, client }) => {
|
|
79551
79569
|
const seq = numberFlag(args, "seq");
|
|
79552
|
-
if (!seq) throw new CliUsageError(CHAT_ACTIONS_USAGE);
|
|
79553
79570
|
const answer5 = await client.post(CHAT_KEY_PATHS.markUnread, {
|
|
79554
79571
|
channel: wordAt(args, 2),
|
|
79555
|
-
seq
|
|
79572
|
+
...seq !== void 0 && { seq }
|
|
79556
79573
|
});
|
|
79557
79574
|
print6({ context, args, answer: answer5, text: (it) => `Read up to ${it.lastReadSeq}.
|
|
79558
79575
|
` });
|
package/package.json
CHANGED