@pubnio/sdk 0.2.13 → 0.4.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.
@@ -119,6 +119,7 @@ declare const BillingPlanList: Schema.Struct<{
119
119
  readonly meter: Schema.Literals<readonly [
120
120
  "confirmed_publish",
121
121
  "x_passthrough",
122
+ "x_read",
122
123
  "managed_ad",
123
124
  "inbox_reply",
124
125
  "automation_run"
@@ -127,10 +128,15 @@ declare const BillingPlanList: Schema.Struct<{
127
128
  readonly overageUnitPriceMicros: Schema.NullOr<Schema.Int>;
128
129
  readonly unitLabel: Schema.String;
129
130
  }>>;
131
+ readonly xReads: Schema.Boolean;
132
+ readonly includedXReadMicros: Schema.NullOr<Schema.Int>;
130
133
  readonly seatsLimit: Schema.NullOr<Schema.Int>;
131
134
  readonly analyticsRetentionDays: Schema.Int;
132
135
  readonly whiteLabelOAuth: Schema.Boolean;
133
136
  readonly ssoSaml: Schema.Boolean;
137
+ readonly priorityQueue: Schema.Boolean;
138
+ readonly adsInsights: Schema.Boolean;
139
+ readonly adsWrite: Schema.Boolean;
134
140
  }>>;
135
141
  }>;
136
142
  type BillingPlanList = typeof BillingPlanList.Type;
@@ -177,10 +183,13 @@ declare const WorkspaceBilling: Schema.Struct<{
177
183
  readonly version: Schema.Int;
178
184
  }>;
179
185
  readonly currentPeriod: Schema.Struct<{
186
+ readonly start: Schema.String;
187
+ readonly end: Schema.String;
180
188
  readonly meters: Schema.$Array<Schema.Struct<{
181
189
  readonly meter: Schema.Literals<readonly [
182
190
  "confirmed_publish",
183
191
  "x_passthrough",
192
+ "x_read",
184
193
  "managed_ad",
185
194
  "inbox_reply",
186
195
  "automation_run"
@@ -202,6 +211,7 @@ declare const BillingUsageQuery: Schema.Struct<{
202
211
  readonly meter: Schema.optionalKey<Schema.Literals<readonly [
203
212
  "confirmed_publish",
204
213
  "x_passthrough",
214
+ "x_read",
205
215
  "managed_ad",
206
216
  "inbox_reply",
207
217
  "automation_run"
@@ -235,6 +245,7 @@ declare const BillingUsage: Schema.Struct<{
235
245
  readonly meter: Schema.Literals<readonly [
236
246
  "confirmed_publish",
237
247
  "x_passthrough",
248
+ "x_read",
238
249
  "managed_ad",
239
250
  "inbox_reply",
240
251
  "automation_run"
@@ -994,19 +1005,19 @@ declare const ApiKeyRevocation: Schema.Struct<{
994
1005
  }>;
995
1006
  type ApiKeyRevocation = typeof ApiKeyRevocation.Type;
996
1007
  declare const PublishInput: Schema.Struct<{
997
- readonly expectedRevision: Schema.Int;
1008
+ readonly expectedRevision: Schema.optionalKey<Schema.Int>;
998
1009
  readonly scheduledAt: Schema.optionalKey<Schema.String>;
999
- readonly accountIds: Schema.optionalKey<Schema.$Array<Schema.brand<Schema.String, "AccountId">>>;
1010
+ readonly accounts: Schema.optionalKey<Schema.$Array<Schema.brand<Schema.String, "AccountId">>>;
1000
1011
  readonly targets: Schema.optionalKey<Schema.$Array<Schema.Struct<{
1001
1012
  readonly accountId: Schema.brand<Schema.String, "AccountId">;
1002
- readonly placement: Schema.Literals<readonly [
1013
+ readonly placement: Schema.optionalKey<Schema.Literals<readonly [
1003
1014
  "feed",
1004
1015
  "reel",
1005
1016
  "story",
1006
1017
  "carousel",
1007
1018
  "video",
1008
1019
  "pin"
1009
- ]>;
1020
+ ]>>;
1010
1021
  readonly scheduledAt: Schema.optionalKey<Schema.Union<readonly [
1011
1022
  Schema.String,
1012
1023
  Schema.Null
@@ -1161,6 +1172,8 @@ declare const PublishAccepted: Schema.Struct<{
1161
1172
  "tiktok_upload_required",
1162
1173
  "tiktok_too_many_mentions",
1163
1174
  "queue_and_time_conflict",
1175
+ "queue_not_found",
1176
+ "queue_unavailable",
1164
1177
  "invalid_field",
1165
1178
  "account_ambiguous",
1166
1179
  "unsupported_placement",
@@ -1173,6 +1186,10 @@ declare const PublishAccepted: Schema.Struct<{
1173
1186
  Schema.Int
1174
1187
  ]>>;
1175
1188
  readonly message: Schema.String;
1189
+ readonly candidates: Schema.optionalKey<Schema.$Array<Schema.Struct<{
1190
+ readonly accountId: Schema.brand<Schema.String, "AccountId">;
1191
+ readonly name: Schema.String;
1192
+ }>>>;
1176
1193
  }>>;
1177
1194
  readonly billing: Schema.optionalKey<Schema.Struct<{
1178
1195
  readonly estimatedCostMicros: Schema.Int;
@@ -1239,7 +1256,10 @@ declare const PublishStatus: Schema.Struct<{
1239
1256
  "tiktok_settings_not_allowed",
1240
1257
  "tiktok_processing_failed",
1241
1258
  "submission_uncertain",
1242
- "confirmation_unavailable"
1259
+ "confirmation_unavailable",
1260
+ "billing_inactive",
1261
+ "spend_cap_reached",
1262
+ "insufficient_credit"
1243
1263
  ]>>;
1244
1264
  readonly canRetry: Schema.Boolean;
1245
1265
  readonly canReconcile: Schema.Boolean;
@@ -1328,7 +1348,10 @@ declare const PublishWait: Schema.Struct<{
1328
1348
  "tiktok_settings_not_allowed",
1329
1349
  "tiktok_processing_failed",
1330
1350
  "submission_uncertain",
1331
- "confirmation_unavailable"
1351
+ "confirmation_unavailable",
1352
+ "billing_inactive",
1353
+ "spend_cap_reached",
1354
+ "insufficient_credit"
1332
1355
  ]>>;
1333
1356
  readonly canRetry: Schema.Boolean;
1334
1357
  readonly canReconcile: Schema.Boolean;
@@ -1436,7 +1459,10 @@ declare const DeliveryHistory: Schema.Struct<{
1436
1459
  "tiktok_settings_not_allowed",
1437
1460
  "tiktok_processing_failed",
1438
1461
  "submission_uncertain",
1439
- "confirmation_unavailable"
1462
+ "confirmation_unavailable",
1463
+ "billing_inactive",
1464
+ "spend_cap_reached",
1465
+ "insufficient_credit"
1440
1466
  ]>>;
1441
1467
  readonly canRetry: Schema.Boolean;
1442
1468
  readonly canReconcile: Schema.Boolean;
@@ -1794,6 +1820,38 @@ declare const PublishCapabilities: Schema.Struct<{
1794
1820
  "ad_account"
1795
1821
  ]>>;
1796
1822
  readonly placements: Schema.$Array<Schema.Struct<{
1823
+ readonly settings: Schema.optionalKey<Schema.Struct<{
1824
+ readonly poll: Schema.Union<readonly [
1825
+ Schema.Struct<{
1826
+ readonly minDurationMinutes: Schema.Int;
1827
+ readonly maxDurationMinutes: Schema.Int;
1828
+ readonly minOptions: Schema.Int;
1829
+ readonly maxOptions: Schema.Int;
1830
+ readonly optionCharacters: Schema.Int;
1831
+ }>,
1832
+ Schema.Struct<{
1833
+ readonly questionCharacters: Schema.Int;
1834
+ readonly durations: Schema.$Array<Schema.Literals<readonly [
1835
+ "ONE_DAY",
1836
+ "THREE_DAYS",
1837
+ "SEVEN_DAYS",
1838
+ "FOURTEEN_DAYS"
1839
+ ]>>;
1840
+ readonly minOptions: Schema.Int;
1841
+ readonly maxOptions: Schema.Int;
1842
+ readonly optionCharacters: Schema.Int;
1843
+ }>
1844
+ ]>;
1845
+ readonly replySettings: Schema.optionalKey<Schema.$Array<Schema.Literals<readonly [
1846
+ "following",
1847
+ "mentionedUsers",
1848
+ "subscribers",
1849
+ "verified"
1850
+ ]>>>;
1851
+ readonly maxMediaTags: Schema.optionalKey<Schema.Int>;
1852
+ readonly placeId: Schema.optionalKey<Schema.Boolean>;
1853
+ readonly quotePostId: Schema.optionalKey<Schema.Boolean>;
1854
+ }>>;
1797
1855
  readonly placement: Schema.Literals<readonly [
1798
1856
  "feed",
1799
1857
  "reel",
@@ -2704,6 +2762,34 @@ declare const SeatLimitReached_base: HttpApiError.ProblemClass<SeatLimitReached,
2704
2762
  }, {}>;
2705
2763
  declare class SeatLimitReached extends SeatLimitReached_base {
2706
2764
  }
2765
+ declare const PlanRequired_base: HttpApiError.ProblemClass<PlanRequired, "PlanRequired", "urn:pubnio:problem:plan-required", 402, {
2766
+ readonly code: Schema.Literal<"plan_required">;
2767
+ readonly entitlement: Schema.Literals<readonly [
2768
+ "adsInsights",
2769
+ "adsWrite",
2770
+ "analyticsHistory"
2771
+ ]>;
2772
+ readonly currentPlan: Schema.Literals<readonly [
2773
+ "payg",
2774
+ "pro",
2775
+ "platform",
2776
+ "enterprise"
2777
+ ]>;
2778
+ readonly minimumPlan: Schema.Literals<readonly [
2779
+ "payg",
2780
+ "pro",
2781
+ "platform",
2782
+ "enterprise"
2783
+ ]>;
2784
+ readonly fundingUrl: Schema.String;
2785
+ readonly canManageBilling: Schema.Boolean;
2786
+ readonly nextAction: Schema.String;
2787
+ readonly param: Schema.optionalKey<Schema.String>;
2788
+ /** The earliest date the current plan can read (analytics history only). */
2789
+ readonly earliestDate: Schema.optionalKey<Schema.String>;
2790
+ }, {}>;
2791
+ declare class PlanRequired extends PlanRequired_base {
2792
+ }
2707
2793
  declare const AlreadyMember_base: HttpApiError.ProblemClass<AlreadyMember, "AlreadyMember", "urn:pubnio:problem:already-member", 409, {
2708
2794
  readonly code: Schema.Literal<"already_member">;
2709
2795
  readonly nextAction: Schema.String;
@@ -2787,6 +2873,8 @@ declare const InvalidPublication_base: HttpApiError.ProblemClass<InvalidPublicat
2787
2873
  "tiktok_upload_required",
2788
2874
  "tiktok_too_many_mentions",
2789
2875
  "queue_and_time_conflict",
2876
+ "queue_not_found",
2877
+ "queue_unavailable",
2790
2878
  "invalid_field",
2791
2879
  "account_ambiguous",
2792
2880
  "unsupported_placement",
@@ -2799,6 +2887,10 @@ declare const InvalidPublication_base: HttpApiError.ProblemClass<InvalidPublicat
2799
2887
  Schema.Int
2800
2888
  ]>>;
2801
2889
  readonly message: Schema.String;
2890
+ readonly candidates: Schema.optionalKey<Schema.$Array<Schema.Struct<{
2891
+ readonly accountId: Schema.brand<Schema.String, "AccountId">;
2892
+ readonly name: Schema.String;
2893
+ }>>>;
2802
2894
  }>>;
2803
2895
  readonly candidates: Schema.optionalKey<Schema.$Array<Schema.Struct<{
2804
2896
  readonly accountId: Schema.brand<Schema.String, "AccountId">;
@@ -2968,6 +3060,13 @@ declare class MediaUploadConflict extends MediaUploadConflict_base {
2968
3060
  declare const DestinationAlreadySubmitted_base: HttpApiError.ProblemClass<DestinationAlreadySubmitted, "DestinationAlreadySubmitted", "urn:pubnio:problem:destination-already-submitted", 409, {}, {}>;
2969
3061
  declare class DestinationAlreadySubmitted extends DestinationAlreadySubmitted_base {
2970
3062
  }
3063
+ declare const PostSubmitted_base: HttpApiError.ProblemClass<PostSubmitted, "PostSubmitted", "urn:pubnio:problem:post-submitted", 409, {
3064
+ readonly code: Schema.Literal<"post_submitted">;
3065
+ readonly targetIds: Schema.$Array<Schema.brand<Schema.String, "TargetId">>;
3066
+ readonly nextAction: Schema.String;
3067
+ }, {}>;
3068
+ declare class PostSubmitted extends PostSubmitted_base {
3069
+ }
2971
3070
  declare const DeliveryNotRetryable_base: HttpApiError.ProblemClass<DeliveryNotRetryable, "DeliveryNotRetryable", "urn:pubnio:problem:delivery-not-retryable", 409, {}, {}>;
2972
3071
  declare class DeliveryNotRetryable extends DeliveryNotRetryable_base {
2973
3072
  }
@@ -3370,6 +3469,27 @@ declare const InboxUnsupportedContent_base: HttpApiError.ProblemClass<InboxUnsup
3370
3469
  }, {}>;
3371
3470
  declare class InboxUnsupportedContent extends InboxUnsupportedContent_base {
3372
3471
  }
3472
+ declare const InboxUnavailable_base: HttpApiError.ProblemClass<InboxUnavailable, "InboxUnavailable", "urn:pubnio:problem:inbox-unavailable", 409, {
3473
+ readonly reason: Schema.Literals<readonly [
3474
+ "provider_subscription_limit",
3475
+ "missing_scopes",
3476
+ "webhook_invalid",
3477
+ "subscription_pending",
3478
+ "plan_required",
3479
+ "insufficient_credit",
3480
+ "spend_cap_reached"
3481
+ ]>;
3482
+ readonly action: Schema.Literals<readonly [
3483
+ "contact_pubnio",
3484
+ "reconnect_account",
3485
+ "wait_for_repair",
3486
+ "upgrade_plan",
3487
+ "add_credit",
3488
+ "raise_spend_cap"
3489
+ ]>;
3490
+ }, {}>;
3491
+ declare class InboxUnavailable extends InboxUnavailable_base {
3492
+ }
3373
3493
  declare const AdAccountNotReady_base: HttpApiError.ProblemClass<AdAccountNotReady, "AdAccountNotReady", "urn:pubnio:problem:ad-account-not-ready", 409, {
3374
3494
  readonly reason: Schema.Literals<readonly [
3375
3495
  "unavailable",
@@ -3655,6 +3775,7 @@ declare const KnownProblem: Schema.Union<readonly [
3655
3775
  typeof AttemptChanged,
3656
3776
  typeof IdempotencyConflict,
3657
3777
  typeof DestinationAlreadySubmitted,
3778
+ typeof PostSubmitted,
3658
3779
  typeof DeliveryNotRetryable,
3659
3780
  typeof DeliveryNotReconcilable,
3660
3781
  typeof DeliveryScheduleLocked,
@@ -3691,6 +3812,7 @@ declare const KnownProblem: Schema.Union<readonly [
3691
3812
  typeof LastOwnerRequired,
3692
3813
  typeof InviteExpired,
3693
3814
  typeof InviteEmailMismatch,
3815
+ typeof InboxUnavailable,
3694
3816
  typeof InboxReplyWindowClosed,
3695
3817
  typeof InboxTargetChanged,
3696
3818
  typeof InboxSyncInProgress,
@@ -3717,6 +3839,7 @@ declare const KnownProblem: Schema.Union<readonly [
3717
3839
  typeof AdOperationNotRetryable,
3718
3840
  typeof AdProviderRejected,
3719
3841
  typeof InvalidAdRequest,
3842
+ typeof PlanRequired,
3720
3843
  typeof InternalFailure,
3721
3844
  typeof WebhookTestRateLimited,
3722
3845
  typeof WebhookDeliveryNotReplayable,
@@ -3928,6 +4051,8 @@ declare const PostIssue: Schema.Struct<{
3928
4051
  "tiktok_upload_required",
3929
4052
  "tiktok_too_many_mentions",
3930
4053
  "queue_and_time_conflict",
4054
+ "queue_not_found",
4055
+ "queue_unavailable",
3931
4056
  "invalid_field",
3932
4057
  "account_ambiguous",
3933
4058
  "unsupported_placement",
@@ -3940,10 +4065,24 @@ declare const PostIssue: Schema.Struct<{
3940
4065
  Schema.Int
3941
4066
  ]>>;
3942
4067
  readonly message: Schema.String;
4068
+ readonly candidates: Schema.optionalKey<Schema.$Array<Schema.Struct<{
4069
+ readonly accountId: Schema.brand<Schema.String, "AccountId">;
4070
+ readonly name: Schema.String;
4071
+ }>>>;
3943
4072
  }>;
3944
4073
  type PostIssue = typeof PostIssue.Type;
3945
4074
  declare const CreatePost: Schema.Struct<{
3946
- readonly text: Schema.optionalKey<Schema.Trim>;
4075
+ readonly media: Schema.optionalKey<Schema.$Array<Schema.Union<readonly [
4076
+ Schema.Struct<{
4077
+ readonly mediaId: Schema.brand<Schema.String, "MediaId">;
4078
+ }>,
4079
+ Schema.Struct<{
4080
+ readonly url: Schema.String;
4081
+ }>
4082
+ ]>>>;
4083
+ readonly scheduledAt: Schema.optionalKey<Schema.String>;
4084
+ readonly publishNow: Schema.optionalKey<Schema.Boolean>;
4085
+ readonly isDraft: Schema.optionalKey<Schema.Boolean>;
3947
4086
  readonly platforms: Schema.optionalKey<Schema.$Array<Schema.Literals<readonly [
3948
4087
  "bluesky",
3949
4088
  "facebook",
@@ -3998,7 +4137,7 @@ declare const CreatePost: Schema.Struct<{
3998
4137
  Schema.Null
3999
4138
  ]>>;
4000
4139
  readonly queueId: Schema.optionalKey<Schema.String>;
4001
- readonly settings: Schema.optionalKey<Schema.Union<readonly [
4140
+ readonly settings: Schema.optionalKey<Schema.middlewareDecoding<Schema.Union<readonly [
4002
4141
  Schema.Struct<{
4003
4142
  readonly firstComment: Schema.optionalKey<Schema.String>;
4004
4143
  readonly thread: Schema.optionalKey<Schema.$Array<Schema.String>>;
@@ -4107,6 +4246,16 @@ declare const CreatePost: Schema.Struct<{
4107
4246
  readonly isAiGenerated: Schema.optionalKey<Schema.Boolean>;
4108
4247
  }>,
4109
4248
  Schema.Struct<{
4249
+ readonly poll: Schema.optionalKey<Schema.Struct<{
4250
+ readonly question: Schema.String;
4251
+ readonly options: Schema.$Array<Schema.String>;
4252
+ readonly duration: Schema.Literals<readonly [
4253
+ "ONE_DAY",
4254
+ "THREE_DAYS",
4255
+ "SEVEN_DAYS",
4256
+ "FOURTEEN_DAYS"
4257
+ ]>;
4258
+ }>>;
4110
4259
  readonly firstComment: Schema.optionalKey<Schema.String>;
4111
4260
  readonly thread: Schema.optionalKey<Schema.$Array<Schema.String>>;
4112
4261
  readonly visibility: Schema.optionalKey<Schema.Literals<readonly [
@@ -4144,6 +4293,19 @@ declare const CreatePost: Schema.Struct<{
4144
4293
  readonly thread: Schema.optionalKey<Schema.$Array<Schema.String>>;
4145
4294
  }>,
4146
4295
  Schema.Struct<{
4296
+ readonly poll: Schema.optionalKey<Schema.Struct<{
4297
+ readonly options: Schema.$Array<Schema.String>;
4298
+ readonly durationMinutes: Schema.Number;
4299
+ }>>;
4300
+ readonly replySettings: Schema.optionalKey<Schema.Literals<readonly [
4301
+ "following",
4302
+ "mentionedUsers",
4303
+ "subscribers",
4304
+ "verified"
4305
+ ]>>;
4306
+ readonly quotePostId: Schema.optionalKey<Schema.String>;
4307
+ readonly mediaTaggedUserIds: Schema.optionalKey<Schema.$Array<Schema.String>>;
4308
+ readonly placeId: Schema.optionalKey<Schema.String>;
4147
4309
  readonly firstComment: Schema.optionalKey<Schema.String>;
4148
4310
  readonly thread: Schema.optionalKey<Schema.$Array<Schema.String>>;
4149
4311
  readonly article: Schema.optionalKey<Schema.Struct<{
@@ -4159,6 +4321,7 @@ declare const CreatePost: Schema.Struct<{
4159
4321
  "unlisted",
4160
4322
  "private"
4161
4323
  ]>;
4324
+ readonly firstComment: Schema.optionalKey<Schema.String>;
4162
4325
  readonly tags: Schema.optionalKey<Schema.$Array<Schema.String>>;
4163
4326
  readonly categoryId: Schema.optionalKey<Schema.String>;
4164
4327
  readonly madeForKids: Schema.optionalKey<Schema.Boolean>;
@@ -4219,52 +4382,80 @@ declare const CreatePost: Schema.Struct<{
4219
4382
  readonly nativeDraft: Schema.optionalKey<Schema.Boolean>;
4220
4383
  }>
4221
4384
  ]>,
4222
- Schema.Struct<{}>
4223
- ]>>;
4385
+ Schema.Struct<{
4386
+ readonly topicType: Schema.optionalKey<Schema.Literals<readonly [
4387
+ "standard",
4388
+ "event",
4389
+ "offer"
4390
+ ]>>;
4391
+ readonly title: Schema.optionalKey<Schema.String>;
4392
+ readonly startsAt: Schema.optionalKey<Schema.String>;
4393
+ readonly endsAt: Schema.optionalKey<Schema.String>;
4394
+ readonly couponCode: Schema.optionalKey<Schema.String>;
4395
+ readonly redeemUrl: Schema.optionalKey<Schema.String>;
4396
+ readonly terms: Schema.optionalKey<Schema.String>;
4397
+ readonly callToAction: Schema.optionalKey<Schema.Literals<readonly [
4398
+ "book",
4399
+ "order",
4400
+ "shop",
4401
+ "learn_more",
4402
+ "sign_up",
4403
+ "call"
4404
+ ]>>;
4405
+ readonly callToActionUrl: Schema.optionalKey<Schema.String>;
4406
+ }>
4407
+ ]>, never>>;
4224
4408
  }>>>;
4225
- readonly media: Schema.optionalKey<Schema.$Array<Schema.Union<readonly [
4226
- Schema.Struct<{
4227
- readonly mediaId: Schema.brand<Schema.String, "MediaId">;
4228
- }>,
4229
- Schema.Struct<{
4230
- readonly url: Schema.String;
4231
- }>
4232
- ]>>>;
4233
- readonly scheduledAt: Schema.optionalKey<Schema.String>;
4234
- readonly publishNow: Schema.optionalKey<Schema.Boolean>;
4235
- readonly isDraft: Schema.optionalKey<Schema.Boolean>;
4409
+ readonly text: Schema.optionalKey<Schema.Trim>;
4236
4410
  }>;
4237
4411
  type CreatePost = typeof CreatePost.Type;
4238
4412
  declare const UpdatePost: Schema.Struct<{
4239
- readonly expectedRevision: Schema.optionalKey<Schema.Int>;
4240
- readonly text: Schema.optionalKey<Schema.Trim>;
4241
- readonly targets: Schema.optionalKey<Schema.$Array<Schema.Union<readonly [
4242
- Schema.Struct<{
4243
- readonly settings: Schema.optionalKey<Schema.Struct<{
4413
+ readonly targets: Schema.optionalKey<Schema.$Array<Schema.Struct<{
4414
+ readonly accountId: Schema.brand<Schema.String, "AccountId">;
4415
+ readonly provider: Schema.optionalKey<Schema.Literals<readonly [
4416
+ "bluesky",
4417
+ "facebook",
4418
+ "instagram",
4419
+ "linkedin",
4420
+ "pinterest",
4421
+ "reddit",
4422
+ "snapchat",
4423
+ "tiktok",
4424
+ "threads",
4425
+ "x",
4426
+ "youtube",
4427
+ "google_business"
4428
+ ]>>;
4429
+ readonly placement: Schema.optionalKey<Schema.Literals<readonly [
4430
+ "feed",
4431
+ "reel",
4432
+ "story",
4433
+ "carousel",
4434
+ "video",
4435
+ "pin"
4436
+ ]>>;
4437
+ readonly text: Schema.optionalKey<Schema.String>;
4438
+ readonly thread: Schema.optionalKey<Schema.$Array<Schema.String>>;
4439
+ readonly media: Schema.optionalKey<Schema.$Array<Schema.Union<readonly [
4440
+ Schema.Struct<{
4441
+ readonly mediaId: Schema.brand<Schema.String, "MediaId">;
4442
+ }>,
4443
+ Schema.Struct<{
4444
+ readonly url: Schema.String;
4445
+ }>
4446
+ ]>>>;
4447
+ readonly scheduledAt: Schema.optionalKey<Schema.Union<readonly [
4448
+ Schema.String,
4449
+ Schema.Null
4450
+ ]>>;
4451
+ readonly queueId: Schema.optionalKey<Schema.String>;
4452
+ readonly settings: Schema.optionalKey<Schema.middlewareDecoding<Schema.Union<readonly [
4453
+ Schema.Struct<{
4244
4454
  readonly firstComment: Schema.optionalKey<Schema.String>;
4245
4455
  readonly thread: Schema.optionalKey<Schema.$Array<Schema.String>>;
4246
4456
  readonly altText: Schema.optionalKey<Schema.String>;
4247
- }>>;
4248
- readonly text: Schema.optionalKey<Schema.String>;
4249
- readonly media: Schema.optionalKey<Schema.$Array<Schema.Union<readonly [
4250
- Schema.Struct<{
4251
- readonly mediaId: Schema.brand<Schema.String, "MediaId">;
4252
- }>,
4253
- Schema.Struct<{
4254
- readonly url: Schema.String;
4255
- }>
4256
- ]>>>;
4257
- readonly scheduledAt: Schema.optionalKey<Schema.Union<readonly [
4258
- Schema.String,
4259
- Schema.Null
4260
- ]>>;
4261
- readonly queueId: Schema.optionalKey<Schema.String>;
4262
- readonly accountId: Schema.brand<Schema.String, "AccountId">;
4263
- readonly provider: Schema.Literal<"bluesky">;
4264
- readonly placement: Schema.Literal<"feed">;
4265
- }>,
4266
- Schema.Struct<{
4267
- readonly settings: Schema.optionalKey<Schema.Struct<{
4457
+ }>,
4458
+ Schema.Struct<{
4268
4459
  readonly link: Schema.optionalKey<Schema.String>;
4269
4460
  readonly textFormatPresetId: Schema.optionalKey<Schema.String>;
4270
4461
  readonly albumId: Schema.optionalKey<Schema.String>;
@@ -4272,27 +4463,8 @@ declare const UpdatePost: Schema.Struct<{
4272
4463
  readonly thread: Schema.optionalKey<Schema.$Array<Schema.String>>;
4273
4464
  readonly nativeDraft: Schema.optionalKey<Schema.Boolean>;
4274
4465
  readonly countries: Schema.optionalKey<Schema.$Array<Schema.String>>;
4275
- }>>;
4276
- readonly text: Schema.optionalKey<Schema.String>;
4277
- readonly media: Schema.optionalKey<Schema.$Array<Schema.Union<readonly [
4278
- Schema.Struct<{
4279
- readonly mediaId: Schema.brand<Schema.String, "MediaId">;
4280
- }>,
4281
- Schema.Struct<{
4282
- readonly url: Schema.String;
4283
- }>
4284
- ]>>>;
4285
- readonly scheduledAt: Schema.optionalKey<Schema.Union<readonly [
4286
- Schema.String,
4287
- Schema.Null
4288
- ]>>;
4289
- readonly queueId: Schema.optionalKey<Schema.String>;
4290
- readonly accountId: Schema.brand<Schema.String, "AccountId">;
4291
- readonly provider: Schema.Literal<"facebook">;
4292
- readonly placement: Schema.Literal<"feed">;
4293
- }>,
4294
- Schema.Struct<{
4295
- readonly settings: Schema.optionalKey<Schema.Struct<{
4466
+ }>,
4467
+ Schema.Struct<{
4296
4468
  readonly title: Schema.optionalKey<Schema.String>;
4297
4469
  readonly isAiGenerated: Schema.optionalKey<Schema.Boolean>;
4298
4470
  readonly collaboratorPageIds: Schema.optionalKey<Schema.$Array<Schema.String>>;
@@ -4300,49 +4472,11 @@ declare const UpdatePost: Schema.Struct<{
4300
4472
  readonly thread: Schema.optionalKey<Schema.$Array<Schema.String>>;
4301
4473
  readonly nativeDraft: Schema.optionalKey<Schema.Boolean>;
4302
4474
  readonly countries: Schema.optionalKey<Schema.$Array<Schema.String>>;
4303
- }>>;
4304
- readonly text: Schema.optionalKey<Schema.String>;
4305
- readonly media: Schema.optionalKey<Schema.$Array<Schema.Union<readonly [
4306
- Schema.Struct<{
4307
- readonly mediaId: Schema.brand<Schema.String, "MediaId">;
4308
- }>,
4309
- Schema.Struct<{
4310
- readonly url: Schema.String;
4311
- }>
4312
- ]>>>;
4313
- readonly scheduledAt: Schema.optionalKey<Schema.Union<readonly [
4314
- Schema.String,
4315
- Schema.Null
4316
- ]>>;
4317
- readonly queueId: Schema.optionalKey<Schema.String>;
4318
- readonly accountId: Schema.brand<Schema.String, "AccountId">;
4319
- readonly provider: Schema.Literal<"facebook">;
4320
- readonly placement: Schema.Literal<"reel">;
4321
- }>,
4322
- Schema.Struct<{
4323
- readonly settings: Schema.optionalKey<Schema.Struct<{
4475
+ }>,
4476
+ Schema.Struct<{
4324
4477
  readonly isAiGenerated: Schema.optionalKey<Schema.Boolean>;
4325
- }>>;
4326
- readonly text: Schema.optionalKey<Schema.String>;
4327
- readonly media: Schema.optionalKey<Schema.$Array<Schema.Union<readonly [
4328
- Schema.Struct<{
4329
- readonly mediaId: Schema.brand<Schema.String, "MediaId">;
4330
- }>,
4331
- Schema.Struct<{
4332
- readonly url: Schema.String;
4333
- }>
4334
- ]>>>;
4335
- readonly scheduledAt: Schema.optionalKey<Schema.Union<readonly [
4336
- Schema.String,
4337
- Schema.Null
4338
- ]>>;
4339
- readonly queueId: Schema.optionalKey<Schema.String>;
4340
- readonly accountId: Schema.brand<Schema.String, "AccountId">;
4341
- readonly provider: Schema.Literal<"facebook">;
4342
- readonly placement: Schema.Literal<"story">;
4343
- }>,
4344
- Schema.Struct<{
4345
- readonly settings: Schema.optionalKey<Schema.Struct<{
4478
+ }>,
4479
+ Schema.Struct<{
4346
4480
  readonly altText: Schema.optionalKey<Schema.String>;
4347
4481
  readonly userTags: Schema.optionalKey<Schema.$Array<Schema.Struct<{
4348
4482
  readonly username: Schema.String;
@@ -4359,27 +4493,8 @@ declare const UpdatePost: Schema.Struct<{
4359
4493
  Schema.String
4360
4494
  ]>>>;
4361
4495
  readonly isAiGenerated: Schema.optionalKey<Schema.Boolean>;
4362
- }>>;
4363
- readonly text: Schema.optionalKey<Schema.String>;
4364
- readonly media: Schema.optionalKey<Schema.$Array<Schema.Union<readonly [
4365
- Schema.Struct<{
4366
- readonly mediaId: Schema.brand<Schema.String, "MediaId">;
4367
- }>,
4368
- Schema.Struct<{
4369
- readonly url: Schema.String;
4370
- }>
4371
- ]>>>;
4372
- readonly scheduledAt: Schema.optionalKey<Schema.Union<readonly [
4373
- Schema.String,
4374
- Schema.Null
4375
- ]>>;
4376
- readonly queueId: Schema.optionalKey<Schema.String>;
4377
- readonly accountId: Schema.brand<Schema.String, "AccountId">;
4378
- readonly provider: Schema.Literal<"instagram">;
4379
- readonly placement: Schema.Literal<"feed">;
4380
- }>,
4381
- Schema.Struct<{
4382
- readonly settings: Schema.optionalKey<Schema.Struct<{
4496
+ }>,
4497
+ Schema.Struct<{
4383
4498
  readonly shareToFeed: Schema.optionalKey<Schema.Boolean>;
4384
4499
  readonly muteAudio: Schema.optionalKey<Schema.Boolean>;
4385
4500
  readonly audioConfiguration: Schema.optionalKey<Schema.Struct<{
@@ -4411,12 +4526,421 @@ declare const UpdatePost: Schema.Struct<{
4411
4526
  Schema.String
4412
4527
  ]>>>;
4413
4528
  readonly isAiGenerated: Schema.optionalKey<Schema.Boolean>;
4414
- }>>;
4415
- readonly text: Schema.optionalKey<Schema.String>;
4416
- readonly media: Schema.optionalKey<Schema.$Array<Schema.Union<readonly [
4417
- Schema.Struct<{
4418
- readonly mediaId: Schema.brand<Schema.String, "MediaId">;
4419
- }>,
4529
+ }>,
4530
+ Schema.Struct<{
4531
+ readonly muteAudio: Schema.optionalKey<Schema.Boolean>;
4532
+ readonly slides: Schema.optionalKey<Schema.$Array<Schema.Struct<{
4533
+ readonly altText: Schema.optionalKey<Schema.String>;
4534
+ readonly userTags: Schema.optionalKey<Schema.$Array<Schema.Struct<{
4535
+ readonly username: Schema.String;
4536
+ readonly x: Schema.optionalKey<Schema.Number>;
4537
+ readonly y: Schema.optionalKey<Schema.Number>;
4538
+ }>>>;
4539
+ }>>>;
4540
+ readonly firstComment: Schema.optionalKey<Schema.String>;
4541
+ readonly commentsEnabled: Schema.optionalKey<Schema.Boolean>;
4542
+ readonly collaborators: Schema.optionalKey<Schema.$Array<Schema.String>>;
4543
+ readonly locationId: Schema.optionalKey<Schema.String>;
4544
+ readonly isPaidPartnership: Schema.optionalKey<Schema.Boolean>;
4545
+ readonly brandedContentSponsors: Schema.optionalKey<Schema.$Array<Schema.Union<readonly [
4546
+ Schema.String,
4547
+ Schema.String
4548
+ ]>>>;
4549
+ readonly isAiGenerated: Schema.optionalKey<Schema.Boolean>;
4550
+ }>,
4551
+ Schema.Struct<{
4552
+ readonly muteAudio: Schema.optionalKey<Schema.Boolean>;
4553
+ readonly userTags: Schema.optionalKey<Schema.$Array<Schema.Struct<{
4554
+ readonly username: Schema.String;
4555
+ readonly x: Schema.optionalKey<Schema.Number>;
4556
+ readonly y: Schema.optionalKey<Schema.Number>;
4557
+ }>>>;
4558
+ readonly isAiGenerated: Schema.optionalKey<Schema.Boolean>;
4559
+ }>,
4560
+ Schema.Struct<{
4561
+ readonly poll: Schema.optionalKey<Schema.Struct<{
4562
+ readonly question: Schema.String;
4563
+ readonly options: Schema.$Array<Schema.String>;
4564
+ readonly duration: Schema.Literals<readonly [
4565
+ "ONE_DAY",
4566
+ "THREE_DAYS",
4567
+ "SEVEN_DAYS",
4568
+ "FOURTEEN_DAYS"
4569
+ ]>;
4570
+ }>>;
4571
+ readonly firstComment: Schema.optionalKey<Schema.String>;
4572
+ readonly thread: Schema.optionalKey<Schema.$Array<Schema.String>>;
4573
+ readonly visibility: Schema.optionalKey<Schema.Literals<readonly [
4574
+ "PUBLIC",
4575
+ "CONNECTIONS"
4576
+ ]>>;
4577
+ readonly altText: Schema.optionalKey<Schema.String>;
4578
+ readonly documentTitle: Schema.optionalKey<Schema.Trim>;
4579
+ }>,
4580
+ Schema.Struct<{
4581
+ readonly subreddit: Schema.String;
4582
+ readonly title: Schema.String;
4583
+ readonly link: Schema.optionalKey<Schema.String>;
4584
+ readonly flairId: Schema.optionalKey<Schema.String>;
4585
+ readonly flairText: Schema.optionalKey<Schema.String>;
4586
+ readonly nsfw: Schema.optionalKey<Schema.Boolean>;
4587
+ readonly spoiler: Schema.optionalKey<Schema.Boolean>;
4588
+ readonly sendReplies: Schema.optionalKey<Schema.Boolean>;
4589
+ readonly thumbnailMediaId: Schema.optionalKey<Schema.brand<Schema.String, "MediaId">>;
4590
+ readonly firstComment: Schema.optionalKey<Schema.String>;
4591
+ }>,
4592
+ Schema.Struct<{
4593
+ readonly contentType: Schema.optionalKey<Schema.Literals<readonly [
4594
+ "story",
4595
+ "saved_story",
4596
+ "spotlight"
4597
+ ]>>;
4598
+ readonly title: Schema.optionalKey<Schema.String>;
4599
+ readonly description: Schema.optionalKey<Schema.String>;
4600
+ readonly link: Schema.optionalKey<Schema.String>;
4601
+ readonly locale: Schema.optionalKey<Schema.String>;
4602
+ }>,
4603
+ Schema.Struct<{
4604
+ readonly firstComment: Schema.optionalKey<Schema.String>;
4605
+ readonly thread: Schema.optionalKey<Schema.$Array<Schema.String>>;
4606
+ }>,
4607
+ Schema.Struct<{
4608
+ readonly poll: Schema.optionalKey<Schema.Struct<{
4609
+ readonly options: Schema.$Array<Schema.String>;
4610
+ readonly durationMinutes: Schema.Number;
4611
+ }>>;
4612
+ readonly replySettings: Schema.optionalKey<Schema.Literals<readonly [
4613
+ "following",
4614
+ "mentionedUsers",
4615
+ "subscribers",
4616
+ "verified"
4617
+ ]>>;
4618
+ readonly quotePostId: Schema.optionalKey<Schema.String>;
4619
+ readonly mediaTaggedUserIds: Schema.optionalKey<Schema.$Array<Schema.String>>;
4620
+ readonly placeId: Schema.optionalKey<Schema.String>;
4621
+ readonly firstComment: Schema.optionalKey<Schema.String>;
4622
+ readonly thread: Schema.optionalKey<Schema.$Array<Schema.String>>;
4623
+ readonly article: Schema.optionalKey<Schema.Struct<{
4624
+ readonly title: Schema.String;
4625
+ readonly content: Schema.String;
4626
+ }>>;
4627
+ }>,
4628
+ Schema.Struct<{
4629
+ readonly title: Schema.String;
4630
+ readonly description: Schema.optionalKey<Schema.String>;
4631
+ readonly privacyStatus: Schema.Literals<readonly [
4632
+ "public",
4633
+ "unlisted",
4634
+ "private"
4635
+ ]>;
4636
+ readonly firstComment: Schema.optionalKey<Schema.String>;
4637
+ readonly tags: Schema.optionalKey<Schema.$Array<Schema.String>>;
4638
+ readonly categoryId: Schema.optionalKey<Schema.String>;
4639
+ readonly madeForKids: Schema.optionalKey<Schema.Boolean>;
4640
+ readonly containsSyntheticMedia: Schema.optionalKey<Schema.Boolean>;
4641
+ readonly thumbnailMediaId: Schema.optionalKey<Schema.brand<Schema.String, "MediaId">>;
4642
+ readonly notifySubscribers: Schema.optionalKey<Schema.Boolean>;
4643
+ readonly license: Schema.optionalKey<Schema.Literals<readonly [
4644
+ "youtube",
4645
+ "creativeCommon"
4646
+ ]>>;
4647
+ readonly embeddable: Schema.optionalKey<Schema.Boolean>;
4648
+ readonly publicStatsViewable: Schema.optionalKey<Schema.Boolean>;
4649
+ }>,
4650
+ Schema.Struct<{
4651
+ readonly title: Schema.optionalKey<Schema.String>;
4652
+ readonly description: Schema.optionalKey<Schema.String>;
4653
+ readonly link: Schema.optionalKey<Schema.String>;
4654
+ readonly altText: Schema.optionalKey<Schema.String>;
4655
+ }>,
4656
+ Schema.Union<readonly [
4657
+ Schema.Struct<{
4658
+ readonly format: Schema.optionalKey<Schema.Literal<"video">>;
4659
+ readonly disableDuet: Schema.optionalKey<Schema.Boolean>;
4660
+ readonly disableStitch: Schema.optionalKey<Schema.Boolean>;
4661
+ readonly privacy: Schema.Literals<readonly [
4662
+ "PUBLIC_TO_EVERYONE",
4663
+ "MUTUAL_FOLLOW_FRIENDS",
4664
+ "FOLLOWER_OF_CREATOR",
4665
+ "SELF_ONLY"
4666
+ ]>;
4667
+ readonly commercialDisclosure: Schema.optionalKey<Schema.Literals<readonly [
4668
+ "none",
4669
+ "own_brand",
4670
+ "paid_partnership"
4671
+ ]>>;
4672
+ readonly isAiGenerated: Schema.optionalKey<Schema.Boolean>;
4673
+ readonly disableComment: Schema.optionalKey<Schema.Boolean>;
4674
+ readonly nativeDraft: Schema.optionalKey<Schema.Boolean>;
4675
+ }>,
4676
+ Schema.Struct<{
4677
+ readonly format: Schema.Literal<"photo">;
4678
+ readonly title: Schema.optionalKey<Schema.String>;
4679
+ readonly coverIndex: Schema.optionalKey<Schema.Int>;
4680
+ readonly autoAddMusic: Schema.optionalKey<Schema.Boolean>;
4681
+ readonly privacy: Schema.Literals<readonly [
4682
+ "PUBLIC_TO_EVERYONE",
4683
+ "MUTUAL_FOLLOW_FRIENDS",
4684
+ "FOLLOWER_OF_CREATOR",
4685
+ "SELF_ONLY"
4686
+ ]>;
4687
+ readonly commercialDisclosure: Schema.optionalKey<Schema.Literals<readonly [
4688
+ "none",
4689
+ "own_brand",
4690
+ "paid_partnership"
4691
+ ]>>;
4692
+ readonly isAiGenerated: Schema.optionalKey<Schema.Boolean>;
4693
+ readonly disableComment: Schema.optionalKey<Schema.Boolean>;
4694
+ readonly nativeDraft: Schema.optionalKey<Schema.Boolean>;
4695
+ }>
4696
+ ]>,
4697
+ Schema.Struct<{
4698
+ readonly topicType: Schema.optionalKey<Schema.Literals<readonly [
4699
+ "standard",
4700
+ "event",
4701
+ "offer"
4702
+ ]>>;
4703
+ readonly title: Schema.optionalKey<Schema.String>;
4704
+ readonly startsAt: Schema.optionalKey<Schema.String>;
4705
+ readonly endsAt: Schema.optionalKey<Schema.String>;
4706
+ readonly couponCode: Schema.optionalKey<Schema.String>;
4707
+ readonly redeemUrl: Schema.optionalKey<Schema.String>;
4708
+ readonly terms: Schema.optionalKey<Schema.String>;
4709
+ readonly callToAction: Schema.optionalKey<Schema.Literals<readonly [
4710
+ "book",
4711
+ "order",
4712
+ "shop",
4713
+ "learn_more",
4714
+ "sign_up",
4715
+ "call"
4716
+ ]>>;
4717
+ readonly callToActionUrl: Schema.optionalKey<Schema.String>;
4718
+ }>
4719
+ ]>, never>>;
4720
+ }>>>;
4721
+ readonly expectedRevision: Schema.optionalKey<Schema.Int>;
4722
+ readonly platforms: Schema.optionalKey<Schema.$Array<Schema.Literals<readonly [
4723
+ "bluesky",
4724
+ "facebook",
4725
+ "instagram",
4726
+ "linkedin",
4727
+ "pinterest",
4728
+ "reddit",
4729
+ "snapchat",
4730
+ "tiktok",
4731
+ "threads",
4732
+ "x",
4733
+ "youtube",
4734
+ "google_business"
4735
+ ]>>>;
4736
+ readonly accounts: Schema.optionalKey<Schema.$Array<Schema.brand<Schema.String, "AccountId">>>;
4737
+ readonly text: Schema.optionalKey<Schema.Trim>;
4738
+ readonly media: Schema.optionalKey<Schema.$Array<Schema.Union<readonly [
4739
+ Schema.Struct<{
4740
+ readonly mediaId: Schema.brand<Schema.String, "MediaId">;
4741
+ }>,
4742
+ Schema.Struct<{
4743
+ readonly url: Schema.String;
4744
+ }>
4745
+ ]>>>;
4746
+ readonly scheduledAt: Schema.optionalKey<Schema.Union<readonly [
4747
+ Schema.String,
4748
+ Schema.Null
4749
+ ]>>;
4750
+ }>;
4751
+ type UpdatePost = typeof UpdatePost.Type;
4752
+ declare const Post: Schema.Struct<{
4753
+ readonly postId: Schema.brand<Schema.String, "PostId">;
4754
+ readonly isDraft: Schema.Boolean;
4755
+ readonly revision: Schema.Int;
4756
+ readonly text: Schema.Trim;
4757
+ readonly media: Schema.$Array<Schema.Union<readonly [
4758
+ Schema.Struct<{
4759
+ readonly mediaId: Schema.brand<Schema.String, "MediaId">;
4760
+ }>,
4761
+ Schema.Struct<{
4762
+ readonly url: Schema.String;
4763
+ }>
4764
+ ]>>;
4765
+ readonly targets: Schema.$Array<Schema.Union<readonly [
4766
+ Schema.Struct<{
4767
+ readonly settings: Schema.optionalKey<Schema.Struct<{
4768
+ readonly firstComment: Schema.optionalKey<Schema.String>;
4769
+ readonly thread: Schema.optionalKey<Schema.$Array<Schema.String>>;
4770
+ readonly altText: Schema.optionalKey<Schema.String>;
4771
+ }>>;
4772
+ readonly text: Schema.optionalKey<Schema.String>;
4773
+ readonly media: Schema.optionalKey<Schema.$Array<Schema.Union<readonly [
4774
+ Schema.Struct<{
4775
+ readonly mediaId: Schema.brand<Schema.String, "MediaId">;
4776
+ }>,
4777
+ Schema.Struct<{
4778
+ readonly url: Schema.String;
4779
+ }>
4780
+ ]>>>;
4781
+ readonly scheduledAt: Schema.optionalKey<Schema.Union<readonly [
4782
+ Schema.String,
4783
+ Schema.Null
4784
+ ]>>;
4785
+ readonly queueId: Schema.optionalKey<Schema.String>;
4786
+ readonly accountId: Schema.brand<Schema.String, "AccountId">;
4787
+ readonly provider: Schema.Literal<"bluesky">;
4788
+ readonly placement: Schema.Literal<"feed">;
4789
+ }>,
4790
+ Schema.Struct<{
4791
+ readonly settings: Schema.optionalKey<Schema.Struct<{
4792
+ readonly link: Schema.optionalKey<Schema.String>;
4793
+ readonly textFormatPresetId: Schema.optionalKey<Schema.String>;
4794
+ readonly albumId: Schema.optionalKey<Schema.String>;
4795
+ readonly firstComment: Schema.optionalKey<Schema.String>;
4796
+ readonly thread: Schema.optionalKey<Schema.$Array<Schema.String>>;
4797
+ readonly nativeDraft: Schema.optionalKey<Schema.Boolean>;
4798
+ readonly countries: Schema.optionalKey<Schema.$Array<Schema.String>>;
4799
+ }>>;
4800
+ readonly text: Schema.optionalKey<Schema.String>;
4801
+ readonly media: Schema.optionalKey<Schema.$Array<Schema.Union<readonly [
4802
+ Schema.Struct<{
4803
+ readonly mediaId: Schema.brand<Schema.String, "MediaId">;
4804
+ }>,
4805
+ Schema.Struct<{
4806
+ readonly url: Schema.String;
4807
+ }>
4808
+ ]>>>;
4809
+ readonly scheduledAt: Schema.optionalKey<Schema.Union<readonly [
4810
+ Schema.String,
4811
+ Schema.Null
4812
+ ]>>;
4813
+ readonly queueId: Schema.optionalKey<Schema.String>;
4814
+ readonly accountId: Schema.brand<Schema.String, "AccountId">;
4815
+ readonly provider: Schema.Literal<"facebook">;
4816
+ readonly placement: Schema.Literal<"feed">;
4817
+ }>,
4818
+ Schema.Struct<{
4819
+ readonly settings: Schema.optionalKey<Schema.Struct<{
4820
+ readonly title: Schema.optionalKey<Schema.String>;
4821
+ readonly isAiGenerated: Schema.optionalKey<Schema.Boolean>;
4822
+ readonly collaboratorPageIds: Schema.optionalKey<Schema.$Array<Schema.String>>;
4823
+ readonly firstComment: Schema.optionalKey<Schema.String>;
4824
+ readonly thread: Schema.optionalKey<Schema.$Array<Schema.String>>;
4825
+ readonly nativeDraft: Schema.optionalKey<Schema.Boolean>;
4826
+ readonly countries: Schema.optionalKey<Schema.$Array<Schema.String>>;
4827
+ }>>;
4828
+ readonly text: Schema.optionalKey<Schema.String>;
4829
+ readonly media: Schema.optionalKey<Schema.$Array<Schema.Union<readonly [
4830
+ Schema.Struct<{
4831
+ readonly mediaId: Schema.brand<Schema.String, "MediaId">;
4832
+ }>,
4833
+ Schema.Struct<{
4834
+ readonly url: Schema.String;
4835
+ }>
4836
+ ]>>>;
4837
+ readonly scheduledAt: Schema.optionalKey<Schema.Union<readonly [
4838
+ Schema.String,
4839
+ Schema.Null
4840
+ ]>>;
4841
+ readonly queueId: Schema.optionalKey<Schema.String>;
4842
+ readonly accountId: Schema.brand<Schema.String, "AccountId">;
4843
+ readonly provider: Schema.Literal<"facebook">;
4844
+ readonly placement: Schema.Literal<"reel">;
4845
+ }>,
4846
+ Schema.Struct<{
4847
+ readonly settings: Schema.optionalKey<Schema.Struct<{
4848
+ readonly isAiGenerated: Schema.optionalKey<Schema.Boolean>;
4849
+ }>>;
4850
+ readonly text: Schema.optionalKey<Schema.String>;
4851
+ readonly media: Schema.optionalKey<Schema.$Array<Schema.Union<readonly [
4852
+ Schema.Struct<{
4853
+ readonly mediaId: Schema.brand<Schema.String, "MediaId">;
4854
+ }>,
4855
+ Schema.Struct<{
4856
+ readonly url: Schema.String;
4857
+ }>
4858
+ ]>>>;
4859
+ readonly scheduledAt: Schema.optionalKey<Schema.Union<readonly [
4860
+ Schema.String,
4861
+ Schema.Null
4862
+ ]>>;
4863
+ readonly queueId: Schema.optionalKey<Schema.String>;
4864
+ readonly accountId: Schema.brand<Schema.String, "AccountId">;
4865
+ readonly provider: Schema.Literal<"facebook">;
4866
+ readonly placement: Schema.Literal<"story">;
4867
+ }>,
4868
+ Schema.Struct<{
4869
+ readonly settings: Schema.optionalKey<Schema.Struct<{
4870
+ readonly altText: Schema.optionalKey<Schema.String>;
4871
+ readonly userTags: Schema.optionalKey<Schema.$Array<Schema.Struct<{
4872
+ readonly username: Schema.String;
4873
+ readonly x: Schema.optionalKey<Schema.Number>;
4874
+ readonly y: Schema.optionalKey<Schema.Number>;
4875
+ }>>>;
4876
+ readonly firstComment: Schema.optionalKey<Schema.String>;
4877
+ readonly commentsEnabled: Schema.optionalKey<Schema.Boolean>;
4878
+ readonly collaborators: Schema.optionalKey<Schema.$Array<Schema.String>>;
4879
+ readonly locationId: Schema.optionalKey<Schema.String>;
4880
+ readonly isPaidPartnership: Schema.optionalKey<Schema.Boolean>;
4881
+ readonly brandedContentSponsors: Schema.optionalKey<Schema.$Array<Schema.Union<readonly [
4882
+ Schema.String,
4883
+ Schema.String
4884
+ ]>>>;
4885
+ readonly isAiGenerated: Schema.optionalKey<Schema.Boolean>;
4886
+ }>>;
4887
+ readonly text: Schema.optionalKey<Schema.String>;
4888
+ readonly media: Schema.optionalKey<Schema.$Array<Schema.Union<readonly [
4889
+ Schema.Struct<{
4890
+ readonly mediaId: Schema.brand<Schema.String, "MediaId">;
4891
+ }>,
4892
+ Schema.Struct<{
4893
+ readonly url: Schema.String;
4894
+ }>
4895
+ ]>>>;
4896
+ readonly scheduledAt: Schema.optionalKey<Schema.Union<readonly [
4897
+ Schema.String,
4898
+ Schema.Null
4899
+ ]>>;
4900
+ readonly queueId: Schema.optionalKey<Schema.String>;
4901
+ readonly accountId: Schema.brand<Schema.String, "AccountId">;
4902
+ readonly provider: Schema.Literal<"instagram">;
4903
+ readonly placement: Schema.Literal<"feed">;
4904
+ }>,
4905
+ Schema.Struct<{
4906
+ readonly settings: Schema.optionalKey<Schema.Struct<{
4907
+ readonly shareToFeed: Schema.optionalKey<Schema.Boolean>;
4908
+ readonly muteAudio: Schema.optionalKey<Schema.Boolean>;
4909
+ readonly audioConfiguration: Schema.optionalKey<Schema.Struct<{
4910
+ readonly audioId: Schema.String;
4911
+ readonly audioVolume: Schema.optionalKey<Schema.Int>;
4912
+ readonly videoVolume: Schema.optionalKey<Schema.Int>;
4913
+ }>>;
4914
+ readonly coverUrl: Schema.optionalKey<Schema.String>;
4915
+ readonly thumbOffset: Schema.optionalKey<Schema.Int>;
4916
+ readonly audioName: Schema.optionalKey<Schema.String>;
4917
+ readonly trial: Schema.optionalKey<Schema.Struct<{
4918
+ readonly graduationStrategy: Schema.Literals<readonly [
4919
+ "MANUAL",
4920
+ "SS_PERFORMANCE"
4921
+ ]>;
4922
+ }>>;
4923
+ readonly userTags: Schema.optionalKey<Schema.$Array<Schema.Struct<{
4924
+ readonly username: Schema.String;
4925
+ readonly x: Schema.optionalKey<Schema.Number>;
4926
+ readonly y: Schema.optionalKey<Schema.Number>;
4927
+ }>>>;
4928
+ readonly firstComment: Schema.optionalKey<Schema.String>;
4929
+ readonly commentsEnabled: Schema.optionalKey<Schema.Boolean>;
4930
+ readonly collaborators: Schema.optionalKey<Schema.$Array<Schema.String>>;
4931
+ readonly locationId: Schema.optionalKey<Schema.String>;
4932
+ readonly isPaidPartnership: Schema.optionalKey<Schema.Boolean>;
4933
+ readonly brandedContentSponsors: Schema.optionalKey<Schema.$Array<Schema.Union<readonly [
4934
+ Schema.String,
4935
+ Schema.String
4936
+ ]>>>;
4937
+ readonly isAiGenerated: Schema.optionalKey<Schema.Boolean>;
4938
+ }>>;
4939
+ readonly text: Schema.optionalKey<Schema.String>;
4940
+ readonly media: Schema.optionalKey<Schema.$Array<Schema.Union<readonly [
4941
+ Schema.Struct<{
4942
+ readonly mediaId: Schema.brand<Schema.String, "MediaId">;
4943
+ }>,
4420
4944
  Schema.Struct<{
4421
4945
  readonly url: Schema.String;
4422
4946
  }>
@@ -4500,6 +5024,16 @@ declare const UpdatePost: Schema.Struct<{
4500
5024
  }>,
4501
5025
  Schema.Struct<{
4502
5026
  readonly settings: Schema.optionalKey<Schema.Struct<{
5027
+ readonly poll: Schema.optionalKey<Schema.Struct<{
5028
+ readonly question: Schema.String;
5029
+ readonly options: Schema.$Array<Schema.String>;
5030
+ readonly duration: Schema.Literals<readonly [
5031
+ "ONE_DAY",
5032
+ "THREE_DAYS",
5033
+ "SEVEN_DAYS",
5034
+ "FOURTEEN_DAYS"
5035
+ ]>;
5036
+ }>>;
4503
5037
  readonly firstComment: Schema.optionalKey<Schema.String>;
4504
5038
  readonly thread: Schema.optionalKey<Schema.$Array<Schema.String>>;
4505
5039
  readonly visibility: Schema.optionalKey<Schema.Literals<readonly [
@@ -4552,6 +5086,19 @@ declare const UpdatePost: Schema.Struct<{
4552
5086
  }>,
4553
5087
  Schema.Struct<{
4554
5088
  readonly settings: Schema.optionalKey<Schema.Struct<{
5089
+ readonly poll: Schema.optionalKey<Schema.Struct<{
5090
+ readonly options: Schema.$Array<Schema.String>;
5091
+ readonly durationMinutes: Schema.Number;
5092
+ }>>;
5093
+ readonly replySettings: Schema.optionalKey<Schema.Literals<readonly [
5094
+ "following",
5095
+ "mentionedUsers",
5096
+ "subscribers",
5097
+ "verified"
5098
+ ]>>;
5099
+ readonly quotePostId: Schema.optionalKey<Schema.String>;
5100
+ readonly mediaTaggedUserIds: Schema.optionalKey<Schema.$Array<Schema.String>>;
5101
+ readonly placeId: Schema.optionalKey<Schema.String>;
4555
5102
  readonly firstComment: Schema.optionalKey<Schema.String>;
4556
5103
  readonly thread: Schema.optionalKey<Schema.$Array<Schema.String>>;
4557
5104
  readonly article: Schema.optionalKey<Schema.Struct<{
@@ -4586,6 +5133,7 @@ declare const UpdatePost: Schema.Struct<{
4586
5133
  "unlisted",
4587
5134
  "private"
4588
5135
  ]>;
5136
+ readonly firstComment: Schema.optionalKey<Schema.String>;
4589
5137
  readonly tags: Schema.optionalKey<Schema.$Array<Schema.String>>;
4590
5138
  readonly categoryId: Schema.optionalKey<Schema.String>;
4591
5139
  readonly madeForKids: Schema.optionalKey<Schema.Boolean>;
@@ -4764,7 +5312,28 @@ declare const UpdatePost: Schema.Struct<{
4764
5312
  readonly placement: Schema.Literal<"feed">;
4765
5313
  }>,
4766
5314
  Schema.Struct<{
4767
- readonly settings: Schema.optionalKey<Schema.Struct<{}>>;
5315
+ readonly settings: Schema.optionalKey<Schema.Struct<{
5316
+ readonly topicType: Schema.optionalKey<Schema.Literals<readonly [
5317
+ "standard",
5318
+ "event",
5319
+ "offer"
5320
+ ]>>;
5321
+ readonly title: Schema.optionalKey<Schema.String>;
5322
+ readonly startsAt: Schema.optionalKey<Schema.String>;
5323
+ readonly endsAt: Schema.optionalKey<Schema.String>;
5324
+ readonly couponCode: Schema.optionalKey<Schema.String>;
5325
+ readonly redeemUrl: Schema.optionalKey<Schema.String>;
5326
+ readonly terms: Schema.optionalKey<Schema.String>;
5327
+ readonly callToAction: Schema.optionalKey<Schema.Literals<readonly [
5328
+ "book",
5329
+ "order",
5330
+ "shop",
5331
+ "learn_more",
5332
+ "sign_up",
5333
+ "call"
5334
+ ]>>;
5335
+ readonly callToActionUrl: Schema.optionalKey<Schema.String>;
5336
+ }>>;
4768
5337
  readonly text: Schema.optionalKey<Schema.String>;
4769
5338
  readonly media: Schema.optionalKey<Schema.$Array<Schema.Union<readonly [
4770
5339
  Schema.Struct<{
@@ -4783,18 +5352,100 @@ declare const UpdatePost: Schema.Struct<{
4783
5352
  readonly provider: Schema.Literal<"google_business">;
4784
5353
  readonly placement: Schema.Literal<"feed">;
4785
5354
  }>
4786
- ]>>>;
4787
- readonly media: Schema.optionalKey<Schema.$Array<Schema.Union<readonly [
4788
- Schema.Struct<{
4789
- readonly mediaId: Schema.brand<Schema.String, "MediaId">;
4790
- }>,
4791
- Schema.Struct<{
4792
- readonly url: Schema.String;
4793
- }>
4794
- ]>>>;
5355
+ ]>>;
5356
+ readonly scheduledAt: Schema.NullOr<Schema.String>;
5357
+ readonly deliveries: Schema.$Array<Schema.Struct<{
5358
+ readonly status: Schema.Literals<readonly [
5359
+ "scheduled",
5360
+ "queued",
5361
+ "submitting",
5362
+ "confirming",
5363
+ "published",
5364
+ "provider_draft",
5365
+ "failed",
5366
+ "unresolved",
5367
+ "cancelled"
5368
+ ]>;
5369
+ readonly providerRef: Schema.optionalKey<Schema.Struct<{
5370
+ readonly id: Schema.String;
5371
+ readonly kind: Schema.String;
5372
+ }>>;
5373
+ readonly url: Schema.optionalKey<Schema.String>;
5374
+ readonly issue: Schema.optionalKey<Schema.Literals<readonly [
5375
+ "authorization_changed",
5376
+ "account_not_ready",
5377
+ "credential_unavailable",
5378
+ "media_preparation_failed",
5379
+ "video_compression_failed",
5380
+ "audio_unavailable",
5381
+ "provider_rejected",
5382
+ "tiktok_settings_unavailable",
5383
+ "tiktok_settings_not_allowed",
5384
+ "tiktok_processing_failed",
5385
+ "submission_uncertain",
5386
+ "confirmation_unavailable",
5387
+ "billing_inactive",
5388
+ "spend_cap_reached",
5389
+ "insufficient_credit"
5390
+ ]>>;
5391
+ readonly canRetry: Schema.Boolean;
5392
+ readonly canReconcile: Schema.Boolean;
5393
+ readonly nextAction: Schema.optionalKey<Schema.String>;
5394
+ readonly revision: Schema.Int;
5395
+ readonly provider: Schema.Literals<readonly [
5396
+ "bluesky",
5397
+ "facebook",
5398
+ "instagram",
5399
+ "linkedin",
5400
+ "pinterest",
5401
+ "reddit",
5402
+ "snapchat",
5403
+ "tiktok",
5404
+ "threads",
5405
+ "x",
5406
+ "youtube",
5407
+ "google_business"
5408
+ ]>;
5409
+ readonly placement: Schema.Literals<readonly [
5410
+ "feed",
5411
+ "reel",
5412
+ "story",
5413
+ "carousel",
5414
+ "video",
5415
+ "pin"
5416
+ ]>;
5417
+ readonly queueId: Schema.optionalKey<Schema.String>;
5418
+ readonly slotId: Schema.optionalKey<Schema.String>;
5419
+ readonly assignmentId: Schema.optionalKey<Schema.String>;
5420
+ readonly occurrenceDate: Schema.optionalKey<Schema.String>;
5421
+ readonly localDate: Schema.optionalKey<Schema.String>;
5422
+ readonly localTime: Schema.optionalKey<Schema.String>;
5423
+ readonly timezone: Schema.optionalKey<Schema.String>;
5424
+ readonly targetId: Schema.brand<Schema.String, "TargetId">;
5425
+ readonly attemptId: Schema.brand<Schema.String, "AttemptId">;
5426
+ readonly accountId: Schema.brand<Schema.String, "AccountId">;
5427
+ readonly scheduledAt: Schema.optionalKey<Schema.String>;
5428
+ }>>;
5429
+ readonly status: Schema.Union<readonly [
5430
+ Schema.Literal<"draft">,
5431
+ Schema.Literals<readonly [
5432
+ "scheduled",
5433
+ "queued",
5434
+ "submitting",
5435
+ "confirming",
5436
+ "published",
5437
+ "provider_draft",
5438
+ "failed",
5439
+ "unresolved",
5440
+ "cancelled"
5441
+ ]>
5442
+ ]>;
5443
+ readonly createdAt: Schema.String;
5444
+ readonly updatedAt: Schema.String;
4795
5445
  }>;
4796
- type UpdatePost = typeof UpdatePost.Type;
4797
- declare const Post: Schema.Struct<{
5446
+ type Post = typeof Post.Type;
5447
+ declare const PostCreated: Schema.Struct<{
5448
+ readonly idempotencyKey: Schema.optionalKey<Schema.String>;
4798
5449
  readonly postId: Schema.brand<Schema.String, "PostId">;
4799
5450
  readonly isDraft: Schema.Boolean;
4800
5451
  readonly revision: Schema.Int;
@@ -5069,6 +5720,16 @@ declare const Post: Schema.Struct<{
5069
5720
  }>,
5070
5721
  Schema.Struct<{
5071
5722
  readonly settings: Schema.optionalKey<Schema.Struct<{
5723
+ readonly poll: Schema.optionalKey<Schema.Struct<{
5724
+ readonly question: Schema.String;
5725
+ readonly options: Schema.$Array<Schema.String>;
5726
+ readonly duration: Schema.Literals<readonly [
5727
+ "ONE_DAY",
5728
+ "THREE_DAYS",
5729
+ "SEVEN_DAYS",
5730
+ "FOURTEEN_DAYS"
5731
+ ]>;
5732
+ }>>;
5072
5733
  readonly firstComment: Schema.optionalKey<Schema.String>;
5073
5734
  readonly thread: Schema.optionalKey<Schema.$Array<Schema.String>>;
5074
5735
  readonly visibility: Schema.optionalKey<Schema.Literals<readonly [
@@ -5121,6 +5782,19 @@ declare const Post: Schema.Struct<{
5121
5782
  }>,
5122
5783
  Schema.Struct<{
5123
5784
  readonly settings: Schema.optionalKey<Schema.Struct<{
5785
+ readonly poll: Schema.optionalKey<Schema.Struct<{
5786
+ readonly options: Schema.$Array<Schema.String>;
5787
+ readonly durationMinutes: Schema.Number;
5788
+ }>>;
5789
+ readonly replySettings: Schema.optionalKey<Schema.Literals<readonly [
5790
+ "following",
5791
+ "mentionedUsers",
5792
+ "subscribers",
5793
+ "verified"
5794
+ ]>>;
5795
+ readonly quotePostId: Schema.optionalKey<Schema.String>;
5796
+ readonly mediaTaggedUserIds: Schema.optionalKey<Schema.$Array<Schema.String>>;
5797
+ readonly placeId: Schema.optionalKey<Schema.String>;
5124
5798
  readonly firstComment: Schema.optionalKey<Schema.String>;
5125
5799
  readonly thread: Schema.optionalKey<Schema.$Array<Schema.String>>;
5126
5800
  readonly article: Schema.optionalKey<Schema.Struct<{
@@ -5155,6 +5829,7 @@ declare const Post: Schema.Struct<{
5155
5829
  "unlisted",
5156
5830
  "private"
5157
5831
  ]>;
5832
+ readonly firstComment: Schema.optionalKey<Schema.String>;
5158
5833
  readonly tags: Schema.optionalKey<Schema.$Array<Schema.String>>;
5159
5834
  readonly categoryId: Schema.optionalKey<Schema.String>;
5160
5835
  readonly madeForKids: Schema.optionalKey<Schema.Boolean>;
@@ -5333,7 +6008,28 @@ declare const Post: Schema.Struct<{
5333
6008
  readonly placement: Schema.Literal<"feed">;
5334
6009
  }>,
5335
6010
  Schema.Struct<{
5336
- readonly settings: Schema.optionalKey<Schema.Struct<{}>>;
6011
+ readonly settings: Schema.optionalKey<Schema.Struct<{
6012
+ readonly topicType: Schema.optionalKey<Schema.Literals<readonly [
6013
+ "standard",
6014
+ "event",
6015
+ "offer"
6016
+ ]>>;
6017
+ readonly title: Schema.optionalKey<Schema.String>;
6018
+ readonly startsAt: Schema.optionalKey<Schema.String>;
6019
+ readonly endsAt: Schema.optionalKey<Schema.String>;
6020
+ readonly couponCode: Schema.optionalKey<Schema.String>;
6021
+ readonly redeemUrl: Schema.optionalKey<Schema.String>;
6022
+ readonly terms: Schema.optionalKey<Schema.String>;
6023
+ readonly callToAction: Schema.optionalKey<Schema.Literals<readonly [
6024
+ "book",
6025
+ "order",
6026
+ "shop",
6027
+ "learn_more",
6028
+ "sign_up",
6029
+ "call"
6030
+ ]>>;
6031
+ readonly callToActionUrl: Schema.optionalKey<Schema.String>;
6032
+ }>>;
5337
6033
  readonly text: Schema.optionalKey<Schema.String>;
5338
6034
  readonly media: Schema.optionalKey<Schema.$Array<Schema.Union<readonly [
5339
6035
  Schema.Struct<{
@@ -5353,6 +6049,7 @@ declare const Post: Schema.Struct<{
5353
6049
  readonly placement: Schema.Literal<"feed">;
5354
6050
  }>
5355
6051
  ]>>;
6052
+ readonly scheduledAt: Schema.NullOr<Schema.String>;
5356
6053
  readonly deliveries: Schema.$Array<Schema.Struct<{
5357
6054
  readonly status: Schema.Literals<readonly [
5358
6055
  "scheduled",
@@ -5382,7 +6079,10 @@ declare const Post: Schema.Struct<{
5382
6079
  "tiktok_settings_not_allowed",
5383
6080
  "tiktok_processing_failed",
5384
6081
  "submission_uncertain",
5385
- "confirmation_unavailable"
6082
+ "confirmation_unavailable",
6083
+ "billing_inactive",
6084
+ "spend_cap_reached",
6085
+ "insufficient_credit"
5386
6086
  ]>>;
5387
6087
  readonly canRetry: Schema.Boolean;
5388
6088
  readonly canReconcile: Schema.Boolean;
@@ -5439,7 +6139,7 @@ declare const Post: Schema.Struct<{
5439
6139
  readonly createdAt: Schema.String;
5440
6140
  readonly updatedAt: Schema.String;
5441
6141
  }>;
5442
- type Post = typeof Post.Type;
6142
+ type PostCreated = typeof PostCreated.Type;
5443
6143
  declare const PostCreateResult: Schema.Union<readonly [
5444
6144
  Schema.Struct<{
5445
6145
  readonly postId: Schema.brand<Schema.String, "PostId">;
@@ -5716,6 +6416,16 @@ declare const PostCreateResult: Schema.Union<readonly [
5716
6416
  }>,
5717
6417
  Schema.Struct<{
5718
6418
  readonly settings: Schema.optionalKey<Schema.Struct<{
6419
+ readonly poll: Schema.optionalKey<Schema.Struct<{
6420
+ readonly question: Schema.String;
6421
+ readonly options: Schema.$Array<Schema.String>;
6422
+ readonly duration: Schema.Literals<readonly [
6423
+ "ONE_DAY",
6424
+ "THREE_DAYS",
6425
+ "SEVEN_DAYS",
6426
+ "FOURTEEN_DAYS"
6427
+ ]>;
6428
+ }>>;
5719
6429
  readonly firstComment: Schema.optionalKey<Schema.String>;
5720
6430
  readonly thread: Schema.optionalKey<Schema.$Array<Schema.String>>;
5721
6431
  readonly visibility: Schema.optionalKey<Schema.Literals<readonly [
@@ -5768,6 +6478,19 @@ declare const PostCreateResult: Schema.Union<readonly [
5768
6478
  }>,
5769
6479
  Schema.Struct<{
5770
6480
  readonly settings: Schema.optionalKey<Schema.Struct<{
6481
+ readonly poll: Schema.optionalKey<Schema.Struct<{
6482
+ readonly options: Schema.$Array<Schema.String>;
6483
+ readonly durationMinutes: Schema.Number;
6484
+ }>>;
6485
+ readonly replySettings: Schema.optionalKey<Schema.Literals<readonly [
6486
+ "following",
6487
+ "mentionedUsers",
6488
+ "subscribers",
6489
+ "verified"
6490
+ ]>>;
6491
+ readonly quotePostId: Schema.optionalKey<Schema.String>;
6492
+ readonly mediaTaggedUserIds: Schema.optionalKey<Schema.$Array<Schema.String>>;
6493
+ readonly placeId: Schema.optionalKey<Schema.String>;
5771
6494
  readonly firstComment: Schema.optionalKey<Schema.String>;
5772
6495
  readonly thread: Schema.optionalKey<Schema.$Array<Schema.String>>;
5773
6496
  readonly article: Schema.optionalKey<Schema.Struct<{
@@ -5802,6 +6525,7 @@ declare const PostCreateResult: Schema.Union<readonly [
5802
6525
  "unlisted",
5803
6526
  "private"
5804
6527
  ]>;
6528
+ readonly firstComment: Schema.optionalKey<Schema.String>;
5805
6529
  readonly tags: Schema.optionalKey<Schema.$Array<Schema.String>>;
5806
6530
  readonly categoryId: Schema.optionalKey<Schema.String>;
5807
6531
  readonly madeForKids: Schema.optionalKey<Schema.Boolean>;
@@ -5980,7 +6704,28 @@ declare const PostCreateResult: Schema.Union<readonly [
5980
6704
  readonly placement: Schema.Literal<"feed">;
5981
6705
  }>,
5982
6706
  Schema.Struct<{
5983
- readonly settings: Schema.optionalKey<Schema.Struct<{}>>;
6707
+ readonly settings: Schema.optionalKey<Schema.Struct<{
6708
+ readonly topicType: Schema.optionalKey<Schema.Literals<readonly [
6709
+ "standard",
6710
+ "event",
6711
+ "offer"
6712
+ ]>>;
6713
+ readonly title: Schema.optionalKey<Schema.String>;
6714
+ readonly startsAt: Schema.optionalKey<Schema.String>;
6715
+ readonly endsAt: Schema.optionalKey<Schema.String>;
6716
+ readonly couponCode: Schema.optionalKey<Schema.String>;
6717
+ readonly redeemUrl: Schema.optionalKey<Schema.String>;
6718
+ readonly terms: Schema.optionalKey<Schema.String>;
6719
+ readonly callToAction: Schema.optionalKey<Schema.Literals<readonly [
6720
+ "book",
6721
+ "order",
6722
+ "shop",
6723
+ "learn_more",
6724
+ "sign_up",
6725
+ "call"
6726
+ ]>>;
6727
+ readonly callToActionUrl: Schema.optionalKey<Schema.String>;
6728
+ }>>;
5984
6729
  readonly text: Schema.optionalKey<Schema.String>;
5985
6730
  readonly media: Schema.optionalKey<Schema.$Array<Schema.Union<readonly [
5986
6731
  Schema.Struct<{
@@ -6000,6 +6745,7 @@ declare const PostCreateResult: Schema.Union<readonly [
6000
6745
  readonly placement: Schema.Literal<"feed">;
6001
6746
  }>
6002
6747
  ]>>;
6748
+ readonly scheduledAt: Schema.NullOr<Schema.String>;
6003
6749
  readonly deliveries: Schema.$Array<Schema.Struct<{
6004
6750
  readonly status: Schema.Literals<readonly [
6005
6751
  "scheduled",
@@ -6029,7 +6775,10 @@ declare const PostCreateResult: Schema.Union<readonly [
6029
6775
  "tiktok_settings_not_allowed",
6030
6776
  "tiktok_processing_failed",
6031
6777
  "submission_uncertain",
6032
- "confirmation_unavailable"
6778
+ "confirmation_unavailable",
6779
+ "billing_inactive",
6780
+ "spend_cap_reached",
6781
+ "insufficient_credit"
6033
6782
  ]>>;
6034
6783
  readonly canRetry: Schema.Boolean;
6035
6784
  readonly canReconcile: Schema.Boolean;
@@ -6167,6 +6916,8 @@ declare const PostCreateResult: Schema.Union<readonly [
6167
6916
  "tiktok_upload_required",
6168
6917
  "tiktok_too_many_mentions",
6169
6918
  "queue_and_time_conflict",
6919
+ "queue_not_found",
6920
+ "queue_unavailable",
6170
6921
  "invalid_field",
6171
6922
  "account_ambiguous",
6172
6923
  "unsupported_placement",
@@ -6179,6 +6930,10 @@ declare const PostCreateResult: Schema.Union<readonly [
6179
6930
  Schema.Int
6180
6931
  ]>>;
6181
6932
  readonly message: Schema.String;
6933
+ readonly candidates: Schema.optionalKey<Schema.$Array<Schema.Struct<{
6934
+ readonly accountId: Schema.brand<Schema.String, "AccountId">;
6935
+ readonly name: Schema.String;
6936
+ }>>>;
6182
6937
  }>>;
6183
6938
  readonly billing: Schema.optionalKey<Schema.Struct<{
6184
6939
  readonly estimatedCostMicros: Schema.Int;
@@ -6235,6 +6990,8 @@ declare const PostValidation: Schema.Struct<{
6235
6990
  "tiktok_upload_required",
6236
6991
  "tiktok_too_many_mentions",
6237
6992
  "queue_and_time_conflict",
6993
+ "queue_not_found",
6994
+ "queue_unavailable",
6238
6995
  "invalid_field",
6239
6996
  "account_ambiguous",
6240
6997
  "unsupported_placement",
@@ -6247,6 +7004,10 @@ declare const PostValidation: Schema.Struct<{
6247
7004
  Schema.Int
6248
7005
  ]>>;
6249
7006
  readonly message: Schema.String;
7007
+ readonly candidates: Schema.optionalKey<Schema.$Array<Schema.Struct<{
7008
+ readonly accountId: Schema.brand<Schema.String, "AccountId">;
7009
+ readonly name: Schema.String;
7010
+ }>>>;
6250
7011
  }>>;
6251
7012
  readonly warnings: Schema.$Array<Schema.Struct<{
6252
7013
  readonly code: Schema.Literals<readonly [
@@ -6276,6 +7037,8 @@ declare const PostValidation: Schema.Struct<{
6276
7037
  "tiktok_upload_required",
6277
7038
  "tiktok_too_many_mentions",
6278
7039
  "queue_and_time_conflict",
7040
+ "queue_not_found",
7041
+ "queue_unavailable",
6279
7042
  "invalid_field",
6280
7043
  "account_ambiguous",
6281
7044
  "unsupported_placement",
@@ -6288,6 +7051,10 @@ declare const PostValidation: Schema.Struct<{
6288
7051
  Schema.Int
6289
7052
  ]>>;
6290
7053
  readonly message: Schema.String;
7054
+ readonly candidates: Schema.optionalKey<Schema.$Array<Schema.Struct<{
7055
+ readonly accountId: Schema.brand<Schema.String, "AccountId">;
7056
+ readonly name: Schema.String;
7057
+ }>>>;
6291
7058
  }>>;
6292
7059
  readonly targets: Schema.$Array<Schema.Struct<{
6293
7060
  readonly accountId: Schema.brand<Schema.String, "AccountId">;
@@ -6346,6 +7113,8 @@ declare const PostValidation: Schema.Struct<{
6346
7113
  "tiktok_upload_required",
6347
7114
  "tiktok_too_many_mentions",
6348
7115
  "queue_and_time_conflict",
7116
+ "queue_not_found",
7117
+ "queue_unavailable",
6349
7118
  "invalid_field",
6350
7119
  "account_ambiguous",
6351
7120
  "unsupported_placement",
@@ -6358,6 +7127,10 @@ declare const PostValidation: Schema.Struct<{
6358
7127
  Schema.Int
6359
7128
  ]>>;
6360
7129
  readonly message: Schema.String;
7130
+ readonly candidates: Schema.optionalKey<Schema.$Array<Schema.Struct<{
7131
+ readonly accountId: Schema.brand<Schema.String, "AccountId">;
7132
+ readonly name: Schema.String;
7133
+ }>>>;
6361
7134
  }>>;
6362
7135
  readonly warnings: Schema.$Array<Schema.Struct<{
6363
7136
  readonly code: Schema.Literals<readonly [
@@ -6387,6 +7160,8 @@ declare const PostValidation: Schema.Struct<{
6387
7160
  "tiktok_upload_required",
6388
7161
  "tiktok_too_many_mentions",
6389
7162
  "queue_and_time_conflict",
7163
+ "queue_not_found",
7164
+ "queue_unavailable",
6390
7165
  "invalid_field",
6391
7166
  "account_ambiguous",
6392
7167
  "unsupported_placement",
@@ -6399,6 +7174,10 @@ declare const PostValidation: Schema.Struct<{
6399
7174
  Schema.Int
6400
7175
  ]>>;
6401
7176
  readonly message: Schema.String;
7177
+ readonly candidates: Schema.optionalKey<Schema.$Array<Schema.Struct<{
7178
+ readonly accountId: Schema.brand<Schema.String, "AccountId">;
7179
+ readonly name: Schema.String;
7180
+ }>>>;
6402
7181
  }>>;
6403
7182
  }>>;
6404
7183
  readonly billing: Schema.optionalKey<Schema.Struct<{
@@ -7241,6 +8020,25 @@ declare const InboxCapabilities: Schema.Struct<{
7241
8020
  readonly backfillDays: Schema.Int;
7242
8021
  readonly missingScopes: Schema.$Array<Schema.String>;
7243
8022
  readonly missingTasks: Schema.$Array<Schema.String>;
8023
+ readonly unavailable: Schema.NullOr<Schema.Struct<{
8024
+ readonly reason: Schema.Literals<readonly [
8025
+ "provider_subscription_limit",
8026
+ "missing_scopes",
8027
+ "webhook_invalid",
8028
+ "subscription_pending",
8029
+ "plan_required",
8030
+ "insufficient_credit",
8031
+ "spend_cap_reached"
8032
+ ]>;
8033
+ readonly action: Schema.Literals<readonly [
8034
+ "contact_pubnio",
8035
+ "reconnect_account",
8036
+ "wait_for_repair",
8037
+ "upgrade_plan",
8038
+ "add_credit",
8039
+ "raise_spend_cap"
8040
+ ]>;
8041
+ }>>;
7244
8042
  }>;
7245
8043
  readonly comments: Schema.Struct<{
7246
8044
  readonly resource: Schema.Literals<readonly [
@@ -7276,6 +8074,25 @@ declare const InboxCapabilities: Schema.Struct<{
7276
8074
  readonly backfillDays: Schema.Int;
7277
8075
  readonly missingScopes: Schema.$Array<Schema.String>;
7278
8076
  readonly missingTasks: Schema.$Array<Schema.String>;
8077
+ readonly unavailable: Schema.NullOr<Schema.Struct<{
8078
+ readonly reason: Schema.Literals<readonly [
8079
+ "provider_subscription_limit",
8080
+ "missing_scopes",
8081
+ "webhook_invalid",
8082
+ "subscription_pending",
8083
+ "plan_required",
8084
+ "insufficient_credit",
8085
+ "spend_cap_reached"
8086
+ ]>;
8087
+ readonly action: Schema.Literals<readonly [
8088
+ "contact_pubnio",
8089
+ "reconnect_account",
8090
+ "wait_for_repair",
8091
+ "upgrade_plan",
8092
+ "add_credit",
8093
+ "raise_spend_cap"
8094
+ ]>;
8095
+ }>>;
7279
8096
  }>;
7280
8097
  readonly mentions: Schema.Struct<{
7281
8098
  readonly resource: Schema.Literals<readonly [
@@ -7311,6 +8128,25 @@ declare const InboxCapabilities: Schema.Struct<{
7311
8128
  readonly backfillDays: Schema.Int;
7312
8129
  readonly missingScopes: Schema.$Array<Schema.String>;
7313
8130
  readonly missingTasks: Schema.$Array<Schema.String>;
8131
+ readonly unavailable: Schema.NullOr<Schema.Struct<{
8132
+ readonly reason: Schema.Literals<readonly [
8133
+ "provider_subscription_limit",
8134
+ "missing_scopes",
8135
+ "webhook_invalid",
8136
+ "subscription_pending",
8137
+ "plan_required",
8138
+ "insufficient_credit",
8139
+ "spend_cap_reached"
8140
+ ]>;
8141
+ readonly action: Schema.Literals<readonly [
8142
+ "contact_pubnio",
8143
+ "reconnect_account",
8144
+ "wait_for_repair",
8145
+ "upgrade_plan",
8146
+ "add_credit",
8147
+ "raise_spend_cap"
8148
+ ]>;
8149
+ }>>;
7314
8150
  }>;
7315
8151
  readonly replyWindow: Schema.Struct<{
7316
8152
  readonly open: Schema.Boolean;
@@ -7322,6 +8158,11 @@ declare const InboxCapabilities: Schema.Struct<{
7322
8158
  readonly endsAt: Schema.NullOr<Schema.String>;
7323
8159
  }>;
7324
8160
  readonly lastSyncError: Schema.NullOr<Schema.String>;
8161
+ readonly deliveryGap: Schema.NullOr<Schema.Struct<{
8162
+ readonly from: Schema.String;
8163
+ readonly to: Schema.String;
8164
+ readonly action: Schema.Literal<"review_on_x">;
8165
+ }>>;
7325
8166
  readonly checkedAt: Schema.String;
7326
8167
  }>>;
7327
8168
  }>;
@@ -10394,7 +11235,8 @@ declare const CreateWebhookEndpoint: Schema.Struct<{
10394
11235
  "billing.credit.topped_up",
10395
11236
  "billing.credit.low",
10396
11237
  "billing.spend_cap.reached",
10397
- "billing.invoice.payment_failed"
11238
+ "billing.invoice.payment_failed",
11239
+ "billing.subscription.duplicate_refunded"
10398
11240
  ]>>;
10399
11241
  readonly enabled: Schema.optionalKey<Schema.Boolean>;
10400
11242
  readonly profileId: Schema.optionalKey<Schema.brand<Schema.String, "ProfileId">>;
@@ -10467,7 +11309,8 @@ declare const UpdateWebhookEndpoint: Schema.Struct<{
10467
11309
  "billing.credit.topped_up",
10468
11310
  "billing.credit.low",
10469
11311
  "billing.spend_cap.reached",
10470
- "billing.invoice.payment_failed"
11312
+ "billing.invoice.payment_failed",
11313
+ "billing.subscription.duplicate_refunded"
10471
11314
  ]>>>;
10472
11315
  readonly enabled: Schema.optionalKey<Schema.Boolean>;
10473
11316
  readonly profileId: Schema.optionalKey<Schema.NullOr<Schema.brand<Schema.String, "ProfileId">>>;
@@ -10542,7 +11385,8 @@ declare const WebhookEndpoint: Schema.Struct<{
10542
11385
  "billing.credit.topped_up",
10543
11386
  "billing.credit.low",
10544
11387
  "billing.spend_cap.reached",
10545
- "billing.invoice.payment_failed"
11388
+ "billing.invoice.payment_failed",
11389
+ "billing.subscription.duplicate_refunded"
10546
11390
  ]>>;
10547
11391
  readonly enabled: Schema.Boolean;
10548
11392
  readonly profileId: Schema.NullOr<Schema.brand<Schema.String, "ProfileId">>;
@@ -10625,7 +11469,8 @@ declare const WebhookEndpointDetails: Schema.Struct<{
10625
11469
  "billing.credit.topped_up",
10626
11470
  "billing.credit.low",
10627
11471
  "billing.spend_cap.reached",
10628
- "billing.invoice.payment_failed"
11472
+ "billing.invoice.payment_failed",
11473
+ "billing.subscription.duplicate_refunded"
10629
11474
  ]>>;
10630
11475
  readonly enabled: Schema.Boolean;
10631
11476
  readonly profileId: Schema.NullOr<Schema.brand<Schema.String, "ProfileId">>;
@@ -10709,7 +11554,8 @@ declare const WebhookEndpointCreated: Schema.Struct<{
10709
11554
  "billing.credit.topped_up",
10710
11555
  "billing.credit.low",
10711
11556
  "billing.spend_cap.reached",
10712
- "billing.invoice.payment_failed"
11557
+ "billing.invoice.payment_failed",
11558
+ "billing.subscription.duplicate_refunded"
10713
11559
  ]>>;
10714
11560
  readonly enabled: Schema.Boolean;
10715
11561
  readonly profileId: Schema.NullOr<Schema.brand<Schema.String, "ProfileId">>;
@@ -10796,7 +11642,8 @@ declare const WebhookEndpointList: Schema.Struct<{
10796
11642
  "billing.credit.topped_up",
10797
11643
  "billing.credit.low",
10798
11644
  "billing.spend_cap.reached",
10799
- "billing.invoice.payment_failed"
11645
+ "billing.invoice.payment_failed",
11646
+ "billing.subscription.duplicate_refunded"
10800
11647
  ]>>;
10801
11648
  readonly enabled: Schema.Boolean;
10802
11649
  readonly profileId: Schema.NullOr<Schema.brand<Schema.String, "ProfileId">>;
@@ -10889,6 +11736,7 @@ declare const WebhookDelivery: Schema.Struct<{
10889
11736
  "billing.credit.low",
10890
11737
  "billing.spend_cap.reached",
10891
11738
  "billing.invoice.payment_failed",
11739
+ "billing.subscription.duplicate_refunded",
10892
11740
  "webhook.test"
10893
11741
  ]>;
10894
11742
  readonly status: Schema.Literals<readonly [
@@ -10980,6 +11828,7 @@ declare const WebhookDeliveryList: Schema.Struct<{
10980
11828
  "billing.credit.low",
10981
11829
  "billing.spend_cap.reached",
10982
11830
  "billing.invoice.payment_failed",
11831
+ "billing.subscription.duplicate_refunded",
10983
11832
  "webhook.test"
10984
11833
  ]>;
10985
11834
  readonly status: Schema.Literals<readonly [
@@ -11511,7 +12360,7 @@ interface PostsClient {
11511
12360
  iterate(options?: PostsListOptions, iteration?: IterationOptions): AsyncGenerator<PostList["data"][number], void, undefined>;
11512
12361
  create(input: CreatePostInput & {
11513
12362
  isDraft: true;
11514
- }): Promise<Post>;
12363
+ }): Promise<PostCreated>;
11515
12364
  create(input: CreatePostInput & {
11516
12365
  isDraft?: false;
11517
12366
  }): Promise<PublishAcceptedResult>;
@@ -11519,7 +12368,10 @@ interface PostsClient {
11519
12368
  get(postId: PostId): Promise<Post>;
11520
12369
  update(postId: PostId, input: UpdatePost): Promise<Post>;
11521
12370
  validate(postId: PostId): Promise<PostValidation>;
11522
- publish(postId: PostId, input: PublishPostInput): Promise<PublishAcceptedResult>;
12371
+ /** Predict whether this body can be published without saving it. */
12372
+ validateBody(input: CreatePost): Promise<PostValidation>;
12373
+ /** Publish the saved draft; every field is optional. */
12374
+ publish(postId: PostId, input?: PublishPostInput): Promise<PublishAcceptedResult>;
11523
12375
  delete(postId: PostId): Promise<PostArchived>;
11524
12376
  status(postId: PostId): Promise<PublishStatus>;
11525
12377
  attempts(postId: PostId, targetId: TargetId, options?: PageOptions): Promise<DeliveryHistory>;
@@ -12159,13 +13011,18 @@ export type BillingPlan = {
12159
13011
  monthlyPrice: Money | null;
12160
13012
  annualPrice: Money | null;
12161
13013
  meters: Array<BillingPlanMeter>;
13014
+ xReads: boolean;
13015
+ includedXReadMicros: number | null;
12162
13016
  seatsLimit: number | null;
12163
13017
  analyticsRetentionDays: number;
12164
13018
  whiteLabelOAuth: boolean;
12165
13019
  ssoSaml: boolean;
13020
+ priorityQueue: boolean;
13021
+ adsInsights: boolean;
13022
+ adsWrite: boolean;
12166
13023
  };
12167
13024
  export type BillingPlanMeter = {
12168
- meter: "confirmed_publish" | "x_passthrough" | "managed_ad" | "inbox_reply" | "automation_run";
13025
+ meter: "confirmed_publish" | "x_passthrough" | "x_read" | "managed_ad" | "inbox_reply" | "automation_run";
12169
13026
  includedPerPeriod: number;
12170
13027
  overageUnitPriceMicros: number | null;
12171
13028
  unitLabel: string;
@@ -12251,6 +13108,8 @@ type WorkspaceBilling$1 = {
12251
13108
  creditBalance: Money;
12252
13109
  spendControls: BillingSpendControls;
12253
13110
  currentPeriod: {
13111
+ start: string;
13112
+ end: string;
12254
13113
  meters: Array<BillingMeterUsage>;
12255
13114
  totalVariableSpendMicros: number;
12256
13115
  seatsUsed: number;
@@ -12258,7 +13117,7 @@ type WorkspaceBilling$1 = {
12258
13117
  };
12259
13118
  };
12260
13119
  export type BillingMeterUsage = {
12261
- meter: "confirmed_publish" | "x_passthrough" | "managed_ad" | "inbox_reply" | "automation_run";
13120
+ meter: "confirmed_publish" | "x_passthrough" | "x_read" | "managed_ad" | "inbox_reply" | "automation_run";
12262
13121
  includedPerPeriod: number;
12263
13122
  used: number;
12264
13123
  billable: number;
@@ -12391,7 +13250,7 @@ type BillingUsage$1 = {
12391
13250
  };
12392
13251
  export type BillingUsageDailyPoint = {
12393
13252
  date: string;
12394
- meter: "confirmed_publish" | "x_passthrough" | "managed_ad" | "inbox_reply" | "automation_run";
13253
+ meter: "confirmed_publish" | "x_passthrough" | "x_read" | "managed_ad" | "inbox_reply" | "automation_run";
12395
13254
  provider: "bluesky" | "facebook" | "instagram" | "linkedin" | "pinterest" | "reddit" | "snapchat" | "tiktok" | "threads" | "x" | "youtube" | "google_business" | null;
12396
13255
  quantity: number;
12397
13256
  billableQuantity: number;
@@ -12599,6 +13458,22 @@ type AuditEventList$1 = {
12599
13458
  nextCursor?: string;
12600
13459
  };
12601
13460
  type AuditActorType$1 = "user" | "api_key";
13461
+ export type PlanRequiredEncoded = {
13462
+ detail?: string;
13463
+ instance?: string;
13464
+ code: "plan_required";
13465
+ entitlement: "adsInsights" | "adsWrite" | "analyticsHistory";
13466
+ currentPlan: "payg" | "pro" | "platform" | "enterprise";
13467
+ minimumPlan: "payg" | "pro" | "platform" | "enterprise";
13468
+ fundingUrl: string;
13469
+ canManageBilling: boolean;
13470
+ nextAction: string;
13471
+ param?: string;
13472
+ earliestDate?: string;
13473
+ type: "urn:pubnio:problem:plan-required";
13474
+ status?: 402;
13475
+ title?: "Plan upgrade required";
13476
+ };
12602
13477
  export type AdProviderRejectedEncoded = {
12603
13478
  detail?: string;
12604
13479
  instance?: string;
@@ -13348,7 +14223,7 @@ export type DeliveryStatus = {
13348
14223
  status: "scheduled" | "queued" | "submitting" | "confirming" | "published" | "provider_draft" | "failed" | "unresolved" | "cancelled";
13349
14224
  providerRef?: DeliveryProviderRef;
13350
14225
  url?: string;
13351
- issue?: "authorization_changed" | "account_not_ready" | "credential_unavailable" | "media_preparation_failed" | "video_compression_failed" | "audio_unavailable" | "provider_rejected" | "tiktok_settings_unavailable" | "tiktok_settings_not_allowed" | "tiktok_processing_failed" | "submission_uncertain" | "confirmation_unavailable";
14226
+ issue?: "authorization_changed" | "account_not_ready" | "credential_unavailable" | "media_preparation_failed" | "video_compression_failed" | "audio_unavailable" | "provider_rejected" | "tiktok_settings_unavailable" | "tiktok_settings_not_allowed" | "tiktok_processing_failed" | "submission_uncertain" | "confirmation_unavailable" | "billing_inactive" | "spend_cap_reached" | "insufficient_credit";
13352
14227
  canRetry: boolean;
13353
14228
  canReconcile: boolean;
13354
14229
  nextAction?: string;
@@ -13422,11 +14297,7 @@ export type InsufficientCreditEncoded = {
13422
14297
  export type InvalidPublicationEncoded = {
13423
14298
  detail?: string;
13424
14299
  instance?: string;
13425
- issues: Array<{
13426
- code: "no_targets" | "schedule_out_of_range" | "publishing_not_supported" | "publish_permission_required" | "duplicate_target" | "account_not_found" | "provider_mismatch" | "account_not_ready" | "account_unverified" | "caption_too_long" | "empty_content" | "media_required" | "media_unresolved" | "media_not_ready" | "media_count" | "media_type" | "media_mime_type" | "media_too_large" | "media_upload_required" | "media_unverified" | "settings_conflict" | "tiktok_privacy_unsupported" | "tiktok_disclosure_required" | "tiktok_upload_required" | "tiktok_too_many_mentions" | "queue_and_time_conflict" | "invalid_field" | "account_ambiguous" | "unsupported_placement" | "schedule_required" | "selector_required" | "selector_conflict";
13427
- path: Array<string | number>;
13428
- message: string;
13429
- }>;
14300
+ issues: Array<PostIssue$1>;
13430
14301
  candidates?: Array<ProblemCandidate$1>;
13431
14302
  code?: "invalid_publication";
13432
14303
  nextAction?: string;
@@ -13438,6 +14309,15 @@ type ProblemCandidate$1 = {
13438
14309
  accountId: string;
13439
14310
  name: string;
13440
14311
  };
14312
+ type PostIssue$1 = {
14313
+ code: "no_targets" | "schedule_out_of_range" | "publishing_not_supported" | "publish_permission_required" | "duplicate_target" | "account_not_found" | "provider_mismatch" | "account_not_ready" | "account_unverified" | "caption_too_long" | "empty_content" | "media_required" | "media_unresolved" | "media_not_ready" | "media_count" | "media_type" | "media_mime_type" | "media_too_large" | "media_upload_required" | "media_unverified" | "settings_conflict" | "tiktok_privacy_unsupported" | "tiktok_disclosure_required" | "tiktok_upload_required" | "tiktok_too_many_mentions" | "queue_and_time_conflict" | "queue_not_found" | "queue_unavailable" | "invalid_field" | "account_ambiguous" | "unsupported_placement" | "schedule_required" | "selector_required" | "selector_conflict";
14314
+ path: Array<string | number>;
14315
+ message: string;
14316
+ candidates?: Array<{
14317
+ accountId: string;
14318
+ name: string;
14319
+ }>;
14320
+ };
13441
14321
  export type PostRevisionConflictEncoded = {
13442
14322
  detail?: string;
13443
14323
  instance?: string;
@@ -13457,11 +14337,7 @@ type PublishAccepted$1 = {
13457
14337
  postId: string;
13458
14338
  idempotencyKey: string;
13459
14339
  targets: Array<PublishAcceptedTarget>;
13460
- warnings: Array<{
13461
- code: "no_targets" | "schedule_out_of_range" | "publishing_not_supported" | "publish_permission_required" | "duplicate_target" | "account_not_found" | "provider_mismatch" | "account_not_ready" | "account_unverified" | "caption_too_long" | "empty_content" | "media_required" | "media_unresolved" | "media_not_ready" | "media_count" | "media_type" | "media_mime_type" | "media_too_large" | "media_upload_required" | "media_unverified" | "settings_conflict" | "tiktok_privacy_unsupported" | "tiktok_disclosure_required" | "tiktok_upload_required" | "tiktok_too_many_mentions" | "queue_and_time_conflict" | "invalid_field" | "account_ambiguous" | "unsupported_placement" | "schedule_required" | "selector_required" | "selector_conflict";
13462
- path: Array<string | number>;
13463
- message: string;
13464
- }>;
14340
+ warnings: Array<PostIssue$1>;
13465
14341
  billing?: PostBillingEstimate;
13466
14342
  };
13467
14343
  export type PostBillingEstimate = {
@@ -13497,22 +14373,17 @@ export type PublishAcceptedTarget = {
13497
14373
  };
13498
14374
  export type DestinationSelection = {
13499
14375
  accountId: string;
13500
- placement: "feed" | "reel" | "story" | "carousel" | "video" | "pin";
14376
+ /**
14377
+ * Omit to select the draft's only destination for this account.
14378
+ */
14379
+ placement?: "feed" | "reel" | "story" | "carousel" | "video" | "pin";
13501
14380
  scheduledAt?: string | null;
13502
14381
  queueId?: string;
13503
14382
  };
13504
14383
  type PostValidation$1 = {
13505
14384
  canPublish: boolean;
13506
- errors: Array<{
13507
- code: "no_targets" | "schedule_out_of_range" | "publishing_not_supported" | "publish_permission_required" | "duplicate_target" | "account_not_found" | "provider_mismatch" | "account_not_ready" | "account_unverified" | "caption_too_long" | "empty_content" | "media_required" | "media_unresolved" | "media_not_ready" | "media_count" | "media_type" | "media_mime_type" | "media_too_large" | "media_upload_required" | "media_unverified" | "settings_conflict" | "tiktok_privacy_unsupported" | "tiktok_disclosure_required" | "tiktok_upload_required" | "tiktok_too_many_mentions" | "queue_and_time_conflict" | "invalid_field" | "account_ambiguous" | "unsupported_placement" | "schedule_required" | "selector_required" | "selector_conflict";
13508
- path: Array<string | number>;
13509
- message: string;
13510
- }>;
13511
- warnings: Array<{
13512
- code: "no_targets" | "schedule_out_of_range" | "publishing_not_supported" | "publish_permission_required" | "duplicate_target" | "account_not_found" | "provider_mismatch" | "account_not_ready" | "account_unverified" | "caption_too_long" | "empty_content" | "media_required" | "media_unresolved" | "media_not_ready" | "media_count" | "media_type" | "media_mime_type" | "media_too_large" | "media_upload_required" | "media_unverified" | "settings_conflict" | "tiktok_privacy_unsupported" | "tiktok_disclosure_required" | "tiktok_upload_required" | "tiktok_too_many_mentions" | "queue_and_time_conflict" | "invalid_field" | "account_ambiguous" | "unsupported_placement" | "schedule_required" | "selector_required" | "selector_conflict";
13513
- path: Array<string | number>;
13514
- message: string;
13515
- }>;
14385
+ errors: Array<PostIssue$1>;
14386
+ warnings: Array<PostIssue$1>;
13516
14387
  targets: Array<{
13517
14388
  accountId: string;
13518
14389
  provider: "bluesky" | "facebook" | "instagram" | "linkedin" | "pinterest" | "reddit" | "snapchat" | "tiktok" | "threads" | "x" | "youtube" | "google_business";
@@ -13522,19 +14393,21 @@ type PostValidation$1 = {
13522
14393
  count: number;
13523
14394
  limit: number;
13524
14395
  };
13525
- errors: Array<{
13526
- code: "no_targets" | "schedule_out_of_range" | "publishing_not_supported" | "publish_permission_required" | "duplicate_target" | "account_not_found" | "provider_mismatch" | "account_not_ready" | "account_unverified" | "caption_too_long" | "empty_content" | "media_required" | "media_unresolved" | "media_not_ready" | "media_count" | "media_type" | "media_mime_type" | "media_too_large" | "media_upload_required" | "media_unverified" | "settings_conflict" | "tiktok_privacy_unsupported" | "tiktok_disclosure_required" | "tiktok_upload_required" | "tiktok_too_many_mentions" | "queue_and_time_conflict" | "invalid_field" | "account_ambiguous" | "unsupported_placement" | "schedule_required" | "selector_required" | "selector_conflict";
13527
- path: Array<string | number>;
13528
- message: string;
13529
- }>;
13530
- warnings: Array<{
13531
- code: "no_targets" | "schedule_out_of_range" | "publishing_not_supported" | "publish_permission_required" | "duplicate_target" | "account_not_found" | "provider_mismatch" | "account_not_ready" | "account_unverified" | "caption_too_long" | "empty_content" | "media_required" | "media_unresolved" | "media_not_ready" | "media_count" | "media_type" | "media_mime_type" | "media_too_large" | "media_upload_required" | "media_unverified" | "settings_conflict" | "tiktok_privacy_unsupported" | "tiktok_disclosure_required" | "tiktok_upload_required" | "tiktok_too_many_mentions" | "queue_and_time_conflict" | "invalid_field" | "account_ambiguous" | "unsupported_placement" | "schedule_required" | "selector_required" | "selector_conflict";
13532
- path: Array<string | number>;
13533
- message: string;
13534
- }>;
14396
+ errors: Array<PostIssue$1>;
14397
+ warnings: Array<PostIssue$1>;
13535
14398
  }>;
13536
14399
  billing?: PostBillingEstimate;
13537
14400
  };
14401
+ export type PostSubmittedEncoded = {
14402
+ detail?: string;
14403
+ instance?: string;
14404
+ code: "post_submitted";
14405
+ targetIds: Array<string>;
14406
+ nextAction: string;
14407
+ type: "urn:pubnio:problem:post-submitted";
14408
+ status?: 409;
14409
+ title?: "Post already submitted";
14410
+ };
13538
14411
  type Post$1 = {
13539
14412
  postId: string;
13540
14413
  isDraft: boolean;
@@ -13545,6 +14418,10 @@ type Post$1 = {
13545
14418
  text: string;
13546
14419
  media: Array<MediaInput>;
13547
14420
  targets: Array<PublishTarget>;
14421
+ /**
14422
+ * The default time for targets without their own scheduledAt. null publishes them when submitted.
14423
+ */
14424
+ scheduledAt: string | null;
13548
14425
  deliveries: Array<DeliveryStatus>;
13549
14426
  status: PostState;
13550
14427
  createdAt: string;
@@ -13755,7 +14632,17 @@ export type PublishTarget = {
13755
14632
  queueId?: string;
13756
14633
  settings?: GoogleBusinessFeedSettings;
13757
14634
  };
13758
- export type GoogleBusinessFeedSettings = unknown;
14635
+ export type GoogleBusinessFeedSettings = {
14636
+ topicType?: "standard" | "event" | "offer";
14637
+ title?: string;
14638
+ startsAt?: string;
14639
+ endsAt?: string;
14640
+ couponCode?: string;
14641
+ redeemUrl?: string;
14642
+ terms?: string;
14643
+ callToAction?: "book" | "order" | "shop" | "learn_more" | "sign_up" | "call";
14644
+ callToActionUrl?: string;
14645
+ };
13759
14646
  export type TikTokFeedSettings = TikTokVideoSettings | TikTokPhotoSettings;
13760
14647
  export type TikTokPhotoSettings = {
13761
14648
  privacy: "PUBLIC_TO_EVERYONE" | "MUTUAL_FOLLOW_FRIENDS" | "FOLLOWER_OF_CREATOR" | "SELF_ONLY";
@@ -13807,6 +14694,7 @@ export type YouTubeVideoSettings = {
13807
14694
  title: string;
13808
14695
  description?: string;
13809
14696
  privacyStatus: "public" | "unlisted" | "private";
14697
+ firstComment?: string;
13810
14698
  tags?: Array<string>;
13811
14699
  categoryId?: string;
13812
14700
  madeForKids?: boolean;
@@ -13818,6 +14706,29 @@ export type YouTubeVideoSettings = {
13818
14706
  publicStatsViewable?: boolean;
13819
14707
  };
13820
14708
  export type XFeedSettings = {
14709
+ /**
14710
+ * X poll on the root post. Include post text and omit attachments.
14711
+ */
14712
+ poll?: {
14713
+ options: Array<unknown & unknown>;
14714
+ durationMinutes: number;
14715
+ };
14716
+ /**
14717
+ * Who may reply to the root X post. Omit for the provider default.
14718
+ */
14719
+ replySettings?: "following" | "mentionedUsers" | "subscribers" | "verified";
14720
+ /**
14721
+ * Native quotes require an X Enterprise app. With PubNio's current app, omit this field and put the X post URL in the text.
14722
+ */
14723
+ quotePostId?: string;
14724
+ /**
14725
+ * X user ID strings to tag on root post photos (JPEG, PNG, or WebP).
14726
+ */
14727
+ mediaTaggedUserIds?: Array<string>;
14728
+ /**
14729
+ * Opaque X Place ID such as geo.place_id from a post lookup.
14730
+ */
14731
+ placeId?: unknown;
13821
14732
  firstComment?: string;
13822
14733
  thread?: Array<string>;
13823
14734
  article?: XArticleDraftSettings;
@@ -13831,6 +14742,14 @@ export type ThreadsFeedSettings = {
13831
14742
  thread?: Array<string>;
13832
14743
  };
13833
14744
  export type LinkedInFeedSettings = {
14745
+ /**
14746
+ * Organic LinkedIn poll. Include post text and omit media, altText, and documentTitle.
14747
+ */
14748
+ poll?: {
14749
+ question: unknown & unknown;
14750
+ options: Array<unknown & unknown>;
14751
+ duration: "ONE_DAY" | "THREE_DAYS" | "SEVEN_DAYS" | "FOURTEEN_DAYS";
14752
+ };
13834
14753
  firstComment?: string;
13835
14754
  thread?: Array<string>;
13836
14755
  visibility?: "PUBLIC" | "CONNECTIONS";
@@ -13932,17 +14851,37 @@ export type BlueskyFeedSettings = {
13932
14851
  thread?: Array<string>;
13933
14852
  altText?: string;
13934
14853
  };
14854
+ /**
14855
+ * Edit a draft with the same fields as create. scheduledAt sets the default time; null clears it. One selector (platforms, accounts, or targets) replaces the saved targets; an empty targets array removes them.
14856
+ */
13935
14857
  type UpdatePost$1 = {
13936
14858
  /**
13937
14859
  * At most 128000 characters after trimming.
13938
14860
  */
13939
14861
  text?: string;
13940
- targets?: Array<PublishTarget>;
13941
14862
  media?: Array<MediaInput>;
14863
+ scheduledAt?: string | null;
14864
+ platforms?: Array<"bluesky" | "facebook" | "instagram" | "linkedin" | "pinterest" | "reddit" | "snapchat" | "tiktok" | "threads" | "x" | "youtube" | "google_business">;
14865
+ accounts?: Array<string>;
14866
+ targets?: Array<CreatePostTarget>;
13942
14867
  expectedRevision?: number;
13943
14868
  };
14869
+ export type CreatePostTarget = {
14870
+ accountId: string;
14871
+ provider?: "bluesky" | "facebook" | "instagram" | "linkedin" | "pinterest" | "reddit" | "snapchat" | "tiktok" | "threads" | "x" | "youtube" | "google_business";
14872
+ placement?: "feed" | "reel" | "story" | "carousel" | "video" | "pin";
14873
+ text?: string;
14874
+ thread?: Array<string>;
14875
+ media?: Array<MediaInput>;
14876
+ scheduledAt?: string | null;
14877
+ /**
14878
+ * Assign this destination to its connected account's schedule queue.
14879
+ */
14880
+ queueId?: string;
14881
+ settings?: BlueskyFeedSettings | FacebookFeedSettings | FacebookReelSettings | FacebookStorySettings | InstagramFeedSettings | InstagramReelSettings | InstagramCarouselSettings | InstagramStorySettings | LinkedInFeedSettings | RedditFeedSettings | SnapchatStorySettings | ThreadsFeedSettings | XFeedSettings | YouTubeVideoSettings | PinterestPinSettings | TikTokFeedSettings | GoogleBusinessFeedSettings;
14882
+ };
13944
14883
  /**
13945
- * Send exactly one selector for a direct post: platforms resolves the single ready account per provider, accounts selects exact account IDs, and targets selects exact destinations. Provider and placement are derived when omitted. publishNow defaults to true when scheduledAt is absent. Set isDraft to true to save a draft without submitting; drafts accept text, media, and targets.
14884
+ * Send one selector: platforms, accounts, or targets. scheduledAt is the default time; targets[].scheduledAt overrides it per destination. isDraft saves the same body without submitting.
13946
14885
  */
13947
14886
  type CreatePost$1 = {
13948
14887
  /**
@@ -13960,19 +14899,25 @@ type CreatePost$1 = {
13960
14899
  */
13961
14900
  isDraft?: boolean;
13962
14901
  };
13963
- export type CreatePostTarget = {
13964
- accountId: string;
13965
- provider?: "bluesky" | "facebook" | "instagram" | "linkedin" | "pinterest" | "reddit" | "snapchat" | "tiktok" | "threads" | "x" | "youtube" | "google_business";
13966
- placement?: "feed" | "reel" | "story" | "carousel" | "video" | "pin";
13967
- text?: string;
13968
- thread?: Array<string>;
13969
- media?: Array<MediaInput>;
13970
- scheduledAt?: string | null;
14902
+ type PostCreated$1 = {
14903
+ postId: string;
14904
+ isDraft: boolean;
14905
+ revision: number;
13971
14906
  /**
13972
- * Assign this destination to its connected account's schedule queue.
14907
+ * At most 128000 characters after trimming.
13973
14908
  */
13974
- queueId?: string;
13975
- settings?: BlueskyFeedSettings | FacebookFeedSettings | FacebookReelSettings | FacebookStorySettings | InstagramFeedSettings | InstagramReelSettings | InstagramCarouselSettings | InstagramStorySettings | LinkedInFeedSettings | RedditFeedSettings | SnapchatStorySettings | ThreadsFeedSettings | XFeedSettings | YouTubeVideoSettings | PinterestPinSettings | TikTokFeedSettings | GoogleBusinessFeedSettings;
14909
+ text: string;
14910
+ media: Array<MediaInput>;
14911
+ targets: Array<PublishTarget>;
14912
+ /**
14913
+ * The default time for targets without their own scheduledAt. null publishes them when submitted.
14914
+ */
14915
+ scheduledAt: string | null;
14916
+ deliveries: Array<DeliveryStatus>;
14917
+ status: PostState;
14918
+ createdAt: string;
14919
+ updatedAt: string;
14920
+ idempotencyKey?: string;
13976
14921
  };
13977
14922
  type PostList$1 = {
13978
14923
  data: Array<PostSummary>;
@@ -14125,6 +15070,15 @@ export type InboxReplyWindowClosedEncoded = {
14125
15070
  status?: 409;
14126
15071
  title?: "Inbox reply window closed";
14127
15072
  };
15073
+ export type InboxUnavailableEncoded = {
15074
+ detail?: string;
15075
+ instance?: string;
15076
+ reason: "provider_subscription_limit" | "missing_scopes" | "webhook_invalid" | "subscription_pending" | "plan_required" | "insufficient_credit" | "spend_cap_reached";
15077
+ action: "contact_pubnio" | "reconnect_account" | "wait_for_repair" | "upgrade_plan" | "add_credit" | "raise_spend_cap";
15078
+ type: "urn:pubnio:problem:inbox-unavailable";
15079
+ status?: 409;
15080
+ title?: "Inbox unavailable";
15081
+ };
14128
15082
  type InboxSyncStatus$1 = {
14129
15083
  syncRun: SyncRun;
14130
15084
  counts: {
@@ -14177,6 +15131,11 @@ export type InboxAccountCapabilities = {
14177
15131
  mentions: InboxChannelCapability;
14178
15132
  replyWindow: InboxReplyWindow;
14179
15133
  lastSyncError: string | null;
15134
+ deliveryGap: {
15135
+ from: string;
15136
+ to: string;
15137
+ action: "review_on_x";
15138
+ } | null;
14180
15139
  checkedAt: string;
14181
15140
  };
14182
15141
  export type InboxReplyWindow = {
@@ -14197,6 +15156,10 @@ export type InboxChannelCapability = {
14197
15156
  backfillDays: number;
14198
15157
  missingScopes: Array<string>;
14199
15158
  missingTasks: Array<string>;
15159
+ unavailable: {
15160
+ reason: "provider_subscription_limit" | "missing_scopes" | "webhook_invalid" | "subscription_pending" | "plan_required" | "insufficient_credit" | "spend_cap_reached";
15161
+ action: "contact_pubnio" | "reconnect_account" | "wait_for_repair" | "upgrade_plan" | "add_credit" | "raise_spend_cap";
15162
+ } | null;
14200
15163
  };
14201
15164
  type InboxUnreadCount$1 = {
14202
15165
  unreadCount: number;
@@ -14922,6 +15885,25 @@ export type ProviderCapability = {
14922
15885
  requiredScopes: Array<string>;
14923
15886
  };
14924
15887
  export type PlacementCapability = {
15888
+ settings?: {
15889
+ poll: {
15890
+ minOptions: number;
15891
+ maxOptions: number;
15892
+ optionCharacters: number;
15893
+ minDurationMinutes: number;
15894
+ maxDurationMinutes: number;
15895
+ } | {
15896
+ minOptions: number;
15897
+ maxOptions: number;
15898
+ optionCharacters: number;
15899
+ questionCharacters: number;
15900
+ durations: Array<"ONE_DAY" | "THREE_DAYS" | "SEVEN_DAYS" | "FOURTEEN_DAYS">;
15901
+ };
15902
+ replySettings?: Array<"following" | "mentionedUsers" | "subscribers" | "verified">;
15903
+ maxMediaTags?: number;
15904
+ placeId?: boolean;
15905
+ quotePostId?: boolean;
15906
+ };
14925
15907
  placement: "feed" | "reel" | "story" | "carousel" | "video" | "pin";
14926
15908
  default: boolean;
14927
15909
  mediaTypes: Array<"image" | "video" | "document">;
@@ -15135,7 +16117,7 @@ export type BlueskySessionConnect = {
15135
16117
  profileId?: string;
15136
16118
  };
15137
16119
  export type WebhookEventTypes = {
15138
- eventTypes: Array<"post.delivery.published" | "post.delivery.provider_draft" | "post.delivery.failed" | "post.delivery.unresolved" | "post.delivery.cancelled" | "post.scheduled" | "post.published" | "post.partial" | "post.failed" | "post.cancelled" | "inbox.message.received" | "inbox.comment.received" | "inbox.review.new" | "inbox.review.updated" | "inbox.review.deleted" | "inbox.review.restored" | "inbox.review.replied" | "inbox.mention.received" | "inbox.message.sent" | "inbox.message.delivered" | "inbox.message.read" | "inbox.message.edited" | "inbox.message.deleted" | "inbox.reaction.received" | "inbox.referral.received" | "inbox.conversation.started" | "analytics.post.synced" | "analytics.account.synced" | "ads.operation.succeeded" | "ads.operation.failed" | "ads.campaign.activated" | "ads.campaign.paused" | "ads.budget.changed" | "ads.kill_switch.activated" | "ads.lead.received" | "ads.campaign.status_changed" | "ads.ad_group.status_changed" | "ads.ad.status_changed" | "ads.ad_account.status_changed" | "ads.ad.review.approved" | "ads.ad.review.rejected" | "ads.sync.failed" | "ads.sync.recovered" | "ads.initial_sync.completed" | "schedule.assignment.changed" | "account.connected" | "account.disconnected" | "account.permissions_changed" | "account.restricted" | "account.recovered" | "billing.subscription.updated" | "billing.credit.topped_up" | "billing.credit.low" | "billing.spend_cap.reached" | "billing.invoice.payment_failed" | "webhook.test">;
16120
+ eventTypes: Array<"post.delivery.published" | "post.delivery.provider_draft" | "post.delivery.failed" | "post.delivery.unresolved" | "post.delivery.cancelled" | "post.scheduled" | "post.published" | "post.partial" | "post.failed" | "post.cancelled" | "inbox.message.received" | "inbox.comment.received" | "inbox.review.new" | "inbox.review.updated" | "inbox.review.deleted" | "inbox.review.restored" | "inbox.review.replied" | "inbox.mention.received" | "inbox.message.sent" | "inbox.message.delivered" | "inbox.message.read" | "inbox.message.edited" | "inbox.message.deleted" | "inbox.reaction.received" | "inbox.referral.received" | "inbox.conversation.started" | "analytics.post.synced" | "analytics.account.synced" | "ads.operation.succeeded" | "ads.operation.failed" | "ads.campaign.activated" | "ads.campaign.paused" | "ads.budget.changed" | "ads.kill_switch.activated" | "ads.lead.received" | "ads.campaign.status_changed" | "ads.ad_group.status_changed" | "ads.ad.status_changed" | "ads.ad_account.status_changed" | "ads.ad.review.approved" | "ads.ad.review.rejected" | "ads.sync.failed" | "ads.sync.recovered" | "ads.initial_sync.completed" | "schedule.assignment.changed" | "account.connected" | "account.disconnected" | "account.permissions_changed" | "account.restricted" | "account.recovered" | "billing.subscription.updated" | "billing.credit.topped_up" | "billing.credit.low" | "billing.spend_cap.reached" | "billing.invoice.payment_failed" | "billing.subscription.duplicate_refunded" | "webhook.test">;
15139
16121
  };
15140
16122
  export type WebhookDeliveryNotReplayableEncoded = {
15141
16123
  detail?: string;
@@ -15152,7 +16134,7 @@ type WebhookDelivery$1 = {
15152
16134
  workspaceId: string;
15153
16135
  endpointId: string;
15154
16136
  eventId: string;
15155
- eventType: "post.delivery.published" | "post.delivery.provider_draft" | "post.delivery.failed" | "post.delivery.unresolved" | "post.delivery.cancelled" | "post.scheduled" | "post.published" | "post.partial" | "post.failed" | "post.cancelled" | "inbox.message.received" | "inbox.comment.received" | "inbox.review.new" | "inbox.review.updated" | "inbox.review.deleted" | "inbox.review.restored" | "inbox.review.replied" | "inbox.mention.received" | "inbox.message.sent" | "inbox.message.delivered" | "inbox.message.read" | "inbox.message.edited" | "inbox.message.deleted" | "inbox.reaction.received" | "inbox.referral.received" | "inbox.conversation.started" | "analytics.post.synced" | "analytics.account.synced" | "ads.operation.succeeded" | "ads.operation.failed" | "ads.campaign.activated" | "ads.campaign.paused" | "ads.budget.changed" | "ads.kill_switch.activated" | "ads.lead.received" | "ads.campaign.status_changed" | "ads.ad_group.status_changed" | "ads.ad.status_changed" | "ads.ad_account.status_changed" | "ads.ad.review.approved" | "ads.ad.review.rejected" | "ads.sync.failed" | "ads.sync.recovered" | "ads.initial_sync.completed" | "schedule.assignment.changed" | "account.connected" | "account.disconnected" | "account.permissions_changed" | "account.restricted" | "account.recovered" | "billing.subscription.updated" | "billing.credit.topped_up" | "billing.credit.low" | "billing.spend_cap.reached" | "billing.invoice.payment_failed" | "webhook.test";
16137
+ eventType: "post.delivery.published" | "post.delivery.provider_draft" | "post.delivery.failed" | "post.delivery.unresolved" | "post.delivery.cancelled" | "post.scheduled" | "post.published" | "post.partial" | "post.failed" | "post.cancelled" | "inbox.message.received" | "inbox.comment.received" | "inbox.review.new" | "inbox.review.updated" | "inbox.review.deleted" | "inbox.review.restored" | "inbox.review.replied" | "inbox.mention.received" | "inbox.message.sent" | "inbox.message.delivered" | "inbox.message.read" | "inbox.message.edited" | "inbox.message.deleted" | "inbox.reaction.received" | "inbox.referral.received" | "inbox.conversation.started" | "analytics.post.synced" | "analytics.account.synced" | "ads.operation.succeeded" | "ads.operation.failed" | "ads.campaign.activated" | "ads.campaign.paused" | "ads.budget.changed" | "ads.kill_switch.activated" | "ads.lead.received" | "ads.campaign.status_changed" | "ads.ad_group.status_changed" | "ads.ad.status_changed" | "ads.ad_account.status_changed" | "ads.ad.review.approved" | "ads.ad.review.rejected" | "ads.sync.failed" | "ads.sync.recovered" | "ads.initial_sync.completed" | "schedule.assignment.changed" | "account.connected" | "account.disconnected" | "account.permissions_changed" | "account.restricted" | "account.recovered" | "billing.subscription.updated" | "billing.credit.topped_up" | "billing.credit.low" | "billing.spend_cap.reached" | "billing.invoice.payment_failed" | "billing.subscription.duplicate_refunded" | "webhook.test";
15156
16138
  status: "pending" | "sending" | "delivered" | "failed" | "cancelled";
15157
16139
  attemptCount: number;
15158
16140
  createdAt: string;
@@ -15181,7 +16163,7 @@ type WebhookEndpoint$1 = {
15181
16163
  id: string;
15182
16164
  workspaceId: string;
15183
16165
  name: string;
15184
- eventTypes: Array<"post.delivery.published" | "post.delivery.provider_draft" | "post.delivery.failed" | "post.delivery.unresolved" | "post.delivery.cancelled" | "post.scheduled" | "post.published" | "post.partial" | "post.failed" | "post.cancelled" | "inbox.message.received" | "inbox.comment.received" | "inbox.review.new" | "inbox.review.updated" | "inbox.review.deleted" | "inbox.review.restored" | "inbox.review.replied" | "inbox.mention.received" | "inbox.message.sent" | "inbox.message.delivered" | "inbox.message.read" | "inbox.message.edited" | "inbox.message.deleted" | "inbox.reaction.received" | "inbox.referral.received" | "inbox.conversation.started" | "analytics.post.synced" | "analytics.account.synced" | "ads.operation.succeeded" | "ads.operation.failed" | "ads.campaign.activated" | "ads.campaign.paused" | "ads.budget.changed" | "ads.kill_switch.activated" | "ads.lead.received" | "ads.campaign.status_changed" | "ads.ad_group.status_changed" | "ads.ad.status_changed" | "ads.ad_account.status_changed" | "ads.ad.review.approved" | "ads.ad.review.rejected" | "ads.sync.failed" | "ads.sync.recovered" | "ads.initial_sync.completed" | "schedule.assignment.changed" | "account.connected" | "account.disconnected" | "account.permissions_changed" | "account.restricted" | "account.recovered" | "billing.subscription.updated" | "billing.credit.topped_up" | "billing.credit.low" | "billing.spend_cap.reached" | "billing.invoice.payment_failed">;
16166
+ eventTypes: Array<"post.delivery.published" | "post.delivery.provider_draft" | "post.delivery.failed" | "post.delivery.unresolved" | "post.delivery.cancelled" | "post.scheduled" | "post.published" | "post.partial" | "post.failed" | "post.cancelled" | "inbox.message.received" | "inbox.comment.received" | "inbox.review.new" | "inbox.review.updated" | "inbox.review.deleted" | "inbox.review.restored" | "inbox.review.replied" | "inbox.mention.received" | "inbox.message.sent" | "inbox.message.delivered" | "inbox.message.read" | "inbox.message.edited" | "inbox.message.deleted" | "inbox.reaction.received" | "inbox.referral.received" | "inbox.conversation.started" | "analytics.post.synced" | "analytics.account.synced" | "ads.operation.succeeded" | "ads.operation.failed" | "ads.campaign.activated" | "ads.campaign.paused" | "ads.budget.changed" | "ads.kill_switch.activated" | "ads.lead.received" | "ads.campaign.status_changed" | "ads.ad_group.status_changed" | "ads.ad.status_changed" | "ads.ad_account.status_changed" | "ads.ad.review.approved" | "ads.ad.review.rejected" | "ads.sync.failed" | "ads.sync.recovered" | "ads.initial_sync.completed" | "schedule.assignment.changed" | "account.connected" | "account.disconnected" | "account.permissions_changed" | "account.restricted" | "account.recovered" | "billing.subscription.updated" | "billing.credit.topped_up" | "billing.credit.low" | "billing.spend_cap.reached" | "billing.invoice.payment_failed" | "billing.subscription.duplicate_refunded">;
15185
16167
  enabled: boolean;
15186
16168
  profileId: string | null;
15187
16169
  accountIds: Array<string>;
@@ -16089,7 +17071,7 @@ export type WebhooksCreateData = {
16089
17071
  body: {
16090
17072
  name: string;
16091
17073
  url: string;
16092
- eventTypes: Array<"post.delivery.published" | "post.delivery.provider_draft" | "post.delivery.failed" | "post.delivery.unresolved" | "post.delivery.cancelled" | "post.scheduled" | "post.published" | "post.partial" | "post.failed" | "post.cancelled" | "inbox.message.received" | "inbox.comment.received" | "inbox.review.new" | "inbox.review.updated" | "inbox.review.deleted" | "inbox.review.restored" | "inbox.review.replied" | "inbox.mention.received" | "inbox.message.sent" | "inbox.message.delivered" | "inbox.message.read" | "inbox.message.edited" | "inbox.message.deleted" | "inbox.reaction.received" | "inbox.referral.received" | "inbox.conversation.started" | "analytics.post.synced" | "analytics.account.synced" | "ads.operation.succeeded" | "ads.operation.failed" | "ads.campaign.activated" | "ads.campaign.paused" | "ads.budget.changed" | "ads.kill_switch.activated" | "ads.lead.received" | "ads.campaign.status_changed" | "ads.ad_group.status_changed" | "ads.ad.status_changed" | "ads.ad_account.status_changed" | "ads.ad.review.approved" | "ads.ad.review.rejected" | "ads.sync.failed" | "ads.sync.recovered" | "ads.initial_sync.completed" | "schedule.assignment.changed" | "account.connected" | "account.disconnected" | "account.permissions_changed" | "account.restricted" | "account.recovered" | "billing.subscription.updated" | "billing.credit.topped_up" | "billing.credit.low" | "billing.spend_cap.reached" | "billing.invoice.payment_failed">;
17074
+ eventTypes: Array<"post.delivery.published" | "post.delivery.provider_draft" | "post.delivery.failed" | "post.delivery.unresolved" | "post.delivery.cancelled" | "post.scheduled" | "post.published" | "post.partial" | "post.failed" | "post.cancelled" | "inbox.message.received" | "inbox.comment.received" | "inbox.review.new" | "inbox.review.updated" | "inbox.review.deleted" | "inbox.review.restored" | "inbox.review.replied" | "inbox.mention.received" | "inbox.message.sent" | "inbox.message.delivered" | "inbox.message.read" | "inbox.message.edited" | "inbox.message.deleted" | "inbox.reaction.received" | "inbox.referral.received" | "inbox.conversation.started" | "analytics.post.synced" | "analytics.account.synced" | "ads.operation.succeeded" | "ads.operation.failed" | "ads.campaign.activated" | "ads.campaign.paused" | "ads.budget.changed" | "ads.kill_switch.activated" | "ads.lead.received" | "ads.campaign.status_changed" | "ads.ad_group.status_changed" | "ads.ad.status_changed" | "ads.ad_account.status_changed" | "ads.ad.review.approved" | "ads.ad.review.rejected" | "ads.sync.failed" | "ads.sync.recovered" | "ads.initial_sync.completed" | "schedule.assignment.changed" | "account.connected" | "account.disconnected" | "account.permissions_changed" | "account.restricted" | "account.recovered" | "billing.subscription.updated" | "billing.credit.topped_up" | "billing.credit.low" | "billing.spend_cap.reached" | "billing.invoice.payment_failed" | "billing.subscription.duplicate_refunded">;
16093
17075
  enabled?: boolean;
16094
17076
  profileId?: string;
16095
17077
  /**
@@ -16159,7 +17141,7 @@ export type WebhooksCreateResponses = {
16159
17141
  id: string;
16160
17142
  workspaceId: string;
16161
17143
  name: string;
16162
- eventTypes: Array<"post.delivery.published" | "post.delivery.provider_draft" | "post.delivery.failed" | "post.delivery.unresolved" | "post.delivery.cancelled" | "post.scheduled" | "post.published" | "post.partial" | "post.failed" | "post.cancelled" | "inbox.message.received" | "inbox.comment.received" | "inbox.review.new" | "inbox.review.updated" | "inbox.review.deleted" | "inbox.review.restored" | "inbox.review.replied" | "inbox.mention.received" | "inbox.message.sent" | "inbox.message.delivered" | "inbox.message.read" | "inbox.message.edited" | "inbox.message.deleted" | "inbox.reaction.received" | "inbox.referral.received" | "inbox.conversation.started" | "analytics.post.synced" | "analytics.account.synced" | "ads.operation.succeeded" | "ads.operation.failed" | "ads.campaign.activated" | "ads.campaign.paused" | "ads.budget.changed" | "ads.kill_switch.activated" | "ads.lead.received" | "ads.campaign.status_changed" | "ads.ad_group.status_changed" | "ads.ad.status_changed" | "ads.ad_account.status_changed" | "ads.ad.review.approved" | "ads.ad.review.rejected" | "ads.sync.failed" | "ads.sync.recovered" | "ads.initial_sync.completed" | "schedule.assignment.changed" | "account.connected" | "account.disconnected" | "account.permissions_changed" | "account.restricted" | "account.recovered" | "billing.subscription.updated" | "billing.credit.topped_up" | "billing.credit.low" | "billing.spend_cap.reached" | "billing.invoice.payment_failed">;
17144
+ eventTypes: Array<"post.delivery.published" | "post.delivery.provider_draft" | "post.delivery.failed" | "post.delivery.unresolved" | "post.delivery.cancelled" | "post.scheduled" | "post.published" | "post.partial" | "post.failed" | "post.cancelled" | "inbox.message.received" | "inbox.comment.received" | "inbox.review.new" | "inbox.review.updated" | "inbox.review.deleted" | "inbox.review.restored" | "inbox.review.replied" | "inbox.mention.received" | "inbox.message.sent" | "inbox.message.delivered" | "inbox.message.read" | "inbox.message.edited" | "inbox.message.deleted" | "inbox.reaction.received" | "inbox.referral.received" | "inbox.conversation.started" | "analytics.post.synced" | "analytics.account.synced" | "ads.operation.succeeded" | "ads.operation.failed" | "ads.campaign.activated" | "ads.campaign.paused" | "ads.budget.changed" | "ads.kill_switch.activated" | "ads.lead.received" | "ads.campaign.status_changed" | "ads.ad_group.status_changed" | "ads.ad.status_changed" | "ads.ad_account.status_changed" | "ads.ad.review.approved" | "ads.ad.review.rejected" | "ads.sync.failed" | "ads.sync.recovered" | "ads.initial_sync.completed" | "schedule.assignment.changed" | "account.connected" | "account.disconnected" | "account.permissions_changed" | "account.restricted" | "account.recovered" | "billing.subscription.updated" | "billing.credit.topped_up" | "billing.credit.low" | "billing.spend_cap.reached" | "billing.invoice.payment_failed" | "billing.subscription.duplicate_refunded">;
16163
17145
  enabled: boolean;
16164
17146
  profileId: string | null;
16165
17147
  accountIds: Array<string>;
@@ -16288,7 +17270,7 @@ export type WebhooksGetResponses = {
16288
17270
  id: string;
16289
17271
  workspaceId: string;
16290
17272
  name: string;
16291
- eventTypes: Array<"post.delivery.published" | "post.delivery.provider_draft" | "post.delivery.failed" | "post.delivery.unresolved" | "post.delivery.cancelled" | "post.scheduled" | "post.published" | "post.partial" | "post.failed" | "post.cancelled" | "inbox.message.received" | "inbox.comment.received" | "inbox.review.new" | "inbox.review.updated" | "inbox.review.deleted" | "inbox.review.restored" | "inbox.review.replied" | "inbox.mention.received" | "inbox.message.sent" | "inbox.message.delivered" | "inbox.message.read" | "inbox.message.edited" | "inbox.message.deleted" | "inbox.reaction.received" | "inbox.referral.received" | "inbox.conversation.started" | "analytics.post.synced" | "analytics.account.synced" | "ads.operation.succeeded" | "ads.operation.failed" | "ads.campaign.activated" | "ads.campaign.paused" | "ads.budget.changed" | "ads.kill_switch.activated" | "ads.lead.received" | "ads.campaign.status_changed" | "ads.ad_group.status_changed" | "ads.ad.status_changed" | "ads.ad_account.status_changed" | "ads.ad.review.approved" | "ads.ad.review.rejected" | "ads.sync.failed" | "ads.sync.recovered" | "ads.initial_sync.completed" | "schedule.assignment.changed" | "account.connected" | "account.disconnected" | "account.permissions_changed" | "account.restricted" | "account.recovered" | "billing.subscription.updated" | "billing.credit.topped_up" | "billing.credit.low" | "billing.spend_cap.reached" | "billing.invoice.payment_failed">;
17273
+ eventTypes: Array<"post.delivery.published" | "post.delivery.provider_draft" | "post.delivery.failed" | "post.delivery.unresolved" | "post.delivery.cancelled" | "post.scheduled" | "post.published" | "post.partial" | "post.failed" | "post.cancelled" | "inbox.message.received" | "inbox.comment.received" | "inbox.review.new" | "inbox.review.updated" | "inbox.review.deleted" | "inbox.review.restored" | "inbox.review.replied" | "inbox.mention.received" | "inbox.message.sent" | "inbox.message.delivered" | "inbox.message.read" | "inbox.message.edited" | "inbox.message.deleted" | "inbox.reaction.received" | "inbox.referral.received" | "inbox.conversation.started" | "analytics.post.synced" | "analytics.account.synced" | "ads.operation.succeeded" | "ads.operation.failed" | "ads.campaign.activated" | "ads.campaign.paused" | "ads.budget.changed" | "ads.kill_switch.activated" | "ads.lead.received" | "ads.campaign.status_changed" | "ads.ad_group.status_changed" | "ads.ad.status_changed" | "ads.ad_account.status_changed" | "ads.ad.review.approved" | "ads.ad.review.rejected" | "ads.sync.failed" | "ads.sync.recovered" | "ads.initial_sync.completed" | "schedule.assignment.changed" | "account.connected" | "account.disconnected" | "account.permissions_changed" | "account.restricted" | "account.recovered" | "billing.subscription.updated" | "billing.credit.topped_up" | "billing.credit.low" | "billing.spend_cap.reached" | "billing.invoice.payment_failed" | "billing.subscription.duplicate_refunded">;
16292
17274
  enabled: boolean;
16293
17275
  profileId: string | null;
16294
17276
  accountIds: Array<string>;
@@ -16305,7 +17287,7 @@ export type WebhooksGetResponse = WebhooksGetResponses[keyof WebhooksGetResponse
16305
17287
  export type WebhooksUpdateData = {
16306
17288
  body: {
16307
17289
  name?: string;
16308
- eventTypes?: Array<"post.delivery.published" | "post.delivery.provider_draft" | "post.delivery.failed" | "post.delivery.unresolved" | "post.delivery.cancelled" | "post.scheduled" | "post.published" | "post.partial" | "post.failed" | "post.cancelled" | "inbox.message.received" | "inbox.comment.received" | "inbox.review.new" | "inbox.review.updated" | "inbox.review.deleted" | "inbox.review.restored" | "inbox.review.replied" | "inbox.mention.received" | "inbox.message.sent" | "inbox.message.delivered" | "inbox.message.read" | "inbox.message.edited" | "inbox.message.deleted" | "inbox.reaction.received" | "inbox.referral.received" | "inbox.conversation.started" | "analytics.post.synced" | "analytics.account.synced" | "ads.operation.succeeded" | "ads.operation.failed" | "ads.campaign.activated" | "ads.campaign.paused" | "ads.budget.changed" | "ads.kill_switch.activated" | "ads.lead.received" | "ads.campaign.status_changed" | "ads.ad_group.status_changed" | "ads.ad.status_changed" | "ads.ad_account.status_changed" | "ads.ad.review.approved" | "ads.ad.review.rejected" | "ads.sync.failed" | "ads.sync.recovered" | "ads.initial_sync.completed" | "schedule.assignment.changed" | "account.connected" | "account.disconnected" | "account.permissions_changed" | "account.restricted" | "account.recovered" | "billing.subscription.updated" | "billing.credit.topped_up" | "billing.credit.low" | "billing.spend_cap.reached" | "billing.invoice.payment_failed">;
17290
+ eventTypes?: Array<"post.delivery.published" | "post.delivery.provider_draft" | "post.delivery.failed" | "post.delivery.unresolved" | "post.delivery.cancelled" | "post.scheduled" | "post.published" | "post.partial" | "post.failed" | "post.cancelled" | "inbox.message.received" | "inbox.comment.received" | "inbox.review.new" | "inbox.review.updated" | "inbox.review.deleted" | "inbox.review.restored" | "inbox.review.replied" | "inbox.mention.received" | "inbox.message.sent" | "inbox.message.delivered" | "inbox.message.read" | "inbox.message.edited" | "inbox.message.deleted" | "inbox.reaction.received" | "inbox.referral.received" | "inbox.conversation.started" | "analytics.post.synced" | "analytics.account.synced" | "ads.operation.succeeded" | "ads.operation.failed" | "ads.campaign.activated" | "ads.campaign.paused" | "ads.budget.changed" | "ads.kill_switch.activated" | "ads.lead.received" | "ads.campaign.status_changed" | "ads.ad_group.status_changed" | "ads.ad.status_changed" | "ads.ad_account.status_changed" | "ads.ad.review.approved" | "ads.ad.review.rejected" | "ads.sync.failed" | "ads.sync.recovered" | "ads.initial_sync.completed" | "schedule.assignment.changed" | "account.connected" | "account.disconnected" | "account.permissions_changed" | "account.restricted" | "account.recovered" | "billing.subscription.updated" | "billing.credit.topped_up" | "billing.credit.low" | "billing.spend_cap.reached" | "billing.invoice.payment_failed" | "billing.subscription.duplicate_refunded">;
16309
17291
  enabled?: boolean;
16310
17292
  profileId?: string | null;
16311
17293
  /**
@@ -19664,6 +20646,10 @@ export type AnalyticsPostsSeriesErrors = {
19664
20646
  * Unauthorized
19665
20647
  */
19666
20648
  401: AuthenticationRequiredEncoded;
20649
+ /**
20650
+ * Plan upgrade required
20651
+ */
20652
+ 402: PlanRequiredEncoded;
19667
20653
  /**
19668
20654
  * Provider permission required | Forbidden | Human actor required | Owner permission required
19669
20655
  */
@@ -19792,6 +20778,10 @@ export type AnalyticsAccountsGetErrors = {
19792
20778
  * Unauthorized
19793
20779
  */
19794
20780
  401: AuthenticationRequiredEncoded;
20781
+ /**
20782
+ * Plan upgrade required
20783
+ */
20784
+ 402: PlanRequiredEncoded;
19795
20785
  /**
19796
20786
  * Provider permission required | Forbidden | Human actor required | Owner permission required
19797
20787
  */
@@ -20033,9 +21023,9 @@ export type InboxConversationsListErrors = {
20033
21023
  */
20034
21024
  404: NotFoundEncoded | QueueNotFoundEncoded;
20035
21025
  /**
20036
- * Conflict | Provider reconnect required | Capability unverified | Queue already exists | Queue default required | Queue version changed | Queue unavailable | Queue capacity reached | No queue slot available | Queue slot conflict | Inbox reply window closed | Inbox target changed | Inbox sync already running | Idempotency key already used
21026
+ * Conflict | Provider reconnect required | Capability unverified | Queue already exists | Queue default required | Queue version changed | Queue unavailable | Queue capacity reached | No queue slot available | Queue slot conflict | Inbox unavailable | Inbox reply window closed | Inbox target changed | Inbox sync already running | Idempotency key already used
20037
21027
  */
20038
- 409: ConflictEncoded | ProviderReconnectRequiredEncoded | CapabilityUnverifiedEncoded | QueueAlreadyExistsEncoded | QueueDefaultRequiredEncoded | QueueVersionConflictEncoded | QueueUnavailableEncoded | QueueCapacityReachedEncoded | QueueNoSlotAvailableEncoded | QueueSlotConflictEncoded | InboxReplyWindowClosedEncoded | InboxTargetChangedEncoded | InboxSyncInProgressEncoded | IdempotencyConflictEncoded;
21028
+ 409: ConflictEncoded | ProviderReconnectRequiredEncoded | CapabilityUnverifiedEncoded | QueueAlreadyExistsEncoded | QueueDefaultRequiredEncoded | QueueVersionConflictEncoded | QueueUnavailableEncoded | QueueCapacityReachedEncoded | QueueNoSlotAvailableEncoded | QueueSlotConflictEncoded | InboxUnavailableEncoded | InboxReplyWindowClosedEncoded | InboxTargetChangedEncoded | InboxSyncInProgressEncoded | IdempotencyConflictEncoded;
20039
21029
  /**
20040
21030
  * Capability unsupported | Invalid queue | Schedule range too wide | Inbox content unsupported
20041
21031
  */
@@ -20089,9 +21079,9 @@ export type InboxConversationsGetErrors = {
20089
21079
  */
20090
21080
  404: NotFoundEncoded | QueueNotFoundEncoded;
20091
21081
  /**
20092
- * Conflict | Provider reconnect required | Capability unverified | Queue already exists | Queue default required | Queue version changed | Queue unavailable | Queue capacity reached | No queue slot available | Queue slot conflict | Inbox reply window closed | Inbox target changed | Inbox sync already running | Idempotency key already used
21082
+ * Conflict | Provider reconnect required | Capability unverified | Queue already exists | Queue default required | Queue version changed | Queue unavailable | Queue capacity reached | No queue slot available | Queue slot conflict | Inbox unavailable | Inbox reply window closed | Inbox target changed | Inbox sync already running | Idempotency key already used
20093
21083
  */
20094
- 409: ConflictEncoded | ProviderReconnectRequiredEncoded | CapabilityUnverifiedEncoded | QueueAlreadyExistsEncoded | QueueDefaultRequiredEncoded | QueueVersionConflictEncoded | QueueUnavailableEncoded | QueueCapacityReachedEncoded | QueueNoSlotAvailableEncoded | QueueSlotConflictEncoded | InboxReplyWindowClosedEncoded | InboxTargetChangedEncoded | InboxSyncInProgressEncoded | IdempotencyConflictEncoded;
21084
+ 409: ConflictEncoded | ProviderReconnectRequiredEncoded | CapabilityUnverifiedEncoded | QueueAlreadyExistsEncoded | QueueDefaultRequiredEncoded | QueueVersionConflictEncoded | QueueUnavailableEncoded | QueueCapacityReachedEncoded | QueueNoSlotAvailableEncoded | QueueSlotConflictEncoded | InboxUnavailableEncoded | InboxReplyWindowClosedEncoded | InboxTargetChangedEncoded | InboxSyncInProgressEncoded | IdempotencyConflictEncoded;
20095
21085
  /**
20096
21086
  * Capability unsupported | Invalid queue | Schedule range too wide | Inbox content unsupported
20097
21087
  */
@@ -20148,9 +21138,9 @@ export type InboxConversationsUpdateErrors = {
20148
21138
  */
20149
21139
  404: NotFoundEncoded | QueueNotFoundEncoded;
20150
21140
  /**
20151
- * Conflict | Provider reconnect required | Capability unverified | Queue already exists | Queue default required | Queue version changed | Queue unavailable | Queue capacity reached | No queue slot available | Queue slot conflict | Inbox reply window closed | Inbox target changed | Inbox sync already running | Idempotency key already used
21141
+ * Conflict | Provider reconnect required | Capability unverified | Queue already exists | Queue default required | Queue version changed | Queue unavailable | Queue capacity reached | No queue slot available | Queue slot conflict | Inbox unavailable | Inbox reply window closed | Inbox target changed | Inbox sync already running | Idempotency key already used
20152
21142
  */
20153
- 409: ConflictEncoded | ProviderReconnectRequiredEncoded | CapabilityUnverifiedEncoded | QueueAlreadyExistsEncoded | QueueDefaultRequiredEncoded | QueueVersionConflictEncoded | QueueUnavailableEncoded | QueueCapacityReachedEncoded | QueueNoSlotAvailableEncoded | QueueSlotConflictEncoded | InboxReplyWindowClosedEncoded | InboxTargetChangedEncoded | InboxSyncInProgressEncoded | IdempotencyConflictEncoded;
21143
+ 409: ConflictEncoded | ProviderReconnectRequiredEncoded | CapabilityUnverifiedEncoded | QueueAlreadyExistsEncoded | QueueDefaultRequiredEncoded | QueueVersionConflictEncoded | QueueUnavailableEncoded | QueueCapacityReachedEncoded | QueueNoSlotAvailableEncoded | QueueSlotConflictEncoded | InboxUnavailableEncoded | InboxReplyWindowClosedEncoded | InboxTargetChangedEncoded | InboxSyncInProgressEncoded | IdempotencyConflictEncoded;
20154
21144
  /**
20155
21145
  * Capability unsupported | Invalid queue | Schedule range too wide | Inbox content unsupported
20156
21146
  */
@@ -20210,9 +21200,9 @@ export type InboxMessagesListErrors = {
20210
21200
  */
20211
21201
  404: NotFoundEncoded | QueueNotFoundEncoded;
20212
21202
  /**
20213
- * Conflict | Provider reconnect required | Capability unverified | Queue already exists | Queue default required | Queue version changed | Queue unavailable | Queue capacity reached | No queue slot available | Queue slot conflict | Inbox reply window closed | Inbox target changed | Inbox sync already running | Idempotency key already used
21203
+ * Conflict | Provider reconnect required | Capability unverified | Queue already exists | Queue default required | Queue version changed | Queue unavailable | Queue capacity reached | No queue slot available | Queue slot conflict | Inbox unavailable | Inbox reply window closed | Inbox target changed | Inbox sync already running | Idempotency key already used
20214
21204
  */
20215
- 409: ConflictEncoded | ProviderReconnectRequiredEncoded | CapabilityUnverifiedEncoded | QueueAlreadyExistsEncoded | QueueDefaultRequiredEncoded | QueueVersionConflictEncoded | QueueUnavailableEncoded | QueueCapacityReachedEncoded | QueueNoSlotAvailableEncoded | QueueSlotConflictEncoded | InboxReplyWindowClosedEncoded | InboxTargetChangedEncoded | InboxSyncInProgressEncoded | IdempotencyConflictEncoded;
21205
+ 409: ConflictEncoded | ProviderReconnectRequiredEncoded | CapabilityUnverifiedEncoded | QueueAlreadyExistsEncoded | QueueDefaultRequiredEncoded | QueueVersionConflictEncoded | QueueUnavailableEncoded | QueueCapacityReachedEncoded | QueueNoSlotAvailableEncoded | QueueSlotConflictEncoded | InboxUnavailableEncoded | InboxReplyWindowClosedEncoded | InboxTargetChangedEncoded | InboxSyncInProgressEncoded | IdempotencyConflictEncoded;
20216
21206
  /**
20217
21207
  * Capability unsupported | Invalid queue | Schedule range too wide | Inbox content unsupported
20218
21208
  */
@@ -20269,9 +21259,9 @@ export type InboxMessagesSendErrors = {
20269
21259
  */
20270
21260
  404: NotFoundEncoded | QueueNotFoundEncoded;
20271
21261
  /**
20272
- * Conflict | Provider reconnect required | Capability unverified | Queue already exists | Queue default required | Queue version changed | Queue unavailable | Queue capacity reached | No queue slot available | Queue slot conflict | Inbox reply window closed | Inbox target changed | Inbox sync already running | Idempotency key already used
21262
+ * Conflict | Provider reconnect required | Capability unverified | Queue already exists | Queue default required | Queue version changed | Queue unavailable | Queue capacity reached | No queue slot available | Queue slot conflict | Inbox unavailable | Inbox reply window closed | Inbox target changed | Inbox sync already running | Idempotency key already used
20273
21263
  */
20274
- 409: ConflictEncoded | ProviderReconnectRequiredEncoded | CapabilityUnverifiedEncoded | QueueAlreadyExistsEncoded | QueueDefaultRequiredEncoded | QueueVersionConflictEncoded | QueueUnavailableEncoded | QueueCapacityReachedEncoded | QueueNoSlotAvailableEncoded | QueueSlotConflictEncoded | InboxReplyWindowClosedEncoded | InboxTargetChangedEncoded | InboxSyncInProgressEncoded | IdempotencyConflictEncoded;
21264
+ 409: ConflictEncoded | ProviderReconnectRequiredEncoded | CapabilityUnverifiedEncoded | QueueAlreadyExistsEncoded | QueueDefaultRequiredEncoded | QueueVersionConflictEncoded | QueueUnavailableEncoded | QueueCapacityReachedEncoded | QueueNoSlotAvailableEncoded | QueueSlotConflictEncoded | InboxUnavailableEncoded | InboxReplyWindowClosedEncoded | InboxTargetChangedEncoded | InboxSyncInProgressEncoded | IdempotencyConflictEncoded;
20275
21265
  /**
20276
21266
  * Capability unsupported | Invalid queue | Schedule range too wide | Inbox content unsupported
20277
21267
  */
@@ -20332,9 +21322,9 @@ export type InboxCommentsListErrors = {
20332
21322
  */
20333
21323
  404: NotFoundEncoded | QueueNotFoundEncoded;
20334
21324
  /**
20335
- * Conflict | Provider reconnect required | Capability unverified | Queue already exists | Queue default required | Queue version changed | Queue unavailable | Queue capacity reached | No queue slot available | Queue slot conflict | Inbox reply window closed | Inbox target changed | Inbox sync already running | Idempotency key already used
21325
+ * Conflict | Provider reconnect required | Capability unverified | Queue already exists | Queue default required | Queue version changed | Queue unavailable | Queue capacity reached | No queue slot available | Queue slot conflict | Inbox unavailable | Inbox reply window closed | Inbox target changed | Inbox sync already running | Idempotency key already used
20336
21326
  */
20337
- 409: ConflictEncoded | ProviderReconnectRequiredEncoded | CapabilityUnverifiedEncoded | QueueAlreadyExistsEncoded | QueueDefaultRequiredEncoded | QueueVersionConflictEncoded | QueueUnavailableEncoded | QueueCapacityReachedEncoded | QueueNoSlotAvailableEncoded | QueueSlotConflictEncoded | InboxReplyWindowClosedEncoded | InboxTargetChangedEncoded | InboxSyncInProgressEncoded | IdempotencyConflictEncoded;
21327
+ 409: ConflictEncoded | ProviderReconnectRequiredEncoded | CapabilityUnverifiedEncoded | QueueAlreadyExistsEncoded | QueueDefaultRequiredEncoded | QueueVersionConflictEncoded | QueueUnavailableEncoded | QueueCapacityReachedEncoded | QueueNoSlotAvailableEncoded | QueueSlotConflictEncoded | InboxUnavailableEncoded | InboxReplyWindowClosedEncoded | InboxTargetChangedEncoded | InboxSyncInProgressEncoded | IdempotencyConflictEncoded;
20338
21328
  /**
20339
21329
  * Capability unsupported | Invalid queue | Schedule range too wide | Inbox content unsupported
20340
21330
  */
@@ -20393,9 +21383,9 @@ export type InboxCommentsGetErrors = {
20393
21383
  */
20394
21384
  404: NotFoundEncoded | QueueNotFoundEncoded;
20395
21385
  /**
20396
- * Conflict | Provider reconnect required | Capability unverified | Queue already exists | Queue default required | Queue version changed | Queue unavailable | Queue capacity reached | No queue slot available | Queue slot conflict | Inbox reply window closed | Inbox target changed | Inbox sync already running | Idempotency key already used
21386
+ * Conflict | Provider reconnect required | Capability unverified | Queue already exists | Queue default required | Queue version changed | Queue unavailable | Queue capacity reached | No queue slot available | Queue slot conflict | Inbox unavailable | Inbox reply window closed | Inbox target changed | Inbox sync already running | Idempotency key already used
20397
21387
  */
20398
- 409: ConflictEncoded | ProviderReconnectRequiredEncoded | CapabilityUnverifiedEncoded | QueueAlreadyExistsEncoded | QueueDefaultRequiredEncoded | QueueVersionConflictEncoded | QueueUnavailableEncoded | QueueCapacityReachedEncoded | QueueNoSlotAvailableEncoded | QueueSlotConflictEncoded | InboxReplyWindowClosedEncoded | InboxTargetChangedEncoded | InboxSyncInProgressEncoded | IdempotencyConflictEncoded;
21388
+ 409: ConflictEncoded | ProviderReconnectRequiredEncoded | CapabilityUnverifiedEncoded | QueueAlreadyExistsEncoded | QueueDefaultRequiredEncoded | QueueVersionConflictEncoded | QueueUnavailableEncoded | QueueCapacityReachedEncoded | QueueNoSlotAvailableEncoded | QueueSlotConflictEncoded | InboxUnavailableEncoded | InboxReplyWindowClosedEncoded | InboxTargetChangedEncoded | InboxSyncInProgressEncoded | IdempotencyConflictEncoded;
20399
21389
  /**
20400
21390
  * Capability unsupported | Invalid queue | Schedule range too wide | Inbox content unsupported
20401
21391
  */
@@ -20452,9 +21442,9 @@ export type InboxCommentsReplyErrors = {
20452
21442
  */
20453
21443
  404: NotFoundEncoded | QueueNotFoundEncoded;
20454
21444
  /**
20455
- * Conflict | Provider reconnect required | Capability unverified | Queue already exists | Queue default required | Queue version changed | Queue unavailable | Queue capacity reached | No queue slot available | Queue slot conflict | Inbox reply window closed | Inbox target changed | Inbox sync already running | Idempotency key already used
21445
+ * Conflict | Provider reconnect required | Capability unverified | Queue already exists | Queue default required | Queue version changed | Queue unavailable | Queue capacity reached | No queue slot available | Queue slot conflict | Inbox unavailable | Inbox reply window closed | Inbox target changed | Inbox sync already running | Idempotency key already used
20456
21446
  */
20457
- 409: ConflictEncoded | ProviderReconnectRequiredEncoded | CapabilityUnverifiedEncoded | QueueAlreadyExistsEncoded | QueueDefaultRequiredEncoded | QueueVersionConflictEncoded | QueueUnavailableEncoded | QueueCapacityReachedEncoded | QueueNoSlotAvailableEncoded | QueueSlotConflictEncoded | InboxReplyWindowClosedEncoded | InboxTargetChangedEncoded | InboxSyncInProgressEncoded | IdempotencyConflictEncoded;
21447
+ 409: ConflictEncoded | ProviderReconnectRequiredEncoded | CapabilityUnverifiedEncoded | QueueAlreadyExistsEncoded | QueueDefaultRequiredEncoded | QueueVersionConflictEncoded | QueueUnavailableEncoded | QueueCapacityReachedEncoded | QueueNoSlotAvailableEncoded | QueueSlotConflictEncoded | InboxUnavailableEncoded | InboxReplyWindowClosedEncoded | InboxTargetChangedEncoded | InboxSyncInProgressEncoded | IdempotencyConflictEncoded;
20458
21448
  /**
20459
21449
  * Capability unsupported | Invalid queue | Schedule range too wide | Inbox content unsupported
20460
21450
  */
@@ -20508,9 +21498,9 @@ export type InboxCommentsDeleteErrors = {
20508
21498
  */
20509
21499
  404: NotFoundEncoded | QueueNotFoundEncoded;
20510
21500
  /**
20511
- * Conflict | Provider reconnect required | Capability unverified | Queue already exists | Queue default required | Queue version changed | Queue unavailable | Queue capacity reached | No queue slot available | Queue slot conflict | Inbox reply window closed | Inbox target changed | Inbox sync already running | Idempotency key already used
21501
+ * Conflict | Provider reconnect required | Capability unverified | Queue already exists | Queue default required | Queue version changed | Queue unavailable | Queue capacity reached | No queue slot available | Queue slot conflict | Inbox unavailable | Inbox reply window closed | Inbox target changed | Inbox sync already running | Idempotency key already used
20512
21502
  */
20513
- 409: ConflictEncoded | ProviderReconnectRequiredEncoded | CapabilityUnverifiedEncoded | QueueAlreadyExistsEncoded | QueueDefaultRequiredEncoded | QueueVersionConflictEncoded | QueueUnavailableEncoded | QueueCapacityReachedEncoded | QueueNoSlotAvailableEncoded | QueueSlotConflictEncoded | InboxReplyWindowClosedEncoded | InboxTargetChangedEncoded | InboxSyncInProgressEncoded | IdempotencyConflictEncoded;
21503
+ 409: ConflictEncoded | ProviderReconnectRequiredEncoded | CapabilityUnverifiedEncoded | QueueAlreadyExistsEncoded | QueueDefaultRequiredEncoded | QueueVersionConflictEncoded | QueueUnavailableEncoded | QueueCapacityReachedEncoded | QueueNoSlotAvailableEncoded | QueueSlotConflictEncoded | InboxUnavailableEncoded | InboxReplyWindowClosedEncoded | InboxTargetChangedEncoded | InboxSyncInProgressEncoded | IdempotencyConflictEncoded;
20514
21504
  /**
20515
21505
  * Capability unsupported | Invalid queue | Schedule range too wide | Inbox content unsupported
20516
21506
  */
@@ -20567,9 +21557,9 @@ export type InboxCommentsModerateErrors = {
20567
21557
  */
20568
21558
  404: NotFoundEncoded | QueueNotFoundEncoded;
20569
21559
  /**
20570
- * Conflict | Provider reconnect required | Capability unverified | Queue already exists | Queue default required | Queue version changed | Queue unavailable | Queue capacity reached | No queue slot available | Queue slot conflict | Inbox reply window closed | Inbox target changed | Inbox sync already running | Idempotency key already used
21560
+ * Conflict | Provider reconnect required | Capability unverified | Queue already exists | Queue default required | Queue version changed | Queue unavailable | Queue capacity reached | No queue slot available | Queue slot conflict | Inbox unavailable | Inbox reply window closed | Inbox target changed | Inbox sync already running | Idempotency key already used
20571
21561
  */
20572
- 409: ConflictEncoded | ProviderReconnectRequiredEncoded | CapabilityUnverifiedEncoded | QueueAlreadyExistsEncoded | QueueDefaultRequiredEncoded | QueueVersionConflictEncoded | QueueUnavailableEncoded | QueueCapacityReachedEncoded | QueueNoSlotAvailableEncoded | QueueSlotConflictEncoded | InboxReplyWindowClosedEncoded | InboxTargetChangedEncoded | InboxSyncInProgressEncoded | IdempotencyConflictEncoded;
21562
+ 409: ConflictEncoded | ProviderReconnectRequiredEncoded | CapabilityUnverifiedEncoded | QueueAlreadyExistsEncoded | QueueDefaultRequiredEncoded | QueueVersionConflictEncoded | QueueUnavailableEncoded | QueueCapacityReachedEncoded | QueueNoSlotAvailableEncoded | QueueSlotConflictEncoded | InboxUnavailableEncoded | InboxReplyWindowClosedEncoded | InboxTargetChangedEncoded | InboxSyncInProgressEncoded | IdempotencyConflictEncoded;
20573
21563
  /**
20574
21564
  * Capability unsupported | Invalid queue | Schedule range too wide | Inbox content unsupported
20575
21565
  */
@@ -20628,9 +21618,9 @@ export type InboxMentionsListErrors = {
20628
21618
  */
20629
21619
  404: NotFoundEncoded | QueueNotFoundEncoded;
20630
21620
  /**
20631
- * Conflict | Provider reconnect required | Capability unverified | Queue already exists | Queue default required | Queue version changed | Queue unavailable | Queue capacity reached | No queue slot available | Queue slot conflict | Inbox reply window closed | Inbox target changed | Inbox sync already running | Idempotency key already used
21621
+ * Conflict | Provider reconnect required | Capability unverified | Queue already exists | Queue default required | Queue version changed | Queue unavailable | Queue capacity reached | No queue slot available | Queue slot conflict | Inbox unavailable | Inbox reply window closed | Inbox target changed | Inbox sync already running | Idempotency key already used
20632
21622
  */
20633
- 409: ConflictEncoded | ProviderReconnectRequiredEncoded | CapabilityUnverifiedEncoded | QueueAlreadyExistsEncoded | QueueDefaultRequiredEncoded | QueueVersionConflictEncoded | QueueUnavailableEncoded | QueueCapacityReachedEncoded | QueueNoSlotAvailableEncoded | QueueSlotConflictEncoded | InboxReplyWindowClosedEncoded | InboxTargetChangedEncoded | InboxSyncInProgressEncoded | IdempotencyConflictEncoded;
21623
+ 409: ConflictEncoded | ProviderReconnectRequiredEncoded | CapabilityUnverifiedEncoded | QueueAlreadyExistsEncoded | QueueDefaultRequiredEncoded | QueueVersionConflictEncoded | QueueUnavailableEncoded | QueueCapacityReachedEncoded | QueueNoSlotAvailableEncoded | QueueSlotConflictEncoded | InboxUnavailableEncoded | InboxReplyWindowClosedEncoded | InboxTargetChangedEncoded | InboxSyncInProgressEncoded | IdempotencyConflictEncoded;
20634
21624
  /**
20635
21625
  * Capability unsupported | Invalid queue | Schedule range too wide | Inbox content unsupported
20636
21626
  */
@@ -20687,9 +21677,9 @@ export type InboxMentionsReplyErrors = {
20687
21677
  */
20688
21678
  404: NotFoundEncoded | QueueNotFoundEncoded;
20689
21679
  /**
20690
- * Conflict | Provider reconnect required | Capability unverified | Queue already exists | Queue default required | Queue version changed | Queue unavailable | Queue capacity reached | No queue slot available | Queue slot conflict | Inbox reply window closed | Inbox target changed | Inbox sync already running | Idempotency key already used
21680
+ * Conflict | Provider reconnect required | Capability unverified | Queue already exists | Queue default required | Queue version changed | Queue unavailable | Queue capacity reached | No queue slot available | Queue slot conflict | Inbox unavailable | Inbox reply window closed | Inbox target changed | Inbox sync already running | Idempotency key already used
20691
21681
  */
20692
- 409: ConflictEncoded | ProviderReconnectRequiredEncoded | CapabilityUnverifiedEncoded | QueueAlreadyExistsEncoded | QueueDefaultRequiredEncoded | QueueVersionConflictEncoded | QueueUnavailableEncoded | QueueCapacityReachedEncoded | QueueNoSlotAvailableEncoded | QueueSlotConflictEncoded | InboxReplyWindowClosedEncoded | InboxTargetChangedEncoded | InboxSyncInProgressEncoded | IdempotencyConflictEncoded;
21682
+ 409: ConflictEncoded | ProviderReconnectRequiredEncoded | CapabilityUnverifiedEncoded | QueueAlreadyExistsEncoded | QueueDefaultRequiredEncoded | QueueVersionConflictEncoded | QueueUnavailableEncoded | QueueCapacityReachedEncoded | QueueNoSlotAvailableEncoded | QueueSlotConflictEncoded | InboxUnavailableEncoded | InboxReplyWindowClosedEncoded | InboxTargetChangedEncoded | InboxSyncInProgressEncoded | IdempotencyConflictEncoded;
20693
21683
  /**
20694
21684
  * Capability unsupported | Invalid queue | Schedule range too wide | Inbox content unsupported
20695
21685
  */
@@ -20748,9 +21738,9 @@ export type InboxReviewsListErrors = {
20748
21738
  */
20749
21739
  404: NotFoundEncoded | QueueNotFoundEncoded;
20750
21740
  /**
20751
- * Conflict | Provider reconnect required | Capability unverified | Queue already exists | Queue default required | Queue version changed | Queue unavailable | Queue capacity reached | No queue slot available | Queue slot conflict | Inbox reply window closed | Inbox target changed | Inbox sync already running | Idempotency key already used
21741
+ * Conflict | Provider reconnect required | Capability unverified | Queue already exists | Queue default required | Queue version changed | Queue unavailable | Queue capacity reached | No queue slot available | Queue slot conflict | Inbox unavailable | Inbox reply window closed | Inbox target changed | Inbox sync already running | Idempotency key already used
20752
21742
  */
20753
- 409: ConflictEncoded | ProviderReconnectRequiredEncoded | CapabilityUnverifiedEncoded | QueueAlreadyExistsEncoded | QueueDefaultRequiredEncoded | QueueVersionConflictEncoded | QueueUnavailableEncoded | QueueCapacityReachedEncoded | QueueNoSlotAvailableEncoded | QueueSlotConflictEncoded | InboxReplyWindowClosedEncoded | InboxTargetChangedEncoded | InboxSyncInProgressEncoded | IdempotencyConflictEncoded;
21743
+ 409: ConflictEncoded | ProviderReconnectRequiredEncoded | CapabilityUnverifiedEncoded | QueueAlreadyExistsEncoded | QueueDefaultRequiredEncoded | QueueVersionConflictEncoded | QueueUnavailableEncoded | QueueCapacityReachedEncoded | QueueNoSlotAvailableEncoded | QueueSlotConflictEncoded | InboxUnavailableEncoded | InboxReplyWindowClosedEncoded | InboxTargetChangedEncoded | InboxSyncInProgressEncoded | IdempotencyConflictEncoded;
20754
21744
  /**
20755
21745
  * Capability unsupported | Invalid queue | Schedule range too wide | Inbox content unsupported
20756
21746
  */
@@ -20804,9 +21794,9 @@ export type InboxReviewsGetErrors = {
20804
21794
  */
20805
21795
  404: NotFoundEncoded | QueueNotFoundEncoded;
20806
21796
  /**
20807
- * Conflict | Provider reconnect required | Capability unverified | Queue already exists | Queue default required | Queue version changed | Queue unavailable | Queue capacity reached | No queue slot available | Queue slot conflict | Inbox reply window closed | Inbox target changed | Inbox sync already running | Idempotency key already used
21797
+ * Conflict | Provider reconnect required | Capability unverified | Queue already exists | Queue default required | Queue version changed | Queue unavailable | Queue capacity reached | No queue slot available | Queue slot conflict | Inbox unavailable | Inbox reply window closed | Inbox target changed | Inbox sync already running | Idempotency key already used
20808
21798
  */
20809
- 409: ConflictEncoded | ProviderReconnectRequiredEncoded | CapabilityUnverifiedEncoded | QueueAlreadyExistsEncoded | QueueDefaultRequiredEncoded | QueueVersionConflictEncoded | QueueUnavailableEncoded | QueueCapacityReachedEncoded | QueueNoSlotAvailableEncoded | QueueSlotConflictEncoded | InboxReplyWindowClosedEncoded | InboxTargetChangedEncoded | InboxSyncInProgressEncoded | IdempotencyConflictEncoded;
21799
+ 409: ConflictEncoded | ProviderReconnectRequiredEncoded | CapabilityUnverifiedEncoded | QueueAlreadyExistsEncoded | QueueDefaultRequiredEncoded | QueueVersionConflictEncoded | QueueUnavailableEncoded | QueueCapacityReachedEncoded | QueueNoSlotAvailableEncoded | QueueSlotConflictEncoded | InboxUnavailableEncoded | InboxReplyWindowClosedEncoded | InboxTargetChangedEncoded | InboxSyncInProgressEncoded | IdempotencyConflictEncoded;
20810
21800
  /**
20811
21801
  * Capability unsupported | Invalid queue | Schedule range too wide | Inbox content unsupported
20812
21802
  */
@@ -20863,9 +21853,9 @@ export type InboxReviewsReplyErrors = {
20863
21853
  */
20864
21854
  404: NotFoundEncoded | QueueNotFoundEncoded;
20865
21855
  /**
20866
- * Conflict | Provider reconnect required | Capability unverified | Queue already exists | Queue default required | Queue version changed | Queue unavailable | Queue capacity reached | No queue slot available | Queue slot conflict | Inbox reply window closed | Inbox target changed | Inbox sync already running | Idempotency key already used
21856
+ * Conflict | Provider reconnect required | Capability unverified | Queue already exists | Queue default required | Queue version changed | Queue unavailable | Queue capacity reached | No queue slot available | Queue slot conflict | Inbox unavailable | Inbox reply window closed | Inbox target changed | Inbox sync already running | Idempotency key already used
20867
21857
  */
20868
- 409: ConflictEncoded | ProviderReconnectRequiredEncoded | CapabilityUnverifiedEncoded | QueueAlreadyExistsEncoded | QueueDefaultRequiredEncoded | QueueVersionConflictEncoded | QueueUnavailableEncoded | QueueCapacityReachedEncoded | QueueNoSlotAvailableEncoded | QueueSlotConflictEncoded | InboxReplyWindowClosedEncoded | InboxTargetChangedEncoded | InboxSyncInProgressEncoded | IdempotencyConflictEncoded;
21858
+ 409: ConflictEncoded | ProviderReconnectRequiredEncoded | CapabilityUnverifiedEncoded | QueueAlreadyExistsEncoded | QueueDefaultRequiredEncoded | QueueVersionConflictEncoded | QueueUnavailableEncoded | QueueCapacityReachedEncoded | QueueNoSlotAvailableEncoded | QueueSlotConflictEncoded | InboxUnavailableEncoded | InboxReplyWindowClosedEncoded | InboxTargetChangedEncoded | InboxSyncInProgressEncoded | IdempotencyConflictEncoded;
20869
21859
  /**
20870
21860
  * Capability unsupported | Invalid queue | Schedule range too wide | Inbox content unsupported
20871
21861
  */
@@ -20917,9 +21907,9 @@ export type InboxUnreadCountErrors = {
20917
21907
  */
20918
21908
  404: NotFoundEncoded | QueueNotFoundEncoded;
20919
21909
  /**
20920
- * Conflict | Provider reconnect required | Capability unverified | Queue already exists | Queue default required | Queue version changed | Queue unavailable | Queue capacity reached | No queue slot available | Queue slot conflict | Inbox reply window closed | Inbox target changed | Inbox sync already running | Idempotency key already used
21910
+ * Conflict | Provider reconnect required | Capability unverified | Queue already exists | Queue default required | Queue version changed | Queue unavailable | Queue capacity reached | No queue slot available | Queue slot conflict | Inbox unavailable | Inbox reply window closed | Inbox target changed | Inbox sync already running | Idempotency key already used
20921
21911
  */
20922
- 409: ConflictEncoded | ProviderReconnectRequiredEncoded | CapabilityUnverifiedEncoded | QueueAlreadyExistsEncoded | QueueDefaultRequiredEncoded | QueueVersionConflictEncoded | QueueUnavailableEncoded | QueueCapacityReachedEncoded | QueueNoSlotAvailableEncoded | QueueSlotConflictEncoded | InboxReplyWindowClosedEncoded | InboxTargetChangedEncoded | InboxSyncInProgressEncoded | IdempotencyConflictEncoded;
21912
+ 409: ConflictEncoded | ProviderReconnectRequiredEncoded | CapabilityUnverifiedEncoded | QueueAlreadyExistsEncoded | QueueDefaultRequiredEncoded | QueueVersionConflictEncoded | QueueUnavailableEncoded | QueueCapacityReachedEncoded | QueueNoSlotAvailableEncoded | QueueSlotConflictEncoded | InboxUnavailableEncoded | InboxReplyWindowClosedEncoded | InboxTargetChangedEncoded | InboxSyncInProgressEncoded | IdempotencyConflictEncoded;
20923
21913
  /**
20924
21914
  * Capability unsupported | Invalid queue | Schedule range too wide | Inbox content unsupported
20925
21915
  */
@@ -20972,9 +21962,9 @@ export type InboxCapabilitiesGetErrors = {
20972
21962
  */
20973
21963
  404: NotFoundEncoded | QueueNotFoundEncoded;
20974
21964
  /**
20975
- * Conflict | Provider reconnect required | Capability unverified | Queue already exists | Queue default required | Queue version changed | Queue unavailable | Queue capacity reached | No queue slot available | Queue slot conflict | Inbox reply window closed | Inbox target changed | Inbox sync already running | Idempotency key already used
21965
+ * Conflict | Provider reconnect required | Capability unverified | Queue already exists | Queue default required | Queue version changed | Queue unavailable | Queue capacity reached | No queue slot available | Queue slot conflict | Inbox unavailable | Inbox reply window closed | Inbox target changed | Inbox sync already running | Idempotency key already used
20976
21966
  */
20977
- 409: ConflictEncoded | ProviderReconnectRequiredEncoded | CapabilityUnverifiedEncoded | QueueAlreadyExistsEncoded | QueueDefaultRequiredEncoded | QueueVersionConflictEncoded | QueueUnavailableEncoded | QueueCapacityReachedEncoded | QueueNoSlotAvailableEncoded | QueueSlotConflictEncoded | InboxReplyWindowClosedEncoded | InboxTargetChangedEncoded | InboxSyncInProgressEncoded | IdempotencyConflictEncoded;
21967
+ 409: ConflictEncoded | ProviderReconnectRequiredEncoded | CapabilityUnverifiedEncoded | QueueAlreadyExistsEncoded | QueueDefaultRequiredEncoded | QueueVersionConflictEncoded | QueueUnavailableEncoded | QueueCapacityReachedEncoded | QueueNoSlotAvailableEncoded | QueueSlotConflictEncoded | InboxUnavailableEncoded | InboxReplyWindowClosedEncoded | InboxTargetChangedEncoded | InboxSyncInProgressEncoded | IdempotencyConflictEncoded;
20978
21968
  /**
20979
21969
  * Capability unsupported | Invalid queue | Schedule range too wide | Inbox content unsupported
20980
21970
  */
@@ -21027,9 +22017,9 @@ export type InboxSyncStartErrors = {
21027
22017
  */
21028
22018
  404: NotFoundEncoded | QueueNotFoundEncoded;
21029
22019
  /**
21030
- * Conflict | Provider reconnect required | Capability unverified | Queue already exists | Queue default required | Queue version changed | Queue unavailable | Queue capacity reached | No queue slot available | Queue slot conflict | Inbox reply window closed | Inbox target changed | Inbox sync already running | Idempotency key already used
22020
+ * Conflict | Provider reconnect required | Capability unverified | Queue already exists | Queue default required | Queue version changed | Queue unavailable | Queue capacity reached | No queue slot available | Queue slot conflict | Inbox unavailable | Inbox reply window closed | Inbox target changed | Inbox sync already running | Idempotency key already used
21031
22021
  */
21032
- 409: ConflictEncoded | ProviderReconnectRequiredEncoded | CapabilityUnverifiedEncoded | QueueAlreadyExistsEncoded | QueueDefaultRequiredEncoded | QueueVersionConflictEncoded | QueueUnavailableEncoded | QueueCapacityReachedEncoded | QueueNoSlotAvailableEncoded | QueueSlotConflictEncoded | InboxReplyWindowClosedEncoded | InboxTargetChangedEncoded | InboxSyncInProgressEncoded | IdempotencyConflictEncoded;
22022
+ 409: ConflictEncoded | ProviderReconnectRequiredEncoded | CapabilityUnverifiedEncoded | QueueAlreadyExistsEncoded | QueueDefaultRequiredEncoded | QueueVersionConflictEncoded | QueueUnavailableEncoded | QueueCapacityReachedEncoded | QueueNoSlotAvailableEncoded | QueueSlotConflictEncoded | InboxUnavailableEncoded | InboxReplyWindowClosedEncoded | InboxTargetChangedEncoded | InboxSyncInProgressEncoded | IdempotencyConflictEncoded;
21033
22023
  /**
21034
22024
  * Capability unsupported | Invalid queue | Schedule range too wide | Inbox content unsupported
21035
22025
  */
@@ -21083,9 +22073,9 @@ export type InboxSyncGetErrors = {
21083
22073
  */
21084
22074
  404: NotFoundEncoded | QueueNotFoundEncoded;
21085
22075
  /**
21086
- * Conflict | Provider reconnect required | Capability unverified | Queue already exists | Queue default required | Queue version changed | Queue unavailable | Queue capacity reached | No queue slot available | Queue slot conflict | Inbox reply window closed | Inbox target changed | Inbox sync already running | Idempotency key already used
22076
+ * Conflict | Provider reconnect required | Capability unverified | Queue already exists | Queue default required | Queue version changed | Queue unavailable | Queue capacity reached | No queue slot available | Queue slot conflict | Inbox unavailable | Inbox reply window closed | Inbox target changed | Inbox sync already running | Idempotency key already used
21087
22077
  */
21088
- 409: ConflictEncoded | ProviderReconnectRequiredEncoded | CapabilityUnverifiedEncoded | QueueAlreadyExistsEncoded | QueueDefaultRequiredEncoded | QueueVersionConflictEncoded | QueueUnavailableEncoded | QueueCapacityReachedEncoded | QueueNoSlotAvailableEncoded | QueueSlotConflictEncoded | InboxReplyWindowClosedEncoded | InboxTargetChangedEncoded | InboxSyncInProgressEncoded | IdempotencyConflictEncoded;
22078
+ 409: ConflictEncoded | ProviderReconnectRequiredEncoded | CapabilityUnverifiedEncoded | QueueAlreadyExistsEncoded | QueueDefaultRequiredEncoded | QueueVersionConflictEncoded | QueueUnavailableEncoded | QueueCapacityReachedEncoded | QueueNoSlotAvailableEncoded | QueueSlotConflictEncoded | InboxUnavailableEncoded | InboxReplyWindowClosedEncoded | InboxTargetChangedEncoded | InboxSyncInProgressEncoded | IdempotencyConflictEncoded;
21089
22079
  /**
21090
22080
  * Capability unsupported | Invalid queue | Schedule range too wide | Inbox content unsupported
21091
22081
  */
@@ -21139,9 +22129,9 @@ export type InboxAttachmentsGetErrors = {
21139
22129
  */
21140
22130
  404: NotFoundEncoded | QueueNotFoundEncoded;
21141
22131
  /**
21142
- * Conflict | Provider reconnect required | Capability unverified | Queue already exists | Queue default required | Queue version changed | Queue unavailable | Queue capacity reached | No queue slot available | Queue slot conflict | Inbox reply window closed | Inbox target changed | Inbox sync already running | Idempotency key already used
22132
+ * Conflict | Provider reconnect required | Capability unverified | Queue already exists | Queue default required | Queue version changed | Queue unavailable | Queue capacity reached | No queue slot available | Queue slot conflict | Inbox unavailable | Inbox reply window closed | Inbox target changed | Inbox sync already running | Idempotency key already used
21143
22133
  */
21144
- 409: ConflictEncoded | ProviderReconnectRequiredEncoded | CapabilityUnverifiedEncoded | QueueAlreadyExistsEncoded | QueueDefaultRequiredEncoded | QueueVersionConflictEncoded | QueueUnavailableEncoded | QueueCapacityReachedEncoded | QueueNoSlotAvailableEncoded | QueueSlotConflictEncoded | InboxReplyWindowClosedEncoded | InboxTargetChangedEncoded | InboxSyncInProgressEncoded | IdempotencyConflictEncoded;
22134
+ 409: ConflictEncoded | ProviderReconnectRequiredEncoded | CapabilityUnverifiedEncoded | QueueAlreadyExistsEncoded | QueueDefaultRequiredEncoded | QueueVersionConflictEncoded | QueueUnavailableEncoded | QueueCapacityReachedEncoded | QueueNoSlotAvailableEncoded | QueueSlotConflictEncoded | InboxUnavailableEncoded | InboxReplyWindowClosedEncoded | InboxTargetChangedEncoded | InboxSyncInProgressEncoded | IdempotencyConflictEncoded;
21145
22135
  /**
21146
22136
  * Capability unsupported | Invalid queue | Schedule range too wide | Inbox content unsupported
21147
22137
  */
@@ -21357,15 +22347,65 @@ export type PostsCreateErrors = {
21357
22347
  export type PostsCreateError = PostsCreateErrors[keyof PostsCreateErrors];
21358
22348
  export type PostsCreateResponses = {
21359
22349
  /**
21360
- * Post
22350
+ * PostCreated
21361
22351
  */
21362
- 201: Post$1;
22352
+ 201: PostCreated$1;
21363
22353
  /**
21364
22354
  * PublishAccepted
21365
22355
  */
21366
22356
  202: PublishAccepted$1;
21367
22357
  };
21368
22358
  export type PostsCreateResponse = PostsCreateResponses[keyof PostsCreateResponses];
22359
+ export type PostsValidateBodyData = {
22360
+ body: CreatePost$1;
22361
+ path?: never;
22362
+ query: {
22363
+ workspaceId: string;
22364
+ };
22365
+ url: "/api/v1/posts/validate";
22366
+ };
22367
+ export type PostsValidateBodyErrors = {
22368
+ /**
22369
+ * Unsupported API version | Bad Request
22370
+ */
22371
+ 400: UnsupportedApiVersionEncoded | BadRequestProblemEncoded;
22372
+ /**
22373
+ * Unauthorized
22374
+ */
22375
+ 401: AuthenticationRequiredEncoded;
22376
+ /**
22377
+ * Forbidden | Human actor required | Owner permission required
22378
+ */
22379
+ 403: ForbiddenEncoded | HumanActorRequiredEncoded | OwnerRequiredEncoded;
22380
+ /**
22381
+ * Not Found
22382
+ */
22383
+ 404: NotFoundEncoded;
22384
+ /**
22385
+ * Error
22386
+ */
22387
+ 415: string;
22388
+ /**
22389
+ * Provider rate limited
22390
+ */
22391
+ 429: ProviderRateLimitedEncoded;
22392
+ /**
22393
+ * Internal Server Error
22394
+ */
22395
+ 500: InternalFailureEncoded | InternalServerErrorProblemEncoded;
22396
+ /**
22397
+ * Service Unavailable
22398
+ */
22399
+ 503: UnavailableEncoded;
22400
+ };
22401
+ export type PostsValidateBodyError = PostsValidateBodyErrors[keyof PostsValidateBodyErrors];
22402
+ export type PostsValidateBodyResponses = {
22403
+ /**
22404
+ * PostValidation
22405
+ */
22406
+ 200: PostValidation$1;
22407
+ };
22408
+ export type PostsValidateBodyResponse = PostsValidateBodyResponses[keyof PostsValidateBodyResponses];
21369
22409
  export type PostsDeleteData = {
21370
22410
  body?: never;
21371
22411
  path: {
@@ -21508,9 +22548,9 @@ export type PostsUpdateErrors = {
21508
22548
  */
21509
22549
  404: NotFoundEncoded | QueueNotFoundEncoded;
21510
22550
  /**
21511
- * Conflict | Provider reconnect required | Capability unverified | Queue already exists | Queue default required | Queue version changed | Queue unavailable | Queue capacity reached | No queue slot available | Queue slot conflict | Post revision changed
22551
+ * Conflict | Provider reconnect required | Capability unverified | Queue already exists | Queue default required | Queue version changed | Queue unavailable | Queue capacity reached | No queue slot available | Queue slot conflict | Post revision changed | Post already submitted
21512
22552
  */
21513
- 409: ConflictEncoded | ProviderReconnectRequiredEncoded | CapabilityUnverifiedEncoded | QueueAlreadyExistsEncoded | QueueDefaultRequiredEncoded | QueueVersionConflictEncoded | QueueUnavailableEncoded | QueueCapacityReachedEncoded | QueueNoSlotAvailableEncoded | QueueSlotConflictEncoded | PostRevisionConflictEncoded;
22553
+ 409: ConflictEncoded | ProviderReconnectRequiredEncoded | CapabilityUnverifiedEncoded | QueueAlreadyExistsEncoded | QueueDefaultRequiredEncoded | QueueVersionConflictEncoded | QueueUnavailableEncoded | QueueCapacityReachedEncoded | QueueNoSlotAvailableEncoded | QueueSlotConflictEncoded | PostRevisionConflictEncoded | PostSubmittedEncoded;
21514
22554
  /**
21515
22555
  * Error
21516
22556
  */
@@ -21598,14 +22638,17 @@ export type PostsValidateResponses = {
21598
22638
  export type PostsValidateResponse = PostsValidateResponses[keyof PostsValidateResponses];
21599
22639
  export type PostsPublishData = {
21600
22640
  body: {
21601
- expectedRevision: number;
22641
+ /**
22642
+ * Publish only if the draft is still at this revision. Omit to publish the saved draft as it is.
22643
+ */
22644
+ expectedRevision?: number;
21602
22645
  scheduledAt?: string;
21603
22646
  /**
21604
22647
  * Select every draft placement for these accounts. Use targets for exact selection instead.
21605
22648
  */
21606
- accountIds?: Array<string>;
22649
+ accounts?: Array<string>;
21607
22650
  /**
21608
- * Select exact draft destinations and optionally override each schedule. Omit accountIds when using targets.
22651
+ * Select exact draft destinations and optionally override each schedule. Omit accounts when using targets.
21609
22652
  */
21610
22653
  targets?: Array<DestinationSelection>;
21611
22654
  };
@@ -21902,6 +22945,10 @@ export type AdsListAccountsErrors = {
21902
22945
  * Unauthorized
21903
22946
  */
21904
22947
  401: AuthenticationRequiredEncoded;
22948
+ /**
22949
+ * Plan upgrade required
22950
+ */
22951
+ 402: PlanRequiredEncoded;
21905
22952
  /**
21906
22953
  * Provider permission required | Ad spend permission required | Forbidden | Human actor required | Owner permission required
21907
22954
  */
@@ -21958,6 +23005,10 @@ export type AdsConnectAccountErrors = {
21958
23005
  * Unauthorized
21959
23006
  */
21960
23007
  401: AuthenticationRequiredEncoded;
23008
+ /**
23009
+ * Plan upgrade required
23010
+ */
23011
+ 402: PlanRequiredEncoded;
21961
23012
  /**
21962
23013
  * Provider permission required | Ad spend permission required | Forbidden | Human actor required | Owner permission required
21963
23014
  */
@@ -22010,6 +23061,10 @@ export type AdsConnectApiKeyAccountErrors = {
22010
23061
  * Unauthorized
22011
23062
  */
22012
23063
  401: AuthenticationRequiredEncoded;
23064
+ /**
23065
+ * Plan upgrade required
23066
+ */
23067
+ 402: PlanRequiredEncoded;
22013
23068
  /**
22014
23069
  * Provider permission required | Ad spend permission required | Forbidden | Human actor required | Owner permission required
22015
23070
  */
@@ -22064,6 +23119,10 @@ export type AdsValidateCampaignPlanErrors = {
22064
23119
  * Unauthorized
22065
23120
  */
22066
23121
  401: AuthenticationRequiredEncoded;
23122
+ /**
23123
+ * Plan upgrade required
23124
+ */
23125
+ 402: PlanRequiredEncoded;
22067
23126
  /**
22068
23127
  * Provider permission required | Ad spend permission required | Forbidden | Human actor required | Owner permission required
22069
23128
  */
@@ -22127,6 +23186,10 @@ export type AdsListWorkspaceCampaignsErrors = {
22127
23186
  * Unauthorized
22128
23187
  */
22129
23188
  401: AuthenticationRequiredEncoded;
23189
+ /**
23190
+ * Plan upgrade required
23191
+ */
23192
+ 402: PlanRequiredEncoded;
22130
23193
  /**
22131
23194
  * Provider permission required | Ad spend permission required | Forbidden | Human actor required | Owner permission required
22132
23195
  */
@@ -22184,6 +23247,10 @@ export type AdsCreateCampaignPlanErrors = {
22184
23247
  * Unauthorized
22185
23248
  */
22186
23249
  401: AuthenticationRequiredEncoded;
23250
+ /**
23251
+ * Plan upgrade required
23252
+ */
23253
+ 402: PlanRequiredEncoded;
22187
23254
  /**
22188
23255
  * Provider permission required | Ad spend permission required | Forbidden | Human actor required | Owner permission required
22189
23256
  */
@@ -22244,6 +23311,10 @@ export type AdsListCampaignPlansErrors = {
22244
23311
  * Unauthorized
22245
23312
  */
22246
23313
  401: AuthenticationRequiredEncoded;
23314
+ /**
23315
+ * Plan upgrade required
23316
+ */
23317
+ 402: PlanRequiredEncoded;
22247
23318
  /**
22248
23319
  * Provider permission required | Ad spend permission required | Forbidden | Human actor required | Owner permission required
22249
23320
  */
@@ -22300,6 +23371,10 @@ export type AdsGetCampaignPlanErrors = {
22300
23371
  * Unauthorized
22301
23372
  */
22302
23373
  401: AuthenticationRequiredEncoded;
23374
+ /**
23375
+ * Plan upgrade required
23376
+ */
23377
+ 402: PlanRequiredEncoded;
22303
23378
  /**
22304
23379
  * Provider permission required | Ad spend permission required | Forbidden | Human actor required | Owner permission required
22305
23380
  */
@@ -22356,6 +23431,10 @@ export type AdsSelectAccountErrors = {
22356
23431
  * Unauthorized
22357
23432
  */
22358
23433
  401: AuthenticationRequiredEncoded;
23434
+ /**
23435
+ * Plan upgrade required
23436
+ */
23437
+ 402: PlanRequiredEncoded;
22359
23438
  /**
22360
23439
  * Provider permission required | Ad spend permission required | Forbidden | Human actor required | Owner permission required
22361
23440
  */
@@ -22412,6 +23491,10 @@ export type AdsDisconnectAccountErrors = {
22412
23491
  * Unauthorized
22413
23492
  */
22414
23493
  401: AuthenticationRequiredEncoded;
23494
+ /**
23495
+ * Plan upgrade required
23496
+ */
23497
+ 402: PlanRequiredEncoded;
22415
23498
  /**
22416
23499
  * Provider permission required | Ad spend permission required | Forbidden | Human actor required | Owner permission required
22417
23500
  */
@@ -22476,6 +23559,10 @@ export type AdsListCampaignsErrors = {
22476
23559
  * Unauthorized
22477
23560
  */
22478
23561
  401: AuthenticationRequiredEncoded;
23562
+ /**
23563
+ * Plan upgrade required
23564
+ */
23565
+ 402: PlanRequiredEncoded;
22479
23566
  /**
22480
23567
  * Provider permission required | Ad spend permission required | Forbidden | Human actor required | Owner permission required
22481
23568
  */
@@ -22537,6 +23624,10 @@ export type AdsGetTreeErrors = {
22537
23624
  * Unauthorized
22538
23625
  */
22539
23626
  401: AuthenticationRequiredEncoded;
23627
+ /**
23628
+ * Plan upgrade required
23629
+ */
23630
+ 402: PlanRequiredEncoded;
22540
23631
  /**
22541
23632
  * Provider permission required | Ad spend permission required | Forbidden | Human actor required | Owner permission required
22542
23633
  */
@@ -22603,6 +23694,10 @@ export type AdsListAdsErrors = {
22603
23694
  * Unauthorized
22604
23695
  */
22605
23696
  401: AuthenticationRequiredEncoded;
23697
+ /**
23698
+ * Plan upgrade required
23699
+ */
23700
+ 402: PlanRequiredEncoded;
22606
23701
  /**
22607
23702
  * Provider permission required | Ad spend permission required | Forbidden | Human actor required | Owner permission required
22608
23703
  */
@@ -22668,6 +23763,10 @@ export type AdsListAdGroupsErrors = {
22668
23763
  * Unauthorized
22669
23764
  */
22670
23765
  401: AuthenticationRequiredEncoded;
23766
+ /**
23767
+ * Plan upgrade required
23768
+ */
23769
+ 402: PlanRequiredEncoded;
22671
23770
  /**
22672
23771
  * Provider permission required | Ad spend permission required | Forbidden | Human actor required | Owner permission required
22673
23772
  */
@@ -22724,6 +23823,10 @@ export type AdsGetAdErrors = {
22724
23823
  * Unauthorized
22725
23824
  */
22726
23825
  401: AuthenticationRequiredEncoded;
23826
+ /**
23827
+ * Plan upgrade required
23828
+ */
23829
+ 402: PlanRequiredEncoded;
22727
23830
  /**
22728
23831
  * Provider permission required | Ad spend permission required | Forbidden | Human actor required | Owner permission required
22729
23832
  */
@@ -22785,6 +23888,10 @@ export type AdsListCreativesErrors = {
22785
23888
  * Unauthorized
22786
23889
  */
22787
23890
  401: AuthenticationRequiredEncoded;
23891
+ /**
23892
+ * Plan upgrade required
23893
+ */
23894
+ 402: PlanRequiredEncoded;
22788
23895
  /**
22789
23896
  * Provider permission required | Ad spend permission required | Forbidden | Human actor required | Owner permission required
22790
23897
  */
@@ -22844,6 +23951,10 @@ export type AdsCreateCreativeErrors = {
22844
23951
  * Unauthorized
22845
23952
  */
22846
23953
  401: AuthenticationRequiredEncoded;
23954
+ /**
23955
+ * Plan upgrade required
23956
+ */
23957
+ 402: PlanRequiredEncoded;
22847
23958
  /**
22848
23959
  * Provider permission required | Ad spend permission required | Forbidden | Human actor required | Owner permission required
22849
23960
  */
@@ -22900,6 +24011,10 @@ export type AdsGetCreativeErrors = {
22900
24011
  * Unauthorized
22901
24012
  */
22902
24013
  401: AuthenticationRequiredEncoded;
24014
+ /**
24015
+ * Plan upgrade required
24016
+ */
24017
+ 402: PlanRequiredEncoded;
22903
24018
  /**
22904
24019
  * Provider permission required | Ad spend permission required | Forbidden | Human actor required | Owner permission required
22905
24020
  */
@@ -22967,6 +24082,10 @@ export type AdsListWorkspaceInsightsErrors = {
22967
24082
  * Unauthorized
22968
24083
  */
22969
24084
  401: AuthenticationRequiredEncoded;
24085
+ /**
24086
+ * Plan upgrade required
24087
+ */
24088
+ 402: PlanRequiredEncoded;
22970
24089
  /**
22971
24090
  * Provider permission required | Ad spend permission required | Forbidden | Human actor required | Owner permission required
22972
24091
  */
@@ -23035,6 +24154,10 @@ export type AdsListInsightsErrors = {
23035
24154
  * Unauthorized
23036
24155
  */
23037
24156
  401: AuthenticationRequiredEncoded;
24157
+ /**
24158
+ * Plan upgrade required
24159
+ */
24160
+ 402: PlanRequiredEncoded;
23038
24161
  /**
23039
24162
  * Provider permission required | Ad spend permission required | Forbidden | Human actor required | Owner permission required
23040
24163
  */
@@ -23091,6 +24214,10 @@ export type AdsRefreshInsightsErrors = {
23091
24214
  * Unauthorized
23092
24215
  */
23093
24216
  401: AuthenticationRequiredEncoded;
24217
+ /**
24218
+ * Plan upgrade required
24219
+ */
24220
+ 402: PlanRequiredEncoded;
23094
24221
  /**
23095
24222
  * Provider permission required | Ad spend permission required | Forbidden | Human actor required | Owner permission required
23096
24223
  */
@@ -23147,6 +24274,10 @@ export type AdsGetSpendPolicyErrors = {
23147
24274
  * Unauthorized
23148
24275
  */
23149
24276
  401: AuthenticationRequiredEncoded;
24277
+ /**
24278
+ * Plan upgrade required
24279
+ */
24280
+ 402: PlanRequiredEncoded;
23150
24281
  /**
23151
24282
  * Provider permission required | Ad spend permission required | Forbidden | Human actor required | Owner permission required
23152
24283
  */
@@ -23203,6 +24334,10 @@ export type AdsUpdateSpendPolicyErrors = {
23203
24334
  * Unauthorized
23204
24335
  */
23205
24336
  401: AuthenticationRequiredEncoded;
24337
+ /**
24338
+ * Plan upgrade required
24339
+ */
24340
+ 402: PlanRequiredEncoded;
23206
24341
  /**
23207
24342
  * Provider permission required | Ad spend permission required | Forbidden | Human actor required | Owner permission required
23208
24343
  */
@@ -23259,6 +24394,10 @@ export type AdsSetKillSwitchErrors = {
23259
24394
  * Unauthorized
23260
24395
  */
23261
24396
  401: AuthenticationRequiredEncoded;
24397
+ /**
24398
+ * Plan upgrade required
24399
+ */
24400
+ 402: PlanRequiredEncoded;
23262
24401
  /**
23263
24402
  * Provider permission required | Ad spend permission required | Forbidden | Human actor required | Owner permission required
23264
24403
  */
@@ -23316,6 +24455,10 @@ export type AdsGetOperationErrors = {
23316
24455
  * Unauthorized
23317
24456
  */
23318
24457
  401: AuthenticationRequiredEncoded;
24458
+ /**
24459
+ * Plan upgrade required
24460
+ */
24461
+ 402: PlanRequiredEncoded;
23319
24462
  /**
23320
24463
  * Provider permission required | Ad spend permission required | Forbidden | Human actor required | Owner permission required
23321
24464
  */
@@ -23372,6 +24515,10 @@ export type AdsValidateBoostErrors = {
23372
24515
  * Unauthorized
23373
24516
  */
23374
24517
  401: AuthenticationRequiredEncoded;
24518
+ /**
24519
+ * Plan upgrade required
24520
+ */
24521
+ 402: PlanRequiredEncoded;
23375
24522
  /**
23376
24523
  * Provider permission required | Ad spend permission required | Forbidden | Human actor required | Owner permission required
23377
24524
  */
@@ -23431,6 +24578,10 @@ export type AdsCreateBoostErrors = {
23431
24578
  * Unauthorized
23432
24579
  */
23433
24580
  401: AuthenticationRequiredEncoded;
24581
+ /**
24582
+ * Plan upgrade required
24583
+ */
24584
+ 402: PlanRequiredEncoded;
23434
24585
  /**
23435
24586
  * Provider permission required | Ad spend permission required | Forbidden | Human actor required | Owner permission required
23436
24587
  */
@@ -23491,6 +24642,10 @@ export type AdsActivateCampaignErrors = {
23491
24642
  * Unauthorized
23492
24643
  */
23493
24644
  401: AuthenticationRequiredEncoded;
24645
+ /**
24646
+ * Plan upgrade required
24647
+ */
24648
+ 402: PlanRequiredEncoded;
23494
24649
  /**
23495
24650
  * Provider permission required | Ad spend permission required | Forbidden | Human actor required | Owner permission required
23496
24651
  */
@@ -23551,6 +24706,10 @@ export type AdsPauseCampaignErrors = {
23551
24706
  * Unauthorized
23552
24707
  */
23553
24708
  401: AuthenticationRequiredEncoded;
24709
+ /**
24710
+ * Plan upgrade required
24711
+ */
24712
+ 402: PlanRequiredEncoded;
23554
24713
  /**
23555
24714
  * Provider permission required | Ad spend permission required | Forbidden | Human actor required | Owner permission required
23556
24715
  */
@@ -23611,6 +24770,10 @@ export type AdsArchiveCampaignErrors = {
23611
24770
  * Unauthorized
23612
24771
  */
23613
24772
  401: AuthenticationRequiredEncoded;
24773
+ /**
24774
+ * Plan upgrade required
24775
+ */
24776
+ 402: PlanRequiredEncoded;
23614
24777
  /**
23615
24778
  * Provider permission required | Ad spend permission required | Forbidden | Human actor required | Owner permission required
23616
24779
  */
@@ -23671,6 +24834,10 @@ export type AdsDuplicateCampaignErrors = {
23671
24834
  * Unauthorized
23672
24835
  */
23673
24836
  401: AuthenticationRequiredEncoded;
24837
+ /**
24838
+ * Plan upgrade required
24839
+ */
24840
+ 402: PlanRequiredEncoded;
23674
24841
  /**
23675
24842
  * Provider permission required | Ad spend permission required | Forbidden | Human actor required | Owner permission required
23676
24843
  */
@@ -23731,6 +24898,10 @@ export type AdsSetCampaignBudgetErrors = {
23731
24898
  * Unauthorized
23732
24899
  */
23733
24900
  401: AuthenticationRequiredEncoded;
24901
+ /**
24902
+ * Plan upgrade required
24903
+ */
24904
+ 402: PlanRequiredEncoded;
23734
24905
  /**
23735
24906
  * Provider permission required | Ad spend permission required | Forbidden | Human actor required | Owner permission required
23736
24907
  */
@@ -23791,6 +24962,10 @@ export type AdsSetAdGroupBudgetErrors = {
23791
24962
  * Unauthorized
23792
24963
  */
23793
24964
  401: AuthenticationRequiredEncoded;
24965
+ /**
24966
+ * Plan upgrade required
24967
+ */
24968
+ 402: PlanRequiredEncoded;
23794
24969
  /**
23795
24970
  * Provider permission required | Ad spend permission required | Forbidden | Human actor required | Owner permission required
23796
24971
  */
@@ -23851,6 +25026,10 @@ export type AdsSetAdGroupStatusErrors = {
23851
25026
  * Unauthorized
23852
25027
  */
23853
25028
  401: AuthenticationRequiredEncoded;
25029
+ /**
25030
+ * Plan upgrade required
25031
+ */
25032
+ 402: PlanRequiredEncoded;
23854
25033
  /**
23855
25034
  * Provider permission required | Ad spend permission required | Forbidden | Human actor required | Owner permission required
23856
25035
  */
@@ -23911,6 +25090,10 @@ export type AdsCreateAdGroupErrors = {
23911
25090
  * Unauthorized
23912
25091
  */
23913
25092
  401: AuthenticationRequiredEncoded;
25093
+ /**
25094
+ * Plan upgrade required
25095
+ */
25096
+ 402: PlanRequiredEncoded;
23914
25097
  /**
23915
25098
  * Provider permission required | Ad spend permission required | Forbidden | Human actor required | Owner permission required
23916
25099
  */
@@ -23971,6 +25154,10 @@ export type AdsAttachAdErrors = {
23971
25154
  * Unauthorized
23972
25155
  */
23973
25156
  401: AuthenticationRequiredEncoded;
25157
+ /**
25158
+ * Plan upgrade required
25159
+ */
25160
+ 402: PlanRequiredEncoded;
23974
25161
  /**
23975
25162
  * Provider permission required | Ad spend permission required | Forbidden | Human actor required | Owner permission required
23976
25163
  */
@@ -24031,6 +25218,10 @@ export type AdsSetAdStatusErrors = {
24031
25218
  * Unauthorized
24032
25219
  */
24033
25220
  401: AuthenticationRequiredEncoded;
25221
+ /**
25222
+ * Plan upgrade required
25223
+ */
25224
+ 402: PlanRequiredEncoded;
24034
25225
  /**
24035
25226
  * Provider permission required | Ad spend permission required | Forbidden | Human actor required | Owner permission required
24036
25227
  */
@@ -25051,7 +26242,7 @@ export type BillingUsageGetData = {
25051
26242
  query?: {
25052
26243
  from?: string;
25053
26244
  to?: string;
25054
- meter?: "confirmed_publish" | "x_passthrough" | "managed_ad" | "inbox_reply" | "automation_run";
26245
+ meter?: "confirmed_publish" | "x_passthrough" | "x_read" | "managed_ad" | "inbox_reply" | "automation_run";
25055
26246
  provider?: "bluesky" | "facebook" | "instagram" | "linkedin" | "pinterest" | "reddit" | "snapchat" | "tiktok" | "threads" | "x" | "youtube" | "google_business";
25056
26247
  };
25057
26248
  url: "/api/v1/workspaces/{workspaceId}/billing/usage";
@@ -25942,7 +27133,7 @@ declare const analyticsPostsGet: <ThrowOnError extends boolean = false>(options:
25942
27133
  /**
25943
27134
  * Read daily post analytics series
25944
27135
  *
25945
- * Daily points use UTC dates. Cumulative metrics set value to the day's increase and total to the cumulative value; a missing date means no data.
27136
+ * Daily points use UTC dates. Cumulative metrics set value to the day's increase and total to the cumulative value; a missing date means no data. How far back `from` can reach depends on the workspace plan; an earlier date returns `plan_required` with the earliest allowed date.
25946
27137
  *
25947
27138
  * Requires an API key with the `read` scope or a signed-in workspace member.
25948
27139
  */
@@ -25958,7 +27149,7 @@ declare const analyticsAccountsList: <ThrowOnError extends boolean = false>(opti
25958
27149
  /**
25959
27150
  * Read one account's analytics
25960
27151
  *
25961
- * Returns totals or a daily series for one provider account in the workspace.
27152
+ * Returns totals or a daily series for one provider account in the workspace. How far back a daily series can reach depends on the workspace plan; an earlier `from` returns `plan_required` with the earliest allowed date.
25962
27153
  *
25963
27154
  * Requires an API key with the `read` scope or a signed-in workspace member.
25964
27155
  */
@@ -26144,11 +27335,19 @@ declare const postsList: <ThrowOnError extends boolean = false>(options: Options
26144
27335
  /**
26145
27336
  * Create a post or draft
26146
27337
  *
26147
- * Send exactly one selector for a direct post: platforms resolves the single ready account per provider (ambiguous providers return 422 with candidates), accounts selects exact account IDs, and targets selects exact destinations with an optional provider and placement. The server derives provider from accountId and defaults placement per provider. publishNow defaults to true when scheduledAt is absent. Set isDraft to true to save a draft with text, media, and optional exact targets without submitting. An omitted Idempotency-Key is generated and returned for direct posts; the same key and body replay for 24 hours and a changed body returns 409.
27338
+ * Send exactly one selector for a direct post: platforms resolves the single ready account per provider (ambiguous providers return 422 with candidates), accounts selects exact account IDs, and targets selects exact destinations with an optional provider and placement. The server derives provider from accountId and defaults placement per provider. publishNow defaults to true when scheduledAt is absent. scheduledAt is the default time and targets[].scheduledAt gives one destination its own time (null for now). Set isDraft to true to save the same body as a draft without submitting; a draft may omit the selector, and publishing it later needs no body. An omitted Idempotency-Key is generated and returned for posts and drafts; the same key and body replay for 24 hours and a changed body returns 409.
26148
27339
  *
26149
27340
  * Requires an API key with the `read` scope or a signed-in workspace member. Publishing or scheduling, anything but a draft, needs the `publish` scope or an owner.
26150
27341
  */
26151
27342
  declare const postsCreate: <ThrowOnError extends boolean = false>(options: Options$1<PostsCreateData, ThrowOnError>) => RequestResult<PostsCreateResponses, PostsCreateErrors, ThrowOnError>;
27343
+ /**
27344
+ * Validate a post body
27345
+ *
27346
+ * Check a CreatePost body as a direct submission regardless of isDraft. Returns destination readiness, content, scheduling, and publish permission issues, plus a billing estimate. It never saves a post, reserves a slot, or contacts a provider.
27347
+ *
27348
+ * Requires an API key with the `read` scope or a signed-in workspace member.
27349
+ */
27350
+ declare const postsValidateBody: <ThrowOnError extends boolean = false>(options: Options$1<PostsValidateBodyData, ThrowOnError>) => RequestResult<PostsValidateBodyResponses, PostsValidateBodyErrors, ThrowOnError>;
26152
27351
  /**
26153
27352
  * Archive a post or draft
26154
27353
  *
@@ -26168,7 +27367,7 @@ declare const postsGet: <ThrowOnError extends boolean = false>(options: Options$
26168
27367
  /**
26169
27368
  * Edit a draft
26170
27369
  *
26171
- * Omitted fields are preserved. Supplied media and target arrays replace the saved arrays. Send expectedRevision to guard against editing an older draft.
27370
+ * Edits a draft; a submitted post returns 409 post_submitted. Omitted fields are preserved; supplied media and target arrays replace the saved arrays. Send expectedRevision to guard against editing an older draft.
26172
27371
  *
26173
27372
  * Requires an API key with the `read` scope or a signed-in workspace member.
26174
27373
  */
@@ -26658,7 +27857,7 @@ export declare function createRawClient(options: PubNioClientOptions): {
26658
27857
  };
26659
27858
 
26660
27859
  declare namespace operations {
26661
- export { Options$1 as Options, adsActivateCampaign, adsArchiveCampaign, adsAttachAd, adsConnectAccount, adsConnectApiKeyAccount, adsCreateAdGroup, adsCreateBoost, adsCreateCampaignPlan, adsCreateCreative, adsDisconnectAccount, adsDuplicateCampaign, adsGetAd, adsGetCampaignPlan, adsGetCreative, adsGetOperation, adsGetSpendPolicy, adsGetTree, adsListAccounts, adsListAdGroups, adsListAds, adsListCampaignPlans, adsListCampaigns, adsListCreatives, adsListInsights, adsListWorkspaceCampaigns, adsListWorkspaceInsights, adsPauseCampaign, adsRefreshInsights, adsSelectAccount, adsSetAdGroupBudget, adsSetAdGroupStatus, adsSetAdStatus, adsSetCampaignBudget, adsSetKillSwitch, adsUpdateSpendPolicy, adsValidateBoost, adsValidateCampaignPlan, analyticsAccountsGet, analyticsAccountsList, analyticsCapabilitiesGet, analyticsPostsGet, analyticsPostsSeries, analyticsRefreshesCreate, analyticsRefreshesGet, apiKeysCreate, apiKeysGet, apiKeysList, apiKeysRevoke, apiKeysUpdate, auditActionsList, auditGet, auditList, billingCheckoutCreate, billingGet, billingLedgerList, billingPlansList, billingPortalCreate, billingSpendControlsUpdate, billingUsageGet, capabilitiesCatalog, capabilitiesGet, capabilitiesList, commentsCreate, inboxAttachmentsGet, inboxCapabilitiesGet, inboxCommentsDelete, inboxCommentsGet, inboxCommentsList, inboxCommentsModerate, inboxCommentsReply, inboxConversationsGet, inboxConversationsList, inboxConversationsUpdate, inboxMentionsList, inboxMentionsReply, inboxMessagesList, inboxMessagesSend, inboxReviewsGet, inboxReviewsList, inboxReviewsReply, inboxSyncGet, inboxSyncStart, inboxUnreadCount, integrationsBlueskySession, integrationsConnectionStatus, integrationsDelete, integrationsDisconnect, integrationsGetAccount, integrationsGetInstagramAudio, integrationsInstagramPublishingLimit, integrationsList, integrationsMoveAccount, integrationsPrepareConnection, integrationsReconnect, integrationsSearchInstagramAudio, integrationsSetEnabled, limitsGet, meInvitesAccept, meInvitesDecline, meInvitesList, mediaCompleteUpload, mediaDelete, mediaDownload, mediaGet, mediaImport, mediaList, mediaStartUpload, mediaStatus, mediaUpload, mediaUploadInline, mediaUploadPart, notificationsPreferencesGet, notificationsPreferencesUpdate, postsAttempts, postsCreate, postsDelete, postsGet, postsList, postsPublish, postsReconcile, postsRetry, postsUpdate, postsValidate, profileDeactivate, profileGet, profileUpdate, profilesArchive, profilesCreate, profilesGet, profilesList, profilesUpdate, queuesArchive, queuesBlackoutsCreate, queuesBlackoutsDelete, queuesBlackoutsList, queuesCreate, queuesGet, queuesList, queuesSkipsCreate, queuesSkipsDelete, queuesSkipsList, queuesSlotsNext, queuesSlotsPreview, queuesSlotsReplace, queuesUpdate, scheduleChange, scheduleList, webhooksCreate, webhooksDelete, webhooksEventTypes, webhooksGet, webhooksGetDelivery, webhooksList, webhooksListDeliveries, webhooksReplayDelivery, webhooksTest, webhooksUpdate, workspacesArchive, workspacesCreate, workspacesGet, workspacesInvitesCreate, workspacesInvitesList, workspacesInvitesResend, workspacesInvitesRevoke, workspacesList, workspacesMembersList, workspacesMembersRemove, workspacesMembersUpdateRole, workspacesUpdate };
27860
+ export { Options$1 as Options, adsActivateCampaign, adsArchiveCampaign, adsAttachAd, adsConnectAccount, adsConnectApiKeyAccount, adsCreateAdGroup, adsCreateBoost, adsCreateCampaignPlan, adsCreateCreative, adsDisconnectAccount, adsDuplicateCampaign, adsGetAd, adsGetCampaignPlan, adsGetCreative, adsGetOperation, adsGetSpendPolicy, adsGetTree, adsListAccounts, adsListAdGroups, adsListAds, adsListCampaignPlans, adsListCampaigns, adsListCreatives, adsListInsights, adsListWorkspaceCampaigns, adsListWorkspaceInsights, adsPauseCampaign, adsRefreshInsights, adsSelectAccount, adsSetAdGroupBudget, adsSetAdGroupStatus, adsSetAdStatus, adsSetCampaignBudget, adsSetKillSwitch, adsUpdateSpendPolicy, adsValidateBoost, adsValidateCampaignPlan, analyticsAccountsGet, analyticsAccountsList, analyticsCapabilitiesGet, analyticsPostsGet, analyticsPostsSeries, analyticsRefreshesCreate, analyticsRefreshesGet, apiKeysCreate, apiKeysGet, apiKeysList, apiKeysRevoke, apiKeysUpdate, auditActionsList, auditGet, auditList, billingCheckoutCreate, billingGet, billingLedgerList, billingPlansList, billingPortalCreate, billingSpendControlsUpdate, billingUsageGet, capabilitiesCatalog, capabilitiesGet, capabilitiesList, commentsCreate, inboxAttachmentsGet, inboxCapabilitiesGet, inboxCommentsDelete, inboxCommentsGet, inboxCommentsList, inboxCommentsModerate, inboxCommentsReply, inboxConversationsGet, inboxConversationsList, inboxConversationsUpdate, inboxMentionsList, inboxMentionsReply, inboxMessagesList, inboxMessagesSend, inboxReviewsGet, inboxReviewsList, inboxReviewsReply, inboxSyncGet, inboxSyncStart, inboxUnreadCount, integrationsBlueskySession, integrationsConnectionStatus, integrationsDelete, integrationsDisconnect, integrationsGetAccount, integrationsGetInstagramAudio, integrationsInstagramPublishingLimit, integrationsList, integrationsMoveAccount, integrationsPrepareConnection, integrationsReconnect, integrationsSearchInstagramAudio, integrationsSetEnabled, limitsGet, meInvitesAccept, meInvitesDecline, meInvitesList, mediaCompleteUpload, mediaDelete, mediaDownload, mediaGet, mediaImport, mediaList, mediaStartUpload, mediaStatus, mediaUpload, mediaUploadInline, mediaUploadPart, notificationsPreferencesGet, notificationsPreferencesUpdate, postsAttempts, postsCreate, postsDelete, postsGet, postsList, postsPublish, postsReconcile, postsRetry, postsUpdate, postsValidate, postsValidateBody, profileDeactivate, profileGet, profileUpdate, profilesArchive, profilesCreate, profilesGet, profilesList, profilesUpdate, queuesArchive, queuesBlackoutsCreate, queuesBlackoutsDelete, queuesBlackoutsList, queuesCreate, queuesGet, queuesList, queuesSkipsCreate, queuesSkipsDelete, queuesSkipsList, queuesSlotsNext, queuesSlotsPreview, queuesSlotsReplace, queuesUpdate, scheduleChange, scheduleList, webhooksCreate, webhooksDelete, webhooksEventTypes, webhooksGet, webhooksGetDelivery, webhooksList, webhooksListDeliveries, webhooksReplayDelivery, webhooksTest, webhooksUpdate, workspacesArchive, workspacesCreate, workspacesGet, workspacesInvitesCreate, workspacesInvitesList, workspacesInvitesResend, workspacesInvitesRevoke, workspacesList, workspacesMembersList, workspacesMembersRemove, workspacesMembersUpdateRole, workspacesUpdate };
26662
27861
  }
26663
27862
 
26664
27863
  export {
@@ -26751,6 +27950,8 @@ export {
26751
27950
  PendingUserInviteList$1 as PendingUserInviteList,
26752
27951
  Post$1 as Post,
26753
27952
  PostAnalytics$1 as PostAnalytics,
27953
+ PostCreated$1 as PostCreated,
27954
+ PostIssue$1 as PostIssue,
26754
27955
  PostList$1 as PostList,
26755
27956
  PostValidation$1 as PostValidation,
26756
27957
  ProblemCandidate$1 as ProblemCandidate,