@postrun/js 1.3.0 → 2.1.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.
- package/dist/{chunk-KPF3GI7Z.js → chunk-FGI7GS4Z.js} +14 -10
- package/dist/chunk-FGI7GS4Z.js.map +1 -0
- package/dist/{chunk-JBNHOK3M.js → chunk-PIGL6PUC.js} +3 -3
- package/dist/{chunk-JBNHOK3M.js.map → chunk-PIGL6PUC.js.map} +1 -1
- package/dist/index.cjs +18 -8
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +33 -4
- package/dist/index.d.ts +33 -4
- package/dist/index.js +7 -3
- package/dist/index.js.map +1 -1
- package/dist/schemas/index.cjs +12 -8
- package/dist/schemas/index.cjs.map +1 -1
- package/dist/schemas/index.d.cts +10 -6
- package/dist/schemas/index.d.ts +10 -6
- package/dist/schemas/index.js +1 -1
- package/dist/server.cjs +12 -8
- package/dist/server.cjs.map +1 -1
- package/dist/server.d.cts +1 -1
- package/dist/server.d.ts +1 -1
- package/dist/server.js +2 -2
- package/dist/{types.gen-DeuF7WVq.d.cts → types.gen-BJumr-Nk.d.cts} +19 -7
- package/dist/{types.gen-DeuF7WVq.d.ts → types.gen-BJumr-Nk.d.ts} +19 -7
- package/package.json +1 -1
- package/dist/chunk-KPF3GI7Z.js.map +0 -1
package/dist/server.d.cts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { cJ as TokensMintData, fe as PostrunClient, fy as TokensMintResponse } from './types.gen-
|
|
1
|
+
import { cJ as TokensMintData, fe as PostrunClient, fy as TokensMintResponse } from './types.gen-BJumr-Nk.cjs';
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
4
|
* The body for minting a scoped token — the generated request shape (snake_case,
|
package/dist/server.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { cJ as TokensMintData, fe as PostrunClient, fy as TokensMintResponse } from './types.gen-
|
|
1
|
+
import { cJ as TokensMintData, fe as PostrunClient, fy as TokensMintResponse } from './types.gen-BJumr-Nk.js';
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
4
|
* The body for minting a scoped token — the generated request shape (snake_case,
|
package/dist/server.js
CHANGED
|
@@ -361,7 +361,7 @@ type ClientOptions = {
|
|
|
361
361
|
*
|
|
362
362
|
* The closed set of machine-readable Postrun error codes. Branch on this. Each links to https://docs.postrun.ai/errors/<code>.
|
|
363
363
|
*/
|
|
364
|
-
type ErrorCode = 'unauthorized' | 'forbidden' | 'not_found' | 'conflict' | 'validation_failed' | 'rate_limited' | 'internal_error' | 'idempotency_key_invalid' | 'idempotency_key_reused' | 'idempotency_request_in_progress' | 'account_not_available' | 'connection_reauth_required' | 'connection_not_pending' | '
|
|
364
|
+
type ErrorCode = 'unauthorized' | 'forbidden' | 'not_found' | 'conflict' | 'validation_failed' | 'rate_limited' | 'internal_error' | 'idempotency_key_invalid' | 'idempotency_key_reused' | 'idempotency_request_in_progress' | 'account_not_available' | 'connection_reauth_required' | 'connection_not_pending' | 'not_implemented' | 'connection_discovery_failed' | 'media_processing' | 'not_publishable' | 'invalid_connection' | 'invalid_media' | 'profile_scope_invalid' | 'media_unprobeable' | 'media_too_large' | 'media_aspect_ratio_unsupported' | 'media_resolution_too_low' | 'media_gif_unsupported' | 'media_format_recompressed' | 'media_resolution_downscaled' | 'video_container_unsupported' | 'video_codec_unsupported' | 'video_audio_codec_unsupported' | 'video_too_large' | 'video_too_small' | 'video_dimensions_unsupported' | 'video_dimensions_too_large' | 'video_fps_unsupported' | 'video_fps_too_low' | 'video_aspect_unsupported' | 'video_duration_too_short' | 'video_duration_exceeds_max' | 'video_transform_failed' | 'media_fetch_failed' | 'document_format_unsupported' | 'document_too_large' | 'document_too_many_pages' | 'media_format_indeterminate' | 'media_count_invalid' | 'body_too_long' | 'content_missing' | 'content_conflict' | 'content_incomplete' | 'content_kind_mismatch' | 'media_type_mismatch' | 'tag_limit_exceeded' | 'reel_field_on_non_reel' | 'field_placement_invalid' | 'media_not_ready' | 'media_failed' | 'media_unsupported' | 'media_kind_mismatch' | 'variant_unparseable' | 'publishing_unavailable' | 'x_duplicate_content' | 'x_not_authorized' | 'x_access_not_permitted' | 'x_rate_limited' | 'x_publish_failed' | 'x_media_upload_failed' | 'linkedin_duplicate_content' | 'linkedin_auth_expired' | 'linkedin_permission_denied' | 'linkedin_media_processing' | 'linkedin_media_upload_failed' | 'linkedin_publish_failed' | 'instagram_media_processing' | 'instagram_container_expired' | 'instagram_container_failed' | 'instagram_rate_limited' | 'instagram_not_authorized' | 'instagram_publish_failed' | 'facebook_reel_processing' | 'facebook_reel_failed' | 'facebook_rate_limited' | 'facebook_not_authorized' | 'facebook_publish_failed' | 'tiktok_privacy_not_allowed' | 'tiktok_duration_exceeds_max' | 'tiktok_media_processing' | 'tiktok_not_authorized' | 'tiktok_rate_limited' | 'tiktok_publish_failed' | 'connection_platform_mismatch' | 'connection_removed';
|
|
365
365
|
type ProfilesListData = {
|
|
366
366
|
body?: never;
|
|
367
367
|
path?: never;
|
|
@@ -2165,7 +2165,7 @@ type ConnectionsDeleteErrors = {
|
|
|
2165
2165
|
/**
|
|
2166
2166
|
* The machine-readable error code — branch on this. Narrowed to the codes this endpoint can return at this status.
|
|
2167
2167
|
*/
|
|
2168
|
-
code: 'conflict' | 'idempotency_request_in_progress'
|
|
2168
|
+
code: 'conflict' | 'idempotency_request_in_progress';
|
|
2169
2169
|
/**
|
|
2170
2170
|
* An occurrence-specific, human-readable explanation.
|
|
2171
2171
|
*/
|
|
@@ -5321,7 +5321,10 @@ type PostsListResponses = {
|
|
|
5321
5321
|
variants: Array<{
|
|
5322
5322
|
id: string;
|
|
5323
5323
|
object: 'post_variant';
|
|
5324
|
-
|
|
5324
|
+
/**
|
|
5325
|
+
* The connected account this variant publishes to. null when that connection was removed (disconnected) — the variant then fails at publish time with a `connection_removed` error; reconnect + reschedule to resume.
|
|
5326
|
+
*/
|
|
5327
|
+
connection_id: string | null;
|
|
5325
5328
|
platform: 'x' | 'linkedin' | 'facebook_page' | 'instagram' | 'tiktok';
|
|
5326
5329
|
post_type: 'text' | 'single_image' | 'multi_image' | 'video' | 'reel' | 'carousel';
|
|
5327
5330
|
body: string | null;
|
|
@@ -6079,7 +6082,10 @@ type PostsCreateResponses = {
|
|
|
6079
6082
|
variants: Array<{
|
|
6080
6083
|
id: string;
|
|
6081
6084
|
object: 'post_variant';
|
|
6082
|
-
|
|
6085
|
+
/**
|
|
6086
|
+
* The connected account this variant publishes to. null when that connection was removed (disconnected) — the variant then fails at publish time with a `connection_removed` error; reconnect + reschedule to resume.
|
|
6087
|
+
*/
|
|
6088
|
+
connection_id: string | null;
|
|
6083
6089
|
platform: 'x' | 'linkedin' | 'facebook_page' | 'instagram' | 'tiktok';
|
|
6084
6090
|
post_type: 'text' | 'single_image' | 'multi_image' | 'video' | 'reel' | 'carousel';
|
|
6085
6091
|
body: string | null;
|
|
@@ -6613,7 +6619,10 @@ type PostsGetResponses = {
|
|
|
6613
6619
|
variants: Array<{
|
|
6614
6620
|
id: string;
|
|
6615
6621
|
object: 'post_variant';
|
|
6616
|
-
|
|
6622
|
+
/**
|
|
6623
|
+
* The connected account this variant publishes to. null when that connection was removed (disconnected) — the variant then fails at publish time with a `connection_removed` error; reconnect + reschedule to resume.
|
|
6624
|
+
*/
|
|
6625
|
+
connection_id: string | null;
|
|
6617
6626
|
platform: 'x' | 'linkedin' | 'facebook_page' | 'instagram' | 'tiktok';
|
|
6618
6627
|
post_type: 'text' | 'single_image' | 'multi_image' | 'video' | 'reel' | 'carousel';
|
|
6619
6628
|
body: string | null;
|
|
@@ -7346,7 +7355,10 @@ type PostsUpdateResponses = {
|
|
|
7346
7355
|
variants: Array<{
|
|
7347
7356
|
id: string;
|
|
7348
7357
|
object: 'post_variant';
|
|
7349
|
-
|
|
7358
|
+
/**
|
|
7359
|
+
* The connected account this variant publishes to. null when that connection was removed (disconnected) — the variant then fails at publish time with a `connection_removed` error; reconnect + reschedule to resume.
|
|
7360
|
+
*/
|
|
7361
|
+
connection_id: string | null;
|
|
7350
7362
|
platform: 'x' | 'linkedin' | 'facebook_page' | 'instagram' | 'tiktok';
|
|
7351
7363
|
post_type: 'text' | 'single_image' | 'multi_image' | 'video' | 'reel' | 'carousel';
|
|
7352
7364
|
body: string | null;
|
|
@@ -8025,7 +8037,7 @@ type PostsValidateResponses = {
|
|
|
8025
8037
|
object: 'validation';
|
|
8026
8038
|
publishable: boolean;
|
|
8027
8039
|
issues: Array<{
|
|
8028
|
-
code: 'unauthorized' | 'forbidden' | 'not_found' | 'conflict' | 'validation_failed' | 'rate_limited' | 'internal_error' | 'idempotency_key_invalid' | 'idempotency_key_reused' | 'idempotency_request_in_progress' | 'account_not_available' | 'connection_reauth_required' | 'connection_not_pending' | '
|
|
8040
|
+
code: 'unauthorized' | 'forbidden' | 'not_found' | 'conflict' | 'validation_failed' | 'rate_limited' | 'internal_error' | 'idempotency_key_invalid' | 'idempotency_key_reused' | 'idempotency_request_in_progress' | 'account_not_available' | 'connection_reauth_required' | 'connection_not_pending' | 'not_implemented' | 'connection_discovery_failed' | 'media_processing' | 'not_publishable' | 'invalid_connection' | 'invalid_media' | 'profile_scope_invalid' | 'media_unprobeable' | 'media_too_large' | 'media_aspect_ratio_unsupported' | 'media_resolution_too_low' | 'media_gif_unsupported' | 'media_format_recompressed' | 'media_resolution_downscaled' | 'video_container_unsupported' | 'video_codec_unsupported' | 'video_audio_codec_unsupported' | 'video_too_large' | 'video_too_small' | 'video_dimensions_unsupported' | 'video_dimensions_too_large' | 'video_fps_unsupported' | 'video_fps_too_low' | 'video_aspect_unsupported' | 'video_duration_too_short' | 'video_duration_exceeds_max' | 'video_transform_failed' | 'media_fetch_failed' | 'document_format_unsupported' | 'document_too_large' | 'document_too_many_pages' | 'media_format_indeterminate' | 'media_count_invalid' | 'body_too_long' | 'content_missing' | 'content_conflict' | 'content_incomplete' | 'content_kind_mismatch' | 'media_type_mismatch' | 'tag_limit_exceeded' | 'reel_field_on_non_reel' | 'field_placement_invalid' | 'media_not_ready' | 'media_failed' | 'media_unsupported' | 'media_kind_mismatch' | 'variant_unparseable' | 'publishing_unavailable' | 'x_duplicate_content' | 'x_not_authorized' | 'x_access_not_permitted' | 'x_rate_limited' | 'x_publish_failed' | 'x_media_upload_failed' | 'linkedin_duplicate_content' | 'linkedin_auth_expired' | 'linkedin_permission_denied' | 'linkedin_media_processing' | 'linkedin_media_upload_failed' | 'linkedin_publish_failed' | 'instagram_media_processing' | 'instagram_container_expired' | 'instagram_container_failed' | 'instagram_rate_limited' | 'instagram_not_authorized' | 'instagram_publish_failed' | 'facebook_reel_processing' | 'facebook_reel_failed' | 'facebook_rate_limited' | 'facebook_not_authorized' | 'facebook_publish_failed' | 'tiktok_privacy_not_allowed' | 'tiktok_duration_exceeds_max' | 'tiktok_media_processing' | 'tiktok_not_authorized' | 'tiktok_rate_limited' | 'tiktok_publish_failed' | 'connection_platform_mismatch' | 'connection_removed';
|
|
8029
8041
|
message: string;
|
|
8030
8042
|
hint?: string;
|
|
8031
8043
|
allowed?: Array<string>;
|
|
@@ -361,7 +361,7 @@ type ClientOptions = {
|
|
|
361
361
|
*
|
|
362
362
|
* The closed set of machine-readable Postrun error codes. Branch on this. Each links to https://docs.postrun.ai/errors/<code>.
|
|
363
363
|
*/
|
|
364
|
-
type ErrorCode = 'unauthorized' | 'forbidden' | 'not_found' | 'conflict' | 'validation_failed' | 'rate_limited' | 'internal_error' | 'idempotency_key_invalid' | 'idempotency_key_reused' | 'idempotency_request_in_progress' | 'account_not_available' | 'connection_reauth_required' | 'connection_not_pending' | '
|
|
364
|
+
type ErrorCode = 'unauthorized' | 'forbidden' | 'not_found' | 'conflict' | 'validation_failed' | 'rate_limited' | 'internal_error' | 'idempotency_key_invalid' | 'idempotency_key_reused' | 'idempotency_request_in_progress' | 'account_not_available' | 'connection_reauth_required' | 'connection_not_pending' | 'not_implemented' | 'connection_discovery_failed' | 'media_processing' | 'not_publishable' | 'invalid_connection' | 'invalid_media' | 'profile_scope_invalid' | 'media_unprobeable' | 'media_too_large' | 'media_aspect_ratio_unsupported' | 'media_resolution_too_low' | 'media_gif_unsupported' | 'media_format_recompressed' | 'media_resolution_downscaled' | 'video_container_unsupported' | 'video_codec_unsupported' | 'video_audio_codec_unsupported' | 'video_too_large' | 'video_too_small' | 'video_dimensions_unsupported' | 'video_dimensions_too_large' | 'video_fps_unsupported' | 'video_fps_too_low' | 'video_aspect_unsupported' | 'video_duration_too_short' | 'video_duration_exceeds_max' | 'video_transform_failed' | 'media_fetch_failed' | 'document_format_unsupported' | 'document_too_large' | 'document_too_many_pages' | 'media_format_indeterminate' | 'media_count_invalid' | 'body_too_long' | 'content_missing' | 'content_conflict' | 'content_incomplete' | 'content_kind_mismatch' | 'media_type_mismatch' | 'tag_limit_exceeded' | 'reel_field_on_non_reel' | 'field_placement_invalid' | 'media_not_ready' | 'media_failed' | 'media_unsupported' | 'media_kind_mismatch' | 'variant_unparseable' | 'publishing_unavailable' | 'x_duplicate_content' | 'x_not_authorized' | 'x_access_not_permitted' | 'x_rate_limited' | 'x_publish_failed' | 'x_media_upload_failed' | 'linkedin_duplicate_content' | 'linkedin_auth_expired' | 'linkedin_permission_denied' | 'linkedin_media_processing' | 'linkedin_media_upload_failed' | 'linkedin_publish_failed' | 'instagram_media_processing' | 'instagram_container_expired' | 'instagram_container_failed' | 'instagram_rate_limited' | 'instagram_not_authorized' | 'instagram_publish_failed' | 'facebook_reel_processing' | 'facebook_reel_failed' | 'facebook_rate_limited' | 'facebook_not_authorized' | 'facebook_publish_failed' | 'tiktok_privacy_not_allowed' | 'tiktok_duration_exceeds_max' | 'tiktok_media_processing' | 'tiktok_not_authorized' | 'tiktok_rate_limited' | 'tiktok_publish_failed' | 'connection_platform_mismatch' | 'connection_removed';
|
|
365
365
|
type ProfilesListData = {
|
|
366
366
|
body?: never;
|
|
367
367
|
path?: never;
|
|
@@ -2165,7 +2165,7 @@ type ConnectionsDeleteErrors = {
|
|
|
2165
2165
|
/**
|
|
2166
2166
|
* The machine-readable error code — branch on this. Narrowed to the codes this endpoint can return at this status.
|
|
2167
2167
|
*/
|
|
2168
|
-
code: 'conflict' | 'idempotency_request_in_progress'
|
|
2168
|
+
code: 'conflict' | 'idempotency_request_in_progress';
|
|
2169
2169
|
/**
|
|
2170
2170
|
* An occurrence-specific, human-readable explanation.
|
|
2171
2171
|
*/
|
|
@@ -5321,7 +5321,10 @@ type PostsListResponses = {
|
|
|
5321
5321
|
variants: Array<{
|
|
5322
5322
|
id: string;
|
|
5323
5323
|
object: 'post_variant';
|
|
5324
|
-
|
|
5324
|
+
/**
|
|
5325
|
+
* The connected account this variant publishes to. null when that connection was removed (disconnected) — the variant then fails at publish time with a `connection_removed` error; reconnect + reschedule to resume.
|
|
5326
|
+
*/
|
|
5327
|
+
connection_id: string | null;
|
|
5325
5328
|
platform: 'x' | 'linkedin' | 'facebook_page' | 'instagram' | 'tiktok';
|
|
5326
5329
|
post_type: 'text' | 'single_image' | 'multi_image' | 'video' | 'reel' | 'carousel';
|
|
5327
5330
|
body: string | null;
|
|
@@ -6079,7 +6082,10 @@ type PostsCreateResponses = {
|
|
|
6079
6082
|
variants: Array<{
|
|
6080
6083
|
id: string;
|
|
6081
6084
|
object: 'post_variant';
|
|
6082
|
-
|
|
6085
|
+
/**
|
|
6086
|
+
* The connected account this variant publishes to. null when that connection was removed (disconnected) — the variant then fails at publish time with a `connection_removed` error; reconnect + reschedule to resume.
|
|
6087
|
+
*/
|
|
6088
|
+
connection_id: string | null;
|
|
6083
6089
|
platform: 'x' | 'linkedin' | 'facebook_page' | 'instagram' | 'tiktok';
|
|
6084
6090
|
post_type: 'text' | 'single_image' | 'multi_image' | 'video' | 'reel' | 'carousel';
|
|
6085
6091
|
body: string | null;
|
|
@@ -6613,7 +6619,10 @@ type PostsGetResponses = {
|
|
|
6613
6619
|
variants: Array<{
|
|
6614
6620
|
id: string;
|
|
6615
6621
|
object: 'post_variant';
|
|
6616
|
-
|
|
6622
|
+
/**
|
|
6623
|
+
* The connected account this variant publishes to. null when that connection was removed (disconnected) — the variant then fails at publish time with a `connection_removed` error; reconnect + reschedule to resume.
|
|
6624
|
+
*/
|
|
6625
|
+
connection_id: string | null;
|
|
6617
6626
|
platform: 'x' | 'linkedin' | 'facebook_page' | 'instagram' | 'tiktok';
|
|
6618
6627
|
post_type: 'text' | 'single_image' | 'multi_image' | 'video' | 'reel' | 'carousel';
|
|
6619
6628
|
body: string | null;
|
|
@@ -7346,7 +7355,10 @@ type PostsUpdateResponses = {
|
|
|
7346
7355
|
variants: Array<{
|
|
7347
7356
|
id: string;
|
|
7348
7357
|
object: 'post_variant';
|
|
7349
|
-
|
|
7358
|
+
/**
|
|
7359
|
+
* The connected account this variant publishes to. null when that connection was removed (disconnected) — the variant then fails at publish time with a `connection_removed` error; reconnect + reschedule to resume.
|
|
7360
|
+
*/
|
|
7361
|
+
connection_id: string | null;
|
|
7350
7362
|
platform: 'x' | 'linkedin' | 'facebook_page' | 'instagram' | 'tiktok';
|
|
7351
7363
|
post_type: 'text' | 'single_image' | 'multi_image' | 'video' | 'reel' | 'carousel';
|
|
7352
7364
|
body: string | null;
|
|
@@ -8025,7 +8037,7 @@ type PostsValidateResponses = {
|
|
|
8025
8037
|
object: 'validation';
|
|
8026
8038
|
publishable: boolean;
|
|
8027
8039
|
issues: Array<{
|
|
8028
|
-
code: 'unauthorized' | 'forbidden' | 'not_found' | 'conflict' | 'validation_failed' | 'rate_limited' | 'internal_error' | 'idempotency_key_invalid' | 'idempotency_key_reused' | 'idempotency_request_in_progress' | 'account_not_available' | 'connection_reauth_required' | 'connection_not_pending' | '
|
|
8040
|
+
code: 'unauthorized' | 'forbidden' | 'not_found' | 'conflict' | 'validation_failed' | 'rate_limited' | 'internal_error' | 'idempotency_key_invalid' | 'idempotency_key_reused' | 'idempotency_request_in_progress' | 'account_not_available' | 'connection_reauth_required' | 'connection_not_pending' | 'not_implemented' | 'connection_discovery_failed' | 'media_processing' | 'not_publishable' | 'invalid_connection' | 'invalid_media' | 'profile_scope_invalid' | 'media_unprobeable' | 'media_too_large' | 'media_aspect_ratio_unsupported' | 'media_resolution_too_low' | 'media_gif_unsupported' | 'media_format_recompressed' | 'media_resolution_downscaled' | 'video_container_unsupported' | 'video_codec_unsupported' | 'video_audio_codec_unsupported' | 'video_too_large' | 'video_too_small' | 'video_dimensions_unsupported' | 'video_dimensions_too_large' | 'video_fps_unsupported' | 'video_fps_too_low' | 'video_aspect_unsupported' | 'video_duration_too_short' | 'video_duration_exceeds_max' | 'video_transform_failed' | 'media_fetch_failed' | 'document_format_unsupported' | 'document_too_large' | 'document_too_many_pages' | 'media_format_indeterminate' | 'media_count_invalid' | 'body_too_long' | 'content_missing' | 'content_conflict' | 'content_incomplete' | 'content_kind_mismatch' | 'media_type_mismatch' | 'tag_limit_exceeded' | 'reel_field_on_non_reel' | 'field_placement_invalid' | 'media_not_ready' | 'media_failed' | 'media_unsupported' | 'media_kind_mismatch' | 'variant_unparseable' | 'publishing_unavailable' | 'x_duplicate_content' | 'x_not_authorized' | 'x_access_not_permitted' | 'x_rate_limited' | 'x_publish_failed' | 'x_media_upload_failed' | 'linkedin_duplicate_content' | 'linkedin_auth_expired' | 'linkedin_permission_denied' | 'linkedin_media_processing' | 'linkedin_media_upload_failed' | 'linkedin_publish_failed' | 'instagram_media_processing' | 'instagram_container_expired' | 'instagram_container_failed' | 'instagram_rate_limited' | 'instagram_not_authorized' | 'instagram_publish_failed' | 'facebook_reel_processing' | 'facebook_reel_failed' | 'facebook_rate_limited' | 'facebook_not_authorized' | 'facebook_publish_failed' | 'tiktok_privacy_not_allowed' | 'tiktok_duration_exceeds_max' | 'tiktok_media_processing' | 'tiktok_not_authorized' | 'tiktok_rate_limited' | 'tiktok_publish_failed' | 'connection_platform_mismatch' | 'connection_removed';
|
|
8029
8041
|
message: string;
|
|
8030
8042
|
hint?: string;
|
|
8031
8043
|
allowed?: Array<string>;
|