@pubnio/sdk 0.2.12 → 0.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.ts CHANGED
@@ -155,6 +155,7 @@ export type BillingSubscriptionStatus = typeof BillingSubscriptionStatus.Type;
155
155
  export declare const UsageMeter: Schema.Literals<readonly [
156
156
  "confirmed_publish",
157
157
  "x_passthrough",
158
+ "x_read",
158
159
  "managed_ad",
159
160
  "inbox_reply",
160
161
  "automation_run"
@@ -180,6 +181,7 @@ export declare const BillingPlan: Schema.Struct<{
180
181
  readonly meter: Schema.Literals<readonly [
181
182
  "confirmed_publish",
182
183
  "x_passthrough",
184
+ "x_read",
183
185
  "managed_ad",
184
186
  "inbox_reply",
185
187
  "automation_run"
@@ -188,10 +190,15 @@ export declare const BillingPlan: Schema.Struct<{
188
190
  readonly overageUnitPriceMicros: Schema.NullOr<Schema.Int>;
189
191
  readonly unitLabel: Schema.String;
190
192
  }>>;
193
+ readonly xReads: Schema.Boolean;
194
+ readonly includedXReadMicros: Schema.NullOr<Schema.Int>;
191
195
  readonly seatsLimit: Schema.NullOr<Schema.Int>;
192
196
  readonly analyticsRetentionDays: Schema.Int;
193
197
  readonly whiteLabelOAuth: Schema.Boolean;
194
198
  readonly ssoSaml: Schema.Boolean;
199
+ readonly priorityQueue: Schema.Boolean;
200
+ readonly adsInsights: Schema.Boolean;
201
+ readonly adsWrite: Schema.Boolean;
195
202
  }>;
196
203
  export type BillingPlan = typeof BillingPlan.Type;
197
204
  export declare const BillingPlanList: Schema.Struct<{
@@ -215,6 +222,7 @@ export declare const BillingPlanList: Schema.Struct<{
215
222
  readonly meter: Schema.Literals<readonly [
216
223
  "confirmed_publish",
217
224
  "x_passthrough",
225
+ "x_read",
218
226
  "managed_ad",
219
227
  "inbox_reply",
220
228
  "automation_run"
@@ -223,10 +231,15 @@ export declare const BillingPlanList: Schema.Struct<{
223
231
  readonly overageUnitPriceMicros: Schema.NullOr<Schema.Int>;
224
232
  readonly unitLabel: Schema.String;
225
233
  }>>;
234
+ readonly xReads: Schema.Boolean;
235
+ readonly includedXReadMicros: Schema.NullOr<Schema.Int>;
226
236
  readonly seatsLimit: Schema.NullOr<Schema.Int>;
227
237
  readonly analyticsRetentionDays: Schema.Int;
228
238
  readonly whiteLabelOAuth: Schema.Boolean;
229
239
  readonly ssoSaml: Schema.Boolean;
240
+ readonly priorityQueue: Schema.Boolean;
241
+ readonly adsInsights: Schema.Boolean;
242
+ readonly adsWrite: Schema.Boolean;
230
243
  }>>;
231
244
  }>;
232
245
  export type BillingPlanList = typeof BillingPlanList.Type;
@@ -234,6 +247,7 @@ export declare const BillingMeterUsage: Schema.Struct<{
234
247
  readonly meter: Schema.Literals<readonly [
235
248
  "confirmed_publish",
236
249
  "x_passthrough",
250
+ "x_read",
237
251
  "managed_ad",
238
252
  "inbox_reply",
239
253
  "automation_run"
@@ -299,10 +313,13 @@ export declare const WorkspaceBilling: Schema.Struct<{
299
313
  readonly version: Schema.Int;
300
314
  }>;
301
315
  readonly currentPeriod: Schema.Struct<{
316
+ readonly start: Schema.String;
317
+ readonly end: Schema.String;
302
318
  readonly meters: Schema.$Array<Schema.Struct<{
303
319
  readonly meter: Schema.Literals<readonly [
304
320
  "confirmed_publish",
305
321
  "x_passthrough",
322
+ "x_read",
306
323
  "managed_ad",
307
324
  "inbox_reply",
308
325
  "automation_run"
@@ -324,6 +341,7 @@ export declare const BillingUsageQuery: Schema.Struct<{
324
341
  readonly meter: Schema.optionalKey<Schema.Literals<readonly [
325
342
  "confirmed_publish",
326
343
  "x_passthrough",
344
+ "x_read",
327
345
  "managed_ad",
328
346
  "inbox_reply",
329
347
  "automation_run"
@@ -357,6 +375,7 @@ export declare const BillingUsage: Schema.Struct<{
357
375
  readonly meter: Schema.Literals<readonly [
358
376
  "confirmed_publish",
359
377
  "x_passthrough",
378
+ "x_read",
360
379
  "managed_ad",
361
380
  "inbox_reply",
362
381
  "automation_run"
@@ -1470,6 +1489,8 @@ export declare const PublishAccepted: Schema.Struct<{
1470
1489
  "tiktok_upload_required",
1471
1490
  "tiktok_too_many_mentions",
1472
1491
  "queue_and_time_conflict",
1492
+ "queue_not_found",
1493
+ "queue_unavailable",
1473
1494
  "invalid_field",
1474
1495
  "account_ambiguous",
1475
1496
  "unsupported_placement",
@@ -1482,6 +1503,10 @@ export declare const PublishAccepted: Schema.Struct<{
1482
1503
  Schema.Int
1483
1504
  ]>>;
1484
1505
  readonly message: Schema.String;
1506
+ readonly candidates: Schema.optionalKey<Schema.$Array<Schema.Struct<{
1507
+ readonly accountId: Schema.brand<Schema.String, "AccountId">;
1508
+ readonly name: Schema.String;
1509
+ }>>>;
1485
1510
  }>>;
1486
1511
  readonly billing: Schema.optionalKey<Schema.Struct<{
1487
1512
  readonly estimatedCostMicros: Schema.Int;
@@ -1548,7 +1573,10 @@ export declare const PublishStatus: Schema.Struct<{
1548
1573
  "tiktok_settings_not_allowed",
1549
1574
  "tiktok_processing_failed",
1550
1575
  "submission_uncertain",
1551
- "confirmation_unavailable"
1576
+ "confirmation_unavailable",
1577
+ "billing_inactive",
1578
+ "spend_cap_reached",
1579
+ "insufficient_credit"
1552
1580
  ]>>;
1553
1581
  readonly canRetry: Schema.Boolean;
1554
1582
  readonly canReconcile: Schema.Boolean;
@@ -1637,7 +1665,10 @@ export declare const PublishWait: Schema.Struct<{
1637
1665
  "tiktok_settings_not_allowed",
1638
1666
  "tiktok_processing_failed",
1639
1667
  "submission_uncertain",
1640
- "confirmation_unavailable"
1668
+ "confirmation_unavailable",
1669
+ "billing_inactive",
1670
+ "spend_cap_reached",
1671
+ "insufficient_credit"
1641
1672
  ]>>;
1642
1673
  readonly canRetry: Schema.Boolean;
1643
1674
  readonly canReconcile: Schema.Boolean;
@@ -1745,7 +1776,10 @@ export declare const DeliveryHistory: Schema.Struct<{
1745
1776
  "tiktok_settings_not_allowed",
1746
1777
  "tiktok_processing_failed",
1747
1778
  "submission_uncertain",
1748
- "confirmation_unavailable"
1779
+ "confirmation_unavailable",
1780
+ "billing_inactive",
1781
+ "spend_cap_reached",
1782
+ "insufficient_credit"
1749
1783
  ]>>;
1750
1784
  readonly canRetry: Schema.Boolean;
1751
1785
  readonly canReconcile: Schema.Boolean;
@@ -2171,6 +2205,38 @@ export declare const PublishCapabilities: Schema.Struct<{
2171
2205
  "ad_account"
2172
2206
  ]>>;
2173
2207
  readonly placements: Schema.$Array<Schema.Struct<{
2208
+ readonly settings: Schema.optionalKey<Schema.Struct<{
2209
+ readonly poll: Schema.Union<readonly [
2210
+ Schema.Struct<{
2211
+ readonly minDurationMinutes: Schema.Int;
2212
+ readonly maxDurationMinutes: Schema.Int;
2213
+ readonly minOptions: Schema.Int;
2214
+ readonly maxOptions: Schema.Int;
2215
+ readonly optionCharacters: Schema.Int;
2216
+ }>,
2217
+ Schema.Struct<{
2218
+ readonly questionCharacters: Schema.Int;
2219
+ readonly durations: Schema.$Array<Schema.Literals<readonly [
2220
+ "ONE_DAY",
2221
+ "THREE_DAYS",
2222
+ "SEVEN_DAYS",
2223
+ "FOURTEEN_DAYS"
2224
+ ]>>;
2225
+ readonly minOptions: Schema.Int;
2226
+ readonly maxOptions: Schema.Int;
2227
+ readonly optionCharacters: Schema.Int;
2228
+ }>
2229
+ ]>;
2230
+ readonly replySettings: Schema.optionalKey<Schema.$Array<Schema.Literals<readonly [
2231
+ "following",
2232
+ "mentionedUsers",
2233
+ "subscribers",
2234
+ "verified"
2235
+ ]>>>;
2236
+ readonly maxMediaTags: Schema.optionalKey<Schema.Int>;
2237
+ readonly placeId: Schema.optionalKey<Schema.Boolean>;
2238
+ readonly quotePostId: Schema.optionalKey<Schema.Boolean>;
2239
+ }>>;
2174
2240
  readonly placement: Schema.Literals<readonly [
2175
2241
  "feed",
2176
2242
  "reel",
@@ -3081,6 +3147,34 @@ declare const SeatLimitReached_base: HttpApiError.ProblemClass<SeatLimitReached,
3081
3147
  }, {}>;
3082
3148
  declare class SeatLimitReached extends SeatLimitReached_base {
3083
3149
  }
3150
+ declare const PlanRequired_base: HttpApiError.ProblemClass<PlanRequired, "PlanRequired", "urn:pubnio:problem:plan-required", 402, {
3151
+ readonly code: Schema.Literal<"plan_required">;
3152
+ readonly entitlement: Schema.Literals<readonly [
3153
+ "adsInsights",
3154
+ "adsWrite",
3155
+ "analyticsHistory"
3156
+ ]>;
3157
+ readonly currentPlan: Schema.Literals<readonly [
3158
+ "payg",
3159
+ "pro",
3160
+ "platform",
3161
+ "enterprise"
3162
+ ]>;
3163
+ readonly minimumPlan: Schema.Literals<readonly [
3164
+ "payg",
3165
+ "pro",
3166
+ "platform",
3167
+ "enterprise"
3168
+ ]>;
3169
+ readonly fundingUrl: Schema.String;
3170
+ readonly canManageBilling: Schema.Boolean;
3171
+ readonly nextAction: Schema.String;
3172
+ readonly param: Schema.optionalKey<Schema.String>;
3173
+ /** The earliest date the current plan can read (analytics history only). */
3174
+ readonly earliestDate: Schema.optionalKey<Schema.String>;
3175
+ }, {}>;
3176
+ declare class PlanRequired extends PlanRequired_base {
3177
+ }
3084
3178
  declare const AlreadyMember_base: HttpApiError.ProblemClass<AlreadyMember, "AlreadyMember", "urn:pubnio:problem:already-member", 409, {
3085
3179
  readonly code: Schema.Literal<"already_member">;
3086
3180
  readonly nextAction: Schema.String;
@@ -3164,6 +3258,8 @@ declare const InvalidPublication_base: HttpApiError.ProblemClass<InvalidPublicat
3164
3258
  "tiktok_upload_required",
3165
3259
  "tiktok_too_many_mentions",
3166
3260
  "queue_and_time_conflict",
3261
+ "queue_not_found",
3262
+ "queue_unavailable",
3167
3263
  "invalid_field",
3168
3264
  "account_ambiguous",
3169
3265
  "unsupported_placement",
@@ -3176,6 +3272,10 @@ declare const InvalidPublication_base: HttpApiError.ProblemClass<InvalidPublicat
3176
3272
  Schema.Int
3177
3273
  ]>>;
3178
3274
  readonly message: Schema.String;
3275
+ readonly candidates: Schema.optionalKey<Schema.$Array<Schema.Struct<{
3276
+ readonly accountId: Schema.brand<Schema.String, "AccountId">;
3277
+ readonly name: Schema.String;
3278
+ }>>>;
3179
3279
  }>>;
3180
3280
  readonly candidates: Schema.optionalKey<Schema.$Array<Schema.Struct<{
3181
3281
  readonly accountId: Schema.brand<Schema.String, "AccountId">;
@@ -3747,6 +3847,27 @@ declare const InboxUnsupportedContent_base: HttpApiError.ProblemClass<InboxUnsup
3747
3847
  }, {}>;
3748
3848
  declare class InboxUnsupportedContent extends InboxUnsupportedContent_base {
3749
3849
  }
3850
+ declare const InboxUnavailable_base: HttpApiError.ProblemClass<InboxUnavailable, "InboxUnavailable", "urn:pubnio:problem:inbox-unavailable", 409, {
3851
+ readonly reason: Schema.Literals<readonly [
3852
+ "provider_subscription_limit",
3853
+ "missing_scopes",
3854
+ "webhook_invalid",
3855
+ "subscription_pending",
3856
+ "plan_required",
3857
+ "insufficient_credit",
3858
+ "spend_cap_reached"
3859
+ ]>;
3860
+ readonly action: Schema.Literals<readonly [
3861
+ "contact_pubnio",
3862
+ "reconnect_account",
3863
+ "wait_for_repair",
3864
+ "upgrade_plan",
3865
+ "add_credit",
3866
+ "raise_spend_cap"
3867
+ ]>;
3868
+ }, {}>;
3869
+ declare class InboxUnavailable extends InboxUnavailable_base {
3870
+ }
3750
3871
  declare const AdAccountNotReady_base: HttpApiError.ProblemClass<AdAccountNotReady, "AdAccountNotReady", "urn:pubnio:problem:ad-account-not-ready", 409, {
3751
3872
  readonly reason: Schema.Literals<readonly [
3752
3873
  "unavailable",
@@ -4068,6 +4189,7 @@ export declare const KnownProblem: Schema.Union<readonly [
4068
4189
  typeof LastOwnerRequired,
4069
4190
  typeof InviteExpired,
4070
4191
  typeof InviteEmailMismatch,
4192
+ typeof InboxUnavailable,
4071
4193
  typeof InboxReplyWindowClosed,
4072
4194
  typeof InboxTargetChanged,
4073
4195
  typeof InboxSyncInProgress,
@@ -4094,6 +4216,7 @@ export declare const KnownProblem: Schema.Union<readonly [
4094
4216
  typeof AdOperationNotRetryable,
4095
4217
  typeof AdProviderRejected,
4096
4218
  typeof InvalidAdRequest,
4219
+ typeof PlanRequired,
4097
4220
  typeof InternalFailure,
4098
4221
  typeof WebhookTestRateLimited,
4099
4222
  typeof WebhookDeliveryNotReplayable,
@@ -4311,6 +4434,8 @@ declare const PostIssue: Schema.Struct<{
4311
4434
  "tiktok_upload_required",
4312
4435
  "tiktok_too_many_mentions",
4313
4436
  "queue_and_time_conflict",
4437
+ "queue_not_found",
4438
+ "queue_unavailable",
4314
4439
  "invalid_field",
4315
4440
  "account_ambiguous",
4316
4441
  "unsupported_placement",
@@ -4323,6 +4448,10 @@ declare const PostIssue: Schema.Struct<{
4323
4448
  Schema.Int
4324
4449
  ]>>;
4325
4450
  readonly message: Schema.String;
4451
+ readonly candidates: Schema.optionalKey<Schema.$Array<Schema.Struct<{
4452
+ readonly accountId: Schema.brand<Schema.String, "AccountId">;
4453
+ readonly name: Schema.String;
4454
+ }>>>;
4326
4455
  }>;
4327
4456
  type PostIssue = typeof PostIssue.Type;
4328
4457
  export declare const FacebookFeedSettings: Schema.Struct<{
@@ -4779,6 +4908,16 @@ export declare const PublishTarget: Schema.Union<readonly [
4779
4908
  }>,
4780
4909
  Schema.Struct<{
4781
4910
  readonly settings: Schema.optionalKey<Schema.Struct<{
4911
+ readonly poll: Schema.optionalKey<Schema.Struct<{
4912
+ readonly question: Schema.String;
4913
+ readonly options: Schema.$Array<Schema.String>;
4914
+ readonly duration: Schema.Literals<readonly [
4915
+ "ONE_DAY",
4916
+ "THREE_DAYS",
4917
+ "SEVEN_DAYS",
4918
+ "FOURTEEN_DAYS"
4919
+ ]>;
4920
+ }>>;
4782
4921
  readonly firstComment: Schema.optionalKey<Schema.String>;
4783
4922
  readonly thread: Schema.optionalKey<Schema.$Array<Schema.String>>;
4784
4923
  readonly visibility: Schema.optionalKey<Schema.Literals<readonly [
@@ -4831,6 +4970,19 @@ export declare const PublishTarget: Schema.Union<readonly [
4831
4970
  }>,
4832
4971
  Schema.Struct<{
4833
4972
  readonly settings: Schema.optionalKey<Schema.Struct<{
4973
+ readonly poll: Schema.optionalKey<Schema.Struct<{
4974
+ readonly options: Schema.$Array<Schema.String>;
4975
+ readonly durationMinutes: Schema.Number;
4976
+ }>>;
4977
+ readonly replySettings: Schema.optionalKey<Schema.Literals<readonly [
4978
+ "following",
4979
+ "mentionedUsers",
4980
+ "subscribers",
4981
+ "verified"
4982
+ ]>>;
4983
+ readonly quotePostId: Schema.optionalKey<Schema.String>;
4984
+ readonly mediaTaggedUserIds: Schema.optionalKey<Schema.$Array<Schema.String>>;
4985
+ readonly placeId: Schema.optionalKey<Schema.String>;
4834
4986
  readonly firstComment: Schema.optionalKey<Schema.String>;
4835
4987
  readonly thread: Schema.optionalKey<Schema.$Array<Schema.String>>;
4836
4988
  readonly article: Schema.optionalKey<Schema.Struct<{
@@ -4865,6 +5017,7 @@ export declare const PublishTarget: Schema.Union<readonly [
4865
5017
  "unlisted",
4866
5018
  "private"
4867
5019
  ]>;
5020
+ readonly firstComment: Schema.optionalKey<Schema.String>;
4868
5021
  readonly tags: Schema.optionalKey<Schema.$Array<Schema.String>>;
4869
5022
  readonly categoryId: Schema.optionalKey<Schema.String>;
4870
5023
  readonly madeForKids: Schema.optionalKey<Schema.Boolean>;
@@ -5043,7 +5196,28 @@ export declare const PublishTarget: Schema.Union<readonly [
5043
5196
  readonly placement: Schema.Literal<"feed">;
5044
5197
  }>,
5045
5198
  Schema.Struct<{
5046
- readonly settings: Schema.optionalKey<Schema.Struct<{}>>;
5199
+ readonly settings: Schema.optionalKey<Schema.Struct<{
5200
+ readonly topicType: Schema.optionalKey<Schema.Literals<readonly [
5201
+ "standard",
5202
+ "event",
5203
+ "offer"
5204
+ ]>>;
5205
+ readonly title: Schema.optionalKey<Schema.String>;
5206
+ readonly startsAt: Schema.optionalKey<Schema.String>;
5207
+ readonly endsAt: Schema.optionalKey<Schema.String>;
5208
+ readonly couponCode: Schema.optionalKey<Schema.String>;
5209
+ readonly redeemUrl: Schema.optionalKey<Schema.String>;
5210
+ readonly terms: Schema.optionalKey<Schema.String>;
5211
+ readonly callToAction: Schema.optionalKey<Schema.Literals<readonly [
5212
+ "book",
5213
+ "order",
5214
+ "shop",
5215
+ "learn_more",
5216
+ "sign_up",
5217
+ "call"
5218
+ ]>>;
5219
+ readonly callToActionUrl: Schema.optionalKey<Schema.String>;
5220
+ }>>;
5047
5221
  readonly text: Schema.optionalKey<Schema.String>;
5048
5222
  readonly media: Schema.optionalKey<Schema.$Array<Schema.Union<readonly [
5049
5223
  Schema.Struct<{
@@ -5120,7 +5294,7 @@ export declare const CreatePost: Schema.Struct<{
5120
5294
  Schema.Null
5121
5295
  ]>>;
5122
5296
  readonly queueId: Schema.optionalKey<Schema.String>;
5123
- readonly settings: Schema.optionalKey<Schema.Union<readonly [
5297
+ readonly settings: Schema.optionalKey<Schema.middlewareDecoding<Schema.Union<readonly [
5124
5298
  Schema.Struct<{
5125
5299
  readonly firstComment: Schema.optionalKey<Schema.String>;
5126
5300
  readonly thread: Schema.optionalKey<Schema.$Array<Schema.String>>;
@@ -5229,6 +5403,16 @@ export declare const CreatePost: Schema.Struct<{
5229
5403
  readonly isAiGenerated: Schema.optionalKey<Schema.Boolean>;
5230
5404
  }>,
5231
5405
  Schema.Struct<{
5406
+ readonly poll: Schema.optionalKey<Schema.Struct<{
5407
+ readonly question: Schema.String;
5408
+ readonly options: Schema.$Array<Schema.String>;
5409
+ readonly duration: Schema.Literals<readonly [
5410
+ "ONE_DAY",
5411
+ "THREE_DAYS",
5412
+ "SEVEN_DAYS",
5413
+ "FOURTEEN_DAYS"
5414
+ ]>;
5415
+ }>>;
5232
5416
  readonly firstComment: Schema.optionalKey<Schema.String>;
5233
5417
  readonly thread: Schema.optionalKey<Schema.$Array<Schema.String>>;
5234
5418
  readonly visibility: Schema.optionalKey<Schema.Literals<readonly [
@@ -5266,6 +5450,19 @@ export declare const CreatePost: Schema.Struct<{
5266
5450
  readonly thread: Schema.optionalKey<Schema.$Array<Schema.String>>;
5267
5451
  }>,
5268
5452
  Schema.Struct<{
5453
+ readonly poll: Schema.optionalKey<Schema.Struct<{
5454
+ readonly options: Schema.$Array<Schema.String>;
5455
+ readonly durationMinutes: Schema.Number;
5456
+ }>>;
5457
+ readonly replySettings: Schema.optionalKey<Schema.Literals<readonly [
5458
+ "following",
5459
+ "mentionedUsers",
5460
+ "subscribers",
5461
+ "verified"
5462
+ ]>>;
5463
+ readonly quotePostId: Schema.optionalKey<Schema.String>;
5464
+ readonly mediaTaggedUserIds: Schema.optionalKey<Schema.$Array<Schema.String>>;
5465
+ readonly placeId: Schema.optionalKey<Schema.String>;
5269
5466
  readonly firstComment: Schema.optionalKey<Schema.String>;
5270
5467
  readonly thread: Schema.optionalKey<Schema.$Array<Schema.String>>;
5271
5468
  readonly article: Schema.optionalKey<Schema.Struct<{
@@ -5281,6 +5478,7 @@ export declare const CreatePost: Schema.Struct<{
5281
5478
  "unlisted",
5282
5479
  "private"
5283
5480
  ]>;
5481
+ readonly firstComment: Schema.optionalKey<Schema.String>;
5284
5482
  readonly tags: Schema.optionalKey<Schema.$Array<Schema.String>>;
5285
5483
  readonly categoryId: Schema.optionalKey<Schema.String>;
5286
5484
  readonly madeForKids: Schema.optionalKey<Schema.Boolean>;
@@ -5341,8 +5539,29 @@ export declare const CreatePost: Schema.Struct<{
5341
5539
  readonly nativeDraft: Schema.optionalKey<Schema.Boolean>;
5342
5540
  }>
5343
5541
  ]>,
5344
- Schema.Struct<{}>
5345
- ]>>;
5542
+ Schema.Struct<{
5543
+ readonly topicType: Schema.optionalKey<Schema.Literals<readonly [
5544
+ "standard",
5545
+ "event",
5546
+ "offer"
5547
+ ]>>;
5548
+ readonly title: Schema.optionalKey<Schema.String>;
5549
+ readonly startsAt: Schema.optionalKey<Schema.String>;
5550
+ readonly endsAt: Schema.optionalKey<Schema.String>;
5551
+ readonly couponCode: Schema.optionalKey<Schema.String>;
5552
+ readonly redeemUrl: Schema.optionalKey<Schema.String>;
5553
+ readonly terms: Schema.optionalKey<Schema.String>;
5554
+ readonly callToAction: Schema.optionalKey<Schema.Literals<readonly [
5555
+ "book",
5556
+ "order",
5557
+ "shop",
5558
+ "learn_more",
5559
+ "sign_up",
5560
+ "call"
5561
+ ]>>;
5562
+ readonly callToActionUrl: Schema.optionalKey<Schema.String>;
5563
+ }>
5564
+ ]>, never>>;
5346
5565
  }>>>;
5347
5566
  readonly media: Schema.optionalKey<Schema.$Array<Schema.Union<readonly [
5348
5567
  Schema.Struct<{
@@ -5622,6 +5841,16 @@ export declare const UpdatePost: Schema.Struct<{
5622
5841
  }>,
5623
5842
  Schema.Struct<{
5624
5843
  readonly settings: Schema.optionalKey<Schema.Struct<{
5844
+ readonly poll: Schema.optionalKey<Schema.Struct<{
5845
+ readonly question: Schema.String;
5846
+ readonly options: Schema.$Array<Schema.String>;
5847
+ readonly duration: Schema.Literals<readonly [
5848
+ "ONE_DAY",
5849
+ "THREE_DAYS",
5850
+ "SEVEN_DAYS",
5851
+ "FOURTEEN_DAYS"
5852
+ ]>;
5853
+ }>>;
5625
5854
  readonly firstComment: Schema.optionalKey<Schema.String>;
5626
5855
  readonly thread: Schema.optionalKey<Schema.$Array<Schema.String>>;
5627
5856
  readonly visibility: Schema.optionalKey<Schema.Literals<readonly [
@@ -5674,6 +5903,19 @@ export declare const UpdatePost: Schema.Struct<{
5674
5903
  }>,
5675
5904
  Schema.Struct<{
5676
5905
  readonly settings: Schema.optionalKey<Schema.Struct<{
5906
+ readonly poll: Schema.optionalKey<Schema.Struct<{
5907
+ readonly options: Schema.$Array<Schema.String>;
5908
+ readonly durationMinutes: Schema.Number;
5909
+ }>>;
5910
+ readonly replySettings: Schema.optionalKey<Schema.Literals<readonly [
5911
+ "following",
5912
+ "mentionedUsers",
5913
+ "subscribers",
5914
+ "verified"
5915
+ ]>>;
5916
+ readonly quotePostId: Schema.optionalKey<Schema.String>;
5917
+ readonly mediaTaggedUserIds: Schema.optionalKey<Schema.$Array<Schema.String>>;
5918
+ readonly placeId: Schema.optionalKey<Schema.String>;
5677
5919
  readonly firstComment: Schema.optionalKey<Schema.String>;
5678
5920
  readonly thread: Schema.optionalKey<Schema.$Array<Schema.String>>;
5679
5921
  readonly article: Schema.optionalKey<Schema.Struct<{
@@ -5708,6 +5950,7 @@ export declare const UpdatePost: Schema.Struct<{
5708
5950
  "unlisted",
5709
5951
  "private"
5710
5952
  ]>;
5953
+ readonly firstComment: Schema.optionalKey<Schema.String>;
5711
5954
  readonly tags: Schema.optionalKey<Schema.$Array<Schema.String>>;
5712
5955
  readonly categoryId: Schema.optionalKey<Schema.String>;
5713
5956
  readonly madeForKids: Schema.optionalKey<Schema.Boolean>;
@@ -5886,7 +6129,28 @@ export declare const UpdatePost: Schema.Struct<{
5886
6129
  readonly placement: Schema.Literal<"feed">;
5887
6130
  }>,
5888
6131
  Schema.Struct<{
5889
- readonly settings: Schema.optionalKey<Schema.Struct<{}>>;
6132
+ readonly settings: Schema.optionalKey<Schema.Struct<{
6133
+ readonly topicType: Schema.optionalKey<Schema.Literals<readonly [
6134
+ "standard",
6135
+ "event",
6136
+ "offer"
6137
+ ]>>;
6138
+ readonly title: Schema.optionalKey<Schema.String>;
6139
+ readonly startsAt: Schema.optionalKey<Schema.String>;
6140
+ readonly endsAt: Schema.optionalKey<Schema.String>;
6141
+ readonly couponCode: Schema.optionalKey<Schema.String>;
6142
+ readonly redeemUrl: Schema.optionalKey<Schema.String>;
6143
+ readonly terms: Schema.optionalKey<Schema.String>;
6144
+ readonly callToAction: Schema.optionalKey<Schema.Literals<readonly [
6145
+ "book",
6146
+ "order",
6147
+ "shop",
6148
+ "learn_more",
6149
+ "sign_up",
6150
+ "call"
6151
+ ]>>;
6152
+ readonly callToActionUrl: Schema.optionalKey<Schema.String>;
6153
+ }>>;
5890
6154
  readonly text: Schema.optionalKey<Schema.String>;
5891
6155
  readonly media: Schema.optionalKey<Schema.$Array<Schema.Union<readonly [
5892
6156
  Schema.Struct<{
@@ -6192,6 +6456,16 @@ export declare const Post: Schema.Struct<{
6192
6456
  }>,
6193
6457
  Schema.Struct<{
6194
6458
  readonly settings: Schema.optionalKey<Schema.Struct<{
6459
+ readonly poll: Schema.optionalKey<Schema.Struct<{
6460
+ readonly question: Schema.String;
6461
+ readonly options: Schema.$Array<Schema.String>;
6462
+ readonly duration: Schema.Literals<readonly [
6463
+ "ONE_DAY",
6464
+ "THREE_DAYS",
6465
+ "SEVEN_DAYS",
6466
+ "FOURTEEN_DAYS"
6467
+ ]>;
6468
+ }>>;
6195
6469
  readonly firstComment: Schema.optionalKey<Schema.String>;
6196
6470
  readonly thread: Schema.optionalKey<Schema.$Array<Schema.String>>;
6197
6471
  readonly visibility: Schema.optionalKey<Schema.Literals<readonly [
@@ -6244,6 +6518,19 @@ export declare const Post: Schema.Struct<{
6244
6518
  }>,
6245
6519
  Schema.Struct<{
6246
6520
  readonly settings: Schema.optionalKey<Schema.Struct<{
6521
+ readonly poll: Schema.optionalKey<Schema.Struct<{
6522
+ readonly options: Schema.$Array<Schema.String>;
6523
+ readonly durationMinutes: Schema.Number;
6524
+ }>>;
6525
+ readonly replySettings: Schema.optionalKey<Schema.Literals<readonly [
6526
+ "following",
6527
+ "mentionedUsers",
6528
+ "subscribers",
6529
+ "verified"
6530
+ ]>>;
6531
+ readonly quotePostId: Schema.optionalKey<Schema.String>;
6532
+ readonly mediaTaggedUserIds: Schema.optionalKey<Schema.$Array<Schema.String>>;
6533
+ readonly placeId: Schema.optionalKey<Schema.String>;
6247
6534
  readonly firstComment: Schema.optionalKey<Schema.String>;
6248
6535
  readonly thread: Schema.optionalKey<Schema.$Array<Schema.String>>;
6249
6536
  readonly article: Schema.optionalKey<Schema.Struct<{
@@ -6278,6 +6565,7 @@ export declare const Post: Schema.Struct<{
6278
6565
  "unlisted",
6279
6566
  "private"
6280
6567
  ]>;
6568
+ readonly firstComment: Schema.optionalKey<Schema.String>;
6281
6569
  readonly tags: Schema.optionalKey<Schema.$Array<Schema.String>>;
6282
6570
  readonly categoryId: Schema.optionalKey<Schema.String>;
6283
6571
  readonly madeForKids: Schema.optionalKey<Schema.Boolean>;
@@ -6456,7 +6744,28 @@ export declare const Post: Schema.Struct<{
6456
6744
  readonly placement: Schema.Literal<"feed">;
6457
6745
  }>,
6458
6746
  Schema.Struct<{
6459
- readonly settings: Schema.optionalKey<Schema.Struct<{}>>;
6747
+ readonly settings: Schema.optionalKey<Schema.Struct<{
6748
+ readonly topicType: Schema.optionalKey<Schema.Literals<readonly [
6749
+ "standard",
6750
+ "event",
6751
+ "offer"
6752
+ ]>>;
6753
+ readonly title: Schema.optionalKey<Schema.String>;
6754
+ readonly startsAt: Schema.optionalKey<Schema.String>;
6755
+ readonly endsAt: Schema.optionalKey<Schema.String>;
6756
+ readonly couponCode: Schema.optionalKey<Schema.String>;
6757
+ readonly redeemUrl: Schema.optionalKey<Schema.String>;
6758
+ readonly terms: Schema.optionalKey<Schema.String>;
6759
+ readonly callToAction: Schema.optionalKey<Schema.Literals<readonly [
6760
+ "book",
6761
+ "order",
6762
+ "shop",
6763
+ "learn_more",
6764
+ "sign_up",
6765
+ "call"
6766
+ ]>>;
6767
+ readonly callToActionUrl: Schema.optionalKey<Schema.String>;
6768
+ }>>;
6460
6769
  readonly text: Schema.optionalKey<Schema.String>;
6461
6770
  readonly media: Schema.optionalKey<Schema.$Array<Schema.Union<readonly [
6462
6771
  Schema.Struct<{
@@ -6505,7 +6814,10 @@ export declare const Post: Schema.Struct<{
6505
6814
  "tiktok_settings_not_allowed",
6506
6815
  "tiktok_processing_failed",
6507
6816
  "submission_uncertain",
6508
- "confirmation_unavailable"
6817
+ "confirmation_unavailable",
6818
+ "billing_inactive",
6819
+ "spend_cap_reached",
6820
+ "insufficient_credit"
6509
6821
  ]>>;
6510
6822
  readonly canRetry: Schema.Boolean;
6511
6823
  readonly canReconcile: Schema.Boolean;
@@ -6839,6 +7151,16 @@ declare const PostCreateResult: Schema.Union<readonly [
6839
7151
  }>,
6840
7152
  Schema.Struct<{
6841
7153
  readonly settings: Schema.optionalKey<Schema.Struct<{
7154
+ readonly poll: Schema.optionalKey<Schema.Struct<{
7155
+ readonly question: Schema.String;
7156
+ readonly options: Schema.$Array<Schema.String>;
7157
+ readonly duration: Schema.Literals<readonly [
7158
+ "ONE_DAY",
7159
+ "THREE_DAYS",
7160
+ "SEVEN_DAYS",
7161
+ "FOURTEEN_DAYS"
7162
+ ]>;
7163
+ }>>;
6842
7164
  readonly firstComment: Schema.optionalKey<Schema.String>;
6843
7165
  readonly thread: Schema.optionalKey<Schema.$Array<Schema.String>>;
6844
7166
  readonly visibility: Schema.optionalKey<Schema.Literals<readonly [
@@ -6891,6 +7213,19 @@ declare const PostCreateResult: Schema.Union<readonly [
6891
7213
  }>,
6892
7214
  Schema.Struct<{
6893
7215
  readonly settings: Schema.optionalKey<Schema.Struct<{
7216
+ readonly poll: Schema.optionalKey<Schema.Struct<{
7217
+ readonly options: Schema.$Array<Schema.String>;
7218
+ readonly durationMinutes: Schema.Number;
7219
+ }>>;
7220
+ readonly replySettings: Schema.optionalKey<Schema.Literals<readonly [
7221
+ "following",
7222
+ "mentionedUsers",
7223
+ "subscribers",
7224
+ "verified"
7225
+ ]>>;
7226
+ readonly quotePostId: Schema.optionalKey<Schema.String>;
7227
+ readonly mediaTaggedUserIds: Schema.optionalKey<Schema.$Array<Schema.String>>;
7228
+ readonly placeId: Schema.optionalKey<Schema.String>;
6894
7229
  readonly firstComment: Schema.optionalKey<Schema.String>;
6895
7230
  readonly thread: Schema.optionalKey<Schema.$Array<Schema.String>>;
6896
7231
  readonly article: Schema.optionalKey<Schema.Struct<{
@@ -6925,6 +7260,7 @@ declare const PostCreateResult: Schema.Union<readonly [
6925
7260
  "unlisted",
6926
7261
  "private"
6927
7262
  ]>;
7263
+ readonly firstComment: Schema.optionalKey<Schema.String>;
6928
7264
  readonly tags: Schema.optionalKey<Schema.$Array<Schema.String>>;
6929
7265
  readonly categoryId: Schema.optionalKey<Schema.String>;
6930
7266
  readonly madeForKids: Schema.optionalKey<Schema.Boolean>;
@@ -7103,7 +7439,28 @@ declare const PostCreateResult: Schema.Union<readonly [
7103
7439
  readonly placement: Schema.Literal<"feed">;
7104
7440
  }>,
7105
7441
  Schema.Struct<{
7106
- readonly settings: Schema.optionalKey<Schema.Struct<{}>>;
7442
+ readonly settings: Schema.optionalKey<Schema.Struct<{
7443
+ readonly topicType: Schema.optionalKey<Schema.Literals<readonly [
7444
+ "standard",
7445
+ "event",
7446
+ "offer"
7447
+ ]>>;
7448
+ readonly title: Schema.optionalKey<Schema.String>;
7449
+ readonly startsAt: Schema.optionalKey<Schema.String>;
7450
+ readonly endsAt: Schema.optionalKey<Schema.String>;
7451
+ readonly couponCode: Schema.optionalKey<Schema.String>;
7452
+ readonly redeemUrl: Schema.optionalKey<Schema.String>;
7453
+ readonly terms: Schema.optionalKey<Schema.String>;
7454
+ readonly callToAction: Schema.optionalKey<Schema.Literals<readonly [
7455
+ "book",
7456
+ "order",
7457
+ "shop",
7458
+ "learn_more",
7459
+ "sign_up",
7460
+ "call"
7461
+ ]>>;
7462
+ readonly callToActionUrl: Schema.optionalKey<Schema.String>;
7463
+ }>>;
7107
7464
  readonly text: Schema.optionalKey<Schema.String>;
7108
7465
  readonly media: Schema.optionalKey<Schema.$Array<Schema.Union<readonly [
7109
7466
  Schema.Struct<{
@@ -7152,7 +7509,10 @@ declare const PostCreateResult: Schema.Union<readonly [
7152
7509
  "tiktok_settings_not_allowed",
7153
7510
  "tiktok_processing_failed",
7154
7511
  "submission_uncertain",
7155
- "confirmation_unavailable"
7512
+ "confirmation_unavailable",
7513
+ "billing_inactive",
7514
+ "spend_cap_reached",
7515
+ "insufficient_credit"
7156
7516
  ]>>;
7157
7517
  readonly canRetry: Schema.Boolean;
7158
7518
  readonly canReconcile: Schema.Boolean;
@@ -7290,6 +7650,8 @@ declare const PostCreateResult: Schema.Union<readonly [
7290
7650
  "tiktok_upload_required",
7291
7651
  "tiktok_too_many_mentions",
7292
7652
  "queue_and_time_conflict",
7653
+ "queue_not_found",
7654
+ "queue_unavailable",
7293
7655
  "invalid_field",
7294
7656
  "account_ambiguous",
7295
7657
  "unsupported_placement",
@@ -7302,6 +7664,10 @@ declare const PostCreateResult: Schema.Union<readonly [
7302
7664
  Schema.Int
7303
7665
  ]>>;
7304
7666
  readonly message: Schema.String;
7667
+ readonly candidates: Schema.optionalKey<Schema.$Array<Schema.Struct<{
7668
+ readonly accountId: Schema.brand<Schema.String, "AccountId">;
7669
+ readonly name: Schema.String;
7670
+ }>>>;
7305
7671
  }>>;
7306
7672
  readonly billing: Schema.optionalKey<Schema.Struct<{
7307
7673
  readonly estimatedCostMicros: Schema.Int;
@@ -7358,6 +7724,8 @@ export declare const PostValidation: Schema.Struct<{
7358
7724
  "tiktok_upload_required",
7359
7725
  "tiktok_too_many_mentions",
7360
7726
  "queue_and_time_conflict",
7727
+ "queue_not_found",
7728
+ "queue_unavailable",
7361
7729
  "invalid_field",
7362
7730
  "account_ambiguous",
7363
7731
  "unsupported_placement",
@@ -7370,6 +7738,10 @@ export declare const PostValidation: Schema.Struct<{
7370
7738
  Schema.Int
7371
7739
  ]>>;
7372
7740
  readonly message: Schema.String;
7741
+ readonly candidates: Schema.optionalKey<Schema.$Array<Schema.Struct<{
7742
+ readonly accountId: Schema.brand<Schema.String, "AccountId">;
7743
+ readonly name: Schema.String;
7744
+ }>>>;
7373
7745
  }>>;
7374
7746
  readonly warnings: Schema.$Array<Schema.Struct<{
7375
7747
  readonly code: Schema.Literals<readonly [
@@ -7399,6 +7771,8 @@ export declare const PostValidation: Schema.Struct<{
7399
7771
  "tiktok_upload_required",
7400
7772
  "tiktok_too_many_mentions",
7401
7773
  "queue_and_time_conflict",
7774
+ "queue_not_found",
7775
+ "queue_unavailable",
7402
7776
  "invalid_field",
7403
7777
  "account_ambiguous",
7404
7778
  "unsupported_placement",
@@ -7411,6 +7785,10 @@ export declare const PostValidation: Schema.Struct<{
7411
7785
  Schema.Int
7412
7786
  ]>>;
7413
7787
  readonly message: Schema.String;
7788
+ readonly candidates: Schema.optionalKey<Schema.$Array<Schema.Struct<{
7789
+ readonly accountId: Schema.brand<Schema.String, "AccountId">;
7790
+ readonly name: Schema.String;
7791
+ }>>>;
7414
7792
  }>>;
7415
7793
  readonly targets: Schema.$Array<Schema.Struct<{
7416
7794
  readonly accountId: Schema.brand<Schema.String, "AccountId">;
@@ -7469,6 +7847,8 @@ export declare const PostValidation: Schema.Struct<{
7469
7847
  "tiktok_upload_required",
7470
7848
  "tiktok_too_many_mentions",
7471
7849
  "queue_and_time_conflict",
7850
+ "queue_not_found",
7851
+ "queue_unavailable",
7472
7852
  "invalid_field",
7473
7853
  "account_ambiguous",
7474
7854
  "unsupported_placement",
@@ -7481,6 +7861,10 @@ export declare const PostValidation: Schema.Struct<{
7481
7861
  Schema.Int
7482
7862
  ]>>;
7483
7863
  readonly message: Schema.String;
7864
+ readonly candidates: Schema.optionalKey<Schema.$Array<Schema.Struct<{
7865
+ readonly accountId: Schema.brand<Schema.String, "AccountId">;
7866
+ readonly name: Schema.String;
7867
+ }>>>;
7484
7868
  }>>;
7485
7869
  readonly warnings: Schema.$Array<Schema.Struct<{
7486
7870
  readonly code: Schema.Literals<readonly [
@@ -7510,6 +7894,8 @@ export declare const PostValidation: Schema.Struct<{
7510
7894
  "tiktok_upload_required",
7511
7895
  "tiktok_too_many_mentions",
7512
7896
  "queue_and_time_conflict",
7897
+ "queue_not_found",
7898
+ "queue_unavailable",
7513
7899
  "invalid_field",
7514
7900
  "account_ambiguous",
7515
7901
  "unsupported_placement",
@@ -7522,6 +7908,10 @@ export declare const PostValidation: Schema.Struct<{
7522
7908
  Schema.Int
7523
7909
  ]>>;
7524
7910
  readonly message: Schema.String;
7911
+ readonly candidates: Schema.optionalKey<Schema.$Array<Schema.Struct<{
7912
+ readonly accountId: Schema.brand<Schema.String, "AccountId">;
7913
+ readonly name: Schema.String;
7914
+ }>>>;
7525
7915
  }>>;
7526
7916
  }>>;
7527
7917
  readonly billing: Schema.optionalKey<Schema.Struct<{
@@ -8540,6 +8930,25 @@ export declare const InboxAccountCapabilities: Schema.Struct<{
8540
8930
  readonly backfillDays: Schema.Int;
8541
8931
  readonly missingScopes: Schema.$Array<Schema.String>;
8542
8932
  readonly missingTasks: Schema.$Array<Schema.String>;
8933
+ readonly unavailable: Schema.NullOr<Schema.Struct<{
8934
+ readonly reason: Schema.Literals<readonly [
8935
+ "provider_subscription_limit",
8936
+ "missing_scopes",
8937
+ "webhook_invalid",
8938
+ "subscription_pending",
8939
+ "plan_required",
8940
+ "insufficient_credit",
8941
+ "spend_cap_reached"
8942
+ ]>;
8943
+ readonly action: Schema.Literals<readonly [
8944
+ "contact_pubnio",
8945
+ "reconnect_account",
8946
+ "wait_for_repair",
8947
+ "upgrade_plan",
8948
+ "add_credit",
8949
+ "raise_spend_cap"
8950
+ ]>;
8951
+ }>>;
8543
8952
  }>;
8544
8953
  readonly comments: Schema.Struct<{
8545
8954
  readonly resource: Schema.Literals<readonly [
@@ -8575,6 +8984,25 @@ export declare const InboxAccountCapabilities: Schema.Struct<{
8575
8984
  readonly backfillDays: Schema.Int;
8576
8985
  readonly missingScopes: Schema.$Array<Schema.String>;
8577
8986
  readonly missingTasks: Schema.$Array<Schema.String>;
8987
+ readonly unavailable: Schema.NullOr<Schema.Struct<{
8988
+ readonly reason: Schema.Literals<readonly [
8989
+ "provider_subscription_limit",
8990
+ "missing_scopes",
8991
+ "webhook_invalid",
8992
+ "subscription_pending",
8993
+ "plan_required",
8994
+ "insufficient_credit",
8995
+ "spend_cap_reached"
8996
+ ]>;
8997
+ readonly action: Schema.Literals<readonly [
8998
+ "contact_pubnio",
8999
+ "reconnect_account",
9000
+ "wait_for_repair",
9001
+ "upgrade_plan",
9002
+ "add_credit",
9003
+ "raise_spend_cap"
9004
+ ]>;
9005
+ }>>;
8578
9006
  }>;
8579
9007
  readonly mentions: Schema.Struct<{
8580
9008
  readonly resource: Schema.Literals<readonly [
@@ -8610,6 +9038,25 @@ export declare const InboxAccountCapabilities: Schema.Struct<{
8610
9038
  readonly backfillDays: Schema.Int;
8611
9039
  readonly missingScopes: Schema.$Array<Schema.String>;
8612
9040
  readonly missingTasks: Schema.$Array<Schema.String>;
9041
+ readonly unavailable: Schema.NullOr<Schema.Struct<{
9042
+ readonly reason: Schema.Literals<readonly [
9043
+ "provider_subscription_limit",
9044
+ "missing_scopes",
9045
+ "webhook_invalid",
9046
+ "subscription_pending",
9047
+ "plan_required",
9048
+ "insufficient_credit",
9049
+ "spend_cap_reached"
9050
+ ]>;
9051
+ readonly action: Schema.Literals<readonly [
9052
+ "contact_pubnio",
9053
+ "reconnect_account",
9054
+ "wait_for_repair",
9055
+ "upgrade_plan",
9056
+ "add_credit",
9057
+ "raise_spend_cap"
9058
+ ]>;
9059
+ }>>;
8613
9060
  }>;
8614
9061
  readonly replyWindow: Schema.Struct<{
8615
9062
  readonly open: Schema.Boolean;
@@ -8621,6 +9068,11 @@ export declare const InboxAccountCapabilities: Schema.Struct<{
8621
9068
  readonly endsAt: Schema.NullOr<Schema.String>;
8622
9069
  }>;
8623
9070
  readonly lastSyncError: Schema.NullOr<Schema.String>;
9071
+ readonly deliveryGap: Schema.NullOr<Schema.Struct<{
9072
+ readonly from: Schema.String;
9073
+ readonly to: Schema.String;
9074
+ readonly action: Schema.Literal<"review_on_x">;
9075
+ }>>;
8624
9076
  readonly checkedAt: Schema.String;
8625
9077
  }>;
8626
9078
  export type InboxAccountCapabilities = typeof InboxAccountCapabilities.Type;
@@ -8748,6 +9200,25 @@ export declare const InboxCapabilities: Schema.Struct<{
8748
9200
  readonly backfillDays: Schema.Int;
8749
9201
  readonly missingScopes: Schema.$Array<Schema.String>;
8750
9202
  readonly missingTasks: Schema.$Array<Schema.String>;
9203
+ readonly unavailable: Schema.NullOr<Schema.Struct<{
9204
+ readonly reason: Schema.Literals<readonly [
9205
+ "provider_subscription_limit",
9206
+ "missing_scopes",
9207
+ "webhook_invalid",
9208
+ "subscription_pending",
9209
+ "plan_required",
9210
+ "insufficient_credit",
9211
+ "spend_cap_reached"
9212
+ ]>;
9213
+ readonly action: Schema.Literals<readonly [
9214
+ "contact_pubnio",
9215
+ "reconnect_account",
9216
+ "wait_for_repair",
9217
+ "upgrade_plan",
9218
+ "add_credit",
9219
+ "raise_spend_cap"
9220
+ ]>;
9221
+ }>>;
8751
9222
  }>;
8752
9223
  readonly comments: Schema.Struct<{
8753
9224
  readonly resource: Schema.Literals<readonly [
@@ -8783,6 +9254,25 @@ export declare const InboxCapabilities: Schema.Struct<{
8783
9254
  readonly backfillDays: Schema.Int;
8784
9255
  readonly missingScopes: Schema.$Array<Schema.String>;
8785
9256
  readonly missingTasks: Schema.$Array<Schema.String>;
9257
+ readonly unavailable: Schema.NullOr<Schema.Struct<{
9258
+ readonly reason: Schema.Literals<readonly [
9259
+ "provider_subscription_limit",
9260
+ "missing_scopes",
9261
+ "webhook_invalid",
9262
+ "subscription_pending",
9263
+ "plan_required",
9264
+ "insufficient_credit",
9265
+ "spend_cap_reached"
9266
+ ]>;
9267
+ readonly action: Schema.Literals<readonly [
9268
+ "contact_pubnio",
9269
+ "reconnect_account",
9270
+ "wait_for_repair",
9271
+ "upgrade_plan",
9272
+ "add_credit",
9273
+ "raise_spend_cap"
9274
+ ]>;
9275
+ }>>;
8786
9276
  }>;
8787
9277
  readonly mentions: Schema.Struct<{
8788
9278
  readonly resource: Schema.Literals<readonly [
@@ -8818,6 +9308,25 @@ export declare const InboxCapabilities: Schema.Struct<{
8818
9308
  readonly backfillDays: Schema.Int;
8819
9309
  readonly missingScopes: Schema.$Array<Schema.String>;
8820
9310
  readonly missingTasks: Schema.$Array<Schema.String>;
9311
+ readonly unavailable: Schema.NullOr<Schema.Struct<{
9312
+ readonly reason: Schema.Literals<readonly [
9313
+ "provider_subscription_limit",
9314
+ "missing_scopes",
9315
+ "webhook_invalid",
9316
+ "subscription_pending",
9317
+ "plan_required",
9318
+ "insufficient_credit",
9319
+ "spend_cap_reached"
9320
+ ]>;
9321
+ readonly action: Schema.Literals<readonly [
9322
+ "contact_pubnio",
9323
+ "reconnect_account",
9324
+ "wait_for_repair",
9325
+ "upgrade_plan",
9326
+ "add_credit",
9327
+ "raise_spend_cap"
9328
+ ]>;
9329
+ }>>;
8821
9330
  }>;
8822
9331
  readonly replyWindow: Schema.Struct<{
8823
9332
  readonly open: Schema.Boolean;
@@ -8829,6 +9338,11 @@ export declare const InboxCapabilities: Schema.Struct<{
8829
9338
  readonly endsAt: Schema.NullOr<Schema.String>;
8830
9339
  }>;
8831
9340
  readonly lastSyncError: Schema.NullOr<Schema.String>;
9341
+ readonly deliveryGap: Schema.NullOr<Schema.Struct<{
9342
+ readonly from: Schema.String;
9343
+ readonly to: Schema.String;
9344
+ readonly action: Schema.Literal<"review_on_x">;
9345
+ }>>;
8832
9346
  readonly checkedAt: Schema.String;
8833
9347
  }>>;
8834
9348
  }>;
@@ -13220,7 +13734,8 @@ export declare const WebhookSubscriptionType: Schema.Literals<readonly [
13220
13734
  "billing.credit.topped_up",
13221
13735
  "billing.credit.low",
13222
13736
  "billing.spend_cap.reached",
13223
- "billing.invoice.payment_failed"
13737
+ "billing.invoice.payment_failed",
13738
+ "billing.subscription.duplicate_refunded"
13224
13739
  ]>;
13225
13740
  export type WebhookSubscriptionType = typeof WebhookSubscriptionType.Type;
13226
13741
  export declare const WebhookEventType: Schema.Literals<readonly [
@@ -13279,6 +13794,7 @@ export declare const WebhookEventType: Schema.Literals<readonly [
13279
13794
  "billing.credit.low",
13280
13795
  "billing.spend_cap.reached",
13281
13796
  "billing.invoice.payment_failed",
13797
+ "billing.subscription.duplicate_refunded",
13282
13798
  "webhook.test"
13283
13799
  ]>;
13284
13800
  export type WebhookEventType = typeof WebhookEventType.Type;
@@ -13385,7 +13901,10 @@ export declare const WebhookEvent: Schema.Union<readonly [
13385
13901
  "tiktok_settings_not_allowed",
13386
13902
  "tiktok_processing_failed",
13387
13903
  "submission_uncertain",
13388
- "confirmation_unavailable"
13904
+ "confirmation_unavailable",
13905
+ "billing_inactive",
13906
+ "spend_cap_reached",
13907
+ "insufficient_credit"
13389
13908
  ]>;
13390
13909
  readonly canRetry: Schema.Boolean;
13391
13910
  readonly nextAction: Schema.String;
@@ -13444,7 +13963,10 @@ export declare const WebhookEvent: Schema.Union<readonly [
13444
13963
  "tiktok_settings_not_allowed",
13445
13964
  "tiktok_processing_failed",
13446
13965
  "submission_uncertain",
13447
- "confirmation_unavailable"
13966
+ "confirmation_unavailable",
13967
+ "billing_inactive",
13968
+ "spend_cap_reached",
13969
+ "insufficient_credit"
13448
13970
  ]>;
13449
13971
  readonly canReconcile: Schema.Boolean;
13450
13972
  readonly nextAction: Schema.String;
@@ -13610,7 +14132,10 @@ export declare const WebhookEvent: Schema.Union<readonly [
13610
14132
  "tiktok_settings_not_allowed",
13611
14133
  "tiktok_processing_failed",
13612
14134
  "submission_uncertain",
13613
- "confirmation_unavailable"
14135
+ "confirmation_unavailable",
14136
+ "billing_inactive",
14137
+ "spend_cap_reached",
14138
+ "insufficient_credit"
13614
14139
  ]>>;
13615
14140
  }>>;
13616
14141
  }>;
@@ -13670,7 +14195,10 @@ export declare const WebhookEvent: Schema.Union<readonly [
13670
14195
  "tiktok_settings_not_allowed",
13671
14196
  "tiktok_processing_failed",
13672
14197
  "submission_uncertain",
13673
- "confirmation_unavailable"
14198
+ "confirmation_unavailable",
14199
+ "billing_inactive",
14200
+ "spend_cap_reached",
14201
+ "insufficient_credit"
13674
14202
  ]>>;
13675
14203
  }>>;
13676
14204
  }>;
@@ -13730,7 +14258,10 @@ export declare const WebhookEvent: Schema.Union<readonly [
13730
14258
  "tiktok_settings_not_allowed",
13731
14259
  "tiktok_processing_failed",
13732
14260
  "submission_uncertain",
13733
- "confirmation_unavailable"
14261
+ "confirmation_unavailable",
14262
+ "billing_inactive",
14263
+ "spend_cap_reached",
14264
+ "insufficient_credit"
13734
14265
  ]>>;
13735
14266
  }>>;
13736
14267
  }>;
@@ -13790,7 +14321,10 @@ export declare const WebhookEvent: Schema.Union<readonly [
13790
14321
  "tiktok_settings_not_allowed",
13791
14322
  "tiktok_processing_failed",
13792
14323
  "submission_uncertain",
13793
- "confirmation_unavailable"
14324
+ "confirmation_unavailable",
14325
+ "billing_inactive",
14326
+ "spend_cap_reached",
14327
+ "insufficient_credit"
13794
14328
  ]>>;
13795
14329
  }>>;
13796
14330
  }>;
@@ -15089,6 +15623,19 @@ export declare const WebhookEvent: Schema.Union<readonly [
15089
15623
  readonly workspaceId: Schema.brand<Schema.String, "WorkspaceId">;
15090
15624
  readonly profileId: Schema.optionalKey<Schema.brand<Schema.String, "ProfileId">>;
15091
15625
  }>,
15626
+ Schema.Struct<{
15627
+ readonly type: Schema.Literal<"billing.subscription.duplicate_refunded">;
15628
+ readonly data: Schema.Struct<{
15629
+ readonly subscriptionId: Schema.String;
15630
+ readonly amountRefundedMinor: Schema.Int;
15631
+ readonly currency: Schema.String;
15632
+ }>;
15633
+ readonly id: Schema.String;
15634
+ readonly version: Schema.Literal<1>;
15635
+ readonly timestamp: Schema.String;
15636
+ readonly workspaceId: Schema.brand<Schema.String, "WorkspaceId">;
15637
+ readonly profileId: Schema.optionalKey<Schema.brand<Schema.String, "ProfileId">>;
15638
+ }>,
15092
15639
  Schema.Struct<{
15093
15640
  readonly type: Schema.Literal<"webhook.test">;
15094
15641
  readonly data: Schema.Struct<{
@@ -15160,7 +15707,8 @@ export declare const CreateWebhookEndpoint: Schema.Struct<{
15160
15707
  "billing.credit.topped_up",
15161
15708
  "billing.credit.low",
15162
15709
  "billing.spend_cap.reached",
15163
- "billing.invoice.payment_failed"
15710
+ "billing.invoice.payment_failed",
15711
+ "billing.subscription.duplicate_refunded"
15164
15712
  ]>>;
15165
15713
  readonly enabled: Schema.optionalKey<Schema.Boolean>;
15166
15714
  readonly profileId: Schema.optionalKey<Schema.brand<Schema.String, "ProfileId">>;
@@ -15233,7 +15781,8 @@ export declare const UpdateWebhookEndpoint: Schema.Struct<{
15233
15781
  "billing.credit.topped_up",
15234
15782
  "billing.credit.low",
15235
15783
  "billing.spend_cap.reached",
15236
- "billing.invoice.payment_failed"
15784
+ "billing.invoice.payment_failed",
15785
+ "billing.subscription.duplicate_refunded"
15237
15786
  ]>>>;
15238
15787
  readonly enabled: Schema.optionalKey<Schema.Boolean>;
15239
15788
  readonly profileId: Schema.optionalKey<Schema.NullOr<Schema.brand<Schema.String, "ProfileId">>>;
@@ -15308,7 +15857,8 @@ export declare const WebhookEndpoint: Schema.Struct<{
15308
15857
  "billing.credit.topped_up",
15309
15858
  "billing.credit.low",
15310
15859
  "billing.spend_cap.reached",
15311
- "billing.invoice.payment_failed"
15860
+ "billing.invoice.payment_failed",
15861
+ "billing.subscription.duplicate_refunded"
15312
15862
  ]>>;
15313
15863
  readonly enabled: Schema.Boolean;
15314
15864
  readonly profileId: Schema.NullOr<Schema.brand<Schema.String, "ProfileId">>;
@@ -15391,7 +15941,8 @@ export declare const WebhookEndpointDetails: Schema.Struct<{
15391
15941
  "billing.credit.topped_up",
15392
15942
  "billing.credit.low",
15393
15943
  "billing.spend_cap.reached",
15394
- "billing.invoice.payment_failed"
15944
+ "billing.invoice.payment_failed",
15945
+ "billing.subscription.duplicate_refunded"
15395
15946
  ]>>;
15396
15947
  readonly enabled: Schema.Boolean;
15397
15948
  readonly profileId: Schema.NullOr<Schema.brand<Schema.String, "ProfileId">>;
@@ -15475,7 +16026,8 @@ export declare const WebhookEndpointCreated: Schema.Struct<{
15475
16026
  "billing.credit.topped_up",
15476
16027
  "billing.credit.low",
15477
16028
  "billing.spend_cap.reached",
15478
- "billing.invoice.payment_failed"
16029
+ "billing.invoice.payment_failed",
16030
+ "billing.subscription.duplicate_refunded"
15479
16031
  ]>>;
15480
16032
  readonly enabled: Schema.Boolean;
15481
16033
  readonly profileId: Schema.NullOr<Schema.brand<Schema.String, "ProfileId">>;
@@ -15562,7 +16114,8 @@ export declare const WebhookEndpointList: Schema.Struct<{
15562
16114
  "billing.credit.topped_up",
15563
16115
  "billing.credit.low",
15564
16116
  "billing.spend_cap.reached",
15565
- "billing.invoice.payment_failed"
16117
+ "billing.invoice.payment_failed",
16118
+ "billing.subscription.duplicate_refunded"
15566
16119
  ]>>;
15567
16120
  readonly enabled: Schema.Boolean;
15568
16121
  readonly profileId: Schema.NullOr<Schema.brand<Schema.String, "ProfileId">>;
@@ -15674,6 +16227,7 @@ export declare const WebhookDelivery: Schema.Struct<{
15674
16227
  "billing.credit.low",
15675
16228
  "billing.spend_cap.reached",
15676
16229
  "billing.invoice.payment_failed",
16230
+ "billing.subscription.duplicate_refunded",
15677
16231
  "webhook.test"
15678
16232
  ]>;
15679
16233
  readonly status: Schema.Literals<readonly [
@@ -15765,6 +16319,7 @@ export declare const WebhookDeliveryList: Schema.Struct<{
15765
16319
  "billing.credit.low",
15766
16320
  "billing.spend_cap.reached",
15767
16321
  "billing.invoice.payment_failed",
16322
+ "billing.subscription.duplicate_refunded",
15768
16323
  "webhook.test"
15769
16324
  ]>;
15770
16325
  readonly status: Schema.Literals<readonly [
@@ -16350,6 +16905,8 @@ export interface PostsClient {
16350
16905
  get(postId: PostId): Promise<Post>;
16351
16906
  update(postId: PostId, input: UpdatePost): Promise<Post>;
16352
16907
  validate(postId: PostId): Promise<PostValidation>;
16908
+ /** Predict whether this body can be published without saving it. */
16909
+ validateBody(input: CreatePost): Promise<PostValidation>;
16353
16910
  publish(postId: PostId, input: PublishPostInput): Promise<PublishAcceptedResult>;
16354
16911
  delete(postId: PostId): Promise<PostArchived>;
16355
16912
  status(postId: PostId): Promise<PublishStatus>;