@postonus/cli 0.1.72 → 0.1.74
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 +25 -13
- 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
|
|
|
@@ -8276,7 +8290,6 @@ var CompleteUploadOutputSchema = object({
|
|
|
8276
8290
|
variantsStatus: MediaVariantsStatusSchema.nullable(),
|
|
8277
8291
|
avatarUrl: string2().nullable()
|
|
8278
8292
|
});
|
|
8279
|
-
var DeleteFileInputSchema = object({ uploadId: Uuid });
|
|
8280
8293
|
var FromUrlInputSchema = object({
|
|
8281
8294
|
url: string2().url(),
|
|
8282
8295
|
scenarioId: _enum(FILE_SCENARIOS)
|
|
@@ -8292,7 +8305,6 @@ var tagged9 = base.route({ tags: ["Uploads"] });
|
|
|
8292
8305
|
var uploadContract = {
|
|
8293
8306
|
initiateUpload: tagged9.route({ method: "POST", path: "/uploads/initiate", summary: "Get a signed URL to upload a file" }).errors(uploadErrors).input(InitiateUploadInputSchema).output(InitiateUploadOutputSchema),
|
|
8294
8307
|
completeUpload: tagged9.route({ method: "POST", path: "/uploads/complete", summary: "Complete an upload once its bytes are in storage" }).errors(uploadErrors).input(CompleteUploadInputSchema).output(CompleteUploadOutputSchema),
|
|
8295
|
-
deleteFile: tagged9.route({ method: "DELETE", path: "/uploads/{uploadId}", summary: "Delete an uploaded file" }).errors(orgErrors).input(DeleteFileInputSchema).output(DeletedSchema),
|
|
8296
8308
|
fromUrl: tagged9.route({
|
|
8297
8309
|
method: "POST",
|
|
8298
8310
|
path: "/uploads/from-url",
|
|
@@ -10266,17 +10278,17 @@ var contract = {
|
|
|
10266
10278
|
workspace: workspaceContract
|
|
10267
10279
|
};
|
|
10268
10280
|
|
|
10269
|
-
// ../../node_modules/.pnpm/@orpc+openapi@1.16.1_@opentelemetry+api@1.10.0_ws@8.
|
|
10281
|
+
// ../../node_modules/.pnpm/@orpc+openapi@1.16.1_@opentelemetry+api@1.10.0_ws@8.23.1/node_modules/@orpc/openapi/dist/shared/openapi.BwdtJjDu.mjs
|
|
10270
10282
|
import { isORPCErrorStatus, fallbackORPCErrorStatus, fallbackORPCErrorMessage } from "@orpc/client";
|
|
10271
10283
|
import { toHttpPath } from "@orpc/client/standard";
|
|
10272
10284
|
import { fallbackContractConfig as fallbackContractConfig2, getEventIteratorSchemaDetails } from "@orpc/contract";
|
|
10273
10285
|
import { standardizeHTTPPath, StandardOpenAPIJsonSerializer, getDynamicParams } from "@orpc/openapi-client/standard";
|
|
10274
10286
|
|
|
10275
|
-
// ../../node_modules/.pnpm/@orpc+server@1.16.1_@opentelemetry+api@1.10.0_ws@8.
|
|
10287
|
+
// ../../node_modules/.pnpm/@orpc+server@1.16.1_@opentelemetry+api@1.10.0_ws@8.23.1/node_modules/@orpc/server/dist/index.mjs
|
|
10276
10288
|
import { mergeErrorMap as mergeErrorMap2, mergeMeta, mergeRoute, mergePrefix as mergePrefix2, mergeTags, isContractProcedure as isContractProcedure2, getContractRouter, fallbackContractConfig } from "@orpc/contract";
|
|
10277
10289
|
import { ValidationError as ValidationError2, eventIterator, type, validateORPCError as validateORPCError2 } from "@orpc/contract";
|
|
10278
10290
|
|
|
10279
|
-
// ../../node_modules/.pnpm/@orpc+server@1.16.1_@opentelemetry+api@1.10.0_ws@8.
|
|
10291
|
+
// ../../node_modules/.pnpm/@orpc+server@1.16.1_@opentelemetry+api@1.10.0_ws@8.23.1/node_modules/@orpc/server/dist/shared/server.DEBcqOjg.mjs
|
|
10280
10292
|
import { isContractProcedure, validateORPCError, ValidationError, mergePrefix, mergeErrorMap, enhanceRoute } from "@orpc/contract";
|
|
10281
10293
|
|
|
10282
10294
|
// ../../node_modules/.pnpm/@orpc+shared@1.16.1_@opentelemetry+api@1.10.0/node_modules/@orpc/shared/dist/index.mjs
|
|
@@ -10536,7 +10548,7 @@ function overlayProxy(target, partial2) {
|
|
|
10536
10548
|
return proxy;
|
|
10537
10549
|
}
|
|
10538
10550
|
|
|
10539
|
-
// ../../node_modules/.pnpm/@orpc+server@1.16.1_@opentelemetry+api@1.10.0_ws@8.
|
|
10551
|
+
// ../../node_modules/.pnpm/@orpc+server@1.16.1_@opentelemetry+api@1.10.0_ws@8.23.1/node_modules/@orpc/server/dist/shared/server.DEBcqOjg.mjs
|
|
10540
10552
|
import { ORPCError, mapEventIterator } from "@orpc/client";
|
|
10541
10553
|
|
|
10542
10554
|
// ../../node_modules/.pnpm/@orpc+standard-server@1.16.1_@opentelemetry+api@1.10.0/node_modules/@orpc/standard-server/dist/index.mjs
|
|
@@ -10685,7 +10697,7 @@ var HibernationEventIterator = class extends AsyncIteratorClass {
|
|
|
10685
10697
|
}
|
|
10686
10698
|
};
|
|
10687
10699
|
|
|
10688
|
-
// ../../node_modules/.pnpm/@orpc+server@1.16.1_@opentelemetry+api@1.10.0_ws@8.
|
|
10700
|
+
// ../../node_modules/.pnpm/@orpc+server@1.16.1_@opentelemetry+api@1.10.0_ws@8.23.1/node_modules/@orpc/server/dist/shared/server.DEBcqOjg.mjs
|
|
10689
10701
|
var LAZY_SYMBOL = /* @__PURE__ */ Symbol("ORPC_LAZY_SYMBOL");
|
|
10690
10702
|
function lazy2(loader, meta2 = {}) {
|
|
10691
10703
|
return {
|
|
@@ -11038,7 +11050,7 @@ async function resolveContractProcedures(options, callback) {
|
|
|
11038
11050
|
}
|
|
11039
11051
|
}
|
|
11040
11052
|
|
|
11041
|
-
// ../../node_modules/.pnpm/@orpc+server@1.16.1_@opentelemetry+api@1.10.0_ws@8.
|
|
11053
|
+
// ../../node_modules/.pnpm/@orpc+server@1.16.1_@opentelemetry+api@1.10.0_ws@8.23.1/node_modules/@orpc/server/dist/index.mjs
|
|
11042
11054
|
import { toORPCError } from "@orpc/client";
|
|
11043
11055
|
import { ORPCError as ORPCError2, isDefinedError, safe } from "@orpc/client";
|
|
11044
11056
|
var DEFAULT_CONFIG = {
|
|
@@ -11433,7 +11445,7 @@ var TypeName;
|
|
|
11433
11445
|
TypeName2["String"] = "string";
|
|
11434
11446
|
})(TypeName || (TypeName = {}));
|
|
11435
11447
|
|
|
11436
|
-
// ../../node_modules/.pnpm/@orpc+openapi@1.16.1_@opentelemetry+api@1.10.0_ws@8.
|
|
11448
|
+
// ../../node_modules/.pnpm/@orpc+openapi@1.16.1_@opentelemetry+api@1.10.0_ws@8.23.1/node_modules/@orpc/openapi/dist/shared/openapi.BwdtJjDu.mjs
|
|
11437
11449
|
var OPERATION_EXTENDER_SYMBOL = /* @__PURE__ */ Symbol("ORPC_OPERATION_EXTENDER");
|
|
11438
11450
|
function getCustomOpenAPIOperation(o) {
|
|
11439
11451
|
return o[OPERATION_EXTENDER_SYMBOL];
|
|
@@ -12288,13 +12300,13 @@ ${errors.join("\n\n")}`
|
|
|
12288
12300
|
}
|
|
12289
12301
|
};
|
|
12290
12302
|
|
|
12291
|
-
// ../../node_modules/.pnpm/@orpc+openapi@1.16.1_@opentelemetry+api@1.10.0_ws@8.
|
|
12303
|
+
// ../../node_modules/.pnpm/@orpc+openapi@1.16.1_@opentelemetry+api@1.10.0_ws@8.23.1/node_modules/@orpc/openapi/dist/index.mjs
|
|
12292
12304
|
import { createORPCErrorFromJson } from "@orpc/client";
|
|
12293
12305
|
import { StandardOpenAPISerializer, StandardOpenAPIJsonSerializer as StandardOpenAPIJsonSerializer2, StandardBracketNotationSerializer } from "@orpc/openapi-client/standard";
|
|
12294
12306
|
import "@orpc/client/standard";
|
|
12295
12307
|
import "@orpc/contract";
|
|
12296
12308
|
|
|
12297
|
-
// ../../node_modules/.pnpm/@orpc+json-schema@1.16.1_@opentelemetry+api@1.10.0_ws@8.
|
|
12309
|
+
// ../../node_modules/.pnpm/@orpc+json-schema@1.16.1_@opentelemetry+api@1.10.0_ws@8.23.1/node_modules/@orpc/json-schema/dist/index.mjs
|
|
12298
12310
|
var JsonSchemaXNativeType = /* @__PURE__ */ ((JsonSchemaXNativeType2) => {
|
|
12299
12311
|
JsonSchemaXNativeType2["BigInt"] = "bigint";
|
|
12300
12312
|
JsonSchemaXNativeType2["RegExp"] = "regexp";
|
|
@@ -12305,7 +12317,7 @@ var JsonSchemaXNativeType = /* @__PURE__ */ ((JsonSchemaXNativeType2) => {
|
|
|
12305
12317
|
return JsonSchemaXNativeType2;
|
|
12306
12318
|
})(JsonSchemaXNativeType || {});
|
|
12307
12319
|
|
|
12308
|
-
// ../../node_modules/.pnpm/@orpc+zod@1.16.1_@opentelemetry+api@1.10.0_@orpc+contract@1.16.1_@opentelemetry+api@1.
|
|
12320
|
+
// ../../node_modules/.pnpm/@orpc+zod@1.16.1_@opentelemetry+api@1.10.0_@orpc+contract@1.16.1_@opentelemetry+api@1.1_df899f2c82da0b10ba21958fe42301a0/node_modules/@orpc/zod/dist/zod4/index.mjs
|
|
12309
12321
|
var JSON_SCHEMA_REGISTRY = registry();
|
|
12310
12322
|
var JSON_SCHEMA_INPUT_REGISTRY = registry();
|
|
12311
12323
|
var JSON_SCHEMA_OUTPUT_REGISTRY = registry();
|
|
@@ -13055,7 +13067,7 @@ function formatTable(headers, rows, isTty = process.stdout.isTTY) {
|
|
|
13055
13067
|
}
|
|
13056
13068
|
|
|
13057
13069
|
// src/version.ts
|
|
13058
|
-
var CLI_VERSION = "0.1.
|
|
13070
|
+
var CLI_VERSION = "0.1.74";
|
|
13059
13071
|
|
|
13060
13072
|
// src/client.ts
|
|
13061
13073
|
var DEVICE_CODE_GRANT_TYPE = "urn:ietf:params:oauth:grant-type:device_code";
|