@postonus/cli 0.1.48 → 0.1.49
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 +12 -5
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -8169,6 +8169,8 @@ var CompleteUploadOutputSchema = object({
|
|
|
8169
8169
|
publicUrl: string2(),
|
|
8170
8170
|
idempotent: boolean2(),
|
|
8171
8171
|
mediaId: Uuid.nullable(),
|
|
8172
|
+
type: MediaTypeSchema.optional(),
|
|
8173
|
+
bytes: number2().int().optional(),
|
|
8172
8174
|
variants: MediaVariantsSchema.nullable(),
|
|
8173
8175
|
variantsStatus: MediaVariantsStatusSchema.nullable(),
|
|
8174
8176
|
/** Set only by scenarios that change something the client renders immediately (`user_avatar`). */
|
|
@@ -8183,7 +8185,8 @@ var FromUrlOutputSchema = object({
|
|
|
8183
8185
|
uploadId: Uuid,
|
|
8184
8186
|
mediaId: Uuid.nullable(),
|
|
8185
8187
|
publicUrl: string2(),
|
|
8186
|
-
type: MediaTypeSchema
|
|
8188
|
+
type: MediaTypeSchema,
|
|
8189
|
+
bytes: number2().int().optional()
|
|
8187
8190
|
});
|
|
8188
8191
|
var tagged9 = base.route({ tags: ["Uploads"] });
|
|
8189
8192
|
var uploadContract = {
|
|
@@ -8472,8 +8475,12 @@ var ThreadFields = {
|
|
|
8472
8475
|
};
|
|
8473
8476
|
var SharedPostFields = {
|
|
8474
8477
|
selectedIntegrations: array(string2()).optional(),
|
|
8475
|
-
integrationContent: record(string2(), string2()).
|
|
8476
|
-
|
|
8478
|
+
integrationContent: record(string2(), string2().trim().max(DRAFT_MAX_CHARS)).refine((val) => Object.keys(val).length <= PLATFORM_VALUES.length, {
|
|
8479
|
+
message: `At most ${PLATFORM_VALUES.length} platform copy overrides allowed`
|
|
8480
|
+
}).optional(),
|
|
8481
|
+
integrationFirstComment: record(string2(), string2().trim().max(DRAFT_MAX_CHARS)).refine((val) => Object.keys(val).length <= PLATFORM_VALUES.length, {
|
|
8482
|
+
message: `At most ${PLATFORM_VALUES.length} platform first comment overrides allowed`
|
|
8483
|
+
}).optional(),
|
|
8477
8484
|
integrationSettings: IntegrationSettingsInputSchema.optional(),
|
|
8478
8485
|
subreddit: string2().trim().min(1).optional(),
|
|
8479
8486
|
xLinkHandling: _enum(["first_reply", "plain_text", "keep_live"]).optional(),
|
|
@@ -8582,7 +8589,7 @@ var AddChannelsInputSchema = object({
|
|
|
8582
8589
|
var RetryScheduleInputSchema = object({
|
|
8583
8590
|
scheduleId: Uuid,
|
|
8584
8591
|
/** Replacement copy for this channel only. Omitted leaves it as it was. */
|
|
8585
|
-
content: string2().trim().optional(),
|
|
8592
|
+
content: string2().trim().max(DRAFT_MAX_CHARS).optional(),
|
|
8586
8593
|
/**
|
|
8587
8594
|
* Which of the post's existing attachments this channel publishes, in order.
|
|
8588
8595
|
* Must be a subset of what the post already has: adding media would mean
|
|
@@ -12919,7 +12926,7 @@ function formatTable(headers, rows, isTty = process.stdout.isTTY) {
|
|
|
12919
12926
|
}
|
|
12920
12927
|
|
|
12921
12928
|
// src/version.ts
|
|
12922
|
-
var CLI_VERSION = "0.1.
|
|
12929
|
+
var CLI_VERSION = "0.1.49";
|
|
12923
12930
|
|
|
12924
12931
|
// src/client.ts
|
|
12925
12932
|
var DEVICE_CODE_GRANT_TYPE = "urn:ietf:params:oauth:grant-type:device_code";
|