@postonus/cli 0.1.40 → 0.1.41

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -240,6 +240,7 @@ var isValidTimezone = (timezone) => {
240
240
  var POSTING_FOR_VALUES = ["product", "clients", "myself", "brand"];
241
241
 
242
242
  // ../../packages/app-config/src/outreach.ts
243
+ var OUTREACH_MAILBOX_STATUS_VALUES = ["warming", "active", "paused"];
243
244
  var OUTREACH_VERIFY_STATUS_VALUES = ["pending", "ok", "risky", "invalid"];
244
245
  var OUTREACH_PROSPECT_SOURCE_VALUES = ["paste", "mcp"];
245
246
  var OUTREACH_ENROLLMENT_STATUS_VALUES = [
@@ -7114,6 +7115,45 @@ var OutreachStatsSchema = object({
7114
7115
  mailboxes: array(OutreachMailboxStatsSchema),
7115
7116
  personas: array(OutreachPersonaStatsSchema)
7116
7117
  });
7118
+ var OutreachMailboxItemSchema = object({
7119
+ id: string2(),
7120
+ address: string2(),
7121
+ displayName: string2(),
7122
+ smtpHost: string2(),
7123
+ smtpPort: number2().int(),
7124
+ imapHost: string2(),
7125
+ imapPort: number2().int(),
7126
+ status: _enum(OUTREACH_MAILBOX_STATUS_VALUES),
7127
+ pausedReason: string2().nullable(),
7128
+ warmupStartedAt: Timestamp,
7129
+ timezone: string2(),
7130
+ deferredUntil: Timestamp.nullable(),
7131
+ deferCount: number2().int(),
7132
+ dnsCheckedAt: Timestamp.nullable(),
7133
+ dnsStatus: string2().nullable(),
7134
+ placementScore: number2().nullable(),
7135
+ createdAt: Timestamp,
7136
+ sent7d: number2().int(),
7137
+ bounceRate7d: number2(),
7138
+ unsubscribeRate7d: number2(),
7139
+ isThrottled: boolean2()
7140
+ });
7141
+ var AddMailboxInputSchema = object({
7142
+ address: string2().trim().email().toLowerCase(),
7143
+ displayName: string2().trim().min(1),
7144
+ smtpHost: string2().trim().min(1),
7145
+ smtpPort: coerce_exports.number().int().min(1),
7146
+ imapHost: string2().trim().min(1),
7147
+ imapPort: coerce_exports.number().int().min(1),
7148
+ password: string2().min(1),
7149
+ timezone: string2().trim().optional()
7150
+ });
7151
+ var UpdateMailboxInputSchema = object({
7152
+ id: string2(),
7153
+ placementScore: number2().min(0).max(10).nullable().optional(),
7154
+ status: _enum(OUTREACH_MAILBOX_STATUS_VALUES).optional(),
7155
+ pausedReason: string2().nullable().optional()
7156
+ });
7117
7157
  var adminOutreachContract = {
7118
7158
  importProspects: mcpAdmin.route({
7119
7159
  method: "POST",
@@ -7164,7 +7204,22 @@ var adminOutreachContract = {
7164
7204
  method: "GET",
7165
7205
  path: "/internal/admin/outreach/stats",
7166
7206
  summary: "Outreach stats per mailbox and per persona (admin only)"
7167
- }).errors(authedErrors).output(OutreachStatsSchema)
7207
+ }).errors(authedErrors).output(OutreachStatsSchema),
7208
+ listMailboxes: internal.route({
7209
+ method: "GET",
7210
+ path: "/internal/admin/outreach/mailboxes",
7211
+ summary: "List outreach mailboxes with health and warmup stats (admin only)"
7212
+ }).errors(authedErrors).output(array(OutreachMailboxItemSchema)),
7213
+ addMailbox: internal.route({
7214
+ method: "POST",
7215
+ path: "/internal/admin/outreach/mailboxes",
7216
+ summary: "Add outreach mailbox, storing password in secret manager (admin only)"
7217
+ }).errors(authedErrors).input(AddMailboxInputSchema).output(object({ id: string2(), address: string2(), status: string2() })),
7218
+ updateMailbox: internal.route({
7219
+ method: "PATCH",
7220
+ path: "/internal/admin/outreach/mailboxes/{id}",
7221
+ summary: "Update mailbox status or placement score (admin only)"
7222
+ }).errors(authedErrors).input(UpdateMailboxInputSchema).output(object({ success: boolean2() }))
7168
7223
  };
7169
7224
 
7170
7225
  // ../../packages/api-contract/src/admin.ts
@@ -12710,7 +12765,7 @@ function formatTable(headers, rows, isTty = process.stdout.isTTY) {
12710
12765
  }
12711
12766
 
12712
12767
  // src/version.ts
12713
- var CLI_VERSION = "0.1.40";
12768
+ var CLI_VERSION = "0.1.41";
12714
12769
 
12715
12770
  // src/client.ts
12716
12771
  var DEVICE_CODE_GRANT_TYPE = "urn:ietf:params:oauth:grant-type:device_code";