@zilfu/sdk 0.2.24 → 0.2.26

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.d.cts CHANGED
@@ -320,7 +320,7 @@ type ClientOptions = {
320
320
  */
321
321
  type AccountPostsResource = {
322
322
  /**
323
- * The payload contract version, e.g. `analytics.v1`. Shared with the report; the URL is never versioned.
323
+ * The payload contract version, e.g. `analytics.v2`. Shared with the report; the URL is never versioned.
324
324
  */
325
325
  contract: string;
326
326
  /**
@@ -423,7 +423,7 @@ type AccountPostsResource = {
423
423
  */
424
424
  type AccountReportResource = {
425
425
  /**
426
- * The payload contract version, e.g. `analytics.v1`. The URL is never versioned.
426
+ * The payload contract version, e.g. `analytics.v2`. The URL is never versioned.
427
427
  */
428
428
  contract: string;
429
429
  /**
@@ -596,29 +596,6 @@ type AccountReportResource = {
596
596
  [key: string]: number;
597
597
  };
598
598
  };
599
- /**
600
- * The fixed 90-day day-and-hour grid.
601
- */
602
- best_times: {
603
- cells: Array<{
604
- weekday: number;
605
- hour: number;
606
- posts: number;
607
- average: number;
608
- }>;
609
- best: {
610
- weekday: number;
611
- hour: number;
612
- posts: number;
613
- average: number;
614
- } | null;
615
- timezone: string;
616
- lookback_days: number;
617
- min_posts: number;
618
- max_average: number;
619
- status: string;
620
- reason: string | null;
621
- } | null;
622
599
  };
623
600
  /**
624
601
  * AccountReportSummaryResource
@@ -1018,9 +995,22 @@ type StorePostRequest = {
1018
995
  board_id?: string | null;
1019
996
  title?: string | null;
1020
997
  cover_image_url?: string | null;
998
+ privacy_status?: 'public' | 'unlisted' | 'private';
999
+ made_for_kids?: boolean | null;
1000
+ category_id?: string | null;
1021
1001
  } | null;
1022
1002
  main?: {
1023
- content: string;
1003
+ /**
1004
+ * Required everywhere but YouTube, where the body is the video
1005
+ * description and an empty one is ordinary — a Short is usually
1006
+ * posted with a title and nothing else. The driver already
1007
+ * handles it (`$payload['content'] ?? ''`) and `description` is
1008
+ * optional on `videos.insert`, so `required` was the only thing
1009
+ * refusing it. Written as `required_unless` because Laravel
1010
+ * resolves the sibling wildcard index for a rule's parameters;
1011
+ * it is the rule *object* on another key that cannot see one.
1012
+ */
1013
+ content?: string | null;
1024
1014
  media?: Array<{
1025
1015
  url: string;
1026
1016
  type: 'image' | 'video';
@@ -1091,6 +1081,9 @@ type UpdatePostRequest = {
1091
1081
  board_id?: string | null;
1092
1082
  title?: string | null;
1093
1083
  cover_image_url?: string | null;
1084
+ privacy_status?: 'public' | 'unlisted' | 'private';
1085
+ made_for_kids?: boolean | null;
1086
+ category_id?: string | null;
1094
1087
  };
1095
1088
  media?: Array<{
1096
1089
  url: string;
package/dist/index.d.ts CHANGED
@@ -320,7 +320,7 @@ type ClientOptions = {
320
320
  */
321
321
  type AccountPostsResource = {
322
322
  /**
323
- * The payload contract version, e.g. `analytics.v1`. Shared with the report; the URL is never versioned.
323
+ * The payload contract version, e.g. `analytics.v2`. Shared with the report; the URL is never versioned.
324
324
  */
325
325
  contract: string;
326
326
  /**
@@ -423,7 +423,7 @@ type AccountPostsResource = {
423
423
  */
424
424
  type AccountReportResource = {
425
425
  /**
426
- * The payload contract version, e.g. `analytics.v1`. The URL is never versioned.
426
+ * The payload contract version, e.g. `analytics.v2`. The URL is never versioned.
427
427
  */
428
428
  contract: string;
429
429
  /**
@@ -596,29 +596,6 @@ type AccountReportResource = {
596
596
  [key: string]: number;
597
597
  };
598
598
  };
599
- /**
600
- * The fixed 90-day day-and-hour grid.
601
- */
602
- best_times: {
603
- cells: Array<{
604
- weekday: number;
605
- hour: number;
606
- posts: number;
607
- average: number;
608
- }>;
609
- best: {
610
- weekday: number;
611
- hour: number;
612
- posts: number;
613
- average: number;
614
- } | null;
615
- timezone: string;
616
- lookback_days: number;
617
- min_posts: number;
618
- max_average: number;
619
- status: string;
620
- reason: string | null;
621
- } | null;
622
599
  };
623
600
  /**
624
601
  * AccountReportSummaryResource
@@ -1018,9 +995,22 @@ type StorePostRequest = {
1018
995
  board_id?: string | null;
1019
996
  title?: string | null;
1020
997
  cover_image_url?: string | null;
998
+ privacy_status?: 'public' | 'unlisted' | 'private';
999
+ made_for_kids?: boolean | null;
1000
+ category_id?: string | null;
1021
1001
  } | null;
1022
1002
  main?: {
1023
- content: string;
1003
+ /**
1004
+ * Required everywhere but YouTube, where the body is the video
1005
+ * description and an empty one is ordinary — a Short is usually
1006
+ * posted with a title and nothing else. The driver already
1007
+ * handles it (`$payload['content'] ?? ''`) and `description` is
1008
+ * optional on `videos.insert`, so `required` was the only thing
1009
+ * refusing it. Written as `required_unless` because Laravel
1010
+ * resolves the sibling wildcard index for a rule's parameters;
1011
+ * it is the rule *object* on another key that cannot see one.
1012
+ */
1013
+ content?: string | null;
1024
1014
  media?: Array<{
1025
1015
  url: string;
1026
1016
  type: 'image' | 'video';
@@ -1091,6 +1081,9 @@ type UpdatePostRequest = {
1091
1081
  board_id?: string | null;
1092
1082
  title?: string | null;
1093
1083
  cover_image_url?: string | null;
1084
+ privacy_status?: 'public' | 'unlisted' | 'private';
1085
+ made_for_kids?: boolean | null;
1086
+ category_id?: string | null;
1094
1087
  };
1095
1088
  media?: Array<{
1096
1089
  url: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zilfu/sdk",
3
- "version": "0.2.24",
3
+ "version": "0.2.26",
4
4
  "description": "Official TypeScript SDK for the Zilfu API",
5
5
  "license": "MIT",
6
6
  "type": "module",