@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.
@@ -17,6 +17,7 @@ var zErrorCode = z.enum([
17
17
  "connection_not_pending",
18
18
  "not_implemented",
19
19
  "connection_discovery_failed",
20
+ "tiktok_creator_info_unavailable",
20
21
  "media_processing",
21
22
  "not_publishable",
22
23
  "invalid_connection",
@@ -65,13 +66,16 @@ var zErrorCode = z.enum([
65
66
  "publishing_unavailable",
66
67
  "x_duplicate_content",
67
68
  "x_not_authorized",
69
+ "x_access_not_permitted",
68
70
  "x_rate_limited",
69
71
  "x_publish_failed",
70
72
  "x_media_upload_failed",
71
73
  "linkedin_duplicate_content",
72
74
  "linkedin_auth_expired",
73
75
  "linkedin_permission_denied",
76
+ "linkedin_rate_limited",
74
77
  "linkedin_media_processing",
78
+ "linkedin_media_failed",
75
79
  "linkedin_media_upload_failed",
76
80
  "linkedin_publish_failed",
77
81
  "instagram_media_processing",
@@ -91,6 +95,8 @@ var zErrorCode = z.enum([
91
95
  "tiktok_not_authorized",
92
96
  "tiktok_rate_limited",
93
97
  "tiktok_publish_failed",
98
+ "post_publish_failed",
99
+ "post_partially_published",
94
100
  "connection_platform_mismatch",
95
101
  "connection_removed"
96
102
  ]);
@@ -2028,6 +2034,7 @@ var zPostsValidateResponse = z.object({
2028
2034
  "connection_not_pending",
2029
2035
  "not_implemented",
2030
2036
  "connection_discovery_failed",
2037
+ "tiktok_creator_info_unavailable",
2031
2038
  "media_processing",
2032
2039
  "not_publishable",
2033
2040
  "invalid_connection",
@@ -2076,13 +2083,16 @@ var zPostsValidateResponse = z.object({
2076
2083
  "publishing_unavailable",
2077
2084
  "x_duplicate_content",
2078
2085
  "x_not_authorized",
2086
+ "x_access_not_permitted",
2079
2087
  "x_rate_limited",
2080
2088
  "x_publish_failed",
2081
2089
  "x_media_upload_failed",
2082
2090
  "linkedin_duplicate_content",
2083
2091
  "linkedin_auth_expired",
2084
2092
  "linkedin_permission_denied",
2093
+ "linkedin_rate_limited",
2085
2094
  "linkedin_media_processing",
2095
+ "linkedin_media_failed",
2086
2096
  "linkedin_media_upload_failed",
2087
2097
  "linkedin_publish_failed",
2088
2098
  "instagram_media_processing",
@@ -2102,6 +2112,8 @@ var zPostsValidateResponse = z.object({
2102
2112
  "tiktok_not_authorized",
2103
2113
  "tiktok_rate_limited",
2104
2114
  "tiktok_publish_failed",
2115
+ "post_publish_failed",
2116
+ "post_partially_published",
2105
2117
  "connection_platform_mismatch",
2106
2118
  "connection_removed"
2107
2119
  ]),
@@ -3572,6 +3584,28 @@ var zGoogleUploadImageAssetResponse = z.object({
3572
3584
  dry_run: z.boolean(),
3573
3585
  executed: z.boolean()
3574
3586
  });
3587
+ var zTiktokCreatorInfoPath = z.object({
3588
+ id: z.string()
3589
+ });
3590
+ var zTiktokCreatorInfoResponse = z.object({
3591
+ creator: z.object({
3592
+ nickname: z.string(),
3593
+ username: z.string(),
3594
+ avatar_url: z.string().nullable()
3595
+ }),
3596
+ privacy_options: z.array(z.enum([
3597
+ "PUBLIC_TO_EVERYONE",
3598
+ "MUTUAL_FOLLOW_FRIENDS",
3599
+ "FOLLOWER_OF_CREATOR",
3600
+ "SELF_ONLY"
3601
+ ])),
3602
+ interaction: z.object({
3603
+ comment: z.boolean(),
3604
+ duet: z.boolean(),
3605
+ stitch: z.boolean()
3606
+ }),
3607
+ max_video_duration_sec: z.int().gte(-9007199254740991).lte(9007199254740991)
3608
+ });
3575
3609
  var zLogsListQuery = z.object({
3576
3610
  limit: z.int().gte(1).lte(100).optional().default(20),
3577
3611
  offset: z.int().gte(0).lte(9007199254740991).optional().default(0),
@@ -3634,6 +3668,41 @@ var zLogsListResponse = z.object({
3634
3668
  request_body: z.unknown().nullish(),
3635
3669
  response_body: z.unknown().nullish(),
3636
3670
  error: z.unknown().nullish(),
3671
+ outcome: z.object({
3672
+ status: z.enum([
3673
+ "draft",
3674
+ "scheduled",
3675
+ "publishing",
3676
+ "partially_published",
3677
+ "published",
3678
+ "failed"
3679
+ ]),
3680
+ targets: z.array(z.object({
3681
+ variant_id: z.string(),
3682
+ connection_id: z.string().nullable(),
3683
+ platform: z.enum([
3684
+ "x",
3685
+ "linkedin",
3686
+ "facebook_page",
3687
+ "instagram",
3688
+ "tiktok"
3689
+ ]),
3690
+ status: z.enum([
3691
+ "draft",
3692
+ "scheduled",
3693
+ "publishing",
3694
+ "published",
3695
+ "failed"
3696
+ ]),
3697
+ platform_post_id: z.string().nullable(),
3698
+ permalink: z.string().nullable(),
3699
+ published_at: z.string().nullable(),
3700
+ error: z.object({
3701
+ code: z.string(),
3702
+ message: z.string()
3703
+ }).nullable()
3704
+ }))
3705
+ }).nullable(),
3637
3706
  external_id: z.string().nullable(),
3638
3707
  idempotency_key: z.string().nullable(),
3639
3708
  request_id: z.string().nullable(),
@@ -3682,6 +3751,41 @@ var zLogsGetResponse = z.object({
3682
3751
  request_body: z.unknown().nullish(),
3683
3752
  response_body: z.unknown().nullish(),
3684
3753
  error: z.unknown().nullish(),
3754
+ outcome: z.object({
3755
+ status: z.enum([
3756
+ "draft",
3757
+ "scheduled",
3758
+ "publishing",
3759
+ "partially_published",
3760
+ "published",
3761
+ "failed"
3762
+ ]),
3763
+ targets: z.array(z.object({
3764
+ variant_id: z.string(),
3765
+ connection_id: z.string().nullable(),
3766
+ platform: z.enum([
3767
+ "x",
3768
+ "linkedin",
3769
+ "facebook_page",
3770
+ "instagram",
3771
+ "tiktok"
3772
+ ]),
3773
+ status: z.enum([
3774
+ "draft",
3775
+ "scheduled",
3776
+ "publishing",
3777
+ "published",
3778
+ "failed"
3779
+ ]),
3780
+ platform_post_id: z.string().nullable(),
3781
+ permalink: z.string().nullable(),
3782
+ published_at: z.string().nullable(),
3783
+ error: z.object({
3784
+ code: z.string(),
3785
+ message: z.string()
3786
+ }).nullable()
3787
+ }))
3788
+ }).nullable(),
3685
3789
  external_id: z.string().nullable(),
3686
3790
  idempotency_key: z.string().nullable(),
3687
3791
  request_id: z.string().nullable(),
@@ -3821,6 +3925,6 @@ var zTokensMintResponse = z.object({
3821
3925
  expires_at: z.string()
3822
3926
  });
3823
3927
 
3824
- export { zConnectionsConnectBody, zConnectionsConnectPath, zConnectionsConnectResponse, zConnectionsDeletePath, zConnectionsDeleteResponse, zConnectionsGetPath, zConnectionsGetResponse, zConnectionsListAccountsPath, zConnectionsListAccountsResponse, zConnectionsListByProfilePath, zConnectionsListByProfileQuery, zConnectionsListByProfileResponse, zConnectionsSelectBody, zConnectionsSelectPath, zConnectionsSelectResponse, zErrorCode, zGoogleCreateAdBody, zGoogleCreateAdGroupBody, zGoogleCreateAdGroupPath, zGoogleCreateAdGroupResponse, zGoogleCreateAdPath, zGoogleCreateAdResponse, zGoogleCreateBudgetBody, zGoogleCreateBudgetPath, zGoogleCreateBudgetResponse, zGoogleCreateCampaignBody, zGoogleCreateCampaignPath, zGoogleCreateCampaignResponse, zGoogleCreateConversionActionBody, zGoogleCreateConversionActionPath, zGoogleCreateConversionActionResponse, zGoogleCreateDisplayAdBody, zGoogleCreateDisplayAdPath, zGoogleCreateDisplayAdResponse, zGoogleCreateKeywordBody, zGoogleCreateKeywordPath, zGoogleCreateKeywordResponse, zGoogleDeleteAdBody, zGoogleDeleteAdGroupBody, zGoogleDeleteAdGroupPath, zGoogleDeleteAdGroupResponse, zGoogleDeleteAdPath, zGoogleDeleteAdResponse, zGoogleDeleteBudgetBody, zGoogleDeleteBudgetPath, zGoogleDeleteBudgetResponse, zGoogleDeleteCampaignBody, zGoogleDeleteCampaignPath, zGoogleDeleteCampaignResponse, zGoogleDeleteKeywordBody, zGoogleDeleteKeywordPath, zGoogleDeleteKeywordResponse, zGoogleEditAdGroupBody, zGoogleEditAdGroupPath, zGoogleEditAdGroupResponse, zGoogleEditBudgetBody, zGoogleEditBudgetPath, zGoogleEditBudgetResponse, zGoogleEditCampaignBody, zGoogleEditCampaignPath, zGoogleEditCampaignResponse, zGoogleEnableAdBody, zGoogleEnableAdGroupBody, zGoogleEnableAdGroupPath, zGoogleEnableAdGroupResponse, zGoogleEnableAdPath, zGoogleEnableAdResponse, zGoogleEnableCampaignBody, zGoogleEnableCampaignPath, zGoogleEnableCampaignResponse, zGoogleEnableKeywordBody, zGoogleEnableKeywordPath, zGoogleEnableKeywordResponse, zGoogleGetAccountPath, zGoogleGetAccountResponse, zGoogleGetAdGroupPath, zGoogleGetAdGroupResponse, zGoogleGetAdPath, zGoogleGetAdResponse, zGoogleGetCampaignPath, zGoogleGetCampaignResponse, zGoogleGetConversionActionPath, zGoogleGetConversionActionResponse, zGoogleGetInsightsBody, zGoogleGetInsightsPath, zGoogleGetInsightsResponse, zGoogleGetKeywordPath, zGoogleGetKeywordResponse, zGoogleListAdGroupsPath, zGoogleListAdGroupsResponse, zGoogleListAdsPath, zGoogleListAdsResponse, zGoogleListCampaignsPath, zGoogleListCampaignsResponse, zGoogleListConversionActionsPath, zGoogleListConversionActionsResponse, zGoogleListConversionGoalsPath, zGoogleListConversionGoalsResponse, zGoogleListKeywordsPath, zGoogleListKeywordsResponse, zGooglePauseAdBody, zGooglePauseAdGroupBody, zGooglePauseAdGroupPath, zGooglePauseAdGroupResponse, zGooglePauseAdPath, zGooglePauseAdResponse, zGooglePauseCampaignBody, zGooglePauseCampaignPath, zGooglePauseCampaignResponse, zGooglePauseKeywordBody, zGooglePauseKeywordPath, zGooglePauseKeywordResponse, zGoogleRunGaqlBody, zGoogleRunGaqlPath, zGoogleRunGaqlResponse, zGoogleSetAdGroupBidsBody, zGoogleSetAdGroupBidsPath, zGoogleSetAdGroupBidsResponse, zGoogleSetConversionGoalBody, zGoogleSetConversionGoalPath, zGoogleSetConversionGoalResponse, zGoogleSetKeywordBidBody, zGoogleSetKeywordBidPath, zGoogleSetKeywordBidResponse, zGoogleUploadConversionsBody, zGoogleUploadConversionsPath, zGoogleUploadConversionsResponse, zGoogleUploadImageAssetBody, zGoogleUploadImageAssetPath, zGoogleUploadImageAssetResponse, zLogsGetPath, zLogsGetResponse, zLogsListQuery, zLogsListResponse, zMediaCreateBody, zMediaCreateResponse, zMediaDeletePath, zMediaDeleteResponse, zMediaGetPath, zMediaGetResponse, zMediaListQuery, zMediaListResponse, zMediaUpdateBody, zMediaUpdatePath, zMediaUpdateResponse, zMetaAccountPath, zMetaAccountResponse, zMetaAdPath, zMetaAdResponse, zMetaAdsPath, zMetaAdsResponse, zMetaAdsetPath, zMetaAdsetResponse, zMetaAdsetsPath, zMetaAdsetsResponse, zMetaCampaignPath, zMetaCampaignResponse, zMetaCampaignsPath, zMetaCampaignsResponse, zMetaInsightsPath, zMetaInsightsQuery, zMetaInsightsResponse, zPostsCreateBody, zPostsCreateResponse, zPostsDeletePath, zPostsDeleteResponse, zPostsGetPath, zPostsGetResponse, zPostsListQuery, zPostsListResponse, zPostsUpdateBody, zPostsUpdatePath, zPostsUpdateResponse, zPostsValidateBody, zPostsValidateResponse, zProfilesCreateBody, zProfilesCreateResponse, zProfilesDeletePath, zProfilesDeleteResponse, zProfilesGetPath, zProfilesGetResponse, zProfilesListQuery, zProfilesListResponse, zProfilesUpdateBody, zProfilesUpdatePath, zProfilesUpdateResponse, zTokensMintBody, zTokensMintResponse, zWebhooksCreateEndpointBody, zWebhooksCreateEndpointResponse, zWebhooksCreatePortalResponse, zWebhooksDeleteEndpointPath, zWebhooksDeleteEndpointResponse, zWebhooksGetEndpointPath, zWebhooksGetEndpointResponse, zWebhooksListEndpointsQuery, zWebhooksListEndpointsResponse, zWebhooksListEventTypesResponse, zWebhooksPingBody, zWebhooksPingResponse, zWebhooksUpdateEndpointBody, zWebhooksUpdateEndpointPath, zWebhooksUpdateEndpointResponse };
3825
- //# sourceMappingURL=chunk-EFB6IKZF.js.map
3826
- //# sourceMappingURL=chunk-EFB6IKZF.js.map
3928
+ export { zConnectionsConnectBody, zConnectionsConnectPath, zConnectionsConnectResponse, zConnectionsDeletePath, zConnectionsDeleteResponse, zConnectionsGetPath, zConnectionsGetResponse, zConnectionsListAccountsPath, zConnectionsListAccountsResponse, zConnectionsListByProfilePath, zConnectionsListByProfileQuery, zConnectionsListByProfileResponse, zConnectionsSelectBody, zConnectionsSelectPath, zConnectionsSelectResponse, zErrorCode, zGoogleCreateAdBody, zGoogleCreateAdGroupBody, zGoogleCreateAdGroupPath, zGoogleCreateAdGroupResponse, zGoogleCreateAdPath, zGoogleCreateAdResponse, zGoogleCreateBudgetBody, zGoogleCreateBudgetPath, zGoogleCreateBudgetResponse, zGoogleCreateCampaignBody, zGoogleCreateCampaignPath, zGoogleCreateCampaignResponse, zGoogleCreateConversionActionBody, zGoogleCreateConversionActionPath, zGoogleCreateConversionActionResponse, zGoogleCreateDisplayAdBody, zGoogleCreateDisplayAdPath, zGoogleCreateDisplayAdResponse, zGoogleCreateKeywordBody, zGoogleCreateKeywordPath, zGoogleCreateKeywordResponse, zGoogleDeleteAdBody, zGoogleDeleteAdGroupBody, zGoogleDeleteAdGroupPath, zGoogleDeleteAdGroupResponse, zGoogleDeleteAdPath, zGoogleDeleteAdResponse, zGoogleDeleteBudgetBody, zGoogleDeleteBudgetPath, zGoogleDeleteBudgetResponse, zGoogleDeleteCampaignBody, zGoogleDeleteCampaignPath, zGoogleDeleteCampaignResponse, zGoogleDeleteKeywordBody, zGoogleDeleteKeywordPath, zGoogleDeleteKeywordResponse, zGoogleEditAdGroupBody, zGoogleEditAdGroupPath, zGoogleEditAdGroupResponse, zGoogleEditBudgetBody, zGoogleEditBudgetPath, zGoogleEditBudgetResponse, zGoogleEditCampaignBody, zGoogleEditCampaignPath, zGoogleEditCampaignResponse, zGoogleEnableAdBody, zGoogleEnableAdGroupBody, zGoogleEnableAdGroupPath, zGoogleEnableAdGroupResponse, zGoogleEnableAdPath, zGoogleEnableAdResponse, zGoogleEnableCampaignBody, zGoogleEnableCampaignPath, zGoogleEnableCampaignResponse, zGoogleEnableKeywordBody, zGoogleEnableKeywordPath, zGoogleEnableKeywordResponse, zGoogleGetAccountPath, zGoogleGetAccountResponse, zGoogleGetAdGroupPath, zGoogleGetAdGroupResponse, zGoogleGetAdPath, zGoogleGetAdResponse, zGoogleGetCampaignPath, zGoogleGetCampaignResponse, zGoogleGetConversionActionPath, zGoogleGetConversionActionResponse, zGoogleGetInsightsBody, zGoogleGetInsightsPath, zGoogleGetInsightsResponse, zGoogleGetKeywordPath, zGoogleGetKeywordResponse, zGoogleListAdGroupsPath, zGoogleListAdGroupsResponse, zGoogleListAdsPath, zGoogleListAdsResponse, zGoogleListCampaignsPath, zGoogleListCampaignsResponse, zGoogleListConversionActionsPath, zGoogleListConversionActionsResponse, zGoogleListConversionGoalsPath, zGoogleListConversionGoalsResponse, zGoogleListKeywordsPath, zGoogleListKeywordsResponse, zGooglePauseAdBody, zGooglePauseAdGroupBody, zGooglePauseAdGroupPath, zGooglePauseAdGroupResponse, zGooglePauseAdPath, zGooglePauseAdResponse, zGooglePauseCampaignBody, zGooglePauseCampaignPath, zGooglePauseCampaignResponse, zGooglePauseKeywordBody, zGooglePauseKeywordPath, zGooglePauseKeywordResponse, zGoogleRunGaqlBody, zGoogleRunGaqlPath, zGoogleRunGaqlResponse, zGoogleSetAdGroupBidsBody, zGoogleSetAdGroupBidsPath, zGoogleSetAdGroupBidsResponse, zGoogleSetConversionGoalBody, zGoogleSetConversionGoalPath, zGoogleSetConversionGoalResponse, zGoogleSetKeywordBidBody, zGoogleSetKeywordBidPath, zGoogleSetKeywordBidResponse, zGoogleUploadConversionsBody, zGoogleUploadConversionsPath, zGoogleUploadConversionsResponse, zGoogleUploadImageAssetBody, zGoogleUploadImageAssetPath, zGoogleUploadImageAssetResponse, zLogsGetPath, zLogsGetResponse, zLogsListQuery, zLogsListResponse, zMediaCreateBody, zMediaCreateResponse, zMediaDeletePath, zMediaDeleteResponse, zMediaGetPath, zMediaGetResponse, zMediaListQuery, zMediaListResponse, zMediaUpdateBody, zMediaUpdatePath, zMediaUpdateResponse, zMetaAccountPath, zMetaAccountResponse, zMetaAdPath, zMetaAdResponse, zMetaAdsPath, zMetaAdsResponse, zMetaAdsetPath, zMetaAdsetResponse, zMetaAdsetsPath, zMetaAdsetsResponse, zMetaCampaignPath, zMetaCampaignResponse, zMetaCampaignsPath, zMetaCampaignsResponse, zMetaInsightsPath, zMetaInsightsQuery, zMetaInsightsResponse, zPostsCreateBody, zPostsCreateResponse, zPostsDeletePath, zPostsDeleteResponse, zPostsGetPath, zPostsGetResponse, zPostsListQuery, zPostsListResponse, zPostsUpdateBody, zPostsUpdatePath, zPostsUpdateResponse, zPostsValidateBody, zPostsValidateResponse, zProfilesCreateBody, zProfilesCreateResponse, zProfilesDeletePath, zProfilesDeleteResponse, zProfilesGetPath, zProfilesGetResponse, zProfilesListQuery, zProfilesListResponse, zProfilesUpdateBody, zProfilesUpdatePath, zProfilesUpdateResponse, zTiktokCreatorInfoPath, zTiktokCreatorInfoResponse, zTokensMintBody, zTokensMintResponse, zWebhooksCreateEndpointBody, zWebhooksCreateEndpointResponse, zWebhooksCreatePortalResponse, zWebhooksDeleteEndpointPath, zWebhooksDeleteEndpointResponse, zWebhooksGetEndpointPath, zWebhooksGetEndpointResponse, zWebhooksListEndpointsQuery, zWebhooksListEndpointsResponse, zWebhooksListEventTypesResponse, zWebhooksPingBody, zWebhooksPingResponse, zWebhooksUpdateEndpointBody, zWebhooksUpdateEndpointPath, zWebhooksUpdateEndpointResponse };
3929
+ //# sourceMappingURL=chunk-GOQVIAPL.js.map
3930
+ //# sourceMappingURL=chunk-GOQVIAPL.js.map