@postonus/cli 0.1.49 → 0.1.50
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 +26 -6
- package/dist/index.js.map +1 -1
- package/package.json +3 -3
package/dist/index.js
CHANGED
|
@@ -262,6 +262,19 @@ var OUTREACH_SUPPRESSION_REASON_VALUES = [
|
|
|
262
262
|
];
|
|
263
263
|
var OUTREACH_EVENT_KIND_VALUES = ["reply", "bounce", "unsubscribe"];
|
|
264
264
|
|
|
265
|
+
// ../../packages/app-config/src/clips.ts
|
|
266
|
+
var CLIP_JOB_FAILURE_CODES = [
|
|
267
|
+
"DOWNLOAD_FAILED",
|
|
268
|
+
"TRANSCRIBE_FAILED",
|
|
269
|
+
"NO_MOMENTS",
|
|
270
|
+
"ENCODE_FAILED",
|
|
271
|
+
"UPLOAD_FAILED",
|
|
272
|
+
"CAPTIONS_UNSUPPORTED",
|
|
273
|
+
"ENQUEUE_FAILED",
|
|
274
|
+
"STALE",
|
|
275
|
+
"UNKNOWN"
|
|
276
|
+
];
|
|
277
|
+
|
|
265
278
|
// src/index.ts
|
|
266
279
|
import { Command, Option } from "commander";
|
|
267
280
|
|
|
@@ -7829,6 +7842,7 @@ var channelGroupsContract = {
|
|
|
7829
7842
|
// ../../packages/api-contract/src/clips.ts
|
|
7830
7843
|
var internal4 = base.meta({ internal: true });
|
|
7831
7844
|
var ClipJobStatusSchema = _enum(["QUEUED", "PROCESSING", "DONE", "FAILED"]);
|
|
7845
|
+
var ClipJobFailureCodeSchema = _enum(CLIP_JOB_FAILURE_CODES);
|
|
7832
7846
|
var ClipJobSchema = object({
|
|
7833
7847
|
id: Uuid,
|
|
7834
7848
|
organizationId: string2(),
|
|
@@ -7836,7 +7850,7 @@ var ClipJobSchema = object({
|
|
|
7836
7850
|
sourceMediaId: Uuid.nullable(),
|
|
7837
7851
|
youtubeUrl: string2().nullable(),
|
|
7838
7852
|
status: ClipJobStatusSchema,
|
|
7839
|
-
failureCode:
|
|
7853
|
+
failureCode: ClipJobFailureCodeSchema.nullable(),
|
|
7840
7854
|
inputSeconds: number2().int().nullable(),
|
|
7841
7855
|
creditsReserved: number2().int(),
|
|
7842
7856
|
transcriptVendor: string2().nullable(),
|
|
@@ -7845,10 +7859,16 @@ var ClipJobSchema = object({
|
|
|
7845
7859
|
createdAt: Timestamp,
|
|
7846
7860
|
updatedAt: Timestamp
|
|
7847
7861
|
});
|
|
7848
|
-
var CreateClipJobInputSchema =
|
|
7849
|
-
|
|
7850
|
-
|
|
7851
|
-
|
|
7862
|
+
var CreateClipJobInputSchema = union([
|
|
7863
|
+
object({
|
|
7864
|
+
mediaId: Uuid,
|
|
7865
|
+
youtubeUrl: never().optional()
|
|
7866
|
+
}),
|
|
7867
|
+
object({
|
|
7868
|
+
mediaId: never().optional(),
|
|
7869
|
+
youtubeUrl: string2().url()
|
|
7870
|
+
})
|
|
7871
|
+
]);
|
|
7852
7872
|
var ListClipsInputSchema = object({
|
|
7853
7873
|
limit: coerce_exports.number().int().min(1).max(100).default(20).optional()
|
|
7854
7874
|
});
|
|
@@ -12926,7 +12946,7 @@ function formatTable(headers, rows, isTty = process.stdout.isTTY) {
|
|
|
12926
12946
|
}
|
|
12927
12947
|
|
|
12928
12948
|
// src/version.ts
|
|
12929
|
-
var CLI_VERSION = "0.1.
|
|
12949
|
+
var CLI_VERSION = "0.1.50";
|
|
12930
12950
|
|
|
12931
12951
|
// src/client.ts
|
|
12932
12952
|
var DEVICE_CODE_GRANT_TYPE = "urn:ietf:params:oauth:grant-type:device_code";
|