@lazehq/cli 0.1.95 → 0.1.96

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.
Files changed (2) hide show
  1. package/dist/laze.mjs +385 -113
  2. package/package.json +1 -1
package/dist/laze.mjs CHANGED
@@ -37069,10 +37069,13 @@ function chooseProfile({
37069
37069
  config: config2,
37070
37070
  flag: flag2,
37071
37071
  environment,
37072
+ session,
37072
37073
  cwd
37073
37074
  }) {
37075
+ const heard = session ? config2.sessions?.[session] : void 0;
37076
+ const sessionBound = heard && config2.profiles[heard] ? heard : void 0;
37074
37077
  const bound = boundProfileOf({ bindings: config2.bindings, cwd });
37075
- const name3 = flag2 || environment || bound || config2.current;
37078
+ const name3 = flag2 || environment || sessionBound || bound || config2.current;
37076
37079
  const profile = name3 ? config2.profiles[name3] : void 0;
37077
37080
  return name3 && profile ? { name: name3, profile } : { name: void 0, profile: void 0 };
37078
37081
  }
@@ -37171,7 +37174,7 @@ function flagText({
37171
37174
  }
37172
37175
 
37173
37176
  // src/rules/cli-version.rules.ts
37174
- var STAMPED = "0.1.95";
37177
+ var STAMPED = "0.1.96";
37175
37178
  function cliVersionOf({ stamped = STAMPED } = {}) {
37176
37179
  return stamped.startsWith("__") ? "dev" : stamped;
37177
37180
  }
@@ -59504,6 +59507,9 @@ var { isSaas } = Config.define((c) => ({
59504
59507
  var { nodeEnvironment } = Config.define((c) => ({
59505
59508
  nodeEnvironment: c.env("NODE_ENV", external_exports.string().optional())
59506
59509
  }));
59510
+ var { apiSlot } = Config.define((c) => ({
59511
+ apiSlot: c.env("LAZE_API_SLOT", external_exports.enum(["a", "b"]).default("a"))
59512
+ }));
59507
59513
  var { rawSocketPort } = Config.define((c) => ({
59508
59514
  rawSocketPort: c.env("VOICE_WS_PORT", external_exports.coerce.number().int().min(0).max(65535).default(3300))
59509
59515
  }));
@@ -60180,12 +60186,14 @@ var VAULT_GMAIL_SEND_PATHS = [
60180
60186
  "/upload/gmail/v1/users/*/drafts/send"
60181
60187
  ];
60182
60188
  var VAULT_MAX_LEASE_SECONDS = 2 * 86400;
60189
+ var VAULT_LONGEST_LEASE_SECONDS = 7 * 86400;
60183
60190
  var VAULT_LEASE_CHOICES = [
60184
60191
  15 * 60,
60185
60192
  3600,
60186
60193
  8 * 3600,
60187
60194
  86400,
60188
- VAULT_MAX_LEASE_SECONDS
60195
+ VAULT_MAX_LEASE_SECONDS,
60196
+ VAULT_LONGEST_LEASE_SECONDS
60189
60197
  ];
60190
60198
  var vaultConnectionSchemaDefinition = external_exports.object({
60191
60199
  id: external_exports.string().min(1),
@@ -60233,7 +60241,7 @@ var createVaultConnectionInputSchemaDefinition = external_exports.object({
60233
60241
  sensitivity: vaultSensitivitySchema.optional(),
60234
60242
  rules: external_exports.string().max(2e3).default(""),
60235
60243
  approverUserIds: external_exports.array(external_exports.string().min(1)).default([]),
60236
- maxLeaseSeconds: external_exports.number().int().positive().max(VAULT_MAX_LEASE_SECONDS).nullable().default(null),
60244
+ maxLeaseSeconds: external_exports.number().int().positive().max(VAULT_LONGEST_LEASE_SECONDS).nullable().default(null),
60237
60245
  everyUseAsks: external_exports.boolean().default(false),
60238
60246
  secret: vaultSecretBundleSchema,
60239
60247
  egress: vaultEgressTargetSchema.nullable().default(null)
@@ -60246,7 +60254,7 @@ var updateVaultConnectionInputSchemaDefinition = external_exports.object({
60246
60254
  sensitivity: vaultSensitivitySchema.optional(),
60247
60255
  rules: external_exports.string().max(2e3).optional(),
60248
60256
  approverUserIds: external_exports.array(external_exports.string().min(1)).optional(),
60249
- maxLeaseSeconds: external_exports.number().int().positive().max(VAULT_MAX_LEASE_SECONDS).nullable().optional(),
60257
+ maxLeaseSeconds: external_exports.number().int().positive().max(VAULT_LONGEST_LEASE_SECONDS).nullable().optional(),
60250
60258
  everyUseAsks: external_exports.boolean().optional(),
60251
60259
  /** On from anywhere; off only from the page, with a fresh device proof. */
60252
60260
  deviceApproval: external_exports.boolean().optional(),
@@ -60640,6 +60648,17 @@ var vaultMostAskedSchemaDefinition = external_exports.object({
60640
60648
  });
60641
60649
  var vaultMostAskedSchema = vaultMostAskedSchemaDefinition;
60642
60650
  var vaultUseOriginSchema = external_exports.enum(["computer", "connected"]);
60651
+ var vaultUseJudgeSchemaDefinition = external_exports.object({
60652
+ /** Let it through, asked a person, held it back, or could not check (off or no answer). */
60653
+ verdict: external_exports.enum(["allowed", "asked", "refused", "unchecked"]),
60654
+ /** The chance, 0 to 1, it gave the use fitting the key's rules; null when it gave none. */
60655
+ confidence: external_exports.number().min(0).max(1).nullable(),
60656
+ /** One plain line of why, from a fixed set: never model text, a message or a value. */
60657
+ line: external_exports.string(),
60658
+ /** The line as a code, for clients that translate it. */
60659
+ reason: external_exports.enum(["fits", "unsure", "unbacked", "not_asked", "against_rules", "off", "no_answer"]).optional()
60660
+ });
60661
+ var vaultUseJudgeSchema = vaultUseJudgeSchemaDefinition;
60643
60662
  var vaultConnectionUseSchemaDefinition = external_exports.object({
60644
60663
  at: external_exports.iso.datetime(),
60645
60664
  action: external_exports.string(),
@@ -60667,7 +60686,9 @@ var vaultConnectionUseSchemaDefinition = external_exports.object({
60667
60686
  to: vaultSensitivitySchema.nullable(),
60668
60687
  direction: external_exports.enum(["raised", "lowered"]).nullable(),
60669
60688
  method: external_exports.string().nullable()
60670
- }).nullable().optional()
60689
+ }).nullable().optional(),
60690
+ /** When the automatic check decided the use: its verdict, confidence and why. */
60691
+ judge: vaultUseJudgeSchema.nullable().optional()
60671
60692
  });
60672
60693
  var vaultConnectionUseSchema = vaultConnectionUseSchemaDefinition;
60673
60694
  var vaultKeyActivitySchemaDefinition = external_exports.object({
@@ -60743,7 +60764,7 @@ var vaultLevelLimitSchemaDefinition = external_exports.object({
60743
60764
  subject: vaultLimitSubjectSchema,
60744
60765
  most: vaultSensitivitySchema,
60745
60766
  /** The longest lease an approval may grant on this subject's connections; null is no cap. */
60746
- maxLeaseSeconds: external_exports.number().int().positive().max(VAULT_MAX_LEASE_SECONDS).nullable(),
60767
+ maxLeaseSeconds: external_exports.number().int().positive().max(VAULT_LONGEST_LEASE_SECONDS).nullable(),
60747
60768
  /** Turned off by an admin: no one adds one and agents cannot use the ones there are. */
60748
60769
  blocked: external_exports.boolean().default(false),
60749
60770
  /** New connections a member adds wait for an admin's approval before agents use them. */
@@ -60756,7 +60777,7 @@ var setVaultLevelLimitInputSchemaDefinition = external_exports.object({
60756
60777
  workspaceId: external_exports.string().min(1),
60757
60778
  subject: vaultLimitSubjectSchema,
60758
60779
  most: vaultSensitivitySchema.exclude(["auto"]).nullable(),
60759
- maxLeaseSeconds: external_exports.number().int().min(60).max(VAULT_MAX_LEASE_SECONDS).nullable().optional(),
60780
+ maxLeaseSeconds: external_exports.number().int().min(60).max(VAULT_LONGEST_LEASE_SECONDS).nullable().optional(),
60760
60781
  /** Turns the connector off or on again; left out it stays as it is. */
60761
60782
  blocked: external_exports.boolean().optional(),
60762
60783
  /** Asks an admin to approve new connections, or stops asking; left out it stays. */
@@ -62982,6 +63003,7 @@ var reachableConversationSchemaDefinition = external_exports.object({
62982
63003
  /** Whether any of the asked readers may read it; members are listed either way. */
62983
63004
  readable: external_exports.boolean()
62984
63005
  });
63006
+ var replySideSchema = external_exports.enum(["laze", "slack"]);
62985
63007
  var conversationSummarySchemaDefinition = external_exports.object({
62986
63008
  ...conversationSchemaDefinition.shape,
62987
63009
  lastReadSeq: external_exports.number().int().nonnegative(),
@@ -62993,7 +63015,14 @@ var conversationSummarySchemaDefinition = external_exports.object({
62993
63015
  /** A timed mute ends on its own then; null or absent while muted means until unmuted. */
62994
63016
  mutedUntil: external_exports.iso.datetime().nullable().optional(),
62995
63017
  /** No message for SIDEBAR_ACTIVE_DAYS days, by the server's clock; absent means active. */
62996
- inactive: external_exports.boolean().optional()
63018
+ inactive: external_exports.boolean().optional(),
63019
+ /**
63020
+ * When the reader last read or wrote here, from any device or a mirror; orders Recent on every
63021
+ * client. Absent when they never did.
63022
+ */
63023
+ activeAt: external_exports.iso.datetime().optional(),
63024
+ /** In a Laze DM paired with a Slack DM: the side the reader picked; absent follows the other. */
63025
+ replySide: replySideSchema.optional()
62997
63026
  });
62998
63027
  var conversationSummarySchema = conversationSummarySchemaDefinition;
62999
63028
  var directoryEntrySchemaDefinition = external_exports.object({
@@ -63726,6 +63755,13 @@ var setNotifyInputSchemaDefinition = external_exports.object({
63726
63755
  mutedUntil: external_exports.iso.datetime().nullable().optional()
63727
63756
  });
63728
63757
  var setNotifyInputSchema = setNotifyInputSchemaDefinition;
63758
+ var setReplySideInputSchemaDefinition = external_exports.object({
63759
+ workspaceId: workspaceIdSchema,
63760
+ channelId: idSchema4,
63761
+ /** Null forgets the pick, so replies follow the side the other person last wrote from. */
63762
+ side: replySideSchema.nullable()
63763
+ });
63764
+ var setReplySideInputSchema = setReplySideInputSchemaDefinition;
63729
63765
  var followThreadInputSchemaDefinition = external_exports.object({
63730
63766
  workspaceId: workspaceIdSchema,
63731
63767
  messageId: idSchema4,
@@ -64121,7 +64157,7 @@ var chatConversationsTrpc = defineTrpcContract("chat").query("overview", { mirro
64121
64157
  var chatChannelRolesTrpc = defineTrpcContract("chat").mutation("setChannelRole").withInput(setChannelRoleInputSchema).withOutput(conversationSchema).mutation("extendChannel").withInput(extendChannelInputSchema).withOutput(conversationSchema).build();
64122
64158
  var chatMessagesTrpc = defineTrpcContract("chat").query("history", { mirrored: historyMirror }).withInput(historyInputSchema).withOutput(historyPageSchema).query("thread").withInput(messageInputSchema).withOutput(threadSchema).query("message").withInput(messageInputSchema).withOutput(messageSchema).mutation("post").withInput(postMessageInputSchema).withOutput(messageSchema).mutation("forward").withInput(forwardMessageInputSchema).withOutput(messageSchema).mutation("addMentioned").withInput(addMentionedInputSchema).withOutput(messageSchema).mutation("edit").withInput(editMessageInputSchema).withOutput(messageSchema).mutation("delete").withInput(messageInputSchema).withOutput(messageSchema).mutation("remove").withInput(messageInputSchema).withOutput(messageSchema).mutation("react").withInput(reactInputSchema).withOutput(messageSchema).mutation("signalTyping").withInput(signalTypingInputSchema).withOutput(external_exports.object({ sent: external_exports.literal(true) })).mutation("markRead").withInput(markReadInputSchema).withOutput(external_exports.object({ lastReadSeq: external_exports.number().int().nonnegative() })).mutation("markUnread").withInput(markUnreadInputSchema).withOutput(external_exports.object({ lastReadSeq: external_exports.number().int().nonnegative() })).query("search").withInput(searchInputSchema).withOutput(searchResultSchema).build();
64123
64159
  var chatFilesTrpc = defineTrpcContract("chat").mutation("startUpload").withInput(startUploadInputSchema).withOutput(uploadTicketSchema).mutation("completeUpload").withInput(completeUploadInputSchema).withOutput(attachmentSchema).mutation("transcribeVoiceSegment").withInput(transcribeVoiceSegmentInputSchema).withOutput(voiceSegmentTextSchema).mutation("abortUpload").withInput(fileInputSchema).withOutput(external_exports.object({ aborted: external_exports.literal(true) })).query("fileLink").withInput(fileLinkInputSchema).withOutput(fileLinkSchema).query("channelFiles").withInput(channelFilesInputSchema).withOutput(channelFilesSchema).mutation("renameAttachment").withInput(renameAttachmentInputSchema).withOutput(attachmentSchema).mutation("hideUnfurl").withInput(hideUnfurlInputSchema).withOutput(messageSchema).query("unfurlImage").withInput(unfurlImageInputSchema).withOutput(fileLinkSchema).query("searchGifs").withInput(searchGifsInputSchema).withOutput(gifResultsSchema).build();
64124
- var chatFollowingTrpc = defineTrpcContract("chat").mutation("setNotify").withInput(setNotifyInputSchema).withOutput(conversationSummarySchema).mutation("hideConversation").withInput(channelInputSchema).withOutput(external_exports.object({ hidden: external_exports.literal(true) })).mutation("followThread").withInput(followThreadInputSchema).withOutput(threadFollowSchema).query("threadFollow").withInput(messageInputSchema).withOutput(threadFollowSchema).query("threads", { mirrored: threadsMirror }).withInput(threadsInputSchema).withOutput(threadsPageSchema).query("threadsUnread").withInput(workspaceInputSchema).withOutput(threadsUnreadSchema).query("notificationCount").withInput(workspaceInputSchema).withOutput(external_exports.object({ count: external_exports.number().int().nonnegative() })).mutation("markThreadRead").withInput(messageInputSchema).withOutput(external_exports.object({ read: external_exports.literal(true) })).mutation("pin").withInput(pinMessageInputSchema).withOutput(messageSchema).mutation("retryMirrorDelivery").withInput(messageInputSchema).withOutput(external_exports.object({ retried: external_exports.boolean() })).query("pins").withInput(channelInputSchema).withOutput(pinsPageSchema).query("saved").withInput(savedInputSchema).withOutput(savedPageSchema).query("savedMarks").withInput(workspaceInputSchema).withOutput(savedMarksSchema).mutation("saveMessage").withInput(saveMessageInputSchema).withOutput(savedStatusSchema).mutation("markSavedDone").withInput(markSavedDoneInputSchema).withOutput(savedStatusSchema).mutation("setReminder").withInput(setReminderInputSchema).withOutput(savedStatusSchema).query("activity").withInput(activityInputSchema).withOutput(activityPageSchema).mutation("markActivityRead").withInput(markActivityReadInputSchema).withOutput(external_exports.object({ read: external_exports.literal(true) })).build();
64160
+ var chatFollowingTrpc = defineTrpcContract("chat").mutation("setNotify").withInput(setNotifyInputSchema).withOutput(conversationSummarySchema).mutation("setReplySide").withInput(setReplySideInputSchema).withOutput(conversationSummarySchema).mutation("hideConversation").withInput(channelInputSchema).withOutput(external_exports.object({ hidden: external_exports.literal(true) })).mutation("followThread").withInput(followThreadInputSchema).withOutput(threadFollowSchema).query("threadFollow").withInput(messageInputSchema).withOutput(threadFollowSchema).query("threads", { mirrored: threadsMirror }).withInput(threadsInputSchema).withOutput(threadsPageSchema).query("threadsUnread").withInput(workspaceInputSchema).withOutput(threadsUnreadSchema).query("notificationCount").withInput(workspaceInputSchema).withOutput(external_exports.object({ count: external_exports.number().int().nonnegative() })).mutation("markThreadRead").withInput(messageInputSchema).withOutput(external_exports.object({ read: external_exports.literal(true) })).mutation("pin").withInput(pinMessageInputSchema).withOutput(messageSchema).mutation("retryMirrorDelivery").withInput(messageInputSchema).withOutput(external_exports.object({ retried: external_exports.boolean() })).query("pins").withInput(channelInputSchema).withOutput(pinsPageSchema).query("saved").withInput(savedInputSchema).withOutput(savedPageSchema).query("savedMarks").withInput(workspaceInputSchema).withOutput(savedMarksSchema).mutation("saveMessage").withInput(saveMessageInputSchema).withOutput(savedStatusSchema).mutation("markSavedDone").withInput(markSavedDoneInputSchema).withOutput(savedStatusSchema).mutation("setReminder").withInput(setReminderInputSchema).withOutput(savedStatusSchema).query("activity").withInput(activityInputSchema).withOutput(activityPageSchema).mutation("markActivityRead").withInput(markActivityReadInputSchema).withOutput(external_exports.object({ read: external_exports.literal(true) })).build();
64125
64161
  var chatSessionTrpc = defineTrpcContract("chat").mutation("realtimeToken").withInput(workspaceInputSchema).withOutput(realtimeTokenSchema).query("drafts").withInput(workspaceInputSchema).withOutput(draftListSchema).mutation("saveDraft").withInput(saveDraftInputSchema).withOutput(draftSavedSchema).mutation("deleteDraft").withInput(deleteDraftInputSchema).withOutput(draftSavedSchema).query("sent").withInput(listSentInputSchema).withOutput(sentPageSchema).query("sidebarLayout").withInput(workspaceInputSchema).withOutput(sidebarLayoutSchema).mutation("editSidebar").withInput(editSidebarInputSchema).withOutput(sidebarLayoutSchema).query("readerPreferences").withInput(workspaceInputSchema).withOutput(readerPreferencesSchema).mutation("setReaderPreferences").withInput(setReaderPreferencesInputSchema).withOutput(readerPreferencesSchema).mutation("star").withInput(starInputSchema).withOutput(starStatusSchema).query("starred").withInput(workspaceInputSchema).withOutput(starredListSchema).mutation("scrubSecrets").withInput(scrubChatInputSchema).withOutput(chatScrubReportSchema).mutation("restoreScrubbed").withInput(messageInputSchema).withOutput(messageSchema).build();
64126
64162
  var chatScheduledTrpc = defineTrpcContract("chat").mutation("scheduleMessage").withInput(scheduleMessageInputSchema).withOutput(scheduledMessageSchema).query("scheduled").withInput(listScheduledInputSchema).withOutput(scheduledListSchema).mutation("editScheduled").withInput(editScheduledInputSchema).withOutput(scheduledMessageSchema).mutation("sendScheduledNow").withInput(scheduledInputSchema).withOutput(scheduledMessageSchema).mutation("cancelScheduled").withInput(scheduledInputSchema).withOutput(scheduledMessageSchema).build();
64127
64163
  var chatPresenceTrpc = defineTrpcContract("chat").mutation("heartbeat").withInput(workspaceInputSchema).withOutput(heartbeatSchema).query("presence").withInput(workspaceInputSchema).withOutput(presenceListSchema).mutation("setStatus").withInput(setStatusInputSchema).withOutput(personPresenceSchema).mutation("clearStatus").withInput(workspaceInputSchema).withOutput(personPresenceSchema).mutation("setAway").withInput(setAwayInputSchema).withOutput(personPresenceSchema).build();
@@ -64317,6 +64353,27 @@ var emailMessageSchemaDefinition = external_exports.discriminatedUnion("template
64317
64353
  lines: external_exports.array(external_exports.string()).min(1),
64318
64354
  action: external_exports.string().min(1)
64319
64355
  }),
64356
+ /**
64357
+ * Optional product mail with one picture over the words and one button, such as an apology
64358
+ * after an incident; sent only where `optionalEmailReach` allows, with its off link.
64359
+ */
64360
+ external_exports.object({
64361
+ template: external_exports.literal("announcement"),
64362
+ to: external_exports.email(),
64363
+ locale: localeSchema,
64364
+ url: external_exports.url(),
64365
+ subject: external_exports.string().min(1).max(200),
64366
+ heading: external_exports.string().min(1).max(200),
64367
+ lines: external_exports.array(external_exports.string().min(1).max(600)).min(1).max(4),
64368
+ action: external_exports.string().min(1).max(80),
64369
+ image: external_exports.object({
64370
+ url: external_exports.url(),
64371
+ alt: external_exports.string().max(200),
64372
+ width: external_exports.number().int().positive().max(600),
64373
+ height: external_exports.number().int().positive().max(600)
64374
+ }),
64375
+ unsubscribeUrl: external_exports.url()
64376
+ }),
64320
64377
  /** A Laze app a person waited for is out; `url` is its store page. */
64321
64378
  external_exports.object({
64322
64379
  template: external_exports.literal("appAvailable"),
@@ -64688,12 +64745,18 @@ var pauseSummaryIntentSchemaDefinition = external_exports.object({
64688
64745
  userId: external_exports.string().min(1),
64689
64746
  since: external_exports.iso.datetime()
64690
64747
  });
64748
+ var heldPushTextSchema = external_exports.union([
64749
+ external_exports.object({ sealed: external_exports.string().min(1), version: external_exports.number().int().positive() }).strict(),
64750
+ external_exports.object({ unavailable: external_exports.literal(true) }).strict()
64751
+ ]);
64752
+ var sealedNameSchema = heldPushTextSchema;
64691
64753
  var noticeHeldPayloadSchemaDefinition = external_exports.object({
64692
64754
  workspaceId: external_exports.string().min(1),
64693
64755
  userId: external_exports.string().min(1),
64694
64756
  noticeId: external_exports.string().min(1),
64695
64757
  fromKey: external_exports.string().min(1),
64696
64758
  fromName: external_exports.string(),
64759
+ fromNameSealed: sealedNameSchema.optional(),
64697
64760
  at: external_exports.iso.datetime()
64698
64761
  });
64699
64762
  var burstSummaryStateSchemaDefinition = external_exports.object({
@@ -64701,6 +64764,7 @@ var burstSummaryStateSchemaDefinition = external_exports.object({
64701
64764
  userId: external_exports.string(),
64702
64765
  fromKey: external_exports.string(),
64703
64766
  fromName: external_exports.string(),
64767
+ fromNameSealed: sealedNameSchema.optional(),
64704
64768
  /** When the first held notice of this burst came, in epoch milliseconds. */
64705
64769
  since: external_exports.number().nullable(),
64706
64770
  /** When the latest held notice came. */
@@ -64711,12 +64775,9 @@ var burstSummaryIntentSchemaDefinition = external_exports.object({
64711
64775
  userId: external_exports.string().min(1),
64712
64776
  fromKey: external_exports.string().min(1),
64713
64777
  fromName: external_exports.string(),
64778
+ fromNameSealed: sealedNameSchema.optional(),
64714
64779
  since: external_exports.iso.datetime()
64715
64780
  });
64716
- var heldPushTextSchema = external_exports.union([
64717
- external_exports.object({ sealed: external_exports.string().min(1), version: external_exports.number().int().positive() }).strict(),
64718
- external_exports.object({ unavailable: external_exports.literal(true) }).strict()
64719
- ]);
64720
64781
  var heldFeedPushSchema = external_exports.object({
64721
64782
  itemId: external_exports.string().min(1),
64722
64783
  idempotencyKey: external_exports.string().min(1),
@@ -64729,6 +64790,7 @@ var heldFeedPushSchema = external_exports.object({
64729
64790
  var heldBurstPushSchema = external_exports.object({
64730
64791
  fromKey: external_exports.string().min(1),
64731
64792
  fromName: external_exports.string(),
64793
+ fromNameSealed: sealedNameSchema.optional(),
64732
64794
  since: external_exports.iso.datetime()
64733
64795
  });
64734
64796
  var heldPhonePushShape = {
@@ -64742,7 +64804,9 @@ var heldPhonePushShape = {
64742
64804
  feed: heldFeedPushSchema.optional(),
64743
64805
  burst: heldBurstPushSchema.optional(),
64744
64806
  /** A message alert's sender, so a held alert still shows their picture. */
64745
- sender: apnsSenderSchema.optional()
64807
+ sender: apnsSenderSchema.optional(),
64808
+ /** The sender's name sealed; sealed mode leaves `sender.name` empty. */
64809
+ senderNameSealed: sealedNameSchema.optional()
64746
64810
  };
64747
64811
  var phonePushHeldPayloadSchemaDefinition = external_exports.object({
64748
64812
  workspaceId: external_exports.string().min(1),
@@ -66284,6 +66348,7 @@ var computerHostViewDefinition = external_exports.object({
66284
66348
  diskFreeGb: external_exports.number().nullable()
66285
66349
  });
66286
66350
  var computerResizeOutcomeSchema = external_exports.enum(["in_place", "moving", "stored"]);
66351
+ var computerRoomDefinition = external_exports.object({ placed: external_exports.boolean(), fits: external_exports.boolean() });
66287
66352
  var sizeShape = {
66288
66353
  memoryMb: external_exports.number().int().positive(),
66289
66354
  cpus: external_exports.number().positive(),
@@ -66314,6 +66379,12 @@ var computerPoolFactDefinition = external_exports.discriminatedUnion("kind", [
66314
66379
  state: computerHostStateSchema
66315
66380
  }),
66316
66381
  external_exports.object({ kind: external_exports.literal("host_health_changed"), hostId: external_exports.string(), healthy: external_exports.boolean() }),
66382
+ external_exports.object({
66383
+ kind: external_exports.literal("host_overcommit_changed"),
66384
+ hostId: external_exports.string(),
66385
+ overcommit: external_exports.number(),
66386
+ diskOvercommit: external_exports.number()
66387
+ }),
66317
66388
  external_exports.object({ kind: external_exports.literal("host_removed"), hostId: external_exports.string() }),
66318
66389
  external_exports.object({
66319
66390
  kind: external_exports.literal("placed"),
@@ -66382,13 +66453,38 @@ var computerPoolFactDefinition = external_exports.discriminatedUnion("kind", [
66382
66453
  memoryMb: external_exports.number().int().nonnegative(),
66383
66454
  cpus: external_exports.number().nonnegative(),
66384
66455
  diskGb: external_exports.number().int().nonnegative(),
66385
- numbers: capacityNumbersDefinition
66456
+ numbers: capacityNumbersDefinition,
66457
+ /** Distinct computers refused a create in the incident; absent on older facts. */
66458
+ waiting: external_exports.number().int().nonnegative().optional()
66386
66459
  }),
66387
66460
  external_exports.object({
66388
66461
  kind: external_exports.literal("capacity_card_settled"),
66389
66462
  incidentId: external_exports.string(),
66390
66463
  workspaceId: external_exports.string(),
66391
- refusals: external_exports.number()
66464
+ refusals: external_exports.number(),
66465
+ waiting: external_exports.number().int().nonnegative().optional()
66466
+ }),
66467
+ /** Room is running low before the limit: one urgent card per episode. */
66468
+ external_exports.object({
66469
+ kind: external_exports.literal("capacity_low_raised"),
66470
+ episodeId: external_exports.string(),
66471
+ workspaceId: external_exports.string(),
66472
+ recipientUserIds: external_exports.array(external_exports.string()),
66473
+ /** New Small computers that fit on the best host. */
66474
+ smallFits: external_exports.number().int().nonnegative(),
66475
+ /** Hosts whose report shows little real disk free or much memory held, in percent. */
66476
+ tightHosts: external_exports.array(
66477
+ external_exports.object({
66478
+ hostId: external_exports.string(),
66479
+ diskFreePercent: external_exports.number().nullable(),
66480
+ memoryUsedPercent: external_exports.number().nullable()
66481
+ })
66482
+ )
66483
+ }),
66484
+ external_exports.object({
66485
+ kind: external_exports.literal("capacity_low_settled"),
66486
+ episodeId: external_exports.string(),
66487
+ workspaceId: external_exports.string()
66392
66488
  })
66393
66489
  ]);
66394
66490
  var computerPoolFactRecordDefinition = external_exports.object({
@@ -67497,6 +67593,19 @@ var mcpServerApprovalChangedPayloadSchemaDefinition = external_exports.object({
67497
67593
  changeId: external_exports.string().min(1),
67498
67594
  at: external_exports.iso.datetime()
67499
67595
  });
67596
+ var connectionLinkedPayloadSchemaDefinition = external_exports.object({
67597
+ workspaceId: external_exports.string().min(1),
67598
+ connectionId: external_exports.string().min(1),
67599
+ userId: external_exports.string().min(1),
67600
+ /** The provider's id (`gmail`, `github`), `mcp` for a remote MCP server, or `github_app`. */
67601
+ service: external_exports.string().min(1).max(80),
67602
+ /** The connection's sensitivity tier; null when the path sets none. */
67603
+ sensitivity: external_exports.string().max(40).nullable(),
67604
+ /** `renewed`: a sign-in that refreshed a connection the person already had. */
67605
+ renewed: external_exports.boolean(),
67606
+ changeId: external_exports.string().min(1),
67607
+ at: external_exports.iso.datetime()
67608
+ });
67500
67609
  var ConnectorApi = moduleApi()("connector");
67501
67610
  var workspaceInput2 = external_exports.object({ workspaceId: external_exports.string().min(1) });
67502
67611
  var connectionInput2 = external_exports.object({
@@ -69813,6 +69922,32 @@ var agentScheduledRunMissedPayloadSchemaDefinition = external_exports.object({
69813
69922
  scheduledFor: external_exports.iso.datetime()
69814
69923
  });
69815
69924
 
69925
+ // ../../modules/agent/contract/src/agent-adoption.ts
69926
+ var agentAdoptionHarnessSchema = external_exports.enum(["laze-models", "claude-code", "codex", "other"]);
69927
+ var agentCreatedPayloadSchemaDefinition = external_exports.object({
69928
+ workspaceId: external_exports.string().min(1),
69929
+ agentId: external_exports.string().min(1),
69930
+ byUserId: external_exports.string().min(1).nullable(),
69931
+ harness: agentAdoptionHarnessSchema,
69932
+ hosting: external_exports.enum(["laze", "connected"]),
69933
+ kind: external_exports.enum(["personal", "team"]),
69934
+ at: external_exports.iso.datetime()
69935
+ });
69936
+ var agentConnectedPayloadSchemaDefinition = external_exports.object({
69937
+ workspaceId: external_exports.string().min(1),
69938
+ agentId: external_exports.string().min(1),
69939
+ byUserId: external_exports.string().min(1).nullable(),
69940
+ harness: agentAdoptionHarnessSchema,
69941
+ at: external_exports.iso.datetime()
69942
+ });
69943
+ var agentPersonMessageReceivedPayloadSchemaDefinition = external_exports.object({
69944
+ workspaceId: external_exports.string().min(1),
69945
+ agentId: external_exports.string().min(1),
69946
+ /** The person whose message it was. */
69947
+ userId: external_exports.string().min(1),
69948
+ at: external_exports.iso.datetime()
69949
+ });
69950
+
69816
69951
  // ../../modules/agent/contract/src/agent-history.ts
69817
69952
  var idSchema19 = external_exports.string().min(1).max(80);
69818
69953
  var CALLER_HISTORY_LIMIT_MAX = 100;
@@ -70382,6 +70517,29 @@ function revokedKeyLineOf({ profile }) {
70382
70517
  return `${profile}: this agent's key was revoked: run \`laze agent link\` again or remove it with \`laze logout --profile ${profile}\``;
70383
70518
  }
70384
70519
 
70520
+ // src/rules/session-headers.rules.ts
70521
+ import { relative, sep } from "node:path";
70522
+ function sessionKeyOf({ session }) {
70523
+ return `${session.harness}:${session.sessionId}`;
70524
+ }
70525
+ function sessionHeadersOf({
70526
+ session
70527
+ }) {
70528
+ if (!session) return {};
70529
+ return {
70530
+ [AGENT_SESSION_HEADER]: sessionKeyOf({ session }),
70531
+ [AGENT_SESSION_FOLDER_HEADER]: encodeURIComponent(session.folder),
70532
+ [AGENT_SESSION_HOST_HEADER]: encodeURIComponent(session.host)
70533
+ };
70534
+ }
70535
+ function displayFolderOf({ folder, home }) {
70536
+ if (!home) return folder;
70537
+ const below = relative(home, folder);
70538
+ if (below === "") return "~";
70539
+ if (below.startsWith("..") || below.startsWith(sep)) return folder;
70540
+ return `~/${below.split(sep).join("/")}`;
70541
+ }
70542
+
70385
70543
  // src/services/laze-client.service.ts
70386
70544
  var CLI_VERSION_HEADER = "x-laze-cli-version";
70387
70545
  var LazeApiError = class extends Error {
@@ -70659,6 +70817,15 @@ async function turnTokenOf({ context }) {
70659
70817
  () => ""
70660
70818
  );
70661
70819
  }
70820
+ function harnessSessionKeyOf({ context }) {
70821
+ const { harness, inherited } = context.environment;
70822
+ const ids = {
70823
+ "claude-code": inherited.CLAUDE_CODE_SESSION_ID,
70824
+ codex: inherited.CODEX_THREAD_ID
70825
+ };
70826
+ const sessionId = ids[harness];
70827
+ return sessionId ? sessionKeyOf({ session: { harness, sessionId } }) : void 0;
70828
+ }
70662
70829
  async function signedIn({
70663
70830
  context,
70664
70831
  args
@@ -70668,6 +70835,7 @@ async function signedIn({
70668
70835
  config: config2,
70669
70836
  flag: flagText({ args, name: "profile" }) || void 0,
70670
70837
  environment: context.environment.profile,
70838
+ session: harnessSessionKeyOf({ context }),
70671
70839
  cwd: context.cwd
70672
70840
  });
70673
70841
  if (!chosen.profile)
@@ -71175,29 +71343,6 @@ function selfClauseOf({ self: self2 }) {
71175
71343
  return self2 ? `, where you are ${self2}` : "";
71176
71344
  }
71177
71345
 
71178
- // src/rules/session-headers.rules.ts
71179
- import { relative, sep } from "node:path";
71180
- function sessionKeyOf({ session }) {
71181
- return `${session.harness}:${session.sessionId}`;
71182
- }
71183
- function sessionHeadersOf({
71184
- session
71185
- }) {
71186
- if (!session) return {};
71187
- return {
71188
- [AGENT_SESSION_HEADER]: sessionKeyOf({ session }),
71189
- [AGENT_SESSION_FOLDER_HEADER]: encodeURIComponent(session.folder),
71190
- [AGENT_SESSION_HOST_HEADER]: encodeURIComponent(session.host)
71191
- };
71192
- }
71193
- function displayFolderOf({ folder, home }) {
71194
- if (!home) return folder;
71195
- const below = relative(home, folder);
71196
- if (below === "") return "~";
71197
- if (below.startsWith("..") || below.startsWith(sep)) return folder;
71198
- return `~/${below.split(sep).join("/")}`;
71199
- }
71200
-
71201
71346
  // src/rules/transcript.rules.ts
71202
71347
  function record2(value) {
71203
71348
  return typeof value === "object" && value !== null ? value : {};
@@ -71756,6 +71901,17 @@ var slackBotCleanupOutcomePayloadSchemaDefinition = external_exports.object({
71756
71901
  slackChannelId: external_exports.string().min(1),
71757
71902
  outcome: external_exports.enum(["left", "kept", "failed"])
71758
71903
  });
71904
+ var slackLinkedPayloadSchemaDefinition = external_exports.object({
71905
+ workspaceId: external_exports.string().min(1),
71906
+ /** The Laze person who finished the flow. */
71907
+ userId: external_exports.string().min(1),
71908
+ /** Opaque and unique to this link, derived from the finished authorization. */
71909
+ linkId: external_exports.string().min(1),
71910
+ /** `installed`: the bot; `linked`: a person's own account; `moved`: onto another app. */
71911
+ outcome: external_exports.enum(["installed", "linked", "moved"]),
71912
+ changeId: external_exports.string().min(1),
71913
+ at: external_exports.iso.datetime()
71914
+ });
71759
71915
 
71760
71916
  // ../../modules/slack/contract/src/slack.ts
71761
71917
  var SLACK_CACHE_DAYS_MAX = 30;
@@ -76469,7 +76625,9 @@ guide first: https://laze.so/docs/agents/apps.md. The short version:
76469
76625
  an attachment means exactly that: do it, do not ask.
76470
76626
  - Slides, a deck or a talk: start from \`laze app create <name> --template slides\`. Each slide
76471
76627
  is a file in slides/, listed in order in slides/deck.json; the deck presents full screen and
76472
- exports PDF and HTML on its own.
76628
+ exports PDF and HTML on its own. People who can change the app also edit the deck on its page
76629
+ (reorder, move, resize, retype), each change a live version: \`laze app pull\` before you change
76630
+ a deck and keep its data-el attributes. A deck made earlier gets this with \`laze app upgrade\`.
76473
76631
  An app that already exists goes in with \`laze app pin <app> --channel <channel>\`, never as a
76474
76632
  pinned message with a link. A pin opens it to everyone there, and their agents may build on it.
76475
76633
  - A new app is Restricted. Do not share it with only the person who asked when they asked in a
@@ -79734,6 +79892,22 @@ var appFaultClaimsSchemaDefinition = external_exports.object({
79734
79892
  page: external_exports.string().max(600)
79735
79893
  });
79736
79894
 
79895
+ // ../../modules/app/contract/src/app.self-edit.ts
79896
+ var selfEditAppInputSchemaDefinition = external_exports.object({ token: external_exports.string().min(1).max(15e5) });
79897
+ var selfEditedAppSchemaDefinition = external_exports.object({ version: external_exports.string().min(1), live: external_exports.boolean() });
79898
+ var appEditClaimsSchemaDefinition = external_exports.object({
79899
+ iss: external_exports.literal("laze-apps"),
79900
+ aud: external_exports.array(external_exports.string()).refine((aud) => aud.includes("laze-app-edit")),
79901
+ exp: external_exports.number().int(),
79902
+ wid: external_exports.string().min(1),
79903
+ app: external_exports.string().min(1),
79904
+ vid: external_exports.string().min(1),
79905
+ base: external_exports.string().min(1).max(64),
79906
+ files: external_exports.array(external_exports.object({ path: external_exports.string().min(1).max(300), content: external_exports.string().max(6e5) })).max(20).nullable().transform((files2) => files2 ?? []),
79907
+ remove: external_exports.array(external_exports.string().min(1).max(300)).max(20).nullable().optional().transform((paths) => paths ?? []),
79908
+ msg: external_exports.string().min(1).max(500)
79909
+ });
79910
+
79737
79911
  // ../../modules/app/contract/src/app.quota.ts
79738
79912
  var APP_QUOTA_LIMITS = [
79739
79913
  "app_database_bytes",
@@ -80288,6 +80462,11 @@ var appTemplateManifestSchemaDefinition = external_exports.object({
80288
80462
  entry: external_exports.string().min(1).max(200),
80289
80463
  /** One or two sentences an agent reads first: how to change an app made from it. */
80290
80464
  guide: external_exports.string().trim().max(500).optional(),
80465
+ /**
80466
+ * Files the template owns and the app's author leaves as they are (a deck's engine): updating
80467
+ * an app to a newer template version writes only these.
80468
+ */
80469
+ engine: external_exports.array(external_exports.string().min(1).max(200)).max(20).optional(),
80291
80470
  collections: templateCollectionsSchema,
80292
80471
  views: external_exports.array(appViewSpecSchema).default([]),
80293
80472
  seed: external_exports.record(collectionNameSchema, external_exports.array(appRecordSchema)).default({})
@@ -80312,6 +80491,17 @@ var somethingToWrite = {
80312
80491
  var writeAppFilesInputSchemaDefinition = external_exports.object({ workspaceId: external_exports.string().min(1), ...writeAppFilesShape }).refine(somethingToWrite.check, { message: somethingToWrite.message });
80313
80492
  var writeAppFilesByKeyInputSchemaDefinition = external_exports.object(writeAppFilesShape).refine(somethingToWrite.check, { message: somethingToWrite.message });
80314
80493
  var appTemplatesByKeyQuerySchemaDefinition = external_exports.object({});
80494
+ var upgradeAppTemplateByKeyInputSchemaDefinition = external_exports.object({ appId: external_exports.string().min(1) });
80495
+ var appTemplateUpgradeSchemaDefinition = external_exports.object({
80496
+ upgraded: external_exports.boolean(),
80497
+ /** The new live version; null when nothing changed. */
80498
+ version: external_exports.string().nullable(),
80499
+ templateName: appTemplateNameSchema,
80500
+ templateVersion: external_exports.number().int().positive(),
80501
+ /** The files written over the live version. */
80502
+ files: external_exports.array(external_exports.string())
80503
+ });
80504
+ var appTemplateUpgradeSchema = appTemplateUpgradeSchemaDefinition;
80315
80505
 
80316
80506
  // ../../modules/app/contract/src/app.trpc.ts
80317
80507
  var APP_LIST_PATH = "app.list";
@@ -80326,7 +80516,7 @@ var appsCopy = {
80326
80516
  var appMainTrpc = defineTrpcContract("app").query("list", { mirrored: appsCopy }).withInput(listAppsInputSchema).withOutput(external_exports.array(appSchema)).query("get").withInput(appRefSchema).withOutput(appSchema).mutation("create").withInput(createAppInputSchema).withOutput(appSchema).mutation("rename").withInput(renameAppInputSchema).withOutput(appSchema).mutation("archive").withInput(appRefSchema).withOutput(appSchema).mutation("unarchive").withInput(appRefSchema).withOutput(appSchema).mutation("delete").withInput(deleteAppInputSchema).withOutput(external_exports.object({ deleted: external_exports.literal(true) })).query("versions").withInput(appRefSchema).withOutput(external_exports.array(appVersionSchema)).mutation("revert").withInput(revertInputSchema).withOutput(appPushSchema).mutation("publish").withInput(publishInputSchema).withOutput(publishOutcomeSchema).query("collections").withInput(appDataRefSchema).withOutput(external_exports.array(collectionSchema)).query("records").withInput(listRecordsInputSchema).withOutput(recordPageSchema).mutation("writeRecord").withInput(writeRecordInputSchema).withOutput(appRecordSchema).mutation("deleteRecord").withInput(deleteRecordInputSchema).withOutput(external_exports.object({ deleted: external_exports.literal(true) })).query("views").withInput(appDataRefSchema).withOutput(external_exports.array(appViewSchema)).mutation("saveView").withInput(saveViewInputSchema).withOutput(appViewSchema).mutation("deleteView").withInput(deleteViewInputSchema).withOutput(external_exports.object({ deleted: external_exports.literal(true) })).mutation("chooseCardRows").withInput(chooseCardRowsInputSchema).withOutput(appCardChoiceSchema).query("exportRecords").withInput(exportRecordsInputSchema).withOutput(recordExportSchema).mutation("importRecords").withInput(importRecordsInputSchema).withOutput(recordImportSchema).mutation("decidePublish").withInput(decidePublishInputSchema).withOutput(publishOutcomeSchema).mutation("nameVersion").withInput(nameVersionInputSchema).withOutput(appVersionSchema).mutation("makeInternal").withInput(appRefSchema).withOutput(appSchema).mutation("revokePublishLease").withInput(appRefSchema).withOutput(appSchema).mutation("signInHandoff").withInput(signInHandoffInputSchema).withOutput(signInHandoffSchema).query("functionLogs").withInput(listFunctionLogsInputSchema).withOutput(external_exports.array(appFunctionLogEntrySchema)).query("access").withInput(appRefSchema).withOutput(appAccessSchema).query("members").withInput(appRefSchema).withOutput(appMembersSchema).mutation("grantAccess").withInput(grantAppAccessInputSchema).withOutput(appAccessSchema).mutation("revokeAccess").withInput(revokeAppAccessInputSchema).withOutput(appAccessSchema).mutation("setVisibility").withInput(setAppVisibilityInputSchema).withOutput(visibilityOutcomeSchema).mutation("setMemberRole").withInput(setMemberRoleInputSchema).withOutput(appAccessSchema).mutation("unpublish").withInput(appRefSchema).withOutput(appSchema).query("door").withInput(appRefSchema).withOutput(appDoorSchema).mutation("requestAccess").withInput(appRefSchema).withOutput(appDoorSchema).mutation("decideAccess").withInput(decideAppAccessInputSchema).withOutput(appAccessRequestSchema).query("users").withInput(appRefSchema).withOutput(appUsersSchema).mutation("blockUser").withInput(blockAppUserInputSchema).withOutput(appUsersSchema).mutation("deleteUser").withInput(deleteAppUserInputSchema).withOutput(deletedAppUserSchema).query("backups").withInput(appRefSchema).withOutput(appBackupStatusSchema).mutation("restoreData").withInput(restoreAppDataInputSchema).withOutput(appRestoreSchema).query("cost").withInput(appRefSchema).withOutput(appCostSchema).mutation("setBudget").withInput(setAppBudgetInputSchema).withOutput(appCostSchema).query("triggers").withInput(appRefSchema).withOutput(appTriggersSchema).mutation("setTriggerPaused").withInput(setAppTriggerPausedInputSchema).withOutput(appTriggerSchema).mutation("removeTrigger").withInput(appTriggerRefSchema).withOutput(external_exports.object({ removed: external_exports.literal(true) })).build();
80327
80517
  var appConnectionsTrpc = defineTrpcContract("app").query("connections").withInput(appRefSchema).withOutput(appConnectionsSchema).mutation("allowConnection").withInput(appConnectionRefSchema).withOutput(appConnectionsSchema).mutation("revokeConnection").withInput(appConnectionRefSchema).withOutput(appConnectionsSchema).build();
80328
80518
  var appPinsTrpc = defineTrpcContract("app").query("pins").withInput(channelPinsInputSchema).withOutput(channelAppPinsSchema).mutation("pin").withInput(pinAppInputSchema).withOutput(channelAppPinsSchema).mutation("unpin").withInput(pinAppInputSchema).withOutput(channelAppPinsSchema).mutation("setPinView").withInput(setPinViewInputSchema).withOutput(channelAppPinsSchema).mutation("reorderPins").withInput(reorderPinsInputSchema).withOutput(channelAppPinsSchema).mutation("setPinRole").withInput(setPinRoleInputSchema).withOutput(appAccessSchema).build();
80329
- var appSettingsTrpc = defineTrpcContract("app").query("workspaceSettings").withInput(appWorkspaceRefSchema).withOutput(appWorkspaceSettingsSchema).query("functionSettings").withInput(appWorkspaceRefSchema).withOutput(appFunctionSettingsSchema).mutation("setFunctionsEnabled").withInput(setFunctionsEnabledInputSchema).withOutput(appFunctionSettingsSchema).mutation("setPublicAppsAllowed").withInput(setPublicAppsAllowedInputSchema).withOutput(appFunctionSettingsSchema).query("workspaceApps").withInput(listWorkspaceAppsInputSchema).withOutput(external_exports.array(workspaceAppSchema)).mutation("setOwner").withInput(setAppOwnerInputSchema).withOutput(workspaceAppSchema).mutation("unpublishAsAdmin").withInput(appRefSchema).withOutput(external_exports.object({ unpublished: external_exports.literal(true) })).query("templates").withInput(appWorkspaceRefSchema).withOutput(external_exports.array(appTemplateSchema)).build();
80519
+ var appSettingsTrpc = defineTrpcContract("app").query("workspaceSettings").withInput(appWorkspaceRefSchema).withOutput(appWorkspaceSettingsSchema).query("functionSettings").withInput(appWorkspaceRefSchema).withOutput(appFunctionSettingsSchema).mutation("setFunctionsEnabled").withInput(setFunctionsEnabledInputSchema).withOutput(appFunctionSettingsSchema).mutation("setPublicAppsAllowed").withInput(setPublicAppsAllowedInputSchema).withOutput(appFunctionSettingsSchema).query("workspaceApps").withInput(listWorkspaceAppsInputSchema).withOutput(external_exports.array(workspaceAppSchema)).mutation("setOwner").withInput(setAppOwnerInputSchema).withOutput(workspaceAppSchema).mutation("unpublishAsAdmin").withInput(appRefSchema).withOutput(external_exports.object({ unpublished: external_exports.literal(true) })).query("templates").withInput(appWorkspaceRefSchema).withOutput(external_exports.array(appTemplateSchema)).mutation("upgradeTemplate").withInput(appRefSchema).withOutput(appTemplateUpgradeSchema).build();
80330
80520
  var appTrpc = joinTrpcContracts(
80331
80521
  "app",
80332
80522
  appMainTrpc,
@@ -80432,6 +80622,12 @@ var appCliCommands = [
80432
80622
  arguments: [],
80433
80623
  summary: "List the templates an app can start from, with their versions"
80434
80624
  },
80625
+ {
80626
+ command: "laze app upgrade",
80627
+ operation: "upgradeTemplate",
80628
+ arguments: ["[app]"],
80629
+ summary: "Bring an app made from a template (a deck) to the template's current version: the template's engine files (deck.js) are written over the live app as a new version, every slide and style stays. Run laze app pull afterwards"
80630
+ },
80435
80631
  {
80436
80632
  command: "laze app list",
80437
80633
  operation: "listApps",
@@ -82639,6 +82835,14 @@ var appCost = async ({ context, args }) => {
82639
82835
  const cost = await client.post("/api/apps/cost", { appId });
82640
82836
  print5({ context, args, value: cost, text: costText({ name: name3, cost }) });
82641
82837
  };
82838
+ var appUpgrade = async ({ context, args }) => {
82839
+ const { client, appId, name: name3 } = await appOfWord({ context, args, word: args.words[2] });
82840
+ const done = await client.post("/api/apps/template/upgrade", { appId });
82841
+ const text3 = done.upgraded ? `${name3} now runs the ${done.templateName} template version ${done.templateVersion}: wrote ${done.files.join(", ")} as live version ${done.version?.slice(0, 7) ?? ""}. Run laze app pull before your next push so your folder has it.
82842
+ ` : `${name3} is already on the ${done.templateName} template version ${done.templateVersion}; nothing changed.
82843
+ `;
82844
+ print5({ context, args, value: done, text: text3 });
82845
+ };
82642
82846
  var appBudget = async ({ context, args }) => {
82643
82847
  const words = args.words.slice(2);
82644
82848
  const [word3, amount] = words.length >= 2 ? words : [void 0, ...words];
@@ -82662,6 +82866,7 @@ function managed(command) {
82662
82866
  var APP_COMMANDS = {
82663
82867
  create: appCreate,
82664
82868
  templates: appTemplates,
82869
+ upgrade: appUpgrade,
82665
82870
  list: appList,
82666
82871
  push: appPush,
82667
82872
  write: appWrite,
@@ -85998,7 +86203,7 @@ var computeConfig = Config.define((c) => ({
85998
86203
  external_exports.string().min(1).default("rg.fr-par.scw.cloud/laze-prod/laze-browser-machine:latest")
85999
86204
  ),
86000
86205
  /** `b` on the spare api (ADR-206): its link sweeps run only while it holds machine links. */
86001
- apiSlot: c.env("LAZE_API_SLOT", external_exports.enum(["a", "b"]).default("a")),
86206
+ apiSlot,
86002
86207
  /** Who sells dedicated IPs, on once its keys are set; `memory` locally, `none` for off. */
86003
86208
  ipVendor: c.env(
86004
86209
  "LAZE_IP_VENDOR",
@@ -86016,6 +86221,44 @@ var computeConfig = Config.define((c) => ({
86016
86221
  whatsappMirrorObserve: c.env("WHATSAPP_MIRROR_OBSERVE", external_exports.enum(["on", "off"]).default("off"))
86017
86222
  }));
86018
86223
 
86224
+ // ../../modules/compute/contract/src/computer-waitlist.ts
86225
+ var workspaceIdSchema19 = external_exports.string().min(1).max(64);
86226
+ var computerRoomInputDefinition = external_exports.object({ workspaceId: workspaceIdSchema19 });
86227
+ var computerRoomInputSchema = computerRoomInputDefinition;
86228
+ var computerRoomDefinition2 = external_exports.object({
86229
+ room: external_exports.enum(["ok", "full"]),
86230
+ /** The caller waits on the list in this workspace. */
86231
+ waitlisted: external_exports.boolean()
86232
+ });
86233
+ var computerRoomAnswerSchema = computerRoomDefinition2;
86234
+ var computerWaitlistReasonSchema = external_exports.enum(["first_run", "invitee"]);
86235
+ var joinComputerWaitlistDefinition = external_exports.object({
86236
+ workspaceId: workspaceIdSchema19,
86237
+ /** The app page the claim email and notice link back to; a relative path such as /w/... */
86238
+ returnPath: external_exports.string().min(1).max(2048),
86239
+ reason: computerWaitlistReasonSchema
86240
+ });
86241
+ var joinComputerWaitlistInputSchema = joinComputerWaitlistDefinition;
86242
+ var computerWaitlistJoinedDefinition = external_exports.object({
86243
+ waitlisted: external_exports.literal(true),
86244
+ position: external_exports.number().int().positive()
86245
+ });
86246
+ var computerWaitlistJoinedSchema = computerWaitlistJoinedDefinition;
86247
+ var computeWaitlistTrpc = defineTrpcContract("compute").query("computerRoom").withInput(computerRoomInputSchema).withOutput(computerRoomAnswerSchema).mutation("joinComputerWaitlist").withInput(joinComputerWaitlistInputSchema).withOutput(computerWaitlistJoinedSchema).build();
86248
+ var computeWaitlistSweepStateDefinition = external_exports.object({ lastSweepAt: external_exports.number().nullable() });
86249
+ var computeWaitlistSweepIntentDefinition = external_exports.object({ scheduledFor: external_exports.number() });
86250
+ var computerWaitlistChangedDefinition = external_exports.object({
86251
+ workspaceId: external_exports.string().min(1),
86252
+ userId: external_exports.string().min(1),
86253
+ entryId: external_exports.string().min(1),
86254
+ change: external_exports.enum(["joined", "claimed"]),
86255
+ reason: computerWaitlistReasonSchema,
86256
+ /** How long the person waited, in milliseconds; null on joining. */
86257
+ waitedMs: external_exports.number().int().nonnegative().nullable(),
86258
+ changeId: external_exports.string().min(1),
86259
+ at: external_exports.iso.datetime()
86260
+ });
86261
+
86019
86262
  // ../../modules/billing/contract/src/billing.config.ts
86020
86263
  var priceId = external_exports.string().min(1).optional();
86021
86264
  var billingConfig = Config.define((c) => ({
@@ -86196,6 +86439,19 @@ var referralRewardedDefinition = external_exports.object({
86196
86439
  outcome: external_exports.enum(["discount", "banked", "credits"]),
86197
86440
  at: external_exports.iso.datetime()
86198
86441
  });
86442
+ var checkoutChangedDefinition = external_exports.object({
86443
+ workspaceId: external_exports.string().min(1),
86444
+ /** The Stripe Checkout session id. */
86445
+ checkoutId: external_exports.string().min(1),
86446
+ kind: external_exports.enum(["team", "credits"]),
86447
+ /** `abandoned` is Stripe expiring the session unpaid, 24 hours after it opened. */
86448
+ stage: external_exports.enum(["started", "completed", "abandoned"]),
86449
+ /** The promotion whose coupon the Checkout carries (`tlc-2026-11`); null when none. */
86450
+ promotionId: external_exports.string().nullable(),
86451
+ /** The person who opened the Checkout, when known. */
86452
+ byUserId: external_exports.string().nullable(),
86453
+ at: external_exports.iso.datetime()
86454
+ });
86199
86455
  var creditCheckStateDefinition = external_exports.object({ nextWakeAt: external_exports.number().nullable() });
86200
86456
  var creditCheckIntentDefinition = external_exports.object({ workspaceId: external_exports.string().min(1) });
86201
86457
 
@@ -87015,7 +87271,7 @@ var dedicatedIpKeyReleasedDefinition = external_exports.object({
87015
87271
  });
87016
87272
 
87017
87273
  // ../../modules/compute/contract/src/own-machine-ssh.ts
87018
- var workspaceIdSchema19 = external_exports.string().min(1).max(64);
87274
+ var workspaceIdSchema20 = external_exports.string().min(1).max(64);
87019
87275
  var machineRefText = external_exports.string().min(1).max(64);
87020
87276
  var sshHostKeySchema = external_exports.string().regex(/^SHA256:[A-Za-z0-9+/]{43}$/);
87021
87277
  function sshTargetText({ target }) {
@@ -87037,7 +87293,7 @@ var machineSshDefinition = external_exports.object({
87037
87293
  });
87038
87294
  var machineSshSchema = machineSshDefinition;
87039
87295
  var connectSshDefinition = external_exports.object({
87040
- workspaceId: workspaceIdSchema19,
87296
+ workspaceId: workspaceIdSchema20,
87041
87297
  /** Checked by `checkMachineName`, so a refusal reads as a sentence. */
87042
87298
  name: external_exports.string().max(200),
87043
87299
  /** `user@host[:port]`, checked by `parseSshTarget`. */
@@ -87046,7 +87302,7 @@ var connectSshDefinition = external_exports.object({
87046
87302
  var connectSshMachineInputSchema = connectSshDefinition;
87047
87303
  var restConnectSshDefinition = connectSshDefinition.omit({ workspaceId: true });
87048
87304
  var trustHostKeyDefinition = external_exports.object({
87049
- workspaceId: workspaceIdSchema19,
87305
+ workspaceId: workspaceIdSchema20,
87050
87306
  machine: machineRefText,
87051
87307
  hostKey: sshHostKeySchema
87052
87308
  });
@@ -87133,7 +87389,7 @@ var setAgentAccessDefinition = external_exports.object({
87133
87389
  var setWhatsappAgentAccessInputSchema = setAgentAccessDefinition;
87134
87390
 
87135
87391
  // ../../modules/compute/contract/src/own-machine-whatsapp.ts
87136
- var workspaceIdSchema20 = external_exports.string().min(1).max(64);
87392
+ var workspaceIdSchema21 = external_exports.string().min(1).max(64);
87137
87393
  var machineRefText2 = external_exports.string().min(1).max(64);
87138
87394
  var WHATSAPP_TEXT_MAX = 4096;
87139
87395
  var WHATSAPP_LIMIT_MAX = 200;
@@ -87185,7 +87441,7 @@ var messagesResultDefinition = external_exports.object({
87185
87441
  messages: external_exports.array(whatsappMessageDefinition)
87186
87442
  });
87187
87443
  var chatPeopleInputDefinition = external_exports.object({
87188
- workspaceId: workspaceIdSchema20,
87444
+ workspaceId: workspaceIdSchema21,
87189
87445
  channelId: external_exports.string().min(1).max(64)
87190
87446
  });
87191
87447
  var whatsappChatPeopleInputSchema = chatPeopleInputDefinition;
@@ -87202,13 +87458,13 @@ var readAskFields = {
87202
87458
  waitSeconds: external_exports.number().int().min(0).max(WHATSAPP_READ_WAIT_MAX_SECONDS).optional()
87203
87459
  };
87204
87460
  var chatsInputDefinition = external_exports.object({
87205
- workspaceId: workspaceIdSchema20,
87461
+ workspaceId: workspaceIdSchema21,
87206
87462
  machine: whatsappMachineRef,
87207
87463
  limit: limitSchema.optional(),
87208
87464
  ...readAskFields
87209
87465
  });
87210
87466
  var readInputDefinition = external_exports.object({
87211
- workspaceId: workspaceIdSchema20,
87467
+ workspaceId: workspaceIdSchema21,
87212
87468
  machine: whatsappMachineRef,
87213
87469
  /** A chat id, a phone number or a contact or group name. */
87214
87470
  chat: chatRefSchema,
@@ -87216,7 +87472,7 @@ var readInputDefinition = external_exports.object({
87216
87472
  ...readAskFields
87217
87473
  });
87218
87474
  var fileInputDefinition = external_exports.object({
87219
- workspaceId: workspaceIdSchema20,
87475
+ workspaceId: workspaceIdSchema21,
87220
87476
  machine: whatsappMachineRef,
87221
87477
  /** The chat as a read names it: its id, a phone number or the exact contact or group name. */
87222
87478
  chat: chatRefSchema,
@@ -87238,13 +87494,13 @@ var whatsappFileDefinition = external_exports.object({
87238
87494
  transcript: external_exports.string().optional()
87239
87495
  });
87240
87496
  var sendInputDefinition = external_exports.object({
87241
- workspaceId: workspaceIdSchema20,
87497
+ workspaceId: workspaceIdSchema21,
87242
87498
  machine: whatsappMachineRef,
87243
87499
  chat: chatRefSchema,
87244
87500
  text: external_exports.string().trim().min(1).max(WHATSAPP_TEXT_MAX)
87245
87501
  });
87246
87502
  var sendStatusInputDefinition = external_exports.object({
87247
- workspaceId: workspaceIdSchema20,
87503
+ workspaceId: workspaceIdSchema21,
87248
87504
  sendId: external_exports.string().min(1).max(64),
87249
87505
  /** Wait up to this long for the owner's answer; 0 answers at once. */
87250
87506
  waitSeconds: external_exports.number().int().min(0).max(WHATSAPP_STATUS_WAIT_MAX_SECONDS).default(0)
@@ -87283,7 +87539,7 @@ var whatsappPairingDefinition = external_exports.object({
87283
87539
  error: external_exports.string().nullable()
87284
87540
  });
87285
87541
  var pairInputDefinition = external_exports.object({
87286
- workspaceId: workspaceIdSchema20,
87542
+ workspaceId: workspaceIdSchema21,
87287
87543
  machine: machineRefText2,
87288
87544
  /** The person's number with country code; absent, only a QR code is made. */
87289
87545
  phone: external_exports.string().trim().min(7).max(24).regex(/^\+?[0-9 ()-]+$/).optional()
@@ -87317,7 +87573,7 @@ var mirrorSettingsDefinition = external_exports.object({
87317
87573
  });
87318
87574
  var whatsappMirrorSettingsSchema = mirrorSettingsDefinition;
87319
87575
  var setMirrorSettingsDefinition = external_exports.object({
87320
- workspaceId: workspaceIdSchema20,
87576
+ workspaceId: workspaceIdSchema21,
87321
87577
  machine: machineRefText2,
87322
87578
  mirrorOn: external_exports.boolean().optional(),
87323
87579
  onlineMode: whatsappOnlineModeSchema.optional(),
@@ -87336,7 +87592,7 @@ var whatsappComputerDefinition = external_exports.object({
87336
87592
  nextVisitAt: external_exports.string().nullable()
87337
87593
  });
87338
87594
  var whatsappComputerSchema = whatsappComputerDefinition;
87339
- var whatsappComputerInputDefinition = external_exports.object({ workspaceId: workspaceIdSchema20 });
87595
+ var whatsappComputerInputDefinition = external_exports.object({ workspaceId: workspaceIdSchema21 });
87340
87596
  var whatsappComputerInputSchema = whatsappComputerInputDefinition;
87341
87597
  var whatsappChangeDefinition = external_exports.object({
87342
87598
  chat: external_exports.string().min(1).max(200),
@@ -87372,7 +87628,7 @@ var whatsappReadDefinition = external_exports.object({
87372
87628
  });
87373
87629
  var whatsappPairingSchema = whatsappPairingDefinition;
87374
87630
  var pairingRefDefinition = external_exports.object({
87375
- workspaceId: workspaceIdSchema20,
87631
+ workspaceId: workspaceIdSchema21,
87376
87632
  pairingId: external_exports.string().min(1).max(64)
87377
87633
  });
87378
87634
  var whatsappPairingRefSchema = pairingRefDefinition;
@@ -87394,7 +87650,7 @@ var COMPUTE_WHATSAPP_REST_PATHS = {
87394
87650
  };
87395
87651
 
87396
87652
  // ../../modules/compute/contract/src/own-machine.ts
87397
- var workspaceIdSchema21 = external_exports.string().min(1).max(64);
87653
+ var workspaceIdSchema22 = external_exports.string().min(1).max(64);
87398
87654
  var machineRefText3 = external_exports.string().min(1).max(64);
87399
87655
  var machineBrowserDefinition = external_exports.object({
87400
87656
  ready: external_exports.boolean(),
@@ -87429,7 +87685,7 @@ var machineHealthDefinition = external_exports.object({
87429
87685
  });
87430
87686
  var machineHealthSchema = machineHealthDefinition;
87431
87687
  var connectOwnDefinition = external_exports.object({
87432
- workspaceId: workspaceIdSchema21,
87688
+ workspaceId: workspaceIdSchema22,
87433
87689
  /** Checked by `checkMachineName`, so a refusal reads as a sentence. */
87434
87690
  name: external_exports.string().max(200)
87435
87691
  });
@@ -87437,7 +87693,7 @@ var connectOwnMachineInputSchema = connectOwnDefinition;
87437
87693
  var MACHINE_EXEC_MAX_SECONDS = 240;
87438
87694
  var MACHINE_EXEC_OUTPUT_BYTES = 1024 * 1024;
87439
87695
  var execDefinition = external_exports.object({
87440
- workspaceId: workspaceIdSchema21,
87696
+ workspaceId: workspaceIdSchema22,
87441
87697
  machine: machineRefText3,
87442
87698
  command: external_exports.string().min(1).max(64 * 1024),
87443
87699
  timeoutSeconds: external_exports.number().int().min(1).max(MACHINE_EXEC_MAX_SECONDS).optional(),
@@ -87509,14 +87765,14 @@ function gigabytes(bytes) {
87509
87765
  }
87510
87766
  var hostWhenOfflineSchema = external_exports.enum(["wait", "sandbox"]);
87511
87767
  var hostAgentDefinition = external_exports.object({
87512
- workspaceId: workspaceIdSchema21,
87768
+ workspaceId: workspaceIdSchema22,
87513
87769
  machine: machineRefText3,
87514
87770
  agentId: external_exports.string().min(1).max(64),
87515
87771
  whenOffline: hostWhenOfflineSchema.default("wait")
87516
87772
  });
87517
87773
  var hostAgentInputSchema = hostAgentDefinition;
87518
87774
  var unhostAgentDefinition = external_exports.object({
87519
- workspaceId: workspaceIdSchema21,
87775
+ workspaceId: workspaceIdSchema22,
87520
87776
  agentId: external_exports.string().min(1).max(64)
87521
87777
  });
87522
87778
  var unhostAgentInputSchema = unhostAgentDefinition;
@@ -87536,7 +87792,7 @@ var agentHostGrantDefinition = external_exports.object({
87536
87792
 
87537
87793
  // ../../modules/compute/contract/src/compute.ts
87538
87794
  var idSchema23 = external_exports.string().min(1).max(64);
87539
- var workspaceIdSchema22 = external_exports.string().min(1).max(64);
87795
+ var workspaceIdSchema23 = external_exports.string().min(1).max(64);
87540
87796
  var machineStateSchema = external_exports.enum([
87541
87797
  "starting",
87542
87798
  "ready",
@@ -87566,7 +87822,7 @@ var machineGrantDefinition = external_exports.object({
87566
87822
  });
87567
87823
  var machineDefinition = external_exports.object({
87568
87824
  id: idSchema23,
87569
- workspaceId: workspaceIdSchema22,
87825
+ workspaceId: workspaceIdSchema23,
87570
87826
  name: external_exports.string(),
87571
87827
  type: machineTypeSchema,
87572
87828
  zone: external_exports.string(),
@@ -87617,23 +87873,23 @@ var machineDefinition = external_exports.object({
87617
87873
  var machineSchema = machineDefinition;
87618
87874
  var computeStatusDefinition = external_exports.object({ available: external_exports.boolean() });
87619
87875
  var computeStatusSchema = computeStatusDefinition;
87620
- var workspaceInputDefinition3 = external_exports.object({ workspaceId: workspaceIdSchema22 });
87876
+ var workspaceInputDefinition3 = external_exports.object({ workspaceId: workspaceIdSchema23 });
87621
87877
  var computeWorkspaceInputSchema = workspaceInputDefinition3;
87622
87878
  var machineRefDefinition = external_exports.object({
87623
- workspaceId: workspaceIdSchema22,
87879
+ workspaceId: workspaceIdSchema23,
87624
87880
  machine: external_exports.string().min(1).max(64)
87625
87881
  });
87626
87882
  var machineRefSchema = machineRefDefinition;
87627
87883
  var MACHINE_NAME_MAX = 40;
87628
87884
  var machineNameSchema = external_exports.string().min(2).max(MACHINE_NAME_MAX).regex(/^[a-z0-9][a-z0-9-]*$/, "lowercase letters, digits and dashes");
87629
87885
  var renameDefinition = external_exports.object({
87630
- workspaceId: workspaceIdSchema22,
87886
+ workspaceId: workspaceIdSchema23,
87631
87887
  machine: external_exports.string().min(1).max(64),
87632
87888
  name: external_exports.string().max(200)
87633
87889
  });
87634
87890
  var renameMachineInputSchema = renameDefinition;
87635
87891
  var setupBrowserDefinition = external_exports.object({
87636
- workspaceId: workspaceIdSchema22,
87892
+ workspaceId: workspaceIdSchema23,
87637
87893
  /** The site the person signs in to, as a host or a URL. */
87638
87894
  site: external_exports.string().min(1).max(500),
87639
87895
  name: machineNameSchema.optional(),
@@ -87642,27 +87898,27 @@ var setupBrowserDefinition = external_exports.object({
87642
87898
  });
87643
87899
  var setupBrowserInputSchema = setupBrowserDefinition;
87644
87900
  var grantDefinition = external_exports.object({
87645
- workspaceId: workspaceIdSchema22,
87901
+ workspaceId: workspaceIdSchema23,
87646
87902
  machine: external_exports.string().min(1).max(64),
87647
87903
  grantee: machineGranteeDefinition
87648
87904
  });
87649
87905
  var machineGrantInputSchema = grantDefinition;
87650
87906
  var setBudgetDefinition = external_exports.object({
87651
- workspaceId: workspaceIdSchema22,
87907
+ workspaceId: workspaceIdSchema23,
87652
87908
  machine: external_exports.string().min(1).max(64),
87653
87909
  budgetUsd: external_exports.number().min(0).max(1e4),
87654
87910
  period: machineBudgetPeriodSchema
87655
87911
  });
87656
87912
  var setMachineBudgetInputSchema = setBudgetDefinition;
87657
87913
  var openScreenDefinition = external_exports.object({
87658
- workspaceId: workspaceIdSchema22,
87914
+ workspaceId: workspaceIdSchema23,
87659
87915
  machine: external_exports.string().min(1).max(64),
87660
87916
  site: external_exports.string().min(1).max(500).optional()
87661
87917
  });
87662
87918
  var openScreenInputSchema = openScreenDefinition;
87663
87919
  var loginTerminalHarnessSchema = external_exports.enum(["claude-code", "codex"]);
87664
87920
  var openLoginTerminalDefinition = external_exports.object({
87665
- workspaceId: workspaceIdSchema22,
87921
+ workspaceId: workspaceIdSchema23,
87666
87922
  harness: loginTerminalHarnessSchema
87667
87923
  });
87668
87924
  var openLoginTerminalInputSchema = openLoginTerminalDefinition;
@@ -87685,7 +87941,7 @@ var loginTerminalDefinition = external_exports.discriminatedUnion("status", [
87685
87941
  var loginTerminalSchema = loginTerminalDefinition;
87686
87942
  var warmComputerDefinition = external_exports.object({ status: external_exports.enum(["starting", "ready"]) });
87687
87943
  var warmComputerSchema = warmComputerDefinition;
87688
- var screenRefDefinition = external_exports.object({ workspaceId: workspaceIdSchema22, sessionId: idSchema23 });
87944
+ var screenRefDefinition = external_exports.object({ workspaceId: workspaceIdSchema23, sessionId: idSchema23 });
87689
87945
  var screenRefSchema = screenRefDefinition;
87690
87946
  var screenSessionDefinition = external_exports.object({
87691
87947
  sessionId: idSchema23,
@@ -87723,11 +87979,16 @@ var ownMachineSshConnectDefinition = external_exports.object({
87723
87979
  publicKey: external_exports.string()
87724
87980
  });
87725
87981
  var ownMachineSshConnectSchema = ownMachineSshConnectDefinition;
87726
- var reconcileDefinition = external_exports.object({ workspaceId: workspaceIdSchema22, machineId: idSchema23 });
87982
+ var reconcileDefinition = external_exports.object({ workspaceId: workspaceIdSchema23, machineId: idSchema23 });
87727
87983
  var ComputeApi = moduleApi()("compute");
87728
87984
  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();
87729
87985
  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();
87730
- var computeTrpc = joinTrpcContracts("compute", computeCoreTrpc, computeFleetTrpc);
87986
+ var computeTrpc = joinTrpcContracts(
87987
+ "compute",
87988
+ computeCoreTrpc,
87989
+ computeFleetTrpc,
87990
+ computeWaitlistTrpc
87991
+ );
87731
87992
  var restMachineInputDefinition = external_exports.object({ machine: external_exports.string().min(1).max(64) });
87732
87993
  var restRenameInputDefinition = external_exports.object({
87733
87994
  machine: external_exports.string().min(1).max(64),
@@ -87809,7 +88070,7 @@ var COMPUTER_COPY_REST_PATHS = {
87809
88070
  pending: "/api/compute/copies/pending",
87810
88071
  settle: "/api/compute/copies/settle"
87811
88072
  };
87812
- var workspaceIdSchema23 = external_exports.string().min(1).max(64);
88073
+ var workspaceIdSchema24 = external_exports.string().min(1).max(64);
87813
88074
  var copyIdSchema = external_exports.string().min(1).max(64);
87814
88075
  var copyTargetSchema = external_exports.string().trim().min(1).max(500).default(".");
87815
88076
  var computerCopyStateSchema = external_exports.enum(["uploading", "pending", "done", "failed"]);
@@ -87828,7 +88089,7 @@ var computerCopyDefinition = external_exports.object({
87828
88089
  createdAt: external_exports.iso.datetime()
87829
88090
  });
87830
88091
  var startComputerCopyInputDefinition = external_exports.object({
87831
- workspaceId: workspaceIdSchema23,
88092
+ workspaceId: workspaceIdSchema24,
87832
88093
  /** The agent's id or name. */
87833
88094
  agent: external_exports.string().trim().min(1).max(200),
87834
88095
  name: external_exports.string().trim().min(1).max(200),
@@ -87856,7 +88117,7 @@ var startedComputerCopyDefinition = external_exports.object({
87856
88117
  upload: copyUploadDefinition
87857
88118
  });
87858
88119
  var completeComputerCopyInputDefinition = external_exports.object({
87859
- workspaceId: workspaceIdSchema23,
88120
+ workspaceId: workspaceIdSchema24,
87860
88121
  copyId: copyIdSchema,
87861
88122
  parts: external_exports.array(external_exports.object({ partNumber: external_exports.number().int().positive(), etag: external_exports.string().min(1).max(200) })).max(1e4).default([])
87862
88123
  });
@@ -87875,7 +88136,7 @@ var pendingComputerCopiesDefinition = external_exports.object({
87875
88136
  copies: external_exports.array(pendingComputerCopyDefinition)
87876
88137
  });
87877
88138
  var settleComputerCopyInputDefinition = external_exports.object({
87878
- workspaceId: workspaceIdSchema23,
88139
+ workspaceId: workspaceIdSchema24,
87879
88140
  copyId: copyIdSchema,
87880
88141
  outcome: external_exports.enum(["done", "failed"]),
87881
88142
  files: external_exports.number().int().nonnegative().optional(),
@@ -89526,8 +89787,8 @@ import { readFile as readFile23 } from "node:fs/promises";
89526
89787
  import { resolve as resolve14 } from "node:path";
89527
89788
 
89528
89789
  // ../../modules/discord/contract/src/discord.ts
89529
- var workspaceIdSchema24 = external_exports.string().min(1).max(64);
89530
- var workspaceInput4 = external_exports.object({ workspaceId: workspaceIdSchema24 });
89790
+ var workspaceIdSchema25 = external_exports.string().min(1).max(64);
89791
+ var workspaceInput4 = external_exports.object({ workspaceId: workspaceIdSchema25 });
89531
89792
  var discordIdSchema = external_exports.string().regex(/^\d{5,25}$/);
89532
89793
  var DISCORD_PERMISSIONS = {
89533
89794
  ADMINISTRATOR: 1n << 3n,
@@ -89609,10 +89870,10 @@ var discordChannelViewDefinition = external_exports.object({
89609
89870
  url: external_exports.url()
89610
89871
  });
89611
89872
  var discordChannelViewSchema = discordChannelViewDefinition;
89612
- var guildInputDefinition = external_exports.object({ workspaceId: workspaceIdSchema24, guildId: discordIdSchema });
89873
+ var guildInputDefinition = external_exports.object({ workspaceId: workspaceIdSchema25, guildId: discordIdSchema });
89613
89874
  var discordGuildInputSchema = guildInputDefinition;
89614
89875
  var saveDiscordAppDefinition = external_exports.object({
89615
- workspaceId: workspaceIdSchema24,
89876
+ workspaceId: workspaceIdSchema25,
89616
89877
  setupKey: external_exports.string().min(1).max(64),
89617
89878
  applicationId: external_exports.string().trim().max(40),
89618
89879
  clientSecret: external_exports.string().trim().max(200),
@@ -89622,7 +89883,7 @@ var saveDiscordAppInputSchema = saveDiscordAppDefinition;
89622
89883
  var startedAuthorizeDefinition = external_exports.object({ authorizeUrl: external_exports.url() });
89623
89884
  var startedDiscordAuthorizeSchema = startedAuthorizeDefinition;
89624
89885
  var pickDefinition = external_exports.object({
89625
- workspaceId: workspaceIdSchema24,
89886
+ workspaceId: workspaceIdSchema25,
89626
89887
  guildId: discordIdSchema,
89627
89888
  channelId: discordIdSchema,
89628
89889
  picked: external_exports.boolean(),
@@ -89630,7 +89891,7 @@ var pickDefinition = external_exports.object({
89630
89891
  });
89631
89892
  var discordPickInputSchema = pickDefinition;
89632
89893
  var updateConnectionDefinition = external_exports.object({
89633
- workspaceId: workspaceIdSchema24,
89894
+ workspaceId: workspaceIdSchema25,
89634
89895
  guildId: discordIdSchema,
89635
89896
  label: external_exports.string().trim().max(80).nullable().optional(),
89636
89897
  cacheDays: external_exports.number().int().min(1).max(30).optional()
@@ -89643,16 +89904,16 @@ var oauthCallbackDefinition = external_exports.object({
89643
89904
  permissions: external_exports.string().max(40).optional(),
89644
89905
  error: external_exports.string().max(200).optional()
89645
89906
  });
89646
- var linkParamsDefinition = external_exports.object({ workspaceId: workspaceIdSchema24, guildId: discordIdSchema });
89907
+ var linkParamsDefinition = external_exports.object({ workspaceId: workspaceIdSchema25, guildId: discordIdSchema });
89647
89908
  var historyInputDefinition = external_exports.object({
89648
- workspaceId: workspaceIdSchema24,
89909
+ workspaceId: workspaceIdSchema25,
89649
89910
  /** The Laze conversation that mirrors the Discord channel. */
89650
89911
  channelId: external_exports.string().min(1).max(200),
89651
89912
  before: external_exports.iso.datetime()
89652
89913
  });
89653
89914
  var discordHistoryInputSchema = historyInputDefinition;
89654
89915
  var channelPeopleInputDefinition = external_exports.object({
89655
- workspaceId: workspaceIdSchema24,
89916
+ workspaceId: workspaceIdSchema25,
89656
89917
  channelId: external_exports.string().min(1).max(200)
89657
89918
  });
89658
89919
  var discordChannelPeopleInputSchema = channelPeopleInputDefinition;
@@ -89683,7 +89944,7 @@ var historyPageDefinition = external_exports.object({
89683
89944
  });
89684
89945
  var discordHistoryPageSchema = historyPageDefinition;
89685
89946
  var fileParamsDefinition = external_exports.object({
89686
- workspaceId: workspaceIdSchema24,
89947
+ workspaceId: workspaceIdSchema25,
89687
89948
  channelId: external_exports.string().min(1).max(200),
89688
89949
  messageId: discordIdSchema,
89689
89950
  attachmentId: discordIdSchema
@@ -89820,6 +90081,17 @@ var webhookProbeRequestedDefinition = external_exports.object({
89820
90081
  workspaceId: external_exports.string().min(1),
89821
90082
  runId: external_exports.string().min(1)
89822
90083
  });
90084
+ var discordLinkedDefinition = external_exports.object({
90085
+ workspaceId: external_exports.string().min(1),
90086
+ /** The Laze person who finished the flow. */
90087
+ userId: external_exports.string().min(1),
90088
+ /** Opaque and unique to this link, derived from the finished authorization. */
90089
+ linkId: external_exports.string().min(1),
90090
+ /** `installed`: the bot added to a server; `linked`: a person's own Discord account. */
90091
+ outcome: external_exports.enum(["installed", "linked"]),
90092
+ changeId: external_exports.string().min(1),
90093
+ at: external_exports.iso.datetime()
90094
+ });
89823
90095
 
89824
90096
  // src/services/discord-commands.service.ts
89825
90097
  var DISCORD_USAGE = `Usage (a person's key; Discord stays the source, each person picks their own channels):
@@ -90269,10 +90541,10 @@ var EXTERNAL_CONNECTION_REST_PATHS = {
90269
90541
  block: "/api/external-connections/block",
90270
90542
  report: "/api/external-connections/report"
90271
90543
  };
90272
- var workspaceIdSchema25 = external_exports.string().min(1).max(64);
90544
+ var workspaceIdSchema26 = external_exports.string().min(1).max(64);
90273
90545
  var idSchema24 = external_exports.string().min(1).max(64);
90274
90546
  var iso2 = external_exports.iso.datetime();
90275
- var workspaceInput5 = external_exports.object({ workspaceId: workspaceIdSchema25 });
90547
+ var workspaceInput5 = external_exports.object({ workspaceId: workspaceIdSchema26 });
90276
90548
  var connectionReference = external_exports.string().trim().min(1).max(120);
90277
90549
  var externalConnectionStateSchema = external_exports.enum(["active", "ended"]);
90278
90550
  var externalInviteStateSchema = external_exports.enum([
@@ -90376,10 +90648,10 @@ var rosterDefinition = external_exports.object({
90376
90648
  members: external_exports.array(rosterMemberDefinition)
90377
90649
  });
90378
90650
  var externalRosterSchema = rosterDefinition;
90379
- var rosterInputDefinition = external_exports.object({ workspaceId: workspaceIdSchema25, channelId: idSchema24 });
90651
+ var rosterInputDefinition = external_exports.object({ workspaceId: workspaceIdSchema26, channelId: idSchema24 });
90380
90652
  var externalRosterInputSchema = rosterInputDefinition;
90381
90653
  var rosterCountsInputDefinition = external_exports.object({
90382
- workspaceId: workspaceIdSchema25,
90654
+ workspaceId: workspaceIdSchema26,
90383
90655
  channelIds: external_exports.array(idSchema24).max(200)
90384
90656
  });
90385
90657
  var externalRosterCountsInputSchema = rosterCountsInputDefinition;
@@ -90388,7 +90660,7 @@ var rosterCountsDefinition = external_exports.object({
90388
90660
  });
90389
90661
  var externalRosterCountsSchema = rosterCountsDefinition;
90390
90662
  var inviteInputDefinition = external_exports.object({
90391
- workspaceId: workspaceIdSchema25,
90663
+ workspaceId: workspaceIdSchema26,
90392
90664
  email: external_exports.email().max(320),
90393
90665
  /** The first channel to share, by id or name; it is shared once the invitation is accepted. */
90394
90666
  share: external_exports.string().trim().min(1).max(81).optional(),
@@ -90396,7 +90668,7 @@ var inviteInputDefinition = external_exports.object({
90396
90668
  company: external_exports.string().trim().min(1).max(80).optional()
90397
90669
  });
90398
90670
  var externalInviteInputSchema = inviteInputDefinition;
90399
- var inviteRefDefinition = external_exports.object({ workspaceId: workspaceIdSchema25, inviteId: idSchema24 });
90671
+ var inviteRefDefinition = external_exports.object({ workspaceId: workspaceIdSchema26, inviteId: idSchema24 });
90400
90672
  var externalInviteRefSchema = inviteRefDefinition;
90401
90673
  var pendingShareDefinition = external_exports.object({
90402
90674
  channelId: external_exports.string(),
@@ -90420,7 +90692,7 @@ var pendingSharesDefinition = external_exports.object({
90420
90692
  var externalPendingSharesSchema = pendingSharesDefinition;
90421
90693
  var acceptInviteDefinition = external_exports.object({
90422
90694
  /** The workspace to connect: one where the person is Admin or Owner. */
90423
- workspaceId: workspaceIdSchema25,
90695
+ workspaceId: workspaceIdSchema26,
90424
90696
  inviteId: idSchema24,
90425
90697
  /** The emailed link's secret; without it the invitation must be addressed to the person. */
90426
90698
  secret: external_exports.string().trim().max(200).optional()
@@ -90429,26 +90701,26 @@ var externalAcceptInviteInputSchema = acceptInviteDefinition;
90429
90701
  var answeredDefinition = external_exports.object({ id: external_exports.string(), state: externalInviteStateSchema });
90430
90702
  var externalInviteAnsweredSchema = answeredDefinition;
90431
90703
  var connectionInputDefinition = external_exports.object({
90432
- workspaceId: workspaceIdSchema25,
90704
+ workspaceId: workspaceIdSchema26,
90433
90705
  connection: connectionReference
90434
90706
  });
90435
90707
  var externalConnectionInputSchema = connectionInputDefinition;
90436
90708
  var settingsInputDefinition = external_exports.object({
90437
- workspaceId: workspaceIdSchema25,
90709
+ workspaceId: workspaceIdSchema26,
90438
90710
  connection: connectionReference,
90439
90711
  agentsAllowed: external_exports.boolean().optional(),
90440
90712
  directAllowed: external_exports.boolean().optional()
90441
90713
  });
90442
90714
  var externalSettingsInputSchema = settingsInputDefinition;
90443
90715
  var shareInputDefinition = external_exports.object({
90444
- workspaceId: workspaceIdSchema25,
90716
+ workspaceId: workspaceIdSchema26,
90445
90717
  connection: connectionReference,
90446
90718
  /** The channel as its id or name, `#` optional. */
90447
90719
  channel: external_exports.string().trim().min(1).max(81)
90448
90720
  });
90449
90721
  var externalShareInputSchema = shareInputDefinition;
90450
90722
  var acceptShareDefinition = external_exports.object({
90451
- workspaceId: workspaceIdSchema25,
90723
+ workspaceId: workspaceIdSchema26,
90452
90724
  shareId: idSchema24,
90453
90725
  /** Its name here; the host's name when left out. */
90454
90726
  name: external_exports.string().trim().min(1).max(80).optional(),
@@ -90456,13 +90728,13 @@ var acceptShareDefinition = external_exports.object({
90456
90728
  });
90457
90729
  var externalAcceptShareInputSchema = acceptShareDefinition;
90458
90730
  var shareRefDefinition = external_exports.object({
90459
- workspaceId: workspaceIdSchema25,
90731
+ workspaceId: workspaceIdSchema26,
90460
90732
  /** The share's id, or this workspace's channel as its id or name. */
90461
90733
  share: external_exports.string().trim().min(1).max(81)
90462
90734
  });
90463
90735
  var externalShareRefSchema = shareRefDefinition;
90464
90736
  var reportInputDefinition = external_exports.object({
90465
- workspaceId: workspaceIdSchema25,
90737
+ workspaceId: workspaceIdSchema26,
90466
90738
  connection: connectionReference,
90467
90739
  note: external_exports.string().trim().min(1).max(2e3)
90468
90740
  });
@@ -90473,7 +90745,7 @@ var blockedDefinition = external_exports.object({
90473
90745
  });
90474
90746
  var externalBlockedSchema = blockedDefinition;
90475
90747
  var openDirectDefinition = external_exports.object({
90476
- workspaceId: workspaceIdSchema25,
90748
+ workspaceId: workspaceIdSchema26,
90477
90749
  /** The external person: their roster id (`laze:<id>`) or their name in a shared channel. */
90478
90750
  person: external_exports.string().trim().min(1).max(120),
90479
90751
  /** Their workspace, as a connection reference; needed only when a name is in two. */
@@ -99351,8 +99623,8 @@ var WHATSAPP_BUSINESS_REST_PATHS = {
99351
99623
  var WHATSAPP_BUSINESS_TEXT_MAX = 4096;
99352
99624
  var WHATSAPP_BUSINESS_LIMIT_MAX = 200;
99353
99625
  var WHATSAPP_BUSINESS_STATUS_WAIT_MAX_SECONDS = 50;
99354
- var workspaceIdSchema26 = external_exports.string().min(1).max(64);
99355
- var workspaceInput6 = external_exports.object({ workspaceId: workspaceIdSchema26 });
99626
+ var workspaceIdSchema27 = external_exports.string().min(1).max(64);
99627
+ var workspaceInput6 = external_exports.object({ workspaceId: workspaceIdSchema27 });
99356
99628
  var digits = (what) => external_exports.string().trim().regex(/^\d{5,30}$/, `${what} is the number Meta shows, digits only`);
99357
99629
  var appSecretSchema = external_exports.string().trim().regex(/^[a-f0-9]{32}$/i, "The app secret is 32 letters and digits from App settings > Basic");
99358
99630
  var accessTokenSchema = external_exports.string().trim().min(20, "The access token is the long permanent system user token").max(2e3).regex(/^\S+$/, "The access token is one line with no spaces");
@@ -99386,7 +99658,7 @@ var statusDefinition = external_exports.object({
99386
99658
  });
99387
99659
  var whatsappBusinessStatusSchema = statusDefinition;
99388
99660
  var connectDefinition2 = external_exports.object({
99389
- workspaceId: workspaceIdSchema26,
99661
+ workspaceId: workspaceIdSchema27,
99390
99662
  appId: digits("The app id"),
99391
99663
  wabaId: digits("The WhatsApp Business Account id"),
99392
99664
  phoneNumberId: digits("The phone number id"),
@@ -99409,7 +99681,7 @@ var webhookDefinition = external_exports.object({
99409
99681
  });
99410
99682
  var whatsappBusinessWebhookSchema = webhookDefinition;
99411
99683
  var settingsDefinition3 = external_exports.object({
99412
- workspaceId: workspaceIdSchema26,
99684
+ workspaceId: workspaceIdSchema27,
99413
99685
  /** The agent that answers; null for none. Left out keeps the current one. */
99414
99686
  agentId: external_exports.string().min(1).max(64).nullable().optional(),
99415
99687
  replyMode: whatsappBusinessReplyModeSchema.optional()
@@ -99429,7 +99701,7 @@ var whatsappBusinessConversationSchema = conversationDefinition;
99429
99701
  var limitSchema2 = external_exports.number().int().min(1).max(WHATSAPP_BUSINESS_LIMIT_MAX);
99430
99702
  var contactRefSchema = external_exports.string().trim().min(1).max(64);
99431
99703
  var conversationsInputDefinition = external_exports.object({
99432
- workspaceId: workspaceIdSchema26,
99704
+ workspaceId: workspaceIdSchema27,
99433
99705
  limit: limitSchema2.optional()
99434
99706
  });
99435
99707
  var whatsappBusinessConversationsInputSchema = conversationsInputDefinition;
@@ -99455,7 +99727,7 @@ var messageDefinition3 = external_exports.object({
99455
99727
  template: external_exports.string().nullable()
99456
99728
  });
99457
99729
  var readInputDefinition2 = external_exports.object({
99458
- workspaceId: workspaceIdSchema26,
99730
+ workspaceId: workspaceIdSchema27,
99459
99731
  contact: contactRefSchema,
99460
99732
  limit: limitSchema2.optional()
99461
99733
  });
@@ -99464,12 +99736,12 @@ var readDefinition2 = external_exports.object({
99464
99736
  messages: external_exports.array(messageDefinition3)
99465
99737
  });
99466
99738
  var sendInputDefinition2 = external_exports.object({
99467
- workspaceId: workspaceIdSchema26,
99739
+ workspaceId: workspaceIdSchema27,
99468
99740
  to: contactRefSchema,
99469
99741
  text: external_exports.string().trim().min(1).max(WHATSAPP_BUSINESS_TEXT_MAX)
99470
99742
  });
99471
99743
  var sendTemplateInputDefinition = external_exports.object({
99472
- workspaceId: workspaceIdSchema26,
99744
+ workspaceId: workspaceIdSchema27,
99473
99745
  to: contactRefSchema,
99474
99746
  template: external_exports.string().trim().min(1).max(512),
99475
99747
  /** The template's language code; the only approved one when left out. */
@@ -99496,7 +99768,7 @@ function whatsappBusinessSendSettled({
99496
99768
  return state !== "waiting" && state !== "sending";
99497
99769
  }
99498
99770
  var sendStatusInputDefinition2 = external_exports.object({
99499
- workspaceId: workspaceIdSchema26,
99771
+ workspaceId: workspaceIdSchema27,
99500
99772
  sendId: external_exports.string().min(1).max(64),
99501
99773
  waitSeconds: external_exports.number().int().min(0).max(WHATSAPP_BUSINESS_STATUS_WAIT_MAX_SECONDS).default(0)
99502
99774
  });
@@ -99546,7 +99818,7 @@ var restSendStatusDefinition2 = sendStatusInputDefinition2.omit({ workspaceId: t
99546
99818
  var restSettingsDefinition = settingsDefinition3.omit({ workspaceId: true });
99547
99819
  var restEmptyDefinition = external_exports.object({});
99548
99820
  var WhatsappBusinessApi = moduleApi()("whatsapp-business");
99549
- var whatsappBusinessTrpc = defineTrpcContract("whatsappBusiness").query("status").withInput(workspaceInput6).withOutput(whatsappBusinessStatusSchema).mutation("connect").withInput(connectWhatsappBusinessInputSchema).withOutput(whatsappBusinessWebhookSchema).mutation("check").withInput(workspaceInput6).withOutput(whatsappBusinessStatusSchema).mutation("verifyToken").withInput(workspaceInput6).withOutput(whatsappBusinessWebhookSchema).mutation("settings").withInput(updateWhatsappBusinessSettingsInputSchema).withOutput(whatsappBusinessStatusSchema).mutation("disconnect").withInput(workspaceInput6).withOutput(whatsappBusinessStatusSchema).query("conversations").withInput(whatsappBusinessConversationsInputSchema).withOutput(external_exports.array(whatsappBusinessConversationSchema)).query("templates").withInput(workspaceInput6).withOutput(external_exports.array(whatsappBusinessTemplateSchema)).query("prices").withInput(external_exports.object({ ...pricesInputDefinition.shape, workspaceId: workspaceIdSchema26 })).withOutput(whatsappBusinessPricesSchema).build();
99821
+ var whatsappBusinessTrpc = defineTrpcContract("whatsappBusiness").query("status").withInput(workspaceInput6).withOutput(whatsappBusinessStatusSchema).mutation("connect").withInput(connectWhatsappBusinessInputSchema).withOutput(whatsappBusinessWebhookSchema).mutation("check").withInput(workspaceInput6).withOutput(whatsappBusinessStatusSchema).mutation("verifyToken").withInput(workspaceInput6).withOutput(whatsappBusinessWebhookSchema).mutation("settings").withInput(updateWhatsappBusinessSettingsInputSchema).withOutput(whatsappBusinessStatusSchema).mutation("disconnect").withInput(workspaceInput6).withOutput(whatsappBusinessStatusSchema).query("conversations").withInput(whatsappBusinessConversationsInputSchema).withOutput(external_exports.array(whatsappBusinessConversationSchema)).query("templates").withInput(workspaceInput6).withOutput(external_exports.array(whatsappBusinessTemplateSchema)).query("prices").withInput(external_exports.object({ ...pricesInputDefinition.shape, workspaceId: workspaceIdSchema27 })).withOutput(whatsappBusinessPricesSchema).build();
99550
99822
 
99551
99823
  // ../../modules/whatsapp-business/contract/src/whatsapp-business.config.ts
99552
99824
  var whatsappBusinessConfig = Config.define((c) => ({
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lazehq/cli",
3
- "version": "0.1.95",
3
+ "version": "0.1.96",
4
4
  "description": "The Laze command line: sign in, read and post in chat, and connect your own Claude Code or Codex session as an agent.",
5
5
  "license": "UNLICENSED",
6
6
  "type": "module",