@postrun/js 2.0.0 → 2.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.
@@ -39,6 +39,7 @@ var zErrorCode = z__namespace.enum([
39
39
  "connection_not_pending",
40
40
  "not_implemented",
41
41
  "connection_discovery_failed",
42
+ "tiktok_creator_info_unavailable",
42
43
  "media_processing",
43
44
  "not_publishable",
44
45
  "invalid_connection",
@@ -87,13 +88,16 @@ var zErrorCode = z__namespace.enum([
87
88
  "publishing_unavailable",
88
89
  "x_duplicate_content",
89
90
  "x_not_authorized",
91
+ "x_access_not_permitted",
90
92
  "x_rate_limited",
91
93
  "x_publish_failed",
92
94
  "x_media_upload_failed",
93
95
  "linkedin_duplicate_content",
94
96
  "linkedin_auth_expired",
95
97
  "linkedin_permission_denied",
98
+ "linkedin_rate_limited",
96
99
  "linkedin_media_processing",
100
+ "linkedin_media_failed",
97
101
  "linkedin_media_upload_failed",
98
102
  "linkedin_publish_failed",
99
103
  "instagram_media_processing",
@@ -113,6 +117,8 @@ var zErrorCode = z__namespace.enum([
113
117
  "tiktok_not_authorized",
114
118
  "tiktok_rate_limited",
115
119
  "tiktok_publish_failed",
120
+ "post_publish_failed",
121
+ "post_partially_published",
116
122
  "connection_platform_mismatch",
117
123
  "connection_removed"
118
124
  ]);
@@ -2050,6 +2056,7 @@ var zPostsValidateResponse = z__namespace.object({
2050
2056
  "connection_not_pending",
2051
2057
  "not_implemented",
2052
2058
  "connection_discovery_failed",
2059
+ "tiktok_creator_info_unavailable",
2053
2060
  "media_processing",
2054
2061
  "not_publishable",
2055
2062
  "invalid_connection",
@@ -2098,13 +2105,16 @@ var zPostsValidateResponse = z__namespace.object({
2098
2105
  "publishing_unavailable",
2099
2106
  "x_duplicate_content",
2100
2107
  "x_not_authorized",
2108
+ "x_access_not_permitted",
2101
2109
  "x_rate_limited",
2102
2110
  "x_publish_failed",
2103
2111
  "x_media_upload_failed",
2104
2112
  "linkedin_duplicate_content",
2105
2113
  "linkedin_auth_expired",
2106
2114
  "linkedin_permission_denied",
2115
+ "linkedin_rate_limited",
2107
2116
  "linkedin_media_processing",
2117
+ "linkedin_media_failed",
2108
2118
  "linkedin_media_upload_failed",
2109
2119
  "linkedin_publish_failed",
2110
2120
  "instagram_media_processing",
@@ -2124,6 +2134,8 @@ var zPostsValidateResponse = z__namespace.object({
2124
2134
  "tiktok_not_authorized",
2125
2135
  "tiktok_rate_limited",
2126
2136
  "tiktok_publish_failed",
2137
+ "post_publish_failed",
2138
+ "post_partially_published",
2127
2139
  "connection_platform_mismatch",
2128
2140
  "connection_removed"
2129
2141
  ]),
@@ -3594,6 +3606,28 @@ var zGoogleUploadImageAssetResponse = z__namespace.object({
3594
3606
  dry_run: z__namespace.boolean(),
3595
3607
  executed: z__namespace.boolean()
3596
3608
  });
3609
+ var zTiktokCreatorInfoPath = z__namespace.object({
3610
+ id: z__namespace.string()
3611
+ });
3612
+ var zTiktokCreatorInfoResponse = z__namespace.object({
3613
+ creator: z__namespace.object({
3614
+ nickname: z__namespace.string(),
3615
+ username: z__namespace.string(),
3616
+ avatar_url: z__namespace.string().nullable()
3617
+ }),
3618
+ privacy_options: z__namespace.array(z__namespace.enum([
3619
+ "PUBLIC_TO_EVERYONE",
3620
+ "MUTUAL_FOLLOW_FRIENDS",
3621
+ "FOLLOWER_OF_CREATOR",
3622
+ "SELF_ONLY"
3623
+ ])),
3624
+ interaction: z__namespace.object({
3625
+ comment: z__namespace.boolean(),
3626
+ duet: z__namespace.boolean(),
3627
+ stitch: z__namespace.boolean()
3628
+ }),
3629
+ max_video_duration_sec: z__namespace.int().gte(-9007199254740991).lte(9007199254740991)
3630
+ });
3597
3631
  var zLogsListQuery = z__namespace.object({
3598
3632
  limit: z__namespace.int().gte(1).lte(100).optional().default(20),
3599
3633
  offset: z__namespace.int().gte(0).lte(9007199254740991).optional().default(0),
@@ -3656,6 +3690,41 @@ var zLogsListResponse = z__namespace.object({
3656
3690
  request_body: z__namespace.unknown().nullish(),
3657
3691
  response_body: z__namespace.unknown().nullish(),
3658
3692
  error: z__namespace.unknown().nullish(),
3693
+ outcome: z__namespace.object({
3694
+ status: z__namespace.enum([
3695
+ "draft",
3696
+ "scheduled",
3697
+ "publishing",
3698
+ "partially_published",
3699
+ "published",
3700
+ "failed"
3701
+ ]),
3702
+ targets: z__namespace.array(z__namespace.object({
3703
+ variant_id: z__namespace.string(),
3704
+ connection_id: z__namespace.string().nullable(),
3705
+ platform: z__namespace.enum([
3706
+ "x",
3707
+ "linkedin",
3708
+ "facebook_page",
3709
+ "instagram",
3710
+ "tiktok"
3711
+ ]),
3712
+ status: z__namespace.enum([
3713
+ "draft",
3714
+ "scheduled",
3715
+ "publishing",
3716
+ "published",
3717
+ "failed"
3718
+ ]),
3719
+ platform_post_id: z__namespace.string().nullable(),
3720
+ permalink: z__namespace.string().nullable(),
3721
+ published_at: z__namespace.string().nullable(),
3722
+ error: z__namespace.object({
3723
+ code: z__namespace.string(),
3724
+ message: z__namespace.string()
3725
+ }).nullable()
3726
+ }))
3727
+ }).nullable(),
3659
3728
  external_id: z__namespace.string().nullable(),
3660
3729
  idempotency_key: z__namespace.string().nullable(),
3661
3730
  request_id: z__namespace.string().nullable(),
@@ -3704,6 +3773,41 @@ var zLogsGetResponse = z__namespace.object({
3704
3773
  request_body: z__namespace.unknown().nullish(),
3705
3774
  response_body: z__namespace.unknown().nullish(),
3706
3775
  error: z__namespace.unknown().nullish(),
3776
+ outcome: z__namespace.object({
3777
+ status: z__namespace.enum([
3778
+ "draft",
3779
+ "scheduled",
3780
+ "publishing",
3781
+ "partially_published",
3782
+ "published",
3783
+ "failed"
3784
+ ]),
3785
+ targets: z__namespace.array(z__namespace.object({
3786
+ variant_id: z__namespace.string(),
3787
+ connection_id: z__namespace.string().nullable(),
3788
+ platform: z__namespace.enum([
3789
+ "x",
3790
+ "linkedin",
3791
+ "facebook_page",
3792
+ "instagram",
3793
+ "tiktok"
3794
+ ]),
3795
+ status: z__namespace.enum([
3796
+ "draft",
3797
+ "scheduled",
3798
+ "publishing",
3799
+ "published",
3800
+ "failed"
3801
+ ]),
3802
+ platform_post_id: z__namespace.string().nullable(),
3803
+ permalink: z__namespace.string().nullable(),
3804
+ published_at: z__namespace.string().nullable(),
3805
+ error: z__namespace.object({
3806
+ code: z__namespace.string(),
3807
+ message: z__namespace.string()
3808
+ }).nullable()
3809
+ }))
3810
+ }).nullable(),
3707
3811
  external_id: z__namespace.string().nullable(),
3708
3812
  idempotency_key: z__namespace.string().nullable(),
3709
3813
  request_id: z__namespace.string().nullable(),
@@ -4029,6 +4133,8 @@ exports.zProfilesListResponse = zProfilesListResponse;
4029
4133
  exports.zProfilesUpdateBody = zProfilesUpdateBody;
4030
4134
  exports.zProfilesUpdatePath = zProfilesUpdatePath;
4031
4135
  exports.zProfilesUpdateResponse = zProfilesUpdateResponse;
4136
+ exports.zTiktokCreatorInfoPath = zTiktokCreatorInfoPath;
4137
+ exports.zTiktokCreatorInfoResponse = zTiktokCreatorInfoResponse;
4032
4138
  exports.zTokensMintBody = zTokensMintBody;
4033
4139
  exports.zTokensMintResponse = zTokensMintResponse;
4034
4140
  exports.zWebhooksCreateEndpointBody = zWebhooksCreateEndpointBody;