@lazehq/cli 0.1.93 → 0.1.94
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 +467 -60
- package/package.json +1 -1
package/dist/laze.mjs
CHANGED
|
@@ -37171,7 +37171,7 @@ function flagText({
|
|
|
37171
37171
|
}
|
|
37172
37172
|
|
|
37173
37173
|
// src/rules/cli-version.rules.ts
|
|
37174
|
-
var STAMPED = "0.1.
|
|
37174
|
+
var STAMPED = "0.1.94";
|
|
37175
37175
|
function cliVersionOf({ stamped = STAMPED } = {}) {
|
|
37176
37176
|
return stamped.startsWith("__") ? "dev" : stamped;
|
|
37177
37177
|
}
|
|
@@ -60229,7 +60229,8 @@ var createVaultConnectionInputSchemaDefinition = external_exports.object({
|
|
|
60229
60229
|
name: vaultConnectionNameSchema,
|
|
60230
60230
|
label: external_exports.string().trim().min(1).max(120),
|
|
60231
60231
|
keychain: vaultOwnedKeychainSchema,
|
|
60232
|
-
|
|
60232
|
+
/** Left out, the connection starts at its connector tier's level (connector-tiers.feature). */
|
|
60233
|
+
sensitivity: vaultSensitivitySchema.optional(),
|
|
60233
60234
|
rules: external_exports.string().max(2e3).default(""),
|
|
60234
60235
|
approverUserIds: external_exports.array(external_exports.string().min(1)).default([]),
|
|
60235
60236
|
maxLeaseSeconds: external_exports.number().int().positive().max(VAULT_MAX_LEASE_SECONDS).nullable().default(null),
|
|
@@ -60355,6 +60356,8 @@ var vaultWaitingShareSchemaDefinition = external_exports.object({
|
|
|
60355
60356
|
keyLabel: external_exports.string(),
|
|
60356
60357
|
/** The teammate the share is for. */
|
|
60357
60358
|
recipientUserId: external_exports.string().min(1),
|
|
60359
|
+
/** The key's owner, who answers the share. */
|
|
60360
|
+
ownerUserId: external_exports.string().min(1),
|
|
60358
60361
|
/** The agent that asked the share; null when it was asked from the CLI. */
|
|
60359
60362
|
agentId: external_exports.string().nullable().default(null),
|
|
60360
60363
|
expiresAt: external_exports.iso.datetime().nullable(),
|
|
@@ -60656,7 +60659,7 @@ var vaultConnectionUseSchemaDefinition = external_exports.object({
|
|
|
60656
60659
|
requestId: external_exports.string().nullable().default(null),
|
|
60657
60660
|
leaseId: external_exports.string().nullable().default(null),
|
|
60658
60661
|
origin: vaultUseOriginSchema.nullable().default(null),
|
|
60659
|
-
/** How a
|
|
60662
|
+
/** How a read happened: `page` (Reveal), `own_secret` (the CLI) or `laze` (Laze's own code). */
|
|
60660
60663
|
via: external_exports.string().nullable().default(null),
|
|
60661
60664
|
/** On a share or a tier change: the person it named, the new tier, and the proof used. */
|
|
60662
60665
|
change: external_exports.object({
|
|
@@ -60693,6 +60696,49 @@ var saveGithubInstallationInputSchemaDefinition = external_exports.object({
|
|
|
60693
60696
|
var vaultJudgeStatusSchemaDefinition = external_exports.object({ configured: external_exports.boolean() });
|
|
60694
60697
|
var vaultJudgeStatusSchema = vaultJudgeStatusSchemaDefinition;
|
|
60695
60698
|
var vaultLimitSubjectSchema = external_exports.string().regex(/^[a-z0-9-]+(\.[a-z]+)?$/);
|
|
60699
|
+
var vaultTierSchema = external_exports.enum(["sensitive", "standard", "low_risk"]);
|
|
60700
|
+
var vaultTierSettingSchemaDefinition = external_exports.object({
|
|
60701
|
+
tier: vaultTierSchema,
|
|
60702
|
+
defaultLevel: vaultSensitivitySchema,
|
|
60703
|
+
/** Members cannot set a connection of this tier below its default, checked at every use. */
|
|
60704
|
+
enforced: external_exports.boolean()
|
|
60705
|
+
});
|
|
60706
|
+
var vaultTierSettingSchema = vaultTierSettingSchemaDefinition;
|
|
60707
|
+
var vaultTierSubjectSchemaDefinition = external_exports.object({
|
|
60708
|
+
subject: vaultLimitSubjectSchema,
|
|
60709
|
+
label: external_exports.string(),
|
|
60710
|
+
tier: vaultTierSchema,
|
|
60711
|
+
/** The tier Laze puts it in; null for a rule an admin added. */
|
|
60712
|
+
builtInTier: vaultTierSchema.nullable(),
|
|
60713
|
+
reason: external_exports.string()
|
|
60714
|
+
});
|
|
60715
|
+
var vaultTierSubjectSchema = vaultTierSubjectSchemaDefinition;
|
|
60716
|
+
var vaultTierPolicySchemaDefinition = external_exports.object({
|
|
60717
|
+
tiers: external_exports.array(vaultTierSettingSchema),
|
|
60718
|
+
subjects: external_exports.array(vaultTierSubjectSchema)
|
|
60719
|
+
});
|
|
60720
|
+
var vaultTierPolicySchema = vaultTierPolicySchemaDefinition;
|
|
60721
|
+
var setVaultTierSettingInputSchemaDefinition = external_exports.object({
|
|
60722
|
+
workspaceId: external_exports.string().min(1),
|
|
60723
|
+
tier: vaultTierSchema,
|
|
60724
|
+
defaultLevel: vaultSensitivitySchema,
|
|
60725
|
+
enforced: external_exports.boolean(),
|
|
60726
|
+
/** A passkey proof, needed when the change lowers a tier that started at Always ask or above. */
|
|
60727
|
+
reauthToken: external_exports.string().min(1).max(200).optional()
|
|
60728
|
+
});
|
|
60729
|
+
var setVaultTierSettingInputSchema = setVaultTierSettingInputSchemaDefinition;
|
|
60730
|
+
var setVaultSubjectTierInputSchemaDefinition = external_exports.object({
|
|
60731
|
+
workspaceId: external_exports.string().min(1),
|
|
60732
|
+
subject: vaultLimitSubjectSchema.optional(),
|
|
60733
|
+
serverUrl: external_exports.string().trim().min(3).max(500).optional(),
|
|
60734
|
+
label: external_exports.string().trim().min(1).max(80).optional(),
|
|
60735
|
+
tier: vaultTierSchema.nullable(),
|
|
60736
|
+
/** A passkey proof, needed when the move lowers a connector from Always ask or above. */
|
|
60737
|
+
reauthToken: external_exports.string().min(1).max(200).optional()
|
|
60738
|
+
}).refine((input2) => Boolean(input2.subject) !== Boolean(input2.serverUrl), {
|
|
60739
|
+
message: "Name a subject or a server address, not both"
|
|
60740
|
+
});
|
|
60741
|
+
var setVaultSubjectTierInputSchema = setVaultSubjectTierInputSchemaDefinition;
|
|
60696
60742
|
var vaultLevelLimitSchemaDefinition = external_exports.object({
|
|
60697
60743
|
subject: vaultLimitSubjectSchema,
|
|
60698
60744
|
most: vaultSensitivitySchema,
|
|
@@ -60791,7 +60837,13 @@ var vaultCoreTrpc = defineTrpcContract("vault").mutation("createConnection").wit
|
|
|
60791
60837
|
})
|
|
60792
60838
|
).withOutput(vaultSealedMaterialSchema).query("getSealedApproval").withInput(external_exports.object({ ...workspaceInput.shape, requestId: external_exports.string().min(1) })).withOutput(vaultSealedApprovalSchema).mutation("answerSealedApproval").withInput(answerSealedApprovalInputSchema).withOutput(vaultApprovalRequestSchema).mutation("compareSecret").withInput(compareVaultSecretInputSchema).withOutput(vaultSecretComparisonSchema).mutation("replaceSecretValue").withInput(replaceVaultSecretValueInputSchema).withOutput(vaultConnectionSchema).mutation("savePastedSecret").withInput(external_exports.object({ ...workspaceInput.shape, ...saveVaultPastedSecretBodySchema.shape })).withOutput(vaultPastedSecretSavedSchema).build();
|
|
60793
60839
|
var vaultAgentRuleTrpc = defineTrpcContract("vault").query("listAgentRules").withInput(listVaultAgentRulesInputSchema).withOutput(external_exports.array(vaultAgentRuleEntrySchema)).mutation("setAgentRule").withInput(setVaultAgentRuleInputSchema).withOutput(external_exports.array(vaultAgentRuleEntrySchema)).build();
|
|
60794
|
-
var
|
|
60840
|
+
var vaultTierTrpc = defineTrpcContract("vault").query("tierPolicy").withInput(workspaceInput).withOutput(vaultTierPolicySchema).mutation("setTierSetting").withInput(setVaultTierSettingInputSchema).withOutput(vaultTierPolicySchema).mutation("setSubjectTier").withInput(setVaultSubjectTierInputSchema).withOutput(vaultTierPolicySchema).build();
|
|
60841
|
+
var vaultTrpc = joinTrpcContracts(
|
|
60842
|
+
"vault",
|
|
60843
|
+
vaultCoreTrpc,
|
|
60844
|
+
vaultAgentRuleTrpc,
|
|
60845
|
+
vaultTierTrpc
|
|
60846
|
+
);
|
|
60795
60847
|
|
|
60796
60848
|
// ../../modules/vault/contract/src/vault.config.ts
|
|
60797
60849
|
var positiveInt = external_exports.coerce.number().int().positive();
|
|
@@ -60957,6 +61009,19 @@ var vaultShareSettledPayloadSchemaDefinition = external_exports.object({
|
|
|
60957
61009
|
resolutionNote: external_exports.string().default(""),
|
|
60958
61010
|
at: external_exports.iso.datetime()
|
|
60959
61011
|
});
|
|
61012
|
+
var vaultShareWaitingPayloadSchemaDefinition = external_exports.object({
|
|
61013
|
+
workspaceId: external_exports.string().min(1),
|
|
61014
|
+
grantId: external_exports.string().min(1),
|
|
61015
|
+
ownerUserId: external_exports.string().min(1),
|
|
61016
|
+
at: external_exports.iso.datetime()
|
|
61017
|
+
});
|
|
61018
|
+
|
|
61019
|
+
// ../../modules/vault/contract/src/vault-tiers.ts
|
|
61020
|
+
var VAULT_TIER_BUILT_IN_LEVELS = {
|
|
61021
|
+
sensitive: "ask",
|
|
61022
|
+
standard: "checked",
|
|
61023
|
+
low_risk: "auto"
|
|
61024
|
+
};
|
|
60960
61025
|
|
|
60961
61026
|
// ../../modules/vault/contract/src/vault-oauth.ts
|
|
60962
61027
|
var tokenFieldsSchema = external_exports.object({
|
|
@@ -61184,6 +61249,12 @@ var vaultConnectionReconnectedPayloadSchemaDefinition = external_exports.object(
|
|
|
61184
61249
|
outcome: external_exports.enum(["reconnected", "deleted"]),
|
|
61185
61250
|
at: external_exports.iso.datetime()
|
|
61186
61251
|
});
|
|
61252
|
+
var vaultConnectionDeletedPayloadSchemaDefinition = external_exports.object({
|
|
61253
|
+
workspaceId: external_exports.string().min(1),
|
|
61254
|
+
connectionId: external_exports.string().min(1),
|
|
61255
|
+
kind: external_exports.string().min(1),
|
|
61256
|
+
at: external_exports.iso.datetime()
|
|
61257
|
+
});
|
|
61187
61258
|
var vaultConnectionSecretSetPayloadSchemaDefinition = external_exports.object({
|
|
61188
61259
|
workspaceId: external_exports.string().min(1),
|
|
61189
61260
|
connectionId: external_exports.string().min(1),
|
|
@@ -61975,6 +62046,9 @@ var externalImageQuerySchemaDefinition = external_exports.object({
|
|
|
61975
62046
|
u: external_exports.string().min(1).max(2e3),
|
|
61976
62047
|
sig: external_exports.string().max(100).default("")
|
|
61977
62048
|
});
|
|
62049
|
+
var noticeAvatarParamsSchemaDefinition = external_exports.object({
|
|
62050
|
+
token: external_exports.string().min(1).max(4e3).regex(/^[A-Za-z0-9_-]+\.[A-Za-z0-9_-]+\.png$/)
|
|
62051
|
+
});
|
|
61978
62052
|
|
|
61979
62053
|
// ../../modules/chat/contract/src/chat.layout.ts
|
|
61980
62054
|
var LAYOUT_BLOCKS_MAX = 50;
|
|
@@ -62064,6 +62138,12 @@ var layoutFileSchemaDefinition = external_exports.object({
|
|
|
62064
62138
|
path: external_exports.string().max(600).regex(/^\/api\/[^\s]*$/),
|
|
62065
62139
|
image: external_exports.boolean()
|
|
62066
62140
|
});
|
|
62141
|
+
var layoutQuotedSchemaDefinition = external_exports.object({
|
|
62142
|
+
originKey: external_exports.string().min(1).max(200),
|
|
62143
|
+
channelId: external_exports.string().min(1).max(100).nullable(),
|
|
62144
|
+
seq: external_exports.number().int().positive().nullable(),
|
|
62145
|
+
imageId: external_exports.string().min(1).max(100).nullable()
|
|
62146
|
+
});
|
|
62067
62147
|
var layoutAttachmentSchemaDefinition = external_exports.object({
|
|
62068
62148
|
type: external_exports.literal("attachment"),
|
|
62069
62149
|
/** A list item draws its fields as a table; a shared message is a quoted message. */
|
|
@@ -62086,7 +62166,9 @@ var layoutAttachmentSchemaDefinition = external_exports.object({
|
|
|
62086
62166
|
footer: markdown,
|
|
62087
62167
|
footerIcon: imageUrl.nullable(),
|
|
62088
62168
|
/** The attachment's time, a `<!date^...>` token the reader formats; "" for none. */
|
|
62089
|
-
ts: markdown
|
|
62169
|
+
ts: markdown,
|
|
62170
|
+
/** A quote's original by its source key; Laze adds its place and picture when it holds it. */
|
|
62171
|
+
quoted: layoutQuotedSchemaDefinition.optional()
|
|
62090
62172
|
});
|
|
62091
62173
|
var layoutPartSchemaDefinition = external_exports.union([
|
|
62092
62174
|
layoutBlockSchemaDefinition,
|
|
@@ -62702,6 +62784,14 @@ var scheduleRunCardSchemaDefinition = external_exports.object({
|
|
|
62702
62784
|
prompt: external_exports.string().max(SCHEDULE_RUN_PROMPT_MAX)
|
|
62703
62785
|
});
|
|
62704
62786
|
var welcomeCardActionSchema = external_exports.enum(["slides", "connect_agent", "new_channel", "invite"]);
|
|
62787
|
+
var welcomeCollabSchemaDefinition = external_exports.object({
|
|
62788
|
+
/** The open invitation it sends again, by the invited address's name; null opens the dialog. */
|
|
62789
|
+
invite: external_exports.object({ inviteId: external_exports.string().min(1).max(200), name: external_exports.string().min(1).max(200) }).nullable(),
|
|
62790
|
+
/** The invitation went out again from the card. */
|
|
62791
|
+
sent: external_exports.boolean(),
|
|
62792
|
+
/** Closed by its person: it shows to no one. */
|
|
62793
|
+
dismissed: external_exports.boolean()
|
|
62794
|
+
});
|
|
62705
62795
|
var welcomeCardSchemaDefinition = external_exports.object({
|
|
62706
62796
|
type: external_exports.literal("welcome"),
|
|
62707
62797
|
agentId: idSchema4,
|
|
@@ -62710,7 +62800,9 @@ var welcomeCardSchemaDefinition = external_exports.object({
|
|
|
62710
62800
|
/** `welcome`: slides, connect and new channel; `invite`: the follow-up after the slides. */
|
|
62711
62801
|
step: external_exports.enum(["welcome", "invite"]),
|
|
62712
62802
|
/** The buttons already pressed that run once. */
|
|
62713
|
-
pressed: external_exports.array(welcomeCardActionSchema).max(4)
|
|
62803
|
+
pressed: external_exports.array(welcomeCardActionSchema).max(4),
|
|
62804
|
+
/** Set on the boxed invite card that follows the slides. */
|
|
62805
|
+
collab: welcomeCollabSchemaDefinition.optional()
|
|
62714
62806
|
});
|
|
62715
62807
|
var messageCardSchemaDefinition = external_exports.discriminatedUnion("type", [
|
|
62716
62808
|
attentionCardSchemaDefinition,
|
|
@@ -62838,7 +62930,9 @@ var messageSchemaDefinition = external_exports.object({
|
|
|
62838
62930
|
/** On the sender's post answer only: who the mentions did not reach, being outside it. */
|
|
62839
62931
|
notInChannel: external_exports.array(notInChannelSchemaDefinition).optional(),
|
|
62840
62932
|
/** An agent's reply: the feed cards it added or changed in that turn; absent means none. */
|
|
62841
|
-
feedRefs: external_exports.array(messageFeedRefSchemaDefinition).max(MESSAGE_FEED_REFS_MAX).optional()
|
|
62933
|
+
feedRefs: external_exports.array(messageFeedRefSchemaDefinition).max(MESSAGE_FEED_REFS_MAX).optional(),
|
|
62934
|
+
/** On an afterChange page and in realtime: its newest change number in this conversation. */
|
|
62935
|
+
changeSeq: external_exports.number().int().nonnegative().optional()
|
|
62842
62936
|
});
|
|
62843
62937
|
var messageSchema = messageSchemaDefinition;
|
|
62844
62938
|
var departedPersonSchemaDefinition = external_exports.object({
|
|
@@ -62946,10 +63040,24 @@ var browsableChannelSchemaDefinition = external_exports.object({
|
|
|
62946
63040
|
external: external_exports.boolean().optional()
|
|
62947
63041
|
});
|
|
62948
63042
|
var browsableChannelSchema = browsableChannelSchemaDefinition;
|
|
63043
|
+
var removedMessageSchemaDefinition = external_exports.object({
|
|
63044
|
+
id: external_exports.string(),
|
|
63045
|
+
/** Its newest change number in this conversation: it was moved out or erased. */
|
|
63046
|
+
changeSeq: external_exports.number().int().nonnegative()
|
|
63047
|
+
});
|
|
62949
63048
|
var historyPageSchemaDefinition = external_exports.object({
|
|
62950
63049
|
messages: external_exports.array(messageSchemaDefinition),
|
|
62951
63050
|
hasOlder: external_exports.boolean(),
|
|
62952
|
-
hasNewer: external_exports.boolean()
|
|
63051
|
+
hasNewer: external_exports.boolean(),
|
|
63052
|
+
/**
|
|
63053
|
+
* The afterChange that reads what changed after this page, so nothing is skipped. Spec:
|
|
63054
|
+
* modules/chat/specs/change-sync.feature. Absent from servers before ADR-202 M2.
|
|
63055
|
+
*/
|
|
63056
|
+
nextChange: external_exports.number().int().nonnegative().optional(),
|
|
63057
|
+
/** On an afterChange page: messages that changed but are no longer in this conversation. */
|
|
63058
|
+
removed: external_exports.array(removedMessageSchemaDefinition).optional(),
|
|
63059
|
+
/** afterChange is older than the change log keeps: reload the conversation by seq. */
|
|
63060
|
+
resync: external_exports.literal(true).optional()
|
|
62953
63061
|
});
|
|
62954
63062
|
var historyPageSchema = historyPageSchemaDefinition;
|
|
62955
63063
|
var threadSchemaDefinition = external_exports.object({
|
|
@@ -63160,8 +63268,19 @@ var historyInputSchemaDefinition = external_exports.object({
|
|
|
63160
63268
|
before: external_exports.number().int().positive().optional(),
|
|
63161
63269
|
after: external_exports.number().int().nonnegative().optional(),
|
|
63162
63270
|
around: external_exports.number().int().positive().optional(),
|
|
63271
|
+
/**
|
|
63272
|
+
* Messages with a change numbered above this one, by their newest change, deleted ones
|
|
63273
|
+
* included; never with before, after or around. Spec: modules/chat/specs/change-sync.feature.
|
|
63274
|
+
*/
|
|
63275
|
+
afterChange: external_exports.number().int().nonnegative().optional(),
|
|
63163
63276
|
limit: external_exports.number().int().min(1).max(HISTORY_PAGE_MAX).default(50)
|
|
63164
|
-
})
|
|
63277
|
+
}).refine(
|
|
63278
|
+
(input2) => input2.afterChange === void 0 || input2.before === void 0 && input2.after === void 0 && input2.around === void 0,
|
|
63279
|
+
{
|
|
63280
|
+
message: "afterChange reads changes; it takes no before, after or around",
|
|
63281
|
+
path: ["afterChange"]
|
|
63282
|
+
}
|
|
63283
|
+
);
|
|
63165
63284
|
var historyInputSchema = historyInputSchemaDefinition;
|
|
63166
63285
|
var postMessageInputSchemaDefinition = external_exports.object({
|
|
63167
63286
|
workspaceId: workspaceIdSchema,
|
|
@@ -63261,6 +63380,7 @@ var postMirroredInputSchemaDefinition = external_exports.object({
|
|
|
63261
63380
|
/** Files the mirror stored in this workspace's files, attached to the message. */
|
|
63262
63381
|
fileIds: external_exports.array(idSchema4).max(10).default([])
|
|
63263
63382
|
});
|
|
63383
|
+
var postMirroredInputSchema = postMirroredInputSchemaDefinition;
|
|
63264
63384
|
var MIRROR_BATCH_MAX = 500;
|
|
63265
63385
|
var postMirroredBatchInputSchemaDefinition = external_exports.object({
|
|
63266
63386
|
workspaceId: workspaceIdSchema,
|
|
@@ -63831,6 +63951,7 @@ var draftFileSchemaDefinition = external_exports.object({
|
|
|
63831
63951
|
label: external_exports.string().min(1).max(300),
|
|
63832
63952
|
attachmentId: idSchema4
|
|
63833
63953
|
});
|
|
63954
|
+
var draftFileSchema = draftFileSchemaDefinition;
|
|
63834
63955
|
var draftSchemaDefinition = external_exports.object({
|
|
63835
63956
|
channelId: idSchema4,
|
|
63836
63957
|
threadRootId: idSchema4.nullable(),
|
|
@@ -63868,6 +63989,8 @@ var draftSavedSchema = draftSavedSchemaDefinition;
|
|
|
63868
63989
|
var cardDraftSchemaDefinition = external_exports.object({
|
|
63869
63990
|
cardId: idSchema4,
|
|
63870
63991
|
text: external_exports.string().max(MESSAGE_BODY_MAX),
|
|
63992
|
+
/** The chips of files the comment's composer finished uploading; none from an older client. */
|
|
63993
|
+
files: external_exports.array(draftFileSchemaDefinition).max(10).default([]),
|
|
63871
63994
|
/** The writer's clock when they typed it; the newest save wins. */
|
|
63872
63995
|
savedAt: external_exports.iso.datetime()
|
|
63873
63996
|
});
|
|
@@ -64047,6 +64170,12 @@ var apnsDeviceSchemaDefinition = external_exports.object({
|
|
|
64047
64170
|
}).strict();
|
|
64048
64171
|
var apnsStatusSchemaDefinition = external_exports.object({ available: external_exports.boolean(), bundleId: external_exports.string().min(1) }).strict();
|
|
64049
64172
|
var apnsStatusSchema = apnsStatusSchemaDefinition;
|
|
64173
|
+
var apnsSenderSchemaDefinition = external_exports.object({
|
|
64174
|
+
id: external_exports.string().min(1).max(200),
|
|
64175
|
+
name: external_exports.string().max(120),
|
|
64176
|
+
image: external_exports.url().max(4096)
|
|
64177
|
+
}).strict();
|
|
64178
|
+
var apnsSenderSchema = apnsSenderSchemaDefinition;
|
|
64050
64179
|
var apnsPayloadSchemaDefinition = external_exports.object({
|
|
64051
64180
|
aps: external_exports.object({
|
|
64052
64181
|
alert: external_exports.object({ title: external_exports.string().min(1).max(120), body: external_exports.string().max(400) }).optional(),
|
|
@@ -64056,7 +64185,9 @@ var apnsPayloadSchemaDefinition = external_exports.object({
|
|
|
64056
64185
|
"thread-id": external_exports.string().min(1).max(200).optional(),
|
|
64057
64186
|
category: external_exports.literal(APNS_APPROVAL_CATEGORY).optional(),
|
|
64058
64187
|
"interruption-level": external_exports.enum(["passive", "active", "time-sensitive"]).optional(),
|
|
64059
|
-
"content-available": external_exports.literal(1).optional()
|
|
64188
|
+
"content-available": external_exports.literal(1).optional(),
|
|
64189
|
+
/** The app's notification service may add the sender's picture before it shows. */
|
|
64190
|
+
"mutable-content": external_exports.literal(1).optional()
|
|
64060
64191
|
}).strict(),
|
|
64061
64192
|
workspaceId: external_exports.string().min(1),
|
|
64062
64193
|
link: external_exports.string().startsWith("laze://").max(2048).optional(),
|
|
@@ -64081,7 +64212,9 @@ var apnsPayloadSchemaDefinition = external_exports.object({
|
|
|
64081
64212
|
/** A read push: everything in the conversation (or thread) up to this seq is read. */
|
|
64082
64213
|
readUpToSeq: external_exports.number().int().nonnegative().optional(),
|
|
64083
64214
|
/** A read or retraction push: the person's Notifications total, as alert pushes carry it. */
|
|
64084
|
-
badge: external_exports.number().int().nonnegative().optional()
|
|
64215
|
+
badge: external_exports.number().int().nonnegative().optional(),
|
|
64216
|
+
/** Who a message alert is from, for a communication notification with their picture. */
|
|
64217
|
+
sender: apnsSenderSchemaDefinition.optional()
|
|
64085
64218
|
}).strict();
|
|
64086
64219
|
|
|
64087
64220
|
// ../../modules/notification/contract/src/web-push.ts
|
|
@@ -64122,7 +64255,9 @@ var webPushPayloadSchemaDefinition = external_exports.object({
|
|
|
64122
64255
|
url: external_exports.string().min(1).max(2048),
|
|
64123
64256
|
tag: external_exports.string().min(1).max(200),
|
|
64124
64257
|
/** Shown without the system sound, such as for a message a Slack mirror brought in. */
|
|
64125
|
-
silent: external_exports.boolean().optional()
|
|
64258
|
+
silent: external_exports.boolean().optional(),
|
|
64259
|
+
/** The notification's picture, a path on this deployment; the Laze icon without one. */
|
|
64260
|
+
icon: external_exports.string().startsWith("/").max(4096).optional()
|
|
64126
64261
|
}).strict();
|
|
64127
64262
|
var webPushPayloadSchema = webPushPayloadSchemaDefinition;
|
|
64128
64263
|
var requestWebPushDeliveryCommandSchemaDefinition = external_exports.object({
|
|
@@ -64324,6 +64459,10 @@ var noticeSenderSchemaDefinition = external_exports.object({
|
|
|
64324
64459
|
name: external_exports.string().max(120)
|
|
64325
64460
|
});
|
|
64326
64461
|
var noticeSenderSchema = noticeSenderSchemaDefinition;
|
|
64462
|
+
var noticeAvatarSchemaDefinition = external_exports.object({
|
|
64463
|
+
icon: external_exports.string().startsWith("/").max(4096),
|
|
64464
|
+
sender: external_exports.string().startsWith("/").max(4096)
|
|
64465
|
+
});
|
|
64327
64466
|
var messageNoticeSchema = external_exports.object({
|
|
64328
64467
|
workspaceId: workspaceIdSchema2,
|
|
64329
64468
|
userId: userIdSchema,
|
|
@@ -64350,7 +64489,9 @@ var messageNoticeSchema = external_exports.object({
|
|
|
64350
64489
|
/** An @channel or @here raised it, not the conversation's every-message level. */
|
|
64351
64490
|
broadcast: external_exports.boolean().optional(),
|
|
64352
64491
|
/** The person's Notifications count, from chat: the iPhone's icon badge shows it. */
|
|
64353
|
-
badge: external_exports.number().int().nonnegative().optional()
|
|
64492
|
+
badge: external_exports.number().int().nonnegative().optional(),
|
|
64493
|
+
/** Who it is from, as a picture; absent for a plain Laze channel, which shows the app icon. */
|
|
64494
|
+
avatar: noticeAvatarSchemaDefinition.optional()
|
|
64354
64495
|
});
|
|
64355
64496
|
var approvalNoticeSchema = external_exports.object({
|
|
64356
64497
|
workspaceId: workspaceIdSchema2,
|
|
@@ -64410,7 +64551,9 @@ var desktopPublicationSchemaDefinition = external_exports.object({
|
|
|
64410
64551
|
/** The message's place in its conversation, so reading past it closes the notification. */
|
|
64411
64552
|
seq: external_exports.number().int().nonnegative().optional(),
|
|
64412
64553
|
/** Shown without any sound, such as for a message a Slack mirror brought in. */
|
|
64413
|
-
silent: external_exports.boolean().optional()
|
|
64554
|
+
silent: external_exports.boolean().optional(),
|
|
64555
|
+
/** Who it is from, as a picture; the desktop app shows the app icon without one. */
|
|
64556
|
+
avatar: noticeAvatarSchemaDefinition.optional()
|
|
64414
64557
|
}).nullable(),
|
|
64415
64558
|
badge: external_exports.number().int().nonnegative(),
|
|
64416
64559
|
/** The tag of a notification to take back, such as one for a message since deleted. */
|
|
@@ -64597,7 +64740,9 @@ var heldPhonePushShape = {
|
|
|
64597
64740
|
broadcast: external_exports.boolean().optional(),
|
|
64598
64741
|
silent: external_exports.boolean().optional(),
|
|
64599
64742
|
feed: heldFeedPushSchema.optional(),
|
|
64600
|
-
burst: heldBurstPushSchema.optional()
|
|
64743
|
+
burst: heldBurstPushSchema.optional(),
|
|
64744
|
+
/** A message alert's sender, so a held alert still shows their picture. */
|
|
64745
|
+
sender: apnsSenderSchema.optional()
|
|
64601
64746
|
};
|
|
64602
64747
|
var phonePushHeldPayloadSchemaDefinition = external_exports.object({
|
|
64603
64748
|
workspaceId: external_exports.string().min(1),
|
|
@@ -64801,7 +64946,9 @@ var messageChangedPayloadSchemaDefinition = external_exports.object({
|
|
|
64801
64946
|
/** Members the message mentioned from outside were added, so its mentions now reach them. */
|
|
64802
64947
|
"mentioned",
|
|
64803
64948
|
/** A mirror is still waiting to send it to the source, or gave up. */
|
|
64804
|
-
"mirror_delivery"
|
|
64949
|
+
"mirror_delivery",
|
|
64950
|
+
/** A mirror put a reply that landed before its root under that root (ADR-202 §3). */
|
|
64951
|
+
"moved"
|
|
64805
64952
|
]),
|
|
64806
64953
|
/** Distinguishes two changes of one kind to one message. */
|
|
64807
64954
|
changeId: external_exports.string().min(1),
|
|
@@ -64842,6 +64989,8 @@ var readMarkerMovedPayloadSchemaDefinition = external_exports.object({
|
|
|
64842
64989
|
channelId: external_exports.string().min(1),
|
|
64843
64990
|
reader: chatActorSchema,
|
|
64844
64991
|
seq: external_exports.number().int().nonnegative(),
|
|
64992
|
+
/** The message at seq when the marker moved, as seq may be renumbered (ADR-202 §5). */
|
|
64993
|
+
messageId: external_exports.string().min(1).optional(),
|
|
64845
64994
|
at: external_exports.iso.datetime(),
|
|
64846
64995
|
/** A mirror moved it to match its source, so the source needs no telling. */
|
|
64847
64996
|
fromSource: external_exports.boolean().default(false),
|
|
@@ -64870,7 +65019,10 @@ var realtimePublicationSchemaDefinition = external_exports.discriminatedUnion("t
|
|
|
64870
65019
|
type: external_exports.literal("read_marker_moved"),
|
|
64871
65020
|
workspaceId: external_exports.string(),
|
|
64872
65021
|
channelId: external_exports.string(),
|
|
64873
|
-
|
|
65022
|
+
/** iOS 1.0 decodes it as a required Int: kept beside messageId (ADR-202 §5). */
|
|
65023
|
+
seq: external_exports.number().int(),
|
|
65024
|
+
/** The message the marker is at; absent at 0 and from servers before ADR-202 M2. */
|
|
65025
|
+
messageId: external_exports.string().optional()
|
|
64874
65026
|
}),
|
|
64875
65027
|
external_exports.object({
|
|
64876
65028
|
type: external_exports.literal("activity"),
|
|
@@ -64983,6 +65135,7 @@ var ChatNewChannelDialogSlot = chatUi.component("new-channel-dialog");
|
|
|
64983
65135
|
var ChatPeoplePickerSlot = chatUi.component("people-picker");
|
|
64984
65136
|
var ChatAddPeopleDialogSlot = chatUi.component("add-people-dialog");
|
|
64985
65137
|
var ChatHandoffComposerSlot = chatUi.component("handoff-composer");
|
|
65138
|
+
var ChatConversationsWithSlot = chatUi.component("conversations-with");
|
|
64986
65139
|
|
|
64987
65140
|
// ../../modules/chat/contract/src/chat.markers.ts
|
|
64988
65141
|
var FILE_MARKER = /<file:([A-Za-z0-9_-]{1,64})>/g;
|
|
@@ -65004,6 +65157,70 @@ function withSlackMarkupAsText(text3) {
|
|
|
65004
65157
|
return withSlackPeopleAsNames(text3).replace(SLACK_DATE_TOKEN, "$1").replace(ANGLE_LINK, (_link, address, label3) => label3 ?? address);
|
|
65005
65158
|
}
|
|
65006
65159
|
|
|
65160
|
+
// ../../modules/chat/contract/src/chat.observe.ts
|
|
65161
|
+
var originKeySchema = external_exports.string().min(1).max(200);
|
|
65162
|
+
var sourceMessageSchemaDefinition = external_exports.object({
|
|
65163
|
+
workspaceId: external_exports.string().min(1),
|
|
65164
|
+
channelId: external_exports.string().min(1).max(64),
|
|
65165
|
+
/** The message's key at the source, as `origin.key` named it when it was observed. */
|
|
65166
|
+
originKey: originKeySchema,
|
|
65167
|
+
/** The Laze message the mirror linked it to, such as one Laze sent there and has no origin. */
|
|
65168
|
+
messageId: external_exports.string().min(1).max(64).optional()
|
|
65169
|
+
});
|
|
65170
|
+
var observeMessageInputSchemaDefinition = external_exports.object({
|
|
65171
|
+
...postMirroredInputSchema.shape,
|
|
65172
|
+
/** The source's render of the text, so a restyle of the same version is told apart. */
|
|
65173
|
+
renderHash: external_exports.string().max(200).nullable().default(null),
|
|
65174
|
+
/** The thread root's origin key, for a reply. */
|
|
65175
|
+
rootOriginKey: originKeySchema.nullable().default(null),
|
|
65176
|
+
/** Its edit version when first read already edited, such as from history. */
|
|
65177
|
+
version: external_exports.number().int().min(0).default(0)
|
|
65178
|
+
});
|
|
65179
|
+
var observeEditInputSchemaDefinition = external_exports.object({
|
|
65180
|
+
...sourceMessageSchemaDefinition.shape,
|
|
65181
|
+
keyOwnerUserId: external_exports.string().min(1).max(64),
|
|
65182
|
+
version: external_exports.number().int().min(0),
|
|
65183
|
+
body: external_exports.string().max(MESSAGE_BODY_MAX),
|
|
65184
|
+
/** The source's blocks and attachments now; null drops them; left out keeps them. */
|
|
65185
|
+
layout: messageLayoutSchema.nullable().optional(),
|
|
65186
|
+
rerendered: external_exports.boolean().default(false),
|
|
65187
|
+
renderHash: external_exports.string().max(200).nullable().default(null),
|
|
65188
|
+
/** The source says the message was never edited: an edited mark Laze gave it comes off. */
|
|
65189
|
+
neverEdited: external_exports.boolean().default(false),
|
|
65190
|
+
fileIds: external_exports.array(external_exports.string().min(1).max(64)).max(10).default([])
|
|
65191
|
+
});
|
|
65192
|
+
var observeReactionsInputSchemaDefinition = external_exports.object({
|
|
65193
|
+
...sourceMessageSchemaDefinition.shape,
|
|
65194
|
+
change: external_exports.discriminatedUnion("kind", [
|
|
65195
|
+
external_exports.object({
|
|
65196
|
+
kind: external_exports.literal("one"),
|
|
65197
|
+
actor: messageAuthorSchema,
|
|
65198
|
+
emoji: external_exports.string().trim().min(1).max(64),
|
|
65199
|
+
present: external_exports.boolean(),
|
|
65200
|
+
atMs: external_exports.number().int().min(0)
|
|
65201
|
+
}),
|
|
65202
|
+
external_exports.object({
|
|
65203
|
+
kind: external_exports.literal("snapshot"),
|
|
65204
|
+
readAtMs: external_exports.number().int().min(0),
|
|
65205
|
+
present: external_exports.array(external_exports.object({ actor: messageAuthorSchema, emoji: external_exports.string().trim().min(1).max(64) })).max(500)
|
|
65206
|
+
})
|
|
65207
|
+
])
|
|
65208
|
+
});
|
|
65209
|
+
var observePinInputSchemaDefinition = external_exports.object({
|
|
65210
|
+
...sourceMessageSchemaDefinition.shape,
|
|
65211
|
+
actor: messageAuthorSchema,
|
|
65212
|
+
/** The pinner's name at the source, kept when they are outside Laze. */
|
|
65213
|
+
actorName: external_exports.string().max(200).nullable().default(null),
|
|
65214
|
+
pinned: external_exports.boolean(),
|
|
65215
|
+
atMs: external_exports.number().int().min(0)
|
|
65216
|
+
});
|
|
65217
|
+
var observeSenderInputSchemaDefinition = external_exports.object({
|
|
65218
|
+
workspaceId: external_exports.string().min(1),
|
|
65219
|
+
identity: external_exports.string().min(1).max(64),
|
|
65220
|
+
name: external_exports.string().trim().min(1).max(200),
|
|
65221
|
+
avatarUrl: external_exports.string().max(2e3).nullable().default(null)
|
|
65222
|
+
});
|
|
65223
|
+
|
|
65007
65224
|
// ../../modules/agent/contract/src/agent-access.ts
|
|
65008
65225
|
var idSchema5 = external_exports.string().min(1).max(80);
|
|
65009
65226
|
var agentGranteeSchemaDefinition = external_exports.discriminatedUnion("kind", [
|
|
@@ -66192,7 +66409,7 @@ var computerMoveIntentSchemaDefinition = external_exports.object({ moveId: exter
|
|
|
66192
66409
|
|
|
66193
66410
|
// ../../modules/agent/contract/src/agent-context-window.ts
|
|
66194
66411
|
var AGENT_CONTEXT_WINDOW = {
|
|
66195
|
-
default:
|
|
66412
|
+
default: 35e4,
|
|
66196
66413
|
min: 1e5,
|
|
66197
66414
|
max: 1e6
|
|
66198
66415
|
};
|
|
@@ -66378,37 +66595,42 @@ var LEVEL_NAMES = { fast: "Laze Small", frontier: "Laze Frontier" };
|
|
|
66378
66595
|
function modelLineOf({ agent: agent3 }) {
|
|
66379
66596
|
if (agent3.harness === "laze-models") {
|
|
66380
66597
|
const { level: level2, source } = levelOf({ agent: agent3 });
|
|
66381
|
-
|
|
66382
|
-
return source === "workspace" ? `Default (${LEVEL_NAMES[level2]}, the workspace default)` : `Default (${LEVEL_NAMES[level2]})`;
|
|
66598
|
+
return source === "workspace" ? `${LEVEL_NAMES[level2]}, the workspace default` : LEVEL_NAMES[level2];
|
|
66383
66599
|
}
|
|
66384
66600
|
const running = pickRunningModel({ agent: agent3 });
|
|
66385
66601
|
const name3 = running ? versionedNameOf({ model: running }) || running.id : describeUnlistedPoolModel({ agent: agent3 }) ?? null;
|
|
66386
66602
|
if (agent3.model) return name3 || agent3.model;
|
|
66387
|
-
if (!name3) return "
|
|
66603
|
+
if (!name3) return agent3.harness === "codex" ? "Codex's default model" : "Opus";
|
|
66388
66604
|
const choice = defaultModelChoiceOf({ agent: agent3 });
|
|
66389
66605
|
const from = choice.kind === "laze" && choice.poolName ? choice.poolName : null;
|
|
66390
|
-
return from ?
|
|
66606
|
+
return from ? `${name3}, from ${poolPhraseOf({ poolName: from })}` : name3;
|
|
66391
66607
|
}
|
|
66392
|
-
|
|
66608
|
+
var AGENT_DEFAULT_EFFORT = "high";
|
|
66609
|
+
function launchEffortOf({ agent: agent3 }) {
|
|
66393
66610
|
const running = pickRunningModel({ agent: agent3 });
|
|
66394
|
-
|
|
66395
|
-
|
|
66396
|
-
const fallback = running?.defaultEffort;
|
|
66397
|
-
return fallback ? `Default (${effortLabelOf({ effort: fallback })})` : "Default";
|
|
66611
|
+
const effort = agent3.effort ?? (!running || running.efforts.includes(AGENT_DEFAULT_EFFORT) ? AGENT_DEFAULT_EFFORT : running.defaultEffort);
|
|
66612
|
+
return effort ? { kind: "set", effort } : { kind: "none" };
|
|
66398
66613
|
}
|
|
66399
|
-
function
|
|
66614
|
+
function describeEffort({ agent: agent3 }) {
|
|
66615
|
+
const launched = launchEffortOf({ agent: agent3 });
|
|
66616
|
+
return launched.kind === "set" ? effortLabelOf({ effort: launched.effort }) : null;
|
|
66617
|
+
}
|
|
66618
|
+
function claudeWindowOf({ model }) {
|
|
66619
|
+
const name3 = model ? `${model.name} ${model.description} ${model.id}` : "";
|
|
66620
|
+
return /haiku[ -]4[.-]5/i.test(name3) ? 2e5 : 1e6;
|
|
66621
|
+
}
|
|
66622
|
+
function contextTokensOf({ agent: agent3 }) {
|
|
66623
|
+
const set2 = agent3.contextWindow ?? AGENT_CONTEXT_WINDOW.default;
|
|
66624
|
+
if (agent3.harness === "laze-models") return set2;
|
|
66400
66625
|
const cap = contextCapOf({ agent: agent3 });
|
|
66401
|
-
if (
|
|
66402
|
-
|
|
66403
|
-
return
|
|
66626
|
+
if (cap.known) return Math.min(set2, cap.tokens);
|
|
66627
|
+
if (agent3.harness === "claude-code") {
|
|
66628
|
+
return Math.min(set2, claudeWindowOf({ model: pickRunningModel({ agent: agent3 }) }));
|
|
66404
66629
|
}
|
|
66405
|
-
|
|
66406
|
-
|
|
66407
|
-
|
|
66408
|
-
|
|
66409
|
-
if (!set2 || set2 === cap.tokens)
|
|
66410
|
-
return `${tokensLabelOf({ tokens: cap.tokens })}, the most this model takes`;
|
|
66411
|
-
return `${tokensLabelOf({ tokens: set2 })} of the ${tokensLabelOf({ tokens: cap.tokens })} this model takes`;
|
|
66630
|
+
return set2;
|
|
66631
|
+
}
|
|
66632
|
+
function contextLineOf({ agent: agent3 }) {
|
|
66633
|
+
return tokensLabelOf({ tokens: contextTokensOf({ agent: agent3 }) });
|
|
66412
66634
|
}
|
|
66413
66635
|
function agentRunSummaryOf({ agent: agent3 }) {
|
|
66414
66636
|
return {
|
|
@@ -66769,6 +66991,11 @@ var startConversationInputSchemaDefinition = external_exports.object({
|
|
|
66769
66991
|
contextMessageId: idSchema7.optional()
|
|
66770
66992
|
});
|
|
66771
66993
|
var startConversationInputSchema = startConversationInputSchemaDefinition;
|
|
66994
|
+
var openConversationInputSchemaDefinition = external_exports.object({
|
|
66995
|
+
workspaceId: workspaceIdSchema4,
|
|
66996
|
+
agentId: idSchema7
|
|
66997
|
+
});
|
|
66998
|
+
var openConversationInputSchema = openConversationInputSchemaDefinition;
|
|
66772
66999
|
var startedConversationSchemaDefinition = external_exports.object({
|
|
66773
67000
|
channelId: idSchema7,
|
|
66774
67001
|
messageId: idSchema7
|
|
@@ -67055,7 +67282,7 @@ var CONNECTOR_PROVIDERS = [
|
|
|
67055
67282
|
description: "Search, read, archive and label mail and write drafts. Sending, trash and unsubscribing ask you first.",
|
|
67056
67283
|
// gmail.modify covers reading, drafts and sending as well as labels, archive and trash.
|
|
67057
67284
|
scopes: ["openid", "email", GMAIL_MODIFY_SCOPE],
|
|
67058
|
-
sensitivity:
|
|
67285
|
+
sensitivity: VAULT_TIER_BUILT_IN_LEVELS.sensitive,
|
|
67059
67286
|
maxLeaseSeconds: TWO_DAYS,
|
|
67060
67287
|
egress: {
|
|
67061
67288
|
upstream: "https://gmail.googleapis.com",
|
|
@@ -67077,7 +67304,7 @@ var CONNECTOR_PROVIDERS = [
|
|
|
67077
67304
|
// Narrowest scope with events.list and events.insert on the primary calendar.
|
|
67078
67305
|
"https://www.googleapis.com/auth/calendar.events.owned"
|
|
67079
67306
|
],
|
|
67080
|
-
sensitivity:
|
|
67307
|
+
sensitivity: VAULT_TIER_BUILT_IN_LEVELS.standard,
|
|
67081
67308
|
maxLeaseSeconds: null,
|
|
67082
67309
|
egress: {
|
|
67083
67310
|
upstream: "https://www.googleapis.com/calendar/v3",
|
|
@@ -67093,7 +67320,7 @@ var CONNECTOR_PROVIDERS = [
|
|
|
67093
67320
|
category: "Files and knowledge",
|
|
67094
67321
|
description: "Find and read your documents and files.",
|
|
67095
67322
|
scopes: ["openid", "email", "https://www.googleapis.com/auth/drive.readonly"],
|
|
67096
|
-
sensitivity:
|
|
67323
|
+
sensitivity: VAULT_TIER_BUILT_IN_LEVELS.sensitive,
|
|
67097
67324
|
maxLeaseSeconds: TWO_DAYS,
|
|
67098
67325
|
egress: {
|
|
67099
67326
|
upstream: "https://www.googleapis.com/drive/v3",
|
|
@@ -67124,7 +67351,7 @@ var CONNECTOR_PROVIDERS = [
|
|
|
67124
67351
|
url: "https://api.github.com/applications/{client_id}/grant"
|
|
67125
67352
|
}
|
|
67126
67353
|
},
|
|
67127
|
-
sensitivity:
|
|
67354
|
+
sensitivity: VAULT_TIER_BUILT_IN_LEVELS.standard,
|
|
67128
67355
|
maxLeaseSeconds: null,
|
|
67129
67356
|
egress: { upstream: "https://api.github.com", header: "Authorization", prefix: "Bearer " },
|
|
67130
67357
|
account: { url: "https://api.github.com/user", field: "login" },
|
|
@@ -67185,7 +67412,8 @@ var addMcpServerInputSchemaDefinition = external_exports.object({
|
|
|
67185
67412
|
name: vaultConnectionNameSchema,
|
|
67186
67413
|
label: external_exports.string().trim().min(1).max(120),
|
|
67187
67414
|
keychain: vaultOwnedKeychainSchema,
|
|
67188
|
-
|
|
67415
|
+
/** Left out, the server starts at its tier's level (vault specs/connector-tiers.feature). */
|
|
67416
|
+
sensitivity: vaultSensitivitySchema.optional(),
|
|
67189
67417
|
auth: mcpAuthSchema,
|
|
67190
67418
|
/** Sign in again into an existing MCP connection, keeping its grants and settings. */
|
|
67191
67419
|
connectionId: external_exports.string().min(1).optional(),
|
|
@@ -67261,6 +67489,14 @@ var waitingMcpServerSchemaDefinition = external_exports.object({
|
|
|
67261
67489
|
/** ISO 8601 */
|
|
67262
67490
|
addedAt: external_exports.iso.datetime()
|
|
67263
67491
|
});
|
|
67492
|
+
var mcpServerApprovalChangedPayloadSchemaDefinition = external_exports.object({
|
|
67493
|
+
workspaceId: external_exports.string().min(1),
|
|
67494
|
+
connectionId: external_exports.string().min(1),
|
|
67495
|
+
change: external_exports.enum(["saved", "approved", "denied", "deleted"]),
|
|
67496
|
+
/** Unique per change. */
|
|
67497
|
+
changeId: external_exports.string().min(1),
|
|
67498
|
+
at: external_exports.iso.datetime()
|
|
67499
|
+
});
|
|
67264
67500
|
var ConnectorApi = moduleApi()("connector");
|
|
67265
67501
|
var workspaceInput2 = external_exports.object({ workspaceId: external_exports.string().min(1) });
|
|
67266
67502
|
var connectionInput2 = external_exports.object({
|
|
@@ -68642,6 +68878,17 @@ var pressedWelcomeSchemaDefinition = external_exports.object({
|
|
|
68642
68878
|
messageId: external_exports.string().min(1)
|
|
68643
68879
|
});
|
|
68644
68880
|
var pressedWelcomeSchema = pressedWelcomeSchemaDefinition;
|
|
68881
|
+
var pressCollabInputSchemaDefinition = external_exports.object({
|
|
68882
|
+
workspaceId: external_exports.string().min(1),
|
|
68883
|
+
/** The invite card's message. */
|
|
68884
|
+
messageId: external_exports.string().min(1),
|
|
68885
|
+
action: external_exports.enum(["resend", "dismiss"])
|
|
68886
|
+
});
|
|
68887
|
+
var pressCollabInputSchema = pressCollabInputSchemaDefinition;
|
|
68888
|
+
var pressedCollabSchemaDefinition = external_exports.object({
|
|
68889
|
+
outcome: external_exports.enum(["sent", "dismissed", "fallback"])
|
|
68890
|
+
});
|
|
68891
|
+
var pressedCollabSchema = pressedCollabSchemaDefinition;
|
|
68645
68892
|
|
|
68646
68893
|
// ../../modules/agent/contract/src/agent-working.ts
|
|
68647
68894
|
var agentWorkingInputSchemaDefinition = external_exports.object({
|
|
@@ -69242,14 +69489,16 @@ var agentArchiveTrpc = defineTrpcContract("agents").query("archived").withInput(
|
|
|
69242
69489
|
var agentLangwatchTrpc = defineTrpcContract("agents").query("langwatchTracing").withInput(agentLangwatchInputSchema).withOutput(agentLangwatchTracingSchema).mutation("setLangwatchTracing").withInput(setAgentLangwatchInputSchema).withOutput(agentLangwatchTracingSchema).build();
|
|
69243
69490
|
var agentPoolModelTrpc = defineTrpcContract("agents").mutation("setLoginPoolModel").withInput(setLoginPoolModelInputSchema).withOutput(loginPoolsSchema).build();
|
|
69244
69491
|
var agentRunsOnTrpc = defineTrpcContract("agents").mutation("setRunsOn").withInput(setRunsOnInputSchema).withOutput(agentSchema).build();
|
|
69245
|
-
var agentWelcomeTrpc = defineTrpcContract("agents").mutation("pressWelcome").withInput(pressWelcomeInputSchema).withOutput(pressedWelcomeSchema).build();
|
|
69492
|
+
var agentWelcomeTrpc = defineTrpcContract("agents").mutation("pressWelcome").withInput(pressWelcomeInputSchema).withOutput(pressedWelcomeSchema).mutation("pressCollab").withInput(pressCollabInputSchema).withOutput(pressedCollabSchema).build();
|
|
69246
69493
|
var agentPoolGroupTrpc = defineTrpcContract("agents").mutation("addPoolGroup").withInput(poolGroupInputSchema).withOutput(loginPoolsSchema).mutation("removePoolGroup").withInput(poolGroupInputSchema).withOutput(loginPoolsSchema).build();
|
|
69494
|
+
var agentOpenConversationTrpc = defineTrpcContract("agents").mutation("openConversation").withInput(openConversationInputSchema).withOutput(external_exports.object({ channelId: idSchema17 })).build();
|
|
69247
69495
|
var agentReconnectTrpc = defineTrpcContract("agents").query("reconnect").withInput(external_exports.object({ workspaceId: workspaceIdSchema14, agentId: idSchema17 })).withOutput(agentReconnectSchema).build();
|
|
69248
69496
|
var agentTrpc = joinTrpcContracts(
|
|
69249
69497
|
"agents",
|
|
69250
69498
|
agentCoreTrpc,
|
|
69251
69499
|
agentPoolGroupTrpc,
|
|
69252
69500
|
agentReconnectTrpc,
|
|
69501
|
+
agentOpenConversationTrpc,
|
|
69253
69502
|
agentTurnTrpc,
|
|
69254
69503
|
agentChannelSettingsTrpc,
|
|
69255
69504
|
agentJoinTrpc,
|
|
@@ -69270,6 +69519,7 @@ var AgentComputerCardSlot = agentUi.component("computerCard");
|
|
|
69270
69519
|
var AgentLoginCardSlot = agentUi.component("loginCard");
|
|
69271
69520
|
var AgentBudgetCardSlot = agentUi.component("budgetCard");
|
|
69272
69521
|
var AgentWelcomeCardSlot = agentUi.component("welcomeCard");
|
|
69522
|
+
var AgentCollabCardSlot = agentUi.component("collabCard");
|
|
69273
69523
|
var AgentStopTurnSlot = agentUi.component("stopTurn");
|
|
69274
69524
|
var AgentOfflineLineSlot = agentUi.component("offlineLine");
|
|
69275
69525
|
var AgentLiveStepsSlot = agentUi.component("liveSteps");
|
|
@@ -71302,6 +71552,10 @@ var slackExternalPeopleSchemaDefinition = external_exports.object({
|
|
|
71302
71552
|
)
|
|
71303
71553
|
});
|
|
71304
71554
|
var slackExternalPeopleSchema = slackExternalPeopleSchemaDefinition;
|
|
71555
|
+
var slackChannelPeopleSchemaDefinition = external_exports.object({
|
|
71556
|
+
people: external_exports.array(slackExternalPersonSchemaDefinition)
|
|
71557
|
+
});
|
|
71558
|
+
var slackChannelPeopleSchema = slackChannelPeopleSchemaDefinition;
|
|
71305
71559
|
var slackExternalPeopleCountsInputSchemaDefinition = external_exports.object({
|
|
71306
71560
|
workspaceId: external_exports.string().min(1),
|
|
71307
71561
|
channelIds: external_exports.array(external_exports.string().min(1).max(64)).max(200)
|
|
@@ -71483,6 +71737,10 @@ var slackBotCleanupRequestedPayloadSchemaDefinition = external_exports.object({
|
|
|
71483
71737
|
runId: external_exports.string().min(1),
|
|
71484
71738
|
dryRun: external_exports.boolean()
|
|
71485
71739
|
});
|
|
71740
|
+
var slackMetadataProbeRequestedPayloadSchemaDefinition = external_exports.object({
|
|
71741
|
+
workspaceId: external_exports.string().min(1),
|
|
71742
|
+
runId: external_exports.string().min(1)
|
|
71743
|
+
});
|
|
71486
71744
|
var slackCacheTrimRequestedPayloadSchemaDefinition = external_exports.object({
|
|
71487
71745
|
workspaceId: external_exports.string().min(1),
|
|
71488
71746
|
teamId: external_exports.string().min(1),
|
|
@@ -71720,7 +71978,7 @@ var slackSearchAnswerSchemaDefinition = external_exports.object({
|
|
|
71720
71978
|
var slackSearchAnswerSchema = slackSearchAnswerSchemaDefinition;
|
|
71721
71979
|
var SlackApi = moduleApi()("slack");
|
|
71722
71980
|
var workspaceInput3 = external_exports.object({ workspaceId: workspaceIdSchema17 });
|
|
71723
|
-
var slackTrpc = defineTrpcContract("slack").query("overview").withInput(workspaceInput3).withOutput(slackOverviewSchema).mutation("startSetup").withInput(startSlackSetupInputSchema).withOutput(startedSlackAuthorizeSchema).mutation("beginSetup").withInput(beginSlackSetupInputSchema).withOutput(slackSetupSchema).mutation("saveAppCredentials").withInput(saveSlackAppCredentialsInputSchema).withOutput(startedSlackAuthorizeSchema).mutation("installApp").withInput(installSlackAppInputSchema).withOutput(startedSlackAuthorizeSchema).mutation("startInstall").withInput(startSlackInstallInputSchema).withOutput(startedSlackAuthorizeSchema).mutation("startLink").withInput(startSlackLinkInputSchema).withOutput(startedSlackAuthorizeSchema).query("channels").withInput(slackTeamInputSchema).withOutput(external_exports.array(slackChannelViewSchema)).mutation("setMirror").withInput(setSlackMirrorInputSchema).withOutput(slackConnectionViewSchema).mutation("updateConnection").withInput(updateSlackConnectionInputSchema).withOutput(slackConnectionViewSchema).mutation("disconnect").withInput(slackTeamInputSchema).withOutput(external_exports.object({ disconnected: external_exports.literal(true) })).mutation("unlink").withInput(slackTeamInputSchema).withOutput(slackConnectionViewSchema).query("linkPrompts").withInput(workspaceInput3).withOutput(slackLinkPromptsSchema).mutation("dismissLinkPrompt").withInput(dismissSlackLinkPromptInputSchema).withOutput(slackLinkPromptsSchema).query("people").withInput(slackPeopleInputSchema).withOutput(slackPeopleSchema).query("bookmarks").withInput(slackBookmarksInputSchema).withOutput(slackBookmarksSchema).query("profiles").withInput(slackProfilesInputSchema).withOutput(slackProfilesSchema).query("linkedNames").withInput(external_exports.object({ workspaceId: external_exports.string().min(1) })).withOutput(slackLinkedNamesSchema).query("externalPeople").withInput(slackExternalPeopleInputSchema).withOutput(slackExternalPeopleSchema).query("externalPeopleCounts").withInput(slackExternalPeopleCountsInputSchema).withOutput(slackExternalPeopleCountsSchema).mutation("openDirect").withInput(openSlackDirectInputSchema).withOutput(openedSlackDirectSchema).mutation("invite").withInput(slackInviteInputSchema).withOutput(slackInvitedSchema).mutation("updateApp").withInput(updateSlackAppInputSchema).withOutput(external_exports.object({ updated: external_exports.literal(true) })).query("history").withInput(slackHistoryInputSchema).withOutput(slackHistoryPageSchema).query("search").withInput(slackSearchInputSchema).withOutput(slackSearchAnswerSchema).query("movePreview").withInput(slackMoveChannelInputSchema).withOutput(slackMovePreviewSchema).mutation("startMoves").withInput(startSlackMovesInputSchema).withOutput(startedSlackMovesSchema).mutation("cancelMove").withInput(slackMoveInputSchema).withOutput(slackMoveViewSchema).query("moves").withInput(workspaceInput3).withOutput(slackMovesSchema).query("emojiSource").withInput(workspaceInput3).withOutput(slackEmojiSourceSchema).mutation("importEmoji").withInput(workspaceInput3).withOutput(slackEmojiImportSchema).build();
|
|
71981
|
+
var slackTrpc = defineTrpcContract("slack").query("overview").withInput(workspaceInput3).withOutput(slackOverviewSchema).mutation("startSetup").withInput(startSlackSetupInputSchema).withOutput(startedSlackAuthorizeSchema).mutation("beginSetup").withInput(beginSlackSetupInputSchema).withOutput(slackSetupSchema).mutation("saveAppCredentials").withInput(saveSlackAppCredentialsInputSchema).withOutput(startedSlackAuthorizeSchema).mutation("installApp").withInput(installSlackAppInputSchema).withOutput(startedSlackAuthorizeSchema).mutation("startInstall").withInput(startSlackInstallInputSchema).withOutput(startedSlackAuthorizeSchema).mutation("startLink").withInput(startSlackLinkInputSchema).withOutput(startedSlackAuthorizeSchema).query("channels").withInput(slackTeamInputSchema).withOutput(external_exports.array(slackChannelViewSchema)).mutation("setMirror").withInput(setSlackMirrorInputSchema).withOutput(slackConnectionViewSchema).mutation("updateConnection").withInput(updateSlackConnectionInputSchema).withOutput(slackConnectionViewSchema).mutation("disconnect").withInput(slackTeamInputSchema).withOutput(external_exports.object({ disconnected: external_exports.literal(true) })).mutation("unlink").withInput(slackTeamInputSchema).withOutput(slackConnectionViewSchema).query("linkPrompts").withInput(workspaceInput3).withOutput(slackLinkPromptsSchema).mutation("dismissLinkPrompt").withInput(dismissSlackLinkPromptInputSchema).withOutput(slackLinkPromptsSchema).query("people").withInput(slackPeopleInputSchema).withOutput(slackPeopleSchema).query("bookmarks").withInput(slackBookmarksInputSchema).withOutput(slackBookmarksSchema).query("profiles").withInput(slackProfilesInputSchema).withOutput(slackProfilesSchema).query("linkedNames").withInput(external_exports.object({ workspaceId: external_exports.string().min(1) })).withOutput(slackLinkedNamesSchema).query("externalPeople").withInput(slackExternalPeopleInputSchema).withOutput(slackExternalPeopleSchema).query("channelPeople").withInput(slackExternalPeopleInputSchema).withOutput(slackChannelPeopleSchema).query("externalPeopleCounts").withInput(slackExternalPeopleCountsInputSchema).withOutput(slackExternalPeopleCountsSchema).mutation("openDirect").withInput(openSlackDirectInputSchema).withOutput(openedSlackDirectSchema).mutation("invite").withInput(slackInviteInputSchema).withOutput(slackInvitedSchema).mutation("updateApp").withInput(updateSlackAppInputSchema).withOutput(external_exports.object({ updated: external_exports.literal(true) })).query("history").withInput(slackHistoryInputSchema).withOutput(slackHistoryPageSchema).query("search").withInput(slackSearchInputSchema).withOutput(slackSearchAnswerSchema).query("movePreview").withInput(slackMoveChannelInputSchema).withOutput(slackMovePreviewSchema).mutation("startMoves").withInput(startSlackMovesInputSchema).withOutput(startedSlackMovesSchema).mutation("cancelMove").withInput(slackMoveInputSchema).withOutput(slackMoveViewSchema).query("moves").withInput(workspaceInput3).withOutput(slackMovesSchema).query("emojiSource").withInput(workspaceInput3).withOutput(slackEmojiSourceSchema).mutation("importEmoji").withInput(workspaceInput3).withOutput(slackEmojiImportSchema).build();
|
|
71724
71982
|
|
|
71725
71983
|
// ../../modules/slack/contract/src/slack-keys.ts
|
|
71726
71984
|
var SLACK_KEY_PATHS = {
|
|
@@ -71811,6 +72069,8 @@ var slackConfig = Config.define((c) => ({
|
|
|
71811
72069
|
signatureMaxAgeSeconds: c.env("SLACK_SIGNATURE_MAX_AGE_SECONDS", positiveInt4.default(300)),
|
|
71812
72070
|
/** The progress board's alerts folder; unset, the missed-events card is only logged. */
|
|
71813
72071
|
opsAlertDir: c.env("SLACK_OPS_ALERT_DIR", external_exports.string().min(1).optional()),
|
|
72072
|
+
/** On, Slack's changes land through chat's merge rows (ADR-202 M3); off keeps the old path. */
|
|
72073
|
+
mirrorObserve: c.env("SLACK_MIRROR_OBSERVE", external_exports.enum(["on", "off"]).default("off")),
|
|
71814
72074
|
/** The longest wait between two Socket Mode reconnects. */
|
|
71815
72075
|
reconnectMaxSeconds: c.env("SLACK_RECONNECT_MAX_SECONDS", positiveInt4.default(30))
|
|
71816
72076
|
}));
|
|
@@ -79951,6 +80211,57 @@ var appCreatedPayloadSchemaDefinition = external_exports.object({
|
|
|
79951
80211
|
at: external_exports.iso.datetime()
|
|
79952
80212
|
});
|
|
79953
80213
|
|
|
80214
|
+
// ../../modules/app/contract/src/app.requests.ts
|
|
80215
|
+
var appPublishRequestChangedPayloadSchemaDefinition = external_exports.object({
|
|
80216
|
+
workspaceId: external_exports.string().min(1),
|
|
80217
|
+
appId: external_exports.string().min(1),
|
|
80218
|
+
requestId: external_exports.string().min(1),
|
|
80219
|
+
change: external_exports.enum(["requested", "answered", "expired", "withdrawn"]),
|
|
80220
|
+
/** One per change, so a request that waits again is a new fact. */
|
|
80221
|
+
changeId: external_exports.string().min(1),
|
|
80222
|
+
at: external_exports.iso.datetime()
|
|
80223
|
+
});
|
|
80224
|
+
var appAccessRequestChangedPayloadSchemaDefinition = external_exports.object({
|
|
80225
|
+
workspaceId: external_exports.string().min(1),
|
|
80226
|
+
appId: external_exports.string().min(1),
|
|
80227
|
+
requestId: external_exports.string().min(1),
|
|
80228
|
+
change: external_exports.enum(["requested", "answered", "withdrawn"]),
|
|
80229
|
+
changeId: external_exports.string().min(1),
|
|
80230
|
+
at: external_exports.iso.datetime()
|
|
80231
|
+
});
|
|
80232
|
+
var appTriggerPauseChangedPayloadSchemaDefinition = external_exports.object({
|
|
80233
|
+
workspaceId: external_exports.string().min(1),
|
|
80234
|
+
appId: external_exports.string().min(1),
|
|
80235
|
+
triggerId: external_exports.string().min(1),
|
|
80236
|
+
change: external_exports.enum(["paused", "resumed", "removed"]),
|
|
80237
|
+
changeId: external_exports.string().min(1),
|
|
80238
|
+
at: external_exports.iso.datetime()
|
|
80239
|
+
});
|
|
80240
|
+
var appBudgetAlertChangedPayloadSchemaDefinition = external_exports.object({
|
|
80241
|
+
workspaceId: external_exports.string().min(1),
|
|
80242
|
+
appId: external_exports.string().min(1),
|
|
80243
|
+
/** YYYY-MM in UTC, and the level the month stands at after the change: 0, 75, 95 or 100. */
|
|
80244
|
+
month: external_exports.string().min(1),
|
|
80245
|
+
level: external_exports.number().int().min(0),
|
|
80246
|
+
change: external_exports.enum(["reached", "set", "month_began"]),
|
|
80247
|
+
changeId: external_exports.string().min(1),
|
|
80248
|
+
at: external_exports.iso.datetime()
|
|
80249
|
+
});
|
|
80250
|
+
var appBackupCheckChangedPayloadSchemaDefinition = external_exports.object({
|
|
80251
|
+
workspaceId: external_exports.string().min(1),
|
|
80252
|
+
/** When the host's check finished; one check is one fact per workspace. */
|
|
80253
|
+
checkAt: external_exports.string().min(1),
|
|
80254
|
+
changeId: external_exports.string().min(1),
|
|
80255
|
+
at: external_exports.iso.datetime()
|
|
80256
|
+
});
|
|
80257
|
+
var appQuotaAlertChangedPayloadSchemaDefinition = external_exports.object({
|
|
80258
|
+
workspaceId: external_exports.string().min(1),
|
|
80259
|
+
/** Whether any app of the workspace reached a warning level; false lets old notices settle. */
|
|
80260
|
+
warned: external_exports.boolean(),
|
|
80261
|
+
changeId: external_exports.string().min(1),
|
|
80262
|
+
at: external_exports.iso.datetime()
|
|
80263
|
+
});
|
|
80264
|
+
|
|
79954
80265
|
// ../../modules/app/contract/src/app.templates.ts
|
|
79955
80266
|
var APP_TEMPLATE_SOURCES = ["laze"];
|
|
79956
80267
|
var templateCollectionsSchema = external_exports.record(
|
|
@@ -84965,7 +85276,7 @@ var CHAT_ACTIONS_USAGE = `Usage:
|
|
|
84965
85276
|
laze thread following <messageId> whether you follow it
|
|
84966
85277
|
laze thread read <messageId> mark a followed thread read (people)
|
|
84967
85278
|
laze threads [--limit <n>] | laze threads unread the threads you follow (people)
|
|
84968
|
-
laze message edit <messageId> <text
|
|
85279
|
+
laze message edit <messageId> <text|-> edit your own message; - reads stdin
|
|
84969
85280
|
laze message delete <messageId> delete your own message
|
|
84970
85281
|
laze message remove <messageId> remove anyone's message (admins)
|
|
84971
85282
|
laze message react <messageId> <emoji> add a reaction, or take yours back
|
|
@@ -85078,10 +85389,11 @@ var threads = async ({ context, args, client }) => {
|
|
|
85078
85389
|
};
|
|
85079
85390
|
var MESSAGE_VERBS = {
|
|
85080
85391
|
edit: async ({ context, args, client }) => {
|
|
85081
|
-
const
|
|
85082
|
-
if (
|
|
85392
|
+
const messageId = wordAt(args, 2);
|
|
85393
|
+
if (args.words.length < 4) throw new CliUsageError(CHAT_ACTIONS_USAGE);
|
|
85394
|
+
const body = await textOf({ context, args, from: 3 });
|
|
85083
85395
|
const answer6 = await client.post(CHAT_KEY_PATHS.edit, {
|
|
85084
|
-
messageId
|
|
85396
|
+
messageId,
|
|
85085
85397
|
body
|
|
85086
85398
|
});
|
|
85087
85399
|
print6({ context, args, answer: answer6, text: (it) => `Edited ${it.id}.
|
|
@@ -85685,7 +85997,9 @@ var computeConfig = Config.define((c) => ({
|
|
|
85685
85997
|
iproyalApiBase: c.env(
|
|
85686
85998
|
"LAZE_IPROYAL_API_BASE",
|
|
85687
85999
|
external_exports.url().default("https://apid.iproyal.com/v1/reseller")
|
|
85688
|
-
)
|
|
86000
|
+
),
|
|
86001
|
+
/** WhatsApp edits and deletes land through chat's merge rows (ADR-202 M3); off keeps old path. */
|
|
86002
|
+
whatsappMirrorObserve: c.env("WHATSAPP_MIRROR_OBSERVE", external_exports.enum(["on", "off"]).default("off"))
|
|
85689
86003
|
}));
|
|
85690
86004
|
|
|
85691
86005
|
// ../../modules/billing/contract/src/billing.config.ts
|
|
@@ -86403,6 +86717,24 @@ var myComputersDefinition = external_exports.object({
|
|
|
86403
86717
|
canAddShared: external_exports.boolean()
|
|
86404
86718
|
});
|
|
86405
86719
|
var myComputersSchema = myComputersDefinition;
|
|
86720
|
+
var computerUseDefinition = external_exports.object({
|
|
86721
|
+
computerId: external_exports.string(),
|
|
86722
|
+
name: external_exports.string(),
|
|
86723
|
+
state: external_exports.enum(["running", "asleep", "none"]),
|
|
86724
|
+
size: computerSizeSchema,
|
|
86725
|
+
cpu: external_exports.object({ busy: external_exports.number().nonnegative(), vcpu: external_exports.number().positive() }),
|
|
86726
|
+
memory: external_exports.object({ usedGb: external_exports.number().nonnegative(), totalGb: external_exports.number().positive() }),
|
|
86727
|
+
disk: external_exports.object({ usedGb: external_exports.number().nonnegative().nullable(), totalGb: external_exports.number().positive() }),
|
|
86728
|
+
/** Memory or disk at `COMPUTER_NEAR_FULL_SHARE` of the size or more. */
|
|
86729
|
+
nearFull: external_exports.boolean()
|
|
86730
|
+
});
|
|
86731
|
+
var computerUseSchema2 = computerUseDefinition;
|
|
86732
|
+
var personComputerInputDefinition = external_exports.object({
|
|
86733
|
+
workspaceId: external_exports.string().min(1).max(64),
|
|
86734
|
+
userId: external_exports.string().min(1).max(64),
|
|
86735
|
+
computerId: external_exports.string().min(1).max(64).optional()
|
|
86736
|
+
});
|
|
86737
|
+
var personComputerInputSchema = personComputerInputDefinition;
|
|
86406
86738
|
var createComputerInputDefinition = external_exports.object({
|
|
86407
86739
|
workspaceId: external_exports.string().min(1),
|
|
86408
86740
|
name: external_exports.string().trim().min(1).max(40),
|
|
@@ -86504,6 +86836,16 @@ var computerChangedDefinition = external_exports.object({
|
|
|
86504
86836
|
nextCheckAt: external_exports.number().int().nullable(),
|
|
86505
86837
|
at: external_exports.iso.datetime()
|
|
86506
86838
|
});
|
|
86839
|
+
var computerAttentionChangedDefinition = external_exports.object({
|
|
86840
|
+
workspaceId: external_exports.string().min(1),
|
|
86841
|
+
change: external_exports.enum(["request_opened", "request_closed", "guard_event", "whatsapp_touched"]),
|
|
86842
|
+
/** The request, guard event or machine the change is about. */
|
|
86843
|
+
subjectId: external_exports.string().min(1),
|
|
86844
|
+
/** Whose computer it is; null for a guard event, which is the workspace's. */
|
|
86845
|
+
userId: external_exports.string().nullable(),
|
|
86846
|
+
changeId: external_exports.string().min(1),
|
|
86847
|
+
at: external_exports.iso.datetime()
|
|
86848
|
+
});
|
|
86507
86849
|
|
|
86508
86850
|
// ../../modules/compute/contract/src/dedicated-ip.ts
|
|
86509
86851
|
var DEDICATED_IP_MAX_DOMAINS = 50;
|
|
@@ -86785,6 +87127,16 @@ var messagesResultDefinition = external_exports.object({
|
|
|
86785
87127
|
chat: whatsappChatDefinition.pick({ id: true, name: true, group: true }),
|
|
86786
87128
|
messages: external_exports.array(whatsappMessageDefinition)
|
|
86787
87129
|
});
|
|
87130
|
+
var chatPeopleInputDefinition = external_exports.object({
|
|
87131
|
+
workspaceId: workspaceIdSchema20,
|
|
87132
|
+
channelId: external_exports.string().min(1).max(64)
|
|
87133
|
+
});
|
|
87134
|
+
var whatsappChatPeopleInputSchema = chatPeopleInputDefinition;
|
|
87135
|
+
var chatPeopleDefinition = external_exports.object({
|
|
87136
|
+
people: external_exports.array(external_exports.object({ name: external_exports.string().min(1).max(200) })),
|
|
87137
|
+
state: external_exports.enum(["listed", "none", "asleep", "unreachable"])
|
|
87138
|
+
});
|
|
87139
|
+
var whatsappChatPeopleSchema = chatPeopleDefinition;
|
|
86788
87140
|
var limitSchema = external_exports.number().int().min(1).max(WHATSAPP_LIMIT_MAX);
|
|
86789
87141
|
var chatRefSchema = external_exports.string().trim().min(1).max(200);
|
|
86790
87142
|
var whatsappMachineRef = machineRefText2.optional();
|
|
@@ -86939,6 +87291,8 @@ var whatsappChangeDefinition = external_exports.object({
|
|
|
86939
87291
|
sender: external_exports.string().max(500),
|
|
86940
87292
|
text: external_exports.string(),
|
|
86941
87293
|
deleted: external_exports.boolean(),
|
|
87294
|
+
/** The change's place in the store's change feed; absent from older connectors. */
|
|
87295
|
+
seq: external_exports.number().int().min(1).optional(),
|
|
86942
87296
|
/** Fetched with a "media" request while the store is open; absent from older connectors. */
|
|
86943
87297
|
media: whatsappChangeMediaDefinition.optional(),
|
|
86944
87298
|
/** The chat's other ids, such as the hidden id it was first seen under; new in Nov 2026. */
|
|
@@ -87258,7 +87612,9 @@ var loginTerminalDefinition = external_exports.discriminatedUnion("status", [
|
|
|
87258
87612
|
status: external_exports.literal("starting"),
|
|
87259
87613
|
retryAfterSeconds: external_exports.number().int().positive(),
|
|
87260
87614
|
/** The computer is awake and only its link is coming back, e.g. after a deploy. */
|
|
87261
|
-
reconnecting: external_exports.boolean().optional()
|
|
87615
|
+
reconnecting: external_exports.boolean().optional(),
|
|
87616
|
+
/** Where the start is: the computer booting, or up and connecting to Laze. */
|
|
87617
|
+
step: external_exports.enum(["booting", "connecting"]).optional()
|
|
87262
87618
|
}),
|
|
87263
87619
|
external_exports.object({
|
|
87264
87620
|
status: external_exports.literal("ready"),
|
|
@@ -87311,7 +87667,7 @@ var ownMachineSshConnectSchema = ownMachineSshConnectDefinition;
|
|
|
87311
87667
|
var reconcileDefinition = external_exports.object({ workspaceId: workspaceIdSchema22, machineId: idSchema23 });
|
|
87312
87668
|
var ComputeApi = moduleApi()("compute");
|
|
87313
87669
|
var computeCoreTrpc = defineTrpcContract("compute").query("status").withInput(computeWorkspaceInputSchema).withOutput(computeStatusSchema).query("browserTabs").withInput(browserTabListInputSchema).withOutput(browserTabListSchema).query("browserTab").withInput(browserTabInputSchema).withOutput(browserTabSchema).mutation("openBrowserTab").withInput(openBrowserTabInputSchema).withOutput(browserTabSchema).mutation("browserTabScreen").withInput(browserTabInputSchema).withOutput(browserTabScreenSchema).mutation("sizeBrowserTabScreen").withInput(browserTabScreenSizeInputSchema).withOutput(browserTabScreenSizeSchema).mutation("gotoBrowserTab").withInput(browserTabGotoInputSchema).withOutput(browserTabPageSchema).mutation("doneOnBrowserTab").withInput(browserTabInputSchema).withOutput(browserTabSchema).mutation("shareBrowserTab").withInput(browserTabShareInputSchema).withOutput(browserTabSchema).mutation("closeBrowserTab").withInput(browserTabInputSchema).withOutput(external_exports.object({ closed: external_exports.literal(true) })).query("computer").withInput(computeWorkspaceInputSchema).withOutput(computerStatusSchema).mutation("setComputerSize").withInput(setComputerSizeInputSchema).withOutput(computerSizeAnswerSchema).mutation("requestComputerSize").withInput(setComputerSizeInputSchema).withOutput(computerRequestSchema).mutation("cancelComputerRequest").withInput(computerRequestRefSchema).withOutput(computerRequestSchema).mutation("restartComputer").withInput(restartComputerInputSchema).withOutput(computerRestartAnswerSchema).query("computers").withInput(computeWorkspaceInputSchema).withOutput(computerListSchema).query("dedicatedIp").withInput(computeWorkspaceInputSchema).withOutput(dedicatedIpStatusSchema).mutation("setDedicatedIp").withInput(setDedicatedIpInputSchema).withOutput(dedicatedIpAnswerSchema).mutation("turnOffDedicatedIp").withInput(computeWorkspaceInputSchema).withOutput(dedicatedIpAnswerSchema).mutation("setDedicatedIpDomains").withInput(setDedicatedIpDomainsInputSchema).withOutput(dedicatedIpAnswerSchema).query("dedicatedIps").withInput(computeWorkspaceInputSchema).withOutput(dedicatedIpListSchema).query("dedicatedIpCountries").withInput(computeWorkspaceInputSchema).withOutput(dedicatedIpCountriesSchema).query("dedicatedIpOffer").withInput(dedicatedIpOfferInputSchema).withOutput(dedicatedIpOfferSchema).query("list").withInput(computeWorkspaceInputSchema).withOutput(external_exports.array(machineSchema)).query("get").withInput(machineRefSchema).withOutput(machineSchema).mutation("setupBrowser").withInput(setupBrowserInputSchema).withOutput(machineSchema).mutation("sleep").withInput(machineRefSchema).withOutput(machineSchema).mutation("wake").withInput(machineRefSchema).withOutput(machineSchema).mutation("delete").withInput(machineRefSchema).withOutput(machineSchema).mutation("rename").withInput(renameMachineInputSchema).withOutput(machineSchema).mutation("grant").withInput(machineGrantInputSchema).withOutput(machineSchema).mutation("revokeGrant").withInput(machineGrantInputSchema).withOutput(machineSchema).mutation("setBudget").withInput(setMachineBudgetInputSchema).withOutput(machineSchema).mutation("openScreen").withInput(openScreenInputSchema).withOutput(screenSessionSchema).mutation("openLoginTerminal").withInput(openLoginTerminalInputSchema).withOutput(loginTerminalSchema).mutation("finishScreen").withInput(screenRefSchema).withOutput(machineSchema).mutation("connectOwn").withInput(connectOwnMachineInputSchema).withOutput(ownMachineConnectSchema).mutation("newConnectCommand").withInput(machineRefSchema).withOutput(ownMachineConnectSchema).mutation("connectSsh").withInput(connectSshMachineInputSchema).withOutput(ownMachineSshConnectSchema).mutation("trustHostKey").withInput(trustHostKeyInputSchema).withOutput(machineSchema).mutation("checkHealth").withInput(machineRefSchema).withOutput(machineSchema).mutation("hostAgent").withInput(hostAgentInputSchema).withOutput(machineSchema).mutation("unhostAgent").withInput(unhostAgentInputSchema).withOutput(external_exports.object({ agentId: external_exports.string() })).mutation("pairWhatsapp").withInput(whatsappPairInputSchema).withOutput(whatsappPairingSchema).query("whatsappMirror").withInput(machineRefSchema).withOutput(whatsappMirrorSettingsSchema).mutation("setWhatsappMirror").withInput(setWhatsappMirrorInputSchema).withOutput(whatsappMirrorSettingsSchema).query("whatsappPairing").withInput(whatsappPairingRefSchema).withOutput(whatsappPairingSchema).mutation("cancelWhatsappPairing").withInput(whatsappPairingRefSchema).withOutput(whatsappPairingSchema).mutation("unpairWhatsapp").withInput(machineRefSchema).withOutput(machineSchema).build();
|
|
87314
|
-
var computeFleetTrpc = defineTrpcContract("compute").query("whatsappComputer").withInput(whatsappComputerInputSchema).withOutput(whatsappComputerSchema).mutation("prepareWhatsappComputer").withInput(whatsappComputerInputSchema).withOutput(whatsappComputerSchema).mutation("warmComputer").withInput(computeWorkspaceInputSchema).withOutput(warmComputerSchema).query("myComputers").withInput(computeWorkspaceInputSchema).withOutput(myComputersSchema).mutation("createComputer").withInput(createComputerInputSchema).withOutput(computerStatusSchema).mutation("deleteComputer").withInput(deleteComputerInputSchema).withOutput(deleteComputerAnswerSchema).mutation("setComputerCreators").withInput(setComputerCreatorsInputSchema).withOutput(computerStatusSchema).mutation("setAgentComputer").withInput(setAgentComputerInputSchema).withOutput(agentComputerAnswerSchema).query("whatsappAgents").withInput(machineRefSchema).withOutput(whatsappAgentsSchema).mutation("setWhatsappAgent").withInput(setWhatsappAgentInputSchema).withOutput(whatsappAgentsSchema).mutation("setWhatsappAgentLease").withInput(setWhatsappAgentLeaseInputSchema).withOutput(whatsappAgentsSchema).mutation("setWhatsappEveryAgent").withInput(setWhatsappEveryAgentInputSchema).withOutput(whatsappAgentsSchema).mutation("setWhatsappAgentAccess").withInput(setWhatsappAgentAccessInputSchema).withOutput(whatsappAgentsSchema).mutation("checkWhatsappNow").withInput(machineRefSchema).withOutput(whatsappMirrorSettingsSchema).build();
|
|
87670
|
+
var computeFleetTrpc = defineTrpcContract("compute").query("whatsappComputer").withInput(whatsappComputerInputSchema).withOutput(whatsappComputerSchema).mutation("prepareWhatsappComputer").withInput(whatsappComputerInputSchema).withOutput(whatsappComputerSchema).mutation("warmComputer").withInput(computeWorkspaceInputSchema).withOutput(warmComputerSchema).query("myComputers").withInput(computeWorkspaceInputSchema).withOutput(myComputersSchema).query("personComputer").withInput(personComputerInputSchema).withOutput(computerUseSchema2).mutation("createComputer").withInput(createComputerInputSchema).withOutput(computerStatusSchema).mutation("deleteComputer").withInput(deleteComputerInputSchema).withOutput(deleteComputerAnswerSchema).mutation("setComputerCreators").withInput(setComputerCreatorsInputSchema).withOutput(computerStatusSchema).mutation("setAgentComputer").withInput(setAgentComputerInputSchema).withOutput(agentComputerAnswerSchema).query("whatsappAgents").withInput(machineRefSchema).withOutput(whatsappAgentsSchema).mutation("setWhatsappAgent").withInput(setWhatsappAgentInputSchema).withOutput(whatsappAgentsSchema).mutation("setWhatsappAgentLease").withInput(setWhatsappAgentLeaseInputSchema).withOutput(whatsappAgentsSchema).mutation("setWhatsappEveryAgent").withInput(setWhatsappEveryAgentInputSchema).withOutput(whatsappAgentsSchema).mutation("setWhatsappAgentAccess").withInput(setWhatsappAgentAccessInputSchema).withOutput(whatsappAgentsSchema).mutation("checkWhatsappNow").withInput(machineRefSchema).withOutput(whatsappMirrorSettingsSchema).query("whatsappChatPeople").withInput(whatsappChatPeopleInputSchema).withOutput(whatsappChatPeopleSchema).build();
|
|
87315
87671
|
var computeTrpc = joinTrpcContracts("compute", computeCoreTrpc, computeFleetTrpc);
|
|
87316
87672
|
var restMachineInputDefinition = external_exports.object({ machine: external_exports.string().min(1).max(64) });
|
|
87317
87673
|
var restRenameInputDefinition = external_exports.object({
|
|
@@ -87383,6 +87739,7 @@ var ComputeWhatsappMessagingSlot = computeUi.component("whatsapp-messaging");
|
|
|
87383
87739
|
var ComputeBrowserTabSlot = computeUi.component("browser-tab");
|
|
87384
87740
|
var ComputeOpenBrowserSlot = computeUi.component("open-browser");
|
|
87385
87741
|
var ComputeLoginTerminalSlot = computeUi.component("login-terminal");
|
|
87742
|
+
var ComputeComputerUseSlot = computeUi.component("computer-use");
|
|
87386
87743
|
|
|
87387
87744
|
// ../../modules/compute/contract/src/computer-copy.ts
|
|
87388
87745
|
var COMPUTER_COPY_MAX_BYTES = 2 * 1024 * 1024 * 1024;
|
|
@@ -89235,6 +89592,15 @@ var historyInputDefinition = external_exports.object({
|
|
|
89235
89592
|
before: external_exports.iso.datetime()
|
|
89236
89593
|
});
|
|
89237
89594
|
var discordHistoryInputSchema = historyInputDefinition;
|
|
89595
|
+
var channelPeopleInputDefinition = external_exports.object({
|
|
89596
|
+
workspaceId: workspaceIdSchema24,
|
|
89597
|
+
channelId: external_exports.string().min(1).max(200)
|
|
89598
|
+
});
|
|
89599
|
+
var discordChannelPeopleInputSchema = channelPeopleInputDefinition;
|
|
89600
|
+
var channelPeopleDefinition = external_exports.object({
|
|
89601
|
+
people: external_exports.array(external_exports.object({ name: external_exports.string().min(1).max(100) })).max(200)
|
|
89602
|
+
});
|
|
89603
|
+
var discordChannelPeopleSchema = channelPeopleDefinition;
|
|
89238
89604
|
var discordFileDefinition = external_exports.object({
|
|
89239
89605
|
id: external_exports.string(),
|
|
89240
89606
|
name: external_exports.string(),
|
|
@@ -89288,7 +89654,7 @@ var DISCORD_KEY_PATHS = {
|
|
|
89288
89654
|
history: "/api/discord/history"
|
|
89289
89655
|
};
|
|
89290
89656
|
var DiscordApi = moduleApi()("discord");
|
|
89291
|
-
var discordTrpc = defineTrpcContract("discord").query("overview").withInput(workspaceInput4).withOutput(discordOverviewSchema).mutation("beginSetup").withInput(workspaceInput4).withOutput(discordSetupSchema).mutation("saveApp").withInput(saveDiscordAppInputSchema).withOutput(startedDiscordAuthorizeSchema).mutation("startInstall").withInput(workspaceInput4).withOutput(startedDiscordAuthorizeSchema).mutation("startLink").withInput(discordGuildInputSchema).withOutput(startedDiscordAuthorizeSchema).mutation("unlink").withInput(discordGuildInputSchema).withOutput(discordConnectionViewSchema).query("channels").withInput(discordGuildInputSchema).withOutput(external_exports.array(discordChannelViewSchema)).mutation("pick").withInput(discordPickInputSchema).withOutput(discordChannelViewSchema).mutation("updateConnection").withInput(updateDiscordConnectionInputSchema).withOutput(discordConnectionViewSchema).mutation("disconnect").withInput(discordGuildInputSchema).withOutput(external_exports.object({ disconnected: external_exports.literal(true) })).query("history").withInput(discordHistoryInputSchema).withOutput(discordHistoryPageSchema).build();
|
|
89657
|
+
var discordTrpc = defineTrpcContract("discord").query("overview").withInput(workspaceInput4).withOutput(discordOverviewSchema).mutation("beginSetup").withInput(workspaceInput4).withOutput(discordSetupSchema).mutation("saveApp").withInput(saveDiscordAppInputSchema).withOutput(startedDiscordAuthorizeSchema).mutation("startInstall").withInput(workspaceInput4).withOutput(startedDiscordAuthorizeSchema).mutation("startLink").withInput(discordGuildInputSchema).withOutput(startedDiscordAuthorizeSchema).mutation("unlink").withInput(discordGuildInputSchema).withOutput(discordConnectionViewSchema).query("channels").withInput(discordGuildInputSchema).withOutput(external_exports.array(discordChannelViewSchema)).mutation("pick").withInput(discordPickInputSchema).withOutput(discordChannelViewSchema).mutation("updateConnection").withInput(updateDiscordConnectionInputSchema).withOutput(discordConnectionViewSchema).mutation("disconnect").withInput(discordGuildInputSchema).withOutput(external_exports.object({ disconnected: external_exports.literal(true) })).query("history").withInput(discordHistoryInputSchema).withOutput(discordHistoryPageSchema).query("channelPeople").withInput(discordChannelPeopleInputSchema).withOutput(discordChannelPeopleSchema).build();
|
|
89292
89658
|
|
|
89293
89659
|
// ../../modules/discord/contract/src/discord.config.ts
|
|
89294
89660
|
var positiveInt6 = external_exports.coerce.number().int().positive();
|
|
@@ -89296,6 +89662,8 @@ var discordConfig = Config.define((c) => ({
|
|
|
89296
89662
|
publicBaseUrl,
|
|
89297
89663
|
/** The versioned REST base; routes are `${apiUrl}/<route>`. */
|
|
89298
89664
|
apiUrl: c.env("DISCORD_API_URL", external_exports.url().default("https://discord.com/api/v10")),
|
|
89665
|
+
/** On, Discord's changes land through chat's merge rows (ADR-202 M3); off keeps the old path. */
|
|
89666
|
+
mirrorObserve: c.env("DISCORD_MIRROR_OBSERVE", external_exports.enum(["on", "off"]).default("off")),
|
|
89299
89667
|
/** Discord's consent page for installs and links. */
|
|
89300
89668
|
authorizeUrl: c.env(
|
|
89301
89669
|
"DISCORD_AUTHORIZE_URL",
|
|
@@ -89389,6 +89757,10 @@ var sweepIntentDefinition = external_exports.object({
|
|
|
89389
89757
|
workspaceId: external_exports.string().min(1),
|
|
89390
89758
|
guildId: external_exports.string().min(1)
|
|
89391
89759
|
});
|
|
89760
|
+
var webhookProbeRequestedDefinition = external_exports.object({
|
|
89761
|
+
workspaceId: external_exports.string().min(1),
|
|
89762
|
+
runId: external_exports.string().min(1)
|
|
89763
|
+
});
|
|
89392
89764
|
|
|
89393
89765
|
// src/services/discord-commands.service.ts
|
|
89394
89766
|
var DISCORD_USAGE = `Usage (a person's key; Discord stays the source, each person picks their own channels):
|
|
@@ -90522,7 +90894,7 @@ var EXTERNAL_USAGE = `Usage:
|
|
|
90522
90894
|
laze external accept-share <share id> [--name <name>] [--private] take a shared channel (admins)
|
|
90523
90895
|
laze external decline-share <share id> turn a shared channel down (admins)
|
|
90524
90896
|
laze external unshare <share id|#channel> stop sharing a channel, or leave one shared with you (admins)
|
|
90525
|
-
laze external dm <person> [--connection <workspace>] [<message
|
|
90897
|
+
laze external dm <person> [--connection <workspace>] [<message>|-] a DM with someone you share a channel with
|
|
90526
90898
|
laze external block <workspace> disconnect and refuse their invitations (admins)
|
|
90527
90899
|
laze external report <workspace> --note "<why>" report a workspace to Laze staff, and block it (admins)`;
|
|
90528
90900
|
var printJson6 = (context, data) => context.out(`${JSON.stringify(data, null, 2)}
|
|
@@ -90776,7 +91148,7 @@ async function unshare({ context, args }) {
|
|
|
90776
91148
|
}
|
|
90777
91149
|
async function direct({ context, args }) {
|
|
90778
91150
|
const person = wordAt5({ args, at: 2, what: "the person" });
|
|
90779
|
-
const body = args.words.
|
|
91151
|
+
const body = args.words.length > 3 ? await textOf({ context, args, from: 3 }) : "";
|
|
90780
91152
|
const connection = flagText({ args, name: "connection" })?.trim();
|
|
90781
91153
|
const { client } = await clientOf2({ context, args });
|
|
90782
91154
|
const answer6 = await client.post(EXTERNAL_CONNECTION_REST_PATHS.dm, {
|
|
@@ -91392,6 +91764,8 @@ var feedCommentPlaceSchema = feedCommentPlaceSchemaDefinition;
|
|
|
91392
91764
|
var saveCommentDraftInputSchemaDefinition = external_exports.object({
|
|
91393
91765
|
...itemRef.shape,
|
|
91394
91766
|
text: external_exports.string().max(MESSAGE_BODY_MAX),
|
|
91767
|
+
/** The chips of uploaded files in the comment; none from an older client. */
|
|
91768
|
+
files: external_exports.array(draftFileSchema).max(FEED_ATTACHMENTS_MAX).default([]),
|
|
91395
91769
|
/** The writer's clock when they typed it; the newest save wins. */
|
|
91396
91770
|
savedAt: external_exports.iso.datetime()
|
|
91397
91771
|
});
|
|
@@ -91399,7 +91773,14 @@ var saveCommentDraftInputSchema = saveCommentDraftInputSchemaDefinition;
|
|
|
91399
91773
|
var commentDraftSavedSchemaDefinition = external_exports.object({ saved: external_exports.boolean() });
|
|
91400
91774
|
var commentDraftSavedSchema = commentDraftSavedSchemaDefinition;
|
|
91401
91775
|
var commentDraftListSchemaDefinition = external_exports.object({
|
|
91402
|
-
drafts: external_exports.array(
|
|
91776
|
+
drafts: external_exports.array(
|
|
91777
|
+
external_exports.object({
|
|
91778
|
+
itemId: external_exports.string(),
|
|
91779
|
+
text: external_exports.string(),
|
|
91780
|
+
files: external_exports.array(draftFileSchema).default([]),
|
|
91781
|
+
savedAt: external_exports.iso.datetime()
|
|
91782
|
+
})
|
|
91783
|
+
),
|
|
91403
91784
|
/** Comments sent or deleted, and when, so a copy saved before that is dropped. */
|
|
91404
91785
|
cleared: external_exports.array(external_exports.object({ itemId: external_exports.string(), savedAt: external_exports.iso.datetime() }))
|
|
91405
91786
|
});
|
|
@@ -95306,6 +95687,7 @@ var verificationStatusSchemaDefinition = external_exports.discriminatedUnion("st
|
|
|
95306
95687
|
external_exports.object({ state: external_exports.literal("verified") }),
|
|
95307
95688
|
external_exports.object({ state: external_exports.literal("pending"), email: external_exports.string() })
|
|
95308
95689
|
]);
|
|
95690
|
+
var accountLookupSchemaDefinition = external_exports.object({ exists: external_exports.boolean() });
|
|
95309
95691
|
|
|
95310
95692
|
// ../../modules/auth/contract/src/auth.api.ts
|
|
95311
95693
|
var authUserSchemaDefinition = external_exports.object({
|
|
@@ -95813,6 +96195,12 @@ var revokeInviteInputSchemaDefinition = external_exports.object({
|
|
|
95813
96195
|
inviteId: external_exports.string().min(1)
|
|
95814
96196
|
});
|
|
95815
96197
|
var revokeInviteInputSchema = revokeInviteInputSchemaDefinition;
|
|
96198
|
+
var resendInviteInputSchemaDefinition = external_exports.object({
|
|
96199
|
+
workspaceId: external_exports.string().min(1),
|
|
96200
|
+
inviteId: external_exports.string().min(1),
|
|
96201
|
+
/** Where the invited person lands on joining now; it replaces the invitation's landing. */
|
|
96202
|
+
landing: inviteLandingSchema.nullable()
|
|
96203
|
+
});
|
|
95816
96204
|
var copiedInviteLinkSchemaDefinition = external_exports.object({
|
|
95817
96205
|
inviteId: external_exports.string().min(1),
|
|
95818
96206
|
email: external_exports.string(),
|
|
@@ -95932,6 +96320,25 @@ var requestApprovedDefinition = external_exports.object({
|
|
|
95932
96320
|
/** ISO 8601. */
|
|
95933
96321
|
at: external_exports.iso.datetime()
|
|
95934
96322
|
});
|
|
96323
|
+
var accessRequestChangedDefinition = external_exports.object({
|
|
96324
|
+
workspaceId: external_exports.string().min(1),
|
|
96325
|
+
requestId: external_exports.string().min(1),
|
|
96326
|
+
change: external_exports.enum(["requested", "approved", "denied", "withdrawn", "expired"]),
|
|
96327
|
+
/** Unique per change. */
|
|
96328
|
+
changeId: external_exports.string().min(1),
|
|
96329
|
+
/** ISO 8601. */
|
|
96330
|
+
at: external_exports.iso.datetime()
|
|
96331
|
+
});
|
|
96332
|
+
var memberRoleChangedDefinition = external_exports.object({
|
|
96333
|
+
workspaceId: external_exports.string().min(1),
|
|
96334
|
+
userId: external_exports.string().min(1),
|
|
96335
|
+
/** The role the member holds now. */
|
|
96336
|
+
role: external_exports.string().min(1),
|
|
96337
|
+
/** Unique per change. */
|
|
96338
|
+
changeId: external_exports.string().min(1),
|
|
96339
|
+
/** ISO 8601. */
|
|
96340
|
+
at: external_exports.iso.datetime()
|
|
96341
|
+
});
|
|
95935
96342
|
var deletionScheduledDefinition = external_exports.object({
|
|
95936
96343
|
workspaceId: external_exports.string().min(1),
|
|
95937
96344
|
byUserId: external_exports.string().min(1),
|
|
@@ -99139,7 +99546,7 @@ var WHATSAPP_BUSINESS_USAGE = `Usage (the workspace's WhatsApp Business number o
|
|
|
99139
99546
|
laze whatsapp-business status the number, its name, the answering agent, the reply mode
|
|
99140
99547
|
laze whatsapp-business conversations [--limit <n>] the conversations you are in, newest first
|
|
99141
99548
|
laze whatsapp-business read <contact> [--limit <n>] a contact's messages, oldest first, with each send's state
|
|
99142
|
-
laze whatsapp-business send <contact> "<text>" text, only within 24 hours of their last message
|
|
99549
|
+
laze whatsapp-business send <contact> "<text>"|- text (- reads stdin), only within 24 hours of their last message
|
|
99143
99550
|
laze whatsapp-business templates the account's message templates
|
|
99144
99551
|
laze whatsapp-business send-template <contact> <template> [--language <code>] [--param <text>]... [--yes]
|
|
99145
99552
|
without --yes it prints Meta's price and sends nothing; to someone who never wrote,
|
|
@@ -99310,7 +99717,7 @@ var read2 = async ({ context, args, client }) => {
|
|
|
99310
99717
|
}
|
|
99311
99718
|
};
|
|
99312
99719
|
var send3 = async ({ context, args, client }) => {
|
|
99313
|
-
const text3 = args.words.
|
|
99720
|
+
const text3 = args.words.length > 3 ? await textOf({ context, args, from: 3 }) : args.rest.join(" ").trim();
|
|
99314
99721
|
if (!text3) throw new CliUsageError(WHATSAPP_BUSINESS_USAGE);
|
|
99315
99722
|
const asked = await client.post(WHATSAPP_BUSINESS_REST_PATHS.send, {
|
|
99316
99723
|
to: wordAt10(args, 2),
|
|
@@ -99497,7 +99904,7 @@ var USAGE19 = [
|
|
|
99497
99904
|
" laze whatsapp read [<machine>] <chat> [--limit <n>] a chat's last messages, oldest first",
|
|
99498
99905
|
" (a read your owner set to Always ask waits for their answer; --request <id> picks it up later)",
|
|
99499
99906
|
" laze whatsapp file [<machine>] <chat> <message-id> [--out <path>] save a message's photo, voice message or file",
|
|
99500
|
-
' laze whatsapp send <machine> <chat> "<text>"
|
|
99907
|
+
' laze whatsapp send <machine> <chat> "<text>"|- send as the owner (- reads stdin); an agent waits for their approval',
|
|
99501
99908
|
" laze whatsapp status <send-id> where a send stands",
|
|
99502
99909
|
" laze whatsapp sync [<machine>] check WhatsApp now (the owner only)",
|
|
99503
99910
|
WHATSAPP_PAIRING_USAGE,
|
|
@@ -99634,7 +100041,7 @@ Still waiting. Run \`laze whatsapp status ${send5.id}\` later to see the answer.
|
|
|
99634
100041
|
return send5.state === "sent" || !SETTLED.has(send5.state) ? 0 : 1;
|
|
99635
100042
|
}
|
|
99636
100043
|
async function send4({ context, args }) {
|
|
99637
|
-
const text3 = args.words.
|
|
100044
|
+
const text3 = args.words.length > 4 ? await textOf({ context, args, from: 4 }) : args.rest.join(" ").trim();
|
|
99638
100045
|
if (!text3) throw new CliUsageError(USAGE19);
|
|
99639
100046
|
const client = await computeClient({ context, args });
|
|
99640
100047
|
const asked = await client.post(PATHS3.send, {
|
package/package.json
CHANGED