@postonus/cli 0.1.41 → 0.1.42
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 +107 -2
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -253,6 +253,14 @@ var OUTREACH_ENROLLMENT_STATUS_VALUES = [
|
|
|
253
253
|
"finished",
|
|
254
254
|
"stopped"
|
|
255
255
|
];
|
|
256
|
+
var OUTREACH_SUPPRESSION_REASON_VALUES = [
|
|
257
|
+
"unsubscribed",
|
|
258
|
+
"bounced",
|
|
259
|
+
"replied_stop",
|
|
260
|
+
"manual",
|
|
261
|
+
"existing_user"
|
|
262
|
+
];
|
|
263
|
+
var OUTREACH_EVENT_KIND_VALUES = ["reply", "bounce", "unsubscribe"];
|
|
256
264
|
|
|
257
265
|
// src/index.ts
|
|
258
266
|
import { Command, Option } from "commander";
|
|
@@ -7154,6 +7162,78 @@ var UpdateMailboxInputSchema = object({
|
|
|
7154
7162
|
status: _enum(OUTREACH_MAILBOX_STATUS_VALUES).optional(),
|
|
7155
7163
|
pausedReason: string2().nullable().optional()
|
|
7156
7164
|
});
|
|
7165
|
+
var OutreachSendingMailboxSchema = object({
|
|
7166
|
+
id: string2(),
|
|
7167
|
+
address: string2(),
|
|
7168
|
+
displayName: string2(),
|
|
7169
|
+
status: _enum(OUTREACH_MAILBOX_STATUS_VALUES),
|
|
7170
|
+
pausedReason: string2().nullable(),
|
|
7171
|
+
sentToday: number2().int(),
|
|
7172
|
+
todayCap: number2().int(),
|
|
7173
|
+
isThrottled: boolean2(),
|
|
7174
|
+
week: number2().int()
|
|
7175
|
+
});
|
|
7176
|
+
var OutreachSendingNextSendSchema = object({
|
|
7177
|
+
id: string2(),
|
|
7178
|
+
prospectEmail: string2(),
|
|
7179
|
+
prospectName: string2().nullable(),
|
|
7180
|
+
stepPosition: number2().int(),
|
|
7181
|
+
subject: string2(),
|
|
7182
|
+
scheduledFor: Timestamp.nullable()
|
|
7183
|
+
});
|
|
7184
|
+
var OutreachSendingRecentEventSchema = object({
|
|
7185
|
+
id: string2(),
|
|
7186
|
+
kind: _enum(OUTREACH_EVENT_KIND_VALUES),
|
|
7187
|
+
bounceClass: string2().nullable(),
|
|
7188
|
+
detail: string2().nullable(),
|
|
7189
|
+
occurredAt: Timestamp,
|
|
7190
|
+
prospectEmail: string2().nullable()
|
|
7191
|
+
});
|
|
7192
|
+
var OutreachSendingStuckMessageSchema = object({
|
|
7193
|
+
id: string2(),
|
|
7194
|
+
prospectEmail: string2(),
|
|
7195
|
+
prospectName: string2().nullable(),
|
|
7196
|
+
stepPosition: number2().int(),
|
|
7197
|
+
subject: string2(),
|
|
7198
|
+
error: string2().nullable(),
|
|
7199
|
+
sentAt: Timestamp.nullable()
|
|
7200
|
+
});
|
|
7201
|
+
var OutreachSendingOverviewSchema = object({
|
|
7202
|
+
mailboxes: array(OutreachSendingMailboxSchema),
|
|
7203
|
+
nextSends: array(OutreachSendingNextSendSchema),
|
|
7204
|
+
recentEvents: array(OutreachSendingRecentEventSchema),
|
|
7205
|
+
stuckMessages: array(OutreachSendingStuckMessageSchema)
|
|
7206
|
+
});
|
|
7207
|
+
var ListSuppressionsInputSchema = object({
|
|
7208
|
+
search: string2().trim().max(200).optional(),
|
|
7209
|
+
limit: coerce_exports.number().int().min(1).max(100).default(50),
|
|
7210
|
+
offset: coerce_exports.number().int().min(0).default(0)
|
|
7211
|
+
});
|
|
7212
|
+
var OutreachSuppressionItemSchema = object({
|
|
7213
|
+
email: string2(),
|
|
7214
|
+
reason: _enum(OUTREACH_SUPPRESSION_REASON_VALUES),
|
|
7215
|
+
createdAt: Timestamp
|
|
7216
|
+
});
|
|
7217
|
+
var OutreachSuppressionListSchema = object({
|
|
7218
|
+
items: array(OutreachSuppressionItemSchema),
|
|
7219
|
+
total: AggregateCount
|
|
7220
|
+
});
|
|
7221
|
+
var AddSuppressionInputSchema = object({
|
|
7222
|
+
email: string2().trim().toLowerCase().email(),
|
|
7223
|
+
reason: _enum(OUTREACH_SUPPRESSION_REASON_VALUES).optional().default("manual")
|
|
7224
|
+
});
|
|
7225
|
+
var RemoveSuppressionInputSchema = object({
|
|
7226
|
+
email: string2().trim().toLowerCase()
|
|
7227
|
+
});
|
|
7228
|
+
var SendTestOutreachInputSchema = object({
|
|
7229
|
+
enrollmentId: string2(),
|
|
7230
|
+
mailboxId: string2()
|
|
7231
|
+
});
|
|
7232
|
+
var SendTestOutreachResultSchema = object({
|
|
7233
|
+
success: boolean2(),
|
|
7234
|
+
sentTo: string2(),
|
|
7235
|
+
count: number2().int()
|
|
7236
|
+
});
|
|
7157
7237
|
var adminOutreachContract = {
|
|
7158
7238
|
importProspects: mcpAdmin.route({
|
|
7159
7239
|
method: "POST",
|
|
@@ -7219,7 +7299,32 @@ var adminOutreachContract = {
|
|
|
7219
7299
|
method: "PATCH",
|
|
7220
7300
|
path: "/internal/admin/outreach/mailboxes/{id}",
|
|
7221
7301
|
summary: "Update mailbox status or placement score (admin only)"
|
|
7222
|
-
}).errors(authedErrors).input(UpdateMailboxInputSchema).output(object({ success: boolean2() }))
|
|
7302
|
+
}).errors(authedErrors).input(UpdateMailboxInputSchema).output(object({ success: boolean2() })),
|
|
7303
|
+
getSendingOverview: internal.route({
|
|
7304
|
+
method: "GET",
|
|
7305
|
+
path: "/internal/admin/outreach/sending",
|
|
7306
|
+
summary: "Get sending overview: queues, next sends, recent events, stuck messages (admin only)"
|
|
7307
|
+
}).errors(authedErrors).output(OutreachSendingOverviewSchema),
|
|
7308
|
+
listSuppressions: internal.route({
|
|
7309
|
+
method: "GET",
|
|
7310
|
+
path: "/internal/admin/outreach/suppressions",
|
|
7311
|
+
summary: "List suppressed emails with pagination (admin only)"
|
|
7312
|
+
}).errors(authedErrors).input(ListSuppressionsInputSchema).output(OutreachSuppressionListSchema),
|
|
7313
|
+
addSuppression: internal.route({
|
|
7314
|
+
method: "POST",
|
|
7315
|
+
path: "/internal/admin/outreach/suppressions",
|
|
7316
|
+
summary: "Manually suppress an email address (admin only)"
|
|
7317
|
+
}).errors(authedErrors).input(AddSuppressionInputSchema).output(object({ email: string2(), reason: string2() })),
|
|
7318
|
+
removeSuppression: internal.route({
|
|
7319
|
+
method: "POST",
|
|
7320
|
+
path: "/internal/admin/outreach/suppressions/remove",
|
|
7321
|
+
summary: "Remove an email from suppression list (admin only)"
|
|
7322
|
+
}).errors(authedErrors).input(RemoveSuppressionInputSchema).output(object({ success: boolean2() })),
|
|
7323
|
+
sendTest: internal.route({
|
|
7324
|
+
method: "POST",
|
|
7325
|
+
path: "/internal/admin/outreach/review/send-test",
|
|
7326
|
+
summary: "Send test outreach thread to admin email (admin only)"
|
|
7327
|
+
}).errors(authedErrors).input(SendTestOutreachInputSchema).output(SendTestOutreachResultSchema)
|
|
7223
7328
|
};
|
|
7224
7329
|
|
|
7225
7330
|
// ../../packages/api-contract/src/admin.ts
|
|
@@ -12765,7 +12870,7 @@ function formatTable(headers, rows, isTty = process.stdout.isTTY) {
|
|
|
12765
12870
|
}
|
|
12766
12871
|
|
|
12767
12872
|
// src/version.ts
|
|
12768
|
-
var CLI_VERSION = "0.1.
|
|
12873
|
+
var CLI_VERSION = "0.1.42";
|
|
12769
12874
|
|
|
12770
12875
|
// src/client.ts
|
|
12771
12876
|
var DEVICE_CODE_GRANT_TYPE = "urn:ietf:params:oauth:grant-type:device_code";
|