post-for-me 0.1.0.pre.alpha.11 → 0.1.0.pre.alpha.12

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.
@@ -256,8 +256,20 @@ module PostForMe
256
256
  sig { returns(T.nilable(String)) }
257
257
  attr_accessor :location
258
258
 
259
+ # If true will notify YouTube the video is intended for kids, defaults to false
260
+ sig { returns(T.nilable(T::Boolean)) }
261
+ attr_accessor :made_for_kids
262
+
259
263
  # Overrides the `media` from the post
260
- sig { returns(T.nilable(T::Array[String])) }
264
+ sig do
265
+ returns(
266
+ T.nilable(
267
+ T::Array[
268
+ PostForMe::SocialPost::AccountConfiguration::Configuration::Media
269
+ ]
270
+ )
271
+ )
272
+ end
261
273
  attr_accessor :media
262
274
 
263
275
  # Post placement for Facebook/Instagram/Threads
@@ -288,8 +300,15 @@ module PostForMe
288
300
  end
289
301
  attr_writer :poll
290
302
 
291
- # Sets the privacy status for TikTok (private, public)
292
- sig { returns(T.nilable(String)) }
303
+ # Sets the privacy status for TikTok (private, public), or YouTube (private,
304
+ # public, unlisted)
305
+ sig do
306
+ returns(
307
+ T.nilable(
308
+ PostForMe::SocialPost::AccountConfiguration::Configuration::PrivacyStatus::TaggedSymbol
309
+ )
310
+ )
311
+ end
293
312
  attr_accessor :privacy_status
294
313
 
295
314
  # Id of the tweet you want to quote
@@ -334,14 +353,23 @@ module PostForMe
334
353
  is_draft: T.nilable(T::Boolean),
335
354
  link: T.nilable(String),
336
355
  location: T.nilable(String),
337
- media: T.nilable(T::Array[String]),
356
+ made_for_kids: T.nilable(T::Boolean),
357
+ media:
358
+ T.nilable(
359
+ T::Array[
360
+ PostForMe::SocialPost::AccountConfiguration::Configuration::Media::OrHash
361
+ ]
362
+ ),
338
363
  placement:
339
364
  T.nilable(
340
365
  PostForMe::SocialPost::AccountConfiguration::Configuration::Placement::OrSymbol
341
366
  ),
342
367
  poll:
343
368
  PostForMe::SocialPost::AccountConfiguration::Configuration::Poll::OrHash,
344
- privacy_status: T.nilable(String),
369
+ privacy_status:
370
+ T.nilable(
371
+ PostForMe::SocialPost::AccountConfiguration::Configuration::PrivacyStatus::OrSymbol
372
+ ),
345
373
  quote_tweet_id: String,
346
374
  reply_settings:
347
375
  T.nilable(
@@ -383,13 +411,16 @@ module PostForMe
383
411
  # Page id with a location that you want to tag the image or video with (Instagram
384
412
  # and Facebook)
385
413
  location: nil,
414
+ # If true will notify YouTube the video is intended for kids, defaults to false
415
+ made_for_kids: nil,
386
416
  # Overrides the `media` from the post
387
417
  media: nil,
388
418
  # Post placement for Facebook/Instagram/Threads
389
419
  placement: nil,
390
420
  # Poll options for the twitter
391
421
  poll: nil,
392
- # Sets the privacy status for TikTok (private, public)
422
+ # Sets the privacy status for TikTok (private, public), or YouTube (private,
423
+ # public, unlisted)
393
424
  privacy_status: nil,
394
425
  # Id of the tweet you want to quote
395
426
  quote_tweet_id: nil,
@@ -419,14 +450,23 @@ module PostForMe
419
450
  is_draft: T.nilable(T::Boolean),
420
451
  link: T.nilable(String),
421
452
  location: T.nilable(String),
422
- media: T.nilable(T::Array[String]),
453
+ made_for_kids: T.nilable(T::Boolean),
454
+ media:
455
+ T.nilable(
456
+ T::Array[
457
+ PostForMe::SocialPost::AccountConfiguration::Configuration::Media
458
+ ]
459
+ ),
423
460
  placement:
424
461
  T.nilable(
425
462
  PostForMe::SocialPost::AccountConfiguration::Configuration::Placement::TaggedSymbol
426
463
  ),
427
464
  poll:
428
465
  PostForMe::SocialPost::AccountConfiguration::Configuration::Poll,
429
- privacy_status: T.nilable(String),
466
+ privacy_status:
467
+ T.nilable(
468
+ PostForMe::SocialPost::AccountConfiguration::Configuration::PrivacyStatus::TaggedSymbol
469
+ ),
430
470
  quote_tweet_id: String,
431
471
  reply_settings:
432
472
  T.nilable(
@@ -440,6 +480,245 @@ module PostForMe
440
480
  def to_hash
441
481
  end
442
482
 
483
+ class Media < PostForMe::Internal::Type::BaseModel
484
+ OrHash =
485
+ T.type_alias do
486
+ T.any(
487
+ PostForMe::SocialPost::AccountConfiguration::Configuration::Media,
488
+ PostForMe::Internal::AnyHash
489
+ )
490
+ end
491
+
492
+ # Public URL of the media
493
+ sig { returns(String) }
494
+ attr_accessor :url
495
+
496
+ # List of tags to attach to the media
497
+ sig do
498
+ returns(
499
+ T.nilable(
500
+ T::Array[
501
+ PostForMe::SocialPost::AccountConfiguration::Configuration::Media::Tag
502
+ ]
503
+ )
504
+ )
505
+ end
506
+ attr_accessor :tags
507
+
508
+ # Timestamp in milliseconds of frame to use as thumbnail for the media
509
+ sig { returns(T.nilable(T.anything)) }
510
+ attr_accessor :thumbnail_timestamp_ms
511
+
512
+ # Public URL of the thumbnail for the media
513
+ sig { returns(T.nilable(T.anything)) }
514
+ attr_accessor :thumbnail_url
515
+
516
+ sig do
517
+ params(
518
+ url: String,
519
+ tags:
520
+ T.nilable(
521
+ T::Array[
522
+ PostForMe::SocialPost::AccountConfiguration::Configuration::Media::Tag::OrHash
523
+ ]
524
+ ),
525
+ thumbnail_timestamp_ms: T.nilable(T.anything),
526
+ thumbnail_url: T.nilable(T.anything)
527
+ ).returns(T.attached_class)
528
+ end
529
+ def self.new(
530
+ # Public URL of the media
531
+ url:,
532
+ # List of tags to attach to the media
533
+ tags: nil,
534
+ # Timestamp in milliseconds of frame to use as thumbnail for the media
535
+ thumbnail_timestamp_ms: nil,
536
+ # Public URL of the thumbnail for the media
537
+ thumbnail_url: nil
538
+ )
539
+ end
540
+
541
+ sig do
542
+ override.returns(
543
+ {
544
+ url: String,
545
+ tags:
546
+ T.nilable(
547
+ T::Array[
548
+ PostForMe::SocialPost::AccountConfiguration::Configuration::Media::Tag
549
+ ]
550
+ ),
551
+ thumbnail_timestamp_ms: T.nilable(T.anything),
552
+ thumbnail_url: T.nilable(T.anything)
553
+ }
554
+ )
555
+ end
556
+ def to_hash
557
+ end
558
+
559
+ class Tag < PostForMe::Internal::Type::BaseModel
560
+ OrHash =
561
+ T.type_alias do
562
+ T.any(
563
+ PostForMe::SocialPost::AccountConfiguration::Configuration::Media::Tag,
564
+ PostForMe::Internal::AnyHash
565
+ )
566
+ end
567
+
568
+ # Facebook User ID, Instagram Username or Instagram product id to tag
569
+ sig { returns(String) }
570
+ attr_accessor :id
571
+
572
+ # The platform for the tags
573
+ sig do
574
+ returns(
575
+ PostForMe::SocialPost::AccountConfiguration::Configuration::Media::Tag::Platform::TaggedSymbol
576
+ )
577
+ end
578
+ attr_accessor :platform
579
+
580
+ # The type of tag, user to tag accounts, product to tag products (only supported
581
+ # for instagram)
582
+ sig do
583
+ returns(
584
+ PostForMe::SocialPost::AccountConfiguration::Configuration::Media::Tag::Type::TaggedSymbol
585
+ )
586
+ end
587
+ attr_accessor :type
588
+
589
+ # Percentage distance from left edge of the image, Not required for videos or
590
+ # stories
591
+ sig { returns(T.nilable(Float)) }
592
+ attr_reader :x
593
+
594
+ sig { params(x: Float).void }
595
+ attr_writer :x
596
+
597
+ # Percentage distance from top edge of the image, Not required for videos or
598
+ # stories
599
+ sig { returns(T.nilable(Float)) }
600
+ attr_reader :y_
601
+
602
+ sig { params(y_: Float).void }
603
+ attr_writer :y_
604
+
605
+ sig do
606
+ params(
607
+ id: String,
608
+ platform:
609
+ PostForMe::SocialPost::AccountConfiguration::Configuration::Media::Tag::Platform::OrSymbol,
610
+ type:
611
+ PostForMe::SocialPost::AccountConfiguration::Configuration::Media::Tag::Type::OrSymbol,
612
+ x: Float,
613
+ y_: Float
614
+ ).returns(T.attached_class)
615
+ end
616
+ def self.new(
617
+ # Facebook User ID, Instagram Username or Instagram product id to tag
618
+ id:,
619
+ # The platform for the tags
620
+ platform:,
621
+ # The type of tag, user to tag accounts, product to tag products (only supported
622
+ # for instagram)
623
+ type:,
624
+ # Percentage distance from left edge of the image, Not required for videos or
625
+ # stories
626
+ x: nil,
627
+ # Percentage distance from top edge of the image, Not required for videos or
628
+ # stories
629
+ y_: nil
630
+ )
631
+ end
632
+
633
+ sig do
634
+ override.returns(
635
+ {
636
+ id: String,
637
+ platform:
638
+ PostForMe::SocialPost::AccountConfiguration::Configuration::Media::Tag::Platform::TaggedSymbol,
639
+ type:
640
+ PostForMe::SocialPost::AccountConfiguration::Configuration::Media::Tag::Type::TaggedSymbol,
641
+ x: Float,
642
+ y_: Float
643
+ }
644
+ )
645
+ end
646
+ def to_hash
647
+ end
648
+
649
+ # The platform for the tags
650
+ module Platform
651
+ extend PostForMe::Internal::Type::Enum
652
+
653
+ TaggedSymbol =
654
+ T.type_alias do
655
+ T.all(
656
+ Symbol,
657
+ PostForMe::SocialPost::AccountConfiguration::Configuration::Media::Tag::Platform
658
+ )
659
+ end
660
+ OrSymbol = T.type_alias { T.any(Symbol, String) }
661
+
662
+ FACEBOOK =
663
+ T.let(
664
+ :facebook,
665
+ PostForMe::SocialPost::AccountConfiguration::Configuration::Media::Tag::Platform::TaggedSymbol
666
+ )
667
+ INSTAGRAM =
668
+ T.let(
669
+ :instagram,
670
+ PostForMe::SocialPost::AccountConfiguration::Configuration::Media::Tag::Platform::TaggedSymbol
671
+ )
672
+
673
+ sig do
674
+ override.returns(
675
+ T::Array[
676
+ PostForMe::SocialPost::AccountConfiguration::Configuration::Media::Tag::Platform::TaggedSymbol
677
+ ]
678
+ )
679
+ end
680
+ def self.values
681
+ end
682
+ end
683
+
684
+ # The type of tag, user to tag accounts, product to tag products (only supported
685
+ # for instagram)
686
+ module Type
687
+ extend PostForMe::Internal::Type::Enum
688
+
689
+ TaggedSymbol =
690
+ T.type_alias do
691
+ T.all(
692
+ Symbol,
693
+ PostForMe::SocialPost::AccountConfiguration::Configuration::Media::Tag::Type
694
+ )
695
+ end
696
+ OrSymbol = T.type_alias { T.any(Symbol, String) }
697
+
698
+ USER =
699
+ T.let(
700
+ :user,
701
+ PostForMe::SocialPost::AccountConfiguration::Configuration::Media::Tag::Type::TaggedSymbol
702
+ )
703
+ PRODUCT =
704
+ T.let(
705
+ :product,
706
+ PostForMe::SocialPost::AccountConfiguration::Configuration::Media::Tag::Type::TaggedSymbol
707
+ )
708
+
709
+ sig do
710
+ override.returns(
711
+ T::Array[
712
+ PostForMe::SocialPost::AccountConfiguration::Configuration::Media::Tag::Type::TaggedSymbol
713
+ ]
714
+ )
715
+ end
716
+ def self.values
717
+ end
718
+ end
719
+ end
720
+ end
721
+
443
722
  # Post placement for Facebook/Instagram/Threads
444
723
  module Placement
445
724
  extend PostForMe::Internal::Type::Enum
@@ -593,6 +872,47 @@ module PostForMe
593
872
  end
594
873
  end
595
874
 
875
+ # Sets the privacy status for TikTok (private, public), or YouTube (private,
876
+ # public, unlisted)
877
+ module PrivacyStatus
878
+ extend PostForMe::Internal::Type::Enum
879
+
880
+ TaggedSymbol =
881
+ T.type_alias do
882
+ T.all(
883
+ Symbol,
884
+ PostForMe::SocialPost::AccountConfiguration::Configuration::PrivacyStatus
885
+ )
886
+ end
887
+ OrSymbol = T.type_alias { T.any(Symbol, String) }
888
+
889
+ PUBLIC =
890
+ T.let(
891
+ :public,
892
+ PostForMe::SocialPost::AccountConfiguration::Configuration::PrivacyStatus::TaggedSymbol
893
+ )
894
+ PRIVATE =
895
+ T.let(
896
+ :private,
897
+ PostForMe::SocialPost::AccountConfiguration::Configuration::PrivacyStatus::TaggedSymbol
898
+ )
899
+ UNLISTED =
900
+ T.let(
901
+ :unlisted,
902
+ PostForMe::SocialPost::AccountConfiguration::Configuration::PrivacyStatus::TaggedSymbol
903
+ )
904
+
905
+ sig do
906
+ override.returns(
907
+ T::Array[
908
+ PostForMe::SocialPost::AccountConfiguration::Configuration::PrivacyStatus::TaggedSymbol
909
+ ]
910
+ )
911
+ end
912
+ def self.values
913
+ end
914
+ end
915
+
596
916
  # Who can reply to the tweet
597
917
  module ReplySettings
598
918
  extend PostForMe::Internal::Type::Enum
@@ -50,6 +50,13 @@ module PostForMe
50
50
  end
51
51
  attr_writer :platform
52
52
 
53
+ # Filter by social account ID. Multiple values imply OR logic.
54
+ sig { returns(T.nilable(T::Array[String])) }
55
+ attr_reader :social_account_id
56
+
57
+ sig { params(social_account_id: T::Array[String]).void }
58
+ attr_writer :social_account_id
59
+
53
60
  # Filter by post status. Multiple values imply OR logic.
54
61
  sig do
55
62
  returns(
@@ -72,6 +79,7 @@ module PostForMe
72
79
  offset: Float,
73
80
  platform:
74
81
  T::Array[PostForMe::SocialPostListParams::Platform::OrSymbol],
82
+ social_account_id: T::Array[String],
75
83
  status: T::Array[PostForMe::SocialPostListParams::Status::OrSymbol],
76
84
  request_options: PostForMe::RequestOptions::OrHash
77
85
  ).returns(T.attached_class)
@@ -85,6 +93,8 @@ module PostForMe
85
93
  offset: nil,
86
94
  # Filter by platforms. Multiple values imply OR logic.
87
95
  platform: nil,
96
+ # Filter by social account ID. Multiple values imply OR logic.
97
+ social_account_id: nil,
88
98
  # Filter by post status. Multiple values imply OR logic.
89
99
  status: nil,
90
100
  request_options: {}
@@ -99,6 +109,7 @@ module PostForMe
99
109
  offset: Float,
100
110
  platform:
101
111
  T::Array[PostForMe::SocialPostListParams::Platform::OrSymbol],
112
+ social_account_id: T::Array[String],
102
113
  status: T::Array[PostForMe::SocialPostListParams::Status::OrSymbol],
103
114
  request_options: PostForMe::RequestOptions
104
115
  }
@@ -44,12 +44,21 @@ module PostForMe
44
44
  sig { params(post_id: T::Array[String]).void }
45
45
  attr_writer :post_id
46
46
 
47
+ # Filter by social account ID(s). Multiple values imply OR logic (e.g.,
48
+ # ?social_account_id=123&social_account_id=456).
49
+ sig { returns(T.nilable(T::Array[String])) }
50
+ attr_reader :social_account_id
51
+
52
+ sig { params(social_account_id: T::Array[String]).void }
53
+ attr_writer :social_account_id
54
+
47
55
  sig do
48
56
  params(
49
57
  limit: Float,
50
58
  offset: Float,
51
59
  platform: T::Array[String],
52
60
  post_id: T::Array[String],
61
+ social_account_id: T::Array[String],
53
62
  request_options: PostForMe::RequestOptions::OrHash
54
63
  ).returns(T.attached_class)
55
64
  end
@@ -64,6 +73,9 @@ module PostForMe
64
73
  # Filter by post IDs. Multiple values imply OR logic (e.g.,
65
74
  # ?post_id=123&post_id=456).
66
75
  post_id: nil,
76
+ # Filter by social account ID(s). Multiple values imply OR logic (e.g.,
77
+ # ?social_account_id=123&social_account_id=456).
78
+ social_account_id: nil,
67
79
  request_options: {}
68
80
  )
69
81
  end
@@ -75,6 +87,7 @@ module PostForMe
75
87
  offset: Float,
76
88
  platform: T::Array[String],
77
89
  post_id: T::Array[String],
90
+ social_account_id: T::Array[String],
78
91
  request_options: PostForMe::RequestOptions
79
92
  }
80
93
  )
@@ -15,12 +15,24 @@ module PostForMe
15
15
  sig { returns(T.nilable(T.anything)) }
16
16
  attr_accessor :caption
17
17
 
18
+ # If true will notify YouTube the video is intended for kids, defaults to false
19
+ sig { returns(T.nilable(T::Boolean)) }
20
+ attr_accessor :made_for_kids
21
+
18
22
  # Overrides the `media` from the post
19
23
  sig do
20
24
  returns(T.nilable(T::Array[PostForMe::YoutubeConfigurationDto::Media]))
21
25
  end
22
26
  attr_accessor :media
23
27
 
28
+ # Sets the privacy status of the video, will default to public
29
+ sig do
30
+ returns(
31
+ T.nilable(PostForMe::YoutubeConfigurationDto::PrivacyStatus::OrSymbol)
32
+ )
33
+ end
34
+ attr_accessor :privacy_status
35
+
24
36
  # Overrides the `title` from the post
25
37
  sig { returns(T.nilable(String)) }
26
38
  attr_accessor :title
@@ -28,18 +40,27 @@ module PostForMe
28
40
  sig do
29
41
  params(
30
42
  caption: T.nilable(T.anything),
43
+ made_for_kids: T.nilable(T::Boolean),
31
44
  media:
32
45
  T.nilable(
33
46
  T::Array[PostForMe::YoutubeConfigurationDto::Media::OrHash]
34
47
  ),
48
+ privacy_status:
49
+ T.nilable(
50
+ PostForMe::YoutubeConfigurationDto::PrivacyStatus::OrSymbol
51
+ ),
35
52
  title: T.nilable(String)
36
53
  ).returns(T.attached_class)
37
54
  end
38
55
  def self.new(
39
56
  # Overrides the `caption` from the post
40
57
  caption: nil,
58
+ # If true will notify YouTube the video is intended for kids, defaults to false
59
+ made_for_kids: nil,
41
60
  # Overrides the `media` from the post
42
61
  media: nil,
62
+ # Sets the privacy status of the video, will default to public
63
+ privacy_status: nil,
43
64
  # Overrides the `title` from the post
44
65
  title: nil
45
66
  )
@@ -49,8 +70,13 @@ module PostForMe
49
70
  override.returns(
50
71
  {
51
72
  caption: T.nilable(T.anything),
73
+ made_for_kids: T.nilable(T::Boolean),
52
74
  media:
53
75
  T.nilable(T::Array[PostForMe::YoutubeConfigurationDto::Media]),
76
+ privacy_status:
77
+ T.nilable(
78
+ PostForMe::YoutubeConfigurationDto::PrivacyStatus::OrSymbol
79
+ ),
54
80
  title: T.nilable(String)
55
81
  }
56
82
  )
@@ -288,6 +314,43 @@ module PostForMe
288
314
  end
289
315
  end
290
316
  end
317
+
318
+ # Sets the privacy status of the video, will default to public
319
+ module PrivacyStatus
320
+ extend PostForMe::Internal::Type::Enum
321
+
322
+ TaggedSymbol =
323
+ T.type_alias do
324
+ T.all(Symbol, PostForMe::YoutubeConfigurationDto::PrivacyStatus)
325
+ end
326
+ OrSymbol = T.type_alias { T.any(Symbol, String) }
327
+
328
+ PUBLIC =
329
+ T.let(
330
+ :public,
331
+ PostForMe::YoutubeConfigurationDto::PrivacyStatus::TaggedSymbol
332
+ )
333
+ PRIVATE =
334
+ T.let(
335
+ :private,
336
+ PostForMe::YoutubeConfigurationDto::PrivacyStatus::TaggedSymbol
337
+ )
338
+ UNLISTED =
339
+ T.let(
340
+ :unlisted,
341
+ PostForMe::YoutubeConfigurationDto::PrivacyStatus::TaggedSymbol
342
+ )
343
+
344
+ sig do
345
+ override.returns(
346
+ T::Array[
347
+ PostForMe::YoutubeConfigurationDto::PrivacyStatus::TaggedSymbol
348
+ ]
349
+ )
350
+ end
351
+ def self.values
352
+ end
353
+ end
291
354
  end
292
355
  end
293
356
  end
@@ -24,6 +24,7 @@ module PostForMe
24
24
  offset: Float,
25
25
  platform: T::Array[String],
26
26
  post_id: T::Array[String],
27
+ social_account_id: T::Array[String],
27
28
  request_options: PostForMe::RequestOptions::OrHash
28
29
  ).returns(PostForMe::Models::SocialPostResultListResponse)
29
30
  end
@@ -38,6 +39,9 @@ module PostForMe
38
39
  # Filter by post IDs. Multiple values imply OR logic (e.g.,
39
40
  # ?post_id=123&post_id=456).
40
41
  post_id: nil,
42
+ # Filter by social account ID(s). Multiple values imply OR logic (e.g.,
43
+ # ?social_account_id=123&social_account_id=456).
44
+ social_account_id: nil,
41
45
  request_options: {}
42
46
  )
43
47
  end
@@ -114,6 +114,7 @@ module PostForMe
114
114
  offset: Float,
115
115
  platform:
116
116
  T::Array[PostForMe::SocialPostListParams::Platform::OrSymbol],
117
+ social_account_id: T::Array[String],
117
118
  status: T::Array[PostForMe::SocialPostListParams::Status::OrSymbol],
118
119
  request_options: PostForMe::RequestOptions::OrHash
119
120
  ).returns(PostForMe::Models::SocialPostListResponse)
@@ -127,6 +128,8 @@ module PostForMe
127
128
  offset: nil,
128
129
  # Filter by platforms. Multiple values imply OR logic.
129
130
  platform: nil,
131
+ # Filter by social account ID. Multiple values imply OR logic.
132
+ social_account_id: nil,
130
133
  # Filter by post status. Multiple values imply OR logic.
131
134
  status: nil,
132
135
  request_options: {}