@zilfu/sdk 0.2.25 → 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
@@ -995,9 +995,22 @@ type StorePostRequest = {
995
995
  board_id?: string | null;
996
996
  title?: string | null;
997
997
  cover_image_url?: string | null;
998
+ privacy_status?: 'public' | 'unlisted' | 'private';
999
+ made_for_kids?: boolean | null;
1000
+ category_id?: string | null;
998
1001
  } | null;
999
1002
  main?: {
1000
- 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;
1001
1014
  media?: Array<{
1002
1015
  url: string;
1003
1016
  type: 'image' | 'video';
@@ -1068,6 +1081,9 @@ type UpdatePostRequest = {
1068
1081
  board_id?: string | null;
1069
1082
  title?: string | null;
1070
1083
  cover_image_url?: string | null;
1084
+ privacy_status?: 'public' | 'unlisted' | 'private';
1085
+ made_for_kids?: boolean | null;
1086
+ category_id?: string | null;
1071
1087
  };
1072
1088
  media?: Array<{
1073
1089
  url: string;
package/dist/index.d.ts CHANGED
@@ -995,9 +995,22 @@ type StorePostRequest = {
995
995
  board_id?: string | null;
996
996
  title?: string | null;
997
997
  cover_image_url?: string | null;
998
+ privacy_status?: 'public' | 'unlisted' | 'private';
999
+ made_for_kids?: boolean | null;
1000
+ category_id?: string | null;
998
1001
  } | null;
999
1002
  main?: {
1000
- 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;
1001
1014
  media?: Array<{
1002
1015
  url: string;
1003
1016
  type: 'image' | 'video';
@@ -1068,6 +1081,9 @@ type UpdatePostRequest = {
1068
1081
  board_id?: string | null;
1069
1082
  title?: string | null;
1070
1083
  cover_image_url?: string | null;
1084
+ privacy_status?: 'public' | 'unlisted' | 'private';
1085
+ made_for_kids?: boolean | null;
1086
+ category_id?: string | null;
1071
1087
  };
1072
1088
  media?: Array<{
1073
1089
  url: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zilfu/sdk",
3
- "version": "0.2.25",
3
+ "version": "0.2.26",
4
4
  "description": "Official TypeScript SDK for the Zilfu API",
5
5
  "license": "MIT",
6
6
  "type": "module",