@postonus/cli 0.1.35 → 0.1.36

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
@@ -7001,6 +7001,32 @@ var DeveloperUsageSchema = object({
7001
7001
  /** Lifetime, per workspace. */
7002
7002
  workspaces: array(WorkspaceDeveloperUsageSchema)
7003
7003
  });
7004
+ var AdminEmailLogStatusSchema = _enum(["all", "sent", "bounced", "pending"]);
7005
+ var AdminEmailLogItemSchema = object({
7006
+ id: string2(),
7007
+ sentAt: Timestamp,
7008
+ recipientEmail: string2(),
7009
+ recipientName: string2().nullable(),
7010
+ userId: string2(),
7011
+ kind: string2(),
7012
+ hookId: string2().nullable(),
7013
+ variant: string2().nullable(),
7014
+ status: _enum(["sent", "bounced", "pending"]),
7015
+ resendId: string2().nullable(),
7016
+ bounceFlag: boolean2(),
7017
+ complaintFlag: boolean2()
7018
+ });
7019
+ var AdminEmailLogListSchema = object({
7020
+ items: array(AdminEmailLogItemSchema),
7021
+ total: AggregateCount
7022
+ });
7023
+ var ListAdminEmailsInputSchema = object({
7024
+ kind: string2().trim().max(100).optional(),
7025
+ status: AdminEmailLogStatusSchema.optional().default("all"),
7026
+ date: string2().trim().regex(/^\d{4}-\d{2}-\d{2}$/, "Date must be YYYY-MM-DD").optional(),
7027
+ limit: coerce_exports.number().int().min(1).max(100).default(25),
7028
+ offset: coerce_exports.number().int().min(0).default(0)
7029
+ });
7004
7030
  var internal = base.route({ tags: ["Admin"] }).meta({ internal: true });
7005
7031
  var adminContract = {
7006
7032
  getChannelRevenue: internal.route({
@@ -7020,7 +7046,12 @@ var adminContract = {
7020
7046
  method: "GET",
7021
7047
  path: "/internal/admin/developer-usage",
7022
7048
  summary: "Who uses the API and MCP surfaces (admin only)"
7023
- }).errors(authedErrors).input(object({ audience: AdminAudienceSchema })).output(DeveloperUsageSchema)
7049
+ }).errors(authedErrors).input(object({ audience: AdminAudienceSchema })).output(DeveloperUsageSchema),
7050
+ listEmails: internal.route({
7051
+ method: "GET",
7052
+ path: "/internal/admin/emails",
7053
+ summary: "List email notification log rows (admin only)"
7054
+ }).errors(authedErrors).input(ListAdminEmailsInputSchema).output(AdminEmailLogListSchema)
7024
7055
  };
7025
7056
 
7026
7057
  // ../../packages/api-contract/src/analytics.ts
@@ -12456,7 +12487,7 @@ function formatTable(headers, rows, isTty = process.stdout.isTTY) {
12456
12487
  }
12457
12488
 
12458
12489
  // src/version.ts
12459
- var CLI_VERSION = "0.1.35";
12490
+ var CLI_VERSION = "0.1.36";
12460
12491
 
12461
12492
  // src/client.ts
12462
12493
  var DEVICE_CODE_GRANT_TYPE = "urn:ietf:params:oauth:grant-type:device_code";