@postrun/js 0.1.0 → 0.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.
@@ -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' | 'source_url_unsupported' | 'account_not_available' | 'connection_reauth_required' | 'connection_not_pending' | 'not_implemented' | 'media_processing' | 'not_publishable' | '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' | 'document_format_unsupported' | 'document_too_large' | 'document_too_many_pages' | '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' | 'media_not_ready' | 'media_failed' | 'media_unsupported' | 'media_kind_mismatch' | 'publishing_unavailable' | 'x_duplicate_content' | 'x_not_authorized' | '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' | 'connection_platform_mismatch';
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' | 'connection_in_use' | 'not_implemented' | 'connection_discovery_failed' | 'media_processing' | 'not_publishable' | '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' | 'publishing_unavailable' | 'x_duplicate_content' | 'x_not_authorized' | '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';
365
365
  type ProfilesListData = {
366
366
  body?: never;
367
367
  path?: never;
@@ -1708,6 +1708,18 @@ type ConnectionsListByProfileData = {
1708
1708
  * Number of items to skip before this page. Defaults to 0.
1709
1709
  */
1710
1710
  offset?: number;
1711
+ /**
1712
+ * Return only the connection backed by this Nango grant id (exact match). Used by the hosted connect page to resolve the row a grant produced.
1713
+ */
1714
+ nango_connection_id?: string;
1715
+ /**
1716
+ * Return only connections of this kind (`posting` or `ads`). Translated server-side to a filter on the underlying `platform` column.
1717
+ */
1718
+ kind?: 'posting' | 'ads';
1719
+ /**
1720
+ * Return only connections in this lifecycle status (`pending`, `active`, or `needs_reauth`). Translated server-side to predicates on `external_account_id`/`reauth_at`.
1721
+ */
1722
+ status?: 'pending' | 'active' | 'needs_reauth';
1711
1723
  };
1712
1724
  url: '/profiles/{id}/connections';
1713
1725
  };
@@ -1942,6 +1954,14 @@ type ConnectionsListByProfileResponses = {
1942
1954
  * Ad/social platform a connection targets.
1943
1955
  */
1944
1956
  platform: 'meta_ads' | 'google_ads' | 'tiktok_ads' | 'x' | 'linkedin' | 'facebook_page' | 'instagram' | 'tiktok';
1957
+ /**
1958
+ * Whether the connection targets an ads platform (`ads`) or a posting social network (`posting`). Computed from the platform.
1959
+ */
1960
+ kind: 'posting' | 'ads';
1961
+ /**
1962
+ * Lifecycle status: `pending` (no account chosen), `active` (account selected, grant healthy), or `needs_reauth` (the OAuth grant died — reconnect needed). Computed from reauth_at and external_account_id.
1963
+ */
1964
+ status: 'pending' | 'active' | 'needs_reauth';
1945
1965
  /**
1946
1966
  * Platform account id selected from the grant (e.g. act_123 for Meta), or null while the connection is pending account selection.
1947
1967
  */
@@ -1950,6 +1970,22 @@ type ConnectionsListByProfileResponses = {
1950
1970
  * Display cache of the platform account's name, or null if unknown.
1951
1971
  */
1952
1972
  external_account_name: string | null;
1973
+ /**
1974
+ * Display cache of the social account @handle, or null (ad accounts, or platforms that gate it — e.g. LinkedIn).
1975
+ */
1976
+ username: string | null;
1977
+ /**
1978
+ * Display cache of the social account avatar image url, or null (ad accounts have none).
1979
+ */
1980
+ avatar_url: string | null;
1981
+ /**
1982
+ * Display cache of the social account canonical profile url, or null (ad accounts, or gated handles).
1983
+ */
1984
+ profile_url: string | null;
1985
+ /**
1986
+ * ISO-8601 time the OAuth grant was detected dead (reconnect needed), or null when healthy. Drives the computed `needs_reauth` status.
1987
+ */
1988
+ reauth_at: string | null;
1953
1989
  /**
1954
1990
  * ISO-4217 account currency, or null if unknown.
1955
1991
  */
@@ -2129,7 +2165,7 @@ type ConnectionsDeleteErrors = {
2129
2165
  /**
2130
2166
  * The machine-readable error code — branch on this. Narrowed to the codes this endpoint can return at this status.
2131
2167
  */
2132
- code: 'conflict' | 'idempotency_request_in_progress';
2168
+ code: 'conflict' | 'idempotency_request_in_progress' | 'connection_in_use';
2133
2169
  /**
2134
2170
  * An occurrence-specific, human-readable explanation.
2135
2171
  */
@@ -2453,6 +2489,14 @@ type ConnectionsGetResponses = {
2453
2489
  * Ad/social platform a connection targets.
2454
2490
  */
2455
2491
  platform: 'meta_ads' | 'google_ads' | 'tiktok_ads' | 'x' | 'linkedin' | 'facebook_page' | 'instagram' | 'tiktok';
2492
+ /**
2493
+ * Whether the connection targets an ads platform (`ads`) or a posting social network (`posting`). Computed from the platform.
2494
+ */
2495
+ kind: 'posting' | 'ads';
2496
+ /**
2497
+ * Lifecycle status: `pending` (no account chosen), `active` (account selected, grant healthy), or `needs_reauth` (the OAuth grant died — reconnect needed). Computed from reauth_at and external_account_id.
2498
+ */
2499
+ status: 'pending' | 'active' | 'needs_reauth';
2456
2500
  /**
2457
2501
  * Platform account id selected from the grant (e.g. act_123 for Meta), or null while the connection is pending account selection.
2458
2502
  */
@@ -2461,6 +2505,22 @@ type ConnectionsGetResponses = {
2461
2505
  * Display cache of the platform account's name, or null if unknown.
2462
2506
  */
2463
2507
  external_account_name: string | null;
2508
+ /**
2509
+ * Display cache of the social account @handle, or null (ad accounts, or platforms that gate it — e.g. LinkedIn).
2510
+ */
2511
+ username: string | null;
2512
+ /**
2513
+ * Display cache of the social account avatar image url, or null (ad accounts have none).
2514
+ */
2515
+ avatar_url: string | null;
2516
+ /**
2517
+ * Display cache of the social account canonical profile url, or null (ad accounts, or gated handles).
2518
+ */
2519
+ profile_url: string | null;
2520
+ /**
2521
+ * ISO-8601 time the OAuth grant was detected dead (reconnect needed), or null when healthy. Drives the computed `needs_reauth` status.
2522
+ */
2523
+ reauth_at: string | null;
2464
2524
  /**
2465
2525
  * ISO-4217 account currency, or null if unknown.
2466
2526
  */
@@ -2696,6 +2756,64 @@ type ConnectionsSelectErrors = {
2696
2756
  */
2697
2757
  request_id?: string;
2698
2758
  };
2759
+ /**
2760
+ * An RFC 9457 problem response.
2761
+ */
2762
+ 501: {
2763
+ /**
2764
+ * A URL to this code's documentation page.
2765
+ */
2766
+ type: string;
2767
+ /**
2768
+ * A stable, human-readable summary of the error code.
2769
+ */
2770
+ title: string;
2771
+ /**
2772
+ * The HTTP status code.
2773
+ */
2774
+ status: number;
2775
+ /**
2776
+ * The machine-readable error code — branch on this. Narrowed to the codes this endpoint can return at this status.
2777
+ */
2778
+ code: 'not_implemented';
2779
+ /**
2780
+ * An occurrence-specific, human-readable explanation.
2781
+ */
2782
+ detail?: string;
2783
+ /**
2784
+ * The request id, for support and log correlation.
2785
+ */
2786
+ request_id?: string;
2787
+ };
2788
+ /**
2789
+ * An RFC 9457 problem response.
2790
+ */
2791
+ 502: {
2792
+ /**
2793
+ * A URL to this code's documentation page.
2794
+ */
2795
+ type: string;
2796
+ /**
2797
+ * A stable, human-readable summary of the error code.
2798
+ */
2799
+ title: string;
2800
+ /**
2801
+ * The HTTP status code.
2802
+ */
2803
+ status: number;
2804
+ /**
2805
+ * The machine-readable error code — branch on this. Narrowed to the codes this endpoint can return at this status.
2806
+ */
2807
+ code: 'connection_discovery_failed';
2808
+ /**
2809
+ * An occurrence-specific, human-readable explanation.
2810
+ */
2811
+ detail?: string;
2812
+ /**
2813
+ * The request id, for support and log correlation.
2814
+ */
2815
+ request_id?: string;
2816
+ };
2699
2817
  };
2700
2818
  type ConnectionsSelectError = ConnectionsSelectErrors[keyof ConnectionsSelectErrors];
2701
2819
  type ConnectionsSelectResponses = {
@@ -2715,6 +2833,14 @@ type ConnectionsSelectResponses = {
2715
2833
  * Ad/social platform a connection targets.
2716
2834
  */
2717
2835
  platform: 'meta_ads' | 'google_ads' | 'tiktok_ads' | 'x' | 'linkedin' | 'facebook_page' | 'instagram' | 'tiktok';
2836
+ /**
2837
+ * Whether the connection targets an ads platform (`ads`) or a posting social network (`posting`). Computed from the platform.
2838
+ */
2839
+ kind: 'posting' | 'ads';
2840
+ /**
2841
+ * Lifecycle status: `pending` (no account chosen), `active` (account selected, grant healthy), or `needs_reauth` (the OAuth grant died — reconnect needed). Computed from reauth_at and external_account_id.
2842
+ */
2843
+ status: 'pending' | 'active' | 'needs_reauth';
2718
2844
  /**
2719
2845
  * Platform account id selected from the grant (e.g. act_123 for Meta), or null while the connection is pending account selection.
2720
2846
  */
@@ -2723,6 +2849,22 @@ type ConnectionsSelectResponses = {
2723
2849
  * Display cache of the platform account's name, or null if unknown.
2724
2850
  */
2725
2851
  external_account_name: string | null;
2852
+ /**
2853
+ * Display cache of the social account @handle, or null (ad accounts, or platforms that gate it — e.g. LinkedIn).
2854
+ */
2855
+ username: string | null;
2856
+ /**
2857
+ * Display cache of the social account avatar image url, or null (ad accounts have none).
2858
+ */
2859
+ avatar_url: string | null;
2860
+ /**
2861
+ * Display cache of the social account canonical profile url, or null (ad accounts, or gated handles).
2862
+ */
2863
+ profile_url: string | null;
2864
+ /**
2865
+ * ISO-8601 time the OAuth grant was detected dead (reconnect needed), or null when healthy. Drives the computed `needs_reauth` status.
2866
+ */
2867
+ reauth_at: string | null;
2726
2868
  /**
2727
2869
  * ISO-4217 account currency, or null if unknown.
2728
2870
  */
@@ -2927,7 +3069,324 @@ type ConnectionsListAccountsErrors = {
2927
3069
  /**
2928
3070
  * An RFC 9457 problem response.
2929
3071
  */
2930
- 429: {
3072
+ 429: {
3073
+ /**
3074
+ * A URL to this code's documentation page.
3075
+ */
3076
+ type: string;
3077
+ /**
3078
+ * A stable, human-readable summary of the error code.
3079
+ */
3080
+ title: string;
3081
+ /**
3082
+ * The HTTP status code.
3083
+ */
3084
+ status: number;
3085
+ /**
3086
+ * The machine-readable error code — branch on this. Narrowed to the codes this endpoint can return at this status.
3087
+ */
3088
+ code: 'rate_limited';
3089
+ /**
3090
+ * An occurrence-specific, human-readable explanation.
3091
+ */
3092
+ detail?: string;
3093
+ /**
3094
+ * The request id, for support and log correlation.
3095
+ */
3096
+ request_id?: string;
3097
+ };
3098
+ /**
3099
+ * An RFC 9457 problem response.
3100
+ */
3101
+ 501: {
3102
+ /**
3103
+ * A URL to this code's documentation page.
3104
+ */
3105
+ type: string;
3106
+ /**
3107
+ * A stable, human-readable summary of the error code.
3108
+ */
3109
+ title: string;
3110
+ /**
3111
+ * The HTTP status code.
3112
+ */
3113
+ status: number;
3114
+ /**
3115
+ * The machine-readable error code — branch on this. Narrowed to the codes this endpoint can return at this status.
3116
+ */
3117
+ code: 'not_implemented';
3118
+ /**
3119
+ * An occurrence-specific, human-readable explanation.
3120
+ */
3121
+ detail?: string;
3122
+ /**
3123
+ * The request id, for support and log correlation.
3124
+ */
3125
+ request_id?: string;
3126
+ };
3127
+ /**
3128
+ * An RFC 9457 problem response.
3129
+ */
3130
+ 502: {
3131
+ /**
3132
+ * A URL to this code's documentation page.
3133
+ */
3134
+ type: string;
3135
+ /**
3136
+ * A stable, human-readable summary of the error code.
3137
+ */
3138
+ title: string;
3139
+ /**
3140
+ * The HTTP status code.
3141
+ */
3142
+ status: number;
3143
+ /**
3144
+ * The machine-readable error code — branch on this. Narrowed to the codes this endpoint can return at this status.
3145
+ */
3146
+ code: 'connection_discovery_failed';
3147
+ /**
3148
+ * An occurrence-specific, human-readable explanation.
3149
+ */
3150
+ detail?: string;
3151
+ /**
3152
+ * The request id, for support and log correlation.
3153
+ */
3154
+ request_id?: string;
3155
+ };
3156
+ };
3157
+ type ConnectionsListAccountsError = ConnectionsListAccountsErrors[keyof ConnectionsListAccountsErrors];
3158
+ type ConnectionsListAccountsResponses = {
3159
+ /**
3160
+ * OK
3161
+ */
3162
+ 200: {
3163
+ /**
3164
+ * Always the string `list`.
3165
+ */
3166
+ object: 'list';
3167
+ /**
3168
+ * The accounts reachable through this connection.
3169
+ */
3170
+ data: Array<{
3171
+ /**
3172
+ * Platform account id to pass to the select endpoint to activate the connection (e.g. act_123456789 for Meta).
3173
+ */
3174
+ external_account_id: string;
3175
+ /**
3176
+ * Human-readable account name, or null if the platform omits it.
3177
+ */
3178
+ name: string | null;
3179
+ /**
3180
+ * ISO-4217 account currency, or null if the platform omits it.
3181
+ */
3182
+ currency: string | null;
3183
+ /**
3184
+ * Social account @handle for this discoverable account, or null (ad accounts / gated handles).
3185
+ */
3186
+ username?: string | null;
3187
+ /**
3188
+ * Social account avatar image url, or null if the platform omits it.
3189
+ */
3190
+ avatar_url?: string | null;
3191
+ /**
3192
+ * Social account canonical profile url, or null if the platform omits it.
3193
+ */
3194
+ profile_url?: string | null;
3195
+ /**
3196
+ * The Instagram professional account linked to this Facebook Page, if any. Present (Facebook Pages) or absent (every other platform); null when a Page has no linked Instagram account.
3197
+ */
3198
+ instagram?: {
3199
+ /**
3200
+ * The linked Instagram professional account id (the IG user id).
3201
+ */
3202
+ external_account_id: string;
3203
+ /**
3204
+ * The Instagram account username, or null if the platform omits it.
3205
+ */
3206
+ name: string | null;
3207
+ /**
3208
+ * The Instagram account @handle, or null if omitted.
3209
+ */
3210
+ username?: string | null;
3211
+ /**
3212
+ * The Instagram account avatar image url, or null.
3213
+ */
3214
+ avatar_url?: string | null;
3215
+ /**
3216
+ * The Instagram account canonical profile url, or null.
3217
+ */
3218
+ profile_url?: string | null;
3219
+ } | null;
3220
+ }>;
3221
+ };
3222
+ };
3223
+ type ConnectionsListAccountsResponse = ConnectionsListAccountsResponses[keyof ConnectionsListAccountsResponses];
3224
+ type ConnectionsConnectData = {
3225
+ body: {
3226
+ /**
3227
+ * A platform a connection can start an OAuth connect flow for (the v1 launch set: Meta Ads, Google Ads, X, LinkedIn, Facebook Pages, TikTok).
3228
+ */
3229
+ platform: 'meta_ads' | 'google_ads' | 'x' | 'linkedin' | 'facebook_page' | 'tiktok';
3230
+ };
3231
+ path: {
3232
+ /**
3233
+ * Profile id.
3234
+ */
3235
+ id: string;
3236
+ };
3237
+ query?: never;
3238
+ url: '/profiles/{id}/connect';
3239
+ };
3240
+ type ConnectionsConnectErrors = {
3241
+ /**
3242
+ * An RFC 9457 problem response.
3243
+ */
3244
+ 400: {
3245
+ /**
3246
+ * A URL to this code's documentation page.
3247
+ */
3248
+ type: string;
3249
+ /**
3250
+ * A stable, human-readable summary of the error code.
3251
+ */
3252
+ title: string;
3253
+ /**
3254
+ * The HTTP status code.
3255
+ */
3256
+ status: number;
3257
+ /**
3258
+ * The machine-readable error code — branch on this. Narrowed to the codes this endpoint can return at this status.
3259
+ */
3260
+ code: 'idempotency_key_invalid';
3261
+ /**
3262
+ * An occurrence-specific, human-readable explanation.
3263
+ */
3264
+ detail?: string;
3265
+ /**
3266
+ * The request id, for support and log correlation.
3267
+ */
3268
+ request_id?: string;
3269
+ };
3270
+ /**
3271
+ * An RFC 9457 problem response.
3272
+ */
3273
+ 401: {
3274
+ /**
3275
+ * A URL to this code's documentation page.
3276
+ */
3277
+ type: string;
3278
+ /**
3279
+ * A stable, human-readable summary of the error code.
3280
+ */
3281
+ title: string;
3282
+ /**
3283
+ * The HTTP status code.
3284
+ */
3285
+ status: number;
3286
+ /**
3287
+ * The machine-readable error code — branch on this. Narrowed to the codes this endpoint can return at this status.
3288
+ */
3289
+ code: 'unauthorized';
3290
+ /**
3291
+ * An occurrence-specific, human-readable explanation.
3292
+ */
3293
+ detail?: string;
3294
+ /**
3295
+ * The request id, for support and log correlation.
3296
+ */
3297
+ request_id?: string;
3298
+ };
3299
+ /**
3300
+ * An RFC 9457 problem response.
3301
+ */
3302
+ 403: {
3303
+ /**
3304
+ * A URL to this code's documentation page.
3305
+ */
3306
+ type: string;
3307
+ /**
3308
+ * A stable, human-readable summary of the error code.
3309
+ */
3310
+ title: string;
3311
+ /**
3312
+ * The HTTP status code.
3313
+ */
3314
+ status: number;
3315
+ /**
3316
+ * The machine-readable error code — branch on this. Narrowed to the codes this endpoint can return at this status.
3317
+ */
3318
+ code: 'forbidden';
3319
+ /**
3320
+ * An occurrence-specific, human-readable explanation.
3321
+ */
3322
+ detail?: string;
3323
+ /**
3324
+ * The request id, for support and log correlation.
3325
+ */
3326
+ request_id?: string;
3327
+ };
3328
+ /**
3329
+ * An RFC 9457 problem response.
3330
+ */
3331
+ 404: {
3332
+ /**
3333
+ * A URL to this code's documentation page.
3334
+ */
3335
+ type: string;
3336
+ /**
3337
+ * A stable, human-readable summary of the error code.
3338
+ */
3339
+ title: string;
3340
+ /**
3341
+ * The HTTP status code.
3342
+ */
3343
+ status: number;
3344
+ /**
3345
+ * The machine-readable error code — branch on this. Narrowed to the codes this endpoint can return at this status.
3346
+ */
3347
+ code: 'not_found';
3348
+ /**
3349
+ * An occurrence-specific, human-readable explanation.
3350
+ */
3351
+ detail?: string;
3352
+ /**
3353
+ * The request id, for support and log correlation.
3354
+ */
3355
+ request_id?: string;
3356
+ };
3357
+ /**
3358
+ * An RFC 9457 problem response.
3359
+ */
3360
+ 409: {
3361
+ /**
3362
+ * A URL to this code's documentation page.
3363
+ */
3364
+ type: string;
3365
+ /**
3366
+ * A stable, human-readable summary of the error code.
3367
+ */
3368
+ title: string;
3369
+ /**
3370
+ * The HTTP status code.
3371
+ */
3372
+ status: number;
3373
+ /**
3374
+ * The machine-readable error code — branch on this. Narrowed to the codes this endpoint can return at this status.
3375
+ */
3376
+ code: 'conflict' | 'idempotency_request_in_progress';
3377
+ /**
3378
+ * An occurrence-specific, human-readable explanation.
3379
+ */
3380
+ detail?: string;
3381
+ /**
3382
+ * The request id, for support and log correlation.
3383
+ */
3384
+ request_id?: string;
3385
+ };
3386
+ /**
3387
+ * An RFC 9457 problem response.
3388
+ */
3389
+ 422: {
2931
3390
  /**
2932
3391
  * A URL to this code's documentation page.
2933
3392
  */
@@ -2943,7 +3402,7 @@ type ConnectionsListAccountsErrors = {
2943
3402
  /**
2944
3403
  * The machine-readable error code — branch on this. Narrowed to the codes this endpoint can return at this status.
2945
3404
  */
2946
- code: 'rate_limited';
3405
+ code: 'idempotency_key_reused';
2947
3406
  /**
2948
3407
  * An occurrence-specific, human-readable explanation.
2949
3408
  */
@@ -2956,7 +3415,7 @@ type ConnectionsListAccountsErrors = {
2956
3415
  /**
2957
3416
  * An RFC 9457 problem response.
2958
3417
  */
2959
- 501: {
3418
+ 429: {
2960
3419
  /**
2961
3420
  * A URL to this code's documentation page.
2962
3421
  */
@@ -2972,7 +3431,7 @@ type ConnectionsListAccountsErrors = {
2972
3431
  /**
2973
3432
  * The machine-readable error code — branch on this. Narrowed to the codes this endpoint can return at this status.
2974
3433
  */
2975
- code: 'not_implemented';
3434
+ code: 'rate_limited';
2976
3435
  /**
2977
3436
  * An occurrence-specific, human-readable explanation.
2978
3437
  */
@@ -2983,66 +3442,65 @@ type ConnectionsListAccountsErrors = {
2983
3442
  request_id?: string;
2984
3443
  };
2985
3444
  };
2986
- type ConnectionsListAccountsError = ConnectionsListAccountsErrors[keyof ConnectionsListAccountsErrors];
2987
- type ConnectionsListAccountsResponses = {
3445
+ type ConnectionsConnectError = ConnectionsConnectErrors[keyof ConnectionsConnectErrors];
3446
+ type ConnectionsConnectResponses = {
2988
3447
  /**
2989
3448
  * OK
2990
3449
  */
2991
- 200: {
3450
+ 201: {
2992
3451
  /**
2993
- * Always the string `list`.
3452
+ * Ready-to-open Postrun hosted connect URL. Open it (popup or tab) to run the OAuth grant and account picker — the client never hand-assembles connect params.
2994
3453
  */
2995
- object: 'list';
3454
+ hosted_connect_url: string;
2996
3455
  /**
2997
- * The accounts reachable through this connection.
3456
+ * Short-lived scoped token (connections read/write on this profile) the hosted page uses to drive the public discover/select API.
2998
3457
  */
2999
- data: Array<{
3000
- /**
3001
- * Platform account id to pass to the select endpoint to activate the connection (e.g. act_123456789 for Meta).
3002
- */
3003
- external_account_id: string;
3004
- /**
3005
- * Human-readable account name, or null if the platform omits it.
3006
- */
3007
- name: string | null;
3008
- /**
3009
- * ISO-4217 account currency, or null if the platform omits it.
3010
- */
3011
- currency: string | null;
3012
- /**
3013
- * The Instagram professional account linked to this Facebook Page, if any. Present (Facebook Pages) or absent (every other platform); null when a Page has no linked Instagram account.
3014
- */
3015
- instagram?: {
3016
- /**
3017
- * The linked Instagram professional account id (the IG user id).
3018
- */
3019
- external_account_id: string;
3020
- /**
3021
- * The Instagram account username, or null if the platform omits it.
3022
- */
3023
- name: string | null;
3024
- } | null;
3025
- }>;
3458
+ connect_token: string;
3459
+ /**
3460
+ * ISO-8601 time when the session token expires.
3461
+ */
3462
+ expires_at: string;
3026
3463
  };
3027
3464
  };
3028
- type ConnectionsListAccountsResponse = ConnectionsListAccountsResponses[keyof ConnectionsListAccountsResponses];
3029
- type ConnectionsConnectData = {
3030
- body: {
3465
+ type ConnectionsConnectResponse = ConnectionsConnectResponses[keyof ConnectionsConnectResponses];
3466
+ type MediaListData = {
3467
+ body?: never;
3468
+ path?: never;
3469
+ query?: {
3031
3470
  /**
3032
- * A platform a connection can start an OAuth connect flow for.
3471
+ * Maximum number of items to return (1–100). Defaults to 20.
3033
3472
  */
3034
- platform: 'meta_ads' | 'google_ads' | 'tiktok_ads' | 'x' | 'linkedin' | 'facebook_page' | 'tiktok';
3035
- };
3036
- path: {
3473
+ limit?: number;
3037
3474
  /**
3038
- * Profile id.
3475
+ * Number of items to skip before this page. Defaults to 0.
3039
3476
  */
3040
- id: string;
3477
+ offset?: number;
3478
+ /**
3479
+ * Restrict to media owned by a single profile.
3480
+ */
3481
+ profile_id?: string;
3482
+ /**
3483
+ * Only assets in this lifecycle state (uploading / processing / ready / failed).
3484
+ */
3485
+ status?: 'uploading' | 'processing' | 'ready' | 'failed';
3486
+ /**
3487
+ * Only assets of this family (image / video / gif / document). Unset on assets still in the pre-detection `uploading` window, so a `kind` filter excludes those.
3488
+ */
3489
+ kind?: 'image' | 'video' | 'gif' | 'document';
3490
+ /**
3491
+ * Look up the asset by your own id (exact match).
3492
+ */
3493
+ external_id?: string;
3494
+ /**
3495
+ * Filter by metadata key/value pairs (exact match; multiple keys are ANDed; omit for no filter). REST: a URL-encoded JSON object, e.g. ?metadata=%7B%22campaign%22%3A%22summer%22%2C%22priority%22%3A3%7D. SDK/MCP: pass the object directly. Values are scalars (string/number/boolean), matched type-exactly. No operators or ranges.
3496
+ */
3497
+ metadata?: {
3498
+ [key: string]: string | number | boolean;
3499
+ };
3041
3500
  };
3042
- query?: never;
3043
- url: '/profiles/{id}/connect';
3501
+ url: '/media';
3044
3502
  };
3045
- type ConnectionsConnectErrors = {
3503
+ type MediaListErrors = {
3046
3504
  /**
3047
3505
  * An RFC 9457 problem response.
3048
3506
  */
@@ -3247,46 +3705,134 @@ type ConnectionsConnectErrors = {
3247
3705
  request_id?: string;
3248
3706
  };
3249
3707
  };
3250
- type ConnectionsConnectError = ConnectionsConnectErrors[keyof ConnectionsConnectErrors];
3251
- type ConnectionsConnectResponses = {
3708
+ type MediaListError = MediaListErrors[keyof MediaListErrors];
3709
+ type MediaListResponses = {
3252
3710
  /**
3253
3711
  * OK
3254
3712
  */
3255
- 201: {
3713
+ 200: {
3256
3714
  /**
3257
- * Short-lived token the client passes to the Nango Connect UI to run OAuth.
3715
+ * Always the string `list`.
3258
3716
  */
3259
- connect_session_token: string;
3717
+ object: 'list';
3260
3718
  /**
3261
- * Hosted Connect URL to redirect the user to instead of the embedded UI.
3719
+ * The items on this page.
3262
3720
  */
3263
- connect_url: string;
3721
+ data: Array<{
3722
+ id: string;
3723
+ object: 'media';
3724
+ profile_id: string;
3725
+ /**
3726
+ * The detected asset family (image/video/gif/document). We sniff it from the uploaded bytes. null only in the brief pre-detection window while status is `uploading`; non-null once probed.
3727
+ */
3728
+ kind: 'image' | 'video' | 'gif' | 'document' | null;
3729
+ /**
3730
+ * The detected MIME of the uploaded original (e.g. video/mp4), sniffed from the bytes (or the value you provided as an override). null only in the brief pre-detection window while status is `uploading`.
3731
+ */
3732
+ content_type: string | null;
3733
+ status: 'uploading' | 'processing' | 'ready' | 'failed';
3734
+ raw: boolean;
3735
+ /**
3736
+ * Asset-wide failure (the original itself is unusable, so no platform can succeed); null otherwise.
3737
+ */
3738
+ error: {
3739
+ code: 'media_unprobeable' | 'media_format_indeterminate' | '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_unsupported';
3740
+ message: string;
3741
+ hint?: string;
3742
+ allowed?: Array<string>;
3743
+ got?: string;
3744
+ } | null;
3745
+ source: {
3746
+ /**
3747
+ * MIME of the original, e.g. image/heic.
3748
+ */
3749
+ format: string;
3750
+ bytes: number;
3751
+ width: number | null;
3752
+ height: number | null;
3753
+ duration_ms: number | null;
3754
+ } | null;
3755
+ alt_text: string | null;
3756
+ per_platform: {
3757
+ [key: string]: {
3758
+ status: 'processing' | 'ready' | 'failed';
3759
+ /**
3760
+ * Public URL of this platform’s rendition (null until ready).
3761
+ */
3762
+ url: string | null;
3763
+ width: number | null;
3764
+ height: number | null;
3765
+ bytes: number | null;
3766
+ warnings: Array<{
3767
+ code: 'media_unprobeable' | 'media_format_indeterminate' | '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_unsupported';
3768
+ message: string;
3769
+ hint?: string;
3770
+ allowed?: Array<string>;
3771
+ got?: string;
3772
+ }>;
3773
+ errors: Array<{
3774
+ code: 'media_unprobeable' | 'media_format_indeterminate' | '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_unsupported';
3775
+ message: string;
3776
+ hint?: string;
3777
+ allowed?: Array<string>;
3778
+ got?: string;
3779
+ }>;
3780
+ };
3781
+ };
3782
+ external_id: string | null;
3783
+ /**
3784
+ * Customer-owned key/value context, returned on reads and filterable on list endpoints (exact match). Values are scalars: string (≤500 chars), number, or boolean. At most 50 keys; keys ≤40 chars; total serialized JSON must fit in 16 KiB. Arrays and nested objects are out of scope for v1 (kept out to keep the contract scalar + exact-match). Keep a key’s value type consistent across records — filtering matches type-exactly. Never derive auth/scopes from metadata.
3785
+ */
3786
+ metadata: {
3787
+ [key: string]: string | number | boolean;
3788
+ };
3789
+ /**
3790
+ * ISO-8601 creation time.
3791
+ */
3792
+ created_at: string;
3793
+ /**
3794
+ * ISO-8601 last-update time.
3795
+ */
3796
+ updated_at: string;
3797
+ }>;
3264
3798
  /**
3265
- * ISO-8601 time when the session token expires.
3799
+ * Total items matching the query, across all pages.
3266
3800
  */
3267
- expires_at: string;
3801
+ total: number;
3802
+ /**
3803
+ * The limit applied to this page.
3804
+ */
3805
+ limit: number;
3806
+ /**
3807
+ * The offset applied to this page.
3808
+ */
3809
+ offset: number;
3810
+ /**
3811
+ * True if more items exist after this page.
3812
+ */
3813
+ has_more: boolean;
3268
3814
  };
3269
3815
  };
3270
- type ConnectionsConnectResponse = ConnectionsConnectResponses[keyof ConnectionsConnectResponses];
3816
+ type MediaListResponse = MediaListResponses[keyof MediaListResponses];
3271
3817
  type MediaCreateData = {
3272
3818
  /**
3273
- * Create a media asset via the signed direct upload target (source_url is reserved/unsupported in v1).
3819
+ * Create a media asset — either via the signed direct upload target (omit source_url) or by importing from a public https source_url (we fetch + validate + transform + store). Size limits: a direct-upload video may be up to 5 GB; all other direct uploads and any source_url import must be 1 GB or smaller. A file over its limit is rejected with `media_too_large`.
3274
3820
  */
3275
3821
  body: {
3276
3822
  /**
3277
- * Profile that owns this asset.
3823
+ * The profile that owns this asset. A profile is one brand/client; media is profile-owned so a scoped browser token stays safely confined to that brand — it can create/read media only under the profiles its token is scoped to, never reach another client’s assets. This is the tenancy boundary of the frontend-token model, so it is always required (it’s never inferable from the bytes).
3278
3824
  */
3279
3825
  profile_id: string;
3280
3826
  /**
3281
- * Asset family. The caller declares it; we validate.
3827
+ * Optional override of the asset family. Omit it and we auto-detect it from the uploaded bytes (file-type magic-number sniff). Provide it only to force a family — a provided value wins over detection.
3282
3828
  */
3283
- kind: 'image' | 'video' | 'gif' | 'document';
3829
+ kind?: 'image' | 'video' | 'gif' | 'document';
3284
3830
  /**
3285
- * MIME of the upload (required for the signed-upload flow). Accepts image*, video*, or a document MIME (PDF/DOC/DOCX/PPT/PPTX).
3831
+ * Optional hint/override of the MIME; auto-detected from the bytes when omitted. Accepts image*, video*, or a document MIME (PDF/DOC/DOCX/PPT/PPTX). Still required for a legacy Office binary (.doc/.ppt), which magic bytes can’t disambiguate.
3286
3832
  */
3287
3833
  content_type?: string;
3288
3834
  /**
3289
- * Reserved/unsupported in v1; supplying it returns SOURCE_URL_UNSUPPORTED. Use the signed upload target instead.
3835
+ * A public https URL to import the bytes from. When supplied, we fetch (SSRF-guarded), validate, transform, and store the media server-side — no signed upload target is returned (`upload` is null). Omit it to PUT the bytes to the signed upload target instead. The imported file must be 1 GB or smaller (a larger source is rejected with `media_too_large`).
3290
3836
  */
3291
3837
  source_url?: string;
3292
3838
  /**
@@ -3475,7 +4021,7 @@ type MediaCreateErrors = {
3475
4021
  /**
3476
4022
  * The machine-readable error code — branch on this. Narrowed to the codes this endpoint can return at this status.
3477
4023
  */
3478
- code: 'idempotency_key_reused' | 'source_url_unsupported';
4024
+ code: 'idempotency_key_reused';
3479
4025
  /**
3480
4026
  * An occurrence-specific, human-readable explanation.
3481
4027
  */
@@ -3524,14 +4070,21 @@ type MediaCreateResponses = {
3524
4070
  id: string;
3525
4071
  object: 'media';
3526
4072
  profile_id: string;
3527
- kind: 'image' | 'video' | 'gif' | 'document';
4073
+ /**
4074
+ * The detected asset family (image/video/gif/document). We sniff it from the uploaded bytes. null only in the brief pre-detection window while status is `uploading`; non-null once probed.
4075
+ */
4076
+ kind: 'image' | 'video' | 'gif' | 'document' | null;
4077
+ /**
4078
+ * The detected MIME of the uploaded original (e.g. video/mp4), sniffed from the bytes (or the value you provided as an override). null only in the brief pre-detection window while status is `uploading`.
4079
+ */
4080
+ content_type: string | null;
3528
4081
  status: 'uploading' | 'processing' | 'ready' | 'failed';
3529
4082
  raw: boolean;
3530
4083
  /**
3531
4084
  * Asset-wide failure (the original itself is unusable, so no platform can succeed); null otherwise.
3532
4085
  */
3533
4086
  error: {
3534
- code: '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' | 'document_format_unsupported' | 'document_too_large' | 'document_too_many_pages' | 'media_unsupported';
4087
+ code: 'media_unprobeable' | 'media_format_indeterminate' | '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_unsupported';
3535
4088
  message: string;
3536
4089
  hint?: string;
3537
4090
  allowed?: Array<string>;
@@ -3559,14 +4112,14 @@ type MediaCreateResponses = {
3559
4112
  height: number | null;
3560
4113
  bytes: number | null;
3561
4114
  warnings: Array<{
3562
- code: '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' | 'document_format_unsupported' | 'document_too_large' | 'document_too_many_pages' | 'media_unsupported';
4115
+ code: 'media_unprobeable' | 'media_format_indeterminate' | '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_unsupported';
3563
4116
  message: string;
3564
4117
  hint?: string;
3565
4118
  allowed?: Array<string>;
3566
4119
  got?: string;
3567
4120
  }>;
3568
4121
  errors: Array<{
3569
- code: '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' | 'document_format_unsupported' | 'document_too_large' | 'document_too_many_pages' | 'media_unsupported';
4122
+ code: 'media_unprobeable' | 'media_format_indeterminate' | '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_unsupported';
3570
4123
  message: string;
3571
4124
  hint?: string;
3572
4125
  allowed?: Array<string>;
@@ -4053,14 +4606,21 @@ type MediaGetResponses = {
4053
4606
  id: string;
4054
4607
  object: 'media';
4055
4608
  profile_id: string;
4056
- kind: 'image' | 'video' | 'gif' | 'document';
4609
+ /**
4610
+ * The detected asset family (image/video/gif/document). We sniff it from the uploaded bytes. null only in the brief pre-detection window while status is `uploading`; non-null once probed.
4611
+ */
4612
+ kind: 'image' | 'video' | 'gif' | 'document' | null;
4613
+ /**
4614
+ * The detected MIME of the uploaded original (e.g. video/mp4), sniffed from the bytes (or the value you provided as an override). null only in the brief pre-detection window while status is `uploading`.
4615
+ */
4616
+ content_type: string | null;
4057
4617
  status: 'uploading' | 'processing' | 'ready' | 'failed';
4058
4618
  raw: boolean;
4059
4619
  /**
4060
4620
  * Asset-wide failure (the original itself is unusable, so no platform can succeed); null otherwise.
4061
4621
  */
4062
4622
  error: {
4063
- code: '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' | 'document_format_unsupported' | 'document_too_large' | 'document_too_many_pages' | 'media_unsupported';
4623
+ code: 'media_unprobeable' | 'media_format_indeterminate' | '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_unsupported';
4064
4624
  message: string;
4065
4625
  hint?: string;
4066
4626
  allowed?: Array<string>;
@@ -4088,14 +4648,14 @@ type MediaGetResponses = {
4088
4648
  height: number | null;
4089
4649
  bytes: number | null;
4090
4650
  warnings: Array<{
4091
- code: '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' | 'document_format_unsupported' | 'document_too_large' | 'document_too_many_pages' | 'media_unsupported';
4651
+ code: 'media_unprobeable' | 'media_format_indeterminate' | '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_unsupported';
4092
4652
  message: string;
4093
4653
  hint?: string;
4094
4654
  allowed?: Array<string>;
4095
4655
  got?: string;
4096
4656
  }>;
4097
4657
  errors: Array<{
4098
- code: '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' | 'document_format_unsupported' | 'document_too_large' | 'document_too_many_pages' | 'media_unsupported';
4658
+ code: 'media_unprobeable' | 'media_format_indeterminate' | '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_unsupported';
4099
4659
  message: string;
4100
4660
  hint?: string;
4101
4661
  allowed?: Array<string>;
@@ -4359,14 +4919,21 @@ type MediaUpdateResponses = {
4359
4919
  id: string;
4360
4920
  object: 'media';
4361
4921
  profile_id: string;
4362
- kind: 'image' | 'video' | 'gif' | 'document';
4922
+ /**
4923
+ * The detected asset family (image/video/gif/document). We sniff it from the uploaded bytes. null only in the brief pre-detection window while status is `uploading`; non-null once probed.
4924
+ */
4925
+ kind: 'image' | 'video' | 'gif' | 'document' | null;
4926
+ /**
4927
+ * The detected MIME of the uploaded original (e.g. video/mp4), sniffed from the bytes (or the value you provided as an override). null only in the brief pre-detection window while status is `uploading`.
4928
+ */
4929
+ content_type: string | null;
4363
4930
  status: 'uploading' | 'processing' | 'ready' | 'failed';
4364
4931
  raw: boolean;
4365
4932
  /**
4366
4933
  * Asset-wide failure (the original itself is unusable, so no platform can succeed); null otherwise.
4367
4934
  */
4368
4935
  error: {
4369
- code: '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' | 'document_format_unsupported' | 'document_too_large' | 'document_too_many_pages' | 'media_unsupported';
4936
+ code: 'media_unprobeable' | 'media_format_indeterminate' | '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_unsupported';
4370
4937
  message: string;
4371
4938
  hint?: string;
4372
4939
  allowed?: Array<string>;
@@ -4394,14 +4961,14 @@ type MediaUpdateResponses = {
4394
4961
  height: number | null;
4395
4962
  bytes: number | null;
4396
4963
  warnings: Array<{
4397
- code: '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' | 'document_format_unsupported' | 'document_too_large' | 'document_too_many_pages' | 'media_unsupported';
4964
+ code: 'media_unprobeable' | 'media_format_indeterminate' | '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_unsupported';
4398
4965
  message: string;
4399
4966
  hint?: string;
4400
4967
  allowed?: Array<string>;
4401
4968
  got?: string;
4402
4969
  }>;
4403
4970
  errors: Array<{
4404
- code: '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' | 'document_format_unsupported' | 'document_too_large' | 'document_too_many_pages' | 'media_unsupported';
4971
+ code: 'media_unprobeable' | 'media_format_indeterminate' | '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_unsupported';
4405
4972
  message: string;
4406
4973
  hint?: string;
4407
4974
  allowed?: Array<string>;
@@ -5131,6 +5698,78 @@ type PostsCreateData = {
5131
5698
  */
5132
5699
  link?: string;
5133
5700
  };
5701
+ } | {
5702
+ platform: 'tiktok';
5703
+ post_type: 'video' | 'single_image' | 'carousel';
5704
+ /**
5705
+ * The connected account this variant publishes to.
5706
+ */
5707
+ connection_id: string;
5708
+ /**
5709
+ * Caption / commentary / message for the post.
5710
+ */
5711
+ body?: string;
5712
+ /**
5713
+ * Ordered media references; the count drives the post-type rules.
5714
+ */
5715
+ media?: Array<{
5716
+ media_id: string;
5717
+ /**
5718
+ * Per-variant crop applied at publish; omit for none.
5719
+ */
5720
+ crop_box?: {
5721
+ [key: string]: unknown;
5722
+ } | null;
5723
+ /**
5724
+ * Per-variant alt text; falls back to the asset's.
5725
+ */
5726
+ alt_text_override?: string | null;
5727
+ }>;
5728
+ /**
5729
+ * TikTok organic post settings (Direct Post: video + photo).
5730
+ */
5731
+ settings?: {
5732
+ /**
5733
+ * Audience for the post. The per-account allowed set is returned by creator_info at publish; an out-of-set value is rejected then. Unaudited apps may only use SELF_ONLY.
5734
+ */
5735
+ privacy_level?: 'PUBLIC_TO_EVERYONE' | 'MUTUAL_FOLLOW_FRIENDS' | 'FOLLOWER_OF_CREATOR' | 'SELF_ONLY';
5736
+ /**
5737
+ * Disable comments on this post.
5738
+ */
5739
+ disable_comment?: boolean;
5740
+ /**
5741
+ * Disable Duet (video only).
5742
+ */
5743
+ disable_duet?: boolean;
5744
+ /**
5745
+ * Disable Stitch (video only).
5746
+ */
5747
+ disable_stitch?: boolean;
5748
+ /**
5749
+ * Video cover frame offset (ms). Video posts only.
5750
+ */
5751
+ video_cover_timestamp_ms?: number;
5752
+ /**
5753
+ * Which carousel image is the cover (0-based index into the ordered image list). Photo posts only.
5754
+ */
5755
+ photo_cover_index?: number;
5756
+ /**
5757
+ * Auto-add a TikTok soundtrack. Photo posts only.
5758
+ */
5759
+ auto_add_music?: boolean;
5760
+ /**
5761
+ * Disclose a paid partnership (branded content).
5762
+ */
5763
+ brand_content_toggle?: boolean;
5764
+ /**
5765
+ * Disclose own-brand promotional content.
5766
+ */
5767
+ brand_organic_toggle?: boolean;
5768
+ /**
5769
+ * Disclose AI-generated content. Video posts only.
5770
+ */
5771
+ is_aigc?: boolean;
5772
+ };
5134
5773
  }>;
5135
5774
  };
5136
5775
  path?: never;
@@ -6292,6 +6931,78 @@ type PostsUpdateData = {
6292
6931
  */
6293
6932
  link?: string;
6294
6933
  };
6934
+ } | {
6935
+ platform: 'tiktok';
6936
+ post_type: 'video' | 'single_image' | 'carousel';
6937
+ /**
6938
+ * The connected account this variant publishes to.
6939
+ */
6940
+ connection_id: string;
6941
+ /**
6942
+ * Caption / commentary / message for the post.
6943
+ */
6944
+ body?: string;
6945
+ /**
6946
+ * Ordered media references; the count drives the post-type rules.
6947
+ */
6948
+ media?: Array<{
6949
+ media_id: string;
6950
+ /**
6951
+ * Per-variant crop applied at publish; omit for none.
6952
+ */
6953
+ crop_box?: {
6954
+ [key: string]: unknown;
6955
+ } | null;
6956
+ /**
6957
+ * Per-variant alt text; falls back to the asset's.
6958
+ */
6959
+ alt_text_override?: string | null;
6960
+ }>;
6961
+ /**
6962
+ * TikTok organic post settings (Direct Post: video + photo).
6963
+ */
6964
+ settings?: {
6965
+ /**
6966
+ * Audience for the post. The per-account allowed set is returned by creator_info at publish; an out-of-set value is rejected then. Unaudited apps may only use SELF_ONLY.
6967
+ */
6968
+ privacy_level?: 'PUBLIC_TO_EVERYONE' | 'MUTUAL_FOLLOW_FRIENDS' | 'FOLLOWER_OF_CREATOR' | 'SELF_ONLY';
6969
+ /**
6970
+ * Disable comments on this post.
6971
+ */
6972
+ disable_comment?: boolean;
6973
+ /**
6974
+ * Disable Duet (video only).
6975
+ */
6976
+ disable_duet?: boolean;
6977
+ /**
6978
+ * Disable Stitch (video only).
6979
+ */
6980
+ disable_stitch?: boolean;
6981
+ /**
6982
+ * Video cover frame offset (ms). Video posts only.
6983
+ */
6984
+ video_cover_timestamp_ms?: number;
6985
+ /**
6986
+ * Which carousel image is the cover (0-based index into the ordered image list). Photo posts only.
6987
+ */
6988
+ photo_cover_index?: number;
6989
+ /**
6990
+ * Auto-add a TikTok soundtrack. Photo posts only.
6991
+ */
6992
+ auto_add_music?: boolean;
6993
+ /**
6994
+ * Disclose a paid partnership (branded content).
6995
+ */
6996
+ brand_content_toggle?: boolean;
6997
+ /**
6998
+ * Disclose own-brand promotional content.
6999
+ */
7000
+ brand_organic_toggle?: boolean;
7001
+ /**
7002
+ * Disclose AI-generated content. Video posts only.
7003
+ */
7004
+ is_aigc?: boolean;
7005
+ };
6295
7006
  }>;
6296
7007
  };
6297
7008
  path: {
@@ -22222,7 +22933,7 @@ type TokensMintErrors = {
22222
22933
  /**
22223
22934
  * The machine-readable error code — branch on this. Narrowed to the codes this endpoint can return at this status.
22224
22935
  */
22225
- code: 'idempotency_key_reused';
22936
+ code: 'idempotency_key_reused' | 'profile_scope_invalid';
22226
22937
  /**
22227
22938
  * An occurrence-specific, human-readable explanation.
22228
22939
  */
@@ -22280,4 +22991,4 @@ type TokensMintResponses = {
22280
22991
  };
22281
22992
  type TokensMintResponse = TokensMintResponses[keyof TokensMintResponses];
22282
22993
 
22283
- export { type GoogleDeleteCampaignData as $, type GoogleCreateBudgetErrors as A, type GoogleCreateCampaignData as B, type Client as C, type GoogleCreateCampaignResponses as D, type GoogleCreateCampaignErrors as E, type GoogleCreateConversionActionData as F, type GoogleCreateAdData as G, type GoogleCreateConversionActionResponses as H, type GoogleCreateConversionActionErrors as I, type GoogleCreateDisplayAdData as J, type GoogleCreateDisplayAdResponses as K, type GoogleCreateDisplayAdErrors as L, type GoogleCreateKeywordData as M, type GoogleCreateKeywordResponses as N, type Options as O, type GoogleCreateKeywordErrors as P, type GoogleDeleteAdData as Q, type RequestResult as R, type GoogleDeleteAdResponses as S, type TDataShape as T, type GoogleDeleteAdErrors as U, type GoogleDeleteAdGroupData as V, type GoogleDeleteAdGroupResponses as W, type GoogleDeleteAdGroupErrors as X, type GoogleDeleteBudgetData as Y, type GoogleDeleteBudgetResponses as Z, type GoogleDeleteBudgetErrors as _, type ClientMeta as a, type GoogleListKeywordsResponses as a$, type GoogleDeleteCampaignResponses as a0, type GoogleDeleteCampaignErrors as a1, type GoogleDeleteKeywordData as a2, type GoogleDeleteKeywordResponses as a3, type GoogleDeleteKeywordErrors as a4, type GoogleEditAdGroupData as a5, type GoogleEditAdGroupResponses as a6, type GoogleEditAdGroupErrors as a7, type GoogleEditBudgetData as a8, type GoogleEditBudgetResponses as a9, type GoogleGetCampaignResponses as aA, type GoogleGetCampaignErrors as aB, type GoogleGetConversionActionData as aC, type GoogleGetConversionActionResponses as aD, type GoogleGetConversionActionErrors as aE, type GoogleGetInsightsData as aF, type GoogleGetInsightsResponses as aG, type GoogleGetInsightsErrors as aH, type GoogleGetKeywordData as aI, type GoogleGetKeywordResponses as aJ, type GoogleGetKeywordErrors as aK, type GoogleListAdGroupsData as aL, type GoogleListAdGroupsResponses as aM, type GoogleListAdGroupsErrors as aN, type GoogleListAdsData as aO, type GoogleListAdsResponses as aP, type GoogleListAdsErrors as aQ, type GoogleListCampaignsData as aR, type GoogleListCampaignsResponses as aS, type GoogleListCampaignsErrors as aT, type GoogleListConversionActionsData as aU, type GoogleListConversionActionsResponses as aV, type GoogleListConversionActionsErrors as aW, type GoogleListConversionGoalsData as aX, type GoogleListConversionGoalsResponses as aY, type GoogleListConversionGoalsErrors as aZ, type GoogleListKeywordsData as a_, type GoogleEditBudgetErrors as aa, type GoogleEditCampaignData as ab, type GoogleEditCampaignResponses as ac, type GoogleEditCampaignErrors as ad, type GoogleEnableAdData as ae, type GoogleEnableAdResponses as af, type GoogleEnableAdErrors as ag, type GoogleEnableAdGroupData as ah, type GoogleEnableAdGroupResponses as ai, type GoogleEnableAdGroupErrors as aj, type GoogleEnableCampaignData as ak, type GoogleEnableCampaignResponses as al, type GoogleEnableCampaignErrors as am, type GoogleEnableKeywordData as an, type GoogleEnableKeywordResponses as ao, type GoogleEnableKeywordErrors as ap, type GoogleGetAccountData as aq, type GoogleGetAccountResponses as ar, type GoogleGetAccountErrors as as, type GoogleGetAdData as at, type GoogleGetAdResponses as au, type GoogleGetAdErrors as av, type GoogleGetAdGroupData as aw, type GoogleGetAdGroupResponses as ax, type GoogleGetAdGroupErrors as ay, type GoogleGetCampaignData as az, type ConnectionsConnectData as b, type MetaAdsetsErrors as b$, type GoogleListKeywordsErrors as b0, type GooglePauseAdData as b1, type GooglePauseAdResponses as b2, type GooglePauseAdErrors as b3, type GooglePauseAdGroupData as b4, type GooglePauseAdGroupResponses as b5, type GooglePauseAdGroupErrors as b6, type GooglePauseCampaignData as b7, type GooglePauseCampaignResponses as b8, type GooglePauseCampaignErrors as b9, type LogsListErrors as bA, type MediaCreateData as bB, type MediaCreateResponses as bC, type MediaCreateErrors as bD, type MediaDeleteData as bE, type MediaDeleteResponses as bF, type MediaDeleteErrors as bG, type MediaGetData as bH, type MediaGetResponses as bI, type MediaGetErrors as bJ, type MediaUpdateData as bK, type MediaUpdateResponses as bL, type MediaUpdateErrors as bM, type MetaAccountData as bN, type MetaAccountResponses as bO, type MetaAccountErrors as bP, type MetaAdData as bQ, type MetaAdResponses as bR, type MetaAdErrors as bS, type MetaAdsData as bT, type MetaAdsResponses as bU, type MetaAdsErrors as bV, type MetaAdsetData as bW, type MetaAdsetResponses as bX, type MetaAdsetErrors as bY, type MetaAdsetsData as bZ, type MetaAdsetsResponses as b_, type GooglePauseKeywordData as ba, type GooglePauseKeywordResponses as bb, type GooglePauseKeywordErrors as bc, type GoogleRunGaqlData as bd, type GoogleRunGaqlResponses as be, type GoogleRunGaqlErrors as bf, type GoogleSetAdGroupBidsData as bg, type GoogleSetAdGroupBidsResponses as bh, type GoogleSetAdGroupBidsErrors as bi, type GoogleSetConversionGoalData as bj, type GoogleSetConversionGoalResponses as bk, type GoogleSetConversionGoalErrors as bl, type GoogleSetKeywordBidData as bm, type GoogleSetKeywordBidResponses as bn, type GoogleSetKeywordBidErrors as bo, type GoogleUploadConversionsData as bp, type GoogleUploadConversionsResponses as bq, type GoogleUploadConversionsErrors as br, type GoogleUploadImageAssetData as bs, type GoogleUploadImageAssetResponses as bt, type GoogleUploadImageAssetErrors as bu, type LogsGetData as bv, type LogsGetResponses as bw, type LogsGetErrors as bx, type LogsListData as by, type LogsListResponses as bz, type ConnectionsConnectResponses as c, type WebhooksUpdateEndpointData as c$, type MetaCampaignData as c0, type MetaCampaignResponses as c1, type MetaCampaignErrors as c2, type MetaCampaignsData as c3, type MetaCampaignsResponses as c4, type MetaCampaignsErrors as c5, type MetaInsightsData as c6, type MetaInsightsResponses as c7, type MetaInsightsErrors as c8, type PostsCreateData as c9, type ProfilesUpdateData as cA, type ProfilesUpdateResponses as cB, type ProfilesUpdateErrors as cC, type TokensMintData as cD, type TokensMintResponses as cE, type TokensMintErrors as cF, type WebhooksCreateEndpointData as cG, type WebhooksCreateEndpointResponses as cH, type WebhooksCreateEndpointErrors as cI, type WebhooksCreatePortalData as cJ, type WebhooksCreatePortalResponses as cK, type WebhooksCreatePortalErrors as cL, type WebhooksDeleteEndpointData as cM, type WebhooksDeleteEndpointResponses as cN, type WebhooksDeleteEndpointErrors as cO, type WebhooksGetEndpointData as cP, type WebhooksGetEndpointResponses as cQ, type WebhooksGetEndpointErrors as cR, type WebhooksListEndpointsData as cS, type WebhooksListEndpointsResponses as cT, type WebhooksListEndpointsErrors as cU, type WebhooksListEventTypesData as cV, type WebhooksListEventTypesResponses as cW, type WebhooksListEventTypesErrors as cX, type WebhooksPingData as cY, type WebhooksPingResponses as cZ, type WebhooksPingErrors as c_, type PostsCreateResponses as ca, type PostsCreateErrors as cb, type PostsDeleteData as cc, type PostsDeleteResponses as cd, type PostsDeleteErrors as ce, type PostsGetData as cf, type PostsGetResponses as cg, type PostsGetErrors as ch, type PostsListData as ci, type PostsListResponses as cj, type PostsListErrors as ck, type PostsUpdateData as cl, type PostsUpdateResponses as cm, type PostsUpdateErrors as cn, type ProfilesCreateData as co, type ProfilesCreateResponses as cp, type ProfilesCreateErrors as cq, type ProfilesDeleteData as cr, type ProfilesDeleteResponses as cs, type ProfilesDeleteErrors as ct, type ProfilesGetData as cu, type ProfilesGetResponses as cv, type ProfilesGetErrors as cw, type ProfilesListData as cx, type ProfilesListResponses as cy, type ProfilesListErrors as cz, type ConnectionsConnectErrors as d, type GoogleGetAdError as d$, type WebhooksUpdateEndpointResponses as d0, type WebhooksUpdateEndpointErrors as d1, type ErrorCode as d2, type MediaGetResponse as d3, type ConnectionsConnectResponse as d4, type ConnectionsGetResponse as d5, type ConnectionsListByProfileResponse as d6, type MediaCreateResponse as d7, type ConnectionsListAccountsResponse as d8, type PostsGetResponse as d9, type GoogleCreateKeywordResponse as dA, type GoogleDeleteAdError as dB, type GoogleDeleteAdGroupError as dC, type GoogleDeleteAdGroupResponse as dD, type GoogleDeleteAdResponse as dE, type GoogleDeleteBudgetError as dF, type GoogleDeleteBudgetResponse as dG, type GoogleDeleteCampaignError as dH, type GoogleDeleteCampaignResponse as dI, type GoogleDeleteKeywordError as dJ, type GoogleDeleteKeywordResponse as dK, type GoogleEditAdGroupError as dL, type GoogleEditAdGroupResponse as dM, type GoogleEditBudgetError as dN, type GoogleEditBudgetResponse as dO, type GoogleEditCampaignError as dP, type GoogleEditCampaignResponse as dQ, type GoogleEnableAdError as dR, type GoogleEnableAdGroupError as dS, type GoogleEnableAdGroupResponse as dT, type GoogleEnableAdResponse as dU, type GoogleEnableCampaignError as dV, type GoogleEnableCampaignResponse as dW, type GoogleEnableKeywordError as dX, type GoogleEnableKeywordResponse as dY, type GoogleGetAccountError as dZ, type GoogleGetAccountResponse as d_, type PostsListResponse as da, type ProfilesGetResponse as db, type ProfilesListResponse as dc, type ClientOptions as dd, type ConnectionsConnectError as de, type ConnectionsDeleteError as df, type ConnectionsDeleteResponse as dg, type ConnectionsGetError as dh, type ConnectionsListAccountsError as di, type ConnectionsListByProfileError as dj, type ConnectionsSelectError as dk, type ConnectionsSelectResponse as dl, type GoogleCreateAdError as dm, type GoogleCreateAdGroupError as dn, type GoogleCreateAdGroupResponse as dp, type GoogleCreateAdResponse as dq, type GoogleCreateBudgetError as dr, type GoogleCreateBudgetResponse as ds, type GoogleCreateCampaignError as dt, type GoogleCreateCampaignResponse as du, type GoogleCreateConversionActionError as dv, type GoogleCreateConversionActionResponse as dw, type GoogleCreateDisplayAdError as dx, type GoogleCreateDisplayAdResponse as dy, type GoogleCreateKeywordError as dz, type ConnectionsDeleteData as e, type MetaCampaignError as e$, type GoogleGetAdGroupError as e0, type GoogleGetAdGroupResponse as e1, type GoogleGetAdResponse as e2, type GoogleGetCampaignError as e3, type GoogleGetCampaignResponse as e4, type GoogleGetConversionActionError as e5, type GoogleGetConversionActionResponse as e6, type GoogleGetInsightsError as e7, type GoogleGetInsightsResponse as e8, type GoogleGetKeywordError as e9, type GoogleSetConversionGoalResponse as eA, type GoogleSetKeywordBidError as eB, type GoogleSetKeywordBidResponse as eC, type GoogleUploadConversionsError as eD, type GoogleUploadConversionsResponse as eE, type GoogleUploadImageAssetError as eF, type GoogleUploadImageAssetResponse as eG, type LogsGetError as eH, type LogsGetResponse as eI, type LogsListError as eJ, type LogsListResponse as eK, type MediaCreateError as eL, type MediaDeleteError as eM, type MediaDeleteResponse as eN, type MediaGetError as eO, type MediaUpdateError as eP, type MediaUpdateResponse as eQ, type MetaAccountError as eR, type MetaAccountResponse as eS, type MetaAdError as eT, type MetaAdResponse as eU, type MetaAdsError as eV, type MetaAdsResponse as eW, type MetaAdsetError as eX, type MetaAdsetResponse as eY, type MetaAdsetsError as eZ, type MetaAdsetsResponse as e_, type GoogleGetKeywordResponse as ea, type GoogleListAdGroupsError as eb, type GoogleListAdGroupsResponse as ec, type GoogleListAdsError as ed, type GoogleListAdsResponse as ee, type GoogleListCampaignsError as ef, type GoogleListCampaignsResponse as eg, type GoogleListConversionActionsError as eh, type GoogleListConversionActionsResponse as ei, type GoogleListConversionGoalsError as ej, type GoogleListConversionGoalsResponse as ek, type GoogleListKeywordsError as el, type GoogleListKeywordsResponse as em, type GooglePauseAdError as en, type GooglePauseAdGroupError as eo, type GooglePauseAdGroupResponse as ep, type GooglePauseAdResponse as eq, type GooglePauseCampaignError as er, type GooglePauseCampaignResponse as es, type GooglePauseKeywordError as et, type GooglePauseKeywordResponse as eu, type GoogleRunGaqlError as ev, type GoogleRunGaqlResponse as ew, type GoogleSetAdGroupBidsError as ex, type GoogleSetAdGroupBidsResponse as ey, type GoogleSetConversionGoalError as ez, type ConnectionsDeleteResponses as f, type MetaCampaignResponse as f0, type MetaCampaignsError as f1, type MetaCampaignsResponse as f2, type MetaInsightsError as f3, type MetaInsightsResponse as f4, type PostrunClient as f5, type PostrunClientOptions as f6, type PostsCreateError as f7, type PostsCreateResponse as f8, type PostsDeleteError as f9, type WebhooksListEventTypesResponse as fA, type WebhooksPingError as fB, type WebhooksPingResponse as fC, type WebhooksUpdateEndpointError as fD, type WebhooksUpdateEndpointResponse as fE, createPostrunClient as fF, type PostsDeleteResponse as fa, type PostsGetError as fb, type PostsListError as fc, type PostsUpdateError as fd, type PostsUpdateResponse as fe, type ProfilesCreateError as ff, type ProfilesCreateResponse as fg, type ProfilesDeleteError as fh, type ProfilesDeleteResponse as fi, type ProfilesGetError as fj, type ProfilesListError as fk, type ProfilesUpdateError as fl, type ProfilesUpdateResponse as fm, type TokensMintError as fn, type TokensMintResponse as fo, type WebhooksCreateEndpointError as fp, type WebhooksCreateEndpointResponse as fq, type WebhooksCreatePortalError as fr, type WebhooksCreatePortalResponse as fs, type WebhooksDeleteEndpointError as ft, type WebhooksDeleteEndpointResponse as fu, type WebhooksGetEndpointError as fv, type WebhooksGetEndpointResponse as fw, type WebhooksListEndpointsError as fx, type WebhooksListEndpointsResponse as fy, type WebhooksListEventTypesError as fz, type ConnectionsDeleteErrors as g, type ConnectionsGetData as h, type ConnectionsGetResponses as i, type ConnectionsGetErrors as j, type ConnectionsListAccountsData as k, type ConnectionsListAccountsResponses as l, type ConnectionsListAccountsErrors as m, type ConnectionsListByProfileData as n, type ConnectionsListByProfileResponses as o, type ConnectionsListByProfileErrors as p, type ConnectionsSelectData as q, type ConnectionsSelectResponses as r, type ConnectionsSelectErrors as s, type GoogleCreateAdResponses as t, type GoogleCreateAdErrors as u, type GoogleCreateAdGroupData as v, type GoogleCreateAdGroupResponses as w, type GoogleCreateAdGroupErrors as x, type GoogleCreateBudgetData as y, type GoogleCreateBudgetResponses as z };
22994
+ export { type GoogleDeleteCampaignData as $, type GoogleCreateBudgetErrors as A, type GoogleCreateCampaignData as B, type Client as C, type GoogleCreateCampaignResponses as D, type GoogleCreateCampaignErrors as E, type GoogleCreateConversionActionData as F, type GoogleCreateAdData as G, type GoogleCreateConversionActionResponses as H, type GoogleCreateConversionActionErrors as I, type GoogleCreateDisplayAdData as J, type GoogleCreateDisplayAdResponses as K, type GoogleCreateDisplayAdErrors as L, type GoogleCreateKeywordData as M, type GoogleCreateKeywordResponses as N, type Options as O, type GoogleCreateKeywordErrors as P, type GoogleDeleteAdData as Q, type RequestResult as R, type GoogleDeleteAdResponses as S, type TDataShape as T, type GoogleDeleteAdErrors as U, type GoogleDeleteAdGroupData as V, type GoogleDeleteAdGroupResponses as W, type GoogleDeleteAdGroupErrors as X, type GoogleDeleteBudgetData as Y, type GoogleDeleteBudgetResponses as Z, type GoogleDeleteBudgetErrors as _, type ClientMeta as a, type GoogleListKeywordsResponses as a$, type GoogleDeleteCampaignResponses as a0, type GoogleDeleteCampaignErrors as a1, type GoogleDeleteKeywordData as a2, type GoogleDeleteKeywordResponses as a3, type GoogleDeleteKeywordErrors as a4, type GoogleEditAdGroupData as a5, type GoogleEditAdGroupResponses as a6, type GoogleEditAdGroupErrors as a7, type GoogleEditBudgetData as a8, type GoogleEditBudgetResponses as a9, type GoogleGetCampaignResponses as aA, type GoogleGetCampaignErrors as aB, type GoogleGetConversionActionData as aC, type GoogleGetConversionActionResponses as aD, type GoogleGetConversionActionErrors as aE, type GoogleGetInsightsData as aF, type GoogleGetInsightsResponses as aG, type GoogleGetInsightsErrors as aH, type GoogleGetKeywordData as aI, type GoogleGetKeywordResponses as aJ, type GoogleGetKeywordErrors as aK, type GoogleListAdGroupsData as aL, type GoogleListAdGroupsResponses as aM, type GoogleListAdGroupsErrors as aN, type GoogleListAdsData as aO, type GoogleListAdsResponses as aP, type GoogleListAdsErrors as aQ, type GoogleListCampaignsData as aR, type GoogleListCampaignsResponses as aS, type GoogleListCampaignsErrors as aT, type GoogleListConversionActionsData as aU, type GoogleListConversionActionsResponses as aV, type GoogleListConversionActionsErrors as aW, type GoogleListConversionGoalsData as aX, type GoogleListConversionGoalsResponses as aY, type GoogleListConversionGoalsErrors as aZ, type GoogleListKeywordsData as a_, type GoogleEditBudgetErrors as aa, type GoogleEditCampaignData as ab, type GoogleEditCampaignResponses as ac, type GoogleEditCampaignErrors as ad, type GoogleEnableAdData as ae, type GoogleEnableAdResponses as af, type GoogleEnableAdErrors as ag, type GoogleEnableAdGroupData as ah, type GoogleEnableAdGroupResponses as ai, type GoogleEnableAdGroupErrors as aj, type GoogleEnableCampaignData as ak, type GoogleEnableCampaignResponses as al, type GoogleEnableCampaignErrors as am, type GoogleEnableKeywordData as an, type GoogleEnableKeywordResponses as ao, type GoogleEnableKeywordErrors as ap, type GoogleGetAccountData as aq, type GoogleGetAccountResponses as ar, type GoogleGetAccountErrors as as, type GoogleGetAdData as at, type GoogleGetAdResponses as au, type GoogleGetAdErrors as av, type GoogleGetAdGroupData as aw, type GoogleGetAdGroupResponses as ax, type GoogleGetAdGroupErrors as ay, type GoogleGetCampaignData as az, type ConnectionsConnectData as b, type MetaAdsetErrors as b$, type GoogleListKeywordsErrors as b0, type GooglePauseAdData as b1, type GooglePauseAdResponses as b2, type GooglePauseAdErrors as b3, type GooglePauseAdGroupData as b4, type GooglePauseAdGroupResponses as b5, type GooglePauseAdGroupErrors as b6, type GooglePauseCampaignData as b7, type GooglePauseCampaignResponses as b8, type GooglePauseCampaignErrors as b9, type LogsListErrors as bA, type MediaCreateData as bB, type MediaCreateResponses as bC, type MediaCreateErrors as bD, type MediaDeleteData as bE, type MediaDeleteResponses as bF, type MediaDeleteErrors as bG, type MediaGetData as bH, type MediaGetResponses as bI, type MediaGetErrors as bJ, type MediaListData as bK, type MediaListResponses as bL, type MediaListErrors as bM, type MediaUpdateData as bN, type MediaUpdateResponses as bO, type MediaUpdateErrors as bP, type MetaAccountData as bQ, type MetaAccountResponses as bR, type MetaAccountErrors as bS, type MetaAdData as bT, type MetaAdResponses as bU, type MetaAdErrors as bV, type MetaAdsData as bW, type MetaAdsResponses as bX, type MetaAdsErrors as bY, type MetaAdsetData as bZ, type MetaAdsetResponses as b_, type GooglePauseKeywordData as ba, type GooglePauseKeywordResponses as bb, type GooglePauseKeywordErrors as bc, type GoogleRunGaqlData as bd, type GoogleRunGaqlResponses as be, type GoogleRunGaqlErrors as bf, type GoogleSetAdGroupBidsData as bg, type GoogleSetAdGroupBidsResponses as bh, type GoogleSetAdGroupBidsErrors as bi, type GoogleSetConversionGoalData as bj, type GoogleSetConversionGoalResponses as bk, type GoogleSetConversionGoalErrors as bl, type GoogleSetKeywordBidData as bm, type GoogleSetKeywordBidResponses as bn, type GoogleSetKeywordBidErrors as bo, type GoogleUploadConversionsData as bp, type GoogleUploadConversionsResponses as bq, type GoogleUploadConversionsErrors as br, type GoogleUploadImageAssetData as bs, type GoogleUploadImageAssetResponses as bt, type GoogleUploadImageAssetErrors as bu, type LogsGetData as bv, type LogsGetResponses as bw, type LogsGetErrors as bx, type LogsListData as by, type LogsListResponses as bz, type ConnectionsConnectResponses as c, type WebhooksPingData as c$, type MetaAdsetsData as c0, type MetaAdsetsResponses as c1, type MetaAdsetsErrors as c2, type MetaCampaignData as c3, type MetaCampaignResponses as c4, type MetaCampaignErrors as c5, type MetaCampaignsData as c6, type MetaCampaignsResponses as c7, type MetaCampaignsErrors as c8, type MetaInsightsData as c9, type ProfilesListData as cA, type ProfilesListResponses as cB, type ProfilesListErrors as cC, type ProfilesUpdateData as cD, type ProfilesUpdateResponses as cE, type ProfilesUpdateErrors as cF, type TokensMintData as cG, type TokensMintResponses as cH, type TokensMintErrors as cI, type WebhooksCreateEndpointData as cJ, type WebhooksCreateEndpointResponses as cK, type WebhooksCreateEndpointErrors as cL, type WebhooksCreatePortalData as cM, type WebhooksCreatePortalResponses as cN, type WebhooksCreatePortalErrors as cO, type WebhooksDeleteEndpointData as cP, type WebhooksDeleteEndpointResponses as cQ, type WebhooksDeleteEndpointErrors as cR, type WebhooksGetEndpointData as cS, type WebhooksGetEndpointResponses as cT, type WebhooksGetEndpointErrors as cU, type WebhooksListEndpointsData as cV, type WebhooksListEndpointsResponses as cW, type WebhooksListEndpointsErrors as cX, type WebhooksListEventTypesData as cY, type WebhooksListEventTypesResponses as cZ, type WebhooksListEventTypesErrors as c_, type MetaInsightsResponses as ca, type MetaInsightsErrors as cb, type PostsCreateData as cc, type PostsCreateResponses as cd, type PostsCreateErrors as ce, type PostsDeleteData as cf, type PostsDeleteResponses as cg, type PostsDeleteErrors as ch, type PostsGetData as ci, type PostsGetResponses as cj, type PostsGetErrors as ck, type PostsListData as cl, type PostsListResponses as cm, type PostsListErrors as cn, type PostsUpdateData as co, type PostsUpdateResponses as cp, type PostsUpdateErrors as cq, type ProfilesCreateData as cr, type ProfilesCreateResponses as cs, type ProfilesCreateErrors as ct, type ProfilesDeleteData as cu, type ProfilesDeleteResponses as cv, type ProfilesDeleteErrors as cw, type ProfilesGetData as cx, type ProfilesGetResponses as cy, type ProfilesGetErrors as cz, type ConnectionsConnectErrors as d, type GoogleEnableKeywordError as d$, type WebhooksPingResponses as d0, type WebhooksPingErrors as d1, type WebhooksUpdateEndpointData as d2, type WebhooksUpdateEndpointResponses as d3, type WebhooksUpdateEndpointErrors as d4, type ErrorCode as d5, type MediaGetResponse as d6, type ConnectionsConnectResponse as d7, type ConnectionsGetResponse as d8, type ConnectionsListByProfileResponse as d9, type GoogleCreateConversionActionResponse as dA, type GoogleCreateDisplayAdError as dB, type GoogleCreateDisplayAdResponse as dC, type GoogleCreateKeywordError as dD, type GoogleCreateKeywordResponse as dE, type GoogleDeleteAdError as dF, type GoogleDeleteAdGroupError as dG, type GoogleDeleteAdGroupResponse as dH, type GoogleDeleteAdResponse as dI, type GoogleDeleteBudgetError as dJ, type GoogleDeleteBudgetResponse as dK, type GoogleDeleteCampaignError as dL, type GoogleDeleteCampaignResponse as dM, type GoogleDeleteKeywordError as dN, type GoogleDeleteKeywordResponse as dO, type GoogleEditAdGroupError as dP, type GoogleEditAdGroupResponse as dQ, type GoogleEditBudgetError as dR, type GoogleEditBudgetResponse as dS, type GoogleEditCampaignError as dT, type GoogleEditCampaignResponse as dU, type GoogleEnableAdError as dV, type GoogleEnableAdGroupError as dW, type GoogleEnableAdGroupResponse as dX, type GoogleEnableAdResponse as dY, type GoogleEnableCampaignError as dZ, type GoogleEnableCampaignResponse as d_, type MediaCreateResponse as da, type ConnectionsListAccountsResponse as db, type MediaListResponse as dc, type PostsGetResponse as dd, type PostsListResponse as de, type ProfilesGetResponse as df, type ProfilesListResponse as dg, type ClientOptions as dh, type ConnectionsConnectError as di, type ConnectionsDeleteError as dj, type ConnectionsDeleteResponse as dk, type ConnectionsGetError as dl, type ConnectionsListAccountsError as dm, type ConnectionsListByProfileError as dn, type ConnectionsSelectError as dp, type ConnectionsSelectResponse as dq, type GoogleCreateAdError as dr, type GoogleCreateAdGroupError as ds, type GoogleCreateAdGroupResponse as dt, type GoogleCreateAdResponse as du, type GoogleCreateBudgetError as dv, type GoogleCreateBudgetResponse as dw, type GoogleCreateCampaignError as dx, type GoogleCreateCampaignResponse as dy, type GoogleCreateConversionActionError as dz, type ConnectionsDeleteData as e, type MetaAdsResponse as e$, type GoogleEnableKeywordResponse as e0, type GoogleGetAccountError as e1, type GoogleGetAccountResponse as e2, type GoogleGetAdError as e3, type GoogleGetAdGroupError as e4, type GoogleGetAdGroupResponse as e5, type GoogleGetAdResponse as e6, type GoogleGetCampaignError as e7, type GoogleGetCampaignResponse as e8, type GoogleGetConversionActionError as e9, type GoogleRunGaqlResponse as eA, type GoogleSetAdGroupBidsError as eB, type GoogleSetAdGroupBidsResponse as eC, type GoogleSetConversionGoalError as eD, type GoogleSetConversionGoalResponse as eE, type GoogleSetKeywordBidError as eF, type GoogleSetKeywordBidResponse as eG, type GoogleUploadConversionsError as eH, type GoogleUploadConversionsResponse as eI, type GoogleUploadImageAssetError as eJ, type GoogleUploadImageAssetResponse as eK, type LogsGetError as eL, type LogsGetResponse as eM, type LogsListError as eN, type LogsListResponse as eO, type MediaCreateError as eP, type MediaDeleteError as eQ, type MediaDeleteResponse as eR, type MediaGetError as eS, type MediaListError as eT, type MediaUpdateError as eU, type MediaUpdateResponse as eV, type MetaAccountError as eW, type MetaAccountResponse as eX, type MetaAdError as eY, type MetaAdResponse as eZ, type MetaAdsError as e_, type GoogleGetConversionActionResponse as ea, type GoogleGetInsightsError as eb, type GoogleGetInsightsResponse as ec, type GoogleGetKeywordError as ed, type GoogleGetKeywordResponse as ee, type GoogleListAdGroupsError as ef, type GoogleListAdGroupsResponse as eg, type GoogleListAdsError as eh, type GoogleListAdsResponse as ei, type GoogleListCampaignsError as ej, type GoogleListCampaignsResponse as ek, type GoogleListConversionActionsError as el, type GoogleListConversionActionsResponse as em, type GoogleListConversionGoalsError as en, type GoogleListConversionGoalsResponse as eo, type GoogleListKeywordsError as ep, type GoogleListKeywordsResponse as eq, type GooglePauseAdError as er, type GooglePauseAdGroupError as es, type GooglePauseAdGroupResponse as et, type GooglePauseAdResponse as eu, type GooglePauseCampaignError as ev, type GooglePauseCampaignResponse as ew, type GooglePauseKeywordError as ex, type GooglePauseKeywordResponse as ey, type GoogleRunGaqlError as ez, type ConnectionsDeleteResponses as f, type MetaAdsetError as f0, type MetaAdsetResponse as f1, type MetaAdsetsError as f2, type MetaAdsetsResponse as f3, type MetaCampaignError as f4, type MetaCampaignResponse as f5, type MetaCampaignsError as f6, type MetaCampaignsResponse as f7, type MetaInsightsError as f8, type MetaInsightsResponse as f9, type WebhooksGetEndpointError as fA, type WebhooksGetEndpointResponse as fB, type WebhooksListEndpointsError as fC, type WebhooksListEndpointsResponse as fD, type WebhooksListEventTypesError as fE, type WebhooksListEventTypesResponse as fF, type WebhooksPingError as fG, type WebhooksPingResponse as fH, type WebhooksUpdateEndpointError as fI, type WebhooksUpdateEndpointResponse as fJ, createPostrunClient as fK, type PostrunClient as fa, type PostrunClientOptions as fb, type PostsCreateError as fc, type PostsCreateResponse as fd, type PostsDeleteError as fe, type PostsDeleteResponse as ff, type PostsGetError as fg, type PostsListError as fh, type PostsUpdateError as fi, type PostsUpdateResponse as fj, type ProfilesCreateError as fk, type ProfilesCreateResponse as fl, type ProfilesDeleteError as fm, type ProfilesDeleteResponse as fn, type ProfilesGetError as fo, type ProfilesListError as fp, type ProfilesUpdateError as fq, type ProfilesUpdateResponse as fr, type TokensMintError as fs, type TokensMintResponse as ft, type WebhooksCreateEndpointError as fu, type WebhooksCreateEndpointResponse as fv, type WebhooksCreatePortalError as fw, type WebhooksCreatePortalResponse as fx, type WebhooksDeleteEndpointError as fy, type WebhooksDeleteEndpointResponse as fz, type ConnectionsDeleteErrors as g, type ConnectionsGetData as h, type ConnectionsGetResponses as i, type ConnectionsGetErrors as j, type ConnectionsListAccountsData as k, type ConnectionsListAccountsResponses as l, type ConnectionsListAccountsErrors as m, type ConnectionsListByProfileData as n, type ConnectionsListByProfileResponses as o, type ConnectionsListByProfileErrors as p, type ConnectionsSelectData as q, type ConnectionsSelectResponses as r, type ConnectionsSelectErrors as s, type GoogleCreateAdResponses as t, type GoogleCreateAdErrors as u, type GoogleCreateAdGroupData as v, type GoogleCreateAdGroupResponses as w, type GoogleCreateAdGroupErrors as x, type GoogleCreateBudgetData as y, type GoogleCreateBudgetResponses as z };