@postonus/cli 0.1.72 → 0.1.73
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 +15 -1
- package/dist/index.js.map +1 -1
- package/package.json +3 -3
package/dist/index.js
CHANGED
|
@@ -7476,6 +7476,7 @@ var AdminUserSchema = object({
|
|
|
7476
7476
|
emailVerified: boolean2(),
|
|
7477
7477
|
createdAt: Timestamp,
|
|
7478
7478
|
lastActiveAt: Timestamp.nullable(),
|
|
7479
|
+
complimentaryUntil: Timestamp.nullable(),
|
|
7479
7480
|
workspaceCount: AggregateCount,
|
|
7480
7481
|
apiKeyCount: AggregateCount,
|
|
7481
7482
|
apiCalls: AggregateCount,
|
|
@@ -7545,6 +7546,10 @@ var ListAdminEmailsInputSchema = object({
|
|
|
7545
7546
|
limit: coerce_exports.number().int().min(1).max(100).default(25),
|
|
7546
7547
|
offset: coerce_exports.number().int().min(0).default(0)
|
|
7547
7548
|
});
|
|
7549
|
+
var SetComplimentaryPlanInputSchema = object({
|
|
7550
|
+
userId: string2().min(1),
|
|
7551
|
+
until: coerce_exports.date()
|
|
7552
|
+
});
|
|
7548
7553
|
var internal2 = base.route({ tags: ["Admin"] }).meta({ internal: true });
|
|
7549
7554
|
var adminContract = {
|
|
7550
7555
|
getChannelRevenue: internal2.route({
|
|
@@ -7563,6 +7568,15 @@ var adminContract = {
|
|
|
7563
7568
|
path: "/internal/admin/emails",
|
|
7564
7569
|
summary: "List email notification log rows (admin only)"
|
|
7565
7570
|
}).errors(authedErrors).input(ListAdminEmailsInputSchema).output(AdminEmailLogListSchema),
|
|
7571
|
+
setComplimentaryPlan: internal2.route({
|
|
7572
|
+
method: "PUT",
|
|
7573
|
+
path: "/internal/admin/users/{userId}/complimentary-plan",
|
|
7574
|
+
summary: "Give a user free Pro until a date, or end it now (admin only)"
|
|
7575
|
+
}).errors({
|
|
7576
|
+
...authedErrors,
|
|
7577
|
+
NOT_FOUND: { message: "User not found." },
|
|
7578
|
+
CONFLICT: { status: 409, message: "The user already pays through Polar." }
|
|
7579
|
+
}).input(SetComplimentaryPlanInputSchema).output(object({ complimentaryUntil: Timestamp })),
|
|
7566
7580
|
outreach: adminOutreachContract
|
|
7567
7581
|
};
|
|
7568
7582
|
|
|
@@ -13055,7 +13069,7 @@ function formatTable(headers, rows, isTty = process.stdout.isTTY) {
|
|
|
13055
13069
|
}
|
|
13056
13070
|
|
|
13057
13071
|
// src/version.ts
|
|
13058
|
-
var CLI_VERSION = "0.1.
|
|
13072
|
+
var CLI_VERSION = "0.1.73";
|
|
13059
13073
|
|
|
13060
13074
|
// src/client.ts
|
|
13061
13075
|
var DEVICE_CODE_GRANT_TYPE = "urn:ietf:params:oauth:grant-type:device_code";
|