vidjutsu 1.0.0 → 1.2.0

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.
@@ -2839,6 +2839,66 @@ var init_overlay = __esm(() => {
2839
2839
  });
2840
2840
  });
2841
2841
 
2842
+ // src/cli/commands/generated/compliance.ts
2843
+ var exports_compliance = {};
2844
+ __export(exports_compliance, {
2845
+ default: () => compliance_default
2846
+ });
2847
+ var compliance_default;
2848
+ var init_compliance = __esm(() => {
2849
+ init_dist2();
2850
+ init_client();
2851
+ compliance_default = defineCommand({
2852
+ meta: { name: "compliance", description: "Manage compliances" },
2853
+ subCommands: {
2854
+ prompt: defineCommand({
2855
+ meta: { name: "prompt", description: "Scan text (caption / script / ad copy) against a platform's TOS / Community Guidelines" },
2856
+ args: {
2857
+ text: { type: "string", description: "The text to evaluate — caption, ad copy, draft script, upload description, etc.", required: true },
2858
+ platform: { type: "string", description: "platform", required: true },
2859
+ kind: { type: "string", description: "Optional label for logs; does not affect rule selection." },
2860
+ context: { type: "string", description: "Optional publication metadata that affects risk (caption, hashtags, monetization intent)." }
2861
+ },
2862
+ async run({ args }) {
2863
+ const body = {};
2864
+ if (args["text"] !== undefined)
2865
+ body["text"] = args["text"];
2866
+ if (args["platform"] !== undefined)
2867
+ body["platform"] = args["platform"];
2868
+ if (args["kind"] !== undefined)
2869
+ body["kind"] = args["kind"];
2870
+ if (args["context"] !== undefined)
2871
+ body["context"] = args["context"];
2872
+ const result = await apiRequest("POST", "/v1/compliance/prompt", body);
2873
+ console.log(JSON.stringify(result, null, 2));
2874
+ }
2875
+ }),
2876
+ video: defineCommand({
2877
+ meta: { name: "video", description: "Scan a video against a platform's TOS / Community Guidelines" },
2878
+ args: {
2879
+ videoUrl: { type: "string", description: "Public URL of the video to scan.", required: true },
2880
+ platform: { type: "string", description: "platform", required: true },
2881
+ format: { type: "string", description: "Optional content format hint. Inferred from duration when omitted." },
2882
+ context: { type: "string", description: "Optional publication metadata that affects risk (caption, hashtags, monetization intent)." }
2883
+ },
2884
+ async run({ args }) {
2885
+ const body = {};
2886
+ if (args["videoUrl"] !== undefined)
2887
+ body["videoUrl"] = args["videoUrl"];
2888
+ if (args["platform"] !== undefined)
2889
+ body["platform"] = args["platform"];
2890
+ if (args["format"] !== undefined)
2891
+ body["format"] = args["format"];
2892
+ if (args["context"] !== undefined)
2893
+ body["context"] = args["context"];
2894
+ const result = await apiRequest("POST", "/v1/compliance/video", body);
2895
+ console.log(JSON.stringify(result, null, 2));
2896
+ }
2897
+ })
2898
+ }
2899
+ });
2900
+ });
2901
+
2842
2902
  // src/cli/commands/generated/account.ts
2843
2903
  var exports_account = {};
2844
2904
  __export(exports_account, {
@@ -3337,6 +3397,7 @@ var main = defineCommand({
3337
3397
  extract: () => Promise.resolve().then(() => (init_extract(), exports_extract)).then((m2) => m2.default),
3338
3398
  transcribe: () => Promise.resolve().then(() => (init_transcribe(), exports_transcribe)).then((m2) => m2.default),
3339
3399
  overlay: () => Promise.resolve().then(() => (init_overlay(), exports_overlay)).then((m2) => m2.default),
3400
+ compliance: () => Promise.resolve().then(() => (init_compliance(), exports_compliance)).then((m2) => m2.default),
3340
3401
  account: () => Promise.resolve().then(() => (init_account(), exports_account)).then((m2) => m2.default),
3341
3402
  post: () => Promise.resolve().then(() => (init_post(), exports_post)).then((m2) => m2.default),
3342
3403
  asset: () => Promise.resolve().then(() => (init_asset(), exports_asset)).then((m2) => m2.default),
package/dist/methods.d.ts CHANGED
@@ -38,16 +38,20 @@ export interface VidJutsuMethods {
38
38
  confirmVerification(body: ReqBody<"/v1/auth/verify/confirm", "post">): ReturnType<Client["POST"]>;
39
39
  /** Request email verification code Public endpoint. */
40
40
  requestVerification(body: ReqBody<"/v1/auth/verify/request", "post">): ReturnType<Client["POST"]>;
41
- /** Get daily usage and rate limits */
42
- getUsage(): ReturnType<Client["GET"]>;
43
41
  /** Check spec Auth required. 5 credits. */
44
42
  checkSpec(body: ReqBody<"/v1/check", "post">): ReturnType<Client["POST"]>;
45
43
  /** Get check rules Auth required. */
46
44
  getCheckRules(): ReturnType<Client["GET"]>;
47
45
  /** Update check rules Auth required. */
48
46
  updateCheckRules(body: ReqBody<"/v1/check/rules", "put">): ReturnType<Client["PUT"]>;
47
+ /** Check prompt compliance */
48
+ checkCompliancePrompt(body: ReqBody<"/v1/compliance/prompt", "post">): ReturnType<Client["POST"]>;
49
+ /** Check video compliance */
50
+ checkComplianceVideo(body: ReqBody<"/v1/compliance/video", "post">): ReturnType<Client["POST"]>;
49
51
  /** Check checkout status Public endpoint. */
50
52
  getCheckoutStatus(query?: QueryParams<"/v1/credits/status", "get">): ReturnType<Client["GET"]>;
53
+ /** Burn fine-print disclaimer onto video */
54
+ createDisclaimer(body: ReqBody<"/v1/disclaimer", "post">): ReturnType<Client["POST"]>;
51
55
  /** Extract from media Auth required. 5 credits. */
52
56
  extractMedia(body: ReqBody<"/v1/extract", "post">): ReturnType<Client["POST"]>;
53
57
  /** API info Public endpoint. */
@@ -80,6 +84,8 @@ export interface VidJutsuMethods {
80
84
  uploadFile(): ReturnType<Client["POST"]>;
81
85
  /** Upload from URL Auth required. */
82
86
  uploadFromUrl(body: ReqBody<"/v1/upload/url", "post">): ReturnType<Client["POST"]>;
87
+ /** Get daily usage */
88
+ getUsage(): ReturnType<Client["GET"]>;
83
89
  /** Watch media Auth required. 10 credits. */
84
90
  watchMedia(body: ReqBody<"/v1/watch", "post">): ReturnType<Client["POST"]>;
85
91
  }
package/dist/methods.js CHANGED
@@ -36,9 +36,6 @@ export function bindMethods(client) {
36
36
  requestVerification(body) {
37
37
  return client.POST("/v1/auth/verify/request", { body });
38
38
  },
39
- getUsage() {
40
- return client.GET("/v1/usage", {});
41
- },
42
39
  checkSpec(body) {
43
40
  return client.POST("/v1/check", { body });
44
41
  },
@@ -48,9 +45,18 @@ export function bindMethods(client) {
48
45
  updateCheckRules(body) {
49
46
  return client.PUT("/v1/check/rules", { body });
50
47
  },
48
+ checkCompliancePrompt(body) {
49
+ return client.POST("/v1/compliance/prompt", { body });
50
+ },
51
+ checkComplianceVideo(body) {
52
+ return client.POST("/v1/compliance/video", { body });
53
+ },
51
54
  getCheckoutStatus(query) {
52
55
  return client.GET("/v1/credits/status", { params: { query } });
53
56
  },
57
+ createDisclaimer(body) {
58
+ return client.POST("/v1/disclaimer", { body });
59
+ },
54
60
  extractMedia(body) {
55
61
  return client.POST("/v1/extract", { body });
56
62
  },
@@ -99,6 +105,9 @@ export function bindMethods(client) {
99
105
  uploadFromUrl(body) {
100
106
  return client.POST("/v1/upload/url", { body });
101
107
  },
108
+ getUsage() {
109
+ return client.GET("/v1/usage", {});
110
+ },
102
111
  watchMedia(body) {
103
112
  return client.POST("/v1/watch", { body });
104
113
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vidjutsu",
3
- "version": "1.0.0",
3
+ "version": "1.2.0",
4
4
  "description": "VidJutsu — video intelligence API. SDK + CLI.",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",